{"page":1,"pageSize":10,"total":22,"totalPages":3,"versions":[{"changelog":"","comfy_node_extract_status":"pending","createdAt":"2026-09-04T16:38:26.264657Z","dependencies":["diffusers","accelerate","clip_interrogator","sentencepiece","lark","onnxruntime","spandrel","opencv-python-headless","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.4.1/node.zip","id":"3b3f4cdb-9969-4d3d-a304-fd421df3204b","node_id":"comfyui-easy-use","status":"NodeVersionStatusFlagged","status_reason":"[\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"43 | # inpaint\\n44 | INPAINT_DIR = os.path.join(folder_paths.models_dir, \\\"inpaint\\\")\\n45 | FOOOCUS_STYLES_DIR = os.path.join(Path(__file__).parent.parent, \\\"styles\\\")\\n46 | FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\n47 | FOOOCUS_INPAINT_HEAD = {\\n48 |     \\\"fooocus_inpaint_head\\\": {\\n49 |         \\\"model_url\\\": \\\"https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/fooocus_inpaint_head.pth\\\"\",\n        \"description\": \"Detects blacklisted URLs in code\",\n        \"file_path\": \"py/config.py\",\n        \"issue_type\": \"contains_blacklisted_url\",\n        \"line_number\": 46,\n        \"line_snippet\": \"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$blacklisted_url4_ascii_44\",\n                \"$blacklisted_url4_xor_44\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"py/config.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$blacklisted_url4_ascii_44\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\n\",\n                                    \"line_number\": 46,\n                                    \"matched_data\": \"://raw.githubusercontent.com\",\n                                    \"matched_length\": 28,\n                                    \"offset\": 31\n                                }\n                            ]\n                        },\n                        {\n                            \"identifier\": \"$blacklisted_url4_xor_44\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\n\",\n                                    \"line_number\": 46,\n                                    \"matched_data\": \"://raw.githubusercontent.com\",\n                                    \"matched_length\": 28,\n                                    \"offset\": 31\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1102 Web Service\",\n                \"category\": \"C2\",\n                \"date\": \"12.08.2024\",\n                \"description\": \"Detects blacklisted URLs in code\",\n                \"observable_refs\": \"url\",\n                \"reference1\": \"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\",\n                \"reference2\": \"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\",\n                \"severity\": \"1\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"445 |         max_float_value = 1.95\\n446 |         prompt_path = os.path.join(RESOURCES_DIR, 'portrait_prompt.json')\\n447 |         if not os.path.exists(prompt_path):\\n448 |             response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\n449 |             temp_prompt = json.loads(response.read())\\n450 |             prompt_serialized = json.dumps(temp_prompt, indent=4)\\n451 |             with open(prompt_path, \\\"w\\\") as f:\",\n        \"description\": \"Detects blacklisted URLs in code\",\n        \"file_path\": \"py/nodes/prompt.py\",\n        \"issue_type\": \"contains_blacklisted_url\",\n        \"line_number\": 448,\n        \"line_snippet\": \"response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$blacklisted_url4_ascii_44\",\n                \"$blacklisted_url4_xor_44\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"py/nodes/prompt.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$blacklisted_url4_ascii_44\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"            response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\n\",\n                                    \"line_number\": 448,\n                                    \"matched_data\": \"://raw.githubusercontent.com\",\n                                    \"matched_length\": 28,\n                                    \"offset\": 81\n                                }\n                            ]\n                        },\n                        {\n                            \"identifier\": \"$blacklisted_url4_xor_44\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"            response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\n\",\n                                    \"line_number\": 448,\n                                    \"matched_data\": \"://raw.githubusercontent.com\",\n                                    \"matched_length\": 28,\n                                    \"offset\": 81\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1102 Web Service\",\n                \"category\": \"C2\",\n                \"date\": \"12.08.2024\",\n                \"description\": \"Detects blacklisted URLs in code\",\n                \"observable_refs\": \"url\",\n                \"reference1\": \"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\",\n                \"reference2\": \"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\",\n                \"severity\": \"1\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"obfuscated-code\"\n        ],\n        \"code_snippet\": \"79 |     return rlist\\n80 | }\\n81 | \\n82 | const foocus_base_path = \\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\"\\n83 | const empty_img = \\\"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QNLaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA5LjEtYzAwMSA3OS4xNDYyODk5Nzc3LCAyMDIzLzA2LzI1LTIzOjU3OjE0ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoMjAyMzA5MDUubS4yMzE2IDk3OWM4NmQpICAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjA3NEU1QzNCNUJBMTFFRUExMUVDNkZDRjI0NzlBN0QiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjA3NEU1QzRCNUJBMTFFRUExMUVDNkZDRjI0NzlBN0QiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGMDc0RTVDMUI1QkExMUVFQTExRUM2RkNGMjQ3OUE3RCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGMDc0RTVDMkI1QkExMUVFQTExRUM2RkNGMjQ3OUE3RCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/uAA5BZG9iZQBkwAAAAAH/2wCEAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx8BBwcHDQwNGBAQGBoVERUaHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fH//AABEIAIAAgAMBEQACEQEDEQH/xACLAAEAAgMBAQEAAAAAAAAAAAAABAUCAwYBBwgBAQADAQEBAAAAAAAAAAAAAAABAgMEBQYQAAEEAgECAwUHAwUAAAAAAAEAAgMEEQUhEgYxEwdBYSIyFFFxgVJyIxWRoTOxwdFiJBEBAAICAQQBBAIDAAAAAAAAAAECEQMxIUESBBOB0SIyUXGCIwX/2gAMAwEAAhEDEQA/AP1SgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICDXJYgj+d4afsVopM8KWvEcy8it1pXdMcjXO/Lnn+im2u0cwV2VniW1UXEBAQEBAQEBAQEBAQRNlc+mgyDh7zhv+5WunX5Sw37fCHM2dh48r06ank7N6rn2Ja7qa4hw5BBwQV010uK+/DsO29v/J68SOI86Jxjl95HIP4gryPc0fHfHaXu+j7Py68zzHSVquV2iAgICAgICAgICDyTr6HdHz4PTnwypjnqic46OauNbY6mGX99p+L8w9xaeV6OufHt0eXtr59M9VFb194E9LmuH3kf6rv17avO2ets7YVcuuuk/uOa3PgBlxP4BdMbq9nLPqbJ5xDbSM9azFXpyujuSO+Bo5kcf0NPyj25We2YtEzaPxdfr6519Kz+UvqEIlELBKQZQ0eYRwC7HOPxXzVsZ6cPpK5x15ZKEiAgICAgICAgICCNc1tG40CzA2XHg4j4h9zhyFpr22p+s4Z7NNL/ALRlTX+1dVFBJOJrcTI2lxZHYcBx+sldWv3bzOMVn6fZy39OkRnNo+v3aoOx9JOxks8tqwHDPS+1IW8+IzGWZVrf9DZHSMR/j9yvo656zMz9V1rdLqdYwsoVIqwd87mNAc79Tvmd+JXJt332ftMy6temlP1jCasmggICAgICAgICAgwlmiib1SPDB7zhWrWZ4VtaI5QXb2l5ojYHvLjjIGB/dbR61sZlhPtVziFb3PYdd0luCvAZbXludVZ1huZQPgyTx4/atvWj4rxaZ6d/6Ye1/t1zSI6zx/bzti5YqaOpBeg8u41n/oa14cA4ccH7lPs1jZebVn8eyPUtOrXFbR+XdYx9xa90pjeXROaSCXDj+oysZ9S+Mx1bR7uvOJ6LGOWKVgfG8PafAtOQueazHLqraJjMMlCRAQEBAQEBAQRLNp4HTFx/2/4WtKR3Y32T2Udl8j3knk/aeSu6kREPPvaZlpY3DmyY8DyrzPZWv8tkvmFv7bg12RyR1DGeeMj2KnjE9JaeUx1hi1sgaet/U7JIOMcE8Dj7FMREcK2zPKMasr5XO6fmOVt5xEOadVplYU45IAOhxa72kLm2TFuXXqrNeF1WtlwDZeHfmHguO+vHDupszylLJsICAgICAg8cMjCQiYR5IVpFmc1Q5qLXHPgfbhbV2MLaYlqNQAYA4V/kV+PDA1fcp81fjYurtYMu4CmLZRNYhtZWBAI8CqzdaKN8df3LObtIokxwe5ZzZrFUloIGFnLWHqhIgICAgICAgxMbSpyjDAwAq3kr4MTWCnzR4MX02PGHDISNmETqieWba7QABwB4KJumKNgjaFXK0VZYChYQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEHzvuv1G7k1W9s6/Xamtaq15oaonmnsCR008HntaI4K8/s4HOeEGXZXqTud7uqtG7r6kNa5HdMU9aaw9zZde+FkrHsnr1+M2MZBPIKDRe9cO2K2mjs/V0m7X61lWzq32W+ZFEbfkSSO4B+GL9zw4QWm99TqFVmjsaSu7fUtxeNM2aTmSMBbHI9zWHqHVJlnDTxjPKCJL6sea502t1D7Ouhr0rNqxNM2CSNuwnkgjAi6ZOotdEc/Egibf1j/j+7JNL9DWdWg84TWn2ywtdFKyMZb5Tg0nLyG55x48IJ3bXqe/ea/a26dFtyTXtldDUqyOdNL5VqaDHS5gwXRxMe3xz1Y9iDKP1Sa7uefUnR7TyYqUVoEU5jY6pJZIz1RY4ZiMYd7TkexBA749Wr2gtCKlrIpGs17NjK29LLWmPmMsyiFkbIZsPEdKQu6y0eAQWdD1E2L93W1tzRyCDY3paev2NaxVlhIjidMfMb5vmse1kbi9pZ7MeKDt0BAQEBAQfEPU+lFY2++q2K1uSSezTnrReVsTTmiZVYHOd9LVuQyubIwANkbxz4FA7FsQ0NrrLNXX7N0eo1+3darGDYPjb5j6prxVRajjDetsRAjj4yM4CDre2uxO7q2hqtm7nua6w9rp5tfXgoSxwyTOMr42PlrPe4Nc8jJJQRDb3Oz1fYFrcV7As0mu3u7nbWkBZ9LSfG5nlxs/yySWRiNozwcBBx9EXadGTXz62+LG41+jZS6adhzS6vfnlkEjgzEZax7T8ePFBu3nbPdUXqJZsw6S5cqbCW1YdIY2lxhhfEGMjfHtoG9HxucwPEZy4/A7kMC87aq2Kmv7mdvxuqGmklFjUU4G2Yp21rdyW00t+kJkFl88pY9vDgwNDvEoK9np73FBcHdkrt2+rZd5FjQx7O0b8WvbzDKZhN1SSse573QdeAHkN+Ichj3p2rBvZq9vUnY2tcNQPqpZYZpJ44GxXqzHdVlzZZpib73mLHViI85c1BZ6OpsIe/6/XSuntevdsz6+8+pI0/yM1dtWVr2Z644P8rmyuj6S53jxkh9aQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBB/9k=\\\"\\n84 | async function displayImage(imgName, styleName) {\\n85 |     var e = event || window.event;\",\n        \"description\": \"Detects blacklisted URLs in code\",\n        \"file_path\": \"web_version/v1/js/easy/easySelector.js\",\n        \"issue_type\": \"contains_blacklisted_url\",\n        \"line_number\": 82,\n        \"line_snippet\": \"const foocus_base_path = \\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\"\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$blacklisted_url4_ascii_44\",\n                \"$blacklisted_url4_xor_44\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v1/js/easy/easySelector.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$blacklisted_url4_ascii_44\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"const foocus_base_path = \\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\"\\n\",\n                                    \"line_number\": 82,\n                                    \"matched_data\": \"://raw.githubusercontent.com\",\n                                    \"matched_length\": 28,\n                                    \"offset\": 31\n                                }\n                            ]\n                        },\n                        {\n                            \"identifier\": \"$blacklisted_url4_xor_44\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"const foocus_base_path = \\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\"\\n\",\n                                    \"line_number\": 82,\n                                    \"matched_data\": \"://raw.githubusercontent.com\",\n                                    \"matched_length\": 28,\n                                    \"offset\": 31\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1102 Web Service\",\n                \"category\": \"C2\",\n                \"date\": \"12.08.2024\",\n                \"description\": \"Detects blacklisted URLs in code\",\n                \"observable_refs\": \"url\",\n                \"reference1\": \"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\",\n                \"reference2\": \"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\",\n                \"severity\": \"1\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\"\n        ],\n        \"code_snippet\": \"70 |         env = dict(safe_dict)\\n71 |         env.update({k: float(v) for k, v in vals.items()})\\n72 |         try:\\n73 |             result = eval(formula, {\\\"__builtins__\\\": {}}, env)\\n74 |             return float(result)\\n75 |         except Exception as e:\\n76 |             raise ValueError(f\\\"公式计算错误: {str(e)}\\\")\",\n        \"description\": \"Detects dynamic code execution patterns in Python including eval, exec, and compile with exec mode\",\n        \"file_path\": \"py/libs/math.py\",\n        \"issue_type\": \"python_dynamic_execution\",\n        \"line_number\": 73,\n        \"line_snippet\": \"result = eval(formula, {\\\"__builtins__\\\": {}}, env)\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1059.006 Python\"\n            ],\n            \"confidence\": 95,\n            \"matched_patterns\": [\n                \"$eval_direct\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1059/006/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1059.006 Python\",\n                \"category\": \"Execution\",\n                \"confidence_note\": \"Patterns ending with _direct/_builtins have high confidence (90-100%). Patterns ending with _method have medium confidence (50-70%) due to potential false positives from legitimate method calls.\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects dynamic code execution patterns in Python including eval, exec, and compile with exec mode\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1059/006/\",\n                \"severity\": \"4\",\n                \"version\": \"1.1\"\n            },\n            \"yara_rule\": \"python_dynamic_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\"\n        ],\n        \"code_snippet\": \"1016 |                     content = \\\"\\\\n\\\".join(content.split(\\\"\\\\n\\\")[1:-1])\\n1017 |                     def tool_call(**kwargs):\\n1018 |                         return kwargs\\n1019 |                     parameters = eval(content)\\n1020 |                     content = {\\\"name\\\": metadata.strip(), \\\"parameters\\\": parameters}\\n1021 |                 else:\\n1022 |                     content = {\\\"name\\\": metadata.strip(), \\\"content\\\": content}\",\n        \"description\": \"Detects dynamic code execution patterns in Python including eval, exec, and compile with exec mode\",\n        \"file_path\": \"py/modules/kolors/chatglm/modeling_chatglm.py\",\n        \"issue_type\": \"python_dynamic_execution\",\n        \"line_number\": 1019,\n        \"line_snippet\": \"parameters = eval(content)\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1059.006 Python\"\n            ],\n            \"confidence\": 95,\n            \"matched_patterns\": [\n                \"$eval_direct\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1059/006/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1059.006 Python\",\n                \"category\": \"Execution\",\n                \"confidence_note\": \"Patterns ending with _direct/_builtins have high confidence (90-100%). Patterns ending with _method have medium confidence (50-70%) due to potential false positives from legitimate method calls.\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects dynamic code execution patterns in Python including eval, exec, and compile with exec mode\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1059/006/\",\n                \"severity\": \"4\",\n                \"version\": \"1.1\"\n            },\n            \"yara_rule\": \"python_dynamic_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\"\n        ],\n        \"code_snippet\": \"69 |         import subprocess\\n70 |         package_command = package + '==' + v if v is not None else package\\n71 |         PromptServer.instance.send_sync(\\\"easyuse-toast\\\", {'content': f\\\"Installing {package_command}...\\\", 'duration': 5000})\\n72 |         result = subprocess.run([sys.executable, '-s', '-m', 'pip', 'install', package_command], capture_output=True, text=True)\\n73 |         if result.returncode == 0:\\n74 |             PromptServer.instance.send_sync(\\\"easyuse-toast\\\", {'content': f\\\"{package} installed successfully\\\", 'type': 'success', 'duration': 5000})\\n75 |             print(f\\\"Package {package} installed successfully\\\")\",\n        \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n        \"file_path\": \"py/libs/utils.py\",\n        \"issue_type\": \"python_command_injection_risk\",\n        \"line_number\": 72,\n        \"line_snippet\": \"result = subprocess.run([sys.executable, '-s', '-m', 'pip', 'install', package_command], capture_output=True, text=True)\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1059.004 Unix Shell\"\n            ],\n            \"confidence\": 95,\n            \"matched_patterns\": [\n                \"$subprocess_run_direct\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1059.004 Unix Shell\",\n                \"category\": \"Injection\",\n                \"confidence_note\": \"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n                \"severity\": \"4\",\n                \"traceability\": \"CIR-001..006\",\n                \"version\": \"1.1\"\n            },\n            \"yara_rule\": \"python_command_injection_risk\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\"\n        ],\n        \"code_snippet\": \"1208 |             output_path\\n1209 |         ]\\n1210 | \\n1211 |         subprocess.run(ffmpeg_cmd, check=True)\\n1212 | \\n1213 |     print(f\\\"WebM with alpha saved to {output_path}\\\")\\n1214 | \",\n        \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_command_injection_risk\",\n        \"line_number\": 1211,\n        \"line_snippet\": \"subprocess.run(ffmpeg_cmd, check=True)\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1059.004 Unix Shell\"\n            ],\n            \"confidence\": 95,\n            \"matched_patterns\": [\n                \"$subprocess_run_direct\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1059.004 Unix Shell\",\n                \"category\": \"Injection\",\n                \"confidence_note\": \"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n                \"severity\": \"4\",\n                \"traceability\": \"CIR-001..006\",\n                \"version\": \"1.1\"\n            },\n            \"yara_rule\": \"python_command_injection_risk\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\"\n        ],\n        \"code_snippet\": \"1225 |         '-of', 'csv=p=0',\\n1226 |         original_video_path\\n1227 |     ]\\n1228 |     result = subprocess.run(probe_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)\\n1229 | \\n1230 |     # result.stdout is empty if no audio stream found\\n1231 |     if not result.stdout.strip():\",\n        \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_command_injection_risk\",\n        \"line_number\": 1228,\n        \"line_snippet\": \"result = subprocess.run(probe_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1059.004 Unix Shell\"\n            ],\n            \"confidence\": 95,\n            \"matched_patterns\": [\n                \"$subprocess_run_direct\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1059.004 Unix Shell\",\n                \"category\": \"Injection\",\n                \"confidence_note\": \"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n                \"severity\": \"4\",\n                \"traceability\": \"CIR-001..006\",\n                \"version\": \"1.1\"\n            },\n            \"yara_rule\": \"python_command_injection_risk\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\"\n        ],\n        \"code_snippet\": \"1243 |         '-map', '1:a:0',  # we know there's an audio track now\\n1244 |         output_path\\n1245 |     ]\\n1246 |     subprocess.run(command, check=True)\\n1247 |     print(f\\\"Audio added successfully =\\u003e {output_path}\\\")\\n1248 | \\n1249 | \",\n        \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_command_injection_risk\",\n        \"line_number\": 1246,\n        \"line_snippet\": \"subprocess.run(command, check=True)\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1059.004 Unix Shell\"\n            ],\n            \"confidence\": 95,\n            \"matched_patterns\": [\n                \"$subprocess_run_direct\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1059.004 Unix Shell\",\n                \"category\": \"Injection\",\n                \"confidence_note\": \"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n                \"severity\": \"4\",\n                \"traceability\": \"CIR-001..006\",\n                \"version\": \"1.1\"\n            },\n            \"yara_rule\": \"python_command_injection_risk\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\"\n        ],\n        \"code_snippet\": \"210 |                         import cpm_kernels\\n211 |                     except ImportError:\\n212 |                         print(\\\"Installing cpm_kernels...\\\")\\n213 |                         subprocess.run([sys.executable, \\\"-m\\\", \\\"pip\\\", \\\"install\\\", \\\"cpm_kernels\\\"], check=True)\\n214 |                         pass\\n215 |                     self.text_encoder.quantize(4)\\n216 |                 elif '8bit' in model_path:\",\n        \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n        \"file_path\": \"py/modules/kolors/loader.py\",\n        \"issue_type\": \"python_command_injection_risk\",\n        \"line_number\": 213,\n        \"line_snippet\": \"subprocess.run([sys.executable, \\\"-m\\\", \\\"pip\\\", \\\"install\\\", \\\"cpm_kernels\\\"], check=True)\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1059.004 Unix Shell\"\n            ],\n            \"confidence\": 95,\n            \"matched_patterns\": [\n                \"$subprocess_run_direct\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1059.004 Unix Shell\",\n                \"category\": \"Injection\",\n                \"confidence_note\": \"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects all os.system and subprocess usage for potential command injection vulnerabilities\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1059/004/\",\n                \"severity\": \"4\",\n                \"traceability\": \"CIR-001..006\",\n                \"version\": \"1.1\"\n            },\n            \"yara_rule\": \"python_command_injection_risk\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"42 |         try:\\n43 |             data = json.dumps(payload).encode(\\\"utf-8\\\")\\n44 |             req = urllib.request.Request(url, data=data, headers=headers, method=\\\"POST\\\")\\n45 |             with urllib.request.urlopen(req) as response:\\n46 |                 response_data = response.read().decode(\\\"utf-8\\\")\\n47 |             return response_data\\n48 |         except urllib.error.URLError as e:\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"py/libs/api/bizyair.py\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 45,\n        \"line_snippet\": \"with urllib.request.urlopen(req) as response:\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$http2\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"py/libs/api/bizyair.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$http2\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"            with urllib.request.urlopen(req) as response:\\n\",\n                                    \"line_number\": 45,\n                                    \"matched_data\": \"urllib.request.urlopen(\",\n                                    \"matched_length\": 23,\n                                    \"offset\": 17\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"40 |             \\\"prompt\\\": text\\n41 |         }\\n42 | \\n43 |         response = requests.post(url, json=json, headers=headers)\\n44 |         res = response.json()\\n45 |         if \\\"error\\\" in res:\\n46 |             return res['error']\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"py/libs/api/fluxai.py\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 43,\n        \"line_snippet\": \"response = requests.post(url, json=json, headers=headers)\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$http1\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"py/libs/api/fluxai.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$http1\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        response = requests.post(url, json=json, headers=headers)\\n\",\n                                    \"line_number\": 43,\n                                    \"matched_data\": \"requests.post(\",\n                                    \"matched_length\": 14,\n                                    \"offset\": 19\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\",\n            \"credential-access\"\n        ],\n        \"code_snippet\": \"101 |             files = {\\\"image\\\": (\\\"output.png\\\", image_byte, 'image/png')}\\n102 |             data['strength'] = strength\\n103 | \\n104 |         response = requests.post(url,\\n105 |             headers={\\\"authorization\\\": f\\\"{api_key}\\\", \\\"accept\\\": \\\"application/json\\\"},\\n106 |             files=files,\\n107 |             data=data,\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"py/libs/api/stability.py\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 104,\n        \"line_snippet\": \"response = requests.post(url,\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$http1\",\n                \"$http_file1\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"py/libs/api/stability.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$http1\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        response = requests.post(url,\\n\",\n                                    \"line_number\": 104,\n                                    \"matched_data\": \"requests.post(\",\n                                    \"matched_length\": 14,\n                                    \"offset\": 19\n                                },\n                                {\n                                    \"line\": \"            response = requests.get(url, headers={\\\"Authorization\\\": f\\\"Bearer {api_key}\\\"})\\n\",\n                                    \"line_number\": 133,\n                                    \"matched_data\": \"requests.get(\",\n                                    \"matched_length\": 13,\n                                    \"offset\": 23\n                                },\n                                {\n                                    \"line\": \"        response = requests.get(url, headers={\\n\",\n                                    \"line_number\": 146,\n                                    \"matched_data\": \"requests.get(\",\n                                    \"matched_length\": 13,\n                                    \"offset\": 19\n                                }\n                            ]\n                        },\n                        {\n                            \"identifier\": \"$http_file1\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        response = requests.post(url,\\n\",\n                                    \"line_number\": 104,\n                                    \"matched_data\": \"requests.post(url,\\n            headers={\\\"authorization\\\": f\\\"{api_key}\\\", \\\"accept\\\": \\\"application/json\\\"},\\n            files=\",\n                                    \"matched_length\": 120,\n                                    \"offset\": 19\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"47 |                   min: 0.5,\\n48 |                   precision: 2,\\n49 |                 });\\n50 |                 this.keypressBound = this.onKeypress.bind(this);\\n51 |             }\\n52 | \\n53 |             onAdded(){\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web_version/v1/js/bookmark.js\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 50,\n        \"line_snippet\": \"this.keypressBound = this.onKeypress.bind(this);\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket4\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v1/js/bookmark.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket4\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"                this.keypressBound = this.onKeypress.bind(this);\\n\",\n                                    \"line_number\": 50,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 58\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"27 | \\n28 |         this.buildDropdown();\\n29 | \\n30 |         this.onKeyDownBound = this.onKeyDown.bind(this);\\n31 |         this.onWheelBound = this.onWheel.bind(this);\\n32 |         this.onClickBound = this.onClick.bind(this);\\n33 | \",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web_version/v1/js/common/dropdown.js\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 30,\n        \"line_snippet\": \"this.onKeyDownBound = this.onKeyDown.bind(this);\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket4\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v1/js/common/dropdown.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket4\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        this.onKeyDownBound = this.onKeyDown.bind(this);\\n\",\n                                    \"line_number\": 30,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 44\n                                },\n                                {\n                                    \"line\": \"        this.onWheelBound = this.onWheel.bind(this);\\n\",\n                                    \"line_number\": 31,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 40\n                                },\n                                {\n                                    \"line\": \"        this.onClickBound = this.onClick.bind(this);\\n\",\n                                    \"line_number\": 32,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 40\n                                },\n                                {\n                                    \"line\": \"                parentListItem.addEventListener('mouseover', this.onMouseOver.bind(this, index, parentElement));\\n\",\n                                    \"line_number\": 66,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 77\n                                },\n                                {\n                                    \"line\": \"                listItem.addEventListener('mouseover', this.onMouseOver.bind(this, index, parentElement));\\n\",\n                                    \"line_number\": 75,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 71\n                                },\n                                {\n                                    \"line\": \"                listItem.addEventListener('mousedown', this.onMouseDown.bind(this, key));\\n\",\n                                    \"line_number\": 76,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 71\n                                },\n                                {\n                                    \"line\": \"        listItem.addEventListener('mouseover', this.onMouseOver.bind(this, index));\\n\",\n                                    \"line_number\": 87,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 63\n                                },\n                                {\n                                    \"line\": \"        listItem.addEventListener('mousedown', this.onMouseDown.bind(this, item));\\n\",\n                                    \"line_number\": 88,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 63\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"203 |                     if (originLinkInfo) {\\n204 |                         const originNode = oldNode.graph.getNodeById(originLinkInfo.origin_id);\\n205 |                         if (originNode) {\\n206 |                             originNode.connect(originLinkInfo.origin_slot, newNode, newInputIndex);\\n207 |                         }\\n208 |                     }\\n209 |                 }\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web_version/v1/js/easy/easyExtraMenu.js\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 206,\n        \"line_snippet\": \"originNode.connect(originLinkInfo.origin_slot, newNode, newInputIndex);\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket3\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v1/js/easy/easyExtraMenu.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"                            originNode.connect(originLinkInfo.origin_slot, newNode, newInputIndex);\\n\",\n                                    \"line_number\": 206,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 38\n                                },\n                                {\n                                    \"line\": \"                                newNode.connect(newOutputIndex, targetNode, targetLinkInfo.target_slot);\\n\",\n                                    \"line_number\": 229,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 39\n                                },\n                                {\n                                    \"line\": \"                    newNode.connect(0, ksampler, newInputIndex);\\n\",\n                                    \"line_number\": 262,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 27\n                                },\n                                {\n                                    \"line\": \"            output_node.connect(output_slot, newNode.id, input_name)\\n\",\n                                    \"line_number\": 458,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 29\n                                },\n                                {\n                                    \"line\": \"            newNode.connect(output_name, input_node, input_slot)\\n\",\n                                    \"line_number\": 462,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 25\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"240 |         }\\n241 |         var target_node = nodes[link_info[2]];\\n242 |         if( origin_node \\u0026\\u0026 target_node )\\n243 |             origin_node.connect(link_info[1], target_node, link_info[3]);\\n244 |         else\\n245 |             console.warn(\\\"Warning, nodes missing on pasting\\\");\\n246 |     }\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web_version/v1/js/easy/easyQuick.js\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 243,\n        \"line_snippet\": \"origin_node.connect(link_info[1], target_node, link_info[3]);\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket3\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v1/js/easy/easyQuick.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"            origin_node.connect(link_info[1], target_node, link_info[3]);\\n\",\n                                    \"line_number\": 243,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 37\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\",\n            \"any-folder-access\",\n            \"any-network-requests\",\n            \"obfuscated-code\"\n        ],\n        \"code_snippet\": \" 6 |  */\\n 7 | function t(t,e){return e.forEach((function(e){e\\u0026\\u0026\\\"string\\\"!=typeof e\\u0026\\u0026!Array.isArray(e)\\u0026\\u0026Object.keys(e).forEach((function(i){if(\\\"default\\\"!==i\\u0026\\u0026!(i in t)){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}}))})),Object.freeze(t)}var e=\\\"undefined\\\"!=typeof global?global:\\\"undefined\\\"!=typeof self?self:\\\"undefined\\\"!=typeof window?window:{},i=[],r=[],n=\\\"undefined\\\"!=typeof Uint8Array?Uint8Array:Array,o=!1;function s(){o=!0;for(var t=\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\",e=0;e\\u003c64;++e)i[e]=t[e],r[t.charCodeAt(e)]=e;r[\\\"-\\\".charCodeAt(0)]=62,r[\\\"_\\\".charCodeAt(0)]=63}function a(t,e,r){for(var n,o,s=[],a=e;a\\u003cr;a+=3)n=(t[a]\\u003c\\u003c16)+(t[a+1]\\u003c\\u003c8)+t[a+2],s.push(i[(o=n)\\u003e\\u003e18\\u002663]+i[o\\u003e\\u003e12\\u002663]+i[o\\u003e\\u003e6\\u002663]+i[63\\u0026o]);return s.join(\\\"\\\")}function h(t){var e;o||s();for(var r=t.length,n=r%3,h=\\\"\\\",c=[],l=16383,u=0,f=r-n;u\\u003cf;u+=l)c.push(a(t,u,u+l\\u003ef?f:u+l));return 1===n?(e=t[r-1],h+=i[e\\u003e\\u003e2],h+=i[e\\u003c\\u003c4\\u002663],h+=\\\"==\\\"):2===n\\u0026\\u0026(e=(t[r-2]\\u003c\\u003c8)+t[r-1],h+=i[e\\u003e\\u003e10],h+=i[e\\u003e\\u003e4\\u002663],h+=i[e\\u003c\\u003c2\\u002663],h+=\\\"=\\\"),c.push(h),c.join(\\\"\\\")}function c(t,e,i,r,n){var o,s,a=8*n-r-1,h=(1\\u003c\\u003ca)-1,c=h\\u003e\\u003e1,l=-7,u=i?n-1:0,f=i?-1:1,d=t[e+u];for(u+=f,o=d\\u0026(1\\u003c\\u003c-l)-1,d\\u003e\\u003e=-l,l+=a;l\\u003e0;o=256*o+t[e+u],u+=f,l-=8);for(s=o\\u0026(1\\u003c\\u003c-l)-1,o\\u003e\\u003e=-l,l+=r;l\\u003e0;s=256*s+t[e+u],u+=f,l-=8);if(0===o)o=1-c;else{if(o===h)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=c}return(d?-1:1)*s*Math.pow(2,o-r)}function l(t,e,i,r,n,o){var s,a,h,c=8*o-n-1,l=(1\\u003c\\u003cc)-1,u=l\\u003e\\u003e1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,g=r?1:-1,p=e\\u003c0||0===e\\u0026\\u00261/e\\u003c0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-s))\\u003c1\\u0026\\u0026(s--,h*=2),(e+=s+u\\u003e=1?f/h:f*Math.pow(2,1-u))*h\\u003e=2\\u0026\\u0026(s++,h/=2),s+u\\u003e=l?(a=0,s=l):s+u\\u003e=1?(a=(e*h-1)*Math.pow(2,n),s+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,n),s=0));n\\u003e=8;t[i+d]=255\\u0026a,d+=g,a/=256,n-=8);for(s=s\\u003c\\u003cn|a,c+=n;c\\u003e0;t[i+d]=255\\u0026s,d+=g,s/=256,c-=8);t[i+d-g]|=128*p}var u={}.toString,f=Array.isArray||function(t){return\\\"[object Array]\\\"==u.call(t)};function d(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(t,e){if(d()\\u003ce)throw new RangeError(\\\"Invalid typed array length\\\");return p.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=p.prototype:(null===t\\u0026\\u0026(t=new p(e)),t.length=e),t}function p(t,e,i){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(t,e,i);if(\\\"number\\\"==typeof t){if(\\\"string\\\"==typeof e)throw new Error(\\\"If encoding is specified then the first argument must be a string\\\");return y(this,t)}return v(this,t,e,i)}function v(t,e,i,r){if(\\\"number\\\"==typeof e)throw new TypeError('\\\"value\\\" argument must not be a number');return\\\"undefined\\\"!=typeof ArrayBuffer\\u0026\\u0026e instanceof ArrayBuffer?function(t,e,i,r){if(e.byteLength,i\\u003c0||e.byteLength\\u003ci)throw new RangeError(\\\"'offset' is out of bounds\\\");if(e.byteLength\\u003ci+(r||0))throw new RangeError(\\\"'length' is out of bounds\\\");e=void 0===i\\u0026\\u0026void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,i):new Uint8Array(e,i,r);p.TYPED_ARRAY_SUPPORT?(t=e).__proto__=p.prototype:t=_(t,e);return t}(t,e,i,r):\\\"string\\\"==typeof e?function(t,e,i){\\\"string\\\"==typeof i\\u0026\\u0026\\\"\\\"!==i||(i=\\\"utf8\\\");if(!p.isEncoding(i))throw new TypeError('\\\"encoding\\\" must be a valid string encoding');var r=0|C(e,i);t=g(t,r);var n=t.write(e,i);n!==r\\u0026\\u0026(t=t.slice(0,n));return t}(t,e,i):function(t,e){if(x(e)){var i=0|b(e.length);return 0===(t=g(t,i)).length||e.copy(t,0,0,i),t}if(e){if(\\\"undefined\\\"!=typeof ArrayBuffer\\u0026\\u0026e.buffer instanceof ArrayBuffer||\\\"length\\\"in e)return\\\"number\\\"!=typeof e.length||(r=e.length)!=r?g(t,0):_(t,e);if(\\\"Buffer\\\"===e.type\\u0026\\u0026f(e.data))return _(t,e.data)}var r;throw new TypeError(\\\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\\\")}(t,e)}function m(t){if(\\\"number\\\"!=typeof t)throw new TypeError('\\\"size\\\" argument must be a number');if(t\\u003c0)throw new RangeError('\\\"size\\\" argument must not be negative')}function y(t,e){if(m(e),t=g(t,e\\u003c0?0:0|b(e)),!p.TYPED_ARRAY_SUPPORT)for(var i=0;i\\u003ce;++i)t[i]=0;return t}function _(t,e){var i=e.length\\u003c0?0:0|b(e.length);t=g(t,i);for(var r=0;r\\u003ci;r+=1)t[r]=255\\u0026e[r];return t}function b(t){if(t\\u003e=d())throw new RangeError(\\\"Attempt to allocate Buffer larger than maximum size: 0x\\\"+d().toString(16)+\\\" bytes\\\");return 0|t}function x(t){return!(null==t||!t._isBuffer)}function C(t,e){if(x(t))return t.length;if(\\\"undefined\\\"!=typeof ArrayBuffer\\u0026\\u0026\\\"function\\\"==typeof ArrayBuffer.isView\\u0026\\u0026(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;\\\"string\\\"!=typeof t\\u0026\\u0026(t=\\\"\\\"+t);var i=t.length;if(0===i)return 0;for(var r=!1;;)switch(e){case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":return i;case\\\"utf8\\\":case\\\"utf-8\\\":case void 0:return K(t).length;case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return 2*i;case\\\"hex\\\":return i\\u003e\\u003e\\u003e1;case\\\"base64\\\":return J(t).length;default:if(r)return K(t).length;e=(\\\"\\\"+e).toLowerCase(),r=!0}}function w(t,e,i){var r=!1;if((void 0===e||e\\u003c0)\\u0026\\u0026(e=0),e\\u003ethis.length)return\\\"\\\";if((void 0===i||i\\u003ethis.length)\\u0026\\u0026(i=this.length),i\\u003c=0)return\\\"\\\";if((i\\u003e\\u003e\\u003e=0)\\u003c=(e\\u003e\\u003e\\u003e=0))return\\\"\\\";for(t||(t=\\\"utf8\\\");;)switch(t){case\\\"hex\\\":return B(this,e,i);case\\\"utf8\\\":case\\\"utf-8\\\":return F(this,e,i);case\\\"ascii\\\":return I(this,e,i);case\\\"latin1\\\":case\\\"binary\\\":return R(this,e,i);case\\\"base64\\\":return j(this,e,i);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return Y(this,e,i);default:if(r)throw new TypeError(\\\"Unknown encoding: \\\"+t);t=(t+\\\"\\\").toLowerCase(),r=!0}}function S(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function T(t,e,i,r,n){if(0===t.length)return-1;if(\\\"string\\\"==typeof i?(r=i,i=0):i\\u003e2147483647?i=2147483647:i\\u003c-2147483648\\u0026\\u0026(i=-2147483648),i=+i,isNaN(i)\\u0026\\u0026(i=n?0:t.length-1),i\\u003c0\\u0026\\u0026(i=t.length+i),i\\u003e=t.length){if(n)return-1;i=t.length-1}else if(i\\u003c0){if(!n)return-1;i=0}if(\\\"string\\\"==typeof e\\u0026\\u0026(e=p.from(e,r)),x(e))return 0===e.length?-1:O(t,e,i,r,n);if(\\\"number\\\"==typeof e)return e\\u0026=255,p.TYPED_ARRAY_SUPPORT\\u0026\\u0026\\\"function\\\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):O(t,[e],i,r,n);throw new TypeError(\\\"val must be string, number or Buffer\\\")}function O(t,e,i,r,n){var o,s=1,a=t.length,h=e.length;if(void 0!==r\\u0026\\u0026(\\\"ucs2\\\"===(r=String(r).toLowerCase())||\\\"ucs-2\\\"===r||\\\"utf16le\\\"===r||\\\"utf-16le\\\"===r)){if(t.length\\u003c2||e.length\\u003c2)return-1;s=2,a/=2,h/=2,i/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(n){var l=-1;for(o=i;o\\u003ca;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l\\u0026\\u0026(l=o),o-l+1===h)return l*s}else-1!==l\\u0026\\u0026(o-=o-l),l=-1}else for(i+h\\u003ea\\u0026\\u0026(i=a-h),o=i;o\\u003e=0;o--){for(var u=!0,f=0;f\\u003ch;f++)if(c(t,o+f)!==c(e,f)){u=!1;break}if(u)return o}return-1}function P(t,e,i,r){i=Number(i)||0;var n=t.length-i;r?(r=Number(r))\\u003en\\u0026\\u0026(r=n):r=n;var o=e.length;if(o%2!=0)throw new TypeError(\\\"Invalid hex string\\\");r\\u003eo/2\\u0026\\u0026(r=o/2);for(var s=0;s\\u003cr;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[i+s]=a}return s}function E(t,e,i,r){return Z(K(e,t.length-i),t,i,r)}function k(t,e,i,r){return Z(function(t){for(var e=[],i=0;i\\u003ct.length;++i)e.push(255\\u0026t.charCodeAt(i));return e}(e),t,i,r)}function A(t,e,i,r){return k(t,e,i,r)}function D(t,e,i,r){return Z(J(e),t,i,r)}function M(t,e,i,r){return Z(function(t,e){for(var i,r,n,o=[],s=0;s\\u003ct.length\\u0026\\u0026!((e-=2)\\u003c0);++s)r=(i=t.charCodeAt(s))\\u003e\\u003e8,n=i%256,o.push(n),o.push(r);return o}(e,t.length-i),t,i,r)}function j(t,e,i){return 0===e\\u0026\\u0026i===t.length?h(t):h(t.slice(e,i))}function F(t,e,i){i=Math.min(t.length,i);for(var r=[],n=e;n\\u003ci;){var o,s,a,h,c=t[n],l=null,u=c\\u003e239?4:c\\u003e223?3:c\\u003e191?2:1;if(n+u\\u003c=i)switch(u){case 1:c\\u003c128\\u0026\\u0026(l=c);break;case 2:128==(192\\u0026(o=t[n+1]))\\u0026\\u0026(h=(31\\u0026c)\\u003c\\u003c6|63\\u0026o)\\u003e127\\u0026\\u0026(l=h);break;case 3:o=t[n+1],s=t[n+2],128==(192\\u0026o)\\u0026\\u0026128==(192\\u0026s)\\u0026\\u0026(h=(15\\u0026c)\\u003c\\u003c12|(63\\u0026o)\\u003c\\u003c6|63\\u0026s)\\u003e2047\\u0026\\u0026(h\\u003c55296||h\\u003e57343)\\u0026\\u0026(l=h);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],128==(192\\u0026o)\\u0026\\u0026128==(192\\u0026s)\\u0026\\u0026128==(192\\u0026a)\\u0026\\u0026(h=(15\\u0026c)\\u003c\\u003c18|(63\\u0026o)\\u003c\\u003c12|(63\\u0026s)\\u003c\\u003c6|63\\u0026a)\\u003e65535\\u0026\\u0026h\\u003c1114112\\u0026\\u0026(l=h)}null===l?(l=65533,u=1):l\\u003e65535\\u0026\\u0026(l-=65536,r.push(l\\u003e\\u003e\\u003e10\\u00261023|55296),l=56320|1023\\u0026l),r.push(l),n+=u}return function(t){var e=t.length;if(e\\u003c=L)return String.fromCharCode.apply(String,t);var i=\\\"\\\",r=0;for(;r\\u003ce;)i+=String.fromCharCode.apply(String,t.slice(r,r+=L));return i}(r)}p.TYPED_ARRAY_SUPPORT=void 0===e.TYPED_ARRAY_SUPPORT||e.TYPED_ARRAY_SUPPORT,d(),p.poolSize=8192,p._augment=function(t){return t.__proto__=p.prototype,t},p.from=function(t,e,i){return v(null,t,e,i)},p.TYPED_ARRAY_SUPPORT\\u0026\\u0026(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026Symbol.species\\u0026\\u0026p[Symbol.species]),p.alloc=function(t,e,i){return function(t,e,i,r){return m(e),e\\u003c=0?g(t,e):void 0!==i?\\\"string\\\"==typeof r?g(t,e).fill(i,r):g(t,e).fill(i):g(t,e)}(null,t,e,i)},p.allocUnsafe=function(t){return y(null,t)},p.allocUnsafeSlow=function(t){return y(null,t)},p.isBuffer=function(t){return null!=t\\u0026\\u0026(!!t._isBuffer||$(t)||function(t){return\\\"function\\\"==typeof t.readFloatLE\\u0026\\u0026\\\"function\\\"==typeof t.slice\\u0026\\u0026$(t.slice(0,0))}(t))},p.compare=function(t,e){if(!x(t)||!x(e))throw new TypeError(\\\"Arguments must be Buffers\\\");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);n\\u003co;++n)if(t[n]!==e[n]){i=t[n],r=e[n];break}return i\\u003cr?-1:r\\u003ci?1:0},p.isEncoding=function(t){switch(String(t).toLowerCase()){case\\\"hex\\\":case\\\"utf8\\\":case\\\"utf-8\\\":case\\\"ascii\\\":case\\\"latin1\\\":case\\\"binary\\\":case\\\"base64\\\":case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return!0;default:return!1}},p.concat=function(t,e){if(!f(t))throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');if(0===t.length)return p.alloc(0);var i;if(void 0===e)for(e=0,i=0;i\\u003ct.length;++i)e+=t[i].length;var r=p.allocUnsafe(e),n=0;for(i=0;i\\u003ct.length;++i){var o=t[i];if(!x(o))throw new TypeError('\\\"list\\\" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},p.byteLength=C,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\\\"Buffer size must be a multiple of 16-bits\\\");for(var e=0;e\\u003ct;e+=2)S(this,e,e+1);return this},p.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\\\"Buffer size must be a multiple of 32-bits\\\");for(var e=0;e\\u003ct;e+=4)S(this,e,e+3),S(this,e+1,e+2);return this},p.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\\\"Buffer size must be a multiple of 64-bits\\\");for(var e=0;e\\u003ct;e+=8)S(this,e,e+7),S(this,e+1,e+6),S(this,e+2,e+5),S(this,e+3,e+4);return this},p.prototype.toString=function(){var t=0|this.length;return 0===t?\\\"\\\":0===arguments.length?F(this,0,t):w.apply(this,arguments)},p.prototype.equals=function(t){if(!x(t))throw new TypeError(\\\"Argument must be a Buffer\\\");return this===t||0===p.compare(this,t)},p.prototype.inspect=function(){var t=\\\"\\\";return this.length\\u003e0\\u0026\\u0026(t=this.toString(\\\"hex\\\",0,50).match(/.{2}/g).join(\\\" \\\"),this.length\\u003e50\\u0026\\u0026(t+=\\\" ... \\\")),\\\"\\u003cBuffer \\\"+t+\\\"\\u003e\\\"},p.prototype.compare=function(t,e,i,r,n){if(!x(t))throw new TypeError(\\\"Argument must be a Buffer\\\");if(void 0===e\\u0026\\u0026(e=0),void 0===i\\u0026\\u0026(i=t?t.length:0),void 0===r\\u0026\\u0026(r=0),void 0===n\\u0026\\u0026(n=this.length),e\\u003c0||i\\u003et.length||r\\u003c0||n\\u003ethis.length)throw new RangeError(\\\"out of range index\\\");if(r\\u003e=n\\u0026\\u0026e\\u003e=i)return 0;if(r\\u003e=n)return-1;if(e\\u003e=i)return 1;if(this===t)return 0;for(var o=(n\\u003e\\u003e\\u003e=0)-(r\\u003e\\u003e\\u003e=0),s=(i\\u003e\\u003e\\u003e=0)-(e\\u003e\\u003e\\u003e=0),a=Math.min(o,s),h=this.slice(r,n),c=t.slice(e,i),l=0;l\\u003ca;++l)if(h[l]!==c[l]){o=h[l],s=c[l];break}return o\\u003cs?-1:s\\u003co?1:0},p.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},p.prototype.indexOf=function(t,e,i){return T(this,t,e,i,!0)},p.prototype.lastIndexOf=function(t,e,i){return T(this,t,e,i,!1)},p.prototype.write=function(t,e,i,r){if(void 0===e)r=\\\"utf8\\\",i=this.length,e=0;else if(void 0===i\\u0026\\u0026\\\"string\\\"==typeof e)r=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error(\\\"Buffer.write(string, encoding, offset[, length]) is no longer supported\\\");e|=0,isFinite(i)?(i|=0,void 0===r\\u0026\\u0026(r=\\\"utf8\\\")):(r=i,i=void 0)}var n=this.length-e;if((void 0===i||i\\u003en)\\u0026\\u0026(i=n),t.length\\u003e0\\u0026\\u0026(i\\u003c0||e\\u003c0)||e\\u003ethis.length)throw new RangeError(\\\"Attempt to write outside buffer bounds\\\");r||(r=\\\"utf8\\\");for(var o=!1;;)switch(r){case\\\"hex\\\":return P(this,t,e,i);case\\\"utf8\\\":case\\\"utf-8\\\":return E(this,t,e,i);case\\\"ascii\\\":return k(this,t,e,i);case\\\"latin1\\\":case\\\"binary\\\":return A(this,t,e,i);case\\\"base64\\\":return D(this,t,e,i);case\\\"ucs2\\\":case\\\"ucs-2\\\":case\\\"utf16le\\\":case\\\"utf-16le\\\":return M(this,t,e,i);default:if(o)throw new TypeError(\\\"Unknown encoding: \\\"+r);r=(\\\"\\\"+r).toLowerCase(),o=!0}},p.prototype.toJSON=function(){return{type:\\\"Buffer\\\",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(t,e,i){var r=\\\"\\\";i=Math.min(t.length,i);for(var n=e;n\\u003ci;++n)r+=String.fromCharCode(127\\u0026t[n]);return r}function R(t,e,i){var r=\\\"\\\";i=Math.min(t.length,i);for(var n=e;n\\u003ci;++n)r+=String.fromCharCode(t[n]);return r}function B(t,e,i){var r=t.length;(!e||e\\u003c0)\\u0026\\u0026(e=0),(!i||i\\u003c0||i\\u003er)\\u0026\\u0026(i=r);for(var n=\\\"\\\",o=e;o\\u003ci;++o)n+=q(t[o]);return n}function Y(t,e,i){for(var r=t.slice(e,i),n=\\\"\\\",o=0;o\\u003cr.length;o+=2)n+=String.fromCharCode(r[o]+256*r[o+1]);return n}function X(t,e,i){if(t%1!=0||t\\u003c0)throw new RangeError(\\\"offset is not uint\\\");if(t+e\\u003ei)throw new RangeError(\\\"Trying to access beyond buffer length\\\")}function U(t,e,i,r,n,o){if(!x(t))throw new TypeError('\\\"buffer\\\" argument must be a Buffer instance');if(e\\u003en||e\\u003co)throw new RangeError('\\\"value\\\" argument is out of bounds');if(i+r\\u003et.length)throw new RangeError(\\\"Index out of range\\\")}function G(t,e,i,r){e\\u003c0\\u0026\\u0026(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n\\u003co;++n)t[i+n]=(e\\u0026255\\u003c\\u003c8*(r?n:1-n))\\u003e\\u003e\\u003e8*(r?n:1-n)}function H(t,e,i,r){e\\u003c0\\u0026\\u0026(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n\\u003co;++n)t[i+n]=e\\u003e\\u003e\\u003e8*(r?n:3-n)\\u0026255}function W(t,e,i,r,n,o){if(i+r\\u003et.length)throw new RangeError(\\\"Index out of range\\\");if(i\\u003c0)throw new RangeError(\\\"Index out of range\\\")}function z(t,e,i,r,n){return n||W(t,0,i,4),l(t,e,i,r,23,4),i+4}function N(t,e,i,r,n){return n||W(t,0,i,8),l(t,e,i,r,52,8),i+8}p.prototype.slice=function(t,e){var i,r=this.length;if((t=~~t)\\u003c0?(t+=r)\\u003c0\\u0026\\u0026(t=0):t\\u003er\\u0026\\u0026(t=r),(e=void 0===e?r:~~e)\\u003c0?(e+=r)\\u003c0\\u0026\\u0026(e=0):e\\u003er\\u0026\\u0026(e=r),e\\u003ct\\u0026\\u0026(e=t),p.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,e)).__proto__=p.prototype;else{var n=e-t;i=new p(n,void 0);for(var o=0;o\\u003cn;++o)i[o]=this[o+t]}return i},p.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||X(t,e,this.length);for(var r=this[t],n=1,o=0;++o\\u003ce\\u0026\\u0026(n*=256);)r+=this[t+o]*n;return r},p.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||X(t,e,this.length);for(var r=this[t+--e],n=1;e\\u003e0\\u0026\\u0026(n*=256);)r+=this[t+--e]*n;return r},p.prototype.readUInt8=function(t,e){return e||X(t,1,this.length),this[t]},p.prototype.readUInt16LE=function(t,e){return e||X(t,2,this.length),this[t]|this[t+1]\\u003c\\u003c8},p.prototype.readUInt16BE=function(t,e){return e||X(t,2,this.length),this[t]\\u003c\\u003c8|this[t+1]},p.prototype.readUInt32LE=function(t,e){return e||X(t,4,this.length),(this[t]|this[t+1]\\u003c\\u003c8|this[t+2]\\u003c\\u003c16)+16777216*this[t+3]},p.prototype.readUInt32BE=function(t,e){return e||X(t,4,this.length),16777216*this[t]+(this[t+1]\\u003c\\u003c16|this[t+2]\\u003c\\u003c8|this[t+3])},p.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||X(t,e,this.length);for(var r=this[t],n=1,o=0;++o\\u003ce\\u0026\\u0026(n*=256);)r+=this[t+o]*n;return r\\u003e=(n*=128)\\u0026\\u0026(r-=Math.pow(2,8*e)),r},p.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||X(t,e,this.length);for(var r=e,n=1,o=this[t+--r];r\\u003e0\\u0026\\u0026(n*=256);)o+=this[t+--r]*n;return o\\u003e=(n*=128)\\u0026\\u0026(o-=Math.pow(2,8*e)),o},p.prototype.readInt8=function(t,e){return e||X(t,1,this.length),128\\u0026this[t]?-1*(255-this[t]+1):this[t]},p.prototype.readInt16LE=function(t,e){e||X(t,2,this.length);var i=this[t]|this[t+1]\\u003c\\u003c8;return 32768\\u0026i?4294901760|i:i},p.prototype.readInt16BE=function(t,e){e||X(t,2,this.length);var i=this[t+1]|this[t]\\u003c\\u003c8;return 32768\\u0026i?4294901760|i:i},p.prototype.readInt32LE=function(t,e){return e||X(t,4,this.length),this[t]|this[t+1]\\u003c\\u003c8|this[t+2]\\u003c\\u003c16|this[t+3]\\u003c\\u003c24},p.prototype.readInt32BE=function(t,e){return e||X(t,4,this.length),this[t]\\u003c\\u003c24|this[t+1]\\u003c\\u003c16|this[t+2]\\u003c\\u003c8|this[t+3]},p.prototype.readFloatLE=function(t,e){return e||X(t,4,this.length),c(this,t,!0,23,4)},p.prototype.readFloatBE=function(t,e){return e||X(t,4,this.length),c(this,t,!1,23,4)},p.prototype.readDoubleLE=function(t,e){return e||X(t,8,this.length),c(this,t,!0,52,8)},p.prototype.readDoubleBE=function(t,e){return e||X(t,8,this.length),c(this,t,!1,52,8)},p.prototype.writeUIntLE=function(t,e,i,r){(t=+t,e|=0,i|=0,r)||U(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255\\u0026t;++o\\u003ci\\u0026\\u0026(n*=256);)this[e+o]=t/n\\u0026255;return e+i},p.prototype.writeUIntBE=function(t,e,i,r){(t=+t,e|=0,i|=0,r)||U(this,t,e,i,Math.pow(2,8*i)-1,0);var n=i-1,o=1;for(this[e+n]=255\\u0026t;--n\\u003e=0\\u0026\\u0026(o*=256);)this[e+n]=t/o\\u0026255;return e+i},p.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,1,255,0),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255\\u0026t,e+1},p.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=255\\u0026t,this[e+1]=t\\u003e\\u003e\\u003e8):G(this,t,e,!0),e+2},p.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t\\u003e\\u003e\\u003e8,this[e+1]=255\\u0026t):G(this,t,e,!1),e+2},p.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e+3]=t\\u003e\\u003e\\u003e24,this[e+2]=t\\u003e\\u003e\\u003e16,this[e+1]=t\\u003e\\u003e\\u003e8,this[e]=255\\u0026t):H(this,t,e,!0),e+4},p.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t\\u003e\\u003e\\u003e24,this[e+1]=t\\u003e\\u003e\\u003e16,this[e+2]=t\\u003e\\u003e\\u003e8,this[e+3]=255\\u0026t):H(this,t,e,!1),e+4},p.prototype.writeIntLE=function(t,e,i,r){if(t=+t,e|=0,!r){var n=Math.pow(2,8*i-1);U(this,t,e,i,n-1,-n)}var o=0,s=1,a=0;for(this[e]=255\\u0026t;++o\\u003ci\\u0026\\u0026(s*=256);)t\\u003c0\\u0026\\u00260===a\\u0026\\u00260!==this[e+o-1]\\u0026\\u0026(a=1),this[e+o]=(t/s\\u003e\\u003e0)-a\\u0026255;return e+i},p.prototype.writeIntBE=function(t,e,i,r){if(t=+t,e|=0,!r){var n=Math.pow(2,8*i-1);U(this,t,e,i,n-1,-n)}var o=i-1,s=1,a=0;for(this[e+o]=255\\u0026t;--o\\u003e=0\\u0026\\u0026(s*=256);)t\\u003c0\\u0026\\u00260===a\\u0026\\u00260!==this[e+o+1]\\u0026\\u0026(a=1),this[e+o]=(t/s\\u003e\\u003e0)-a\\u0026255;return e+i},p.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,1,127,-128),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t\\u003c0\\u0026\\u0026(t=255+t+1),this[e]=255\\u0026t,e+1},p.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=255\\u0026t,this[e+1]=t\\u003e\\u003e\\u003e8):G(this,t,e,!0),e+2},p.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=t\\u003e\\u003e\\u003e8,this[e+1]=255\\u0026t):G(this,t,e,!1),e+2},p.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[e]=255\\u0026t,this[e+1]=t\\u003e\\u003e\\u003e8,this[e+2]=t\\u003e\\u003e\\u003e16,this[e+3]=t\\u003e\\u003e\\u003e24):H(this,t,e,!0),e+4},p.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,2147483647,-2147483648),t\\u003c0\\u0026\\u0026(t=4294967295+t+1),p.TYPED_ARRAY_SUPPORT?(this[e]=t\\u003e\\u003e\\u003e24,this[e+1]=t\\u003e\\u003e\\u003e16,this[e+2]=t\\u003e\\u003e\\u003e8,this[e+3]=255\\u0026t):H(this,t,e,!1),e+4},p.prototype.writeFloatLE=function(t,e,i){return z(this,t,e,!0,i)},p.prototype.writeFloatBE=function(t,e,i){return z(this,t,e,!1,i)},p.prototype.writeDoubleLE=function(t,e,i){return N(this,t,e,!0,i)},p.prototype.writeDoubleBE=function(t,e,i){return N(this,t,e,!1,i)},p.prototype.copy=function(t,e,i,r){if(i||(i=0),r||0===r||(r=this.length),e\\u003e=t.length\\u0026\\u0026(e=t.length),e||(e=0),r\\u003e0\\u0026\\u0026r\\u003ci\\u0026\\u0026(r=i),r===i)return 0;if(0===t.length||0===this.length)return 0;if(e\\u003c0)throw new RangeError(\\\"targetStart out of bounds\\\");if(i\\u003c0||i\\u003e=this.length)throw new RangeError(\\\"sourceStart out of bounds\\\");if(r\\u003c0)throw new RangeError(\\\"sourceEnd out of bounds\\\");r\\u003ethis.length\\u0026\\u0026(r=this.length),t.length-e\\u003cr-i\\u0026\\u0026(r=t.length-e+i);var n,o=r-i;if(this===t\\u0026\\u0026i\\u003ce\\u0026\\u0026e\\u003cr)for(n=o-1;n\\u003e=0;--n)t[n+e]=this[n+i];else if(o\\u003c1e3||!p.TYPED_ARRAY_SUPPORT)for(n=0;n\\u003co;++n)t[n+e]=this[n+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},p.prototype.fill=function(t,e,i,r){if(\\\"string\\\"==typeof t){if(\\\"string\\\"==typeof e?(r=e,e=0,i=this.length):\\\"string\\\"==typeof i\\u0026\\u0026(r=i,i=this.length),1===t.length){var n=t.charCodeAt(0);n\\u003c256\\u0026\\u0026(t=n)}if(void 0!==r\\u0026\\u0026\\\"string\\\"!=typeof r)throw new TypeError(\\\"encoding must be a string\\\");if(\\\"string\\\"==typeof r\\u0026\\u0026!p.isEncoding(r))throw new TypeError(\\\"Unknown encoding: \\\"+r)}else\\\"number\\\"==typeof t\\u0026\\u0026(t\\u0026=255);if(e\\u003c0||this.length\\u003ce||this.length\\u003ci)throw new RangeError(\\\"Out of range index\\\");if(i\\u003c=e)return this;var o;if(e\\u003e\\u003e\\u003e=0,i=void 0===i?this.length:i\\u003e\\u003e\\u003e0,t||(t=0),\\\"number\\\"==typeof t)for(o=e;o\\u003ci;++o)this[o]=t;else{var s=x(t)?t:K(new p(t,r).toString()),a=s.length;for(o=0;o\\u003ci-e;++o)this[o+e]=s[o%a]}return this};var V=/[^+\\\\/0-9A-Za-z-_]/g;function q(t){return t\\u003c16?\\\"0\\\"+t.toString(16):t.toString(16)}function K(t,e){var i;e=e||1/0;for(var r=t.length,n=null,o=[],s=0;s\\u003cr;++s){if((i=t.charCodeAt(s))\\u003e55295\\u0026\\u0026i\\u003c57344){if(!n){if(i\\u003e56319){(e-=3)\\u003e-1\\u0026\\u0026o.push(239,191,189);continue}if(s+1===r){(e-=3)\\u003e-1\\u0026\\u0026o.push(239,191,189);continue}n=i;continue}if(i\\u003c56320){(e-=3)\\u003e-1\\u0026\\u0026o.push(239,191,189),n=i;continue}i=65536+(n-55296\\u003c\\u003c10|i-56320)}else n\\u0026\\u0026(e-=3)\\u003e-1\\u0026\\u0026o.push(239,191,189);if(n=null,i\\u003c128){if((e-=1)\\u003c0)break;o.push(i)}else if(i\\u003c2048){if((e-=2)\\u003c0)break;o.push(i\\u003e\\u003e6|192,63\\u0026i|128)}else if(i\\u003c65536){if((e-=3)\\u003c0)break;o.push(i\\u003e\\u003e12|224,i\\u003e\\u003e6\\u002663|128,63\\u0026i|128)}else{if(!(i\\u003c1114112))throw new Error(\\\"Invalid code point\\\");if((e-=4)\\u003c0)break;o.push(i\\u003e\\u003e18|240,i\\u003e\\u003e12\\u002663|128,i\\u003e\\u003e6\\u002663|128,63\\u0026i|128)}}return o}function J(t){return function(t){var e,i,a,h,c,l;o||s();var u=t.length;if(u%4\\u003e0)throw new Error(\\\"Invalid string. Length must be a multiple of 4\\\");c=\\\"=\\\"===t[u-2]?2:\\\"=\\\"===t[u-1]?1:0,l=new n(3*u/4-c),a=c\\u003e0?u-4:u;var f=0;for(e=0,i=0;e\\u003ca;e+=4,i+=3)h=r[t.charCodeAt(e)]\\u003c\\u003c18|r[t.charCodeAt(e+1)]\\u003c\\u003c12|r[t.charCodeAt(e+2)]\\u003c\\u003c6|r[t.charCodeAt(e+3)],l[f++]=h\\u003e\\u003e16\\u0026255,l[f++]=h\\u003e\\u003e8\\u0026255,l[f++]=255\\u0026h;return 2===c?(h=r[t.charCodeAt(e)]\\u003c\\u003c2|r[t.charCodeAt(e+1)]\\u003e\\u003e4,l[f++]=255\\u0026h):1===c\\u0026\\u0026(h=r[t.charCodeAt(e)]\\u003c\\u003c10|r[t.charCodeAt(e+1)]\\u003c\\u003c4|r[t.charCodeAt(e+2)]\\u003e\\u003e2,l[f++]=h\\u003e\\u003e8\\u0026255,l[f++]=255\\u0026h),l}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\")}(t).replace(V,\\\"\\\")).length\\u003c2)return\\\"\\\";for(;t.length%4!=0;)t+=\\\"=\\\";return t}(t))}function Z(t,e,i,r){for(var n=0;n\\u003cr\\u0026\\u0026!(n+i\\u003e=e.length||n\\u003e=t.length);++n)e[n+i]=t[n];return n}function $(t){return!!t.constructor\\u0026\\u0026\\\"function\\\"==typeof t.constructor.isBuffer\\u0026\\u0026t.constructor.isBuffer(t)}function Q(t){if(t.__esModule)return t;var e=Object.defineProperty({},\\\"__esModule\\\",{value:!0});return Object.keys(t).forEach((function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})})),e}var tt={},et={},it=Q(t({__proto__:null,default:et},[et]));!function(t){\\n 8 | /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */\\n 9 | var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=document.implementation.createHTMLDocument(\\\"\\\"),T.window=window;else{var O=new it.JSDOM(decodeURIComponent(\\\"%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E\\\"),{features:{FetchExternalResources:[\\\"img\\\"]},resources:\\\"usable\\\"}).window;T.document=O.document,T.jsdomImplForWrapper=it.implForWrapper,T.nodeCanvas=it.Canvas,T.window=O,DOMParser=T.window.DOMParser}if(T.isTouchSupported=\\\"ontouchstart\\\"in T.window||\\\"ontouchstart\\\"in T.document||T.window\\u0026\\u0026T.window.navigator\\u0026\\u0026T.window.navigator.maxTouchPoints\\u003e0,T.isLikelyNode=void 0!==p\\u0026\\u0026\\\"undefined\\\"==typeof window,T.SHARED_ATTRIBUTES=[\\\"display\\\",\\\"transform\\\",\\\"fill\\\",\\\"fill-opacity\\\",\\\"fill-rule\\\",\\\"opacity\\\",\\\"stroke\\\",\\\"stroke-dasharray\\\",\\\"stroke-linecap\\\",\\\"stroke-dashoffset\\\",\\\"stroke-linejoin\\\",\\\"stroke-miterlimit\\\",\\\"stroke-opacity\\\",\\\"stroke-width\\\",\\\"id\\\",\\\"paint-order\\\",\\\"vector-effect\\\",\\\"instantiated_by_use\\\",\\\"clip-path\\\"],T.DPI=96,T.reNum=\\\"(?:[-+]?(?:\\\\\\\\d+|\\\\\\\\d*\\\\\\\\.\\\\\\\\d+)(?:[eE][-+]?\\\\\\\\d+)?)\\\",T.commaWsp=\\\"(?:\\\\\\\\s+,?\\\\\\\\s*|,\\\\\\\\s*)\\\",T.rePathCommand=/([-+]?((\\\\d+\\\\.\\\\d+)|((\\\\d+)|(\\\\.\\\\d+)))(?:[eE][-+]?\\\\d+)?)/gi,T.reNonWord=/[ \\\\n\\\\.,;!\\\\?\\\\-]/,T.fontPaths={},T.iMatrix=[1,0,0,1,0,0],T.svgNS=\\\"http://www.w3.org/2000/svg\\\",T.perfLimitSizeTotal=2097152,T.maxCacheSideLimit=4096,T.minCacheSideLimit=256,T.charWidthsCache={},T.textureSize=2048,T.disableStyleCopyPaste=!1,T.enableGLFiltering=!0,T.devicePixelRatio=T.window.devicePixelRatio||T.window.webkitDevicePixelRatio||T.window.mozDevicePixelRatio||1,T.browserShadowBlurConstant=1,T.arcToSegmentsCache={},T.boundsOfCurveCache={},T.cachesBoundsOfCurve=!0,T.forceGLPutImageData=!1,T.initFilterBackend=function(){return T.enableGLFiltering\\u0026\\u0026T.isWebglSupported\\u0026\\u0026T.isWebglSupported(T.textureSize)?(console.log(\\\"max texture size: \\\"+T.maxTextureSize),new T.WebglFilterBackend({tileSize:T.textureSize})):T.Canvas2dFilterBackend?new T.Canvas2dFilterBackend:void 0},\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window\\u0026\\u0026(window.fabric=T),void 0===P)var P={};if(function(t){t.modifyEventListener=!1,t.modifySelectors=!1,t.configure=function(e){isFinite(e.modifyEventListener)\\u0026\\u0026(t.modifyEventListener=e.modifyEventListener),isFinite(e.modifySelectors)\\u0026\\u0026(t.modifySelectors=e.modifySelectors),!1===d\\u0026\\u0026t.modifyEventListener\\u0026\\u0026g(),!1===p\\u0026\\u0026t.modifySelectors\\u0026\\u0026v()},t.add=function(t,e,r,n){return i(t,e,r,n,\\\"add\\\")},t.remove=function(t,e,r,n){return i(t,e,r,n,\\\"remove\\\")},t.returnFalse=function(t){return!1},t.stop=function(t){t\\u0026\\u0026(t.stopPropagation\\u0026\\u0026t.stopPropagation(),t.cancelBubble=!0,t.cancelBubbleCount=0)},t.prevent=function(t){t\\u0026\\u0026(t.preventDefault?t.preventDefault():t.preventManipulation?t.preventManipulation():t.returnValue=!1)},t.cancel=function(e){t.stop(e),t.prevent(e)},t.blur=function(){var t=document.activeElement;if(t){var e=document.activeElement.nodeName;\\\"INPUT\\\"!==e\\u0026\\u0026\\\"TEXTAREA\\\"!==e\\u0026\\u0026\\\"true\\\"!==t.contentEditable||t.blur\\u0026\\u0026t.blur()}},t.getEventSupport=function(t,e){if(\\\"string\\\"==typeof t\\u0026\\u0026(e=t,t=window),(e=\\\"on\\\"+e)in t)return!0;if(t.setAttribute||(t=document.createElement(\\\"div\\\")),t.setAttribute\\u0026\\u0026t.removeAttribute){t.setAttribute(e,\\\"\\\");var i=\\\"function\\\"==typeof t[e];return void 0!==t[e]\\u0026\\u0026(t[e]=null),t.removeAttribute(e),i}};var e=function(t){if(!t||\\\"object\\\"!=typeof t)return t;var i=new t.constructor;for(var r in t)t[r]\\u0026\\u0026\\\"object\\\"==typeof t[r]?i[r]=e(t[r]):i[r]=t[r];return i},i=function(o,s,c,d,g,p){if(d=d||{},\\\"[object Object]\\\"===String(o)){var v=o;if(o=v.target,delete v.target,!v.type||!v.listener){for(var m in v){var y=v[m];\\\"function\\\"!=typeof y\\u0026\\u0026(d[m]=y)}var _={};for(var b in v){m=b.split(\\\",\\\");var x=v[b],C={};for(var w in d)C[w]=d[w];if(\\\"function\\\"==typeof x)c=x;else{if(\\\"function\\\"!=typeof x.listener)continue;c=x.listener;for(var w in x)\\\"function\\\"!=typeof x[w]\\u0026\\u0026(C[w]=x[w])}for(var S=0;S\\u003cm.length;S++)_[b]=P.add(o,m[S],c,C,g)}return _}for(var b in s=v.type,delete v.type,c=v.listener,delete v.listener,v)d[b]=v[b]}if(o\\u0026\\u0026s\\u0026\\u0026c){if(\\\"string\\\"==typeof o\\u0026\\u0026\\\"ready\\\"===s){if(!window.eventjs_stallOnReady){var T=(new Date).getTime(),O=d.timeout,E=d.interval||1e3/60,k=window.setInterval((function(){(new Date).getTime()-T\\u003eO\\u0026\\u0026window.clearInterval(k),document.querySelector(o)\\u0026\\u0026(window.clearInterval(k),setTimeout(c,1))}),E);return}s=\\\"load\\\",o=window}if(\\\"string\\\"==typeof o){if(0===(o=document.querySelectorAll(o)).length)return n(\\\"Missing target on listener!\\\",arguments);1===o.length\\u0026\\u0026(o=o[0])}var A,D={};if(o.length\\u003e0\\u0026\\u0026o!==window){for(var M=0,j=o.length;M\\u003cj;M++)(A=i(o[M],s,c,e(d),g))\\u0026\\u0026(D[M]=A);return r(D)}if(\\\"string\\\"==typeof s\\u0026\\u0026(-1!==(s=s.toLowerCase()).indexOf(\\\" \\\")?s=s.split(\\\" \\\"):-1!==s.indexOf(\\\",\\\")\\u0026\\u0026(s=s.split(\\\",\\\"))),\\\"string\\\"!=typeof s){if(\\\"number\\\"==typeof s.length)for(var F=0,L=s.length;F\\u003cL;F++)(A=i(o,s[F],c,e(d),g))\\u0026\\u0026(D[s[F]]=A);else for(var b in s)(A=\\\"function\\\"==typeof s[b]?i(o,b,s[b],e(d),g):i(o,b,s[b].listener,e(s[b]),g))\\u0026\\u0026(D[b]=A);return r(D)}if(0===s.indexOf(\\\"on\\\")\\u0026\\u0026(s=s.substr(2)),\\\"object\\\"!=typeof o)return n(\\\"Target is not defined!\\\",arguments);if(\\\"function\\\"!=typeof c)return n(\\\"Listener is not a function!\\\",arguments);var I=d.useCapture||!1,R=l(o)+\\\".\\\"+l(c)+\\\".\\\"+(I?1:0);if(t.Gesture\\u0026\\u0026t.Gesture._gestureHandlers[s]){if(R=s+R,\\\"remove\\\"===g){if(!h[R])return;h[R].remove(),delete h[R]}else if(\\\"add\\\"===g){if(h[R])return h[R].add(),h[R];if(d.useCall\\u0026\\u0026!t.modifyEventListener){var B=c;c=function(t,e){for(var i in e)t[i]=e[i];return B.call(o,t)}}d.gesture=s,d.target=o,d.listener=c,d.fromOverwrite=p,h[R]=t.proxy[s](d)}return h[R]}var Y,X=a(s);for(S=0;S\\u003cX.length;S++)if(Y=(s=X[S])+\\\".\\\"+R,\\\"remove\\\"===g){if(!h[Y])continue;o[f](s,c,I),delete h[Y]}else if(\\\"add\\\"===g){if(h[Y])return h[Y];o[u](s,c,I),h[Y]={id:Y,type:s,target:o,listener:c,remove:function(){for(var e=0;e\\u003cX.length;e++)t.remove(o,X[e],c,d)}}}return h[Y]}},r=function(t){return{remove:function(){for(var e in t)t[e].remove()},add:function(){for(var e in t)t[e].add()}}},n=function(t,e){\\\"undefined\\\"!=typeof console\\u0026\\u0026void 0!==console.error\\u0026\\u0026console.error(t,e)},o={msPointer:[\\\"MSPointerDown\\\",\\\"MSPointerMove\\\",\\\"MSPointerUp\\\"],touch:[\\\"touchstart\\\",\\\"touchmove\\\",\\\"touchend\\\"],mouse:[\\\"mousedown\\\",\\\"mousemove\\\",\\\"mouseup\\\"]},s={MSPointerDown:0,MSPointerMove:1,MSPointerUp:2,touchstart:0,touchmove:1,touchend:2,mousedown:0,mousemove:1,mouseup:2};t.supports={},window.navigator.msPointerEnabled\\u0026\\u0026(t.supports.msPointer=!0),t.getEventSupport(\\\"touchstart\\\")\\u0026\\u0026(t.supports.touch=!0),t.getEventSupport(\\\"mousedown\\\")\\u0026\\u0026(t.supports.mouse=!0);var a=function(e){var i=document.addEventListener?\\\"\\\":\\\"on\\\",r=s[e];if(isFinite(r)){var n=[];for(var a in t.supports)n.push(i+o[a][r]);return n}return[i+e]},h={},c=0,l=function(t){return t===window?\\\"#window\\\":t===document?\\\"#document\\\":(t.uniqueID||(t.uniqueID=\\\"e\\\"+c++),t.uniqueID)},u=document.addEventListener?\\\"addEventListener\\\":\\\"attachEvent\\\",f=document.removeEventListener?\\\"removeEventListener\\\":\\\"detachEvent\\\";t.createPointerEvent=function(e,i,r){var n=i.gesture,o=i.target,s=e.changedTouches||t.proxy.getCoords(e);if(s.length){var a=s[0];i.pointers=r?[]:s,i.pageX=a.pageX,i.pageY=a.pageY,i.x=i.pageX,i.y=i.pageY}var h=document.createEvent(\\\"Event\\\");for(var c in h.initEvent(n,!0,!0),h.originalEvent=e,i)\\\"target\\\"!==c\\u0026\\u0026(h[c]=i[c]);var l=h.type;t.Gesture\\u0026\\u0026t.Gesture._gestureHandlers[l]\\u0026\\u0026i.oldListener.call(o,h,i,!1)};var d=!1,g=function(){if(window.HTMLElement){var e=function(e){var r=function(r){var n=r+\\\"EventListener\\\",o=e[n];e[n]=function(e,n,s){if(t.Gesture\\u0026\\u0026t.Gesture._gestureHandlers[e]){var h=s;\\\"object\\\"==typeof s?h.useCall=!0:h={useCall:!0,useCapture:s},i(this,e,n,h,r,!0)}else for(var c=a(e),l=0;l\\u003cc.length;l++)o.call(this,c[l],n,s)}};r(\\\"add\\\"),r(\\\"remove\\\")};navigator.userAgent.match(/Firefox/)?(e(HTMLDivElement.prototype),e(HTMLCanvasElement.prototype)):e(HTMLElement.prototype),e(document),e(window)}},p=!1,v=function(){var t=NodeList.prototype;t.removeEventListener=function(t,e,i){for(var r=0,n=this.length;r\\u003cn;r++)this[r].removeEventListener(t,e,i)},t.addEventListener=function(t,e,i){for(var r=0,n=this.length;r\\u003cn;r++)this[r].addEventListener(t,e,i)}}}(P),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){t.pointerSetup=function(t,e){t.target=t.target||window,t.doc=t.target.ownerDocument||t.target,t.minFingers=t.minFingers||t.fingers||1,t.maxFingers=t.maxFingers||t.fingers||1/0,t.position=t.position||\\\"relative\\\",delete t.fingers,(e=e||{}).enabled=!0,e.gesture=t.gesture,e.target=t.target,e.env=t.env,P.modifyEventListener\\u0026\\u0026t.fromOverwrite\\u0026\\u0026(t.oldListener=t.listener,t.listener=P.createPointerEvent);var i=0,r=0===e.gesture.indexOf(\\\"pointer\\\")\\u0026\\u0026P.modifyEventListener?\\\"pointer\\\":\\\"mouse\\\";return t.oldListener\\u0026\\u0026(e.oldListener=t.oldListener),e.listener=t.listener,e.proxy=function(i){e.defaultListener=t.listener,t.listener=i,i(t.event,e)},e.add=function(){!0!==e.enabled\\u0026\\u0026(t.onPointerDown\\u0026\\u0026P.add(t.target,r+\\\"down\\\",t.onPointerDown),t.onPointerMove\\u0026\\u0026P.add(t.doc,r+\\\"move\\\",t.onPointerMove),t.onPointerUp\\u0026\\u0026P.add(t.doc,r+\\\"up\\\",t.onPointerUp),e.enabled=!0)},e.remove=function(){!1!==e.enabled\\u0026\\u0026(t.onPointerDown\\u0026\\u0026P.remove(t.target,r+\\\"down\\\",t.onPointerDown),t.onPointerMove\\u0026\\u0026P.remove(t.doc,r+\\\"move\\\",t.onPointerMove),t.onPointerUp\\u0026\\u0026P.remove(t.doc,r+\\\"up\\\",t.onPointerUp),e.reset(),e.enabled=!1)},e.pause=function(e){!t.onPointerMove||e\\u0026\\u0026!e.move||P.remove(t.doc,r+\\\"move\\\",t.onPointerMove),!t.onPointerUp||e\\u0026\\u0026!e.up||P.remove(t.doc,r+\\\"up\\\",t.onPointerUp),i=t.fingers,t.fingers=0},e.resume=function(e){!t.onPointerMove||e\\u0026\\u0026!e.move||P.add(t.doc,r+\\\"move\\\",t.onPointerMove),!t.onPointerUp||e\\u0026\\u0026!e.up||P.add(t.doc,r+\\\"up\\\",t.onPointerUp),t.fingers=i},e.reset=function(){t.tracker={},t.fingers=0},e};var e=P.supports;P.isMouse=!!e.mouse,P.isMSPointer=!!e.touch,P.isTouch=!!e.msPointer,t.pointerStart=function(e,i,r){var n=(e.type||\\\"mousedown\\\").toUpperCase();0===n.indexOf(\\\"MOUSE\\\")?(P.isMouse=!0,P.isTouch=!1,P.isMSPointer=!1):0===n.indexOf(\\\"TOUCH\\\")?(P.isMouse=!1,P.isTouch=!0,P.isMSPointer=!1):0===n.indexOf(\\\"MSPOINTER\\\")\\u0026\\u0026(P.isMouse=!1,P.isTouch=!1,P.isMSPointer=!0);var o=function(t,e){var i=r.bbox,n=a[e]={};switch(r.position){case\\\"absolute\\\":n.offsetX=0,n.offsetY=0;break;case\\\"differenceFromLast\\\":case\\\"difference\\\":n.offsetX=t.pageX,n.offsetY=t.pageY;break;case\\\"move\\\":n.offsetX=t.pageX-i.x1,n.offsetY=t.pageY-i.y1;break;default:n.offsetX=i.x1-i.scrollLeft,n.offsetY=i.y1-i.scrollTop}var o=t.pageX-n.offsetX,s=t.pageY-n.offsetY;n.rotation=0,n.scale=1,n.startTime=n.moveTime=(new Date).getTime(),n.move={x:o,y:s},n.start={x:o,y:s},r.fingers++};r.event=e,i.defaultListener\\u0026\\u0026(r.listener=i.defaultListener,delete i.defaultListener);for(var s=!r.fingers,a=r.tracker,h=e.changedTouches||t.getCoords(e),c=h.length,l=0;l\\u003cc;l++){var u=h[l],f=u.identifier||1/0;if(r.fingers){if(r.fingers\\u003e=r.maxFingers){var d=[];for(var f in r.tracker)d.push(f);return i.identifier=d.join(\\\",\\\"),s}for(var g in a)if(a[g].up){delete a[g],o(u,f),r.cancel=!0;break}if(a[f])continue;o(u,f)}else a=r.tracker={},i.bbox=r.bbox=t.getBoundingBox(r.target),r.fingers=0,r.cancel=!1,o(u,f)}d=[];for(var f in r.tracker)d.push(f);return i.identifier=d.join(\\\",\\\"),s},t.pointerEnd=function(t,e,i,r){for(var n=t.touches||[],o=n.length,s={},a=0;a\\u003co;a++){s[(h=n[a].identifier)||1/0]=!0}for(var h in i.tracker){var c=i.tracker[h];s[h]||c.up||(r\\u0026\\u0026r({pageX:c.pageX,pageY:c.pageY,changedTouches:[{pageX:c.pageX,pageY:c.pageY,identifier:\\\"Infinity\\\"===h?1/0:h}]},\\\"up\\\"),c.up=!0,i.fingers--)}if(0!==i.fingers)return!1;var l=[];for(var h in i.gestureFingers=0,i.tracker)i.gestureFingers++,l.push(h);return e.identifier=l.join(\\\",\\\"),!0},t.getCoords=function(e){return void 0!==e.pageX?t.getCoords=function(t){return Array({type:\\\"mouse\\\",x:t.pageX,y:t.pageY,pageX:t.pageX,pageY:t.pageY,identifier:t.pointerId||1/0})}:t.getCoords=function(t){var e=document.documentElement;return t=t||window.event,Array({type:\\\"mouse\\\",x:t.clientX+e.scrollLeft,y:t.clientY+e.scrollTop,pageX:t.clientX+e.scrollLeft,pageY:t.clientY+e.scrollTop,identifier:1/0})},t.getCoords(e)},t.getCoord=function(e){if(\\\"ontouchstart\\\"in window){var i=0,r=0;t.getCoord=function(t){var e=t.changedTouches;return e\\u0026\\u0026e.length?{x:i=e[0].pageX,y:r=e[0].pageY}:{x:i,y:r}}}else void 0!==e.pageX\\u0026\\u0026void 0!==e.pageY?t.getCoord=function(t){return{x:t.pageX,y:t.pageY}}:t.getCoord=function(t){var e=document.documentElement;return{x:(t=t||window.event).clientX+e.scrollLeft,y:t.clientY+e.scrollTop}};return t.getCoord(e)};var i,r,n,o=function(t,e){var i=parseFloat(t.getPropertyValue(e),10);return isFinite(i)?i:0};return t.getBoundingBox=function(t){t!==window\\u0026\\u0026t!==document||(t=document.body);var e={},i=t.getBoundingClientRect();if(e.width=i.width,e.height=i.height,e.x1=i.left,e.y1=i.top,e.scaleX=i.width/t.offsetWidth||1,e.scaleY=i.height/t.offsetHeight||1,e.scrollLeft=0,e.scrollTop=0,!1===(\\\"border-box\\\"===(c=window.getComputedStyle(t)).getPropertyValue(\\\"box-sizing\\\"))){var r=o(c,\\\"border-left-width\\\"),n=o(c,\\\"border-right-width\\\"),s=o(c,\\\"border-bottom-width\\\"),a=o(c,\\\"border-top-width\\\");e.border=[r,n,a,s],e.x1+=r,e.y1+=a,e.width-=n+r,e.height-=s+a}e.x2=e.x1+e.width,e.y2=e.y1+e.height;for(var h=\\\"fixed\\\"===(l=c.getPropertyValue(\\\"position\\\"))?t:t.parentNode;null!==h\\u0026\\u0026h!==document.body\\u0026\\u0026void 0!==h.scrollTop;){var c,l;if(\\\"absolute\\\"===(l=(c=window.getComputedStyle(h)).getPropertyValue(\\\"position\\\")));else{if(\\\"fixed\\\"===l){e.scrollTop-=h.parentNode.scrollTop,e.scrollLeft-=h.parentNode.scrollLeft;break}e.scrollLeft+=h.scrollLeft,e.scrollTop+=h.scrollTop}h=h.parentNode}return e.scrollBodyLeft=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,e.scrollBodyTop=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,e.scrollLeft-=e.scrollBodyLeft,e.scrollTop-=e.scrollBodyTop,e},r=navigator.userAgent.toLowerCase(),n=-1!==r.indexOf(\\\"macintosh\\\"),i=n\\u0026\\u0026-1!==r.indexOf(\\\"khtml\\\")?{91:!0,93:!0}:n\\u0026\\u0026-1!==r.indexOf(\\\"firefox\\\")?{224:!0}:{17:!0},(t.metaTrackerReset=function(){P.fnKey=t.fnKey=!1,P.metaKey=t.metaKey=!1,P.escKey=t.escKey=!1,P.ctrlKey=t.ctrlKey=!1,P.shiftKey=t.shiftKey=!1,P.altKey=t.altKey=!1})(),t.metaTracker=function(e){var r=\\\"keydown\\\"===e.type;27===e.keyCode\\u0026\\u0026(P.escKey=t.escKey=r),i[e.keyCode]\\u0026\\u0026(P.metaKey=t.metaKey=r),P.ctrlKey=t.ctrlKey=e.ctrlKey,P.shiftKey=t.shiftKey=e.shiftKey,P.altKey=t.altKey=e.altKey},t}(P.proxy),void 0===P)P={};if(P.MutationObserver=(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,i=!e\\u0026\\u0026function(){var t=document.createElement(\\\"p\\\"),e=!1,i=function(){e=!0};if(t.addEventListener)t.addEventListener(\\\"DOMAttrModified\\\",i,!1);else{if(!t.attachEvent)return!1;t.attachEvent(\\\"onDOMAttrModified\\\",i)}return t.setAttribute(\\\"id\\\",\\\"target\\\"),e}(),function(t,r){e?new e((function(t){t.forEach((function(t){r.call(t.target,t.attributeName)}))})).observe(t,{subtree:!1,attributes:!0}):i?P.add(t,\\\"DOMAttrModified\\\",(function(e){r.call(t,e.attrName)})):\\\"onpropertychange\\\"in document.body\\u0026\\u0026P.add(t,\\\"propertychange\\\",(function(e){r.call(t,window.event.propertyName)}))}),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=((r=P.proxy).click=function(t){t.gesture=t.gesture||\\\"click\\\",t.maxFingers=t.maxFingers||t.fingers||1,t.onPointerDown=function(i){r.pointerStart(i,e,t)\\u0026\\u0026P.add(t.target,\\\"mouseup\\\",t.onPointerUp)},t.onPointerUp=function(i){if(r.pointerEnd(i,e,t)){P.remove(t.target,\\\"mouseup\\\",t.onPointerUp);var n=(i.changedTouches||r.getCoords(i))[0],o=t.bbox,s=r.getBoundingBox(t.target),a=n.pageY-s.scrollBodyTop,h=n.pageX-s.scrollBodyLeft;if(h\\u003eo.x1\\u0026\\u0026a\\u003eo.y1\\u0026\\u0026h\\u003co.x2\\u0026\\u0026a\\u003co.y2\\u0026\\u0026o.scrollTop===s.scrollTop){for(var c in t.tracker)break;var l=t.tracker[c];e.x=l.start.x,e.y=l.start.y,t.listener(i,e)}}};var e=r.pointerSetup(t);return e.state=\\\"click\\\",P.add(t.target,\\\"mousedown\\\",t.onPointerDown),e},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.click=r.click,r),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.dbltap=t.dblclick=function(e){e.gesture=e.gesture||\\\"dbltap\\\",e.maxFingers=e.maxFingers||e.fingers||1;var i,r,n,o,s;e.onPointerDown=function(h){var c=h.changedTouches||t.getCoords(h);i\\u0026\\u0026!r?(s=c[0],r=(new Date).getTime()-i):(o=c[0],i=(new Date).getTime(),r=0,clearTimeout(n),n=setTimeout((function(){i=0}),700)),t.pointerStart(h,a,e)\\u0026\\u0026(P.add(e.target,\\\"mousemove\\\",e.onPointerMove).listener(h),P.add(e.target,\\\"mouseup\\\",e.onPointerUp))},e.onPointerMove=function(a){if(i\\u0026\\u0026!r){var h=a.changedTouches||t.getCoords(a);s=h[0]}var c=e.bbox,l=s.pageX-c.x1,u=s.pageY-c.y1;l\\u003e0\\u0026\\u0026l\\u003cc.width\\u0026\\u0026u\\u003e0\\u0026\\u0026u\\u003cc.height\\u0026\\u0026Math.abs(s.pageX-o.pageX)\\u003c=25\\u0026\\u0026Math.abs(s.pageY-o.pageY)\\u003c=25||(P.remove(e.target,\\\"mousemove\\\",e.onPointerMove),clearTimeout(n),i=r=0)},e.onPointerUp=function(o){if(t.pointerEnd(o,a,e)\\u0026\\u0026(P.remove(e.target,\\\"mousemove\\\",e.onPointerMove),P.remove(e.target,\\\"mouseup\\\",e.onPointerUp)),i\\u0026\\u0026r){if(r\\u003c=700){for(var s in a.state=e.gesture,e.tracker)break;var h=e.tracker[s];a.x=h.start.x,a.y=h.start.y,e.listener(o,a)}clearTimeout(n),i=r=0}};var a=t.pointerSetup(e);return a.state=\\\"dblclick\\\",P.add(e.target,\\\"mousedown\\\",e.onPointerDown),a},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.dbltap=t.dbltap,P.Gesture._gestureHandlers.dblclick=t.dblclick,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.dragElement=function(e,i){t.drag({event:i,target:e,position:\\\"move\\\",listener:function(t,i){e.style.left=i.x+\\\"px\\\",e.style.top=i.y+\\\"px\\\",P.prevent(t)}})},t.drag=function(e){e.gesture=\\\"drag\\\",e.onPointerDown=function(r){t.pointerStart(r,i,e)\\u0026\\u0026(e.monitor||(P.add(e.doc,\\\"mousemove\\\",e.onPointerMove),P.add(e.doc,\\\"mouseup\\\",e.onPointerUp))),e.onPointerMove(r,\\\"down\\\")},e.onPointerMove=function(r,n){if(!e.tracker)return e.onPointerDown(r);e.bbox;for(var o=r.changedTouches||t.getCoords(r),s=o.length,a=0;a\\u003cs;a++){var h=o[a],c=h.identifier||1/0,l=e.tracker[c];l\\u0026\\u0026(l.pageX=h.pageX,l.pageY=h.pageY,i.state=n||\\\"move\\\",i.identifier=c,i.start=l.start,i.fingers=e.fingers,\\\"differenceFromLast\\\"===e.position?(i.x=l.pageX-l.offsetX,i.y=l.pageY-l.offsetY,l.offsetX=l.pageX,l.offsetY=l.pageY):(i.x=l.pageX-l.offsetX,i.y=l.pageY-l.offsetY),e.listener(r,i))}},e.onPointerUp=function(r){t.pointerEnd(r,i,e,e.onPointerMove)\\u0026\\u0026(e.monitor||(P.remove(e.doc,\\\"mousemove\\\",e.onPointerMove),P.remove(e.doc,\\\"mouseup\\\",e.onPointerUp)))};var i=t.pointerSetup(e);return e.event?e.onPointerDown(e.event):(P.add(e.target,\\\"mousedown\\\",e.onPointerDown),e.monitor\\u0026\\u0026(P.add(e.doc,\\\"mousemove\\\",e.onPointerMove),P.add(e.doc,\\\"mouseup\\\",e.onPointerUp))),i},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.drag=t.drag,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){var e=Math.PI/180,i=function(t,e){var i=0,r=0,n=0;for(var o in e){var s=e[o];s.up||(i+=s.move.x,r+=s.move.y,n++)}return t.x=i/=n,t.y=r/=n,t};return t.gesture=function(r){r.gesture=r.gesture||\\\"gesture\\\",r.minFingers=r.minFingers||r.fingers||2,r.onPointerDown=function(e){var o=r.fingers;if(t.pointerStart(e,n,r)\\u0026\\u0026(P.add(r.doc,\\\"mousemove\\\",r.onPointerMove),P.add(r.doc,\\\"mouseup\\\",r.onPointerUp)),r.fingers===r.minFingers\\u0026\\u0026o!==r.fingers){n.fingers=r.minFingers,n.scale=1,n.rotation=0,n.state=\\\"start\\\";var s=\\\"\\\";for(var a in r.tracker)s+=a;n.identifier=parseInt(s),i(n,r.tracker),r.listener(e,n)}},r.onPointerMove=function(o,s){for(var a=r.bbox,h=r.tracker,c=(f=o.changedTouches||t.getCoords(o)).length,l=0;l\\u003cc;l++){var u=h[p=(v=f[l]).identifier||1/0];u\\u0026\\u0026(u.move.x=v.pageX-a.x1,u.move.y=v.pageY-a.y1)}if(!(r.fingers\\u003cr.minFingers)){var f=[],d=0,g=0;for(var p in i(n,h),h){var v;if(!(v=h[p]).up){var m=v.start;if(!m.distance){var y=m.x-n.x,_=m.y-n.y;m.distance=Math.sqrt(y*y+_*_),m.angle=Math.atan2(y,_)/e}y=v.move.x-n.x,_=v.move.y-n.y;d+=Math.sqrt(y*y+_*_)/m.distance;var b=Math.atan2(y,_)/e,x=(m.angle-b+360)%360-180;v.DEG2=v.DEG1,v.DEG1=x\\u003e0?x:-x,void 0!==v.DEG2\\u0026\\u0026(x\\u003e0?v.rotation+=v.DEG1-v.DEG2:v.rotation-=v.DEG1-v.DEG2,g+=v.rotation),f.push(v.move)}}n.touches=f,n.fingers=r.fingers,n.scale=d/r.fingers,n.rotation=g/r.fingers,n.state=\\\"change\\\",r.listener(o,n)}},r.onPointerUp=function(e){var i=r.fingers;t.pointerEnd(e,n,r)\\u0026\\u0026(P.remove(r.doc,\\\"mousemove\\\",r.onPointerMove),P.remove(r.doc,\\\"mouseup\\\",r.onPointerUp)),i===r.minFingers\\u0026\\u0026r.fingers\\u003cr.minFingers\\u0026\\u0026(n.fingers=r.fingers,n.state=\\\"end\\\",r.listener(e,n))};var n=t.pointerSetup(r);return P.add(r.target,\\\"mousedown\\\",r.onPointerDown),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.gesture=t.gesture,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.pointerdown=t.pointermove=t.pointerup=function(e){if(e.gesture=e.gesture||\\\"pointer\\\",!e.target.isPointerEmitter){var i=!0;e.onPointerDown=function(t){i=!1,r.gesture=\\\"pointerdown\\\",e.listener(t,r)},e.onPointerMove=function(t){r.gesture=\\\"pointermove\\\",e.listener(t,r,i)},e.onPointerUp=function(t){i=!0,r.gesture=\\\"pointerup\\\",e.listener(t,r,!0)};var r=t.pointerSetup(e);return P.add(e.target,\\\"mousedown\\\",e.onPointerDown),P.add(e.target,\\\"mousemove\\\",e.onPointerMove),P.add(e.doc,\\\"mouseup\\\",e.onPointerUp),e.target.isPointerEmitter=!0,r}},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.pointerdown=t.pointerdown,P.Gesture._gestureHandlers.pointermove=t.pointermove,P.Gesture._gestureHandlers.pointerup=t.pointerup,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.shake=function(t){var e={gesture:\\\"devicemotion\\\",acceleration:{},accelerationIncludingGravity:{},target:t.target,listener:t.listener,remove:function(){window.removeEventListener(\\\"devicemotion\\\",o,!1)}},i=(new Date).getTime(),r={x:0,y:0,z:0},n={x:{count:0,value:0},y:{count:0,value:0},z:{count:0,value:0}},o=function(o){var s=.8,a=o.accelerationIncludingGravity;if(r.x=s*r.x+(1-s)*a.x,r.y=s*r.y+(1-s)*a.y,r.z=s*r.z+(1-s)*a.z,e.accelerationIncludingGravity=r,e.acceleration.x=a.x-r.x,e.acceleration.y=a.y-r.y,e.acceleration.z=a.z-r.z,\\\"devicemotion\\\"!==t.gesture)for(var h=(new Date).getTime(),c=0;c\\u003c3;c++){var l=\\\"xyz\\\"[c],u=e.acceleration[l],f=n[l],d=Math.abs(u);if(!(h-i\\u003c1e3)\\u0026\\u0026d\\u003e4){var g=h*u/d,p=Math.abs(g+f.value);f.value\\u0026\\u0026p\\u003c200?(f.value=g,f.count++,3===f.count\\u0026\\u0026(t.listener(o,e),i=h,f.value=0,f.count=0)):(f.value=g,f.count=1)}}else t.listener(o,e)};if(window.addEventListener)return window.addEventListener(\\\"devicemotion\\\",o,!1),e},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.shake=t.shake,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){var e=Math.PI/180;return t.swipe=function(i){i.snap=i.snap||90,i.threshold=i.threshold||1,i.gesture=i.gesture||\\\"swipe\\\",i.onPointerDown=function(e){t.pointerStart(e,r,i)\\u0026\\u0026(P.add(i.doc,\\\"mousemove\\\",i.onPointerMove).listener(e),P.add(i.doc,\\\"mouseup\\\",i.onPointerUp))},i.onPointerMove=function(e){for(var r=e.changedTouches||t.getCoords(e),n=r.length,o=0;o\\u003cn;o++){var s=r[o],a=s.identifier||1/0,h=i.tracker[a];h\\u0026\\u0026(h.move.x=s.pageX,h.move.y=s.pageY,h.moveTime=(new Date).getTime())}},i.onPointerUp=function(n){if(t.pointerEnd(n,r,i)){var o,s;P.remove(i.doc,\\\"mousemove\\\",i.onPointerMove),P.remove(i.doc,\\\"mouseup\\\",i.onPointerUp);var a={x:0,y:0},h=0,c=0,l=0;for(var u in i.tracker){var f=i.tracker[u],d=f.move.x-f.start.x,g=f.move.y-f.start.y;h+=f.move.x,c+=f.move.y,a.x+=f.start.x,a.y+=f.start.y,l++;var p=Math.sqrt(d*d+g*g),v=f.moveTime-f.startTime,m=Math.atan2(d,g)/e+180,y=v?p/v:0;if(void 0===s)s=m,o=y;else{if(!(Math.abs(m-s)\\u003c=20))return;s=(s+m)/2,o=(o+y)/2}}var _=i.gestureFingers;i.minFingers\\u003c=_\\u0026\\u0026i.maxFingers\\u003e=_\\u0026\\u0026o\\u003ei.threshold\\u0026\\u0026(a.x/=l,a.y/=l,r.start=a,r.x=h/l,r.y=c/l,r.angle=-(((s/i.snap+.5\\u003e\\u003e0)*i.snap||360)-360),r.velocity=o,r.fingers=_,r.state=\\\"swipe\\\",i.listener(n,r))}};var r=t.pointerSetup(i);return P.add(i.target,\\\"mousedown\\\",i.onPointerDown),r},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.swipe=t.swipe,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.longpress=function(e){return e.gesture=\\\"longpress\\\",t.tap(e)},t.tap=function(e){var i,r;e.delay=e.delay||500,e.timeout=e.timeout||250,e.driftDeviance=e.driftDeviance||10,e.gesture=e.gesture||\\\"tap\\\",e.onPointerDown=function(o){if(t.pointerStart(o,n,e)){if(i=(new Date).getTime(),P.add(e.doc,\\\"mousemove\\\",e.onPointerMove).listener(o),P.add(e.doc,\\\"mouseup\\\",e.onPointerUp),\\\"longpress\\\"!==e.gesture)return;r=setTimeout((function(){if(!(o.cancelBubble\\u0026\\u0026++o.cancelBubbleCount\\u003e1)){var t=0;for(var i in e.tracker){var r=e.tracker[i];if(!0===r.end)return;if(e.cancel)return;t++}e.minFingers\\u003c=t\\u0026\\u0026e.maxFingers\\u003e=t\\u0026\\u0026(n.state=\\\"start\\\",n.fingers=t,n.x=r.start.x,n.y=r.start.y,e.listener(o,n))}}),e.delay)}},e.onPointerMove=function(i){for(var r=e.bbox,n=i.changedTouches||t.getCoords(i),o=n.length,s=0;s\\u003co;s++){var a=n[s],h=a.identifier||1/0,c=e.tracker[h];if(c){var l=a.pageX-r.x1,u=a.pageY-r.y1,f=l-c.start.x,d=u-c.start.y,g=Math.sqrt(f*f+d*d);if(!(l\\u003e0\\u0026\\u0026l\\u003cr.width\\u0026\\u0026u\\u003e0\\u0026\\u0026u\\u003cr.height\\u0026\\u0026g\\u003c=e.driftDeviance))return P.remove(e.doc,\\\"mousemove\\\",e.onPointerMove),void(e.cancel=!0)}}},e.onPointerUp=function(o){if(t.pointerEnd(o,n,e)){if(clearTimeout(r),P.remove(e.doc,\\\"mousemove\\\",e.onPointerMove),P.remove(e.doc,\\\"mouseup\\\",e.onPointerUp),o.cancelBubble\\u0026\\u0026++o.cancelBubbleCount\\u003e1)return;if(\\\"longpress\\\"===e.gesture)return void(\\\"start\\\"===n.state\\u0026\\u0026(n.state=\\\"end\\\",e.listener(o,n)));if(e.cancel)return;if((new Date).getTime()-i\\u003ee.timeout)return;var s=e.gestureFingers;e.minFingers\\u003c=s\\u0026\\u0026e.maxFingers\\u003e=s\\u0026\\u0026(n.state=\\\"tap\\\",n.fingers=e.gestureFingers,e.listener(o,n))}};var n=t.pointerSetup(e);return P.add(e.target,\\\"mousedown\\\",e.onPointerDown),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.tap=t.tap,P.Gesture._gestureHandlers.longpress=t.longpress,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.wheelPreventElasticBounce=function(t){t\\u0026\\u0026(\\\"string\\\"==typeof t\\u0026\\u0026(t=document.querySelector(t)),P.add(t,\\\"wheel\\\",(function(t,e){e.preventElasticBounce(),P.stop(t)})))},t.wheel=function(t){var e,i=t.timeout||150,r=0,n={gesture:\\\"wheel\\\",state:\\\"start\\\",wheelDelta:0,target:t.target,listener:t.listener,preventElasticBounce:function(t){var e=this.target,i=e.scrollTop;(i+e.offsetHeight===e.scrollHeight\\u0026\\u0026this.wheelDelta\\u003c=0||0===i\\u0026\\u0026this.wheelDelta\\u003e=0)\\u0026\\u0026P.cancel(t),P.stop(t)},add:function(){t.target[s](h,o,!1)},remove:function(){t.target[a](h,o,!1)}},o=function(o){o=o||window.event,n.state=r++?\\\"change\\\":\\\"start\\\",n.wheelDelta=o.detail?-20*o.detail:o.wheelDelta,t.listener(o,n),clearTimeout(e),e=setTimeout((function(){r=0,n.state=\\\"end\\\",n.wheelDelta=0,t.listener(o,n)}),i)},s=document.addEventListener?\\\"addEventListener\\\":\\\"attachEvent\\\",a=document.removeEventListener?\\\"removeEventListener\\\":\\\"detachEvent\\\",h=P.getEventSupport(\\\"mousewheel\\\")?\\\"mousewheel\\\":\\\"DOMMouseScroll\\\";return t.target[s](h,o,!1),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.wheel=t.wheel,t}(P.proxy),void 0===E)var E={};function k(t,e){var i=t.canvas,r=e.targetCanvas,n=r.getContext(\\\"2d\\\");n.translate(0,r.height),n.scale(1,-1);var o=i.height-r.height;n.drawImage(i,0,o,r.width,r.height,0,0,r.width,r.height)}function A(t,e){var i=e.targetCanvas.getContext(\\\"2d\\\"),r=e.destinationWidth,n=e.destinationHeight,o=r*n*4,s=new Uint8Array(this.imageBuffer,0,o),a=new Uint8ClampedArray(this.imageBuffer,0,o);t.readPixels(0,0,r,n,t.RGBA,t.UNSIGNED_BYTE,s);var h=new ImageData(a,r,n);i.putImageData(h,0,0)}void 0===E.proxy\\u0026\\u0026(E.proxy={}),E.proxy=function(t){return t.orientation=function(t){var e={gesture:\\\"orientationchange\\\",previous:null,current:window.orientation,target:t.target,listener:t.listener,remove:function(){window.removeEventListener(\\\"orientationchange\\\",i,!1)}},i=function(i){e.previous=e.current,e.current=window.orientation,null===e.previous||e.previous==e.current||t.listener(i,e)};return window.DeviceOrientationEvent\\u0026\\u0026window.addEventListener(\\\"orientationchange\\\",i,!1),e},E.Gesture=E.Gesture||{},E.Gesture._gestureHandlers=E.Gesture._gestureHandlers||{},E.Gesture._gestureHandlers.orientation=t.orientation,t}(E.proxy),function(){function t(t,e){if(this.__eventListeners[t]){var i=this.__eventListeners[t];e?i[i.indexOf(e)]=!1:T.util.array.fill(i,!1)}}function e(t,e){var i=function(){e.apply(this,arguments),this.off(t,i)}.bind(this);this.on(t,i)}T.Observable={fire:function(t,e){if(!this.__eventListeners)return this;var i=this.__eventListeners[t];if(!i)return this;for(var r=0,n=i.length;r\\u003cn;r++)i[r]\\u0026\\u0026i[r].call(this,e||{});return this.__eventListeners[t]=i.filter((function(t){return!1!==t})),this},on:function(t,e){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in t)this.on(i,t[i]);else this.__eventListeners[t]||(this.__eventListeners[t]=[]),this.__eventListeners[t].push(e);return this},once:function(t,i){if(1===arguments.length)for(var r in t)e.call(this,r,t[r]);else e.call(this,t,i);return this},off:function(e,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(e in this.__eventListeners)t.call(this,e);else if(1===arguments.length\\u0026\\u0026\\\"object\\\"==typeof arguments[0])for(var r in e)t.call(this,r,e[r]);else t.call(this,e,i);return this}}}(),T.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var t=0,e=arguments.length;t\\u003ce;t++)this._onObjectAdded(arguments[t]);return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},insertAt:function(t,e,i){var r=this._objects;return i?r[e]=t:r.splice(e,0,t),this._onObjectAdded\\u0026\\u0026this._onObjectAdded(t),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},remove:function(){for(var t,e=this._objects,i=!1,r=0,n=arguments.length;r\\u003cn;r++)-1!==(t=e.indexOf(arguments[r]))\\u0026\\u0026(i=!0,e.splice(t,1),this._onObjectRemoved\\u0026\\u0026this._onObjectRemoved(arguments[r]));return this.renderOnAddRemove\\u0026\\u0026i\\u0026\\u0026this.requestRenderAll(),this},forEachObject:function(t,e){for(var i=this.getObjects(),r=0,n=i.length;r\\u003cn;r++)t.call(e,i[r],r,i);return this},getObjects:function(t){return void 0===t?this._objects.concat():this._objects.filter((function(e){return e.type===t}))},item:function(t){return this._objects[t]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(t,e){return this._objects.indexOf(t)\\u003e-1||!!e\\u0026\\u0026this._objects.some((function(e){return\\\"function\\\"==typeof e.contains\\u0026\\u0026e.contains(t,!0)}))},complexity:function(){return this._objects.reduce((function(t,e){return t+=e.complexity?e.complexity():0}),0)}},T.CommonMethods={_setOptions:function(t){for(var e in t)this.set(e,t[e])},_initGradient:function(t,e){!t||!t.colorStops||t instanceof T.Gradient||this.set(e,new T.Gradient(t))},_initPattern:function(t,e,i){!t||!t.source||t instanceof T.Pattern?i\\u0026\\u0026i():this.set(e,new T.Pattern(t,i))},_setObject:function(t){for(var e in t)this._set(e,t[e])},set:function(t,e){return\\\"object\\\"==typeof t?this._setObject(t):this._set(t,e),this},_set:function(t,e){this[t]=e},toggle:function(t){var e=this.get(t);return\\\"boolean\\\"==typeof e\\u0026\\u0026this.set(t,!e),this},get:function(t){return this[t]}},n=t,o=Math.sqrt,s=Math.atan2,a=Math.pow,h=Math.PI/180,c=Math.PI/2,T.util={cos:function(t){if(0===t)return 1;switch(t\\u003c0\\u0026\\u0026(t=-t),t/c){case 1:case 3:return 0;case 2:return-1}return Math.cos(t)},sin:function(t){if(0===t)return 0;var e=1;switch(t\\u003c0\\u0026\\u0026(e=-1),t/c){case 1:return e;case 2:return 0;case 3:return-e}return Math.sin(t)},removeFromArray:function(t,e){var i=t.indexOf(e);return-1!==i\\u0026\\u0026t.splice(i,1),t},getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t},degreesToRadians:function(t){return t*h},radiansToDegrees:function(t){return t/h},rotatePoint:function(t,e,i){var r=new T.Point(t.x-e.x,t.y-e.y),n=T.util.rotateVector(r,i);return new T.Point(n.x,n.y).addEquals(e)},rotateVector:function(t,e){var i=T.util.sin(e),r=T.util.cos(e);return{x:t.x*r-t.y*i,y:t.x*i+t.y*r}},transformPoint:function(t,e,i){return i?new T.Point(e[0]*t.x+e[2]*t.y,e[1]*t.x+e[3]*t.y):new T.Point(e[0]*t.x+e[2]*t.y+e[4],e[1]*t.x+e[3]*t.y+e[5])},makeBoundingBoxFromPoints:function(t,e){if(e)for(var i=0;i\\u003ct.length;i++)t[i]=T.util.transformPoint(t[i],e);var r=[t[0].x,t[1].x,t[2].x,t[3].x],n=T.util.array.min(r),o=T.util.array.max(r)-n,s=[t[0].y,t[1].y,t[2].y,t[3].y],a=T.util.array.min(s);return{left:n,top:a,width:o,height:T.util.array.max(s)-a}},invertTransform:function(t){var e=1/(t[0]*t[3]-t[1]*t[2]),i=[e*t[3],-e*t[1],-e*t[2],e*t[0]],r=T.util.transformPoint({x:t[4],y:t[5]},i,!0);return i[4]=-r.x,i[5]=-r.y,i},toFixed:function(t,e){return parseFloat(Number(t).toFixed(e))},parseUnit:function(t,e){var i=/\\\\D{0,2}$/.exec(t),r=parseFloat(t);switch(e||(e=T.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case\\\"mm\\\":return r*T.DPI/25.4;case\\\"cm\\\":return r*T.DPI/2.54;case\\\"in\\\":return r*T.DPI;case\\\"pt\\\":return r*T.DPI/72;case\\\"pc\\\":return r*T.DPI/72*12;case\\\"em\\\":return r*e;default:return r}},falseFunction:function(){return!1},getKlass:function(t,e){return t=T.util.string.camelize(t.charAt(0).toUpperCase()+t.slice(1)),T.util.resolveNamespace(e)[t]},getSvgAttributes:function(t){var e=[\\\"instantiated_by_use\\\",\\\"style\\\",\\\"id\\\",\\\"class\\\"];switch(t){case\\\"linearGradient\\\":e=e.concat([\\\"x1\\\",\\\"y1\\\",\\\"x2\\\",\\\"y2\\\",\\\"gradientUnits\\\",\\\"gradientTransform\\\"]);break;case\\\"radialGradient\\\":e=e.concat([\\\"gradientUnits\\\",\\\"gradientTransform\\\",\\\"cx\\\",\\\"cy\\\",\\\"r\\\",\\\"fx\\\",\\\"fy\\\",\\\"fr\\\"]);break;case\\\"stop\\\":e=e.concat([\\\"offset\\\",\\\"stop-color\\\",\\\"stop-opacity\\\"])}return e},resolveNamespace:function(t){if(!t)return T;var e,i=t.split(\\\".\\\"),r=i.length,o=n||T.window;for(e=0;e\\u003cr;++e)o=o[i[e]];return o},loadImage:function(t,e,i,r){if(t){var n=T.util.createImage(),o=function(){e\\u0026\\u0026e.call(i,n,!1),n=n.onload=n.onerror=null};n.onload=o,n.onerror=function(){T.log(\\\"Error loading \\\"+n.src),e\\u0026\\u0026e.call(i,null,!0),n=n.onload=n.onerror=null},0!==t.indexOf(\\\"data\\\")\\u0026\\u0026null!=r\\u0026\\u0026(n.crossOrigin=r),\\\"data:image/svg\\\"===t.substring(0,14)\\u0026\\u0026(n.onload=null,T.util.loadImageInDom(n,o)),n.src=t}else e\\u0026\\u0026e.call(i,t)},loadImageInDom:function(t,e){var i=T.document.createElement(\\\"div\\\");i.style.width=i.style.height=\\\"1px\\\",i.style.left=i.style.top=\\\"-100%\\\",i.style.position=\\\"absolute\\\",i.appendChild(t),T.document.querySelector(\\\"body\\\").appendChild(i),t.onload=function(){e(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(t,e,i,r){var n=[],o=0,s=(t=t||[]).length;function a(){++o===s\\u0026\\u0026e\\u0026\\u0026e(n.filter((function(t){return t})))}s?t.forEach((function(t,e){t\\u0026\\u0026t.type?T.util.getKlass(t.type,i).fromObject(t,(function(i,o){o||(n[e]=i),r\\u0026\\u0026r(t,i,o),a()})):a()})):e\\u0026\\u0026e(n)},enlivenPatterns:function(t,e){function i(){++n===o\\u0026\\u0026e\\u0026\\u0026e(r)}var r=[],n=0,o=(t=t||[]).length;o?t.forEach((function(t,e){t\\u0026\\u0026t.source?new T.Pattern(t,(function(t){r[e]=t,i()})):(r[e]=t,i())})):e\\u0026\\u0026e(r)},groupSVGElements:function(t,e,i){var r;return t\\u0026\\u00261===t.length?t[0]:(e\\u0026\\u0026(e.width\\u0026\\u0026e.height?e.centerPoint={x:e.width/2,y:e.height/2}:(delete e.width,delete e.height)),r=new T.Group(t,e),void 0!==i\\u0026\\u0026(r.sourcePath=i),r)},populateWithProperties:function(t,e,i){if(i\\u0026\\u0026\\\"[object Array]\\\"===Object.prototype.toString.call(i))for(var r=0,n=i.length;r\\u003cn;r++)i[r]in t\\u0026\\u0026(e[i[r]]=t[i[r]])},drawDashedLine:function(t,e,i,r,n,a){var h=r-e,c=n-i,l=o(h*h+c*c),u=s(c,h),f=a.length,d=0,g=!0;for(t.save(),t.translate(e,i),t.moveTo(0,0),t.rotate(u),e=0;l\\u003ee;)(e+=a[d++%f])\\u003el\\u0026\\u0026(e=l),t[g?\\\"lineTo\\\":\\\"moveTo\\\"](e,0),g=!g;t.restore()},createCanvasElement:function(){return T.document.createElement(\\\"canvas\\\")},copyCanvasElement:function(t){var e=T.util.createCanvasElement();return e.width=t.width,e.height=t.height,e.getContext(\\\"2d\\\").drawImage(t,0,0),e},toDataURL:function(t,e,i){return t.toDataURL(\\\"image/\\\"+e,i)},createImage:function(){return T.document.createElement(\\\"img\\\")},multiplyTransformMatrices:function(t,e,i){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],i?0:t[0]*e[4]+t[2]*e[5]+t[4],i?0:t[1]*e[4]+t[3]*e[5]+t[5]]},qrDecompose:function(t){var e=s(t[1],t[0]),i=a(t[0],2)+a(t[1],2),r=o(i),n=(t[0]*t[3]-t[2]*t[1])/r,c=s(t[0]*t[2]+t[1]*t[3],i);return{angle:e/h,scaleX:r,scaleY:n,skewX:c/h,skewY:0,translateX:t[4],translateY:t[5]}},calcRotateMatrix:function(t){if(!t.angle)return T.iMatrix.concat();var e=T.util.degreesToRadians(t.angle),i=T.util.cos(e),r=T.util.sin(e);return[i,r,-r,i,0,0]},calcDimensionsMatrix:function(t){var e=void 0===t.scaleX?1:t.scaleX,i=void 0===t.scaleY?1:t.scaleY,r=[t.flipX?-e:e,0,0,t.flipY?-i:i,0,0],n=T.util.multiplyTransformMatrices,o=T.util.degreesToRadians;return t.skewX\\u0026\\u0026(r=n(r,[1,0,Math.tan(o(t.skewX)),1],!0)),t.skewY\\u0026\\u0026(r=n(r,[1,Math.tan(o(t.skewY)),0,1],!0)),r},composeMatrix:function(t){var e=[1,0,0,1,t.translateX||0,t.translateY||0],i=T.util.multiplyTransformMatrices;return t.angle\\u0026\\u0026(e=i(e,T.util.calcRotateMatrix(t))),(1!==t.scaleX||1!==t.scaleY||t.skewX||t.skewY||t.flipX||t.flipY)\\u0026\\u0026(e=i(e,T.util.calcDimensionsMatrix(t))),e},resetObjectTransform:function(t){t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.flipX=!1,t.flipY=!1,t.rotate(0)},saveObjectTransform:function(t){return{scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,angle:t.angle,left:t.left,flipX:t.flipX,flipY:t.flipY,top:t.top}},isTransparent:function(t,e,i,r){r\\u003e0\\u0026\\u0026(e\\u003er?e-=r:e=0,i\\u003er?i-=r:i=0);var n,o=!0,s=t.getImageData(e,i,2*r||1,2*r||1),a=s.data.length;for(n=3;n\\u003ca\\u0026\\u0026!1!=(o=s.data[n]\\u003c=0);n+=4);return s=null,o},parsePreserveAspectRatioAttribute:function(t){var e,i=\\\"meet\\\",r=t.split(\\\" \\\");return r\\u0026\\u0026r.length\\u0026\\u0026(\\\"meet\\\"!==(i=r.pop())\\u0026\\u0026\\\"slice\\\"!==i?(e=i,i=\\\"meet\\\"):r.length\\u0026\\u0026(e=r.pop())),{meetOrSlice:i,alignX:\\\"none\\\"!==e?e.slice(1,4):\\\"none\\\",alignY:\\\"none\\\"!==e?e.slice(5,8):\\\"none\\\"}},clearFabricFontCache:function(t){(t=(t||\\\"\\\").toLowerCase())?T.charWidthsCache[t]\\u0026\\u0026delete T.charWidthsCache[t]:T.charWidthsCache={}},limitDimsByArea:function(t,e){var i=Math.sqrt(e*t),r=Math.floor(e/i);return{x:Math.floor(i),y:r}},capValue:function(t,e,i){return Math.max(t,Math.min(e,i))},findScaleToFit:function(t,e){return Math.min(e.width/t.width,e.height/t.height)},findScaleToCover:function(t,e){return Math.max(e.width/t.width,e.height/t.height)},matrixToSVG:function(t){return\\\"matrix(\\\"+t.map((function(t){return T.util.toFixed(t,T.Object.NUM_FRACTION_DIGITS)})).join(\\\" \\\")+\\\")\\\"},removeTransformFromObject:function(t,e){var i=T.util.invertTransform(e),r=T.util.multiplyTransformMatrices(i,t.calcOwnMatrix());T.util.applyTransformToObject(t,r)},addTransformToObject:function(t,e){T.util.applyTransformToObject(t,T.util.multiplyTransformMatrices(e,t.calcOwnMatrix()))},applyTransformToObject:function(t,e){var i=T.util.qrDecompose(e),r=new T.Point(i.translateX,i.translateY);t.flipX=!1,t.flipY=!1,t.set(\\\"scaleX\\\",i.scaleX),t.set(\\\"scaleY\\\",i.scaleY),t.skewX=i.skewX,t.skewY=i.skewY,t.angle=i.angle,t.setPositionByOrigin(r,\\\"center\\\",\\\"center\\\")},sizeAfterTransform:function(t,e,i){var r=t/2,n=e/2,o=[{x:-r,y:-n},{x:r,y:-n},{x:-r,y:n},{x:r,y:n}],s=T.util.calcDimensionsMatrix(i),a=T.util.makeBoundingBoxFromPoints(o,s);return{x:a.width,y:a.height}}},T.util.createAccessors=function(t){var e,i,r,n,o,s=t.prototype;for(e=s.stateProperties.length;e--;)n=\\\"set\\\"+(r=(i=s.stateProperties[e]).charAt(0).toUpperCase()+i.slice(1)),s[o=\\\"get\\\"+r]||(s[o]=new Function('return this.get(\\\"'+i+'\\\")')),s[n]||(s[n]=function(t){return new Function(\\\"value\\\",'return this.set(\\\"'+t+'\\\", value)')}(i))},function(){var t=Array.prototype.join,e={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:\\\"l\\\",M:\\\"L\\\"};function r(t,e,i,r,n,o,s,a,h,c,l){var u=T.util.cos(t),f=T.util.sin(t),d=T.util.cos(e),g=T.util.sin(e),p=i*n*d-r*o*g+s,v=r*n*d+i*o*g+a;return[\\\"C\\\",c+h*(-i*n*f-r*o*u),l+h*(-r*n*f+i*o*u),p+h*(i*n*g+r*o*d),v+h*(r*n*g-i*o*d),p,v]}function n(t,e,i,n,s,a,h){var c=Math.PI,l=h*c/180,u=T.util.sin(l),f=T.util.cos(l),d=0,g=0,p=-f*t*.5-u*e*.5,v=-f*e*.5+u*t*.5,m=(i=Math.abs(i))*i,y=(n=Math.abs(n))*n,_=v*v,b=p*p,x=m*y-m*_-y*b,C=0;if(x\\u003c0){var w=Math.sqrt(1-x/(m*y));i*=w,n*=w}else C=(s===a?-1:1)*Math.sqrt(x/(m*_+y*b));var S=C*i*v/n,O=-C*n*p/i,P=f*S-u*O+.5*t,E=u*S+f*O+.5*e,k=o(1,0,(p-S)/i,(v-O)/n),A=o((p-S)/i,(v-O)/n,(-p-S)/i,(-v-O)/n);0===a\\u0026\\u0026A\\u003e0?A-=2*c:1===a\\u0026\\u0026A\\u003c0\\u0026\\u0026(A+=2*c);for(var D=Math.ceil(Math.abs(A/c*2)),M=[],j=A/D,F=8/3*Math.sin(j/4)*Math.sin(j/4)/Math.sin(j/2),L=k+j,I=0;I\\u003cD;I++)M[I]=r(k,L,f,u,i,n,P,E,F,d,g),d=M[I][5],g=M[I][6],k=L,L+=j;return M}function o(t,e,i,r){var n=Math.atan2(e,t),o=Math.atan2(r,i);return o\\u003e=n?o-n:2*Math.PI-(n-o)}function s(e,i,r,n,o,s,a,h){var c;if(T.cachesBoundsOfCurve\\u0026\\u0026(c=t.call(arguments),T.boundsOfCurveCache[c]))return T.boundsOfCurveCache[c];var l,u,f,d,g,p,v,m,y=Math.sqrt,_=Math.min,b=Math.max,x=Math.abs,C=[],w=[[],[]];u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*a,f=3*r-3*e;for(var S=0;S\\u003c2;++S)if(S\\u003e0\\u0026\\u0026(u=6*i-12*n+6*s,l=-3*i+9*n-9*s+3*h,f=3*n-3*i),x(l)\\u003c1e-12){if(x(u)\\u003c1e-12)continue;0\\u003c(d=-f/u)\\u0026\\u0026d\\u003c1\\u0026\\u0026C.push(d)}else(v=u*u-4*f*l)\\u003c0||(0\\u003c(g=(-u+(m=y(v)))/(2*l))\\u0026\\u0026g\\u003c1\\u0026\\u0026C.push(g),0\\u003c(p=(-u-m)/(2*l))\\u0026\\u0026p\\u003c1\\u0026\\u0026C.push(p));for(var O,P,E,k=C.length,A=k;k--;)O=(E=1-(d=C[k]))*E*E*e+3*E*E*d*r+3*E*d*d*o+d*d*d*a,w[0][k]=O,P=E*E*E*i+3*E*E*d*n+3*E*d*d*s+d*d*d*h,w[1][k]=P;w[0][A]=e,w[1][A]=i,w[0][A+1]=a,w[1][A+1]=h;var D=[{x:_.apply(null,w[0]),y:_.apply(null,w[1])},{x:b.apply(null,w[0]),y:b.apply(null,w[1])}];return T.cachesBoundsOfCurve\\u0026\\u0026(T.boundsOfCurveCache[c]=D),D}function a(t,e,i){for(var r=i[1],o=i[2],s=i[3],a=i[4],h=i[5],c=n(i[6]-t,i[7]-e,r,o,a,h,s),l=0,u=c.length;l\\u003cu;l++)c[l][1]+=t,c[l][2]+=e,c[l][3]+=t,c[l][4]+=e,c[l][5]+=t,c[l][6]+=e;return c}function h(t,e,i,r){return Math.sqrt((i-t)*(i-t)+(r-e)*(r-e))}function c(t,e,i,r,n,o,s,a){return function(h){var c,l=(c=h)*c*c,u=function(t){return 3*t*t*(1-t)}(h),f=function(t){return 3*t*(1-t)*(1-t)}(h),d=function(t){return(1-t)*(1-t)*(1-t)}(h);return{x:s*l+n*u+i*f+t*d,y:a*l+o*u+r*f+e*d}}}function l(t,e,i,r,n,o,s,a){return function(h){var c=1-h,l=3*c*c*(i-t)+6*c*h*(n-i)+3*h*h*(s-n),u=3*c*c*(r-e)+6*c*h*(o-r)+3*h*h*(a-o);return Math.atan2(u,l)}}function u(t,e,i,r,n,o){return function(s){var a,h=(a=s)*a,c=function(t){return 2*t*(1-t)}(s),l=function(t){return(1-t)*(1-t)}(s);return{x:n*h+i*c+t*l,y:o*h+r*c+e*l}}}function f(t,e,i,r,n,o){return function(s){var a=1-s,h=2*a*(i-t)+2*s*(n-i),c=2*a*(r-e)+2*s*(o-r);return Math.atan2(c,h)}}function d(t,e,i){var r,n,o={x:e,y:i},s=0;for(n=1;n\\u003c=100;n+=1)r=t(n/100),s+=h(o.x,o.y,r.x,r.y),o=r;return s}function g(t,e){for(var i,r,n,o=0,s=0,a=t.iterator,c={x:t.x,y:t.y},l=.01,u=t.angleFinder;s\\u003ce\\u0026\\u0026o\\u003c=1\\u0026\\u0026l\\u003e1e-4;)i=a(o),n=o,(r=h(c.x,c.y,i.x,i.y))+s\\u003ee?o-=l/=2:(c=i,o+=l,s+=r);return i.angle=u(n),i}function p(t){for(var e,i,r,n,o=0,s=t.length,a=0,g=0,p=0,v=0,m=[],y=0;y\\u003cs;y++){switch(r={x:a,y:g,command:(e=t[y])[0]},e[0]){case\\\"M\\\":r.length=0,p=a=e[1],v=g=e[2];break;case\\\"L\\\":r.length=h(a,g,e[1],e[2]),a=e[1],g=e[2];break;case\\\"C\\\":i=c(a,g,e[1],e[2],e[3],e[4],e[5],e[6]),n=l(a,g,e[1],e[2],e[3],e[4],e[5],e[6]),r.iterator=i,r.angleFinder=n,r.length=d(i,a,g),a=e[5],g=e[6];break;case\\\"Q\\\":i=u(a,g,e[1],e[2],e[3],e[4]),n=f(a,g,e[1],e[2],e[3],e[4]),r.iterator=i,r.angleFinder=n,r.length=d(i,a,g),a=e[3],g=e[4];break;case\\\"Z\\\":case\\\"z\\\":r.destX=p,r.destY=v,r.length=h(a,g,p,v),a=p,g=v}o+=r.length,m.push(r)}return m.push({length:o,x:a,y:g}),m}T.util.joinPath=function(t){return t.map((function(t){return t.join(\\\" \\\")})).join(\\\" \\\")},T.util.parsePath=function(t){var r,n,o,s,a,h=[],c=[],l=T.rePathCommand,u=\\\"[-+]?(?:\\\\\\\\d*\\\\\\\\.\\\\\\\\d+|\\\\\\\\d+\\\\\\\\.?)(?:[eE][-+]?\\\\\\\\d+)?\\\\\\\\s*\\\",f=\\\"(\\\"+u+\\\")\\\"+T.commaWsp,d=\\\"([01])\\\"+T.commaWsp+\\\"?\\\",g=new RegExp(f+\\\"?\\\"+f+\\\"?\\\"+f+d+d+f+\\\"?(\\\"+u+\\\")\\\",\\\"g\\\");if(!t||!t.match)return h;for(var p,v=0,m=(a=t.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;v\\u003cm;v++){s=(r=a[v]).slice(1).trim(),c.length=0;var y=r.charAt(0);if(p=[y],\\\"a\\\"===y.toLowerCase())for(var _;_=g.exec(s);)for(var b=1;b\\u003c_.length;b++)c.push(_[b]);else for(;o=l.exec(s);)c.push(o[0]);b=0;for(var x=c.length;b\\u003cx;b++)n=parseFloat(c[b]),isNaN(n)||p.push(n);var C=e[y.toLowerCase()],w=i[y]||y;if(p.length-1\\u003eC)for(var S=1,O=p.length;S\\u003cO;S+=C)h.push([y].concat(p.slice(S,S+C))),y=w;else h.push(p)}return h},T.util.makePathSimpler=function(t){var e,i,r,n,o,s,h=0,c=0,l=t.length,u=0,f=0,d=[];for(i=0;i\\u003cl;++i){switch(r=!1,(e=t[i].slice(0))[0]){case\\\"l\\\":e[0]=\\\"L\\\",e[1]+=h,e[2]+=c;case\\\"L\\\":h=e[1],c=e[2];break;case\\\"h\\\":e[1]+=h;case\\\"H\\\":e[0]=\\\"L\\\",e[2]=c,h=e[1];break;case\\\"v\\\":e[1]+=c;case\\\"V\\\":e[0]=\\\"L\\\",c=e[1],e[1]=h,e[2]=c;break;case\\\"m\\\":e[0]=\\\"M\\\",e[1]+=h,e[2]+=c;case\\\"M\\\":h=e[1],c=e[2],u=e[1],f=e[2];break;case\\\"c\\\":e[0]=\\\"C\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c,e[5]+=h,e[6]+=c;case\\\"C\\\":o=e[3],s=e[4],h=e[5],c=e[6];break;case\\\"s\\\":e[0]=\\\"S\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c;case\\\"S\\\":\\\"C\\\"===n?(o=2*h-o,s=2*c-s):(o=h,s=c),h=e[3],c=e[4],e[0]=\\\"C\\\",e[5]=e[3],e[6]=e[4],e[3]=e[1],e[4]=e[2],e[1]=o,e[2]=s,o=e[3],s=e[4];break;case\\\"q\\\":e[0]=\\\"Q\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c;case\\\"Q\\\":o=e[1],s=e[2],h=e[3],c=e[4];break;case\\\"t\\\":e[0]=\\\"T\\\",e[1]+=h,e[2]+=c;case\\\"T\\\":\\\"Q\\\"===n?(o=2*h-o,s=2*c-s):(o=h,s=c),e[0]=\\\"Q\\\",h=e[1],c=e[2],e[1]=o,e[2]=s,e[3]=h,e[4]=c;break;case\\\"a\\\":e[0]=\\\"A\\\",e[6]+=h,e[7]+=c;case\\\"A\\\":r=!0,d=d.concat(a(h,c,e)),h=e[6],c=e[7];break;case\\\"z\\\":case\\\"Z\\\":h=u,c=f}r||d.push(e),n=e[0]}return d},T.util.getSmoothPathFromPoints=function(t,e){var i,r=[],n=new T.Point(t[0].x,t[0].y),o=new T.Point(t[1].x,t[1].y),s=t.length,a=1,h=0,c=s\\u003e2;for(e=e||0,c\\u0026\\u0026(a=t[2].x\\u003co.x?-1:t[2].x===o.x?0:1,h=t[2].y\\u003co.y?-1:t[2].y===o.y?0:1),r.push([\\\"M\\\",n.x-a*e,n.y-h*e]),i=1;i\\u003cs;i++){if(!n.eq(o)){var l=n.midPointFrom(o);r.push([\\\"Q\\\",n.x,n.y,l.x,l.y])}n=t[i],i+1\\u003ct.length\\u0026\\u0026(o=t[i+1])}return c\\u0026\\u0026(a=n.x\\u003et[i-2].x?1:n.x===t[i-2].x?0:-1,h=n.y\\u003et[i-2].y?1:n.y===t[i-2].y?0:-1),r.push([\\\"L\\\",n.x+a*e,n.y+h*e]),r},T.util.getPathSegmentsInfo=p,T.util.getBoundsOfCurve=s,T.util.getPointOnPath=function(t,e,i){i||(i=p(t));for(var r=0;e-i[r].length\\u003e0\\u0026\\u0026r\\u003ci.length-2;)e-=i[r].length,r++;var n,o=i[r],s=e/o.length,a=o.command,h=t[r];switch(a){case\\\"M\\\":return{x:o.x,y:o.y,angle:0};case\\\"Z\\\":case\\\"z\\\":return(n=new T.Point(o.x,o.y).lerp(new T.Point(o.destX,o.destY),s)).angle=Math.atan2(o.destY-o.y,o.destX-o.x),n;case\\\"L\\\":return(n=new T.Point(o.x,o.y).lerp(new T.Point(h[1],h[2]),s)).angle=Math.atan2(h[2]-o.y,h[1]-o.x),n;case\\\"C\\\":case\\\"Q\\\":return g(o,e)}},T.util.transformPath=function(t,e,i){return i\\u0026\\u0026(e=T.util.multiplyTransformMatrices(e,[1,0,0,1,-i.x,-i.y])),t.map((function(t){for(var i=t.slice(0),r={},n=1;n\\u003ct.length-1;n+=2)r.x=t[n],r.y=t[n+1],r=T.util.transformPoint(r,e),i[n]=r.x,i[n+1]=r.y;return i}))},T.util.fromArcToBeizers=a,T.util.getBoundsOfArc=function(t,e,i,r,o,a,h,c,l){for(var u,f=0,d=0,g=[],p=n(c-t,l-e,i,r,a,h,o),v=0,m=p.length;v\\u003cm;v++)u=s(f,d,p[v][1],p[v][2],p[v][3],p[v][4],p[v][5],p[v][6]),g.push({x:u[0].x+t,y:u[0].y+e}),g.push({x:u[1].x+t,y:u[1].y+e}),f=p[v][5],d=p[v][6];return g},T.util.drawArc=function(t,e,i,r){a(e,i,r=r.slice(0).unshift(\\\"X\\\")).forEach((function(e){t.bezierCurveTo.apply(t,e.slice(1))}))}}(),function(){var t=Array.prototype.slice;function e(t,e,i){if(t\\u0026\\u00260!==t.length){var r=t.length-1,n=e?t[r][e]:t[r];if(e)for(;r--;)i(t[r][e],n)\\u0026\\u0026(n=t[r][e]);else for(;r--;)i(t[r],n)\\u0026\\u0026(n=t[r]);return n}}T.util.array={fill:function(t,e){for(var i=t.length;i--;)t[i]=e;return t},invoke:function(e,i){for(var r=t.call(arguments,2),n=[],o=0,s=e.length;o\\u003cs;o++)n[o]=r.length?e[o][i].apply(e[o],r):e[o][i].call(e[o]);return n},min:function(t,i){return e(t,i,(function(t,e){return t\\u003ce}))},max:function(t,i){return e(t,i,(function(t,e){return t\\u003e=e}))}}}(),function(){function t(e,i,r){if(r)if(!T.isLikelyNode\\u0026\\u0026i instanceof Element)e=i;else if(i instanceof Array){e=[];for(var n=0,o=i.length;n\\u003co;n++)e[n]=t({},i[n],r)}else if(i\\u0026\\u0026\\\"object\\\"==typeof i)for(var s in i)\\\"canvas\\\"===s||\\\"group\\\"===s?e[s]=null:i.hasOwnProperty(s)\\u0026\\u0026(e[s]=t({},i[s],r));else e=i;else for(var s in i)e[s]=i[s];return e}T.util.object={extend:t,clone:function(e,i){return t({},e,i)}},T.util.object.extend(T.util,T.Observable)}(),function(){function t(t,e){var i=t.charCodeAt(e);if(isNaN(i))return\\\"\\\";if(i\\u003c55296||i\\u003e57343)return t.charAt(e);if(55296\\u003c=i\\u0026\\u0026i\\u003c=56319){if(t.length\\u003c=e+1)throw\\\"High surrogate without following low surrogate\\\";var r=t.charCodeAt(e+1);if(56320\\u003er||r\\u003e57343)throw\\\"High surrogate without following low surrogate\\\";return t.charAt(e)+t.charAt(e+1)}if(0===e)throw\\\"Low surrogate without preceding high surrogate\\\";var n=t.charCodeAt(e-1);if(55296\\u003en||n\\u003e56319)throw\\\"Low surrogate without preceding high surrogate\\\";return!1}T.util.string={camelize:function(t){return t.replace(/-+(.)?/g,(function(t,e){return e?e.toUpperCase():\\\"\\\"}))},capitalize:function(t,e){return t.charAt(0).toUpperCase()+(e?t.slice(1):t.slice(1).toLowerCase())},escapeXml:function(t){return t.replace(/\\u0026/g,\\\"\\u0026amp;\\\").replace(/\\\"/g,\\\"\\u0026quot;\\\").replace(/'/g,\\\"\\u0026apos;\\\").replace(/\\u003c/g,\\\"\\u0026lt;\\\").replace(/\\u003e/g,\\\"\\u0026gt;\\\")},graphemeSplit:function(e){var i,r=0,n=[];for(r=0;r\\u003ce.length;r++)!1!==(i=t(e,r))\\u0026\\u0026n.push(i);return n}}}(),function(){var t=Array.prototype.slice,e=function(){},i=function(){for(var t in{toString:1})if(\\\"toString\\\"===t)return!1;return!0}(),r=function(t,e,r){for(var n in e)n in t.prototype\\u0026\\u0026\\\"function\\\"==typeof t.prototype[n]\\u0026\\u0026(e[n]+\\\"\\\").indexOf(\\\"callSuper\\\")\\u003e-1?t.prototype[n]=function(t){return function(){var i=this.constructor.superclass;this.constructor.superclass=r;var n=e[t].apply(this,arguments);if(this.constructor.superclass=i,\\\"initialize\\\"!==t)return n}}(n):t.prototype[n]=e[n],i\\u0026\\u0026(e.toString!==Object.prototype.toString\\u0026\\u0026(t.prototype.toString=e.toString),e.valueOf!==Object.prototype.valueOf\\u0026\\u0026(t.prototype.valueOf=e.valueOf))};function n(){}function o(e){for(var i=null,r=this;r.constructor.superclass;){var n=r.constructor.superclass.prototype[e];if(r[e]!==n){i=n;break}r=r.constructor.superclass.prototype}return i?arguments.length\\u003e1?i.apply(this,t.call(arguments,1)):i.call(this):console.log(\\\"tried to callSuper \\\"+e+\\\", method not found in prototype chain\\\",this)}T.util.createClass=function(){var i=null,s=t.call(arguments,0);function a(){this.initialize.apply(this,arguments)}\\\"function\\\"==typeof s[0]\\u0026\\u0026(i=s.shift()),a.superclass=i,a.subclasses=[],i\\u0026\\u0026(n.prototype=i.prototype,a.prototype=new n,i.subclasses.push(a));for(var h=0,c=s.length;h\\u003cc;h++)r(a,s[h],i);return a.prototype.initialize||(a.prototype.initialize=e),a.prototype.constructor=a,a.prototype.callSuper=o,a}}(),l=!!T.document.createElement(\\\"div\\\").attachEvent,u=[\\\"touchstart\\\",\\\"touchmove\\\",\\\"touchend\\\"],T.util.addListener=function(t,e,i,r){t\\u0026\\u0026t.addEventListener(e,i,!l\\u0026\\u0026r)},T.util.removeListener=function(t,e,i,r){t\\u0026\\u0026t.removeEventListener(e,i,!l\\u0026\\u0026r)},T.util.getPointer=function(t){var e=t.target,i=T.util.getScrollLeftTop(e),r=function(t){var e=t.changedTouches;return e\\u0026\\u0026e[0]?e[0]:t}(t);return{x:r.clientX+i.left,y:r.clientY+i.top}},T.util.isTouchEvent=function(t){return u.indexOf(t.type)\\u003e-1||\\\"touch\\\"===t.pointerType},f=T.document.createElement(\\\"div\\\"),d=\\\"string\\\"==typeof f.style.opacity,g=\\\"string\\\"==typeof f.style.filter,v=/alpha\\\\s*\\\\(\\\\s*opacity\\\\s*=\\\\s*([^\\\\)]+)\\\\)/,m=function(t){return t},d?m=function(t,e){return t.style.opacity=e,t}:g\\u0026\\u0026(m=function(t,e){var i=t.style;return t.currentStyle\\u0026\\u0026!t.currentStyle.hasLayout\\u0026\\u0026(i.zoom=1),v.test(i.filter)?(e=e\\u003e=.9999?\\\"\\\":\\\"alpha(opacity=\\\"+100*e+\\\")\\\",i.filter=i.filter.replace(v,e)):i.filter+=\\\" alpha(opacity=\\\"+100*e+\\\")\\\",t}),T.util.setStyle=function(t,e){var i=t.style;if(!i)return t;if(\\\"string\\\"==typeof e)return t.style.cssText+=\\\";\\\"+e,e.indexOf(\\\"opacity\\\")\\u003e-1?m(t,e.match(/opacity:\\\\s*(\\\\d?\\\\.?\\\\d*)/)[1]):t;for(var r in e)\\\"opacity\\\"===r?m(t,e[r]):i[\\\"float\\\"===r||\\\"cssFloat\\\"===r?void 0===i.styleFloat?\\\"cssFloat\\\":\\\"styleFloat\\\":r]=e[r];return t},function(){var t=Array.prototype.slice;var e,i,r,n,o=function(e){return t.call(e,0)};try{e=o(T.document.childNodes)instanceof Array}catch(t){}function s(t,e){var i=T.document.createElement(t);for(var r in e)\\\"class\\\"===r?i.className=e[r]:\\\"for\\\"===r?i.htmlFor=e[r]:i.setAttribute(r,e[r]);return i}function a(t){for(var e=0,i=0,r=T.document.documentElement,n=T.document.body||{scrollLeft:0,scrollTop:0};t\\u0026\\u0026(t.parentNode||t.host)\\u0026\\u0026((t=t.parentNode||t.host)===T.document?(e=n.scrollLeft||r.scrollLeft||0,i=n.scrollTop||r.scrollTop||0):(e+=t.scrollLeft||0,i+=t.scrollTop||0),1!==t.nodeType||\\\"fixed\\\"!==t.style.position););return{left:e,top:i}}e||(o=function(t){for(var e=new Array(t.length),i=t.length;i--;)e[i]=t[i];return e}),i=T.document.defaultView\\u0026\\u0026T.document.defaultView.getComputedStyle?function(t,e){var i=T.document.defaultView.getComputedStyle(t,null);return i?i[e]:void 0}:function(t,e){var i=t.style[e];return!i\\u0026\\u0026t.currentStyle\\u0026\\u0026(i=t.currentStyle[e]),i},r=T.document.documentElement.style,n=\\\"userSelect\\\"in r?\\\"userSelect\\\":\\\"MozUserSelect\\\"in r?\\\"MozUserSelect\\\":\\\"WebkitUserSelect\\\"in r?\\\"WebkitUserSelect\\\":\\\"KhtmlUserSelect\\\"in r?\\\"KhtmlUserSelect\\\":\\\"\\\",T.util.makeElementUnselectable=function(t){return void 0!==t.onselectstart\\u0026\\u0026(t.onselectstart=T.util.falseFunction),n?t.style[n]=\\\"none\\\":\\\"string\\\"==typeof t.unselectable\\u0026\\u0026(t.unselectable=\\\"on\\\"),t},T.util.makeElementSelectable=function(t){return void 0!==t.onselectstart\\u0026\\u0026(t.onselectstart=null),n?t.style[n]=\\\"\\\":\\\"string\\\"==typeof t.unselectable\\u0026\\u0026(t.unselectable=\\\"\\\"),t},T.util.setImageSmoothing=function(t,e){t.imageSmoothingEnabled=t.imageSmoothingEnabled||t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled||t.oImageSmoothingEnabled,t.imageSmoothingEnabled=e},T.util.getById=function(t){return\\\"string\\\"==typeof t?T.document.getElementById(t):t},T.util.toArray=o,T.util.addClass=function(t,e){t\\u0026\\u0026-1===(\\\" \\\"+t.className+\\\" \\\").indexOf(\\\" \\\"+e+\\\" \\\")\\u0026\\u0026(t.className+=(t.className?\\\" \\\":\\\"\\\")+e)},T.util.makeElement=s,T.util.wrapElement=function(t,e,i){return\\\"string\\\"==typeof e\\u0026\\u0026(e=s(e,i)),t.parentNode\\u0026\\u0026t.parentNode.replaceChild(e,t),e.appendChild(t),e},T.util.getScrollLeftTop=a,T.util.getElementOffset=function(t){var e,r,n=t\\u0026\\u0026t.ownerDocument,o={left:0,top:0},s={left:0,top:0},h={borderLeftWidth:\\\"left\\\",borderTopWidth:\\\"top\\\",paddingLeft:\\\"left\\\",paddingTop:\\\"top\\\"};if(!n)return s;for(var c in h)s[h[c]]+=parseInt(i(t,c),10)||0;return e=n.documentElement,void 0!==t.getBoundingClientRect\\u0026\\u0026(o=t.getBoundingClientRect()),r=a(t),{left:o.left+r.left-(e.clientLeft||0)+s.left,top:o.top+r.top-(e.clientTop||0)+s.top}},T.util.getNodeCanvas=function(t){var e=T.jsdomImplForWrapper(t);return e._canvas||e._image},T.util.cleanUpJsdomNode=function(t){if(T.isLikelyNode){var e=T.jsdomImplForWrapper(t);e\\u0026\\u0026(e._image=null,e._canvas=null,e._currentSrc=null,e._attributes=null,e._classList=null)}}}(),function(){function t(){}T.util.request=function(e,i){i||(i={});var r=i.method?i.method.toUpperCase():\\\"GET\\\",n=i.onComplete||function(){},o=new T.window.XMLHttpRequest,s=i.body||i.parameters;return o.onreadystatechange=function(){4===o.readyState\\u0026\\u0026(n(o),o.onreadystatechange=t)},\\\"GET\\\"===r\\u0026\\u0026(s=null,\\\"string\\\"==typeof i.parameters\\u0026\\u0026(e=function(t,e){return t+(/\\\\?/.test(t)?\\\"\\u0026\\\":\\\"?\\\")+e}(e,i.parameters))),o.open(r,e,!0),\\\"POST\\\"!==r\\u0026\\u0026\\\"PUT\\\"!==r||o.setRequestHeader(\\\"Content-Type\\\",\\\"application/x-www-form-urlencoded\\\"),o.send(s),o}}(),T.log=console.log,T.warn=console.warn,function(){function t(){return!1}function e(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e}var i=T.window.requestAnimationFrame||T.window.webkitRequestAnimationFrame||T.window.mozRequestAnimationFrame||T.window.oRequestAnimationFrame||T.window.msRequestAnimationFrame||function(t){return T.window.setTimeout(t,1e3/60)},r=T.window.cancelAnimationFrame||T.window.clearTimeout;function n(){return i.apply(T.window,arguments)}T.util.animate=function(i){var r=!1;return n((function(o){i||(i={});var s,a=o||+new Date,h=i.duration||500,c=a+h,l=i.onChange||t,u=i.abort||t,f=i.onComplete||t,d=i.easing||e,g=\\\"startValue\\\"in i?i.startValue:0,p=\\\"endValue\\\"in i?i.endValue:100,v=i.byValue||p-g;i.onStart\\u0026\\u0026i.onStart(),function t(e){var i=(s=e||+new Date)\\u003ec?h:s-a,o=i/h,m=d(i,g,v,h),y=Math.abs((m-g)/v);if(!r){if(!u(m,y,o))return s\\u003ec?(l(p,1,1),void f(p,1,1)):(l(m,y,o),void n(t));f(p,1,1)}}(a)})),function(){r=!0}},T.util.requestAnimFrame=n,T.util.cancelAnimFrame=function(){return r.apply(T.window,arguments)}}(),function(){function t(t,e,i){var r=\\\"rgba(\\\"+parseInt(t[0]+i*(e[0]-t[0]),10)+\\\",\\\"+parseInt(t[1]+i*(e[1]-t[1]),10)+\\\",\\\"+parseInt(t[2]+i*(e[2]-t[2]),10);return r+=\\\",\\\"+(t\\u0026\\u0026e?parseFloat(t[3]+i*(e[3]-t[3])):1),r+=\\\")\\\"}T.util.animateColor=function(e,i,r,n){var o=new T.Color(e).getSource(),s=new T.Color(i).getSource(),a=n.onComplete,h=n.onChange;return n=n||{},T.util.animate(T.util.object.extend(n,{duration:r||500,startValue:o,endValue:s,byValue:s,easing:function(e,i,r,o){return t(i,r,n.colorEasing?n.colorEasing(e,o):1-Math.cos(e/o*(Math.PI/2)))},onComplete:function(e,i,r){if(a)return a(t(s,s,0),i,r)},onChange:function(e,i,r){if(h){if(Array.isArray(e))return h(t(e,e,0),i,r);h(e,i,r)}}}))}}(),function(){function t(t,e,i,r){return t\\u003cMath.abs(e)?(t=e,r=i/4):r=0===e\\u0026\\u00260===t?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(e/t),{a:t,c:e,p:i,s:r}}function e(t,e,i){return t.a*Math.pow(2,10*(e-=1))*Math.sin((e*i-t.s)*(2*Math.PI)/t.p)}function i(t,e,i,n){return i-r(n-t,0,i,n)+e}function r(t,e,i,r){return(t/=r)\\u003c1/2.75?i*(7.5625*t*t)+e:t\\u003c2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t\\u003c2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e}T.util.ease={easeInQuad:function(t,e,i,r){return i*(t/=r)*t+e},easeOutQuad:function(t,e,i,r){return-i*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,i,r){return(t/=r/2)\\u003c1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,r){return i*(t/=r)*t*t+e},easeOutCubic:function(t,e,i,r){return i*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,r){return(t/=r/2)\\u003c1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,r){return i*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,i,r){return-i*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,r){return(t/=r/2)\\u003c1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,r){return i*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,i,r){return i*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,r){return(t/=r/2)\\u003c1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e},easeOutSine:function(t,e,i,r){return i*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,i,r){return-i/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,i,r){return 0===t?e:i*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,i,r){return t===r?e+i:i*(1-Math.pow(2,-10*t/r))+e},easeInOutExpo:function(t,e,i,r){return 0===t?e:t===r?e+i:(t/=r/2)\\u003c1?i/2*Math.pow(2,10*(t-1))+e:i/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,i,r){return-i*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,i,r){return i*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,i,r){return(t/=r/2)\\u003c1?-i/2*(Math.sqrt(1-t*t)-1)+e:i/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(i,r,n,o){var s=0;return 0===i?r:1===(i/=o)?r+n:(s||(s=.3*o),-e(t(n,n,s,1.70158),i,o)+r)},easeOutElastic:function(e,i,r,n){var o=0;if(0===e)return i;if(1===(e/=n))return i+r;o||(o=.3*n);var s=t(r,r,o,1.70158);return s.a*Math.pow(2,-10*e)*Math.sin((e*n-s.s)*(2*Math.PI)/s.p)+s.c+i},easeInOutElastic:function(i,r,n,o){var s=0;if(0===i)return r;if(2===(i/=o/2))return r+n;s||(s=o*(.3*1.5));var a=t(n,n,s,1.70158);return i\\u003c1?-.5*e(a,i,o)+r:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*o-a.s)*(2*Math.PI)/a.p)*.5+a.c+r},easeInBack:function(t,e,i,r,n){return void 0===n\\u0026\\u0026(n=1.70158),i*(t/=r)*t*((n+1)*t-n)+e},easeOutBack:function(t,e,i,r,n){return void 0===n\\u0026\\u0026(n=1.70158),i*((t=t/r-1)*t*((n+1)*t+n)+1)+e},easeInOutBack:function(t,e,i,r,n){return void 0===n\\u0026\\u0026(n=1.70158),(t/=r/2)\\u003c1?i/2*(t*t*((1+(n*=1.525))*t-n))+e:i/2*((t-=2)*t*((1+(n*=1.525))*t+n)+2)+e},easeInBounce:i,easeOutBounce:r,easeInOutBounce:function(t,e,n,o){return t\\u003co/2?.5*i(2*t,0,n,o)+e:.5*r(2*t-o,0,n,o)+.5*n+e}}}(),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n=e.util.toFixed,o=e.util.parseUnit,s=e.util.multiplyTransformMatrices,a={cx:\\\"left\\\",x:\\\"left\\\",r:\\\"radius\\\",cy:\\\"top\\\",y:\\\"top\\\",display:\\\"visible\\\",visibility:\\\"visible\\\",transform:\\\"transformMatrix\\\",\\\"fill-opacity\\\":\\\"fillOpacity\\\",\\\"fill-rule\\\":\\\"fillRule\\\",\\\"font-family\\\":\\\"fontFamily\\\",\\\"font-size\\\":\\\"fontSize\\\",\\\"font-style\\\":\\\"fontStyle\\\",\\\"font-weight\\\":\\\"fontWeight\\\",\\\"letter-spacing\\\":\\\"charSpacing\\\",\\\"paint-order\\\":\\\"paintFirst\\\",\\\"stroke-dasharray\\\":\\\"strokeDashArray\\\",\\\"stroke-dashoffset\\\":\\\"strokeDashOffset\\\",\\\"stroke-linecap\\\":\\\"strokeLineCap\\\",\\\"stroke-linejoin\\\":\\\"strokeLineJoin\\\",\\\"stroke-miterlimit\\\":\\\"strokeMiterLimit\\\",\\\"stroke-opacity\\\":\\\"strokeOpacity\\\",\\\"stroke-width\\\":\\\"strokeWidth\\\",\\\"text-decoration\\\":\\\"textDecoration\\\",\\\"text-anchor\\\":\\\"textAnchor\\\",opacity:\\\"opacity\\\",\\\"clip-path\\\":\\\"clipPath\\\",\\\"clip-rule\\\":\\\"clipRule\\\",\\\"vector-effect\\\":\\\"strokeUniform\\\",\\\"image-rendering\\\":\\\"imageSmoothing\\\"},h={stroke:\\\"strokeOpacity\\\",fill:\\\"fillOpacity\\\"},c=\\\"font-size\\\",l=\\\"clip-path\\\";function u(t){return t in a?a[t]:t}function f(t,i,r,n){var a,h=\\\"[object Array]\\\"===Object.prototype.toString.call(i);if(\\\"fill\\\"!==t\\u0026\\u0026\\\"stroke\\\"!==t||\\\"none\\\"!==i){if(\\\"strokeUniform\\\"===t)return\\\"non-scaling-stroke\\\"===i;if(\\\"strokeDashArray\\\"===t)i=\\\"none\\\"===i?null:i.replace(/,/g,\\\" \\\").split(/\\\\s+/).map(parseFloat);else if(\\\"transformMatrix\\\"===t)i=r\\u0026\\u0026r.transformMatrix?s(r.transformMatrix,e.parseTransformAttribute(i)):e.parseTransformAttribute(i);else if(\\\"visible\\\"===t)i=\\\"none\\\"!==i\\u0026\\u0026\\\"hidden\\\"!==i,r\\u0026\\u0026!1===r.visible\\u0026\\u0026(i=!1);else if(\\\"opacity\\\"===t)i=parseFloat(i),r\\u0026\\u0026void 0!==r.opacity\\u0026\\u0026(i*=r.opacity);else if(\\\"textAnchor\\\"===t)i=\\\"start\\\"===i?\\\"left\\\":\\\"end\\\"===i?\\\"right\\\":\\\"center\\\";else if(\\\"charSpacing\\\"===t)a=o(i,n)/n*1e3;else if(\\\"paintFirst\\\"===t){var c=i.indexOf(\\\"fill\\\"),l=i.indexOf(\\\"stroke\\\");i=\\\"fill\\\";(c\\u003e-1\\u0026\\u0026l\\u003e-1\\u0026\\u0026l\\u003cc||-1===c\\u0026\\u0026l\\u003e-1)\\u0026\\u0026(i=\\\"stroke\\\")}else{if(\\\"href\\\"===t||\\\"xlink:href\\\"===t||\\\"font\\\"===t)return i;if(\\\"imageSmoothing\\\"===t)return\\\"optimizeQuality\\\"===i;a=h?i.map(o):o(i,n)}}else i=\\\"\\\";return!h\\u0026\\u0026isNaN(a)?i:a}function d(t){return new RegExp(\\\"^(\\\"+t.join(\\\"|\\\")+\\\")\\\\\\\\b\\\",\\\"i\\\")}function g(t,e){var i,r,n,o,s=[];for(n=0,o=e.length;n\\u003co;n++)i=e[n],r=t.getElementsByTagName(i),s=s.concat(Array.prototype.slice.call(r));return s}function p(t,e){var i,r=!0;return(i=v(t,e.pop()))\\u0026\\u0026e.length\\u0026\\u0026(r=function(t,e){var i,r=!0;for(;t.parentNode\\u0026\\u00261===t.parentNode.nodeType\\u0026\\u0026e.length;)r\\u0026\\u0026(i=e.pop()),r=v(t=t.parentNode,i);return 0===e.length}(t,e)),i\\u0026\\u0026r\\u0026\\u00260===e.length}function v(t,e){var i,r,n=t.nodeName,o=t.getAttribute(\\\"class\\\"),s=t.getAttribute(\\\"id\\\");if(i=new RegExp(\\\"^\\\"+n,\\\"i\\\"),e=e.replace(i,\\\"\\\"),s\\u0026\\u0026e.length\\u0026\\u0026(i=new RegExp(\\\"#\\\"+s+\\\"(?![a-zA-Z\\\\\\\\-]+)\\\",\\\"i\\\"),e=e.replace(i,\\\"\\\")),o\\u0026\\u0026e.length)for(r=(o=o.split(\\\" \\\")).length;r--;)i=new RegExp(\\\"\\\\\\\\.\\\"+o[r]+\\\"(?![a-zA-Z\\\\\\\\-]+)\\\",\\\"i\\\"),e=e.replace(i,\\\"\\\");return 0===e.length}function m(t,e){var i;if(t.getElementById\\u0026\\u0026(i=t.getElementById(e)),i)return i;var r,n,o,s=t.getElementsByTagName(\\\"*\\\");for(n=0,o=s.length;n\\u003co;n++)if(e===(r=s[n]).getAttribute(\\\"id\\\"))return r}e.svgValidTagNamesRegEx=d([\\\"path\\\",\\\"circle\\\",\\\"polygon\\\",\\\"polyline\\\",\\\"ellipse\\\",\\\"rect\\\",\\\"line\\\",\\\"image\\\",\\\"text\\\"]),e.svgViewBoxElementsRegEx=d([\\\"symbol\\\",\\\"image\\\",\\\"marker\\\",\\\"pattern\\\",\\\"view\\\",\\\"svg\\\"]),e.svgInvalidAncestorsRegEx=d([\\\"pattern\\\",\\\"defs\\\",\\\"symbol\\\",\\\"metadata\\\",\\\"clipPath\\\",\\\"mask\\\",\\\"desc\\\"]),e.svgValidParentsRegEx=d([\\\"symbol\\\",\\\"g\\\",\\\"a\\\",\\\"svg\\\",\\\"clipPath\\\",\\\"defs\\\"]),e.cssRules={},e.gradientDefs={},e.clipPaths={},e.parseTransformAttribute=function(){function t(t,i,r){t[r]=Math.tan(e.util.degreesToRadians(i[0]))}var i=e.iMatrix,r=e.reNum,n=e.commaWsp,o=\\\"(?:\\\"+(\\\"(?:(matrix)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(translate)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")(?:\\\"+n+\\\"(\\\"+r+\\\"))?\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(scale)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")(?:\\\"+n+\\\"(\\\"+r+\\\"))?\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(rotate)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")(?:\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\"))?\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(skewX)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(skewY)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")\\\\\\\\s*\\\\\\\\))\\\")+\\\")\\\",s=new RegExp(\\\"^\\\\\\\\s*(?:\\\"+(\\\"(?:\\\"+o+\\\"(?:\\\"+n+\\\"*\\\"+o+\\\")*)\\\")+\\\"?)\\\\\\\\s*$\\\"),a=new RegExp(o,\\\"g\\\");return function(r){var n=i.concat(),h=[];if(!r||r\\u0026\\u0026!s.test(r))return n;r.replace(a,(function(r){var s=new RegExp(o).exec(r).filter((function(t){return!!t})),a=s[1],c=s.slice(2).map(parseFloat);switch(a){case\\\"translate\\\":!function(t,e){t[4]=e[0],2===e.length\\u0026\\u0026(t[5]=e[1])}(n,c);break;case\\\"rotate\\\":c[0]=e.util.degreesToRadians(c[0]),function(t,i){var r=e.util.cos(i[0]),n=e.util.sin(i[0]),o=0,s=0;3===i.length\\u0026\\u0026(o=i[1],s=i[2]),t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=o-(r*o-n*s),t[5]=s-(n*o+r*s)}(n,c);break;case\\\"scale\\\":!function(t,e){var i=e[0],r=2===e.length?e[1]:e[0];t[0]=i,t[3]=r}(n,c);break;case\\\"skewX\\\":t(n,c,2);break;case\\\"skewY\\\":t(n,c,1);break;case\\\"matrix\\\":n=c}h.push(n.concat()),n=i.concat()}));for(var c=h[0];h.length\\u003e1;)h.shift(),c=e.util.multiplyTransformMatrices(c,h[0]);return c}}();var y=new RegExp(\\\"^\\\\\\\\s*(\\\"+e.reNum+\\\"+)\\\\\\\\s*,?\\\\\\\\s*(\\\"+e.reNum+\\\"+)\\\\\\\\s*,?\\\\\\\\s*(\\\"+e.reNum+\\\"+)\\\\\\\\s*,?\\\\\\\\s*(\\\"+e.reNum+\\\"+)\\\\\\\\s*$\\\");function _(t){if(!e.svgViewBoxElementsRegEx.test(t.nodeName))return{};var i,r,n,s,a,h,c=t.getAttribute(\\\"viewBox\\\"),l=1,u=1,f=t.getAttribute(\\\"width\\\"),d=t.getAttribute(\\\"height\\\"),g=t.getAttribute(\\\"x\\\")||0,p=t.getAttribute(\\\"y\\\")||0,v=t.getAttribute(\\\"preserveAspectRatio\\\")||\\\"\\\",m=!c||!(c=c.match(y)),_=!f||!d||\\\"100%\\\"===f||\\\"100%\\\"===d,b=m\\u0026\\u0026_,x={},C=\\\"\\\",w=0,S=0;if(x.width=0,x.height=0,x.toBeParsed=b,m\\u0026\\u0026(g||p)\\u0026\\u0026t.parentNode\\u0026\\u0026\\\"#document\\\"!==t.parentNode.nodeName\\u0026\\u0026(C=\\\" translate(\\\"+o(g)+\\\" \\\"+o(p)+\\\") \\\",a=(t.getAttribute(\\\"transform\\\")||\\\"\\\")+C,t.setAttribute(\\\"transform\\\",a),t.removeAttribute(\\\"x\\\"),t.removeAttribute(\\\"y\\\")),b)return x;if(m)return x.width=o(f),x.height=o(d),x;if(i=-parseFloat(c[1]),r=-parseFloat(c[2]),n=parseFloat(c[3]),s=parseFloat(c[4]),x.minX=i,x.minY=r,x.viewBoxWidth=n,x.viewBoxHeight=s,_?(x.width=n,x.height=s):(x.width=o(f),x.height=o(d),l=x.width/n,u=x.height/s),\\\"none\\\"!==(v=e.util.parsePreserveAspectRatioAttribute(v)).alignX\\u0026\\u0026(\\\"meet\\\"===v.meetOrSlice\\u0026\\u0026(u=l=l\\u003eu?u:l),\\\"slice\\\"===v.meetOrSlice\\u0026\\u0026(u=l=l\\u003eu?l:u),w=x.width-n*l,S=x.height-s*l,\\\"Mid\\\"===v.alignX\\u0026\\u0026(w/=2),\\\"Mid\\\"===v.alignY\\u0026\\u0026(S/=2),\\\"Min\\\"===v.alignX\\u0026\\u0026(w=0),\\\"Min\\\"===v.alignY\\u0026\\u0026(S=0)),1===l\\u0026\\u00261===u\\u0026\\u00260===i\\u0026\\u00260===r\\u0026\\u00260===g\\u0026\\u00260===p)return x;if((g||p)\\u0026\\u0026\\\"#document\\\"!==t.parentNode.nodeName\\u0026\\u0026(C=\\\" translate(\\\"+o(g)+\\\" \\\"+o(p)+\\\") \\\"),a=C+\\\" matrix(\\\"+l+\\\" 0 0 \\\"+u+\\\" \\\"+(i*l+w)+\\\" \\\"+(r*u+S)+\\\") \\\",\\\"svg\\\"===t.nodeName){for(h=t.ownerDocument.createElementNS(e.svgNS,\\\"g\\\");t.firstChild;)h.appendChild(t.firstChild);t.appendChild(h)}else(h=t).removeAttribute(\\\"x\\\"),h.removeAttribute(\\\"y\\\"),a=h.getAttribute(\\\"transform\\\")+a;return h.setAttribute(\\\"transform\\\",a),x}function b(t,e){var i=\\\"xlink:href\\\",r=m(t,e.getAttribute(i).substr(1));if(r\\u0026\\u0026r.getAttribute(i)\\u0026\\u0026b(t,r),[\\\"gradientTransform\\\",\\\"x1\\\",\\\"x2\\\",\\\"y1\\\",\\\"y2\\\",\\\"gradientUnits\\\",\\\"cx\\\",\\\"cy\\\",\\\"r\\\",\\\"fx\\\",\\\"fy\\\"].forEach((function(t){r\\u0026\\u0026!e.hasAttribute(t)\\u0026\\u0026r.hasAttribute(t)\\u0026\\u0026e.setAttribute(t,r.getAttribute(t))})),!e.children.length)for(var n=r.cloneNode(!0);n.firstChild;)e.appendChild(n.firstChild);e.removeAttribute(i)}e.parseSVGDocument=function(t,i,n,o){if(t){!function(t){for(var i=g(t,[\\\"use\\\",\\\"svg:use\\\"]),r=0;i.length\\u0026\\u0026r\\u003ci.length;){var n=i[r],o=n.getAttribute(\\\"xlink:href\\\")||n.getAttribute(\\\"href\\\");if(null===o)return;var s,a,h,c,l=o.substr(1),u=n.getAttribute(\\\"x\\\")||0,f=n.getAttribute(\\\"y\\\")||0,d=m(t,l).cloneNode(!0),p=(d.getAttribute(\\\"transform\\\")||\\\"\\\")+\\\" translate(\\\"+u+\\\", \\\"+f+\\\")\\\",v=i.length,y=e.svgNS;if(_(d),/^svg$/i.test(d.nodeName)){var b=d.ownerDocument.createElementNS(y,\\\"g\\\");for(a=0,c=(h=d.attributes).length;a\\u003cc;a++)s=h.item(a),b.setAttributeNS(y,s.nodeName,s.nodeValue);for(;d.firstChild;)b.appendChild(d.firstChild);d=b}for(a=0,c=(h=n.attributes).length;a\\u003cc;a++)\\\"x\\\"!==(s=h.item(a)).nodeName\\u0026\\u0026\\\"y\\\"!==s.nodeName\\u0026\\u0026\\\"xlink:href\\\"!==s.nodeName\\u0026\\u0026\\\"href\\\"!==s.nodeName\\u0026\\u0026(\\\"transform\\\"===s.nodeName?p=s.nodeValue+\\\" \\\"+p:d.setAttribute(s.nodeName,s.nodeValue));d.setAttribute(\\\"transform\\\",p),d.setAttribute(\\\"instantiated_by_use\\\",\\\"1\\\"),d.removeAttribute(\\\"id\\\"),n.parentNode.replaceChild(d,n),i.length===v\\u0026\\u0026r++}}(t);var s,a,h=e.Object.__uid++,c=_(t),l=e.util.toArray(t.getElementsByTagName(\\\"*\\\"));if(c.crossOrigin=o\\u0026\\u0026o.crossOrigin,c.svgUid=h,0===l.length\\u0026\\u0026e.isLikelyNode){var u=[];for(s=0,a=(l=t.selectNodes('//*[name(.)!=\\\"svg\\\"]')).length;s\\u003ca;s++)u[s]=l[s];l=u}var f=l.filter((function(t){return _(t),e.svgValidTagNamesRegEx.test(t.nodeName.replace(\\\"svg:\\\",\\\"\\\"))\\u0026\\u0026!function(t,e){for(;t\\u0026\\u0026(t=t.parentNode);)if(t.nodeName\\u0026\\u0026e.test(t.nodeName.replace(\\\"svg:\\\",\\\"\\\"))\\u0026\\u0026!t.getAttribute(\\\"instantiated_by_use\\\"))return!0;return!1}(t,e.svgInvalidAncestorsRegEx)}));if(!f||f\\u0026\\u0026!f.length)i\\u0026\\u0026i([],{});else{var d={};l.filter((function(t){return\\\"clipPath\\\"===t.nodeName.replace(\\\"svg:\\\",\\\"\\\")})).forEach((function(t){var i=t.getAttribute(\\\"id\\\");d[i]=e.util.toArray(t.getElementsByTagName(\\\"*\\\")).filter((function(t){return e.svgValidTagNamesRegEx.test(t.nodeName.replace(\\\"svg:\\\",\\\"\\\"))}))})),e.gradientDefs[h]=e.getGradientDefs(t),e.cssRules[h]=e.getCSSRules(t),e.clipPaths[h]=d,e.parseElements(f,(function(t,r){i\\u0026\\u0026(i(t,c,r,l),delete e.gradientDefs[h],delete e.cssRules[h],delete e.clipPaths[h])}),r(c),n,o)}}};var x=new RegExp(\\\"(normal|italic)?\\\\\\\\s*(normal|small-caps)?\\\\\\\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\\\\\\\s*(\\\"+e.reNum+\\\"(?:px|cm|mm|em|pt|pc|in)*)(?:\\\\\\\\/(normal|\\\"+e.reNum+\\\"))?\\\\\\\\s+(.*)\\\");i(e,{parseFontDeclaration:function(t,e){var i=t.match(x);if(i){var r=i[1],n=i[3],s=i[4],a=i[5],h=i[6];r\\u0026\\u0026(e.fontStyle=r),n\\u0026\\u0026(e.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),s\\u0026\\u0026(e.fontSize=o(s)),h\\u0026\\u0026(e.fontFamily=h),a\\u0026\\u0026(e.lineHeight=\\\"normal\\\"===a?1:a)}},getGradientDefs:function(t){var e,i=g(t,[\\\"linearGradient\\\",\\\"radialGradient\\\",\\\"svg:linearGradient\\\",\\\"svg:radialGradient\\\"]),r=0,n={};for(r=i.length;r--;)(e=i[r]).getAttribute(\\\"xlink:href\\\")\\u0026\\u0026b(t,e),n[e.getAttribute(\\\"id\\\")]=e;return n},parseAttributes:function(t,r,s){if(t){var a,d,g,v={};void 0===s\\u0026\\u0026(s=t.getAttribute(\\\"svgUid\\\")),t.parentNode\\u0026\\u0026e.svgValidParentsRegEx.test(t.parentNode.nodeName)\\u0026\\u0026(v=e.parseAttributes(t.parentNode,r,s));var m=r.reduce((function(e,i){return(a=t.getAttribute(i))\\u0026\\u0026(e[i]=a),e}),{}),y=i(function(t,i){var r={};for(var n in e.cssRules[i])if(p(t,n.split(\\\" \\\")))for(var o in e.cssRules[i][n])r[o]=e.cssRules[i][n][o];return r}(t,s),e.parseStyleAttribute(t));m=i(m,y),y[l]\\u0026\\u0026t.setAttribute(l,y[l]),d=g=v.fontSize||e.Text.DEFAULT_SVG_FONT_SIZE,m[c]\\u0026\\u0026(m[c]=d=o(m[c],g));var _,b,x={};for(var C in m)b=f(_=u(C),m[C],v,d),x[_]=b;x\\u0026\\u0026x.font\\u0026\\u0026e.parseFontDeclaration(x.font,x);var w=i(v,x);return e.svgValidParentsRegEx.test(t.nodeName)?w:function(t){for(var i in h)if(void 0!==t[h[i]]\\u0026\\u0026\\\"\\\"!==t[i]){if(void 0===t[i]){if(!e.Object.prototype[i])continue;t[i]=e.Object.prototype[i]}if(0!==t[i].indexOf(\\\"url(\\\")){var r=new e.Color(t[i]);t[i]=r.setAlpha(n(r.getAlpha()*t[h[i]],2)).toRgba()}}return t}(w)}},parseElements:function(t,i,r,n,o){new e.ElementsParser(t,i,r,n,o).parse()},parseStyleAttribute:function(t){var e={},i=t.getAttribute(\\\"style\\\");return i?(\\\"string\\\"==typeof i?function(t,e){var i,r;t.replace(/;\\\\s*$/,\\\"\\\").split(\\\";\\\").forEach((function(t){var n=t.split(\\\":\\\");i=n[0].trim().toLowerCase(),r=n[1].trim(),e[i]=r}))}(i,e):function(t,e){var i,r;for(var n in t)void 0!==t[n]\\u0026\\u0026(i=n.toLowerCase(),r=t[n],e[i]=r)}(i,e),e):e},parsePointsAttribute:function(t){if(!t)return null;var e,i,r=[];for(e=0,i=(t=(t=t.replace(/,/g,\\\" \\\").trim()).split(/\\\\s+/)).length;e\\u003ci;e+=2)r.push({x:parseFloat(t[e]),y:parseFloat(t[e+1])});return r},getCSSRules:function(t){var i,r,n=t.getElementsByTagName(\\\"style\\\"),o={};for(i=0,r=n.length;i\\u003cr;i++){var s=n[i].textContent;\\\"\\\"!==(s=s.replace(/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//g,\\\"\\\")).trim()\\u0026\\u0026s.match(/[^{]*\\\\{[\\\\s\\\\S]*?\\\\}/g).map((function(t){return t.trim()})).forEach((function(t){var n=t.match(/([\\\\s\\\\S]*?)\\\\s*\\\\{([^}]*)\\\\}/),s={},a=n[2].trim().replace(/;$/,\\\"\\\").split(/\\\\s*;\\\\s*/);for(i=0,r=a.length;i\\u003cr;i++){var h=a[i].split(/\\\\s*:\\\\s*/),c=h[0],l=h[1];s[c]=l}(t=n[1]).split(\\\",\\\").forEach((function(t){\\\"\\\"!==(t=t.replace(/^svg/i,\\\"\\\").trim())\\u0026\\u0026(o[t]?e.util.object.extend(o[t],s):o[t]=e.util.object.clone(s))}))}))}return o},loadSVGFromURL:function(t,i,r,n){t=t.replace(/^\\\\n\\\\s*/,\\\"\\\").trim(),new e.util.request(t,{method:\\\"get\\\",onComplete:function(t){var o=t.responseXML;if(!o||!o.documentElement)return i\\u0026\\u0026i(null),!1;e.parseSVGDocument(o.documentElement,(function(t,e,r,n){i\\u0026\\u0026i(t,e,r,n)}),r,n)}})},loadSVGFromString:function(t,i,r,n){var o=(new e.window.DOMParser).parseFromString(t.trim(),\\\"text/xml\\\");e.parseSVGDocument(o.documentElement,(function(t,e,r,n){i(t,e,r,n)}),r,n)}})}(t),T.ElementsParser=function(t,e,i,r,n,o){this.elements=t,this.callback=e,this.options=i,this.reviver=r,this.svgUid=i\\u0026\\u0026i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\\\\(['\\\"]?#([^'\\\"]+)['\\\"]?\\\\)/g,this.doc=o},(y=T.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},y.createObjects=function(){var t=this;this.elements.forEach((function(e,i){e.setAttribute(\\\"svgUid\\\",t.svgUid),t.createObject(e,i)}))},y.findTag=function(t){return T[T.util.string.capitalize(t.tagName.replace(\\\"svg:\\\",\\\"\\\"))]},y.createObject=function(t,e){var i=this.findTag(t);if(i\\u0026\\u0026i.fromElement)try{i.fromElement(t,this.createCallback(e,t),this.options)}catch(t){T.log(t)}else this.checkIfDone()},y.createCallback=function(t,e){var i=this;return function(r){var n;i.resolveGradient(r,e,\\\"fill\\\"),i.resolveGradient(r,e,\\\"stroke\\\"),r instanceof T.Image\\u0026\\u0026r._originalElement\\u0026\\u0026(n=r.parsePreserveAspectRatioAttribute(e)),r._removeTransformMatrix(n),i.resolveClipPath(r,e),i.reviver\\u0026\\u0026i.reviver(e,r),i.instances[t]=r,i.checkIfDone()}},y.extractPropertyDefinition=function(t,e,i){var r=t[e],n=this.regexUrl;if(n.test(r)){n.lastIndex=0;var o=n.exec(r)[1];return n.lastIndex=0,T[i][this.svgUid][o]}},y.resolveGradient=function(t,e,i){var r=this.extractPropertyDefinition(t,i,\\\"gradientDefs\\\");if(r){var n=e.getAttribute(i+\\\"-opacity\\\"),o=T.Gradient.fromElement(r,t,n,this.options);t.set(i,o)}},y.createClipPathCallback=function(t,e){return function(t){t._removeTransformMatrix(),t.fillRule=t.clipRule,e.push(t)}},y.resolveClipPath=function(t,e){var i,r,n,o,s=this.extractPropertyDefinition(t,\\\"clipPath\\\",\\\"clipPaths\\\");if(s){n=[],r=T.util.invertTransform(t.calcTransformMatrix());for(var a=s[0].parentNode,h=e;h.parentNode\\u0026\\u0026h.getAttribute(\\\"clip-path\\\")!==t.clipPath;)h=h.parentNode;h.parentNode.appendChild(a);for(var c=0;c\\u003cs.length;c++)i=s[c],this.findTag(i).fromElement(i,this.createClipPathCallback(t,n),this.options);s=1===n.length?n[0]:new T.Group(n),o=T.util.multiplyTransformMatrices(r,s.calcTransformMatrix()),s.clipPath\\u0026\\u0026this.resolveClipPath(s,h);var l=T.util.qrDecompose(o);s.flipX=!1,s.flipY=!1,s.set(\\\"scaleX\\\",l.scaleX),s.set(\\\"scaleY\\\",l.scaleY),s.angle=l.angle,s.skewX=l.skewX,s.skewY=0,s.setPositionByOrigin({x:l.translateX,y:l.translateY},\\\"center\\\",\\\"center\\\"),t.clipPath=s}else delete t.clipPath},y.checkIfDone=function(){0==--this.numElements\\u0026\\u0026(this.instances=this.instances.filter((function(t){return null!=t})),this.callback(this.instances,this.elements))},function(t){var e=t.fabric||(t.fabric={});function i(t,e){this.x=t,this.y=e}e.Point?e.warn(\\\"fabric.Point is already defined\\\"):(e.Point=i,i.prototype={type:\\\"point\\\",constructor:i,add:function(t){return new i(this.x+t.x,this.y+t.y)},addEquals:function(t){return this.x+=t.x,this.y+=t.y,this},scalarAdd:function(t){return new i(this.x+t,this.y+t)},scalarAddEquals:function(t){return this.x+=t,this.y+=t,this},subtract:function(t){return new i(this.x-t.x,this.y-t.y)},subtractEquals:function(t){return this.x-=t.x,this.y-=t.y,this},scalarSubtract:function(t){return new i(this.x-t,this.y-t)},scalarSubtractEquals:function(t){return this.x-=t,this.y-=t,this},multiply:function(t){return new i(this.x*t,this.y*t)},multiplyEquals:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return new i(this.x/t,this.y/t)},divideEquals:function(t){return this.x/=t,this.y/=t,this},eq:function(t){return this.x===t.x\\u0026\\u0026this.y===t.y},lt:function(t){return this.x\\u003ct.x\\u0026\\u0026this.y\\u003ct.y},lte:function(t){return this.x\\u003c=t.x\\u0026\\u0026this.y\\u003c=t.y},gt:function(t){return this.x\\u003et.x\\u0026\\u0026this.y\\u003et.y},gte:function(t){return this.x\\u003e=t.x\\u0026\\u0026this.y\\u003e=t.y},lerp:function(t,e){return void 0===e\\u0026\\u0026(e=.5),e=Math.max(Math.min(1,e),0),new i(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e)},distanceFrom:function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},midPointFrom:function(t){return this.lerp(t)},min:function(t){return new i(Math.min(this.x,t.x),Math.min(this.y,t.y))},max:function(t){return new i(Math.max(this.x,t.x),Math.max(this.y,t.y))},toString:function(){return this.x+\\\",\\\"+this.y},setXY:function(t,e){return this.x=t,this.y=e,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setFromPoint:function(t){return this.x=t.x,this.y=t.y,this},swap:function(t){var e=this.x,i=this.y;this.x=t.x,this.y=t.y,t.x=e,t.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(t){var e=t.fabric||(t.fabric={});function i(t){this.status=t,this.points=[]}e.Intersection?e.warn(\\\"fabric.Intersection is already defined\\\"):(e.Intersection=i,e.Intersection.prototype={constructor:i,appendPoint:function(t){return this.points.push(t),this},appendPoints:function(t){return this.points=this.points.concat(t),this}},e.Intersection.intersectLineLine=function(t,r,n,o){var s,a=(o.x-n.x)*(t.y-n.y)-(o.y-n.y)*(t.x-n.x),h=(r.x-t.x)*(t.y-n.y)-(r.y-t.y)*(t.x-n.x),c=(o.y-n.y)*(r.x-t.x)-(o.x-n.x)*(r.y-t.y);if(0!==c){var l=a/c,u=h/c;0\\u003c=l\\u0026\\u0026l\\u003c=1\\u0026\\u00260\\u003c=u\\u0026\\u0026u\\u003c=1?(s=new i(\\\"Intersection\\\")).appendPoint(new e.Point(t.x+l*(r.x-t.x),t.y+l*(r.y-t.y))):s=new i}else s=new i(0===a||0===h?\\\"Coincident\\\":\\\"Parallel\\\");return s},e.Intersection.intersectLinePolygon=function(t,e,r){var n,o,s,a,h=new i,c=r.length;for(a=0;a\\u003cc;a++)n=r[a],o=r[(a+1)%c],s=i.intersectLineLine(t,e,n,o),h.appendPoints(s.points);return h.points.length\\u003e0\\u0026\\u0026(h.status=\\\"Intersection\\\"),h},e.Intersection.intersectPolygonPolygon=function(t,e){var r,n=new i,o=t.length;for(r=0;r\\u003co;r++){var s=t[r],a=t[(r+1)%o],h=i.intersectLinePolygon(s,a,e);n.appendPoints(h.points)}return n.points.length\\u003e0\\u0026\\u0026(n.status=\\\"Intersection\\\"),n},e.Intersection.intersectPolygonRectangle=function(t,r,n){var o=r.min(n),s=r.max(n),a=new e.Point(s.x,o.y),h=new e.Point(o.x,s.y),c=i.intersectLinePolygon(o,a,t),l=i.intersectLinePolygon(a,s,t),u=i.intersectLinePolygon(s,h,t),f=i.intersectLinePolygon(h,o,t),d=new i;return d.appendPoints(c.points),d.appendPoints(l.points),d.appendPoints(u.points),d.appendPoints(f.points),d.points.length\\u003e0\\u0026\\u0026(d.status=\\\"Intersection\\\"),d})}(t),function(t){var e=t.fabric||(t.fabric={});function i(t){t?this._tryParsingColor(t):this.setSource([0,0,0,1])}function r(t,e,i){return i\\u003c0\\u0026\\u0026(i+=1),i\\u003e1\\u0026\\u0026(i-=1),i\\u003c1/6?t+6*(e-t)*i:i\\u003c.5?e:i\\u003c2/3?t+(e-t)*(2/3-i)*6:t}e.Color?e.warn(\\\"fabric.Color is already defined.\\\"):(e.Color=i,e.Color.prototype={_tryParsingColor:function(t){var e;t in i.colorNameMap\\u0026\\u0026(t=i.colorNameMap[t]),\\\"transparent\\\"===t\\u0026\\u0026(e=[255,255,255,0]),e||(e=i.sourceFromHex(t)),e||(e=i.sourceFromRgb(t)),e||(e=i.sourceFromHsl(t)),e||(e=[0,0,0,1]),e\\u0026\\u0026this.setSource(e)},_rgbToHsl:function(t,i,r){t/=255,i/=255,r/=255;var n,o,s,a=e.util.array.max([t,i,r]),h=e.util.array.min([t,i,r]);if(s=(a+h)/2,a===h)n=o=0;else{var c=a-h;switch(o=s\\u003e.5?c/(2-a-h):c/(a+h),a){case t:n=(i-r)/c+(i\\u003cr?6:0);break;case i:n=(r-t)/c+2;break;case r:n=(t-i)/c+4}n/=6}return[Math.round(360*n),Math.round(100*o),Math.round(100*s)]},getSource:function(){return this._source},setSource:function(t){this._source=t},toRgb:function(){var t=this.getSource();return\\\"rgb(\\\"+t[0]+\\\",\\\"+t[1]+\\\",\\\"+t[2]+\\\")\\\"},toRgba:function(){var t=this.getSource();return\\\"rgba(\\\"+t[0]+\\\",\\\"+t[1]+\\\",\\\"+t[2]+\\\",\\\"+t[3]+\\\")\\\"},toHsl:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return\\\"hsl(\\\"+e[0]+\\\",\\\"+e[1]+\\\"%,\\\"+e[2]+\\\"%)\\\"},toHsla:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return\\\"hsla(\\\"+e[0]+\\\",\\\"+e[1]+\\\"%,\\\"+e[2]+\\\"%,\\\"+t[3]+\\\")\\\"},toHex:function(){var t,e,i,r=this.getSource();return t=1===(t=r[0].toString(16)).length?\\\"0\\\"+t:t,e=1===(e=r[1].toString(16)).length?\\\"0\\\"+e:e,i=1===(i=r[2].toString(16)).length?\\\"0\\\"+i:i,t.toUpperCase()+e.toUpperCase()+i.toUpperCase()},toHexa:function(){var t,e=this.getSource();return t=1===(t=(t=Math.round(255*e[3])).toString(16)).length?\\\"0\\\"+t:t,this.toHex()+t.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(t){var e=this.getSource();return e[3]=t,this.setSource(e),this},toGrayscale:function(){var t=this.getSource(),e=parseInt((.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),10),i=t[3];return this.setSource([e,e,e,i]),this},toBlackWhite:function(t){var e=this.getSource(),i=(.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),r=e[3];return t=t||127,i=Number(i)\\u003cNumber(t)?0:255,this.setSource([i,i,i,r]),this},overlayWith:function(t){t instanceof i||(t=new i(t));var e,r=[],n=this.getAlpha(),o=this.getSource(),s=t.getSource();for(e=0;e\\u003c3;e++)r.push(Math.round(.5*o[e]+.5*s[e]));return r[3]=n,this.setSource(r),this}},e.Color.reRGBa=/^rgba?\\\\(\\\\s*(\\\\d{1,3}(?:\\\\.\\\\d+)?\\\\%?)\\\\s*,\\\\s*(\\\\d{1,3}(?:\\\\.\\\\d+)?\\\\%?)\\\\s*,\\\\s*(\\\\d{1,3}(?:\\\\.\\\\d+)?\\\\%?)\\\\s*(?:\\\\s*,\\\\s*((?:\\\\d*\\\\.?\\\\d+)?)\\\\s*)?\\\\)$/i,e.Color.reHSLa=/^hsla?\\\\(\\\\s*(\\\\d{1,3})\\\\s*,\\\\s*(\\\\d{1,3}\\\\%)\\\\s*,\\\\s*(\\\\d{1,3}\\\\%)\\\\s*(?:\\\\s*,\\\\s*(\\\\d+(?:\\\\.\\\\d+)?)\\\\s*)?\\\\)$/i,e.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,e.Color.colorNameMap={aliceblue:\\\"#F0F8FF\\\",antiquewhite:\\\"#FAEBD7\\\",aqua:\\\"#00FFFF\\\",aquamarine:\\\"#7FFFD4\\\",azure:\\\"#F0FFFF\\\",beige:\\\"#F5F5DC\\\",bisque:\\\"#FFE4C4\\\",black:\\\"#000000\\\",blanchedalmond:\\\"#FFEBCD\\\",blue:\\\"#0000FF\\\",blueviolet:\\\"#8A2BE2\\\",brown:\\\"#A52A2A\\\",burlywood:\\\"#DEB887\\\",cadetblue:\\\"#5F9EA0\\\",chartreuse:\\\"#7FFF00\\\",chocolate:\\\"#D2691E\\\",coral:\\\"#FF7F50\\\",cornflowerblue:\\\"#6495ED\\\",cornsilk:\\\"#FFF8DC\\\",crimson:\\\"#DC143C\\\",cyan:\\\"#00FFFF\\\",darkblue:\\\"#00008B\\\",darkcyan:\\\"#008B8B\\\",darkgoldenrod:\\\"#B8860B\\\",darkgray:\\\"#A9A9A9\\\",darkgrey:\\\"#A9A9A9\\\",darkgreen:\\\"#006400\\\",darkkhaki:\\\"#BDB76B\\\",darkmagenta:\\\"#8B008B\\\",darkolivegreen:\\\"#556B2F\\\",darkorange:\\\"#FF8C00\\\",darkorchid:\\\"#9932CC\\\",darkred:\\\"#8B0000\\\",darksalmon:\\\"#E9967A\\\",darkseagreen:\\\"#8FBC8F\\\",darkslateblue:\\\"#483D8B\\\",darkslategray:\\\"#2F4F4F\\\",darkslategrey:\\\"#2F4F4F\\\",darkturquoise:\\\"#00CED1\\\",darkviolet:\\\"#9400D3\\\",deeppink:\\\"#FF1493\\\",deepskyblue:\\\"#00BFFF\\\",dimgray:\\\"#696969\\\",dimgrey:\\\"#696969\\\",dodgerblue:\\\"#1E90FF\\\",firebrick:\\\"#B22222\\\",floralwhite:\\\"#FFFAF0\\\",forestgreen:\\\"#228B22\\\",fuchsia:\\\"#FF00FF\\\",gainsboro:\\\"#DCDCDC\\\",ghostwhite:\\\"#F8F8FF\\\",gold:\\\"#FFD700\\\",goldenrod:\\\"#DAA520\\\",gray:\\\"#808080\\\",grey:\\\"#808080\\\",green:\\\"#008000\\\",greenyellow:\\\"#ADFF2F\\\",honeydew:\\\"#F0FFF0\\\",hotpink:\\\"#FF69B4\\\",indianred:\\\"#CD5C5C\\\",indigo:\\\"#4B0082\\\",ivory:\\\"#FFFFF0\\\",khaki:\\\"#F0E68C\\\",lavender:\\\"#E6E6FA\\\",lavenderblush:\\\"#FFF0F5\\\",lawngreen:\\\"#7CFC00\\\",lemonchiffon:\\\"#FFFACD\\\",lightblue:\\\"#ADD8E6\\\",lightcoral:\\\"#F08080\\\",lightcyan:\\\"#E0FFFF\\\",lightgoldenrodyellow:\\\"#FAFAD2\\\",lightgray:\\\"#D3D3D3\\\",lightgrey:\\\"#D3D3D3\\\",lightgreen:\\\"#90EE90\\\",lightpink:\\\"#FFB6C1\\\",lightsalmon:\\\"#FFA07A\\\",lightseagreen:\\\"#20B2AA\\\",lightskyblue:\\\"#87CEFA\\\",lightslategray:\\\"#778899\\\",lightslategrey:\\\"#778899\\\",lightsteelblue:\\\"#B0C4DE\\\",lightyellow:\\\"#FFFFE0\\\",lime:\\\"#00FF00\\\",limegreen:\\\"#32CD32\\\",linen:\\\"#FAF0E6\\\",magenta:\\\"#FF00FF\\\",maroon:\\\"#800000\\\",mediumaquamarine:\\\"#66CDAA\\\",mediumblue:\\\"#0000CD\\\",mediumorchid:\\\"#BA55D3\\\",mediumpurple:\\\"#9370DB\\\",mediumseagreen:\\\"#3CB371\\\",mediumslateblue:\\\"#7B68EE\\\",mediumspringgreen:\\\"#00FA9A\\\",mediumturquoise:\\\"#48D1CC\\\",mediumvioletred:\\\"#C71585\\\",midnightblue:\\\"#191970\\\",mintcream:\\\"#F5FFFA\\\",mistyrose:\\\"#FFE4E1\\\",moccasin:\\\"#FFE4B5\\\",navajowhite:\\\"#FFDEAD\\\",navy:\\\"#000080\\\",oldlace:\\\"#FDF5E6\\\",olive:\\\"#808000\\\",olivedrab:\\\"#6B8E23\\\",orange:\\\"#FFA500\\\",orangered:\\\"#FF4500\\\",orchid:\\\"#DA70D6\\\",palegoldenrod:\\\"#EEE8AA\\\",palegreen:\\\"#98FB98\\\",paleturquoise:\\\"#AFEEEE\\\",palevioletred:\\\"#DB7093\\\",papayawhip:\\\"#FFEFD5\\\",peachpuff:\\\"#FFDAB9\\\",peru:\\\"#CD853F\\\",pink:\\\"#FFC0CB\\\",plum:\\\"#DDA0DD\\\",powderblue:\\\"#B0E0E6\\\",purple:\\\"#800080\\\",rebeccapurple:\\\"#663399\\\",red:\\\"#FF0000\\\",rosybrown:\\\"#BC8F8F\\\",royalblue:\\\"#4169E1\\\",saddlebrown:\\\"#8B4513\\\",salmon:\\\"#FA8072\\\",sandybrown:\\\"#F4A460\\\",seagreen:\\\"#2E8B57\\\",seashell:\\\"#FFF5EE\\\",sienna:\\\"#A0522D\\\",silver:\\\"#C0C0C0\\\",skyblue:\\\"#87CEEB\\\",slateblue:\\\"#6A5ACD\\\",slategray:\\\"#708090\\\",slategrey:\\\"#708090\\\",snow:\\\"#FFFAFA\\\",springgreen:\\\"#00FF7F\\\",steelblue:\\\"#4682B4\\\",tan:\\\"#D2B48C\\\",teal:\\\"#008080\\\",thistle:\\\"#D8BFD8\\\",tomato:\\\"#FF6347\\\",turquoise:\\\"#40E0D0\\\",violet:\\\"#EE82EE\\\",wheat:\\\"#F5DEB3\\\",white:\\\"#FFFFFF\\\",whitesmoke:\\\"#F5F5F5\\\",yellow:\\\"#FFFF00\\\",yellowgreen:\\\"#9ACD32\\\"},e.Color.fromRgb=function(t){return i.fromSource(i.sourceFromRgb(t))},e.Color.sourceFromRgb=function(t){var e=t.match(i.reRGBa);if(e){var r=parseInt(e[1],10)/(/%$/.test(e[1])?100:1)*(/%$/.test(e[1])?255:1),n=parseInt(e[2],10)/(/%$/.test(e[2])?100:1)*(/%$/.test(e[2])?255:1),o=parseInt(e[3],10)/(/%$/.test(e[3])?100:1)*(/%$/.test(e[3])?255:1);return[parseInt(r,10),parseInt(n,10),parseInt(o,10),e[4]?parseFloat(e[4]):1]}},e.Color.fromRgba=i.fromRgb,e.Color.fromHsl=function(t){return i.fromSource(i.sourceFromHsl(t))},e.Color.sourceFromHsl=function(t){var e=t.match(i.reHSLa);if(e){var n,o,s,a=(parseFloat(e[1])%360+360)%360/360,h=parseFloat(e[2])/(/%$/.test(e[2])?100:1),c=parseFloat(e[3])/(/%$/.test(e[3])?100:1);if(0===h)n=o=s=c;else{var l=c\\u003c=.5?c*(h+1):c+h-c*h,u=2*c-l;n=r(u,l,a+1/3),o=r(u,l,a),s=r(u,l,a-1/3)}return[Math.round(255*n),Math.round(255*o),Math.round(255*s),e[4]?parseFloat(e[4]):1]}},e.Color.fromHsla=i.fromHsl,e.Color.fromHex=function(t){return i.fromSource(i.sourceFromHex(t))},e.Color.sourceFromHex=function(t){if(t.match(i.reHex)){var e=t.slice(t.indexOf(\\\"#\\\")+1),r=3===e.length||4===e.length,n=8===e.length||4===e.length,o=r?e.charAt(0)+e.charAt(0):e.substring(0,2),s=r?e.charAt(1)+e.charAt(1):e.substring(2,4),a=r?e.charAt(2)+e.charAt(2):e.substring(4,6),h=n?r?e.charAt(3)+e.charAt(3):e.substring(6,8):\\\"FF\\\";return[parseInt(o,16),parseInt(s,16),parseInt(a,16),parseFloat((parseInt(h,16)/255).toFixed(2))]}},e.Color.fromSource=function(t){var e=new i;return e.setSource(t),e})}(t),function(t){var e=t.fabric||(t.fabric={}),i=[\\\"e\\\",\\\"se\\\",\\\"s\\\",\\\"sw\\\",\\\"w\\\",\\\"nw\\\",\\\"n\\\",\\\"ne\\\",\\\"e\\\"],r=[\\\"ns\\\",\\\"nesw\\\",\\\"ew\\\",\\\"nwse\\\"],n={},o=\\\"left\\\",s=\\\"top\\\",a=\\\"right\\\",h=\\\"bottom\\\",c=\\\"center\\\",l={top:h,bottom:s,left:a,right:o,center:c},u=e.util.radiansToDegrees,f=Math.sign||function(t){return(t\\u003e0)-(t\\u003c0)||+t};function d(t,e){var i=t.angle+u(Math.atan2(e.y,e.x))+360;return Math.round(i%360/45)}function g(t,i){var r=i.transform.target,n=r.canvas,o=e.util.object.clone(i);o.target=r,n\\u0026\\u0026n.fire(\\\"object:\\\"+t,o),r.fire(t,i)}function p(t,e){var i=e.canvas,r=t[i.uniScaleKey];return i.uniformScaling\\u0026\\u0026!r||!i.uniformScaling\\u0026\\u0026r}function v(t){return t.originX===c\\u0026\\u0026t.originY===c}function m(t,e,i){var r=t.lockScalingX,n=t.lockScalingY;return!(!r||!n)||(!(e||!r\\u0026\\u0026!n||!i)||(!(!r||\\\"x\\\"!==e)||!(!n||\\\"y\\\"!==e)))}function y(t,e,i,r){return{e:t,transform:e,pointer:{x:i,y:r}}}function _(t){return function(e,i,r,n){var o=i.target,s=o.getCenterPoint(),a=o.translateToOriginPoint(s,i.originX,i.originY),h=t(e,i,r,n);return o.setPositionByOrigin(a,i.originX,i.originY),h}}function b(t,e){return function(i,r,n,o){var s=e(i,r,n,o);return s\\u0026\\u0026g(t,y(i,r,n,o)),s}}function x(t,i,r,n,o){var s=t.target,a=s.controls[t.corner],h=s.canvas.getZoom(),c=s.padding/h,l=s.toLocalPoint(new e.Point(n,o),i,r);return l.x\\u003e=c\\u0026\\u0026(l.x-=c),l.x\\u003c=-c\\u0026\\u0026(l.x+=c),l.y\\u003e=c\\u0026\\u0026(l.y-=c),l.y\\u003c=c\\u0026\\u0026(l.y+=c),l.x-=a.offsetX,l.y-=a.offsetY,l}function C(t){return t.flipX!==t.flipY}function w(t,e,i,r,n){if(0!==t[e]){var o=n/t._getTransformedDimensions()[r]*t[i];t.set(i,o)}}function S(t,e,i,r){var n,c=e.target,l=c._getTransformedDimensions(0,c.skewY),f=x(e,e.originX,e.originY,i,r),d=Math.abs(2*f.x)-l.x,g=c.skewX;d\\u003c2?n=0:(n=u(Math.atan2(d/c.scaleX,l.y/c.scaleY)),e.originX===o\\u0026\\u0026e.originY===h\\u0026\\u0026(n=-n),e.originX===a\\u0026\\u0026e.originY===s\\u0026\\u0026(n=-n),C(c)\\u0026\\u0026(n=-n));var p=g!==n;if(p){var v=c._getTransformedDimensions().y;c.set(\\\"skewX\\\",n),w(c,\\\"skewY\\\",\\\"scaleY\\\",\\\"y\\\",v)}return p}function T(t,e,i,r){var n,c=e.target,l=c._getTransformedDimensions(c.skewX,0),f=x(e,e.originX,e.originY,i,r),d=Math.abs(2*f.y)-l.y,g=c.skewY;d\\u003c2?n=0:(n=u(Math.atan2(d/c.scaleY,l.x/c.scaleX)),e.originX===o\\u0026\\u0026e.originY===h\\u0026\\u0026(n=-n),e.originX===a\\u0026\\u0026e.originY===s\\u0026\\u0026(n=-n),C(c)\\u0026\\u0026(n=-n));var p=g!==n;if(p){var v=c._getTransformedDimensions().x;c.set(\\\"skewY\\\",n),w(c,\\\"skewX\\\",\\\"scaleX\\\",\\\"x\\\",v)}return p}function O(t,e,i,r,n){n=n||{};var o,s,a,h,c,u,d=e.target,g=d.lockScalingX,y=d.lockScalingY,_=n.by,b=p(t,d),C=m(d,_,b),w=e.gestureScale;if(C)return!1;if(w)s=e.scaleX*w,a=e.scaleY*w;else{if(o=x(e,e.originX,e.originY,i,r),c=\\\"y\\\"!==_?f(o.x):1,u=\\\"x\\\"!==_?f(o.y):1,e.signX||(e.signX=c),e.signY||(e.signY=u),d.lockScalingFlip\\u0026\\u0026(e.signX!==c||e.signY!==u))return!1;if(h=d._getTransformedDimensions(),b\\u0026\\u0026!_){var S=Math.abs(o.x)+Math.abs(o.y),T=e.original,O=S/(Math.abs(h.x*T.scaleX/d.scaleX)+Math.abs(h.y*T.scaleY/d.scaleY));s=T.scaleX*O,a=T.scaleY*O}else s=Math.abs(o.x*d.scaleX/h.x),a=Math.abs(o.y*d.scaleY/h.y);v(e)\\u0026\\u0026(s*=2,a*=2),e.signX!==c\\u0026\\u0026\\\"y\\\"!==_\\u0026\\u0026(e.originX=l[e.originX],s*=-1,e.signX=c),e.signY!==u\\u0026\\u0026\\\"x\\\"!==_\\u0026\\u0026(e.originY=l[e.originY],a*=-1,e.signY=u)}var P=d.scaleX,E=d.scaleY;return _?(\\\"x\\\"===_\\u0026\\u0026d.set(\\\"scaleX\\\",s),\\\"y\\\"===_\\u0026\\u0026d.set(\\\"scaleY\\\",a)):(!g\\u0026\\u0026d.set(\\\"scaleX\\\",s),!y\\u0026\\u0026d.set(\\\"scaleY\\\",a)),P!==d.scaleX||E!==d.scaleY}n.scaleCursorStyleHandler=function(t,e,r){var n=p(t,r),o=\\\"\\\";if(0!==e.x\\u0026\\u00260===e.y?o=\\\"x\\\":0===e.x\\u0026\\u00260!==e.y\\u0026\\u0026(o=\\\"y\\\"),m(r,o,n))return\\\"not-allowed\\\";var s=d(r,e);return i[s]+\\\"-resize\\\"},n.skewCursorStyleHandler=function(t,e,i){var n=\\\"not-allowed\\\";if(0!==e.x\\u0026\\u0026i.lockSkewingY)return n;if(0!==e.y\\u0026\\u0026i.lockSkewingX)return n;var o=d(i,e)%4;return r[o]+\\\"-resize\\\"},n.scaleSkewCursorStyleHandler=function(t,e,i){return t[i.canvas.altActionKey]?n.skewCursorStyleHandler(t,e,i):n.scaleCursorStyleHandler(t,e,i)},n.rotationWithSnapping=b(\\\"rotating\\\",_((function(t,e,i,r){var n=e,o=n.target,s=o.translateToOriginPoint(o.getCenterPoint(),n.originX,n.originY);if(o.lockRotation)return!1;var a,h=Math.atan2(n.ey-s.y,n.ex-s.x),c=Math.atan2(r-s.y,i-s.x),l=u(c-h+n.theta);if(o.snapAngle\\u003e0){var f=o.snapAngle,d=o.snapThreshold||f,g=Math.ceil(l/f)*f,p=Math.floor(l/f)*f;Math.abs(l-p)\\u003cd?l=p:Math.abs(l-g)\\u003cd\\u0026\\u0026(l=g)}return l\\u003c0\\u0026\\u0026(l=360+l),l%=360,a=o.angle!==l,o.angle=l,a}))),n.scalingEqually=b(\\\"scaling\\\",_((function(t,e,i,r){return O(t,e,i,r)}))),n.scalingX=b(\\\"scaling\\\",_((function(t,e,i,r){return O(t,e,i,r,{by:\\\"x\\\"})}))),n.scalingY=b(\\\"scaling\\\",_((function(t,e,i,r){return O(t,e,i,r,{by:\\\"y\\\"})}))),n.scalingYOrSkewingX=function(t,e,i,r){return t[e.target.canvas.altActionKey]?n.skewHandlerX(t,e,i,r):n.scalingY(t,e,i,r)},n.scalingXOrSkewingY=function(t,e,i,r){return t[e.target.canvas.altActionKey]?n.skewHandlerY(t,e,i,r):n.scalingX(t,e,i,r)},n.changeWidth=b(\\\"resizing\\\",_((function(t,e,i,r){var n=e.target,o=x(e,e.originX,e.originY,i,r),s=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=v(e)?2:1,h=n.width,c=Math.abs(o.x*a/n.scaleX)-s;return n.set(\\\"width\\\",Math.max(c,0)),h!==c}))),n.skewHandlerX=function(t,e,i,r){var n,h=e.target,l=h.skewX,u=e.originY;return!h.lockSkewingX\\u0026\\u0026(0===l?n=x(e,c,c,i,r).x\\u003e0?o:a:(l\\u003e0\\u0026\\u0026(n=u===s?o:a),l\\u003c0\\u0026\\u0026(n=u===s?a:o),C(h)\\u0026\\u0026(n=n===o?a:o)),e.originX=n,b(\\\"skewing\\\",_(S))(t,e,i,r))},n.skewHandlerY=function(t,e,i,r){var n,a=e.target,l=a.skewY,u=e.originX;return!a.lockSkewingY\\u0026\\u0026(0===l?n=x(e,c,c,i,r).y\\u003e0?s:h:(l\\u003e0\\u0026\\u0026(n=u===o?s:h),l\\u003c0\\u0026\\u0026(n=u===o?h:s),C(a)\\u0026\\u0026(n=n===s?h:s)),e.originY=n,b(\\\"skewing\\\",_(T))(t,e,i,r))},n.dragHandler=function(t,e,i,r){var n=e.target,o=i-e.offsetX,s=r-e.offsetY,a=!n.get(\\\"lockMovementX\\\")\\u0026\\u0026n.left!==o,h=!n.get(\\\"lockMovementY\\\")\\u0026\\u0026n.top!==s;return a\\u0026\\u0026n.set(\\\"left\\\",o),h\\u0026\\u0026n.set(\\\"top\\\",s),(a||h)\\u0026\\u0026g(\\\"moving\\\",y(t,e,i,r)),a||h},n.scaleOrSkewActionName=function(t,e,i){var r=t[i.canvas.altActionKey];return 0===e.x?r?\\\"skewX\\\":\\\"scaleY\\\":0===e.y?r?\\\"skewY\\\":\\\"scaleX\\\":void 0},n.rotationStyleHandler=function(t,e,i){return i.lockRotation?\\\"not-allowed\\\":e.cursorStyle},n.fireEvent=g,n.wrapWithFixedAnchor=_,n.wrapWithFireEvent=b,n.getLocalPoint=x,e.controlsUtils=n}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.degreesToRadians,r=e.controlsUtils;r.renderCircleControl=function(t,e,i,r,n){r=r||{};var o,s=this.sizeX||r.cornerSize||n.cornerSize,a=this.sizeY||r.cornerSize||n.cornerSize,h=void 0!==r.transparentCorners?r.transparentCorners:n.transparentCorners,c=h?\\\"stroke\\\":\\\"fill\\\",l=!h\\u0026\\u0026(r.cornerStrokeColor||n.cornerStrokeColor),u=e,f=i;t.save(),t.fillStyle=r.cornerColor||n.cornerColor,t.strokeStyle=r.cornerStrokeColor||n.cornerStrokeColor,s\\u003ea?(o=s,t.scale(1,a/s),f=i*s/a):a\\u003es?(o=a,t.scale(s/a,1),u=e*a/s):o=s,t.lineWidth=1,t.beginPath(),t.arc(u,f,o/2,0,2*Math.PI,!1),t[c](),l\\u0026\\u0026t.stroke(),t.restore()},r.renderSquareControl=function(t,e,r,n,o){n=n||{};var s=this.sizeX||n.cornerSize||o.cornerSize,a=this.sizeY||n.cornerSize||o.cornerSize,h=void 0!==n.transparentCorners?n.transparentCorners:o.transparentCorners,c=h?\\\"stroke\\\":\\\"fill\\\",l=!h\\u0026\\u0026(n.cornerStrokeColor||o.cornerStrokeColor),u=s/2,f=a/2;t.save(),t.fillStyle=n.cornerColor||o.cornerColor,t.strokeStyle=n.cornerStrokeColor||o.cornerStrokeColor,t.lineWidth=1,t.translate(e,r),t.rotate(i(o.angle)),t[c+\\\"Rect\\\"](-u,-f,s,a),l\\u0026\\u0026t.strokeRect(-u,-f,s,a),t.restore()}}(t),function(t){var e=t.fabric||(t.fabric={});e.Control=function(t){for(var e in t)this[e]=t[e]},e.Control.prototype={visible:!0,actionName:\\\"scale\\\",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:\\\"crosshair\\\",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(t,e){return e.cursorStyle},getActionName:function(t,e){return e.actionName},getVisibility:function(t,e){var i=t._controlsVisibility;return i\\u0026\\u0026void 0!==i[e]?i[e]:this.visible},setVisibility:function(t){this.visible=t},positionHandler:function(t,i){return e.util.transformPoint({x:this.x*t.x+this.offsetX,y:this.y*t.y+this.offsetY},i)},calcCornerCoords:function(t,i,r,n,o){var s,a,h,c,l=o?this.touchSizeX:this.sizeX,u=o?this.touchSizeY:this.sizeY;if(l\\u0026\\u0026u\\u0026\\u0026l!==u){var f=Math.atan2(u,l),d=Math.sqrt(l*l+u*u)/2,g=f-e.util.degreesToRadians(t),p=Math.PI/2-f-e.util.degreesToRadians(t);s=d*e.util.cos(g),a=d*e.util.sin(g),h=d*e.util.cos(p),c=d*e.util.sin(p)}else{d=.7071067812*(l\\u0026\\u0026u?l:i);g=e.util.degreesToRadians(45-t);s=h=d*e.util.cos(g),a=c=d*e.util.sin(g)}return{tl:{x:r-c,y:n-h},tr:{x:r+s,y:n-a},bl:{x:r-s,y:n+a},br:{x:r+c,y:n+h}}},render:function(t,i,r,n,o){if(\\\"circle\\\"===((n=n||{}).cornerStyle||o.cornerStyle))e.controlsUtils.renderCircleControl.call(this,t,i,r,n,o);else e.controlsUtils.renderSquareControl.call(this,t,i,r,n,o)}}}(t),function(){function t(t,e){var i,r,n,o,s=t.getAttribute(\\\"style\\\"),a=t.getAttribute(\\\"offset\\\")||0;if(a=(a=parseFloat(a)/(/%$/.test(a)?100:1))\\u003c0?0:a\\u003e1?1:a,s){var h=s.split(/\\\\s*;\\\\s*/);for(\\\"\\\"===h[h.length-1]\\u0026\\u0026h.pop(),o=h.length;o--;){var c=h[o].split(/\\\\s*:\\\\s*/),l=c[0].trim(),u=c[1].trim();\\\"stop-color\\\"===l?i=u:\\\"stop-opacity\\\"===l\\u0026\\u0026(n=u)}}return i||(i=t.getAttribute(\\\"stop-color\\\")||\\\"rgb(0,0,0)\\\"),n||(n=t.getAttribute(\\\"stop-opacity\\\")),r=(i=new T.Color(i)).getAlpha(),n=isNaN(parseFloat(n))?1:parseFloat(n),n*=r*e,{offset:a,color:i.toRgb(),opacity:n}}var e=T.util.object.clone;T.Gradient=T.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:\\\"pixels\\\",type:\\\"linear\\\",initialize:function(t){t||(t={}),t.coords||(t.coords={});var e,i=this;Object.keys(t).forEach((function(e){i[e]=t[e]})),this.id?this.id+=\\\"_\\\"+T.Object.__uid++:this.id=T.Object.__uid++,e={x1:t.coords.x1||0,y1:t.coords.y1||0,x2:t.coords.x2||0,y2:t.coords.y2||0},\\\"radial\\\"===this.type\\u0026\\u0026(e.r1=t.coords.r1||0,e.r2=t.coords.r2||0),this.coords=e,this.colorStops=t.colorStops.slice()},addColorStop:function(t){for(var e in t){var i=new T.Color(t[e]);this.colorStops.push({offset:parseFloat(e),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(t){var e={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return T.util.populateWithProperties(this,e,t),e},toSVG:function(t,i){var r,n,o,s,a=e(this.coords,!0),h=(i=i||{},e(this.colorStops,!0)),c=a.r1\\u003ea.r2,l=this.gradientTransform?this.gradientTransform.concat():T.iMatrix.concat(),u=-this.offsetX,f=-this.offsetY,d=!!i.additionalTransform,g=\\\"pixels\\\"===this.gradientUnits?\\\"userSpaceOnUse\\\":\\\"objectBoundingBox\\\";if(h.sort((function(t,e){return t.offset-e.offset})),\\\"objectBoundingBox\\\"===g?(u/=t.width,f/=t.height):(u+=t.width/2,f+=t.height/2),\\\"path\\\"===t.type\\u0026\\u0026\\\"percentage\\\"!==this.gradientUnits\\u0026\\u0026(u-=t.pathOffset.x,f-=t.pathOffset.y),l[4]-=u,l[5]-=f,s='id=\\\"SVGID_'+this.id+'\\\" gradientUnits=\\\"'+g+'\\\"',s+=' gradientTransform=\\\"'+(d?i.additionalTransform+\\\" \\\":\\\"\\\")+T.util.matrixToSVG(l)+'\\\" ',\\\"linear\\\"===this.type?o=[\\\"\\u003clinearGradient \\\",s,' x1=\\\"',a.x1,'\\\" y1=\\\"',a.y1,'\\\" x2=\\\"',a.x2,'\\\" y2=\\\"',a.y2,'\\\"\\u003e\\\\n']:\\\"radial\\\"===this.type\\u0026\\u0026(o=[\\\"\\u003cradialGradient \\\",s,' cx=\\\"',c?a.x1:a.x2,'\\\" cy=\\\"',c?a.y1:a.y2,'\\\" r=\\\"',c?a.r1:a.r2,'\\\" fx=\\\"',c?a.x2:a.x1,'\\\" fy=\\\"',c?a.y2:a.y1,'\\\"\\u003e\\\\n']),\\\"radial\\\"===this.type){if(c)for((h=h.concat()).reverse(),r=0,n=h.length;r\\u003cn;r++)h[r].offset=1-h[r].offset;var p=Math.min(a.r1,a.r2);if(p\\u003e0){var v=p/Math.max(a.r1,a.r2);for(r=0,n=h.length;r\\u003cn;r++)h[r].offset+=v*(1-h[r].offset)}}for(r=0,n=h.length;r\\u003cn;r++){var m=h[r];o.push(\\\"\\u003cstop \\\",'offset=\\\"',100*m.offset+\\\"%\\\",'\\\" style=\\\"stop-color:',m.color,void 0!==m.opacity?\\\";stop-opacity: \\\"+m.opacity:\\\";\\\",'\\\"/\\u003e\\\\n')}return o.push(\\\"linear\\\"===this.type?\\\"\\u003c/linearGradient\\u003e\\\\n\\\":\\\"\\u003c/radialGradient\\u003e\\\\n\\\"),o.join(\\\"\\\")},toLive:function(t){var e,i,r,n=T.util.object.clone(this.coords);if(this.type){for(\\\"linear\\\"===this.type?e=t.createLinearGradient(n.x1,n.y1,n.x2,n.y2):\\\"radial\\\"===this.type\\u0026\\u0026(e=t.createRadialGradient(n.x1,n.y1,n.r1,n.x2,n.y2,n.r2)),i=0,r=this.colorStops.length;i\\u003cr;i++){var o=this.colorStops[i].color,s=this.colorStops[i].opacity,a=this.colorStops[i].offset;void 0!==s\\u0026\\u0026(o=new T.Color(o).setAlpha(s).toRgba()),e.addColorStop(a,o)}return e}}}),T.util.object.extend(T.Gradient,{fromElement:function(e,i,r,n){var o=parseFloat(r)/(/%$/.test(r)?100:1);o=o\\u003c0?0:o\\u003e1?1:o,isNaN(o)\\u0026\\u0026(o=1);var s,a,h,c,l=e.getElementsByTagName(\\\"stop\\\"),u=\\\"userSpaceOnUse\\\"===e.getAttribute(\\\"gradientUnits\\\")?\\\"pixels\\\":\\\"percentage\\\",f=e.getAttribute(\\\"gradientTransform\\\")||\\\"\\\",d=[],g=0,p=0;for(\\\"linearGradient\\\"===e.nodeName||\\\"LINEARGRADIENT\\\"===e.nodeName?(s=\\\"linear\\\",a=function(t){return{x1:t.getAttribute(\\\"x1\\\")||0,y1:t.getAttribute(\\\"y1\\\")||0,x2:t.getAttribute(\\\"x2\\\")||\\\"100%\\\",y2:t.getAttribute(\\\"y2\\\")||0}}(e)):(s=\\\"radial\\\",a=function(t){return{x1:t.getAttribute(\\\"fx\\\")||t.getAttribute(\\\"cx\\\")||\\\"50%\\\",y1:t.getAttribute(\\\"fy\\\")||t.getAttribute(\\\"cy\\\")||\\\"50%\\\",r1:0,x2:t.getAttribute(\\\"cx\\\")||\\\"50%\\\",y2:t.getAttribute(\\\"cy\\\")||\\\"50%\\\",r2:t.getAttribute(\\\"r\\\")||\\\"50%\\\"}}(e)),h=l.length;h--;)d.push(t(l[h],o));return c=T.parseTransformAttribute(f),function(t,e,i,r){var n,o;Object.keys(e).forEach((function(t){\\\"Infinity\\\"===(n=e[t])?o=1:\\\"-Infinity\\\"===n?o=0:(o=parseFloat(e[t],10),\\\"string\\\"==typeof n\\u0026\\u0026/^(\\\\d+\\\\.\\\\d+)%|(\\\\d+)%$/.test(n)\\u0026\\u0026(o*=.01,\\\"pixels\\\"===r\\u0026\\u0026(\\\"x1\\\"!==t\\u0026\\u0026\\\"x2\\\"!==t\\u0026\\u0026\\\"r2\\\"!==t||(o*=i.viewBoxWidth||i.width),\\\"y1\\\"!==t\\u0026\\u0026\\\"y2\\\"!==t||(o*=i.viewBoxHeight||i.height)))),e[t]=o}))}(0,a,n,u),\\\"pixels\\\"===u\\u0026\\u0026(g=-i.left,p=-i.top),new T.Gradient({id:e.getAttribute(\\\"id\\\"),type:s,coords:a,colorStops:d,gradientUnits:u,gradientTransform:c,offsetX:g,offsetY:p})}})}(),_=T.util.toFixed,T.Pattern=T.util.createClass({repeat:\\\"repeat\\\",offsetX:0,offsetY:0,crossOrigin:\\\"\\\",patternTransform:null,initialize:function(t,e){if(t||(t={}),this.id=T.Object.__uid++,this.setOptions(t),!t.source||t.source\\u0026\\u0026\\\"string\\\"!=typeof t.source)e\\u0026\\u0026e(this);else{var i=this;this.source=T.util.createImage(),T.util.loadImage(t.source,(function(t,r){i.source=t,e\\u0026\\u0026e(i,r)}),null,this.crossOrigin)}},toObject:function(t){var e,i,r=T.Object.NUM_FRACTION_DIGITS;return\\\"string\\\"==typeof this.source.src?e=this.source.src:\\\"object\\\"==typeof this.source\\u0026\\u0026this.source.toDataURL\\u0026\\u0026(e=this.source.toDataURL()),i={type:\\\"pattern\\\",source:e,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:_(this.offsetX,r),offsetY:_(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},T.util.populateWithProperties(this,i,t),i},toSVG:function(t){var e=\\\"function\\\"==typeof this.source?this.source():this.source,i=e.width/t.width,r=e.height/t.height,n=this.offsetX/t.width,o=this.offsetY/t.height,s=\\\"\\\";return\\\"repeat-x\\\"!==this.repeat\\u0026\\u0026\\\"no-repeat\\\"!==this.repeat||(r=1,o\\u0026\\u0026(r+=Math.abs(o))),\\\"repeat-y\\\"!==this.repeat\\u0026\\u0026\\\"no-repeat\\\"!==this.repeat||(i=1,n\\u0026\\u0026(i+=Math.abs(n))),e.src?s=e.src:e.toDataURL\\u0026\\u0026(s=e.toDataURL()),'\\u003cpattern id=\\\"SVGID_'+this.id+'\\\" x=\\\"'+n+'\\\" y=\\\"'+o+'\\\" width=\\\"'+i+'\\\" height=\\\"'+r+'\\\"\\u003e\\\\n\\u003cimage x=\\\"0\\\" y=\\\"0\\\" width=\\\"'+e.width+'\\\" height=\\\"'+e.height+'\\\" xlink:href=\\\"'+s+'\\\"\\u003e\\u003c/image\\u003e\\\\n\\u003c/pattern\\u003e\\\\n'},setOptions:function(t){for(var e in t)this[e]=t[e]},toLive:function(t){var e=this.source;if(!e)return\\\"\\\";if(void 0!==e.src){if(!e.complete)return\\\"\\\";if(0===e.naturalWidth||0===e.naturalHeight)return\\\"\\\"}return t.createPattern(e,this.repeat)}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.toFixed;e.Shadow?e.warn(\\\"fabric.Shadow is already defined.\\\"):(e.Shadow=e.util.createClass({color:\\\"rgb(0,0,0)\\\",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(t){for(var i in\\\"string\\\"==typeof t\\u0026\\u0026(t=this._parseShadow(t)),t)this[i]=t[i];this.id=e.Object.__uid++},_parseShadow:function(t){var i=t.trim(),r=e.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(e.Shadow.reOffsetsAndBlur,\\\"\\\")||\\\"rgb(0,0,0)\\\").trim(),offsetX:parseFloat(r[1],10)||0,offsetY:parseFloat(r[2],10)||0,blur:parseFloat(r[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join(\\\"px \\\")},toSVG:function(t){var r=40,n=40,o=e.Object.NUM_FRACTION_DIGITS,s=e.util.rotateVector({x:this.offsetX,y:this.offsetY},e.util.degreesToRadians(-t.angle)),a=new e.Color(this.color);return t.width\\u0026\\u0026t.height\\u0026\\u0026(r=100*i((Math.abs(s.x)+this.blur)/t.width,o)+20,n=100*i((Math.abs(s.y)+this.blur)/t.height,o)+20),t.flipX\\u0026\\u0026(s.x*=-1),t.flipY\\u0026\\u0026(s.y*=-1),'\\u003cfilter id=\\\"SVGID_'+this.id+'\\\" y=\\\"-'+n+'%\\\" height=\\\"'+(100+2*n)+'%\\\" x=\\\"-'+r+'%\\\" width=\\\"'+(100+2*r)+'%\\\" \\u003e\\\\n\\\\t\\u003cfeGaussianBlur in=\\\"SourceAlpha\\\" stdDeviation=\\\"'+i(this.blur?this.blur/2:0,o)+'\\\"\\u003e\\u003c/feGaussianBlur\\u003e\\\\n\\\\t\\u003cfeOffset dx=\\\"'+i(s.x,o)+'\\\" dy=\\\"'+i(s.y,o)+'\\\" result=\\\"oBlur\\\" \\u003e\\u003c/feOffset\\u003e\\\\n\\\\t\\u003cfeFlood flood-color=\\\"'+a.toRgb()+'\\\" flood-opacity=\\\"'+a.getAlpha()+'\\\"/\\u003e\\\\n\\\\t\\u003cfeComposite in2=\\\"oBlur\\\" operator=\\\"in\\\" /\\u003e\\\\n\\\\t\\u003cfeMerge\\u003e\\\\n\\\\t\\\\t\\u003cfeMergeNode\\u003e\\u003c/feMergeNode\\u003e\\\\n\\\\t\\\\t\\u003cfeMergeNode in=\\\"SourceGraphic\\\"\\u003e\\u003c/feMergeNode\\u003e\\\\n\\\\t\\u003c/feMerge\\u003e\\\\n\\u003c/filter\\u003e\\\\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var t={},i=e.Shadow.prototype;return[\\\"color\\\",\\\"blur\\\",\\\"offsetX\\\",\\\"offsetY\\\",\\\"affectStroke\\\",\\\"nonScaling\\\"].forEach((function(e){this[e]!==i[e]\\u0026\\u0026(t[e]=this[e])}),this),t}}),e.Shadow.reOffsetsAndBlur=/(?:\\\\s|^)(-?\\\\d+(?:\\\\.\\\\d*)?(?:px)?(?:\\\\s?|$))?(-?\\\\d+(?:\\\\.\\\\d*)?(?:px)?(?:\\\\s?|$))?(\\\\d+(?:\\\\.\\\\d*)?(?:px)?)?(?:\\\\s?|$)(?:$|\\\\s)/)}(t),function(){if(T.StaticCanvas)T.warn(\\\"fabric.StaticCanvas is already defined.\\\");else{var t=T.util.object.extend,e=T.util.getElementOffset,i=T.util.removeFromArray,r=T.util.toFixed,n=T.util.transformPoint,o=T.util.invertTransform,s=T.util.getNodeCanvas,a=T.util.createCanvasElement,h=new Error(\\\"Could not initialize `canvas` element\\\");T.StaticCanvas=T.util.createClass(T.CommonMethods,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e)},backgroundColor:\\\"\\\",backgroundImage:null,overlayColor:\\\"\\\",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:T.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(t,e){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(t),this._initOptions(e),this.interactive||this._initRetinaScaling(),e.overlayImage\\u0026\\u0026this.setOverlayImage(e.overlayImage,i),e.backgroundImage\\u0026\\u0026this.setBackgroundImage(e.backgroundImage,i),e.backgroundColor\\u0026\\u0026this.setBackgroundColor(e.backgroundColor,i),e.overlayColor\\u0026\\u0026this.setOverlayColor(e.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return 1!==T.devicePixelRatio\\u0026\\u0026this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?T.devicePixelRatio:1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var t=T.devicePixelRatio;this.__initRetinaScaling(t,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl\\u0026\\u0026this.__initRetinaScaling(t,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(t,e,i){e.setAttribute(\\\"width\\\",this.width*t),e.setAttribute(\\\"height\\\",this.height*t),i.scale(t,t)},calcOffset:function(){return this._offset=e(this.lowerCanvasEl),this},setOverlayImage:function(t,e,i){return this.__setBgOverlayImage(\\\"overlayImage\\\",t,e,i)},setBackgroundImage:function(t,e,i){return this.__setBgOverlayImage(\\\"backgroundImage\\\",t,e,i)},setOverlayColor:function(t,e){return this.__setBgOverlayColor(\\\"overlayColor\\\",t,e)},setBackgroundColor:function(t,e){return this.__setBgOverlayColor(\\\"backgroundColor\\\",t,e)},__setBgOverlayImage:function(t,e,i,r){return\\\"string\\\"==typeof e?T.util.loadImage(e,(function(e,n){if(e){var o=new T.Image(e,r);this[t]=o,o.canvas=this}i\\u0026\\u0026i(e,n)}),this,r\\u0026\\u0026r.crossOrigin):(r\\u0026\\u0026e.setOptions(r),this[t]=e,e\\u0026\\u0026(e.canvas=this),i\\u0026\\u0026i(e,!1)),this},__setBgOverlayColor:function(t,e,i){return this[t]=e,this._initGradient(e,t),this._initPattern(e,t,i),this},_createCanvasElement:function(){var t=a();if(!t)throw h;if(t.style||(t.style={}),void 0===t.getContext)throw h;return t},_initOptions:function(t){var e=this.lowerCanvasEl;this._setOptions(t),this.width=this.width||parseInt(e.width,10)||0,this.height=this.height||parseInt(e.height,10)||0,this.lowerCanvasEl.style\\u0026\\u0026(e.width=this.width,e.height=this.height,e.style.width=this.width+\\\"px\\\",e.style.height=this.height+\\\"px\\\",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(t){t\\u0026\\u0026t.getContext?this.lowerCanvasEl=t:this.lowerCanvasEl=T.util.getById(t)||this._createCanvasElement(),T.util.addClass(this.lowerCanvasEl,\\\"lower-canvas\\\"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive\\u0026\\u0026this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext(\\\"2d\\\")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(t,e){return this.setDimensions({width:t},e)},setHeight:function(t,e){return this.setDimensions({height:t},e)},setDimensions:function(t,e){var i;for(var r in e=e||{},t)i=t[r],e.cssOnly||(this._setBackstoreDimension(r,t[r]),i+=\\\"px\\\",this.hasLostContext=!0),e.backstoreOnly||this._setCssDimension(r,i);return this._isCurrentlyDrawing\\u0026\\u0026this.freeDrawingBrush\\u0026\\u0026this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this.calcOffset(),e.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(t,e){return this.lowerCanvasEl[t]=e,this.upperCanvasEl\\u0026\\u0026(this.upperCanvasEl[t]=e),this.cacheCanvasEl\\u0026\\u0026(this.cacheCanvasEl[t]=e),this[t]=e,this},_setCssDimension:function(t,e){return this.lowerCanvasEl.style[t]=e,this.upperCanvasEl\\u0026\\u0026(this.upperCanvasEl.style[t]=e),this.wrapperEl\\u0026\\u0026(this.wrapperEl.style[t]=e),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(t){var e,i,r,n=this._activeObject,o=this.backgroundImage,s=this.overlayImage;for(this.viewportTransform=t,i=0,r=this._objects.length;i\\u003cr;i++)(e=this._objects[i]).group||e.setCoords(!0);return n\\u0026\\u0026n.setCoords(),o\\u0026\\u0026o.setCoords(!0),s\\u0026\\u0026s.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},zoomToPoint:function(t,e){var i=t,r=this.viewportTransform.slice(0);t=n(t,o(this.viewportTransform)),r[0]=e,r[3]=e;var s=n(t,r);return r[4]+=i.x-s.x,r[5]+=i.y-s.y,this.setViewportTransform(r)},setZoom:function(t){return this.zoomToPoint(new T.Point(0,0),t),this},absolutePan:function(t){var e=this.viewportTransform.slice(0);return e[4]=-t.x,e[5]=-t.y,this.setViewportTransform(e)},relativePan:function(t){return this.absolutePan(new T.Point(-t.x-this.viewportTransform[4],-t.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(t){this.stateful\\u0026\\u0026t.setupState(),t._set(\\\"canvas\\\",this),t.setCoords(),this.fire(\\\"object:added\\\",{target:t}),t.fire(\\\"added\\\")},_onObjectRemoved:function(t){this.fire(\\\"object:removed\\\",{target:t}),t.fire(\\\"removed\\\"),delete t.canvas},clearContext:function(t){return t.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor=\\\"\\\",this.overlayColor=\\\"\\\",this._hasITextHandlers\\u0026\\u0026(this.off(\\\"mouse:up\\\",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire(\\\"canvas:cleared\\\"),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},renderAll:function(){var t=this.contextContainer;return this.renderCanvas(t,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=T.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var t={},e=this.width,i=this.height,r=o(this.viewportTransform);return t.tl=n({x:0,y:0},r),t.br=n({x:e,y:i},r),t.tr=new T.Point(t.br.x,t.tl.y),t.bl=new T.Point(t.tl.x,t.br.y),this.vptCoords=t,t},cancelRequestedRender:function(){this.isRendering\\u0026\\u0026(T.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(t,e){var i=this.viewportTransform,r=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(t),T.util.setImageSmoothing(t,this.imageSmoothingEnabled),this.fire(\\\"before:render\\\",{ctx:t}),this._renderBackground(t),t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(t,e),t.restore(),!this.controlsAboveOverlay\\u0026\\u0026this.interactive\\u0026\\u0026this.drawControls(t),r\\u0026\\u0026(r.canvas=this,r.shouldCache(),r._transformDone=!0,r.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(t)),this._renderOverlay(t),this.controlsAboveOverlay\\u0026\\u0026this.interactive\\u0026\\u0026this.drawControls(t),this.fire(\\\"after:render\\\",{ctx:t})},drawClipPathOnCanvas:function(t){var e=this.viewportTransform,i=this.clipPath;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t.globalCompositeOperation=\\\"destination-in\\\",i.transform(t),t.scale(1/i.zoomX,1/i.zoomY),t.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),t.restore()},_renderObjects:function(t,e){var i,r;for(i=0,r=e.length;i\\u003cr;++i)e[i]\\u0026\\u0026e[i].render(t)},_renderBackgroundOrOverlay:function(t,e){var i=this[e+\\\"Color\\\"],r=this[e+\\\"Image\\\"],n=this.viewportTransform,o=this[e+\\\"Vpt\\\"];if(i||r){if(i){t.save(),t.beginPath(),t.moveTo(0,0),t.lineTo(this.width,0),t.lineTo(this.width,this.height),t.lineTo(0,this.height),t.closePath(),t.fillStyle=i.toLive?i.toLive(t,this):i,o\\u0026\\u0026t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var s=i.gradientTransform||i.patternTransform;s\\u0026\\u0026t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),t.fill(),t.restore()}r\\u0026\\u0026(t.save(),o\\u0026\\u0026t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),r.render(t),t.restore())}},_renderBackground:function(t){this._renderBackgroundOrOverlay(t,\\\"background\\\")},_renderOverlay:function(t){this._renderBackgroundOrOverlay(t,\\\"overlay\\\")},getCenter:function(){return{top:this.height/2,left:this.width/2}},centerObjectH:function(t){return this._centerObject(t,new T.Point(this.getCenter().left,t.getCenterPoint().y))},centerObjectV:function(t){return this._centerObject(t,new T.Point(t.getCenterPoint().x,this.getCenter().top))},centerObject:function(t){var e=this.getCenter();return this._centerObject(t,new T.Point(e.left,e.top))},viewportCenterObject:function(t){var e=this.getVpCenter();return this._centerObject(t,e)},viewportCenterObjectH:function(t){var e=this.getVpCenter();return this._centerObject(t,new T.Point(e.x,t.getCenterPoint().y)),this},viewportCenterObjectV:function(t){var e=this.getVpCenter();return this._centerObject(t,new T.Point(t.getCenterPoint().x,e.y))},getVpCenter:function(){var t=this.getCenter(),e=o(this.viewportTransform);return n({x:t.left,y:t.top},e)},_centerObject:function(t,e){return t.setPositionByOrigin(e,\\\"center\\\",\\\"center\\\"),t.setCoords(),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},toDatalessJSON:function(t){return this.toDatalessObject(t)},toObject:function(t){return this._toObjectMethod(\\\"toObject\\\",t)},toDatalessObject:function(t){return this._toObjectMethod(\\\"toDatalessObject\\\",t)},_toObjectMethod:function(e,i){var r=this.clipPath,n={version:T.version,objects:this._toObjects(e,i)};return r\\u0026\\u0026!r.excludeFromExport\\u0026\\u0026(n.clipPath=this._toObject(this.clipPath,e,i)),t(n,this.__serializeBgOverlay(e,i)),T.util.populateWithProperties(this,n,i),n},_toObjects:function(t,e){return this._objects.filter((function(t){return!t.excludeFromExport})).map((function(i){return this._toObject(i,t,e)}),this)},_toObject:function(t,e,i){var r;this.includeDefaultValues||(r=t.includeDefaultValues,t.includeDefaultValues=!1);var n=t[e](i);return this.includeDefaultValues||(t.includeDefaultValues=r),n},__serializeBgOverlay:function(t,e){var i={},r=this.backgroundImage,n=this.overlayImage,o=this.backgroundColor,s=this.overlayColor;return o\\u0026\\u0026o.toObject?o.excludeFromExport||(i.background=o.toObject(e)):o\\u0026\\u0026(i.background=o),s\\u0026\\u0026s.toObject?s.excludeFromExport||(i.overlay=s.toObject(e)):s\\u0026\\u0026(i.overlay=s),r\\u0026\\u0026!r.excludeFromExport\\u0026\\u0026(i.backgroundImage=this._toObject(r,t,e)),n\\u0026\\u0026!n.excludeFromExport\\u0026\\u0026(i.overlayImage=this._toObject(n,t,e)),i},svgViewportTransformation:!0,toSVG:function(t,e){t||(t={}),t.reviver=e;var i=[];return this._setSVGPreamble(i,t),this._setSVGHeader(i,t),this.clipPath\\u0026\\u0026i.push('\\u003cg clip-path=\\\"url(#'+this.clipPath.clipPathId+')\\\" \\u003e\\\\n'),this._setSVGBgOverlayColor(i,\\\"background\\\"),this._setSVGBgOverlayImage(i,\\\"backgroundImage\\\",e),this._setSVGObjects(i,e),this.clipPath\\u0026\\u0026i.push(\\\"\\u003c/g\\u003e\\\\n\\\"),this._setSVGBgOverlayColor(i,\\\"overlay\\\"),this._setSVGBgOverlayImage(i,\\\"overlayImage\\\",e),i.push(\\\"\\u003c/svg\\u003e\\\"),i.join(\\\"\\\")},_setSVGPreamble:function(t,e){e.suppressPreamble||t.push('\\u003c?xml version=\\\"1.0\\\" encoding=\\\"',e.encoding||\\\"UTF-8\\\",'\\\" standalone=\\\"no\\\" ?\\u003e\\\\n','\\u003c!DOCTYPE svg PUBLIC \\\"-//W3C//DTD SVG 1.1//EN\\\" ','\\\"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\\\"\\u003e\\\\n')},_setSVGHeader:function(t,e){var i,n=e.width||this.width,o=e.height||this.height,s='viewBox=\\\"0 0 '+this.width+\\\" \\\"+this.height+'\\\" ',a=T.Object.NUM_FRACTION_DIGITS;e.viewBox?s='viewBox=\\\"'+e.viewBox.x+\\\" \\\"+e.viewBox.y+\\\" \\\"+e.viewBox.width+\\\" \\\"+e.viewBox.height+'\\\" ':this.svgViewportTransformation\\u0026\\u0026(i=this.viewportTransform,s='viewBox=\\\"'+r(-i[4]/i[0],a)+\\\" \\\"+r(-i[5]/i[3],a)+\\\" \\\"+r(this.width/i[0],a)+\\\" \\\"+r(this.height/i[3],a)+'\\\" '),t.push(\\\"\\u003csvg \\\",'xmlns=\\\"http://www.w3.org/2000/svg\\\" ','xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" ','version=\\\"1.1\\\" ','width=\\\"',n,'\\\" ','height=\\\"',o,'\\\" ',s,'xml:space=\\\"preserve\\\"\\u003e\\\\n',\\\"\\u003cdesc\\u003eCreated with Fabric.js \\\",T.version,\\\"\\u003c/desc\\u003e\\\\n\\\",\\\"\\u003cdefs\\u003e\\\\n\\\",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(e),\\\"\\u003c/defs\\u003e\\\\n\\\")},createSVGClipPathMarkup:function(t){var e=this.clipPath;return e?(e.clipPathId=\\\"CLIPPATH_\\\"+T.Object.__uid++,'\\u003cclipPath id=\\\"'+e.clipPathId+'\\\" \\u003e\\\\n'+this.clipPath.toClipPathSVG(t.reviver)+\\\"\\u003c/clipPath\\u003e\\\\n\\\"):\\\"\\\"},createSVGRefElementsMarkup:function(){var t=this;return[\\\"background\\\",\\\"overlay\\\"].map((function(e){var i=t[e+\\\"Color\\\"];if(i\\u0026\\u0026i.toLive){var r=t[e+\\\"Vpt\\\"],n=t.viewportTransform,o={width:t.width/(r?n[0]:1),height:t.height/(r?n[3]:1)};return i.toSVG(o,{additionalTransform:r?T.util.matrixToSVG(n):\\\"\\\"})}})).join(\\\"\\\")},createSVGFontFacesMarkup:function(){var t,e,i,r,n,o,s,a,h=\\\"\\\",c={},l=T.fontPaths,u=[];for(this._objects.forEach((function t(e){u.push(e),e._objects\\u0026\\u0026e._objects.forEach(t)})),s=0,a=u.length;s\\u003ca;s++)if(e=(t=u[s]).fontFamily,-1!==t.type.indexOf(\\\"text\\\")\\u0026\\u0026!c[e]\\u0026\\u0026l[e]\\u0026\\u0026(c[e]=!0,t.styles))for(n in i=t.styles)for(o in r=i[n])!c[e=r[o].fontFamily]\\u0026\\u0026l[e]\\u0026\\u0026(c[e]=!0);for(var f in c)h+=[\\\"\\\\t\\\\t@font-face {\\\\n\\\",\\\"\\\\t\\\\t\\\\tfont-family: '\\\",f,\\\"';\\\\n\\\",\\\"\\\\t\\\\t\\\\tsrc: url('\\\",l[f],\\\"');\\\\n\\\",\\\"\\\\t\\\\t}\\\\n\\\"].join(\\\"\\\");return h\\u0026\\u0026(h=['\\\\t\\u003cstyle type=\\\"text/css\\\"\\u003e',\\\"\\u003c![CDATA[\\\\n\\\",h,\\\"]]\\u003e\\\",\\\"\\u003c/style\\u003e\\\\n\\\"].join(\\\"\\\")),h},_setSVGObjects:function(t,e){var i,r,n,o=this._objects;for(r=0,n=o.length;r\\u003cn;r++)(i=o[r]).excludeFromExport||this._setSVGObject(t,i,e)},_setSVGObject:function(t,e,i){t.push(e.toSVG(i))},_setSVGBgOverlayImage:function(t,e,i){this[e]\\u0026\\u0026!this[e].excludeFromExport\\u0026\\u0026this[e].toSVG\\u0026\\u0026t.push(this[e].toSVG(i))},_setSVGBgOverlayColor:function(t,e){var i=this[e+\\\"Color\\\"],r=this.viewportTransform,n=this.width,o=this.height;if(i)if(i.toLive){var s=i.repeat,a=T.util.invertTransform(r),h=this[e+\\\"Vpt\\\"]?T.util.matrixToSVG(a):\\\"\\\";t.push('\\u003crect transform=\\\"'+h+\\\" translate(\\\",n/2,\\\",\\\",o/2,')\\\"',' x=\\\"',i.offsetX-n/2,'\\\" y=\\\"',i.offsetY-o/2,'\\\" ','width=\\\"',\\\"repeat-y\\\"===s||\\\"no-repeat\\\"===s?i.source.width:n,'\\\" height=\\\"',\\\"repeat-x\\\"===s||\\\"no-repeat\\\"===s?i.source.height:o,'\\\" fill=\\\"url(#SVGID_'+i.id+')\\\"',\\\"\\u003e\\u003c/rect\\u003e\\\\n\\\")}else t.push('\\u003crect x=\\\"0\\\" y=\\\"0\\\" width=\\\"100%\\\" height=\\\"100%\\\" ','fill=\\\"',i,'\\\"',\\\"\\u003e\\u003c/rect\\u003e\\\\n\\\")},sendToBack:function(t){if(!t)return this;var e,r,n,o=this._activeObject;if(t===o\\u0026\\u0026\\\"activeSelection\\\"===t.type)for(e=(n=o._objects).length;e--;)r=n[e],i(this._objects,r),this._objects.unshift(r);else i(this._objects,t),this._objects.unshift(t);return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},bringToFront:function(t){if(!t)return this;var e,r,n,o=this._activeObject;if(t===o\\u0026\\u0026\\\"activeSelection\\\"===t.type)for(n=o._objects,e=0;e\\u003cn.length;e++)r=n[e],i(this._objects,r),this._objects.push(r);else i(this._objects,t),this._objects.push(t);return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},sendBackwards:function(t,e){if(!t)return this;var r,n,o,s,a,h=this._activeObject,c=0;if(t===h\\u0026\\u0026\\\"activeSelection\\\"===t.type)for(a=h._objects,r=0;r\\u003ca.length;r++)n=a[r],(o=this._objects.indexOf(n))\\u003e0+c\\u0026\\u0026(s=o-1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else 0!==(o=this._objects.indexOf(t))\\u0026\\u0026(s=this._findNewLowerIndex(t,o,e),i(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},_findNewLowerIndex:function(t,e,i){var r,n;if(i)for(r=e,n=e-1;n\\u003e=0;--n){if(t.intersectsWithObject(this._objects[n])||t.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(t)){r=n;break}}else r=e-1;return r},bringForward:function(t,e){if(!t)return this;var r,n,o,s,a,h=this._activeObject,c=0;if(t===h\\u0026\\u0026\\\"activeSelection\\\"===t.type)for(r=(a=h._objects).length;r--;)n=a[r],(o=this._objects.indexOf(n))\\u003cthis._objects.length-1-c\\u0026\\u0026(s=o+1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else(o=this._objects.indexOf(t))!==this._objects.length-1\\u0026\\u0026(s=this._findNewUpperIndex(t,o,e),i(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},_findNewUpperIndex:function(t,e,i){var r,n,o;if(i)for(r=e,n=e+1,o=this._objects.length;n\\u003co;++n){if(t.intersectsWithObject(this._objects[n])||t.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(t)){r=n;break}}else r=e+1;return r},moveTo:function(t,e){return i(this._objects,t),this._objects.splice(e,0,t),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll()},dispose:function(){return this.isRendering\\u0026\\u0026(T.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(t){t.dispose\\u0026\\u0026t.dispose()})),this._objects=[],this.backgroundImage\\u0026\\u0026this.backgroundImage.dispose\\u0026\\u0026this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage\\u0026\\u0026this.overlayImage.dispose\\u0026\\u0026this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove(\\\"lower-canvas\\\"),this.lowerCanvasEl.style=this._originalCanvasStyle,delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute(\\\"width\\\",this.width),this.lowerCanvasEl.setAttribute(\\\"height\\\",this.height),T.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return\\\"#\\u003cfabric.Canvas (\\\"+this.complexity()+\\\"): { objects: \\\"+this._objects.length+\\\" }\\u003e\\\"}}),t(T.StaticCanvas.prototype,T.Observable),t(T.StaticCanvas.prototype,T.Collection),t(T.StaticCanvas.prototype,T.DataURLExporter),t(T.StaticCanvas,{EMPTY_JSON:'{\\\"objects\\\": [], \\\"background\\\": \\\"white\\\"}',supports:function(t){var e=a();if(!e||!e.getContext)return null;var i=e.getContext(\\\"2d\\\");return i\\u0026\\u0026\\\"setLineDash\\\"===t?void 0!==i.setLineDash:null}}),T.StaticCanvas.prototype.toJSON=T.StaticCanvas.prototype.toObject,T.isLikelyNode\\u0026\\u0026(T.StaticCanvas.prototype.createPNGStream=function(){var t=s(this.lowerCanvasEl);return t\\u0026\\u0026t.createPNGStream()},T.StaticCanvas.prototype.createJPEGStream=function(t){var e=s(this.lowerCanvasEl);return e\\u0026\\u0026e.createJPEGStream(t)})}}(),T.BaseBrush=T.util.createClass({color:\\\"rgb(0, 0, 0)\\\",width:1,shadow:null,strokeLineCap:\\\"round\\\",strokeLineJoin:\\\"round\\\",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(){var t=this.canvas.contextTop;t.strokeStyle=this.color,t.lineWidth=this.width,t.lineCap=this.strokeLineCap,t.miterLimit=this.strokeMiterLimit,t.lineJoin=this.strokeLineJoin,t.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(t){var e=this.canvas.viewportTransform;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},_setShadow:function(){if(this.shadow){var t=this.canvas,e=this.shadow,i=t.contextTop,r=t.getZoom();t\\u0026\\u0026t._isRetinaScaling()\\u0026\\u0026(r*=T.devicePixelRatio),i.shadowColor=e.color,i.shadowBlur=e.blur*r,i.shadowOffsetX=e.offsetX*r,i.shadowOffsetY=e.offsetY*r}},needsFullRender:function(){return new T.Color(this.color).getAlpha()\\u003c1||!!this.shadow},_resetShadow:function(){var t=this.canvas.contextTop;t.shadowColor=\\\"\\\",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0},_isOutSideCanvas:function(t){return t.x\\u003c0||t.x\\u003ethis.canvas.getWidth()||t.y\\u003c0||t.y\\u003ethis.canvas.getHeight()}}),T.PencilBrush=T.util.createClass(T.BaseBrush,{decimate:.4,initialize:function(t){this.canvas=t,this._points=[]},_drawSegment:function(t,e,i){var r=e.midPointFrom(i);return t.quadraticCurveTo(e.x,e.y,r.x,r.y),r},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)\\u0026\\u0026(this._prepareForDrawing(t),this._captureDrawingPath(t),this._render())},onMouseMove:function(t,e){if(this.canvas._isMainEvent(e.e)\\u0026\\u0026(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(t))\\u0026\\u0026this._captureDrawingPath(t)\\u0026\\u0026this._points.length\\u003e1)if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,r=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd\\u0026\\u0026(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[r-2],i[r-1],!0),n.stroke(),n.restore()}},onMouseUp:function(t){return!this.canvas._isMainEvent(t.e)||(this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(t){var e=new T.Point(t.x,t.y);this._reset(),this._addPoint(e),this.canvas.contextTop.moveTo(e.x,e.y)},_addPoint:function(t){return!(this._points.length\\u003e1\\u0026\\u0026t.eq(this._points[this._points.length-1])||(this._points.push(t),0))},_reset:function(){this._points=[],this._setBrushStyles(),this._setShadow()},_captureDrawingPath:function(t){var e=new T.Point(t.x,t.y);return this._addPoint(e)},_render:function(){var t,e,i=this.canvas.contextTop,r=this._points[0],n=this._points[1];if(this._saveAndTransform(i),i.beginPath(),2===this._points.length\\u0026\\u0026r.x===n.x\\u0026\\u0026r.y===n.y){var o=this.width/1e3;r=new T.Point(r.x,r.y),n=new T.Point(n.x,n.y),r.x-=o,n.x+=o}for(i.moveTo(r.x,r.y),t=1,e=this._points.length;t\\u003ce;t++)this._drawSegment(i,r,n),r=this._points[t],n=this._points[t+1];i.lineTo(r.x,r.y),i.stroke(),i.restore()},convertPointsToSVGPath:function(t){var e=this.width/1e3;return T.util.getSmoothPathFromPoints(t,e)},_isEmptySVGPath:function(t){return\\\"M 0 0 Q 0 0 0 0 L 0 0\\\"===T.util.joinPath(t)},createPath:function(t){var e=new T.Path(t,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow\\u0026\\u0026(this.shadow.affectStroke=!0,e.shadow=new T.Shadow(this.shadow)),e},decimatePoints:function(t,e){if(t.length\\u003c=2)return t;var i,r=this.canvas.getZoom(),n=Math.pow(e/r,2),o=t.length-1,s=t[0],a=[s];for(i=1;i\\u003co-1;i++)Math.pow(s.x-t[i].x,2)+Math.pow(s.y-t[i].y,2)\\u003e=n\\u0026\\u0026(s=t[i],a.push(s));return a.push(t[o]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate\\u0026\\u0026(this._points=this.decimatePoints(this._points,this.decimate));var t=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(t))this.canvas.requestRenderAll();else{var e=this.createPath(t);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire(\\\"before:path:created\\\",{path:e}),this.canvas.add(e),this.canvas.requestRenderAll(),e.setCoords(),this._resetShadow(),this.canvas.fire(\\\"path:created\\\",{path:e})}}}),T.CircleBrush=T.util.createClass(T.BaseBrush,{width:10,initialize:function(t){this.canvas=t,this.points=[]},drawDot:function(t){var e=this.addPoint(t),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,e),i.restore()},dot:function(t,e){t.fillStyle=e.fill,t.beginPath(),t.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),t.closePath(),t.fill()},onMouseDown:function(t){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(t)},_render:function(){var t,e,i=this.canvas.contextTop,r=this.points;for(this._saveAndTransform(i),t=0,e=r.length;t\\u003ce;t++)this.dot(i,r[t]);i.restore()},onMouseMove:function(t){!0===this.limitedToCanvasSize\\u0026\\u0026this._isOutSideCanvas(t)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(t),this._render()):this.drawDot(t))},onMouseUp:function(){var t,e,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var r=[];for(t=0,e=this.points.length;t\\u003ce;t++){var n=this.points[t],o=new T.Circle({radius:n.radius,left:n.x,top:n.y,originX:\\\"center\\\",originY:\\\"center\\\",fill:n.fill});this.shadow\\u0026\\u0026(o.shadow=new T.Shadow(this.shadow)),r.push(o)}var s=new T.Group(r);s.canvas=this.canvas,this.canvas.fire(\\\"before:path:created\\\",{path:s}),this.canvas.add(s),this.canvas.fire(\\\"path:created\\\",{path:s}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(t){var e=new T.Point(t.x,t.y),i=T.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,r=new T.Color(this.color).setAlpha(T.util.getRandomInt(0,100)/100).toRgba();return e.radius=i,e.fill=r,this.points.push(e),e}}),T.SprayBrush=T.util.createClass(T.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(t){this.canvas=t,this.sprayChunks=[]},onMouseDown:function(t){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(t),this.render(this.sprayChunkPoints)},onMouseMove:function(t){!0===this.limitedToCanvasSize\\u0026\\u0026this._isOutSideCanvas(t)||(this.addSprayChunk(t),this.render(this.sprayChunkPoints))},onMouseUp:function(){var t=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var e=[],i=0,r=this.sprayChunks.length;i\\u003cr;i++)for(var n=this.sprayChunks[i],o=0,s=n.length;o\\u003cs;o++){var a=new T.Rect({width:n[o].width,height:n[o].width,left:n[o].x+1,top:n[o].y+1,originX:\\\"center\\\",originY:\\\"center\\\",fill:this.color});e.push(a)}this.optimizeOverlapping\\u0026\\u0026(e=this._getOptimizedRects(e));var h=new T.Group(e);this.shadow\\u0026\\u0026h.set(\\\"shadow\\\",new T.Shadow(this.shadow)),this.canvas.fire(\\\"before:path:created\\\",{path:h}),this.canvas.add(h),this.canvas.fire(\\\"path:created\\\",{path:h}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=t,this.canvas.requestRenderAll()},_getOptimizedRects:function(t){var e,i,r,n={};for(i=0,r=t.length;i\\u003cr;i++)n[e=t[i].left+\\\"\\\"+t[i].top]||(n[e]=t[i]);var o=[];for(e in n)o.push(n[e]);return o},render:function(t){var e,i,r=this.canvas.contextTop;for(r.fillStyle=this.color,this._saveAndTransform(r),e=0,i=t.length;e\\u003ci;e++){var n=t[e];void 0!==n.opacity\\u0026\\u0026(r.globalAlpha=n.opacity),r.fillRect(n.x,n.y,n.width,n.width)}r.restore()},_render:function(){var t,e,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),t=0,e=this.sprayChunks.length;t\\u003ce;t++)this.render(this.sprayChunks[t]);i.restore()},addSprayChunk:function(t){this.sprayChunkPoints=[];var e,i,r,n,o=this.width/2;for(n=0;n\\u003cthis.density;n++){e=T.util.getRandomInt(t.x-o,t.x+o),i=T.util.getRandomInt(t.y-o,t.y+o),r=this.dotWidthVariance?T.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var s=new T.Point(e,i);s.width=r,this.randomOpacity\\u0026\\u0026(s.opacity=T.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(s)}this.sprayChunks.push(this.sprayChunkPoints)}}),T.PatternBrush=T.util.createClass(T.PencilBrush,{getPatternSrc:function(){var t=T.util.createCanvasElement(),e=t.getContext(\\\"2d\\\");return t.width=t.height=25,e.fillStyle=this.color,e.beginPath(),e.arc(10,10,10,0,2*Math.PI,!1),e.closePath(),e.fill(),t},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace(\\\"this.color\\\",'\\\"'+this.color+'\\\"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),\\\"repeat\\\")},_setBrushStyles:function(){this.callSuper(\\\"_setBrushStyles\\\"),this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(t){var e=this.callSuper(\\\"createPath\\\",t),i=e._getLeftTopCoords().scalarAdd(e.strokeWidth/2);return e.stroke=new T.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),e}}),function(){var t=T.util.getPointer,e=T.util.degreesToRadians,i=T.util.isTouchEvent;for(var r in T.Canvas=T.util.createClass(T.StaticCanvas,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:\\\"shiftKey\\\",centeredScaling:!1,centeredRotation:!1,centeredKey:\\\"altKey\\\",altActionKey:\\\"shiftKey\\\",interactive:!0,selection:!0,selectionKey:\\\"shiftKey\\\",altSelectionKey:null,selectionColor:\\\"rgba(100, 100, 255, 0.3)\\\",selectionDashArray:[],selectionBorderColor:\\\"rgba(255, 255, 255, 0.3)\\\",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:\\\"move\\\",moveCursor:\\\"move\\\",defaultCursor:\\\"default\\\",freeDrawingCursor:\\\"crosshair\\\",rotationCursor:\\\"crosshair\\\",notAllowedCursor:\\\"not-allowed\\\",containerClass:\\\"canvas-container\\\",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=T.PencilBrush\\u0026\\u0026new T.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var t,e,i,r=this.getActiveObjects();if(r.length\\u003e0\\u0026\\u0026!this.preserveObjectStacking){e=[],i=[];for(var n=0,o=this._objects.length;n\\u003co;n++)t=this._objects[n],-1===r.indexOf(t)?e.push(t):i.push(t);r.length\\u003e1\\u0026\\u0026(this._activeObject._objects=i),e.push.apply(e,i)}else e=this._objects;return e},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext\\u0026\\u0026this.renderTopLayer(this.contextTop);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this},renderTopLayer:function(t){t.save(),this.isDrawingMode\\u0026\\u0026this._isCurrentlyDrawing\\u0026\\u0026(this.freeDrawingBrush\\u0026\\u0026this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection\\u0026\\u0026this._groupSelector\\u0026\\u0026(this._drawSelection(t),this.contextTopDirty=!0),t.restore()},renderTop:function(){var t=this.contextTop;return this.clearContext(t),this.renderTopLayer(t),this.fire(\\\"after:render\\\"),this},_normalizePointer:function(t,e){var i=t.calcTransformMatrix(),r=T.util.invertTransform(i),n=this.restorePointerVpt(e);return T.util.transformPoint(n,r)},isTargetTransparent:function(t,e,i){if(t.shouldCache()\\u0026\\u0026t._cacheCanvas\\u0026\\u0026t!==this._activeObject){var r=this._normalizePointer(t,{x:e,y:i}),n=Math.max(t.cacheTranslationX+r.x*t.zoomX,0),o=Math.max(t.cacheTranslationY+r.y*t.zoomY,0);return T.util.isTransparent(t._cacheContext,Math.round(n),Math.round(o),this.targetFindTolerance)}var s=this.contextCache,a=t.selectionBackgroundColor,h=this.viewportTransform;return t.selectionBackgroundColor=\\\"\\\",this.clearContext(s),s.save(),s.transform(h[0],h[1],h[2],h[3],h[4],h[5]),t.render(s),s.restore(),t.selectionBackgroundColor=a,T.util.isTransparent(s,e,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(t){return\\\"[object Array]\\\"===Object.prototype.toString.call(this.selectionKey)?!!this.selectionKey.find((function(e){return!0===t[e]})):t[this.selectionKey]},_shouldClearSelection:function(t,e){var i=this.getActiveObjects(),r=this._activeObject;return!e||e\\u0026\\u0026r\\u0026\\u0026i.length\\u003e1\\u0026\\u0026-1===i.indexOf(e)\\u0026\\u0026r!==e\\u0026\\u0026!this._isSelectionKeyPressed(t)||e\\u0026\\u0026!e.evented||e\\u0026\\u0026!e.selectable\\u0026\\u0026r\\u0026\\u0026r!==e},_shouldCenterTransform:function(t,e,i){var r;if(t)return\\\"scale\\\"===e||\\\"scaleX\\\"===e||\\\"scaleY\\\"===e||\\\"resizing\\\"===e?r=this.centeredScaling||t.centeredScaling:\\\"rotate\\\"===e\\u0026\\u0026(r=this.centeredRotation||t.centeredRotation),r?!i:i},_getOriginFromCorner:function(t,e){var i={x:t.originX,y:t.originY};return\\\"ml\\\"===e||\\\"tl\\\"===e||\\\"bl\\\"===e?i.x=\\\"right\\\":\\\"mr\\\"!==e\\u0026\\u0026\\\"tr\\\"!==e\\u0026\\u0026\\\"br\\\"!==e||(i.x=\\\"left\\\"),\\\"tl\\\"===e||\\\"mt\\\"===e||\\\"tr\\\"===e?i.y=\\\"bottom\\\":\\\"bl\\\"!==e\\u0026\\u0026\\\"mb\\\"!==e\\u0026\\u0026\\\"br\\\"!==e||(i.y=\\\"top\\\"),i},_getActionFromCorner:function(t,e,i,r){if(!e||!t)return\\\"drag\\\";var n=r.controls[e];return n.getActionName(i,n,r)},_setupCurrentTransform:function(t,i,r){if(i){var n=this.getPointer(t),o=i.__corner,s=i.controls[o],a=r\\u0026\\u0026o?s.getActionHandler(t,i,s):T.controlsUtils.dragHandler,h=this._getActionFromCorner(r,o,t,i),c=this._getOriginFromCorner(i,o),l=t[this.centeredKey],u={target:i,action:h,actionHandler:a,corner:o,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:n.x-i.left,offsetY:n.y-i.top,originX:c.x,originY:c.y,ex:n.x,ey:n.y,lastX:n.x,lastY:n.y,theta:e(i.angle),width:i.width*i.scaleX,shiftKey:t.shiftKey,altKey:l,original:T.util.saveObjectTransform(i)};this._shouldCenterTransform(i,h,l)\\u0026\\u0026(u.originX=\\\"center\\\",u.originY=\\\"center\\\"),u.original.originX=c.x,u.original.originY=c.y,this._currentTransform=u,this._beforeTransform(t)}},setCursor:function(t){this.upperCanvasEl.style.cursor=t},_drawSelection:function(t){var e=this._groupSelector,i=new T.Point(e.ex,e.ey),r=T.util.transformPoint(i,this.viewportTransform),n=new T.Point(e.ex+e.left,e.ey+e.top),o=T.util.transformPoint(n,this.viewportTransform),s=Math.min(r.x,o.x),a=Math.min(r.y,o.y),h=Math.max(r.x,o.x),c=Math.max(r.y,o.y),l=this.selectionLineWidth/2;this.selectionColor\\u0026\\u0026(t.fillStyle=this.selectionColor,t.fillRect(s,a,h-s,c-a)),this.selectionLineWidth\\u0026\\u0026this.selectionBorderColor\\u0026\\u0026(t.lineWidth=this.selectionLineWidth,t.strokeStyle=this.selectionBorderColor,s+=l,a+=l,h-=l,c-=l,T.Object.prototype._setLineDash.call(this,t,this.selectionDashArray),t.strokeRect(s,a,h-s,c-a))},findTarget:function(t,e){if(!this.skipTargetFind){var r,n,o=this.getPointer(t,!0),s=this._activeObject,a=this.getActiveObjects(),h=i(t),c=a.length\\u003e1\\u0026\\u0026!e||1===a.length;if(this.targets=[],c\\u0026\\u0026s._findTargetCorner(o,h))return s;if(a.length\\u003e1\\u0026\\u0026!e\\u0026\\u0026s===this._searchPossibleTargets([s],o))return s;if(1===a.length\\u0026\\u0026s===this._searchPossibleTargets([s],o)){if(!this.preserveObjectStacking)return s;r=s,n=this.targets,this.targets=[]}var l=this._searchPossibleTargets(this._objects,o);return t[this.altSelectionKey]\\u0026\\u0026l\\u0026\\u0026r\\u0026\\u0026l!==r\\u0026\\u0026(l=r,this.targets=n),l}},_checkTarget:function(t,e,i){if(e\\u0026\\u0026e.visible\\u0026\\u0026e.evented\\u0026\\u0026e.containsPoint(t)){if(!this.perPixelTargetFind\\u0026\\u0026!e.perPixelTargetFind||e.isEditing)return!0;if(!this.isTargetTransparent(e,i.x,i.y))return!0}},_searchPossibleTargets:function(t,e){for(var i,r,n=t.length;n--;){var o=t[n],s=o.group?this._normalizePointer(o.group,e):e;if(this._checkTarget(s,o,e)){(i=t[n]).subTargetCheck\\u0026\\u0026i instanceof T.Group\\u0026\\u0026(r=this._searchPossibleTargets(i._objects,e))\\u0026\\u0026this.targets.push(r);break}}return i},restorePointerVpt:function(t){return T.util.transformPoint(t,T.util.invertTransform(this.viewportTransform))},getPointer:function(e,i){if(this._absolutePointer\\u0026\\u0026!i)return this._absolutePointer;if(this._pointer\\u0026\\u0026i)return this._pointer;var r,n=t(e),o=this.upperCanvasEl,s=o.getBoundingClientRect(),a=s.width||0,h=s.height||0;a\\u0026\\u0026h||(\\\"top\\\"in s\\u0026\\u0026\\\"bottom\\\"in s\\u0026\\u0026(h=Math.abs(s.top-s.bottom)),\\\"right\\\"in s\\u0026\\u0026\\\"left\\\"in s\\u0026\\u0026(a=Math.abs(s.right-s.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var c=this.getRetinaScaling();return 1!==c\\u0026\\u0026(n.x/=c,n.y/=c),r=0===a||0===h?{width:1,height:1}:{width:o.width/a,height:o.height/h},{x:n.x*r.width,y:n.y*r.height}},_createUpperCanvas:function(){var t=this.lowerCanvasEl.className.replace(/\\\\s*lower-canvas\\\\s*/,\\\"\\\"),e=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className=\\\"\\\":(i=this._createCanvasElement(),this.upperCanvasEl=i),T.util.addClass(i,\\\"upper-canvas \\\"+t),this.wrapperEl.appendChild(i),this._copyCanvasStyle(e,i),this._applyCanvasStyle(i),this.contextTop=i.getContext(\\\"2d\\\")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute(\\\"width\\\",this.width),this.cacheCanvasEl.setAttribute(\\\"height\\\",this.height),this.contextCache=this.cacheCanvasEl.getContext(\\\"2d\\\")},_initWrapperElement:function(){this.wrapperEl=T.util.wrapElement(this.lowerCanvasEl,\\\"div\\\",{class:this.containerClass}),T.util.setStyle(this.wrapperEl,{width:this.width+\\\"px\\\",height:this.height+\\\"px\\\",position:\\\"relative\\\"}),T.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(t){var e=this.width||t.width,i=this.height||t.height;T.util.setStyle(t,{position:\\\"absolute\\\",width:e+\\\"px\\\",height:i+\\\"px\\\",left:0,top:0,\\\"touch-action\\\":this.allowTouchScrolling?\\\"manipulation\\\":\\\"none\\\",\\\"-ms-touch-action\\\":this.allowTouchScrolling?\\\"manipulation\\\":\\\"none\\\"}),t.width=e,t.height=i,T.util.makeElementUnselectable(t)},_copyCanvasStyle:function(t,e){e.style.cssText=t.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var t=this._activeObject;return t?\\\"activeSelection\\\"===t.type\\u0026\\u0026t._objects?t._objects.slice(0):[t]:[]},_onObjectRemoved:function(t){t===this._activeObject\\u0026\\u0026(this.fire(\\\"before:selection:cleared\\\",{target:t}),this._discardActiveObject(),this.fire(\\\"selection:cleared\\\",{target:t}),t.fire(\\\"deselected\\\")),t===this._hoveredTarget\\u0026\\u0026(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper(\\\"_onObjectRemoved\\\",t)},_fireSelectionEvents:function(t,e){var i=!1,r=this.getActiveObjects(),n=[],o=[];t.forEach((function(t){-1===r.indexOf(t)\\u0026\\u0026(i=!0,t.fire(\\\"deselected\\\",{e:e,target:t}),o.push(t))})),r.forEach((function(r){-1===t.indexOf(r)\\u0026\\u0026(i=!0,r.fire(\\\"selected\\\",{e:e,target:r}),n.push(r))})),t.length\\u003e0\\u0026\\u0026r.length\\u003e0?i\\u0026\\u0026this.fire(\\\"selection:updated\\\",{e:e,selected:n,deselected:o,updated:n[0]||o[0],target:this._activeObject}):r.length\\u003e0?this.fire(\\\"selection:created\\\",{e:e,selected:n,target:this._activeObject}):t.length\\u003e0\\u0026\\u0026this.fire(\\\"selection:cleared\\\",{e:e,deselected:o})},setActiveObject:function(t,e){var i=this.getActiveObjects();return this._setActiveObject(t,e),this._fireSelectionEvents(i,e),this},_setActiveObject:function(t,e){return this._activeObject!==t\\u0026\\u0026(!!this._discardActiveObject(e,t)\\u0026\\u0026(!t.onSelect({e:e})\\u0026\\u0026(this._activeObject=t,!0)))},_discardActiveObject:function(t,e){var i=this._activeObject;if(i){if(i.onDeselect({e:t,object:e}))return!1;this._activeObject=null}return!0},discardActiveObject:function(t){var e=this.getActiveObjects(),i=this.getActiveObject();return e.length\\u0026\\u0026this.fire(\\\"before:selection:cleared\\\",{target:i,e:t}),this._discardActiveObject(t),this._fireSelectionEvents(e,t),this},dispose:function(){var t=this.wrapperEl;return this.removeListeners(),t.removeChild(this.upperCanvasEl),t.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,[\\\"upperCanvasEl\\\",\\\"cacheCanvasEl\\\"].forEach(function(t){T.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this)),t.parentNode\\u0026\\u0026t.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,T.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper(\\\"clear\\\")},drawControls:function(t){var e=this._activeObject;e\\u0026\\u0026e._renderControls(t)},_toObject:function(t,e,i){var r=this._realizeGroupTransformOnObject(t),n=this.callSuper(\\\"_toObject\\\",t,e,i);return this._unwindGroupTransformOnObject(t,r),n},_realizeGroupTransformOnObject:function(t){if(t.group\\u0026\\u0026\\\"activeSelection\\\"===t.group.type\\u0026\\u0026this._activeObject===t.group){var e={};return[\\\"angle\\\",\\\"flipX\\\",\\\"flipY\\\",\\\"left\\\",\\\"scaleX\\\",\\\"scaleY\\\",\\\"skewX\\\",\\\"skewY\\\",\\\"top\\\"].forEach((function(i){e[i]=t[i]})),T.util.addTransformToObject(t,this._activeObject.calcOwnMatrix()),e}return null},_unwindGroupTransformOnObject:function(t,e){e\\u0026\\u0026t.set(e)},_setSVGObject:function(t,e,i){var r=this._realizeGroupTransformOnObject(e);this.callSuper(\\\"_setSVGObject\\\",t,e,i),this._unwindGroupTransformOnObject(e,r)},setViewportTransform:function(t){this.renderOnAddRemove\\u0026\\u0026this._activeObject\\u0026\\u0026this._activeObject.isEditing\\u0026\\u0026this._activeObject.clearContextTop(),T.StaticCanvas.prototype.setViewportTransform.call(this,t)}}),T.StaticCanvas)\\\"prototype\\\"!==r\\u0026\\u0026(T.Canvas[r]=T.StaticCanvas[r])}(),function(){var t=T.util.addListener,e=T.util.removeListener,i={passive:!1};function r(t,e){return t.button\\u0026\\u0026t.button===e-1}T.util.object.extend(T.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(t,\\\"add\\\")},_getEventPrefix:function(){return this.enablePointerEvents?\\\"pointer\\\":\\\"mouse\\\"},addOrRemove:function(t,e){var r=this.upperCanvasEl,n=this._getEventPrefix();t(T.window,\\\"resize\\\",this._onResize),t(r,n+\\\"down\\\",this._onMouseDown),t(r,n+\\\"move\\\",this._onMouseMove,i),t(r,n+\\\"out\\\",this._onMouseOut),t(r,n+\\\"enter\\\",this._onMouseEnter),t(r,\\\"wheel\\\",this._onMouseWheel),t(r,\\\"contextmenu\\\",this._onContextMenu),t(r,\\\"dblclick\\\",this._onDoubleClick),t(r,\\\"dragover\\\",this._onDragOver),t(r,\\\"dragenter\\\",this._onDragEnter),t(r,\\\"dragleave\\\",this._onDragLeave),t(r,\\\"drop\\\",this._onDrop),this.enablePointerEvents||t(r,\\\"touchstart\\\",this._onTouchStart,i),void 0!==P\\u0026\\u0026e in P\\u0026\\u0026(P[e](r,\\\"gesture\\\",this._onGesture),P[e](r,\\\"drag\\\",this._onDrag),P[e](r,\\\"orientation\\\",this._onOrientationChange),P[e](r,\\\"shake\\\",this._onShake),P[e](r,\\\"longpress\\\",this._onLongPress))},removeListeners:function(){this.addOrRemove(e,\\\"remove\\\");var t=this._getEventPrefix();e(T.document,t+\\\"up\\\",this._onMouseUp),e(T.document,\\\"touchend\\\",this._onTouchEnd,i),e(T.document,t+\\\"move\\\",this._onMouseMove,i),e(T.document,\\\"touchmove\\\",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,\\\"dragenter\\\"),this._onDragLeave=this._simpleEventHandler.bind(this,\\\"dragleave\\\"),this._onDrop=this._simpleEventHandler.bind(this,\\\"drop\\\"),this.eventsBound=!0)},_onGesture:function(t,e){this.__onTransformGesture\\u0026\\u0026this.__onTransformGesture(t,e)},_onDrag:function(t,e){this.__onDrag\\u0026\\u0026this.__onDrag(t,e)},_onMouseWheel:function(t){this.__onMouseWheel(t)},_onMouseOut:function(t){var e=this._hoveredTarget;this.fire(\\\"mouse:out\\\",{target:e,e:t}),this._hoveredTarget=null,e\\u0026\\u0026e.fire(\\\"mouseout\\\",{e:t});var i=this;this._hoveredTargets.forEach((function(r){i.fire(\\\"mouse:out\\\",{target:e,e:t}),r\\u0026\\u0026e.fire(\\\"mouseout\\\",{e:t})})),this._hoveredTargets=[],this._iTextInstances\\u0026\\u0026this._iTextInstances.forEach((function(t){t.isEditing\\u0026\\u0026t.hiddenTextarea.focus()}))},_onMouseEnter:function(t){this._currentTransform||this.findTarget(t)||(this.fire(\\\"mouse:over\\\",{target:null,e:t}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(t,e){this.__onOrientationChange\\u0026\\u0026this.__onOrientationChange(t,e)},_onShake:function(t,e){this.__onShake\\u0026\\u0026this.__onShake(t,e)},_onLongPress:function(t,e){this.__onLongPress\\u0026\\u0026this.__onLongPress(t,e)},_onDragOver:function(t){t.preventDefault();var e=this._simpleEventHandler(\\\"dragover\\\",t);this._fireEnterLeaveEvents(e,t)},_onContextMenu:function(t){return this.stopContextMenu\\u0026\\u0026(t.stopPropagation(),t.preventDefault()),!1},_onDoubleClick:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\"dblclick\\\"),this._resetTransformEventData(t)},getPointerId:function(t){var e=t.changedTouches;return e?e[0]\\u0026\\u0026e[0].identifier:this.enablePointerEvents?t.pointerId:-1},_isMainEvent:function(t){return!0===t.isPrimary||!1!==t.isPrimary\\u0026\\u0026(\\\"touchend\\\"===t.type\\u0026\\u00260===t.touches.length||(!t.changedTouches||t.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(r){r.preventDefault(),null===this.mainTouchId\\u0026\\u0026(this.mainTouchId=this.getPointerId(r)),this.__onMouseDown(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();t(T.document,\\\"touchend\\\",this._onTouchEnd,i),t(T.document,\\\"touchmove\\\",this._onMouseMove,i),e(n,o+\\\"down\\\",this._onMouseDown)},_onMouseDown:function(r){this.__onMouseDown(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();e(n,o+\\\"move\\\",this._onMouseMove,i),t(T.document,o+\\\"up\\\",this._onMouseUp),t(T.document,o+\\\"move\\\",this._onMouseMove,i)},_onTouchEnd:function(r){if(!(r.touches.length\\u003e0)){this.__onMouseUp(r),this._resetTransformEventData(),this.mainTouchId=null;var n=this._getEventPrefix();e(T.document,\\\"touchend\\\",this._onTouchEnd,i),e(T.document,\\\"touchmove\\\",this._onMouseMove,i);var o=this;this._willAddMouseDown\\u0026\\u0026clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){t(o.upperCanvasEl,n+\\\"down\\\",o._onMouseDown),o._willAddMouseDown=0}),400)}},_onMouseUp:function(r){this.__onMouseUp(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();this._isMainEvent(r)\\u0026\\u0026(e(T.document,o+\\\"up\\\",this._onMouseUp),e(T.document,o+\\\"move\\\",this._onMouseMove,i),t(n,o+\\\"move\\\",this._onMouseMove,i))},_onMouseMove:function(t){!this.allowTouchScrolling\\u0026\\u0026t.preventDefault\\u0026\\u0026t.preventDefault(),this.__onMouseMove(t)},_onResize:function(){this.calcOffset()},_shouldRender:function(t){var e=this._activeObject;return!!(!!e!=!!t||e\\u0026\\u0026t\\u0026\\u0026e!==t)||(e\\u0026\\u0026e.isEditing,!1)},__onMouseUp:function(t){var e,i=this._currentTransform,n=this._groupSelector,o=!1,s=!n||0===n.left\\u0026\\u00260===n.top;if(this._cacheTransformEventData(t),e=this._target,this._handleEvent(t,\\\"up:before\\\"),r(t,3))this.fireRightClick\\u0026\\u0026this._handleEvent(t,\\\"up\\\",3,s);else{if(r(t,2))return this.fireMiddleClick\\u0026\\u0026this._handleEvent(t,\\\"up\\\",2,s),void this._resetTransformEventData();if(this.isDrawingMode\\u0026\\u0026this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(t);else if(this._isMainEvent(t)){if(i\\u0026\\u0026(this._finalizeCurrentTransform(t),o=i.actionPerformed),!s){var a=e===this._activeObject;this._maybeGroupObjects(t),o||(o=this._shouldRender(e)||!a\\u0026\\u0026e===this._activeObject)}if(e){if(e.selectable\\u0026\\u0026e!==this._activeObject\\u0026\\u0026\\\"up\\\"===e.activeOn)this.setActiveObject(e,t),o=!0;else{var h=e._findTargetCorner(this.getPointer(t,!0),T.util.isTouchEvent(t)),c=e.controls[h],l=c\\u0026\\u0026c.getMouseUpHandler(t,e,c);if(l){var u=this.getPointer(t);l(t,i,u.x,u.y)}}e.isMoving=!1}this._setCursorFromEvent(t,e),this._handleEvent(t,\\\"up\\\",1,s),this._groupSelector=null,this._currentTransform=null,e\\u0026\\u0026(e.__corner=0),o?this.requestRenderAll():s||this.renderTop()}}},_simpleEventHandler:function(t,e){var i=this.findTarget(e),r=this.targets,n={e:e,target:i,subTargets:r};if(this.fire(t,n),i\\u0026\\u0026i.fire(t,n),!r)return i;for(var o=0;o\\u003cr.length;o++)r[o].fire(t,n);return i},_handleEvent:function(t,e,i,r){var n=this._target,o=this.targets||[],s={e:t,target:n,subTargets:o,button:i||1,isClick:r||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};\\\"up\\\"===e\\u0026\\u0026(s.currentTarget=this.findTarget(t),s.currentSubTargets=this.targets),this.fire(\\\"mouse:\\\"+e,s),n\\u0026\\u0026n.fire(\\\"mouse\\\"+e,s);for(var a=0;a\\u003co.length;a++)o[a].fire(\\\"mouse\\\"+e,s)},_finalizeCurrentTransform:function(t){var e,i=this._currentTransform,r=i.target,n={e:t,target:r,transform:i,action:i.action};r._scaling\\u0026\\u0026(r._scaling=!1),r.setCoords(),(i.actionPerformed||this.stateful\\u0026\\u0026r.hasStateChanged())\\u0026\\u0026(i.actionPerformed\\u0026\\u0026(e=this._addEventOptions(n,i),this._fire(e,n)),this._fire(\\\"modified\\\",n))},_addEventOptions:function(t,e){var i,r;switch(e.action){case\\\"scaleX\\\":i=\\\"scaled\\\",r=\\\"x\\\";break;case\\\"scaleY\\\":i=\\\"scaled\\\",r=\\\"y\\\";break;case\\\"skewX\\\":i=\\\"skewed\\\",r=\\\"x\\\";break;case\\\"skewY\\\":i=\\\"skewed\\\",r=\\\"y\\\";break;case\\\"scale\\\":i=\\\"scaled\\\",r=\\\"equally\\\";break;case\\\"rotate\\\":i=\\\"rotated\\\";break;case\\\"drag\\\":i=\\\"moved\\\"}return t.by=r,i},_onMouseDownInDrawingMode:function(t){this._isCurrentlyDrawing=!0,this.getActiveObject()\\u0026\\u0026this.discardActiveObject(t).requestRenderAll();var e=this.getPointer(t);this.freeDrawingBrush.onMouseDown(e,{e:t,pointer:e}),this._handleEvent(t,\\\"down\\\")},_onMouseMoveInDrawingMode:function(t){if(this._isCurrentlyDrawing){var e=this.getPointer(t);this.freeDrawingBrush.onMouseMove(e,{e:t,pointer:e})}this.setCursor(this.freeDrawingCursor),this._handleEvent(t,\\\"move\\\")},_onMouseUpInDrawingMode:function(t){var e=this.getPointer(t);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:t,pointer:e}),this._handleEvent(t,\\\"up\\\")},__onMouseDown:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\"down:before\\\");var e=this._target;if(r(t,3))this.fireRightClick\\u0026\\u0026this._handleEvent(t,\\\"down\\\",3);else if(r(t,2))this.fireMiddleClick\\u0026\\u0026this._handleEvent(t,\\\"down\\\",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(t);else if(this._isMainEvent(t)\\u0026\\u0026!this._currentTransform){var i=this._pointer;this._previousPointer=i;var n=this._shouldRender(e),o=this._shouldGroup(t,e);if(this._shouldClearSelection(t,e)?this.discardActiveObject(t):o\\u0026\\u0026(this._handleGrouping(t,e),e=this._activeObject),!this.selection||e\\u0026\\u0026(e.selectable||e.isEditing||e===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),e){var s=e===this._activeObject;e.selectable\\u0026\\u0026\\\"down\\\"===e.activeOn\\u0026\\u0026this.setActiveObject(e,t);var a=e._findTargetCorner(this.getPointer(t,!0),T.util.isTouchEvent(t));if(e.__corner=a,e===this._activeObject\\u0026\\u0026(a||!o)){this._setupCurrentTransform(t,e,s);var h=e.controls[a],c=(i=this.getPointer(t),h\\u0026\\u0026h.getMouseDownHandler(t,e,h));c\\u0026\\u0026c(t,this._currentTransform,i.x,i.y)}}this._handleEvent(t,\\\"down\\\"),(n||o)\\u0026\\u0026this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(t){this._resetTransformEventData(),this._pointer=this.getPointer(t,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(t)||null},_beforeTransform:function(t){var e=this._currentTransform;this.stateful\\u0026\\u0026e.target.saveState(),this.fire(\\\"before:transform\\\",{e:t,transform:e})},__onMouseMove:function(t){var e,i;if(this._handleEvent(t,\\\"move:before\\\"),this._cacheTransformEventData(t),this.isDrawingMode)this._onMouseMoveInDrawingMode(t);else if(this._isMainEvent(t)){var r=this._groupSelector;r?(i=this._absolutePointer,r.left=i.x-r.ex,r.top=i.y-r.ey,this.renderTop()):this._currentTransform?this._transformObject(t):(e=this.findTarget(t)||null,this._setCursorFromEvent(t,e),this._fireOverOutEvents(e,t)),this._handleEvent(t,\\\"move\\\"),this._resetTransformEventData()}},_fireOverOutEvents:function(t,e){var i=this._hoveredTarget,r=this._hoveredTargets,n=this.targets,o=Math.max(r.length,n.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:i,evtOut:\\\"mouseout\\\",canvasEvtOut:\\\"mouse:out\\\",evtIn:\\\"mouseover\\\",canvasEvtIn:\\\"mouse:over\\\"});for(var s=0;s\\u003co;s++)this.fireSyntheticInOutEvents(n[s],e,{oldTarget:r[s],evtOut:\\\"mouseout\\\",evtIn:\\\"mouseover\\\"});this._hoveredTarget=t,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(t,e){var i=this._draggedoverTarget,r=this._hoveredTargets,n=this.targets,o=Math.max(r.length,n.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:i,evtOut:\\\"dragleave\\\",evtIn:\\\"dragenter\\\"});for(var s=0;s\\u003co;s++)this.fireSyntheticInOutEvents(n[s],e,{oldTarget:r[s],evtOut:\\\"dragleave\\\",evtIn:\\\"dragenter\\\"});this._draggedoverTarget=t},fireSyntheticInOutEvents:function(t,e,i){var r,n,o,s=i.oldTarget,a=s!==t,h=i.canvasEvtIn,c=i.canvasEvtOut;a\\u0026\\u0026(r={e:e,target:t,previousTarget:s},n={e:e,target:s,nextTarget:t}),o=t\\u0026\\u0026a,s\\u0026\\u0026a\\u0026\\u0026(c\\u0026\\u0026this.fire(c,n),s.fire(i.evtOut,n)),o\\u0026\\u0026(h\\u0026\\u0026this.fire(h,r),t.fire(i.evtIn,r))},__onMouseWheel:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\"wheel\\\"),this._resetTransformEventData()},_transformObject:function(t){var e=this.getPointer(t),i=this._currentTransform;i.reset=!1,i.shiftKey=t.shiftKey,i.altKey=t[this.centeredKey],this._performTransformAction(t,i,e),i.actionPerformed\\u0026\\u0026this.requestRenderAll()},_performTransformAction:function(t,e,i){var r=i.x,n=i.y,o=e.action,s=!1,a=e.actionHandler;a\\u0026\\u0026(s=a(t,e,r,n)),\\\"drag\\\"===o\\u0026\\u0026s\\u0026\\u0026(e.target.isMoving=!0,this.setCursor(e.target.moveCursor||this.moveCursor)),e.actionPerformed=e.actionPerformed||s},_fire:T.controlsUtils.fireEvent,_setCursorFromEvent:function(t,e){if(!e)return this.setCursor(this.defaultCursor),!1;var i=e.hoverCursor||this.hoverCursor,r=this._activeObject\\u0026\\u0026\\\"activeSelection\\\"===this._activeObject.type?this._activeObject:null,n=(!r||!r.contains(e))\\u0026\\u0026e._findTargetCorner(this.getPointer(t,!0));n?this.setCursor(this.getCornerCursor(n,e,t)):(e.subTargetCheck\\u0026\\u0026this.targets.concat().reverse().map((function(t){i=t.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(t,e,i){var r=e.controls[t];return r.cursorStyleHandler(i,r,e)}})}(),b=Math.min,x=Math.max,T.util.object.extend(T.Canvas.prototype,{_shouldGroup:function(t,e){var i=this._activeObject;return i\\u0026\\u0026this._isSelectionKeyPressed(t)\\u0026\\u0026e\\u0026\\u0026e.selectable\\u0026\\u0026this.selection\\u0026\\u0026(i!==e||\\\"activeSelection\\\"===i.type)\\u0026\\u0026!e.onSelect({e:t})},_handleGrouping:function(t,e){var i=this._activeObject;i.__corner||(e!==i||(e=this.findTarget(t,!0))\\u0026\\u0026e.selectable)\\u0026\\u0026(i\\u0026\\u0026\\\"activeSelection\\\"===i.type?this._updateActiveSelection(e,t):this._createActiveSelection(e,t))},_updateActiveSelection:function(t,e){var i=this._activeObject,r=i._objects.slice(0);i.contains(t)?(i.removeWithUpdate(t),this._hoveredTarget=t,this._hoveredTargets=this.targets.concat(),1===i.size()\\u0026\\u0026this._setActiveObject(i.item(0),e)):(i.addWithUpdate(t),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(r,e)},_createActiveSelection:function(t,e){var i=this.getActiveObjects(),r=this._createGroup(t);this._hoveredTarget=r,this._setActiveObject(r,e),this._fireSelectionEvents(i,e)},_createGroup:function(t){var e=this._objects,i=e.indexOf(this._activeObject)\\u003ce.indexOf(t)?[this._activeObject,t]:[t,this._activeObject];return this._activeObject.isEditing\\u0026\\u0026this._activeObject.exitEditing(),new T.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(t){var e,i=this._collectObjects(t);1===i.length?this.setActiveObject(i[0],t):i.length\\u003e1\\u0026\\u0026(e=new T.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(e,t))},_collectObjects:function(t){for(var e,i=[],r=this._groupSelector.ex,n=this._groupSelector.ey,o=r+this._groupSelector.left,s=n+this._groupSelector.top,a=new T.Point(b(r,o),b(n,s)),h=new T.Point(x(r,o),x(n,s)),c=!this.selectionFullyContained,l=r===o\\u0026\\u0026n===s,u=this._objects.length;u--\\u0026\\u0026!((e=this._objects[u])\\u0026\\u0026e.selectable\\u0026\\u0026e.visible\\u0026\\u0026(c\\u0026\\u0026e.intersectsWithRect(a,h,!0)||e.isContainedWithinRect(a,h,!0)||c\\u0026\\u0026e.containsPoint(a,null,!0)||c\\u0026\\u0026e.containsPoint(h,null,!0))\\u0026\\u0026(i.push(e),l)););return i.length\\u003e1\\u0026\\u0026(i=i.filter((function(e){return!e.onSelect({e:t})}))),i},_maybeGroupObjects:function(t){this.selection\\u0026\\u0026this._groupSelector\\u0026\\u0026this._groupSelectedObjects(t),this.setCursor(this.defaultCursor),this._groupSelector=null}}),T.util.object.extend(T.StaticCanvas.prototype,{toDataURL:function(t){t||(t={});var e=t.format||\\\"png\\\",i=t.quality||1,r=(t.multiplier||1)*(t.enableRetinaScaling?this.getRetinaScaling():1),n=this.toCanvasElement(r,t);return T.util.toDataURL(n,e,i)},toCanvasElement:function(t,e){t=t||1;var i=((e=e||{}).width||this.width)*t,r=(e.height||this.height)*t,n=this.getZoom(),o=this.width,s=this.height,a=n*t,h=this.viewportTransform,c=(h[4]-(e.left||0))*t,l=(h[5]-(e.top||0))*t,u=this.interactive,f=[a,0,0,a,c,l],d=this.enableRetinaScaling,g=T.util.createCanvasElement(),p=this.contextTop;return g.width=i,g.height=r,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=f,this.width=i,this.height=r,this.calcViewportBoundaries(),this.renderCanvas(g.getContext(\\\"2d\\\"),this._objects),this.viewportTransform=h,this.width=o,this.height=s,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=d,this.contextTop=p,g}}),T.util.object.extend(T.StaticCanvas.prototype,{loadFromJSON:function(t,e,i){if(t){var r=\\\"string\\\"==typeof t?JSON.parse(t):T.util.object.clone(t),n=this,o=r.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete r.clipPath,this._enlivenObjects(r.objects,(function(t){n.clear(),n._setBgOverlay(r,(function(){o?n._enlivenObjects([o],(function(i){n.clipPath=i[0],n.__setupCanvas.call(n,r,t,s,e)})):n.__setupCanvas.call(n,r,t,s,e)}))}),i),this}},__setupCanvas:function(t,e,i,r){var n=this;e.forEach((function(t,e){n.insertAt(t,e)})),this.renderOnAddRemove=i,delete t.objects,delete t.backgroundImage,delete t.overlayImage,delete t.background,delete t.overlay,this._setOptions(t),this.renderAll(),r\\u0026\\u0026r()},_setBgOverlay:function(t,e){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(t.backgroundImage||t.overlayImage||t.background||t.overlay){var r=function(){i.backgroundImage\\u0026\\u0026i.overlayImage\\u0026\\u0026i.backgroundColor\\u0026\\u0026i.overlayColor\\u0026\\u0026e\\u0026\\u0026e()};this.__setBgOverlay(\\\"backgroundImage\\\",t.backgroundImage,i,r),this.__setBgOverlay(\\\"overlayImage\\\",t.overlayImage,i,r),this.__setBgOverlay(\\\"backgroundColor\\\",t.background,i,r),this.__setBgOverlay(\\\"overlayColor\\\",t.overlay,i,r)}else e\\u0026\\u0026e()},__setBgOverlay:function(t,e,i,r){var n=this;if(!e)return i[t]=!0,void(r\\u0026\\u0026r());\\\"backgroundImage\\\"===t||\\\"overlayImage\\\"===t?T.util.enlivenObjects([e],(function(e){n[t]=e[0],i[t]=!0,r\\u0026\\u0026r()})):this[\\\"set\\\"+T.util.string.capitalize(t,!0)](e,(function(){i[t]=!0,r\\u0026\\u0026r()}))},_enlivenObjects:function(t,e,i){t\\u0026\\u00260!==t.length?T.util.enlivenObjects(t,(function(t){e\\u0026\\u0026e(t)}),null,i):e\\u0026\\u0026e([])},_toDataURL:function(t,e){this.clone((function(i){e(i.toDataURL(t))}))},_toDataURLWithMultiplier:function(t,e,i){this.clone((function(r){i(r.toDataURLWithMultiplier(t,e))}))},clone:function(t,e){var i=JSON.stringify(this.toJSON(e));this.cloneWithoutData((function(e){e.loadFromJSON(i,(function(){t\\u0026\\u0026t(e)}))}))},cloneWithoutData:function(t){var e=T.util.createCanvasElement();e.width=this.width,e.height=this.height;var i=new T.Canvas(e);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),t\\u0026\\u0026t(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):t\\u0026\\u0026t(i)}}),C=T.util.degreesToRadians,w=T.util.radiansToDegrees,T.util.object.extend(T.Canvas.prototype,{__onTransformGesture:function(t,e){if(!this.isDrawingMode\\u0026\\u0026t.touches\\u0026\\u00262===t.touches.length\\u0026\\u0026\\\"gesture\\\"===e.gesture){var i=this.findTarget(t);void 0!==i\\u0026\\u0026(this.__gesturesParams={e:t,self:e,target:i},this.__gesturesRenderer()),this.fire(\\\"touch:gesture\\\",{target:i,e:t,self:e})}},__gesturesParams:null,__gesturesRenderer:function(){if(null!==this.__gesturesParams\\u0026\\u0026null!==this._currentTransform){var t=this.__gesturesParams.self,e=this._currentTransform,i=this.__gesturesParams.e;e.action=\\\"scale\\\",e.originX=e.originY=\\\"center\\\",this._scaleObjectBy(t.scale,i),0!==t.rotation\\u0026\\u0026(e.action=\\\"rotate\\\",this._rotateObjectByAngle(t.rotation,i)),this.requestRenderAll(),e.action=\\\"drag\\\"}},__onDrag:function(t,e){this.fire(\\\"touch:drag\\\",{e:t,self:e})},__onOrientationChange:function(t,e){this.fire(\\\"touch:orientation\\\",{e:t,self:e})},__onShake:function(t,e){this.fire(\\\"touch:shake\\\",{e:t,self:e})},__onLongPress:function(t,e){this.fire(\\\"touch:longpress\\\",{e:t,self:e})},_scaleObjectBy:function(t,e){var i=this._currentTransform,r=i.target;return i.gestureScale=t,r._scaling=!0,T.controlsUtils.scalingEqually(e,i,0,0)},_rotateObjectByAngle:function(t,e){var i=this._currentTransform;i.target.get(\\\"lockRotation\\\")||(i.target.rotate(w(C(t)+i.theta)),this._fire(\\\"rotating\\\",{target:i.target,e:e,transform:i}))}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n=e.util.toFixed,o=e.util.string.capitalize,s=e.util.degreesToRadians,a=!e.isLikelyNode;e.Object||(e.Object=e.util.createClass(e.CommonMethods,{type:\\\"object\\\",originX:\\\"left\\\",originY:\\\"top\\\",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:\\\"rgb(178,204,255)\\\",borderDashArray:null,cornerColor:\\\"rgb(178,204,255)\\\",cornerStrokeColor:null,cornerStyle:\\\"rect\\\",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:\\\"rgb(0,0,0)\\\",fillRule:\\\"nonzero\\\",globalCompositeOperation:\\\"source-over\\\",backgroundColor:\\\"\\\",selectionBackgroundColor:\\\"\\\",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:\\\"butt\\\",strokeLineJoin:\\\"miter\\\",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:\\\"fill\\\",activeOn:\\\"down\\\",stateProperties:\\\"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform\\\".split(\\\" \\\"),cacheProperties:\\\"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath\\\".split(\\\" \\\"),colorProperties:\\\"fill stroke backgroundColor\\\".split(\\\" \\\"),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(t){t\\u0026\\u0026this.setOptions(t)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=e.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext(\\\"2d\\\"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(t){var i=e.perfLimitSizeTotal,r=t.width,n=t.height,o=e.maxCacheSideLimit,s=e.minCacheSideLimit;if(r\\u003c=o\\u0026\\u0026n\\u003c=o\\u0026\\u0026r*n\\u003c=i)return r\\u003cs\\u0026\\u0026(t.width=s),n\\u003cs\\u0026\\u0026(t.height=s),t;var a=r/n,h=e.util.limitDimsByArea(a,i),c=e.util.capValue,l=c(s,h.x,o),u=c(s,h.y,o);return r\\u003el\\u0026\\u0026(t.zoomX/=r/l,t.width=l,t.capped=!0),n\\u003eu\\u0026\\u0026(t.zoomY/=n/u,t.height=u,t.capped=!0),t},_getCacheCanvasDimensions:function(){var t=this.getTotalObjectScaling(),e=this._getTransformedDimensions(0,0),i=e.x*t.scaleX/this.scaleX,r=e.y*t.scaleY/this.scaleY;return{width:i+2,height:r+2,zoomX:t.scaleX,zoomY:t.scaleY,x:i,y:r}},_updateCacheCanvas:function(){var t=this.canvas;if(this.noScaleCache\\u0026\\u0026t\\u0026\\u0026t._currentTransform){var i=t._currentTransform.target,r=t._currentTransform.action;if(this===i\\u0026\\u0026r.slice\\u0026\\u0026\\\"scale\\\"===r.slice(0,5))return!1}var n,o,s=this._cacheCanvas,a=this._limitCacheSize(this._getCacheCanvasDimensions()),h=e.minCacheSideLimit,c=a.width,l=a.height,u=a.zoomX,f=a.zoomY,d=c!==this.cacheWidth||l!==this.cacheHeight,g=this.zoomX!==u||this.zoomY!==f,p=d||g,v=0,m=0,y=!1;if(d){var _=this._cacheCanvas.width,b=this._cacheCanvas.height,x=c\\u003e_||l\\u003eb;y=x||(c\\u003c.9*_||l\\u003c.9*b)\\u0026\\u0026_\\u003eh\\u0026\\u0026b\\u003eh,x\\u0026\\u0026!a.capped\\u0026\\u0026(c\\u003eh||l\\u003eh)\\u0026\\u0026(v=.1*c,m=.1*l)}return this instanceof e.Text\\u0026\\u0026this.path\\u0026\\u0026(p=!0,y=!0,v+=this.getHeightOfLine(0)*this.zoomX,m+=this.getHeightOfLine(0)*this.zoomY),!!p\\u0026\\u0026(y?(s.width=Math.ceil(c+v),s.height=Math.ceil(l+m)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,s.width,s.height)),n=a.x/2,o=a.y/2,this.cacheTranslationX=Math.round(s.width/2-n)+n,this.cacheTranslationY=Math.round(s.height/2-o)+o,this.cacheWidth=c,this.cacheHeight=l,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(u,f),this.zoomX=u,this.zoomY=f,!0)},setOptions:function(t){this._setOptions(t),this._initGradient(t.fill,\\\"fill\\\"),this._initGradient(t.stroke,\\\"stroke\\\"),this._initPattern(t.fill,\\\"fill\\\"),this._initPattern(t.stroke,\\\"stroke\\\")},transform:function(t){var e=this.group\\u0026\\u0026!this.group._transformDone||this.group\\u0026\\u0026this.canvas\\u0026\\u0026t===this.canvas.contextTop,i=this.calcTransformMatrix(!e);t.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(t){var i=e.Object.NUM_FRACTION_DIGITS,r={type:this.type,version:e.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill\\u0026\\u0026this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke\\u0026\\u0026this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow\\u0026\\u0026this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath\\u0026\\u0026!this.clipPath.excludeFromExport\\u0026\\u0026(r.clipPath=this.clipPath.toObject(t),r.clipPath.inverted=this.clipPath.inverted,r.clipPath.absolutePositioned=this.clipPath.absolutePositioned),e.util.populateWithProperties(this,r,t),this.includeDefaultValues||(r=this._removeDefaultValues(r)),r},toDatalessObject:function(t){return this.toObject(t)},_removeDefaultValues:function(t){var i=e.util.getKlass(t.type).prototype;return i.stateProperties.forEach((function(e){\\\"left\\\"!==e\\u0026\\u0026\\\"top\\\"!==e\\u0026\\u0026(t[e]===i[e]\\u0026\\u0026delete t[e],\\\"[object Array]\\\"===Object.prototype.toString.call(t[e])\\u0026\\u0026\\\"[object Array]\\\"===Object.prototype.toString.call(i[e])\\u0026\\u00260===t[e].length\\u0026\\u00260===i[e].length\\u0026\\u0026delete t[e])})),t},toString:function(){return\\\"#\\u003cfabric.\\\"+o(this.type)+\\\"\\u003e\\\"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var t=e.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(t.scaleX),scaleY:Math.abs(t.scaleY)}},getTotalObjectScaling:function(){var t=this.getObjectScaling(),e=t.scaleX,i=t.scaleY;if(this.canvas){var r=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();e*=r*n,i*=r*n}return{scaleX:e,scaleY:i}},getObjectOpacity:function(){var t=this.opacity;return this.group\\u0026\\u0026(t*=this.group.getObjectOpacity()),t},_set:function(t,i){var r=\\\"scaleX\\\"===t||\\\"scaleY\\\"===t,n=this[t]!==i,o=!1;return r\\u0026\\u0026(i=this._constrainScale(i)),\\\"scaleX\\\"===t\\u0026\\u0026i\\u003c0?(this.flipX=!this.flipX,i*=-1):\\\"scaleY\\\"===t\\u0026\\u0026i\\u003c0?(this.flipY=!this.flipY,i*=-1):\\\"shadow\\\"!==t||!i||i instanceof e.Shadow?\\\"dirty\\\"===t\\u0026\\u0026this.group\\u0026\\u0026this.group.set(\\\"dirty\\\",i):i=new e.Shadow(i),this[t]=i,n\\u0026\\u0026(o=this.group\\u0026\\u0026this.group.isOnACache(),this.cacheProperties.indexOf(t)\\u003e-1?(this.dirty=!0,o\\u0026\\u0026this.group.set(\\\"dirty\\\",!0)):o\\u0026\\u0026this.stateProperties.indexOf(t)\\u003e-1\\u0026\\u0026this.group.set(\\\"dirty\\\",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas\\u0026\\u0026this.canvas.viewportTransform?this.canvas.viewportTransform:e.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width\\u0026\\u0026!this.height\\u0026\\u00260===this.strokeWidth||!this.visible},render:function(t){this.isNotVisible()||this.canvas\\u0026\\u0026this.canvas.skipOffscreen\\u0026\\u0026!this.group\\u0026\\u0026!this.isOnScreen()||(t.save(),this._setupCompositeOperation(t),this.drawSelectionBackground(t),this.transform(t),this._setOpacity(t),this._setShadow(t,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(t)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(t),this.objectCaching\\u0026\\u0026this.statefullCache\\u0026\\u0026this.saveState({propertySet:\\\"cacheProperties\\\"})),t.restore())},renderCache:function(t){t=t||{},this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()\\u0026\\u0026(this.statefullCache\\u0026\\u0026this.saveState({propertySet:\\\"cacheProperties\\\"}),this.drawObject(this._cacheContext,t.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke\\u0026\\u0026\\\"transparent\\\"!==this.stroke\\u0026\\u00260!==this.strokeWidth},hasFill:function(){return this.fill\\u0026\\u0026\\\"transparent\\\"!==this.fill},needsItsOwnCache:function(){return!(\\\"stroke\\\"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||\\\"object\\\"!=typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching\\u0026\\u0026(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow\\u0026\\u0026(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(t){var i=this.clipPath;if(t.save(),i.inverted?t.globalCompositeOperation=\\\"destination-out\\\":t.globalCompositeOperation=\\\"destination-in\\\",i.absolutePositioned){var r=e.util.invertTransform(this.calcTransformMatrix());t.transform(r[0],r[1],r[2],r[3],r[4],r[5])}i.transform(t),t.scale(1/i.zoomX,1/i.zoomY),t.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),t.restore()},drawObject:function(t,e){var i=this.fill,r=this.stroke;e?(this.fill=\\\"black\\\",this.stroke=\\\"\\\",this._setClippingProperties(t)):this._renderBackground(t),this._render(t),this._drawClipPath(t),this.fill=i,this.stroke=r},_drawClipPath:function(t){var e=this.clipPath;e\\u0026\\u0026(e.canvas=this.canvas,e.shouldCache(),e._transformDone=!0,e.renderCache({forClipping:!0}),this.drawClipPathOnCache(t))},drawCacheOnCanvas:function(t){t.scale(1/this.zoomX,1/this.zoomY),t.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(t){if(this.isNotVisible())return!1;if(this._cacheCanvas\\u0026\\u0026!t\\u0026\\u0026this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath\\u0026\\u0026this.clipPath.absolutePositioned||this.statefullCache\\u0026\\u0026this.hasStateChanged(\\\"cacheProperties\\\")){if(this._cacheCanvas\\u0026\\u0026!t){var e=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-e/2,-i/2,e,i)}return!0}return!1},_renderBackground:function(t){if(this.backgroundColor){var e=this._getNonTransformedDimensions();t.fillStyle=this.backgroundColor,t.fillRect(-e.x/2,-e.y/2,e.x,e.y),this._removeShadow(t)}},_setOpacity:function(t){this.group\\u0026\\u0026!this.group._transformDone?t.globalAlpha=this.getObjectOpacity():t.globalAlpha*=this.opacity},_setStrokeStyles:function(t,e){var i=e.stroke;i\\u0026\\u0026(t.lineWidth=e.strokeWidth,t.lineCap=e.strokeLineCap,t.lineDashOffset=e.strokeDashOffset,t.lineJoin=e.strokeLineJoin,t.miterLimit=e.strokeMiterLimit,i.toLive?\\\"percentage\\\"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(t,i):(t.strokeStyle=i.toLive(t,this),this._applyPatternGradientTransform(t,i)):t.strokeStyle=e.stroke)},_setFillStyles:function(t,e){var i=e.fill;i\\u0026\\u0026(i.toLive?(t.fillStyle=i.toLive(t,this),this._applyPatternGradientTransform(t,e.fill)):t.fillStyle=i)},_setClippingProperties:function(t){t.globalAlpha=1,t.strokeStyle=\\\"transparent\\\",t.fillStyle=\\\"#000000\\\"},_setLineDash:function(t,e){e\\u0026\\u00260!==e.length\\u0026\\u0026(1\\u0026e.length\\u0026\\u0026e.push.apply(e,e),t.setLineDash(e))},_renderControls:function(t,i){var r,n,o,a=this.getViewportTransform(),h=this.calcTransformMatrix();n=void 0!==(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,o=void 0!==i.hasControls?i.hasControls:this.hasControls,h=e.util.multiplyTransformMatrices(a,h),r=e.util.qrDecompose(h),t.save(),t.translate(r.translateX,r.translateY),t.lineWidth=1*this.borderScaleFactor,this.group||(t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),t.rotate(s(r.angle)),i.forActiveSelection||this.group?n\\u0026\\u0026this.drawBordersInGroup(t,r,i):n\\u0026\\u0026this.drawBorders(t,i),o\\u0026\\u0026this.drawControls(t,i),t.restore()},_setShadow:function(t){if(this.shadow){var i,r=this.shadow,n=this.canvas,o=n\\u0026\\u0026n.viewportTransform[0]||1,s=n\\u0026\\u0026n.viewportTransform[3]||1;i=r.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n\\u0026\\u0026n._isRetinaScaling()\\u0026\\u0026(o*=e.devicePixelRatio,s*=e.devicePixelRatio),t.shadowColor=r.color,t.shadowBlur=r.blur*e.browserShadowBlurConstant*(o+s)*(i.scaleX+i.scaleY)/4,t.shadowOffsetX=r.offsetX*o*i.scaleX,t.shadowOffsetY=r.offsetY*s*i.scaleY}},_removeShadow:function(t){this.shadow\\u0026\\u0026(t.shadowColor=\\\"\\\",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0)},_applyPatternGradientTransform:function(t,e){if(!e||!e.toLive)return{offsetX:0,offsetY:0};var i=e.gradientTransform||e.patternTransform,r=-this.width/2+e.offsetX||0,n=-this.height/2+e.offsetY||0;return\\\"percentage\\\"===e.gradientUnits?t.transform(this.width,0,0,this.height,r,n):t.transform(1,0,0,1,r,n),i\\u0026\\u0026t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:r,offsetY:n}},_renderPaintInOrder:function(t){\\\"stroke\\\"===this.paintFirst?(this._renderStroke(t),this._renderFill(t)):(this._renderFill(t),this._renderStroke(t))},_render:function(){},_renderFill:function(t){this.fill\\u0026\\u0026(t.save(),this._setFillStyles(t,this),\\\"evenodd\\\"===this.fillRule?t.fill(\\\"evenodd\\\"):t.fill(),t.restore())},_renderStroke:function(t){if(this.stroke\\u0026\\u00260!==this.strokeWidth){if(this.shadow\\u0026\\u0026!this.shadow.affectStroke\\u0026\\u0026this._removeShadow(t),t.save(),this.strokeUniform\\u0026\\u0026this.group){var e=this.getObjectScaling();t.scale(1/e.scaleX,1/e.scaleY)}else this.strokeUniform\\u0026\\u0026t.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(t,this.strokeDashArray),this._setStrokeStyles(t,this),t.stroke(),t.restore()}},_applyPatternForTransformedGradient:function(t,i){var r,n=this._limitCacheSize(this._getCacheCanvasDimensions()),o=e.util.createCanvasElement(),s=this.canvas.getRetinaScaling(),a=n.x/this.scaleX/s,h=n.y/this.scaleY/s;o.width=a,o.height=h,(r=o.getContext(\\\"2d\\\")).beginPath(),r.moveTo(0,0),r.lineTo(a,0),r.lineTo(a,h),r.lineTo(0,h),r.closePath(),r.translate(a/2,h/2),r.scale(n.zoomX/this.scaleX/s,n.zoomY/this.scaleY/s),this._applyPatternGradientTransform(r,i),r.fillStyle=i.toLive(t),r.fill(),t.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),t.scale(s*this.scaleX/n.zoomX,s*this.scaleY/n.zoomY),t.strokeStyle=r.createPattern(o,\\\"no-repeat\\\")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var t=e.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set(\\\"scaleX\\\",t.scaleX),this.set(\\\"scaleY\\\",t.scaleY),this.angle=t.angle,this.skewX=t.skewX,this.skewY=0}},_removeTransformMatrix:function(t){var i=this._findCenterFromElement();this.transformMatrix\\u0026\\u0026(this._assignTransformMatrixProps(),i=e.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,t\\u0026\\u0026(this.scaleX*=t.scaleX,this.scaleY*=t.scaleY,this.cropX=t.cropX,this.cropY=t.cropY,i.x+=t.offsetLeft,i.y+=t.offsetTop,this.width=t.width,this.height=t.height),this.setPositionByOrigin(i,\\\"center\\\",\\\"center\\\")},clone:function(t,i){var r=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(r,t):e.Object._fromObject(\\\"Object\\\",r,t)},cloneAsImage:function(t,i){var r=this.toCanvasElement(i);return t\\u0026\\u0026t(new e.Image(r)),this},toCanvasElement:function(t){t||(t={});var i=e.util,r=i.saveObjectTransform(this),n=this.group,o=this.shadow,s=Math.abs,a=(t.multiplier||1)*(t.enableRetinaScaling?e.devicePixelRatio:1);delete this.group,t.withoutTransform\\u0026\\u0026i.resetObjectTransform(this),t.withoutShadow\\u0026\\u0026(this.shadow=null);var h,c,l,u,f=e.util.createCanvasElement(),d=this.getBoundingRect(!0,!0),g=this.shadow,p={x:0,y:0};g\\u0026\\u0026(c=g.blur,h=g.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),p.x=2*Math.round(s(g.offsetX)+c)*s(h.scaleX),p.y=2*Math.round(s(g.offsetY)+c)*s(h.scaleY)),l=d.width+p.x,u=d.height+p.y,f.width=Math.ceil(l),f.height=Math.ceil(u);var v=new e.StaticCanvas(f,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});\\\"jpeg\\\"===t.format\\u0026\\u0026(v.backgroundColor=\\\"#fff\\\"),this.setPositionByOrigin(new e.Point(v.width/2,v.height/2),\\\"center\\\",\\\"center\\\");var m=this.canvas;v.add(this);var y=v.toCanvasElement(a||1,t);return this.shadow=o,this.set(\\\"canvas\\\",m),n\\u0026\\u0026(this.group=n),this.set(r).setCoords(),v._objects=[],v.dispose(),v=null,y},toDataURL:function(t){return t||(t={}),e.util.toDataURL(this.toCanvasElement(t),t.format||\\\"png\\\",t.quality||1)},isType:function(t){return this.type===t},complexity:function(){return 1},toJSON:function(t){return this.toObject(t)},rotate:function(t){var e=(\\\"center\\\"!==this.originX||\\\"center\\\"!==this.originY)\\u0026\\u0026this.centeredRotation;return e\\u0026\\u0026this._setOriginToCenter(),this.set(\\\"angle\\\",t),e\\u0026\\u0026this._resetOrigin(),this},centerH:function(){return this.canvas\\u0026\\u0026this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas\\u0026\\u0026this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas\\u0026\\u0026this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas\\u0026\\u0026this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas\\u0026\\u0026this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas\\u0026\\u0026this.canvas.viewportCenterObject(this),this},getLocalPointer:function(t,i){i=i||this.canvas.getPointer(t);var r=new e.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle\\u0026\\u0026(r=e.util.rotatePoint(r,n,s(-this.angle))),{x:r.x-n.x,y:r.y-n.y}},_setupCompositeOperation:function(t){this.globalCompositeOperation\\u0026\\u0026(t.globalCompositeOperation=this.globalCompositeOperation)}}),e.util.createAccessors\\u0026\\u0026e.util.createAccessors(e.Object),i(e.Object.prototype,e.Observable),e.Object.NUM_FRACTION_DIGITS=2,e.Object._fromObject=function(t,i,n,o){var s=e[t];i=r(i,!0),e.util.enlivenPatterns([i.fill,i.stroke],(function(t){void 0!==t[0]\\u0026\\u0026(i.fill=t[0]),void 0!==t[1]\\u0026\\u0026(i.stroke=t[1]),e.util.enlivenObjects([i.clipPath],(function(t){i.clipPath=t[0];var e=o?new s(i[o],i):new s(i);n\\u0026\\u0026n(e)}))}))},e.Object.__uid=0)}(t),function(){var t=T.util.degreesToRadians,e={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};T.util.object.extend(T.Object.prototype,{translateToGivenOrigin:function(t,r,n,o,s){var a,h,c,l=t.x,u=t.y;return\\\"string\\\"==typeof r?r=e[r]:r-=.5,\\\"string\\\"==typeof o?o=e[o]:o-=.5,\\\"string\\\"==typeof n?n=i[n]:n-=.5,\\\"string\\\"==typeof s?s=i[s]:s-=.5,h=s-n,((a=o-r)||h)\\u0026\\u0026(c=this._getTransformedDimensions(),l=t.x+a*c.x,u=t.y+h*c.y),new T.Point(l,u)},translateToCenterPoint:function(e,i,r){var n=this.translateToGivenOrigin(e,i,r,\\\"center\\\",\\\"center\\\");return this.angle?T.util.rotatePoint(n,e,t(this.angle)):n},translateToOriginPoint:function(e,i,r){var n=this.translateToGivenOrigin(e,\\\"center\\\",\\\"center\\\",i,r);return this.angle?T.util.rotatePoint(n,e,t(this.angle)):n},getCenterPoint:function(){var t=new T.Point(this.left,this.top);return this.translateToCenterPoint(t,this.originX,this.originY)},getPointByOrigin:function(t,e){var i=this.getCenterPoint();return this.translateToOriginPoint(i,t,e)},toLocalPoint:function(e,i,r){var n,o,s=this.getCenterPoint();return n=void 0!==i\\u0026\\u0026void 0!==r?this.translateToGivenOrigin(s,\\\"center\\\",\\\"center\\\",i,r):new T.Point(this.left,this.top),o=new T.Point(e.x,e.y),this.angle\\u0026\\u0026(o=T.util.rotatePoint(o,s,-t(this.angle))),o.subtractEquals(n)},setPositionByOrigin:function(t,e,i){var r=this.translateToCenterPoint(t,e,i),n=this.translateToOriginPoint(r,this.originX,this.originY);this.set(\\\"left\\\",n.x),this.set(\\\"top\\\",n.y)},adjustPosition:function(i){var r,n,o=t(this.angle),s=this.getScaledWidth(),a=T.util.cos(o)*s,h=T.util.sin(o)*s;r=\\\"string\\\"==typeof this.originX?e[this.originX]:this.originX-.5,n=\\\"string\\\"==typeof i?e[i]:i-.5,this.left+=a*(n-r),this.top+=h*(n-r),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var t=this.getCenterPoint();this.originX=\\\"center\\\",this.originY=\\\"center\\\",this.left=t.x,this.top=t.y},_resetOrigin:function(){var t=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=t.x,this.top=t.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),\\\"left\\\",\\\"top\\\")}})}(),function(){var t=T.util,e=t.degreesToRadians,i=t.multiplyTransformMatrices,r=t.transformPoint;t.object.extend(T.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(t,e){return e?t?this.calcACoords():this.calcLineCoords():(this.aCoords\\u0026\\u0026this.lineCoords||this.setCoords(!0),t?this.aCoords:this.lineCoords)},getCoords:function(t,e){return i=this._getCoords(t,e),[new T.Point(i.tl.x,i.tl.y),new T.Point(i.tr.x,i.tr.y),new T.Point(i.br.x,i.br.y),new T.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(t,e,i,r){var n=this.getCoords(i,r);return\\\"Intersection\\\"===T.Intersection.intersectPolygonRectangle(n,t,e).status},intersectsWithObject:function(t,e,i){return\\\"Intersection\\\"===T.Intersection.intersectPolygonPolygon(this.getCoords(e,i),t.getCoords(e,i)).status||t.isContainedWithinObject(this,e,i)||this.isContainedWithinObject(t,e,i)},isContainedWithinObject:function(t,e,i){for(var r=this.getCoords(e,i),n=e?t.aCoords:t.lineCoords,o=0,s=t._getImageLines(n);o\\u003c4;o++)if(!t.containsPoint(r[o],s))return!1;return!0},isContainedWithinRect:function(t,e,i,r){var n=this.getBoundingRect(i,r);return n.left\\u003e=t.x\\u0026\\u0026n.left+n.width\\u003c=e.x\\u0026\\u0026n.top\\u003e=t.y\\u0026\\u0026n.top+n.height\\u003c=e.y},containsPoint:function(t,e,i,r){var n=this._getCoords(i,r),o=(e=e||this._getImageLines(n),this._findCrossPoints(t,e));return 0!==o\\u0026\\u0026o%2==1},isOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,t).some((function(t){return t.x\\u003c=i.x\\u0026\\u0026t.x\\u003e=e.x\\u0026\\u0026t.y\\u003c=i.y\\u0026\\u0026t.y\\u003e=e.y}))||(!!this.intersectsWithRect(e,i,!0,t)||this._containsCenterOfCanvas(e,i,t))},_containsCenterOfCanvas:function(t,e,i){var r={x:(t.x+e.x)/2,y:(t.y+e.y)/2};return!!this.containsPoint(r,null,!0,i)},isPartiallyOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(e,i,!0,t)||this.getCoords(!0,t).every((function(t){return(t.x\\u003e=i.x||t.x\\u003c=e.x)\\u0026\\u0026(t.y\\u003e=i.y||t.y\\u003c=e.y)}))\\u0026\\u0026this._containsCenterOfCanvas(e,i,t)},_getImageLines:function(t){return{topline:{o:t.tl,d:t.tr},rightline:{o:t.tr,d:t.br},bottomline:{o:t.br,d:t.bl},leftline:{o:t.bl,d:t.tl}}},_findCrossPoints:function(t,e){var i,r,n,o=0;for(var s in e)if(!((n=e[s]).o.y\\u003ct.y\\u0026\\u0026n.d.y\\u003ct.y||n.o.y\\u003e=t.y\\u0026\\u0026n.d.y\\u003e=t.y||(n.o.x===n.d.x\\u0026\\u0026n.o.x\\u003e=t.x?r=n.o.x:(0,i=(n.d.y-n.o.y)/(n.d.x-n.o.x),r=-(t.y-0*t.x-(n.o.y-i*n.o.x))/(0-i)),r\\u003e=t.x\\u0026\\u0026(o+=1),2!==o)))break;return o},getBoundingRect:function(e,i){var r=this.getCoords(e,i);return t.makeBoundingBoxFromPoints(r)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(t){return Math.abs(t)\\u003cthis.minScaleLimit?t\\u003c0?-this.minScaleLimit:this.minScaleLimit:0===t?1e-4:t},scale:function(t){return this._set(\\\"scaleX\\\",t),this._set(\\\"scaleY\\\",t),this.setCoords()},scaleToWidth:function(t,e){var i=this.getBoundingRect(e).width/this.getScaledWidth();return this.scale(t/this.width/i)},scaleToHeight:function(t,e){var i=this.getBoundingRect(e).height/this.getScaledHeight();return this.scale(t/this.height/i)},calcCoords:function(t){return t?this.calcACoords():this.calcOCoords()},calcLineCoords:function(){var i=this.getViewportTransform(),n=this.padding,o=e(this.angle),s=t.cos(o)*n,a=t.sin(o)*n,h=s+a,c=s-a,l=this.calcACoords(),u={tl:r(l.tl,i),tr:r(l.tr,i),bl:r(l.bl,i),br:r(l.br,i)};return n\\u0026\\u0026(u.tl.x-=c,u.tl.y-=h,u.tr.x+=h,u.tr.y-=c,u.bl.x-=h,u.bl.y+=c,u.br.x+=c,u.br.y+=h),u},calcOCoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),r=this.getViewportTransform(),n=i(r,e),o=i(n,t),s=(o=i(o,[1/r[0],0,0,1/r[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(t,e,i){a[e]=t.positionHandler(s,o,i)})),a},calcACoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),n=i(e,t),o=this._getTransformedDimensions(),s=o.x/2,a=o.y/2;return{tl:r({x:-s,y:-a},n),tr:r({x:s,y:-a},n),bl:r({x:-s,y:a},n),br:r({x:s,y:a},n)}},setCoords:function(t){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),t||(this.oCoords=this.calcOCoords(),this._setCornerCoords\\u0026\\u0026this._setCornerCoords()),this},_calcRotateMatrix:function(){return t.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var t=this.getCenterPoint();return[1,0,0,1,t.x,t.y]},transformMatrixKey:function(t){var e=\\\"_\\\",i=\\\"\\\";return!t\\u0026\\u0026this.group\\u0026\\u0026(i=this.group.transformMatrixKey(t)+e),i+this.top+e+this.left+e+this.scaleX+e+this.scaleY+e+this.skewX+e+this.skewY+e+this.angle+e+this.originX+e+this.originY+e+this.width+e+this.height+e+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(t){var e=this.calcOwnMatrix();if(t||!this.group)return e;var r=this.transformMatrixKey(t),n=this.matrixCache||(this.matrixCache={});return n.key===r?n.value:(this.group\\u0026\\u0026(e=i(this.group.calcTransformMatrix(!1),e)),n.key=r,n.value=e,e)},calcOwnMatrix:function(){var e=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===e)return i.value;var r=this._calcTranslateMatrix(),n={angle:this.angle,translateX:r[4],translateY:r[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=e,i.value=t.composeMatrix(n),i.value},_calcDimensionsTransformMatrix:function(e,i,r){return t.calcDimensionsMatrix({skewX:e,skewY:i,scaleX:this.scaleX*(r\\u0026\\u0026this.flipX?-1:1),scaleY:this.scaleY*(r\\u0026\\u0026this.flipY?-1:1)})},_getNonTransformedDimensions:function(){var t=this.strokeWidth;return{x:this.width+t,y:this.height+t}},_getTransformedDimensions:function(e,i){void 0===e\\u0026\\u0026(e=this.skewX),void 0===i\\u0026\\u0026(i=this.skewY);var r,n,o,s=0===e\\u0026\\u00260===i;if(this.strokeUniform?(n=this.width,o=this.height):(n=(r=this._getNonTransformedDimensions()).x,o=r.y),s)return this._finalizeDimensions(n*this.scaleX,o*this.scaleY);var a=t.sizeAfterTransform(n,o,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:e,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(t,e){return this.strokeUniform?{x:t+this.strokeWidth,y:e+this.strokeWidth}:{x:t,y:e}},_calculateCurrentDimensions:function(){var t=this.getViewportTransform(),e=this._getTransformedDimensions();return r(e,t,!0).scalarAdd(2*this.padding)}})}(),T.util.object.extend(T.Object.prototype,{sendToBack:function(){return this.group?T.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas\\u0026\\u0026this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?T.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas\\u0026\\u0026this.canvas.bringToFront(this),this},sendBackwards:function(t){return this.group?T.StaticCanvas.prototype.sendBackwards.call(this.group,this,t):this.canvas\\u0026\\u0026this.canvas.sendBackwards(this,t),this},bringForward:function(t){return this.group?T.StaticCanvas.prototype.bringForward.call(this.group,this,t):this.canvas\\u0026\\u0026this.canvas.bringForward(this,t),this},moveTo:function(t){return this.group\\u0026\\u0026\\\"activeSelection\\\"!==this.group.type?T.StaticCanvas.prototype.moveTo.call(this.group,this,t):this.canvas\\u0026\\u0026this.canvas.moveTo(this,t),this}}),function(){function t(t,e){if(e){if(e.toLive)return t+\\\": url(#SVGID_\\\"+e.id+\\\"); \\\";var i=new T.Color(e),r=t+\\\": \\\"+i.toRgb()+\\\"; \\\",n=i.getAlpha();return 1!==n\\u0026\\u0026(r+=t+\\\"-opacity: \\\"+n.toString()+\\\"; \\\"),r}return t+\\\": none; \\\"}var e=T.util.toFixed;T.util.object.extend(T.Object.prototype,{getSvgStyles:function(e){var i=this.fillRule?this.fillRule:\\\"nonzero\\\",r=this.strokeWidth?this.strokeWidth:\\\"0\\\",n=this.strokeDashArray?this.strokeDashArray.join(\\\" \\\"):\\\"none\\\",o=this.strokeDashOffset?this.strokeDashOffset:\\\"0\\\",s=this.strokeLineCap?this.strokeLineCap:\\\"butt\\\",a=this.strokeLineJoin?this.strokeLineJoin:\\\"miter\\\",h=this.strokeMiterLimit?this.strokeMiterLimit:\\\"4\\\",c=void 0!==this.opacity?this.opacity:\\\"1\\\",l=this.visible?\\\"\\\":\\\" visibility: hidden;\\\",u=e?\\\"\\\":this.getSvgFilter(),f=t(\\\"fill\\\",this.fill);return[t(\\\"stroke\\\",this.stroke),\\\"stroke-width: \\\",r,\\\"; \\\",\\\"stroke-dasharray: \\\",n,\\\"; \\\",\\\"stroke-linecap: \\\",s,\\\"; \\\",\\\"stroke-dashoffset: \\\",o,\\\"; \\\",\\\"stroke-linejoin: \\\",a,\\\"; \\\",\\\"stroke-miterlimit: \\\",h,\\\"; \\\",f,\\\"fill-rule: \\\",i,\\\"; \\\",\\\"opacity: \\\",c,\\\";\\\",u,l].join(\\\"\\\")},getSvgSpanStyles:function(e,i){var r=\\\"; \\\",n=e.fontFamily?\\\"font-family: \\\"+(-1===e.fontFamily.indexOf(\\\"'\\\")\\u0026\\u0026-1===e.fontFamily.indexOf('\\\"')?\\\"'\\\"+e.fontFamily+\\\"'\\\":e.fontFamily)+r:\\\"\\\",o=e.strokeWidth?\\\"stroke-width: \\\"+e.strokeWidth+r:\\\"\\\",s=(n=n,e.fontSize?\\\"font-size: \\\"+e.fontSize+\\\"px\\\"+r:\\\"\\\"),a=e.fontStyle?\\\"font-style: \\\"+e.fontStyle+r:\\\"\\\",h=e.fontWeight?\\\"font-weight: \\\"+e.fontWeight+r:\\\"\\\",c=e.fill?t(\\\"fill\\\",e.fill):\\\"\\\",l=e.stroke?t(\\\"stroke\\\",e.stroke):\\\"\\\",u=this.getSvgTextDecoration(e);return u\\u0026\\u0026(u=\\\"text-decoration: \\\"+u+r),[l,o,n,s,a,h,u,c,e.deltaY?\\\"baseline-shift: \\\"+-e.deltaY+\\\"; \\\":\\\"\\\",i?\\\"white-space: pre; \\\":\\\"\\\"].join(\\\"\\\")},getSvgTextDecoration:function(t){return[\\\"overline\\\",\\\"underline\\\",\\\"line-through\\\"].filter((function(e){return t[e.replace(\\\"-\\\",\\\"\\\")]})).join(\\\" \\\")},getSvgFilter:function(){return this.shadow?\\\"filter: url(#SVGID_\\\"+this.shadow.id+\\\");\\\":\\\"\\\"},getSvgCommons:function(){return[this.id?'id=\\\"'+this.id+'\\\" ':\\\"\\\",this.clipPath?'clip-path=\\\"url(#'+this.clipPath.clipPathId+')\\\" ':\\\"\\\"].join(\\\"\\\")},getSvgTransform:function(t,e){var i=t?this.calcTransformMatrix():this.calcOwnMatrix();return'transform=\\\"'+T.util.matrixToSVG(i)+(e||\\\"\\\")+'\\\" '},_setSVGBg:function(t){if(this.backgroundColor){var i=T.Object.NUM_FRACTION_DIGITS;t.push(\\\"\\\\t\\\\t\\u003crect \\\",this._getFillAttributes(this.backgroundColor),' x=\\\"',e(-this.width/2,i),'\\\" y=\\\"',e(-this.height/2,i),'\\\" width=\\\"',e(this.width,i),'\\\" height=\\\"',e(this.height,i),'\\\"\\u003e\\u003c/rect\\u003e\\\\n')}},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(t),{reviver:t})},toClipPathSVG:function(t){return\\\"\\\\t\\\"+this._createBaseClipPathSVGMarkup(this._toSVG(t),{reviver:t})},_createBaseClipPathSVGMarkup:function(t,e){var i=(e=e||{}).reviver,r=e.additionalTransform||\\\"\\\",n=[this.getSvgTransform(!0,r),this.getSvgCommons()].join(\\\"\\\"),o=t.indexOf(\\\"COMMON_PARTS\\\");return t[o]=n,i?i(t.join(\\\"\\\")):t.join(\\\"\\\")},_createBaseSVGMarkup:function(t,e){var i,r,n=(e=e||{}).noStyle,o=e.reviver,s=n?\\\"\\\":'style=\\\"'+this.getSvgStyles()+'\\\" ',a=e.withShadow?'style=\\\"'+this.getSvgFilter()+'\\\" ':\\\"\\\",h=this.clipPath,c=this.strokeUniform?'vector-effect=\\\"non-scaling-stroke\\\" ':\\\"\\\",l=h\\u0026\\u0026h.absolutePositioned,u=this.stroke,f=this.fill,d=this.shadow,g=[],p=t.indexOf(\\\"COMMON_PARTS\\\"),v=e.additionalTransform;return h\\u0026\\u0026(h.clipPathId=\\\"CLIPPATH_\\\"+T.Object.__uid++,r='\\u003cclipPath id=\\\"'+h.clipPathId+'\\\" \\u003e\\\\n'+h.toClipPathSVG(o)+\\\"\\u003c/clipPath\\u003e\\\\n\\\"),l\\u0026\\u0026g.push(\\\"\\u003cg \\\",a,this.getSvgCommons(),\\\" \\u003e\\\\n\\\"),g.push(\\\"\\u003cg \\\",this.getSvgTransform(!1),l?\\\"\\\":a+this.getSvgCommons(),\\\" \\u003e\\\\n\\\"),i=[s,c,n?\\\"\\\":this.addPaintOrder(),\\\" \\\",v?'transform=\\\"'+v+'\\\" ':\\\"\\\"].join(\\\"\\\"),t[p]=i,f\\u0026\\u0026f.toLive\\u0026\\u0026g.push(f.toSVG(this)),u\\u0026\\u0026u.toLive\\u0026\\u0026g.push(u.toSVG(this)),d\\u0026\\u0026g.push(d.toSVG(this)),h\\u0026\\u0026g.push(r),g.push(t.join(\\\"\\\")),g.push(\\\"\\u003c/g\\u003e\\\\n\\\"),l\\u0026\\u0026g.push(\\\"\\u003c/g\\u003e\\\\n\\\"),o?o(g.join(\\\"\\\")):g.join(\\\"\\\")},addPaintOrder:function(){return\\\"fill\\\"!==this.paintFirst?' paint-order=\\\"'+this.paintFirst+'\\\" ':\\\"\\\"}})}(),function(){var t=T.util.object.extend,e=\\\"stateProperties\\\";function i(e,i,r){var n={};r.forEach((function(t){n[t]=e[t]})),t(e[i],n,!0)}function r(t,e,i){if(t===e)return!0;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0,o=t.length;n\\u003co;n++)if(!r(t[n],e[n]))return!1;return!0}if(t\\u0026\\u0026\\\"object\\\"==typeof t){var s,a=Object.keys(t);if(!e||\\\"object\\\"!=typeof e||!i\\u0026\\u0026a.length!==Object.keys(e).length)return!1;for(n=0,o=a.length;n\\u003co;n++)if(\\\"canvas\\\"!==(s=a[n])\\u0026\\u0026\\\"group\\\"!==s\\u0026\\u0026!r(t[s],e[s]))return!1;return!0}}T.util.object.extend(T.Object.prototype,{hasStateChanged:function(t){var i=\\\"_\\\"+(t=t||e);return Object.keys(this[i]).length\\u003cthis[t].length||!r(this[i],this,!0)},saveState:function(t){var r=t\\u0026\\u0026t.propertySet||e,n=\\\"_\\\"+r;return this[n]?(i(this,n,this[r]),t\\u0026\\u0026t.stateProperties\\u0026\\u0026i(this,n,t.stateProperties),this):this.setupState(t)},setupState:function(t){var i=(t=t||{}).propertySet||e;return t.propertySet=i,this[\\\"_\\\"+i]={},this.saveState(t),this}})}(),function(){var t=T.util.degreesToRadians;T.util.object.extend(T.Object.prototype,{_findTargetCorner:function(t,e){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,r,n,o=t.x,s=t.y,a=Object.keys(this.oCoords),h=a.length-1;for(this.__corner=0;h\\u003e=0;h--)if(n=a[h],this.isControlVisible(n)\\u0026\\u0026(r=this._getImageLines(e?this.oCoords[n].touchCorner:this.oCoords[n].corner),0!==(i=this._findCrossPoints({x:o,y:s},r))\\u0026\\u0026i%2==1))return this.__corner=n,n;return!1},forEachControl:function(t){for(var e in this.controls)t(this.controls[e],e,this)},_setCornerCoords:function(){var t=this.oCoords;for(var e in t){var i=this.controls[e];t[e].corner=i.calcCornerCoords(this.angle,this.cornerSize,t[e].x,t[e].y,!1),t[e].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,t[e].x,t[e].y,!0)}},drawSelectionBackground:function(e){if(!this.selectionBackgroundColor||this.canvas\\u0026\\u0026!this.canvas.interactive||this.canvas\\u0026\\u0026this.canvas._activeObject!==this)return this;e.save();var i=this.getCenterPoint(),r=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return e.translate(i.x,i.y),e.scale(1/n[0],1/n[3]),e.rotate(t(this.angle)),e.fillStyle=this.selectionBackgroundColor,e.fillRect(-r.x/2,-r.y/2,r.x,r.y),e.restore(),this},drawBorders:function(t,e){e=e||{};var i=this._calculateCurrentDimensions(),r=this.borderScaleFactor,n=i.x+r,o=i.y+r,s=void 0!==e.hasControls?e.hasControls:this.hasControls,a=!1;return t.save(),t.strokeStyle=e.borderColor||this.borderColor,this._setLineDash(t,e.borderDashArray||this.borderDashArray),t.strokeRect(-n/2,-o/2,n,o),s\\u0026\\u0026(t.beginPath(),this.forEachControl((function(e,i,r){e.withConnection\\u0026\\u0026e.getVisibility(r,i)\\u0026\\u0026(a=!0,t.moveTo(e.x*n,e.y*o),t.lineTo(e.x*n+e.offsetX,e.y*o+e.offsetY))})),a\\u0026\\u0026t.stroke()),t.restore(),this},drawBordersInGroup:function(t,e,i){i=i||{};var r=T.util.sizeAfterTransform(this.width,this.height,e),n=this.strokeWidth,o=this.strokeUniform,s=this.borderScaleFactor,a=r.x+n*(o?this.canvas.getZoom():e.scaleX)+s,h=r.y+n*(o?this.canvas.getZoom():e.scaleY)+s;return t.save(),this._setLineDash(t,i.borderDashArray||this.borderDashArray),t.strokeStyle=i.borderColor||this.borderColor,t.strokeRect(-a/2,-h/2,a,h),t.restore(),this},drawControls:function(t,e){e=e||{},t.save();var i,r,n=this.canvas.getRetinaScaling();return t.setTransform(n,0,0,n,0,0),t.strokeStyle=t.fillStyle=e.cornerColor||this.cornerColor,this.transparentCorners||(t.strokeStyle=e.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(t,e.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group\\u0026\\u0026(i=this.group.calcTransformMatrix()),this.forEachControl((function(n,o,s){r=s.oCoords[o],n.getVisibility(s,o)\\u0026\\u0026(i\\u0026\\u0026(r=T.util.transformPoint(r,i)),n.render(t,r.x,r.y,e,s))})),t.restore(),this},isControlVisible:function(t){return this.controls[t]\\u0026\\u0026this.controls[t].getVisibility(this,t)},setControlVisible:function(t,e){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[t]=e,this},setControlsVisibility:function(t){for(var e in t||(t={}),t)this.setControlVisible(e,t[e]);return this},onDeselect:function(){},onSelect:function(){}})}(),T.util.object.extend(T.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(e){t.set(\\\"left\\\",e),o.requestRenderAll(),n()},onComplete:function(){t.setCoords(),r()}}),this},fxCenterObjectV:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(e){t.set(\\\"top\\\",e),o.requestRenderAll(),n()},onComplete:function(){t.setCoords(),r()}}),this},fxRemove:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(e){t.set(\\\"opacity\\\",e),o.requestRenderAll(),n()},onComplete:function(){o.remove(t),r()}}),this}}),T.util.object.extend(T.Object.prototype,{animate:function(){if(arguments[0]\\u0026\\u0026\\\"object\\\"==typeof arguments[0]){var t,e,i=[];for(t in arguments[0])i.push(t);for(var r=0,n=i.length;r\\u003cn;r++)t=i[r],e=r!==n-1,this._animate(t,arguments[0][t],arguments[1],e)}else this._animate.apply(this,arguments);return this},_animate:function(t,e,i,r){var n,o=this;e=e.toString(),i=i?T.util.object.clone(i):{},~t.indexOf(\\\".\\\")\\u0026\\u0026(n=t.split(\\\".\\\"));var s=o.colorProperties.indexOf(t)\\u003e-1||n\\u0026\\u0026o.colorProperties.indexOf(n[1])\\u003e-1,a=n?this.get(n[0])[n[1]]:this.get(t);\\\"from\\\"in i||(i.from=a),s||(e=~e.indexOf(\\\"=\\\")?a+parseFloat(e.replace(\\\"=\\\",\\\"\\\")):parseFloat(e));var h={startValue:i.from,endValue:e,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort\\u0026\\u0026function(t,e,r){return i.abort.call(o,t,e,r)},onChange:function(e,s,a){n?o[n[0]][n[1]]=e:o.set(t,e),r||i.onChange\\u0026\\u0026i.onChange(e,s,a)},onComplete:function(t,e,n){r||(o.setCoords(),i.onComplete\\u0026\\u0026i.onComplete(t,e,n))}};return s?T.util.animateColor(h.startValue,h.endValue,h.duration,h):T.util.animate(h)}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function o(t,e){var i=t.origin,r=t.axis1,n=t.axis2,o=t.dimension,s=e.nearest,a=e.center,h=e.farthest;return function(){switch(this.get(i)){case s:return Math.min(this.get(r),this.get(n));case a:return Math.min(this.get(r),this.get(n))+.5*this.get(o);case h:return Math.max(this.get(r),this.get(n))}}}e.Line?e.warn(\\\"fabric.Line is already defined\\\"):(e.Line=e.util.createClass(e.Object,{type:\\\"line\\\",x1:0,y1:0,x2:0,y2:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"x1\\\",\\\"x2\\\",\\\"y1\\\",\\\"y2\\\"),initialize:function(t,e){t||(t=[0,0,0,0]),this.callSuper(\\\"initialize\\\",e),this.set(\\\"x1\\\",t[0]),this.set(\\\"y1\\\",t[1]),this.set(\\\"x2\\\",t[2]),this.set(\\\"y2\\\",t[3]),this._setWidthHeight(e)},_setWidthHeight:function(t){t||(t={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left=\\\"left\\\"in t?t.left:this._getLeftToOriginX(),this.top=\\\"top\\\"in t?t.top:this._getTopToOriginY()},_set:function(t,e){return this.callSuper(\\\"_set\\\",t,e),void 0!==n[t]\\u0026\\u0026this._setWidthHeight(),this},_getLeftToOriginX:o({origin:\\\"originX\\\",axis1:\\\"x1\\\",axis2:\\\"x2\\\",dimension:\\\"width\\\"},{nearest:\\\"left\\\",center:\\\"center\\\",farthest:\\\"right\\\"}),_getTopToOriginY:o({origin:\\\"originY\\\",axis1:\\\"y1\\\",axis2:\\\"y2\\\",dimension:\\\"height\\\"},{nearest:\\\"top\\\",center:\\\"center\\\",farthest:\\\"bottom\\\"}),_render:function(t){t.beginPath();var e=this.calcLinePoints();t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.lineWidth=this.strokeWidth;var i=t.strokeStyle;t.strokeStyle=this.stroke||t.fillStyle,this.stroke\\u0026\\u0026this._renderStroke(t),t.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(t){return i(this.callSuper(\\\"toObject\\\",t),this.calcLinePoints())},_getNonTransformedDimensions:function(){var t=this.callSuper(\\\"_getNonTransformedDimensions\\\");return\\\"butt\\\"===this.strokeLineCap\\u0026\\u0026(0===this.width\\u0026\\u0026(t.y-=this.strokeWidth),0===this.height\\u0026\\u0026(t.x-=this.strokeWidth)),t},calcLinePoints:function(){var t=this.x1\\u003c=this.x2?-1:1,e=this.y1\\u003c=this.y2?-1:1,i=t*this.width*.5,r=e*this.height*.5;return{x1:i,x2:t*this.width*-.5,y1:r,y2:e*this.height*-.5}},_toSVG:function(){var t=this.calcLinePoints();return[\\\"\\u003cline \\\",\\\"COMMON_PARTS\\\",'x1=\\\"',t.x1,'\\\" y1=\\\"',t.y1,'\\\" x2=\\\"',t.x2,'\\\" y2=\\\"',t.y2,'\\\" /\\u003e\\\\n']}}),e.Line.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"x1 y1 x2 y2\\\".split(\\\" \\\")),e.Line.fromElement=function(t,r,n){n=n||{};var o=e.parseAttributes(t,e.Line.ATTRIBUTE_NAMES),s=[o.x1||0,o.y1||0,o.x2||0,o.y2||0];r(new e.Line(s,i(o,n)))},e.Line.fromObject=function(t,i){var n=r(t,!0);n.points=[t.x1,t.y1,t.x2,t.y2],e.Object._fromObject(\\\"Line\\\",n,(function(t){delete t.points,i\\u0026\\u0026i(t)}),\\\"points\\\")})}(t),function(t){var e=t.fabric||(t.fabric={}),i=Math.PI;e.Circle?e.warn(\\\"fabric.Circle is already defined.\\\"):(e.Circle=e.util.createClass(e.Object,{type:\\\"circle\\\",radius:0,startAngle:0,endAngle:2*i,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"radius\\\",\\\"startAngle\\\",\\\"endAngle\\\"),_set:function(t,e){return this.callSuper(\\\"_set\\\",t,e),\\\"radius\\\"===t\\u0026\\u0026this.setRadius(e),this},toObject:function(t){return this.callSuper(\\\"toObject\\\",[\\\"radius\\\",\\\"startAngle\\\",\\\"endAngle\\\"].concat(t))},_toSVG:function(){var t,r=(this.endAngle-this.startAngle)%(2*i);if(0===r)t=[\\\"\\u003ccircle \\\",\\\"COMMON_PARTS\\\",'cx=\\\"0\\\" cy=\\\"0\\\" ','r=\\\"',this.radius,'\\\" /\\u003e\\\\n'];else{var n=e.util.cos(this.startAngle)*this.radius,o=e.util.sin(this.startAngle)*this.radius,s=e.util.cos(this.endAngle)*this.radius,a=e.util.sin(this.endAngle)*this.radius,h=r\\u003ei?\\\"1\\\":\\\"0\\\";t=['\\u003cpath d=\\\"M '+n+\\\" \\\"+o,\\\" A \\\"+this.radius+\\\" \\\"+this.radius,\\\" 0 \\\",+h+\\\" 1\\\",\\\" \\\"+s+\\\" \\\"+a,'\\\" ',\\\"COMMON_PARTS\\\",\\\" /\\u003e\\\\n\\\"]}return t},_render:function(t){t.beginPath(),t.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(t)},getRadiusX:function(){return this.get(\\\"radius\\\")*this.get(\\\"scaleX\\\")},getRadiusY:function(){return this.get(\\\"radius\\\")*this.get(\\\"scaleY\\\")},setRadius:function(t){return this.radius=t,this.set(\\\"width\\\",2*t).set(\\\"height\\\",2*t)}}),e.Circle.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"cx cy r\\\".split(\\\" \\\")),e.Circle.fromElement=function(t,i){var r,n=e.parseAttributes(t,e.Circle.ATTRIBUTE_NAMES);if(!(\\\"radius\\\"in(r=n)\\u0026\\u0026r.radius\\u003e=0))throw new Error(\\\"value of `r` attribute is required and can not be negative\\\");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new e.Circle(n))},e.Circle.fromObject=function(t,i){e.Object._fromObject(\\\"Circle\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={});e.Triangle?e.warn(\\\"fabric.Triangle is already defined\\\"):(e.Triangle=e.util.createClass(e.Object,{type:\\\"triangle\\\",width:100,height:100,_render:function(t){var e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,i),t.lineTo(0,-i),t.lineTo(e,i),t.closePath(),this._renderPaintInOrder(t)},_toSVG:function(){var t=this.width/2,e=this.height/2;return[\\\"\\u003cpolygon \\\",\\\"COMMON_PARTS\\\",'points=\\\"',[-t+\\\" \\\"+e,\\\"0 \\\"+-e,t+\\\" \\\"+e].join(\\\",\\\"),'\\\" /\\u003e']}}),e.Triangle.fromObject=function(t,i){return e.Object._fromObject(\\\"Triangle\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=2*Math.PI;e.Ellipse?e.warn(\\\"fabric.Ellipse is already defined.\\\"):(e.Ellipse=e.util.createClass(e.Object,{type:\\\"ellipse\\\",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"rx\\\",\\\"ry\\\"),initialize:function(t){this.callSuper(\\\"initialize\\\",t),this.set(\\\"rx\\\",t\\u0026\\u0026t.rx||0),this.set(\\\"ry\\\",t\\u0026\\u0026t.ry||0)},_set:function(t,e){switch(this.callSuper(\\\"_set\\\",t,e),t){case\\\"rx\\\":this.rx=e,this.set(\\\"width\\\",2*e);break;case\\\"ry\\\":this.ry=e,this.set(\\\"height\\\",2*e)}return this},getRx:function(){return this.get(\\\"rx\\\")*this.get(\\\"scaleX\\\")},getRy:function(){return this.get(\\\"ry\\\")*this.get(\\\"scaleY\\\")},toObject:function(t){return this.callSuper(\\\"toObject\\\",[\\\"rx\\\",\\\"ry\\\"].concat(t))},_toSVG:function(){return[\\\"\\u003cellipse \\\",\\\"COMMON_PARTS\\\",'cx=\\\"0\\\" cy=\\\"0\\\" ','rx=\\\"',this.rx,'\\\" ry=\\\"',this.ry,'\\\" /\\u003e\\\\n']},_render:function(t){t.beginPath(),t.save(),t.transform(1,0,0,this.ry/this.rx,0,0),t.arc(0,0,this.rx,0,i,!1),t.restore(),this._renderPaintInOrder(t)}}),e.Ellipse.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"cx cy rx ry\\\".split(\\\" \\\")),e.Ellipse.fromElement=function(t,i){var r=e.parseAttributes(t,e.Ellipse.ATTRIBUTE_NAMES);r.left=(r.left||0)-r.rx,r.top=(r.top||0)-r.ry,i(new e.Ellipse(r))},e.Ellipse.fromObject=function(t,i){e.Object._fromObject(\\\"Ellipse\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend;e.Rect?e.warn(\\\"fabric.Rect is already defined\\\"):(e.Rect=e.util.createClass(e.Object,{stateProperties:e.Object.prototype.stateProperties.concat(\\\"rx\\\",\\\"ry\\\"),type:\\\"rect\\\",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"rx\\\",\\\"ry\\\"),initialize:function(t){this.callSuper(\\\"initialize\\\",t),this._initRxRy()},_initRxRy:function(){this.rx\\u0026\\u0026!this.ry?this.ry=this.rx:this.ry\\u0026\\u0026!this.rx\\u0026\\u0026(this.rx=this.ry)},_render:function(t){var e=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,r=this.width,n=this.height,o=-this.width/2,s=-this.height/2,a=0!==e||0!==i,h=.4477152502;t.beginPath(),t.moveTo(o+e,s),t.lineTo(o+r-e,s),a\\u0026\\u0026t.bezierCurveTo(o+r-h*e,s,o+r,s+h*i,o+r,s+i),t.lineTo(o+r,s+n-i),a\\u0026\\u0026t.bezierCurveTo(o+r,s+n-h*i,o+r-h*e,s+n,o+r-e,s+n),t.lineTo(o+e,s+n),a\\u0026\\u0026t.bezierCurveTo(o+h*e,s+n,o,s+n-h*i,o,s+n-i),t.lineTo(o,s+i),a\\u0026\\u0026t.bezierCurveTo(o,s+h*i,o+h*e,s,o+e,s),t.closePath(),this._renderPaintInOrder(t)},toObject:function(t){return this.callSuper(\\\"toObject\\\",[\\\"rx\\\",\\\"ry\\\"].concat(t))},_toSVG:function(){return[\\\"\\u003crect \\\",\\\"COMMON_PARTS\\\",'x=\\\"',-this.width/2,'\\\" y=\\\"',-this.height/2,'\\\" rx=\\\"',this.rx,'\\\" ry=\\\"',this.ry,'\\\" width=\\\"',this.width,'\\\" height=\\\"',this.height,'\\\" /\\u003e\\\\n']}}),e.Rect.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"x y rx ry width height\\\".split(\\\" \\\")),e.Rect.fromElement=function(t,r,n){if(!t)return r(null);n=n||{};var o=e.parseAttributes(t,e.Rect.ATTRIBUTE_NAMES);o.left=o.left||0,o.top=o.top||0,o.height=o.height||0,o.width=o.width||0;var s=new e.Rect(i(n?e.util.object.clone(n):{},o));s.visible=s.visible\\u0026\\u0026s.width\\u003e0\\u0026\\u0026s.height\\u003e0,r(s)},e.Rect.fromObject=function(t,i){return e.Object._fromObject(\\\"Rect\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.array.min,n=e.util.array.max,o=e.util.toFixed;e.Polyline?e.warn(\\\"fabric.Polyline is already defined\\\"):(e.Polyline=e.util.createClass(e.Object,{type:\\\"polyline\\\",points:null,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"points\\\"),initialize:function(t,e){e=e||{},this.points=t||[],this.callSuper(\\\"initialize\\\",e),this._setPositionDimensions(e)},_setPositionDimensions:function(t){var e,i=this._calcDimensions(t);this.width=i.width,this.height=i.height,t.fromSVG||(e=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2,y:i.top-this.strokeWidth/2},\\\"left\\\",\\\"top\\\",this.originX,this.originY)),void 0===t.left\\u0026\\u0026(this.left=t.fromSVG?i.left:e.x),void 0===t.top\\u0026\\u0026(this.top=t.fromSVG?i.top:e.y),this.pathOffset={x:i.left+this.width/2,y:i.top+this.height/2}},_calcDimensions:function(){var t=this.points,e=r(t,\\\"x\\\")||0,i=r(t,\\\"y\\\")||0;return{left:e,top:i,width:(n(t,\\\"x\\\")||0)-e,height:(n(t,\\\"y\\\")||0)-i}},toObject:function(t){return i(this.callSuper(\\\"toObject\\\",t),{points:this.points.concat()})},_toSVG:function(){for(var t=[],i=this.pathOffset.x,r=this.pathOffset.y,n=e.Object.NUM_FRACTION_DIGITS,s=0,a=this.points.length;s\\u003ca;s++)t.push(o(this.points[s].x-i,n),\\\",\\\",o(this.points[s].y-r,n),\\\" \\\");return[\\\"\\u003c\\\"+this.type+\\\" \\\",\\\"COMMON_PARTS\\\",'points=\\\"',t.join(\\\"\\\"),'\\\" /\\u003e\\\\n']},commonRender:function(t){var e,i=this.points.length,r=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;t.beginPath(),t.moveTo(this.points[0].x-r,this.points[0].y-n);for(var o=0;o\\u003ci;o++)e=this.points[o],t.lineTo(e.x-r,e.y-n);return!0},_render:function(t){this.commonRender(t)\\u0026\\u0026this._renderPaintInOrder(t)},complexity:function(){return this.get(\\\"points\\\").length}}),e.Polyline.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polyline.fromElementGenerator=function(t){return function(r,n,o){if(!r)return n(null);o||(o={});var s=e.parsePointsAttribute(r.getAttribute(\\\"points\\\")),a=e.parseAttributes(r,e[t].ATTRIBUTE_NAMES);a.fromSVG=!0,n(new e[t](s,i(a,o)))}},e.Polyline.fromElement=e.Polyline.fromElementGenerator(\\\"Polyline\\\"),e.Polyline.fromObject=function(t,i){return e.Object._fromObject(\\\"Polyline\\\",t,i,\\\"points\\\")})}(t),function(t){var e=t.fabric||(t.fabric={});e.Polygon?e.warn(\\\"fabric.Polygon is already defined\\\"):(e.Polygon=e.util.createClass(e.Polyline,{type:\\\"polygon\\\",_render:function(t){this.commonRender(t)\\u0026\\u0026(t.closePath(),this._renderPaintInOrder(t))}}),e.Polygon.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polygon.fromElement=e.Polyline.fromElementGenerator(\\\"Polygon\\\"),e.Polygon.fromObject=function(t,i){e.Object._fromObject(\\\"Polygon\\\",t,i,\\\"points\\\")})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.array.min,r=e.util.array.max,n=e.util.object.extend,o=Object.prototype.toString,s=e.util.toFixed;e.Path?e.warn(\\\"fabric.Path is already defined\\\"):(e.Path=e.util.createClass(e.Object,{type:\\\"path\\\",path:null,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"path\\\",\\\"fillRule\\\"),stateProperties:e.Object.prototype.stateProperties.concat(\\\"path\\\"),initialize:function(t,i){i=i||{},this.callSuper(\\\"initialize\\\",i),t||(t=[]);var r=\\\"[object Array]\\\"===o.call(t);this.path=e.util.makePathSimpler(r?t:e.util.parsePath(t)),this.path\\u0026\\u0026e.Polyline.prototype._setPositionDimensions.call(this,i)},_renderPathCommands:function(t){var e,i=0,r=0,n=0,o=0,s=0,a=0,h=-this.pathOffset.x,c=-this.pathOffset.y;t.beginPath();for(var l=0,u=this.path.length;l\\u003cu;++l)switch((e=this.path[l])[0]){case\\\"L\\\":n=e[1],o=e[2],t.lineTo(n+h,o+c);break;case\\\"M\\\":i=n=e[1],r=o=e[2],t.moveTo(n+h,o+c);break;case\\\"C\\\":n=e[5],o=e[6],s=e[3],a=e[4],t.bezierCurveTo(e[1]+h,e[2]+c,s+h,a+c,n+h,o+c);break;case\\\"Q\\\":t.quadraticCurveTo(e[1]+h,e[2]+c,e[3]+h,e[4]+c),n=e[3],o=e[4],s=e[1],a=e[2];break;case\\\"z\\\":case\\\"Z\\\":n=i,o=r,t.closePath()}},_render:function(t){this._renderPathCommands(t),this._renderPaintInOrder(t)},toString:function(){return\\\"#\\u003cfabric.Path (\\\"+this.complexity()+'): { \\\"top\\\": '+this.top+', \\\"left\\\": '+this.left+\\\" }\\u003e\\\"},toObject:function(t){return n(this.callSuper(\\\"toObject\\\",t),{path:this.path.map((function(t){return t.slice()}))})},toDatalessObject:function(t){var e=this.toObject([\\\"sourcePath\\\"].concat(t));return e.sourcePath\\u0026\\u0026delete e.path,e},_toSVG:function(){return[\\\"\\u003cpath \\\",\\\"COMMON_PARTS\\\",'d=\\\"',e.util.joinPath(this.path),'\\\" stroke-linecap=\\\"round\\\" ',\\\"/\\u003e\\\\n\\\"]},_getOffsetTransform:function(){var t=e.Object.NUM_FRACTION_DIGITS;return\\\" translate(\\\"+s(-this.pathOffset.x,t)+\\\", \\\"+s(-this.pathOffset.y,t)+\\\")\\\"},toClipPathSVG:function(t){var e=this._getOffsetTransform();return\\\"\\\\t\\\"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},toSVG:function(t){var e=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var t,n,o=[],s=[],a=0,h=0,c=0,l=0,u=0,f=this.path.length;u\\u003cf;++u){switch((t=this.path[u])[0]){case\\\"L\\\":c=t[1],l=t[2],n=[];break;case\\\"M\\\":a=c=t[1],h=l=t[2],n=[];break;case\\\"C\\\":n=e.util.getBoundsOfCurve(c,l,t[1],t[2],t[3],t[4],t[5],t[6]),c=t[5],l=t[6];break;case\\\"Q\\\":n=e.util.getBoundsOfCurve(c,l,t[1],t[2],t[1],t[2],t[3],t[4]),c=t[3],l=t[4];break;case\\\"z\\\":case\\\"Z\\\":c=a,l=h}n.forEach((function(t){o.push(t.x),s.push(t.y)})),o.push(c),s.push(l)}var d=i(o)||0,g=i(s)||0;return{left:d,top:g,width:(r(o)||0)-d,height:(r(s)||0)-g}}}),e.Path.fromObject=function(t,i){if(\\\"string\\\"==typeof t.sourcePath){var r=t.sourcePath;e.loadSVGFromURL(r,(function(e){var r=e[0];r.setOptions(t),i\\u0026\\u0026i(r)}))}else e.Object._fromObject(\\\"Path\\\",t,i,\\\"path\\\")},e.Path.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat([\\\"d\\\"]),e.Path.fromElement=function(t,i,r){var o=e.parseAttributes(t,e.Path.ATTRIBUTE_NAMES);o.fromSVG=!0,i(new e.Path(o.d,n(o,r)))})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.array.min,r=e.util.array.max;e.Group||(e.Group=e.util.createClass(e.Object,e.Collection,{type:\\\"group\\\",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(t,e,i){e=e||{},this._objects=[],i\\u0026\\u0026this.callSuper(\\\"initialize\\\",e),this._objects=t||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;if(i)this._updateObjectsACoords();else{var n=e\\u0026\\u0026e.centerPoint;void 0!==e.originX\\u0026\\u0026(this.originX=e.originX),void 0!==e.originY\\u0026\\u0026(this.originY=e.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete e.centerPoint,this.callSuper(\\\"initialize\\\",e)}this.setCoords()},_updateObjectsACoords:function(){for(var t=this._objects.length;t--;)this._objects[t].setCoords(true)},_updateObjectsCoords:function(t){t=t||this.getCenterPoint();for(var e=this._objects.length;e--;)this._updateObjectCoords(this._objects[e],t)},_updateObjectCoords:function(t,e){var i=t.left,r=t.top;t.set({left:i-e.x,top:r-e.y}),t.group=this,t.setCoords(!0)},toString:function(){return\\\"#\\u003cfabric.Group: (\\\"+this.complexity()+\\\")\\u003e\\\"},addWithUpdate:function(t){var i=!!this.group;return this._restoreObjectsState(),e.util.resetObjectTransform(this),t\\u0026\\u0026(i\\u0026\\u0026e.util.removeTransformFromObject(t,this.group.calcTransformMatrix()),this._objects.push(t),t.group=this,t._set(\\\"canvas\\\",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(t){return this._restoreObjectsState(),e.util.resetObjectTransform(this),this.remove(t),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(t){this.dirty=!0,t.group=this,t._set(\\\"canvas\\\",this.canvas)},_onObjectRemoved:function(t){this.dirty=!0,delete t.group},_set:function(t,i){var r=this._objects.length;if(this.useSetOnGroup)for(;r--;)this._objects[r].setOnGroup(t,i);if(\\\"canvas\\\"===t)for(;r--;)this._objects[r]._set(t,i);e.Object.prototype._set.call(this,t,i)},toObject:function(t){var i=this.includeDefaultValues,r=this._objects.filter((function(t){return!t.excludeFromExport})).map((function(e){var r=e.includeDefaultValues;e.includeDefaultValues=i;var n=e.toObject(t);return e.includeDefaultValues=r,n})),n=e.Object.prototype.toObject.call(this,t);return n.objects=r,n},toDatalessObject:function(t){var i,r=this.sourcePath;if(r)i=r;else{var n=this.includeDefaultValues;i=this._objects.map((function(e){var i=e.includeDefaultValues;e.includeDefaultValues=n;var r=e.toDatalessObject(t);return e.includeDefaultValues=i,r}))}var o=e.Object.prototype.toDatalessObject.call(this,t);return o.objects=i,o},render:function(t){this._transformDone=!0,this.callSuper(\\\"render\\\",t),this._transformDone=!1},shouldCache:function(){var t=e.Object.prototype.shouldCache.call(this);if(t)for(var i=0,r=this._objects.length;i\\u003cr;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return t},willDrawShadow:function(){if(e.Object.prototype.willDrawShadow.call(this))return!0;for(var t=0,i=this._objects.length;t\\u003ci;t++)if(this._objects[t].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group\\u0026\\u0026this.group.isOnACache()},drawObject:function(t){for(var e=0,i=this._objects.length;e\\u003ci;e++)this._objects[e].render(t);this._drawClipPath(t)},isCacheDirty:function(t){if(this.callSuper(\\\"isCacheDirty\\\",t))return!0;if(!this.statefullCache)return!1;for(var e=0,i=this._objects.length;e\\u003ci;e++)if(this._objects[e].isCacheDirty(!0)){if(this._cacheCanvas){var r=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-r/2,-n/2,r,n)}return!0}return!1},_restoreObjectsState:function(){var t=this.calcOwnMatrix();return this._objects.forEach((function(i){e.util.addTransformToObject(i,t),delete i.group,i.setCoords()})),this},realizeTransform:function(t,i){return e.util.addTransformToObject(t,i),t},destroy:function(){return this._objects.forEach((function(t){t.set(\\\"dirty\\\",!0)})),this._restoreObjectsState()},toActiveSelection:function(){if(this.canvas){var t=this._objects,i=this.canvas;this._objects=[];var r=this.toObject();delete r.objects;var n=new e.ActiveSelection([]);return n.set(r),n.type=\\\"activeSelection\\\",i.remove(this),t.forEach((function(t){t.group=n,t.dirty=!0,i.add(t)})),n.canvas=i,n._objects=t,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(t){t.setCoords(true)})),this},_calcBounds:function(t){for(var e,i,r,n,o=[],s=[],a=[\\\"tr\\\",\\\"br\\\",\\\"bl\\\",\\\"tl\\\"],h=0,c=this._objects.length,l=a.length;h\\u003cc;++h){for(r=(e=this._objects[h]).calcACoords(),n=0;n\\u003cl;n++)i=a[n],o.push(r[i].x),s.push(r[i].y);e.aCoords=r}this._getBounds(o,s,t)},_getBounds:function(t,n,o){var s=new e.Point(i(t),i(n)),a=new e.Point(r(t),r(n)),h=s.y||0,c=s.x||0,l=a.x-s.x||0,u=a.y-s.y||0;this.width=l,this.height=u,o||this.setPositionByOrigin({x:c,y:h},\\\"left\\\",\\\"top\\\")},_toSVG:function(t){for(var e=[\\\"\\u003cg \\\",\\\"COMMON_PARTS\\\",\\\" \\u003e\\\\n\\\"],i=0,r=this._objects.length;i\\u003cr;i++)e.push(\\\"\\\\t\\\\t\\\",this._objects[i].toSVG(t));return e.push(\\\"\\u003c/g\\u003e\\\\n\\\"),e},getSvgStyles:function(){var t=void 0!==this.opacity\\u0026\\u00261!==this.opacity?\\\"opacity: \\\"+this.opacity+\\\";\\\":\\\"\\\",e=this.visible?\\\"\\\":\\\" visibility: hidden;\\\";return[t,this.getSvgFilter(),e].join(\\\"\\\")},toClipPathSVG:function(t){for(var e=[],i=0,r=this._objects.length;i\\u003cr;i++)e.push(\\\"\\\\t\\\",this._objects[i].toClipPathSVG(t));return this._createBaseClipPathSVGMarkup(e,{reviver:t})}}),e.Group.fromObject=function(t,i){var r=t.objects,n=e.util.object.clone(t,!0);delete n.objects,\\\"string\\\"!=typeof r?e.util.enlivenObjects(r,(function(r){e.util.enlivenObjects([t.clipPath],(function(n){var o=e.util.object.clone(t,!0);o.clipPath=n[0],delete o.objects,i\\u0026\\u0026i(new e.Group(r,o,!0))}))})):e.loadSVGFromURL(r,(function(o){var s=e.util.groupSVGElements(o,t,r);s.set(n),i\\u0026\\u0026i(s)}))})}(t),function(t){var e=t.fabric||(t.fabric={});e.ActiveSelection||(e.ActiveSelection=e.util.createClass(e.Group,{type:\\\"activeSelection\\\",initialize:function(t,i){i=i||{},this._objects=t||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;i.originX\\u0026\\u0026(this.originX=i.originX),i.originY\\u0026\\u0026(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),e.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var t=this._objects.concat();this._objects=[];var i=e.Object.prototype.toObject.call(this),r=new e.Group([]);if(delete i.type,r.set(i),t.forEach((function(t){t.canvas.remove(t),t.group=r})),r._objects=t,!this.canvas)return r;var n=this.canvas;return n.add(r),n._activeObject=r,r.setCoords(),r},onDeselect:function(){return this.destroy(),!1},toString:function(){return\\\"#\\u003cfabric.ActiveSelection: (\\\"+this.complexity()+\\\")\\u003e\\\"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(t,e,i){t.save(),t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper(\\\"_renderControls\\\",t,e),void 0===(i=i||{}).hasControls\\u0026\\u0026(i.hasControls=!1),i.forActiveSelection=!0;for(var r=0,n=this._objects.length;r\\u003cn;r++)this._objects[r]._renderControls(t,i);t.restore()}}),e.ActiveSelection.fromObject=function(t,i){e.util.enlivenObjects(t.objects,(function(r){delete t.objects,i\\u0026\\u0026i(new e.ActiveSelection(r,t,!0))}))})}(t),function(t){var e=T.util.object.extend;t.fabric||(t.fabric={}),t.fabric.Image?T.warn(\\\"fabric.Image is already defined.\\\"):(T.Image=T.util.createClass(T.Object,{type:\\\"image\\\",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:T.Object.prototype.stateProperties.concat(\\\"cropX\\\",\\\"cropY\\\"),cacheProperties:T.Object.prototype.cacheProperties.concat(\\\"cropX\\\",\\\"cropY\\\"),cacheKey:\\\"\\\",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(t,e){e||(e={}),this.filters=[],this.cacheKey=\\\"texture\\\"+T.Object.__uid++,this.callSuper(\\\"initialize\\\",e),this._initElement(t,e)},getElement:function(){return this._element||{}},setElement:function(t,e){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+\\\"_filtered\\\"),this._element=t,this._originalElement=t,this._initConfig(e),0!==this.filters.length\\u0026\\u0026this.applyFilters(),this.resizeFilter\\u0026\\u0026this.applyResizeFilters(),this},removeTexture:function(t){var e=T.filterBackend;e\\u0026\\u0026e.evictCachesForKey\\u0026\\u0026e.evictCachesForKey(t)},dispose:function(){this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+\\\"_filtered\\\"),this._cacheContext=void 0,[\\\"_originalElement\\\",\\\"_element\\\",\\\"_filteredEl\\\",\\\"_cacheCanvas\\\"].forEach(function(t){T.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement\\u0026\\u0026(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var t=this.getElement();return{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height}},_stroke:function(t){if(this.stroke\\u0026\\u00260!==this.strokeWidth){var e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,-i),t.lineTo(e,-i),t.lineTo(e,i),t.lineTo(-e,i),t.lineTo(-e,-i),t.closePath()}},toObject:function(t){var i=[];this.filters.forEach((function(t){t\\u0026\\u0026i.push(t.toObject())}));var r=e(this.callSuper(\\\"toObject\\\",[\\\"cropX\\\",\\\"cropY\\\"].concat(t)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter\\u0026\\u0026(r.resizeFilter=this.resizeFilter.toObject()),r},hasCrop:function(){return this.cropX||this.cropY||this.width\\u003cthis._element.width||this.height\\u003cthis._element.height},_toSVG:function(){var t,e=[],i=[],r=this._element,n=-this.width/2,o=-this.height/2,s=\\\"\\\",a=\\\"\\\";if(!r)return[];if(this.hasCrop()){var h=T.Object.__uid++;e.push('\\u003cclipPath id=\\\"imageCrop_'+h+'\\\"\\u003e\\\\n','\\\\t\\u003crect x=\\\"'+n+'\\\" y=\\\"'+o+'\\\" width=\\\"'+this.width+'\\\" height=\\\"'+this.height+'\\\" /\\u003e\\\\n',\\\"\\u003c/clipPath\\u003e\\\\n\\\"),s=' clip-path=\\\"url(#imageCrop_'+h+')\\\" '}if(this.imageSmoothing||(a='\\\" image-rendering=\\\"optimizeSpeed'),i.push(\\\"\\\\t\\u003cimage \\\",\\\"COMMON_PARTS\\\",'xlink:href=\\\"',this.getSvgSrc(!0),'\\\" x=\\\"',n-this.cropX,'\\\" y=\\\"',o-this.cropY,'\\\" width=\\\"',r.width||r.naturalWidth,'\\\" height=\\\"',r.height||r.height,a,'\\\"',s,\\\"\\u003e\\u003c/image\\u003e\\\\n\\\"),this.stroke||this.strokeDashArray){var c=this.fill;this.fill=null,t=[\\\"\\\\t\\u003crect \\\",'x=\\\"',n,'\\\" y=\\\"',o,'\\\" width=\\\"',this.width,'\\\" height=\\\"',this.height,'\\\" style=\\\"',this.getSvgStyles(),'\\\"/\\u003e\\\\n'],this.fill=c}return e=\\\"fill\\\"!==this.paintFirst?e.concat(t,i):e.concat(i,t)},getSrc:function(t){var e=t?this._element:this._originalElement;return e?e.toDataURL?e.toDataURL():this.srcFromAttribute?e.getAttribute(\\\"src\\\"):e.src:this.src||\\\"\\\"},setSrc:function(t,e,i){return T.util.loadImage(t,(function(t,r){this.setElement(t,i),this._setWidthHeight(),e\\u0026\\u0026e(this,r)}),this,i\\u0026\\u0026i.crossOrigin),this},toString:function(){return'#\\u003cfabric.Image: { src: \\\"'+this.getSrc()+'\\\" }\\u003e'},applyResizeFilters:function(){var t=this.resizeFilter,e=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),r=i.scaleX,n=i.scaleY,o=this._filteredEl||this._originalElement;if(this.group\\u0026\\u0026this.set(\\\"dirty\\\",!0),!t||r\\u003ee\\u0026\\u0026n\\u003ee)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=r,void(this._lastScaleY=n);T.filterBackend||(T.filterBackend=T.initFilterBackend());var s=T.util.createCanvasElement(),a=this._filteredEl?this.cacheKey+\\\"_filtered\\\":this.cacheKey,h=o.width,c=o.height;s.width=h,s.height=c,this._element=s,this._lastScaleX=t.scaleX=r,this._lastScaleY=t.scaleY=n,T.filterBackend.applyFilters([t],o,h,c,this._element,a),this._filterScalingX=s.width/this._originalElement.width,this._filterScalingY=s.height/this._originalElement.height},applyFilters:function(t){if(t=(t=t||this.filters||[]).filter((function(t){return t\\u0026\\u0026!t.isNeutralState()})),this.set(\\\"dirty\\\",!0),this.removeTexture(this.cacheKey+\\\"_filtered\\\"),0===t.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var e=this._originalElement,i=e.naturalWidth||e.width,r=e.naturalHeight||e.height;if(this._element===this._originalElement){var n=T.util.createCanvasElement();n.width=i,n.height=r,this._element=n,this._filteredEl=n}else this._element=this._filteredEl,this._filteredEl.getContext(\\\"2d\\\").clearRect(0,0,i,r),this._lastScaleX=1,this._lastScaleY=1;return T.filterBackend||(T.filterBackend=T.initFilterBackend()),T.filterBackend.applyFilters(t,this._originalElement,i,r,this._element,this.cacheKey),this._originalElement.width===this._element.width\\u0026\\u0026this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(t){T.util.setImageSmoothing(t,this.imageSmoothing),!0!==this.isMoving\\u0026\\u0026this.resizeFilter\\u0026\\u0026this._needsResize()\\u0026\\u0026this.applyResizeFilters(),this._stroke(t),this._renderPaintInOrder(t)},drawCacheOnCanvas:function(t){T.util.setImageSmoothing(t,this.imageSmoothing),T.Object.prototype.drawCacheOnCanvas.call(this,t)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(t){var e=this._element;if(e){var i=this._filterScalingX,r=this._filterScalingY,n=this.width,o=this.height,s=Math.min,a=Math.max,h=a(this.cropX,0),c=a(this.cropY,0),l=e.naturalWidth||e.width,u=e.naturalHeight||e.height,f=h*i,d=c*r,g=s(n*i,l-f),p=s(o*r,u-d),v=-n/2,m=-o/2,y=s(n,l/i-h),_=s(o,u/r-c);e\\u0026\\u0026t.drawImage(e,f,d,g,p,v,m,y,_)}},_needsResize:function(){var t=this.getTotalObjectScaling();return t.scaleX!==this._lastScaleX||t.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(t,e){this.setElement(T.util.getById(t),e),T.util.addClass(this.getElement(),T.Image.CSS_CANVAS)},_initConfig:function(t){t||(t={}),this.setOptions(t),this._setWidthHeight(t)},_initFilters:function(t,e){t\\u0026\\u0026t.length?T.util.enlivenObjects(t,(function(t){e\\u0026\\u0026e(t)}),\\\"fabric.Image.filters\\\"):e\\u0026\\u0026e()},_setWidthHeight:function(t){t||(t={});var e=this.getElement();this.width=t.width||e.naturalWidth||e.width||0,this.height=t.height||e.naturalHeight||e.height||0},parsePreserveAspectRatioAttribute:function(){var t,e=T.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||\\\"\\\"),i=this._element.width,r=this._element.height,n=1,o=1,s=0,a=0,h=0,c=0,l=this.width,u=this.height,f={width:l,height:u};return!e||\\\"none\\\"===e.alignX\\u0026\\u0026\\\"none\\\"===e.alignY?(n=l/i,o=u/r):(\\\"meet\\\"===e.meetOrSlice\\u0026\\u0026(t=(l-i*(n=o=T.util.findScaleToFit(this._element,f)))/2,\\\"Min\\\"===e.alignX\\u0026\\u0026(s=-t),\\\"Max\\\"===e.alignX\\u0026\\u0026(s=t),t=(u-r*o)/2,\\\"Min\\\"===e.alignY\\u0026\\u0026(a=-t),\\\"Max\\\"===e.alignY\\u0026\\u0026(a=t)),\\\"slice\\\"===e.meetOrSlice\\u0026\\u0026(t=i-l/(n=o=T.util.findScaleToCover(this._element,f)),\\\"Mid\\\"===e.alignX\\u0026\\u0026(h=t/2),\\\"Max\\\"===e.alignX\\u0026\\u0026(h=t),t=r-u/o,\\\"Mid\\\"===e.alignY\\u0026\\u0026(c=t/2),\\\"Max\\\"===e.alignY\\u0026\\u0026(c=t),i=l/n,r=u/o)),{width:i,height:r,scaleX:n,scaleY:o,offsetLeft:s,offsetTop:a,cropX:h,cropY:c}}}),T.Image.CSS_CANVAS=\\\"canvas-img\\\",T.Image.prototype.getSvgSrc=T.Image.prototype.getSrc,T.Image.fromObject=function(t,e){var i=T.util.object.clone(t);T.util.loadImage(i.src,(function(t,r){r?e\\u0026\\u0026e(null,!0):T.Image.prototype._initFilters.call(i,i.filters,(function(r){i.filters=r||[],T.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(r){i.resizeFilter=r[0],T.util.enlivenObjects([i.clipPath],(function(r){i.clipPath=r[0];var n=new T.Image(t,i);e(n,!1)}))}))}))}),null,i.crossOrigin)},T.Image.fromURL=function(t,e,i){T.util.loadImage(t,(function(t,r){e\\u0026\\u0026e(new T.Image(t,i),r)}),null,i\\u0026\\u0026i.crossOrigin)},T.Image.ATTRIBUTE_NAMES=T.SHARED_ATTRIBUTES.concat(\\\"x y width height preserveAspectRatio xlink:href crossOrigin image-rendering\\\".split(\\\" \\\")),T.Image.fromElement=function(t,i,r){var n=T.parseAttributes(t,T.Image.ATTRIBUTE_NAMES);T.Image.fromURL(n[\\\"xlink:href\\\"],i,e(r?T.util.object.clone(r):{},n))})}(t),T.util.object.extend(T.Object.prototype,{_getAngleValueForStraighten:function(){var t=this.angle%360;return t\\u003e0?90*Math.round((t-1)/90):90*Math.round(t/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(t){var e=function(){},i=(t=t||{}).onComplete||e,r=t.onChange||e,n=this;return T.util.animate({startValue:this.get(\\\"angle\\\"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(t){n.rotate(t),r()},onComplete:function(){n.setCoords(),i()}}),this}}),T.util.object.extend(T.StaticCanvas.prototype,{straightenObject:function(t){return t.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(t){return t.fxStraighten({onChange:this.requestRenderAllBound}),this}}),function(){function t(t,e){var i=\\\"precision \\\"+e+\\\" float;\\\\nvoid main(){}\\\",r=t.createShader(t.FRAGMENT_SHADER);return t.shaderSource(r,i),t.compileShader(r),!!t.getShaderParameter(r,t.COMPILE_STATUS)}function e(t){t\\u0026\\u0026t.tileSize\\u0026\\u0026(this.tileSize=t.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}T.isWebglSupported=function(e){if(T.isLikelyNode)return!1;e=e||T.WebglFilterBackend.prototype.tileSize;var i=document.createElement(\\\"canvas\\\"),r=i.getContext(\\\"webgl\\\")||i.getContext(\\\"experimental-webgl\\\"),n=!1;if(r){T.maxTextureSize=r.getParameter(r.MAX_TEXTURE_SIZE),n=T.maxTextureSize\\u003e=e;for(var o=[\\\"highp\\\",\\\"mediump\\\",\\\"lowp\\\"],s=0;s\\u003c3;s++)if(t(r,o[s])){T.webGlPrecision=o[s];break}}return this.isSupported=n,n},T.WebglFilterBackend=e,e.prototype={tileSize:2048,resources:{},setupGLContext:function(t,e){this.dispose(),this.createWebGLCanvas(t,e),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(t,e)},chooseFastestCopyGLTo2DMethod:function(t,e){var i,r=void 0!==window.performance;try{new ImageData(1,1),i=!0}catch(t){i=!1}var n=\\\"undefined\\\"!=typeof ArrayBuffer,o=\\\"undefined\\\"!=typeof Uint8ClampedArray;if(r\\u0026\\u0026i\\u0026\\u0026n\\u0026\\u0026o){var s=T.util.createCanvasElement(),a=new ArrayBuffer(t*e*4);if(T.forceGLPutImageData)return this.imageBuffer=a,void(this.copyGLTo2D=A);var h,c,l={imageBuffer:a,destinationWidth:t,destinationHeight:e,targetCanvas:s};s.width=t,s.height=e,h=window.performance.now(),k.call(l,this.gl,l),c=window.performance.now()-h,h=window.performance.now(),A.call(l,this.gl,l),c\\u003ewindow.performance.now()-h?(this.imageBuffer=a,this.copyGLTo2D=A):this.copyGLTo2D=k}},createWebGLCanvas:function(t,e){var i=T.util.createCanvasElement();i.width=t,i.height=e;var r={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},n=i.getContext(\\\"webgl\\\",r);n||(n=i.getContext(\\\"experimental-webgl\\\",r)),n\\u0026\\u0026(n.clearColor(0,0,0,0),this.canvas=i,this.gl=n)},applyFilters:function(t,e,i,r,n,o){var s,a=this.gl;o\\u0026\\u0026(s=this.getCachedTexture(o,e));var h={originalWidth:e.width||e.originalWidth,originalHeight:e.height||e.originalHeight,sourceWidth:i,sourceHeight:r,destinationWidth:i,destinationHeight:r,context:a,sourceTexture:this.createTexture(a,i,r,!s\\u0026\\u0026e),targetTexture:this.createTexture(a,i,r),originalTexture:s||this.createTexture(a,i,r,!s\\u0026\\u0026e),passes:t.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},c=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,c),t.forEach((function(t){t\\u0026\\u0026t.applyTo(h)})),function(t){var e=t.targetCanvas,i=e.width,r=e.height,n=t.destinationWidth,o=t.destinationHeight;i===n\\u0026\\u0026r===o||(e.width=n,e.height=o)}(h),this.copyGLTo2D(a,h),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(h.sourceTexture),a.deleteTexture(h.targetTexture),a.deleteFramebuffer(c),n.getContext(\\\"2d\\\").setTransform(1,0,0,1,0,0),h},dispose:function(){this.canvas\\u0026\\u0026(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(t,e,i,r){var n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),r?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),n},getCachedTexture:function(t,e){if(this.textureCache[t])return this.textureCache[t];var i=this.createTexture(this.gl,e.width,e.height,e);return this.textureCache[t]=i,i},evictCachesForKey:function(t){this.textureCache[t]\\u0026\\u0026(this.gl.deleteTexture(this.textureCache[t]),delete this.textureCache[t])},copyGLTo2D:k,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var t=this.gl,e={renderer:\\\"\\\",vendor:\\\"\\\"};if(!t)return e;var i=t.getExtension(\\\"WEBGL_debug_renderer_info\\\");if(i){var r=t.getParameter(i.UNMASKED_RENDERER_WEBGL),n=t.getParameter(i.UNMASKED_VENDOR_WEBGL);r\\u0026\\u0026(e.renderer=r.toLowerCase()),n\\u0026\\u0026(e.vendor=n.toLowerCase())}return this.gpuInfo=e,e}}}(),function(){var t=function(){};function e(){}T.Canvas2dFilterBackend=e,e.prototype={evictCachesForKey:t,dispose:t,clearWebGLCaches:t,resources:{},applyFilters:function(t,e,i,r,n){var o=n.getContext(\\\"2d\\\");o.drawImage(e,0,0,i,r);var s={sourceWidth:i,sourceHeight:r,imageData:o.getImageData(0,0,i,r),originalEl:e,originalImageData:o.getImageData(0,0,i,r),canvasEl:n,ctx:o,filterBackend:this};return t.forEach((function(t){t.applyTo(s)})),s.imageData.width===i\\u0026\\u0026s.imageData.height===r||(n.width=s.imageData.width,n.height=s.imageData.height),o.putImageData(s.imageData,0,0),s}}}(),T.Image=T.Image||{},T.Image.filters=T.Image.filters||{},T.Image.filters.BaseFilter=T.util.createClass({type:\\\"BaseFilter\\\",vertexSource:\\\"attribute vec2 aPosition;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvTexCoord = aPosition;\\\\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\\\\n}\\\",fragmentSource:\\\"precision highp float;\\\\nvarying vec2 vTexCoord;\\\\nuniform sampler2D uTexture;\\\\nvoid main() {\\\\ngl_FragColor = texture2D(uTexture, vTexCoord);\\\\n}\\\",initialize:function(t){t\\u0026\\u0026this.setOptions(t)},setOptions:function(t){for(var e in t)this[e]=t[e]},createProgram:function(t,e,i){e=e||this.fragmentSource,i=i||this.vertexSource,\\\"highp\\\"!==T.webGlPrecision\\u0026\\u0026(e=e.replace(/precision highp float/g,\\\"precision \\\"+T.webGlPrecision+\\\" float\\\"));var r=t.createShader(t.VERTEX_SHADER);if(t.shaderSource(r,i),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS))throw new Error(\\\"Vertex shader compile error for \\\"+this.type+\\\": \\\"+t.getShaderInfoLog(r));var n=t.createShader(t.FRAGMENT_SHADER);if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error(\\\"Fragment shader compile error for \\\"+this.type+\\\": \\\"+t.getShaderInfoLog(n));var o=t.createProgram();if(t.attachShader(o,r),t.attachShader(o,n),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS))throw new Error('Shader link error for \\\"${this.type}\\\" '+t.getProgramInfoLog(o));var s=this.getAttributeLocations(t,o),a=this.getUniformLocations(t,o)||{};return a.uStepW=t.getUniformLocation(o,\\\"uStepW\\\"),a.uStepH=t.getUniformLocation(o,\\\"uStepH\\\"),{program:o,attributeLocations:s,uniformLocations:a}},getAttributeLocations:function(t,e){return{aPosition:t.getAttribLocation(e,\\\"aPosition\\\")}},getUniformLocations:function(){return{}},sendAttributeData:function(t,e,i){var r=e.aPosition,n=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,n),t.enableVertexAttribArray(r),t.vertexAttribPointer(r,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW)},_setupFrameBuffer:function(t){var e,i,r=t.context;t.passes\\u003e1?(e=t.destinationWidth,i=t.destinationHeight,t.sourceWidth===e\\u0026\\u0026t.sourceHeight===i||(r.deleteTexture(t.targetTexture),t.targetTexture=t.filterBackend.createTexture(r,e,i)),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,t.targetTexture,0)):(r.bindFramebuffer(r.FRAMEBUFFER,null),r.finish())},_swapTextures:function(t){t.passes--,t.pass++;var e=t.targetTexture;t.targetTexture=t.sourceTexture,t.sourceTexture=e},isNeutralState:function(){var t=this.mainParameter,e=T.Image.filters[this.type].prototype;if(t){if(Array.isArray(e[t])){for(var i=e[t].length;i--;)if(this[t][i]!==e[t][i])return!1;return!0}return e[t]===this[t]}return!1},applyTo:function(t){t.webgl?(this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},retrieveShader:function(t){return t.programCache.hasOwnProperty(this.type)||(t.programCache[this.type]=this.createProgram(t.context)),t.programCache[this.type]},applyToWebGL:function(t){var e=t.context,i=this.retrieveShader(t);0===t.pass\\u0026\\u0026t.originalTexture?e.bindTexture(e.TEXTURE_2D,t.originalTexture):e.bindTexture(e.TEXTURE_2D,t.sourceTexture),e.useProgram(i.program),this.sendAttributeData(e,i.attributeLocations,t.aPosition),e.uniform1f(i.uniformLocations.uStepW,1/t.sourceWidth),e.uniform1f(i.uniformLocations.uStepH,1/t.sourceHeight),this.sendUniformData(e,i.uniformLocations),e.viewport(0,0,t.destinationWidth,t.destinationHeight),e.drawArrays(e.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(t,e,i){t.activeTexture(i),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE0)},unbindAdditionalTexture:function(t,e){t.activeTexture(e),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(t){this[this.mainParameter]=t},sendUniformData:function(){},createHelpLayer:function(t){if(!t.helpLayer){var e=document.createElement(\\\"canvas\\\");e.width=t.sourceWidth,e.height=t.sourceHeight,t.helpLayer=e}},toObject:function(){var t={type:this.type},e=this.mainParameter;return e\\u0026\\u0026(t[e]=this[e]),t},toJSON:function(){return this.toObject()}}),T.Image.filters.BaseFilter.fromObject=function(t,e){var i=new T.Image.filters[t.type](t);return e\\u0026\\u0026e(i),i},function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.ColorMatrix=r(i.BaseFilter,{type:\\\"ColorMatrix\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nvarying vec2 vTexCoord;\\\\nuniform mat4 uColorMatrix;\\\\nuniform vec4 uConstants;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\ncolor *= uColorMatrix;\\\\ncolor += uConstants;\\\\ngl_FragColor = color;\\\\n}\\\",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:\\\"matrix\\\",colorsOnly:!0,initialize:function(t){this.callSuper(\\\"initialize\\\",t),this.matrix=this.matrix.slice(0)},applyTo2d:function(t){var e,i,r,n,o,s=t.imageData.data,a=s.length,h=this.matrix,c=this.colorsOnly;for(o=0;o\\u003ca;o+=4)e=s[o],i=s[o+1],r=s[o+2],c?(s[o]=e*h[0]+i*h[1]+r*h[2]+255*h[4],s[o+1]=e*h[5]+i*h[6]+r*h[7]+255*h[9],s[o+2]=e*h[10]+i*h[11]+r*h[12]+255*h[14]):(n=s[o+3],s[o]=e*h[0]+i*h[1]+r*h[2]+n*h[3]+255*h[4],s[o+1]=e*h[5]+i*h[6]+r*h[7]+n*h[8]+255*h[9],s[o+2]=e*h[10]+i*h[11]+r*h[12]+n*h[13]+255*h[14],s[o+3]=e*h[15]+i*h[16]+r*h[17]+n*h[18]+255*h[19])},getUniformLocations:function(t,e){return{uColorMatrix:t.getUniformLocation(e,\\\"uColorMatrix\\\"),uConstants:t.getUniformLocation(e,\\\"uConstants\\\")}},sendUniformData:function(t,e){var i=this.matrix,r=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];t.uniformMatrix4fv(e.uColorMatrix,!1,r),t.uniform4fv(e.uConstants,n)}}),e.Image.filters.ColorMatrix.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Brightness=r(i.BaseFilter,{type:\\\"Brightness\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uBrightness;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\ncolor.rgb += uBrightness;\\\\ngl_FragColor = color;\\\\n}\\\",brightness:0,mainParameter:\\\"brightness\\\",applyTo2d:function(t){if(0!==this.brightness){var e,i=t.imageData.data,r=i.length,n=Math.round(255*this.brightness);for(e=0;e\\u003cr;e+=4)i[e]=i[e]+n,i[e+1]=i[e+1]+n,i[e+2]=i[e+2]+n}},getUniformLocations:function(t,e){return{uBrightness:t.getUniformLocation(e,\\\"uBrightness\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uBrightness,this.brightness)}}),e.Image.filters.Brightness.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.Convolute=n(r.BaseFilter,{type:\\\"Convolute\\\",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[9];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\nfor (float h = 0.0; h \\u003c 3.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 3.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\\\\n}\\\\n}\\\\ngl_FragColor = color;\\\\n}\\\",Convolute_3_0:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[9];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\nfor (float h = 0.0; h \\u003c 3.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 3.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\\\\n}\\\\n}\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\ngl_FragColor = color;\\\\ngl_FragColor.a = alpha;\\\\n}\\\",Convolute_5_1:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[25];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\nfor (float h = 0.0; h \\u003c 5.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 5.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\\\\n}\\\\n}\\\\ngl_FragColor = color;\\\\n}\\\",Convolute_5_0:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[25];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\nfor (float h = 0.0; h \\u003c 5.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 5.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\\\\n}\\\\n}\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\ngl_FragColor = color;\\\\ngl_FragColor.a = alpha;\\\\n}\\\",Convolute_7_1:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[49];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\nfor (float h = 0.0; h \\u003c 7.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 7.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\\\\n}\\\\n}\\\\ngl_FragColor = color;\\\\n}\\\",Convolute_7_0:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[49];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\nfor (float h = 0.0; h \\u003c 7.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 7.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\\\\n}\\\\n}\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\ngl_FragColor = color;\\\\ngl_FragColor.a = alpha;\\\\n}\\\",Convolute_9_1:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[81];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\nfor (float h = 0.0; h \\u003c 9.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 9.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\\\\n}\\\\n}\\\\ngl_FragColor = color;\\\\n}\\\",Convolute_9_0:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[81];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\nfor (float h = 0.0; h \\u003c 9.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 9.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\\\\n}\\\\n}\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\ngl_FragColor = color;\\\\ngl_FragColor.a = alpha;\\\\n}\\\"},retrieveShader:function(t){var e=Math.sqrt(this.matrix.length),i=this.type+\\\"_\\\"+e+\\\"_\\\"+(this.opaque?1:0),r=this.fragmentSource[i];return t.programCache.hasOwnProperty(i)||(t.programCache[i]=this.createProgram(t.context,r)),t.programCache[i]},applyTo2d:function(t){var e,i,r,n,o,s,a,h,c,l,u,f,d,g=t.imageData,p=g.data,v=this.matrix,m=Math.round(Math.sqrt(v.length)),y=Math.floor(m/2),_=g.width,b=g.height,x=t.ctx.createImageData(_,b),C=x.data,w=this.opaque?1:0;for(u=0;u\\u003cb;u++)for(l=0;l\\u003c_;l++){for(o=4*(u*_+l),e=0,i=0,r=0,n=0,d=0;d\\u003cm;d++)for(f=0;f\\u003cm;f++)s=l+f-y,(a=u+d-y)\\u003c0||a\\u003e=b||s\\u003c0||s\\u003e=_||(h=4*(a*_+s),c=v[d*m+f],e+=p[h]*c,i+=p[h+1]*c,r+=p[h+2]*c,w||(n+=p[h+3]*c));C[o]=e,C[o+1]=i,C[o+2]=r,C[o+3]=w?p[o+3]:n}t.imageData=x},getUniformLocations:function(t,e){return{uMatrix:t.getUniformLocation(e,\\\"uMatrix\\\"),uOpaque:t.getUniformLocation(e,\\\"uOpaque\\\"),uHalfSize:t.getUniformLocation(e,\\\"uHalfSize\\\"),uSize:t.getUniformLocation(e,\\\"uSize\\\")}},sendUniformData:function(t,e){t.uniform1fv(e.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper(\\\"toObject\\\"),{opaque:this.opaque,matrix:this.matrix})}}),e.Image.filters.Convolute.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Grayscale=r(i.BaseFilter,{type:\\\"Grayscale\\\",fragmentSource:{average:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nfloat average = (color.r + color.b + color.g) / 3.0;\\\\ngl_FragColor = vec4(average, average, average, color.a);\\\\n}\\\",lightness:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform int uMode;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 col = texture2D(uTexture, vTexCoord);\\\\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\\\\ngl_FragColor = vec4(average, average, average, col.a);\\\\n}\\\",luminosity:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform int uMode;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 col = texture2D(uTexture, vTexCoord);\\\\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\\\\ngl_FragColor = vec4(average, average, average, col.a);\\\\n}\\\"},mode:\\\"average\\\",mainParameter:\\\"mode\\\",applyTo2d:function(t){var e,i,r=t.imageData.data,n=r.length,o=this.mode;for(e=0;e\\u003cn;e+=4)\\\"average\\\"===o?i=(r[e]+r[e+1]+r[e+2])/3:\\\"lightness\\\"===o?i=(Math.min(r[e],r[e+1],r[e+2])+Math.max(r[e],r[e+1],r[e+2]))/2:\\\"luminosity\\\"===o\\u0026\\u0026(i=.21*r[e]+.72*r[e+1]+.07*r[e+2]),r[e]=i,r[e+1]=i,r[e+2]=i},retrieveShader:function(t){var e=this.type+\\\"_\\\"+this.mode;if(!t.programCache.hasOwnProperty(e)){var i=this.fragmentSource[this.mode];t.programCache[e]=this.createProgram(t.context,i)}return t.programCache[e]},getUniformLocations:function(t,e){return{uMode:t.getUniformLocation(e,\\\"uMode\\\")}},sendUniformData:function(t,e){t.uniform1i(e.uMode,1)},isNeutralState:function(){return!1}}),e.Image.filters.Grayscale.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Invert=r(i.BaseFilter,{type:\\\"Invert\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform int uInvert;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nif (uInvert == 1) {\\\\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\\\\n} else {\\\\ngl_FragColor = color;\\\\n}\\\\n}\\\",invert:!0,mainParameter:\\\"invert\\\",applyTo2d:function(t){var e,i=t.imageData.data,r=i.length;for(e=0;e\\u003cr;e+=4)i[e]=255-i[e],i[e+1]=255-i[e+1],i[e+2]=255-i[e+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(t,e){return{uInvert:t.getUniformLocation(e,\\\"uInvert\\\")}},sendUniformData:function(t,e){t.uniform1i(e.uInvert,this.invert)}}),e.Image.filters.Invert.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.Noise=n(r.BaseFilter,{type:\\\"Noise\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uStepH;\\\\nuniform float uNoise;\\\\nuniform float uSeed;\\\\nvarying vec2 vTexCoord;\\\\nfloat rand(vec2 co, float seed, float vScale) {\\\\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\\\\n}\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\\\\ngl_FragColor = color;\\\\n}\\\",mainParameter:\\\"noise\\\",noise:0,applyTo2d:function(t){if(0!==this.noise){var e,i,r=t.imageData.data,n=r.length,o=this.noise;for(e=0,n=r.length;e\\u003cn;e+=4)i=(.5-Math.random())*o,r[e]+=i,r[e+1]+=i,r[e+2]+=i}},getUniformLocations:function(t,e){return{uNoise:t.getUniformLocation(e,\\\"uNoise\\\"),uSeed:t.getUniformLocation(e,\\\"uSeed\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uNoise,this.noise/255),t.uniform1f(e.uSeed,Math.random())},toObject:function(){return i(this.callSuper(\\\"toObject\\\"),{noise:this.noise})}}),e.Image.filters.Noise.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Pixelate=r(i.BaseFilter,{type:\\\"Pixelate\\\",blocksize:4,mainParameter:\\\"blocksize\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uBlocksize;\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nfloat blockW = uBlocksize * uStepW;\\\\nfloat blockH = uBlocksize * uStepW;\\\\nint posX = int(vTexCoord.x / blockW);\\\\nint posY = int(vTexCoord.y / blockH);\\\\nfloat fposX = float(posX);\\\\nfloat fposY = float(posY);\\\\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\\\\nvec4 color = texture2D(uTexture, squareCoords);\\\\ngl_FragColor = color;\\\\n}\\\",applyTo2d:function(t){var e,i,r,n,o,s,a,h,c,l,u,f=t.imageData,d=f.data,g=f.height,p=f.width;for(i=0;i\\u003cg;i+=this.blocksize)for(r=0;r\\u003cp;r+=this.blocksize)for(n=d[e=4*i*p+4*r],o=d[e+1],s=d[e+2],a=d[e+3],l=Math.min(i+this.blocksize,g),u=Math.min(r+this.blocksize,p),h=i;h\\u003cl;h++)for(c=r;c\\u003cu;c++)d[e=4*h*p+4*c]=n,d[e+1]=o,d[e+2]=s,d[e+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(t,e){return{uBlocksize:t.getUniformLocation(e,\\\"uBlocksize\\\"),uStepW:t.getUniformLocation(e,\\\"uStepW\\\"),uStepH:t.getUniformLocation(e,\\\"uStepH\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uBlocksize,this.blocksize)}}),e.Image.filters.Pixelate.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.RemoveColor=n(r.BaseFilter,{type:\\\"RemoveColor\\\",color:\\\"#FFFFFF\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec4 uLow;\\\\nuniform vec4 uHigh;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\ngl_FragColor = texture2D(uTexture, vTexCoord);\\\\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) \\u0026\\u0026 all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\\\\ngl_FragColor.a = 0.0;\\\\n}\\\\n}\\\",distance:.02,useAlpha:!1,applyTo2d:function(t){var i,r,n,o,s=t.imageData.data,a=255*this.distance,h=new e.Color(this.color).getSource(),c=[h[0]-a,h[1]-a,h[2]-a],l=[h[0]+a,h[1]+a,h[2]+a];for(i=0;i\\u003cs.length;i+=4)r=s[i],n=s[i+1],o=s[i+2],r\\u003ec[0]\\u0026\\u0026n\\u003ec[1]\\u0026\\u0026o\\u003ec[2]\\u0026\\u0026r\\u003cl[0]\\u0026\\u0026n\\u003cl[1]\\u0026\\u0026o\\u003cl[2]\\u0026\\u0026(s[i+3]=0)},getUniformLocations:function(t,e){return{uLow:t.getUniformLocation(e,\\\"uLow\\\"),uHigh:t.getUniformLocation(e,\\\"uHigh\\\")}},sendUniformData:function(t,i){var r=new e.Color(this.color).getSource(),n=parseFloat(this.distance),o=[0+r[0]/255-n,0+r[1]/255-n,0+r[2]/255-n,1],s=[r[0]/255+n,r[1]/255+n,r[2]/255+n,1];t.uniform4fv(i.uLow,o),t.uniform4fv(i.uHigh,s)},toObject:function(){return i(this.callSuper(\\\"toObject\\\"),{color:this.color,distance:this.distance})}}),e.Image.filters.RemoveColor.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var o in n)i[o]=r(i.ColorMatrix,{type:o,matrix:n[o],mainParameter:!1,colorsOnly:!0}),e.Image.filters[o].fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric,i=e.Image.filters,r=e.util.createClass;i.BlendColor=r(i.BaseFilter,{type:\\\"BlendColor\\\",color:\\\"#F95C63\\\",mode:\\\"multiply\\\",alpha:1,fragmentSource:{multiply:\\\"gl_FragColor.rgb *= uColor.rgb;\\\\n\\\",screen:\\\"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\\\\n\\\",add:\\\"gl_FragColor.rgb += uColor.rgb;\\\\n\\\",diff:\\\"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\\\\n\\\",subtract:\\\"gl_FragColor.rgb -= uColor.rgb;\\\\n\\\",lighten:\\\"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\\\\n\\\",darken:\\\"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\\\\n\\\",exclusion:\\\"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\\\\n\\\",overlay:\\\"if (uColor.r \\u003c 0.5) {\\\\ngl_FragColor.r *= 2.0 * uColor.r;\\\\n} else {\\\\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\\\\n}\\\\nif (uColor.g \\u003c 0.5) {\\\\ngl_FragColor.g *= 2.0 * uColor.g;\\\\n} else {\\\\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\\\\n}\\\\nif (uColor.b \\u003c 0.5) {\\\\ngl_FragColor.b *= 2.0 * uColor.b;\\\\n} else {\\\\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\\\\n}\\\\n\\\",tint:\\\"gl_FragColor.rgb *= (1.0 - uColor.a);\\\\ngl_FragColor.rgb += uColor.rgb;\\\\n\\\"},buildSource:function(t){return\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec4 uColor;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\ngl_FragColor = color;\\\\nif (color.a \\u003e 0.0) {\\\\n\\\"+this.fragmentSource[t]+\\\"}\\\\n}\\\"},retrieveShader:function(t){var e,i=this.type+\\\"_\\\"+this.mode;return t.programCache.hasOwnProperty(i)||(e=this.buildSource(this.mode),t.programCache[i]=this.createProgram(t.context,e)),t.programCache[i]},applyTo2d:function(t){var i,r,n,o,s,a,h,c=t.imageData.data,l=c.length,u=1-this.alpha;i=(h=new e.Color(this.color).getSource())[0]*this.alpha,r=h[1]*this.alpha,n=h[2]*this.alpha;for(var f=0;f\\u003cl;f+=4)switch(o=c[f],s=c[f+1],a=c[f+2],this.mode){case\\\"multiply\\\":c[f]=o*i/255,c[f+1]=s*r/255,c[f+2]=a*n/255;break;case\\\"screen\\\":c[f]=255-(255-o)*(255-i)/255,c[f+1]=255-(255-s)*(255-r)/255,c[f+2]=255-(255-a)*(255-n)/255;break;case\\\"add\\\":c[f]=o+i,c[f+1]=s+r,c[f+2]=a+n;break;case\\\"diff\\\":case\\\"difference\\\":c[f]=Math.abs(o-i),c[f+1]=Math.abs(s-r),c[f+2]=Math.abs(a-n);break;case\\\"subtract\\\":c[f]=o-i,c[f+1]=s-r,c[f+2]=a-n;break;case\\\"darken\\\":c[f]=Math.min(o,i),c[f+1]=Math.min(s,r),c[f+2]=Math.min(a,n);break;case\\\"lighten\\\":c[f]=Math.max(o,i),c[f+1]=Math.max(s,r),c[f+2]=Math.max(a,n);break;case\\\"overlay\\\":c[f]=i\\u003c128?2*o*i/255:255-2*(255-o)*(255-i)/255,c[f+1]=r\\u003c128?2*s*r/255:255-2*(255-s)*(255-r)/255,c[f+2]=n\\u003c128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case\\\"exclusion\\\":c[f]=i+o-2*i*o/255,c[f+1]=r+s-2*r*s/255,c[f+2]=n+a-2*n*a/255;break;case\\\"tint\\\":c[f]=i+o*u,c[f+1]=r+s*u,c[f+2]=n+a*u}},getUniformLocations:function(t,e){return{uColor:t.getUniformLocation(e,\\\"uColor\\\")}},sendUniformData:function(t,i){var r=new e.Color(this.color).getSource();r[0]=this.alpha*r[0]/255,r[1]=this.alpha*r[1]/255,r[2]=this.alpha*r[2]/255,r[3]=this.alpha,t.uniform4fv(i.uColor,r)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendColor.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric,i=e.Image.filters,r=e.util.createClass;i.BlendImage=r(i.BaseFilter,{type:\\\"BlendImage\\\",image:null,mode:\\\"multiply\\\",alpha:1,vertexSource:\\\"attribute vec2 aPosition;\\\\nvarying vec2 vTexCoord;\\\\nvarying vec2 vTexCoord2;\\\\nuniform mat3 uTransformMatrix;\\\\nvoid main() {\\\\nvTexCoord = aPosition;\\\\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\\\\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\\\\n}\\\",fragmentSource:{multiply:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform sampler2D uImage;\\\\nuniform vec4 uColor;\\\\nvarying vec2 vTexCoord;\\\\nvarying vec2 vTexCoord2;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nvec4 color2 = texture2D(uImage, vTexCoord2);\\\\ncolor.rgba *= color2.rgba;\\\\ngl_FragColor = color;\\\\n}\\\",mask:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform sampler2D uImage;\\\\nuniform vec4 uColor;\\\\nvarying vec2 vTexCoord;\\\\nvarying vec2 vTexCoord2;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nvec4 color2 = texture2D(uImage, vTexCoord2);\\\\ncolor.a = color2.a;\\\\ngl_FragColor = color;\\\\n}\\\"},retrieveShader:function(t){var e=this.type+\\\"_\\\"+this.mode,i=this.fragmentSource[this.mode];return t.programCache.hasOwnProperty(e)||(t.programCache[e]=this.createProgram(t.context,i)),t.programCache[e]},applyToWebGL:function(t){var e=t.context,i=this.createTexture(t.filterBackend,this.image);this.bindAdditionalTexture(e,i,e.TEXTURE1),this.callSuper(\\\"applyToWebGL\\\",t),this.unbindAdditionalTexture(e,e.TEXTURE1)},createTexture:function(t,e){return t.getCachedTexture(e.cacheKey,e._element)},calculateMatrix:function(){var t=this.image,e=t._element.width,i=t._element.height;return[1/t.scaleX,0,0,0,1/t.scaleY,0,-t.left/e,-t.top/i,1]},applyTo2d:function(t){var i,r,n,o,s,a,h,c,l,u,f,d=t.imageData,g=t.filterBackend.resources,p=d.data,v=p.length,m=d.width,y=d.height,_=this.image;g.blendImage||(g.blendImage=e.util.createCanvasElement()),u=(l=g.blendImage).getContext(\\\"2d\\\"),l.width!==m||l.height!==y?(l.width=m,l.height=y):u.clearRect(0,0,m,y),u.setTransform(_.scaleX,0,0,_.scaleY,_.left,_.top),u.drawImage(_._element,0,0,m,y),f=u.getImageData(0,0,m,y).data;for(var b=0;b\\u003cv;b+=4)switch(s=p[b],a=p[b+1],h=p[b+2],c=p[b+3],i=f[b],r=f[b+1],n=f[b+2],o=f[b+3],this.mode){case\\\"multiply\\\":p[b]=s*i/255,p[b+1]=a*r/255,p[b+2]=h*n/255,p[b+3]=c*o/255;break;case\\\"mask\\\":p[b+3]=o}},getUniformLocations:function(t,e){return{uTransformMatrix:t.getUniformLocation(e,\\\"uTransformMatrix\\\"),uImage:t.getUniformLocation(e,\\\"uImage\\\")}},sendUniformData:function(t,e){var i=this.calculateMatrix();t.uniform1i(e.uImage,1),t.uniformMatrix3fv(e.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image\\u0026\\u0026this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendImage.fromObject=function(t,i){e.Image.fromObject(t.image,(function(r){var n=e.util.object.clone(t);n.image=r,i(new e.Image.filters.BlendImage(n))}))}}(t),function(t){var e=t.fabric||(t.fabric={}),i=Math.pow,r=Math.floor,n=Math.sqrt,o=Math.abs,s=Math.round,a=Math.sin,h=Math.ceil,c=e.Image.filters,l=e.util.createClass;c.Resize=l(c.BaseFilter,{type:\\\"Resize\\\",resizeType:\\\"hermite\\\",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(t,e){return{uDelta:t.getUniformLocation(e,\\\"uDelta\\\"),uTaps:t.getUniformLocation(e,\\\"uTaps\\\")}},sendUniformData:function(t,e){t.uniform2fv(e.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),t.uniform1fv(e.uTaps,this.taps)},retrieveShader:function(t){var e=this.getFilterWindow(),i=this.type+\\\"_\\\"+e;if(!t.programCache.hasOwnProperty(i)){var r=this.generateShader(e);t.programCache[i]=this.createProgram(t.context,r)}return t.programCache[i]},getFilterWindow:function(){var t=this.tempScale;return Math.ceil(this.lanczosLobes/t)},getTaps:function(){for(var t=this.lanczosCreate(this.lanczosLobes),e=this.tempScale,i=this.getFilterWindow(),r=new Array(i),n=1;n\\u003c=i;n++)r[n-1]=t(n*e);return r},generateShader:function(t){for(var e=new Array(t),i=this.fragmentSourceTOP,r=1;r\\u003c=t;r++)e[r-1]=r+\\\".0 * uDelta\\\";return i+=\\\"uniform float uTaps[\\\"+t+\\\"];\\\\n\\\",i+=\\\"void main() {\\\\n\\\",i+=\\\"  vec4 color = texture2D(uTexture, vTexCoord);\\\\n\\\",i+=\\\"  float sum = 1.0;\\\\n\\\",e.forEach((function(t,e){i+=\\\"  color += texture2D(uTexture, vTexCoord + \\\"+t+\\\") * uTaps[\\\"+e+\\\"];\\\\n\\\",i+=\\\"  color += texture2D(uTexture, vTexCoord - \\\"+t+\\\") * uTaps[\\\"+e+\\\"];\\\\n\\\",i+=\\\"  sum += 2.0 * uTaps[\\\"+e+\\\"];\\\\n\\\"})),i+=\\\"  gl_FragColor = color / sum;\\\\n\\\",i+=\\\"}\\\"},fragmentSourceTOP:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec2 uDelta;\\\\nvarying vec2 vTexCoord;\\\\n\\\",applyTo:function(t){t.webgl?(t.passes++,this.width=t.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=t.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),t.destinationWidth=this.dW,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceWidth=t.destinationWidth,this.height=t.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),t.destinationHeight=this.dH,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceHeight=t.destinationHeight):this.applyTo2d(t)},isNeutralState:function(){return 1===this.scaleX\\u0026\\u00261===this.scaleY},lanczosCreate:function(t){return function(e){if(e\\u003e=t||e\\u003c=-t)return 0;if(e\\u003c1.1920929e-7\\u0026\\u0026e\\u003e-1.1920929e-7)return 1;var i=(e*=Math.PI)/t;return a(e)/e*a(i)/i}},applyTo2d:function(t){var e=t.imageData,i=this.scaleX,r=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/r;var n,o=e.width,a=e.height,h=s(o*i),c=s(a*r);\\\"sliceHack\\\"===this.resizeType?n=this.sliceByTwo(t,o,a,h,c):\\\"hermite\\\"===this.resizeType?n=this.hermiteFastResize(t,o,a,h,c):\\\"bilinear\\\"===this.resizeType?n=this.bilinearFiltering(t,o,a,h,c):\\\"lanczos\\\"===this.resizeType\\u0026\\u0026(n=this.lanczosResize(t,o,a,h,c)),t.imageData=n},sliceByTwo:function(t,i,n,o,s){var a,h,c=t.imageData,l=.5,u=!1,f=!1,d=i*l,g=n*l,p=e.filterBackend.resources,v=0,m=0,y=i,_=0;for(p.sliceByTwo||(p.sliceByTwo=document.createElement(\\\"canvas\\\")),((a=p.sliceByTwo).width\\u003c1.5*i||a.height\\u003cn)\\u0026\\u0026(a.width=1.5*i,a.height=n),(h=a.getContext(\\\"2d\\\")).clearRect(0,0,1.5*i,n),h.putImageData(c,0,0),o=r(o),s=r(s);!u||!f;)i=d,n=g,o\\u003cr(d*l)?d=r(d*l):(d=o,u=!0),s\\u003cr(g*l)?g=r(g*l):(g=s,f=!0),h.drawImage(a,v,m,i,n,y,_,d,g),v=y,m=_,_+=g;return h.getImageData(v,m,o,s)},lanczosResize:function(t,e,s,a,c){var l=t.imageData.data,u=t.ctx.createImageData(a,c),f=u.data,d=this.lanczosCreate(this.lanczosLobes),g=this.rcpScaleX,p=this.rcpScaleY,v=2/this.rcpScaleX,m=2/this.rcpScaleY,y=h(g*this.lanczosLobes/2),_=h(p*this.lanczosLobes/2),b={},x={},C={};return function t(h){var w,S,T,O,P,E,k,A,D,M,j;for(x.x=(h+.5)*g,C.x=r(x.x),w=0;w\\u003cc;w++){for(x.y=(w+.5)*p,C.y=r(x.y),P=0,E=0,k=0,A=0,D=0,S=C.x-y;S\\u003c=C.x+y;S++)if(!(S\\u003c0||S\\u003e=e)){M=r(1e3*o(S-x.x)),b[M]||(b[M]={});for(var F=C.y-_;F\\u003c=C.y+_;F++)F\\u003c0||F\\u003e=s||(j=r(1e3*o(F-x.y)),b[M][j]||(b[M][j]=d(n(i(M*v,2)+i(j*m,2))/1e3)),(T=b[M][j])\\u003e0\\u0026\\u0026(P+=T,E+=T*l[O=4*(F*e+S)],k+=T*l[O+1],A+=T*l[O+2],D+=T*l[O+3]))}f[O=4*(w*a+h)]=E/P,f[O+1]=k/P,f[O+2]=A/P,f[O+3]=D/P}return++h\\u003ca?t(h):u}(0)},bilinearFiltering:function(t,e,i,n,o){var s,a,h,c,l,u,f,d,g,p=0,v=this.rcpScaleX,m=this.rcpScaleY,y=4*(e-1),_=t.imageData.data,b=t.ctx.createImageData(n,o),x=b.data;for(h=0;h\\u003co;h++)for(c=0;c\\u003cn;c++)for(l=v*c-(s=r(v*c)),u=m*h-(a=r(m*h)),g=4*(a*e+s),f=0;f\\u003c4;f++)d=_[g+f]*(1-l)*(1-u)+_[g+4+f]*l*(1-u)+_[g+y+f]*u*(1-l)+_[g+y+4+f]*l*u,x[p++]=d;return b},hermiteFastResize:function(t,e,i,s,a){for(var c=this.rcpScaleX,l=this.rcpScaleY,u=h(c/2),f=h(l/2),d=t.imageData.data,g=t.ctx.createImageData(s,a),p=g.data,v=0;v\\u003ca;v++)for(var m=0;m\\u003cs;m++){for(var y=4*(m+v*s),_=0,b=0,x=0,C=0,w=0,S=0,T=0,O=(v+.5)*l,P=r(v*l);P\\u003c(v+1)*l;P++)for(var E=o(O-(P+.5))/f,k=(m+.5)*c,A=E*E,D=r(m*c);D\\u003c(m+1)*c;D++){var M=o(k-(D+.5))/u,j=n(A+M*M);j\\u003e1\\u0026\\u0026j\\u003c-1||(_=2*j*j*j-3*j*j+1)\\u003e0\\u0026\\u0026(T+=_*d[(M=4*(D+P*e))+3],x+=_,d[M+3]\\u003c255\\u0026\\u0026(_=_*d[M+3]/250),C+=_*d[M],w+=_*d[M+1],S+=_*d[M+2],b+=_)}p[y]=C/b,p[y+1]=w/b,p[y+2]=S/b,p[y+3]=T/x}return g},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),e.Image.filters.Resize.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Contrast=r(i.BaseFilter,{type:\\\"Contrast\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uContrast;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\\\\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\\\\ngl_FragColor = color;\\\\n}\\\",contrast:0,mainParameter:\\\"contrast\\\",applyTo2d:function(t){if(0!==this.contrast){var e,i=t.imageData.data,r=i.length,n=Math.floor(255*this.contrast),o=259*(n+255)/(255*(259-n));for(e=0;e\\u003cr;e+=4)i[e]=o*(i[e]-128)+128,i[e+1]=o*(i[e+1]-128)+128,i[e+2]=o*(i[e+2]-128)+128}},getUniformLocations:function(t,e){return{uContrast:t.getUniformLocation(e,\\\"uContrast\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uContrast,this.contrast)}}),e.Image.filters.Contrast.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Saturation=r(i.BaseFilter,{type:\\\"Saturation\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uSaturation;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nfloat rgMax = max(color.r, color.g);\\\\nfloat rgbMax = max(rgMax, color.b);\\\\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\\\\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\\\\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\\\\ngl_FragColor = color;\\\\n}\\\",saturation:0,mainParameter:\\\"saturation\\\",applyTo2d:function(t){if(0!==this.saturation){var e,i,r=t.imageData.data,n=r.length,o=-this.saturation;for(e=0;e\\u003cn;e+=4)i=Math.max(r[e],r[e+1],r[e+2]),r[e]+=i!==r[e]?(i-r[e])*o:0,r[e+1]+=i!==r[e+1]?(i-r[e+1])*o:0,r[e+2]+=i!==r[e+2]?(i-r[e+2])*o:0}},getUniformLocations:function(t,e){return{uSaturation:t.getUniformLocation(e,\\\"uSaturation\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uSaturation,-this.saturation)}}),e.Image.filters.Saturation.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Vibrance=r(i.BaseFilter,{type:\\\"Vibrance\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uVibrance;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nfloat max = max(color.r, max(color.g, color.b));\\\\nfloat avg = (color.r + color.g + color.b) / 3.0;\\\\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\\\\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\\\\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\\\\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\\\\ngl_FragColor = color;\\\\n}\\\",vibrance:0,mainParameter:\\\"vibrance\\\",applyTo2d:function(t){if(0!==this.vibrance){var e,i,r,n,o=t.imageData.data,s=o.length,a=-this.vibrance;for(e=0;e\\u003cs;e+=4)i=Math.max(o[e],o[e+1],o[e+2]),r=(o[e]+o[e+1]+o[e+2])/3,n=2*Math.abs(i-r)/255*a,o[e]+=i!==o[e]?(i-o[e])*n:0,o[e+1]+=i!==o[e+1]?(i-o[e+1])*n:0,o[e+2]+=i!==o[e+2]?(i-o[e+2])*n:0}},getUniformLocations:function(t,e){return{uVibrance:t.getUniformLocation(e,\\\"uVibrance\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uVibrance,-this.vibrance)}}),e.Image.filters.Vibrance.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Blur=r(i.BaseFilter,{type:\\\"Blur\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec2 uDelta;\\\\nvarying vec2 vTexCoord;\\\\nconst float nSamples = 15.0;\\\\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\\\\nfloat random(vec3 scale) {\\\\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\\\\n}\\\\nvoid main() {\\\\nvec4 color = vec4(0.0);\\\\nfloat total = 0.0;\\\\nfloat offset = random(v3offset);\\\\nfor (float t = -nSamples; t \\u003c= nSamples; t++) {\\\\nfloat percent = (t + offset - 0.5) / nSamples;\\\\nfloat weight = 1.0 - abs(percent);\\\\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\\\\ntotal += weight;\\\\n}\\\\ngl_FragColor = color / total;\\\\n}\\\",blur:0,mainParameter:\\\"blur\\\",applyTo:function(t){t.webgl?(this.aspectRatio=t.sourceWidth/t.sourceHeight,t.passes++,this._setupFrameBuffer(t),this.horizontal=!0,this.applyToWebGL(t),this._swapTextures(t),this._setupFrameBuffer(t),this.horizontal=!1,this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},applyTo2d:function(t){t.imageData=this.simpleBlur(t)},simpleBlur:function(t){var i,r,n=t.filterBackend.resources,o=t.imageData.width,s=t.imageData.height;n.blurLayer1||(n.blurLayer1=e.util.createCanvasElement(),n.blurLayer2=e.util.createCanvasElement()),i=n.blurLayer1,r=n.blurLayer2,i.width===o\\u0026\\u0026i.height===s||(r.width=i.width=o,r.height=i.height=s);var a,h,c,l,u=i.getContext(\\\"2d\\\"),f=r.getContext(\\\"2d\\\"),d=15,g=.06*this.blur*.5;for(u.putImageData(t.imageData,0,0),f.clearRect(0,0,o,s),l=-15;l\\u003c=d;l++)c=g*(h=l/d)*o+(a=(Math.random()-.5)/4),f.globalAlpha=1-Math.abs(h),f.drawImage(i,c,a),u.drawImage(r,0,0),f.globalAlpha=1,f.clearRect(0,0,r.width,r.height);for(l=-15;l\\u003c=d;l++)c=g*(h=l/d)*s+(a=(Math.random()-.5)/4),f.globalAlpha=1-Math.abs(h),f.drawImage(i,a,c),u.drawImage(r,0,0),f.globalAlpha=1,f.clearRect(0,0,r.width,r.height);t.ctx.drawImage(i,0,0);var p=t.ctx.getImageData(0,0,i.width,i.height);return u.globalAlpha=1,u.clearRect(0,0,i.width,i.height),p},getUniformLocations:function(t,e){return{delta:t.getUniformLocation(e,\\\"uDelta\\\")}},sendUniformData:function(t,e){var i=this.chooseRightDelta();t.uniform2fv(e.delta,i)},chooseRightDelta:function(){var t,e=1,i=[0,0];return this.horizontal?this.aspectRatio\\u003e1\\u0026\\u0026(e=1/this.aspectRatio):this.aspectRatio\\u003c1\\u0026\\u0026(e=this.aspectRatio),t=e*this.blur*.12,this.horizontal?i[0]=t:i[1]=t,i}}),i.Blur.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Gamma=r(i.BaseFilter,{type:\\\"Gamma\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec3 uGamma;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nvec3 correction = (1.0 / uGamma);\\\\ncolor.r = pow(color.r, correction.r);\\\\ncolor.g = pow(color.g, correction.g);\\\\ncolor.b = pow(color.b, correction.b);\\\\ngl_FragColor = color;\\\\ngl_FragColor.rgb *= color.a;\\\\n}\\\",gamma:[1,1,1],mainParameter:\\\"gamma\\\",initialize:function(t){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,t)},applyTo2d:function(t){var e,i=t.imageData.data,r=this.gamma,n=i.length,o=1/r[0],s=1/r[1],a=1/r[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),e=0,n=256;e\\u003cn;e++)this.rVals[e]=255*Math.pow(e/255,o),this.gVals[e]=255*Math.pow(e/255,s),this.bVals[e]=255*Math.pow(e/255,a);for(e=0,n=i.length;e\\u003cn;e+=4)i[e]=this.rVals[i[e]],i[e+1]=this.gVals[i[e+1]],i[e+2]=this.bVals[i[e+2]]},getUniformLocations:function(t,e){return{uGamma:t.getUniformLocation(e,\\\"uGamma\\\")}},sendUniformData:function(t,e){t.uniform3fv(e.uGamma,this.gamma)}}),e.Image.filters.Gamma.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Composed=r(i.BaseFilter,{type:\\\"Composed\\\",subFilters:[],initialize:function(t){this.callSuper(\\\"initialize\\\",t),this.subFilters=this.subFilters.slice(0)},applyTo:function(t){t.passes+=this.subFilters.length-1,this.subFilters.forEach((function(e){e.applyTo(t)}))},toObject:function(){return e.util.object.extend(this.callSuper(\\\"toObject\\\"),{subFilters:this.subFilters.map((function(t){return t.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(t){return!t.isNeutralState()}))}}),e.Image.filters.Composed.fromObject=function(t,i){var r=(t.subFilters||[]).map((function(t){return new e.Image.filters[t.type](t)})),n=new e.Image.filters.Composed({subFilters:r});return i\\u0026\\u0026i(n),n}}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.HueRotation=r(i.ColorMatrix,{type:\\\"HueRotation\\\",rotation:0,mainParameter:\\\"rotation\\\",calculateMatrix:function(){var t=this.rotation*Math.PI,i=e.util.cos(t),r=e.util.sin(t),n=1/3,o=Math.sqrt(n)*r,s=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+s/3,this.matrix[1]=n*s-o,this.matrix[2]=n*s+o,this.matrix[5]=n*s+o,this.matrix[6]=i+n*s,this.matrix[7]=n*s-o,this.matrix[10]=n*s-o,this.matrix[11]=n*s+o,this.matrix[12]=i+n*s},isNeutralState:function(t){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,t)},applyTo:function(t){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,t)}}),e.Image.filters.HueRotation.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.clone;if(e.Text)e.warn(\\\"fabric.Text is already defined\\\");else{var r=\\\"fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide\\\".split(\\\" \\\");e.Text=e.util.createClass(e.Object,{_dimensionAffectingProps:[\\\"fontSize\\\",\\\"fontWeight\\\",\\\"fontFamily\\\",\\\"fontStyle\\\",\\\"lineHeight\\\",\\\"text\\\",\\\"charSpacing\\\",\\\"textAlign\\\",\\\"styles\\\",\\\"path\\\",\\\"pathStartOffset\\\",\\\"pathSide\\\"],_reNewline:/\\\\r?\\\\n/,_reSpacesAndTabs:/[ \\\\t\\\\r]/g,_reSpaceAndTab:/[ \\\\t\\\\r]/,_reWords:/\\\\S+/g,type:\\\"text\\\",fontSize:40,fontWeight:\\\"normal\\\",fontFamily:\\\"Times New Roman\\\",underline:!1,overline:!1,linethrough:!1,textAlign:\\\"left\\\",fontStyle:\\\"normal\\\",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:\\\"\\\",stateProperties:e.Object.prototype.stateProperties.concat(r),cacheProperties:e.Object.prototype.cacheProperties.concat(r),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:\\\"left\\\",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:\\\"ltr\\\",_styleProperties:[\\\"stroke\\\",\\\"strokeWidth\\\",\\\"fill\\\",\\\"fontFamily\\\",\\\"fontSize\\\",\\\"fontWeight\\\",\\\"fontStyle\\\",\\\"underline\\\",\\\"overline\\\",\\\"linethrough\\\",\\\"deltaY\\\",\\\"textBackgroundColor\\\"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(t,e){this.styles=e\\u0026\\u0026e.styles||{},this.text=t,this.__skipDimension=!0,this.callSuper(\\\"initialize\\\",e),this.path\\u0026\\u0026this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:\\\"_dimensionAffectingProps\\\"})},setPathInfo:function(){var t=this.path;t\\u0026\\u0026(t.segmentsInfo=e.util.getPathSegmentsInfo(t.path))},getMeasuringContext:function(){return e._measuringContext||(e._measuringContext=this.canvas\\u0026\\u0026this.canvas.contextCache||e.util.createCanvasElement().getContext(\\\"2d\\\")),e._measuringContext},_splitText:function(){var t=this._splitTextIntoLines(this.text);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,t},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf(\\\"justify\\\")\\u0026\\u0026this.enlargeSpaces(),this.saveState({propertySet:\\\"_dimensionAffectingProps\\\"}))},enlargeSpaces:function(){for(var t,e,i,r,n,o,s,a=0,h=this._textLines.length;a\\u003ch;a++)if((\\\"justify\\\"===this.textAlign||a!==h-1\\u0026\\u0026!this.isEndOfWrapping(a))\\u0026\\u0026(r=0,n=this._textLines[a],(e=this.getLineWidth(a))\\u003cthis.width\\u0026\\u0026(s=this.textLines[a].match(this._reSpacesAndTabs)))){i=s.length,t=(this.width-e)/i;for(var c=0,l=n.length;c\\u003c=l;c++)o=this.__charBounds[a][c],this._reSpaceAndTab.test(n[c])?(o.width+=t,o.kernedWidth+=t,o.left+=r,r+=t):o.left+=r}},isEndOfWrapping:function(t){return t===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return\\\"#\\u003cfabric.Text (\\\"+this.complexity()+'): { \\\"text\\\": \\\"'+this.text+'\\\", \\\"fontFamily\\\": \\\"'+this.fontFamily+'\\\" }\\u003e'},_getCacheCanvasDimensions:function(){var t=this.callSuper(\\\"_getCacheCanvasDimensions\\\"),e=this.fontSize;return t.width+=e*t.zoomX,t.height+=e*t.zoomY,t},_render:function(t){var e=this.path;e\\u0026\\u0026!e.isNotVisible()\\u0026\\u0026e._render(t),this._setTextStyles(t),this._renderTextLinesBackground(t),this._renderTextDecoration(t,\\\"underline\\\"),this._renderText(t),this._renderTextDecoration(t,\\\"overline\\\"),this._renderTextDecoration(t,\\\"linethrough\\\")},_renderText:function(t){\\\"stroke\\\"===this.paintFirst?(this._renderTextStroke(t),this._renderTextFill(t)):(this._renderTextFill(t),this._renderTextStroke(t))},_setTextStyles:function(t,e,i){t.textBaseline=\\\"alphabetic\\\",t.font=this._getFontDeclaration(e,i)},calcTextWidth:function(){for(var t=this.getLineWidth(0),e=1,i=this._textLines.length;e\\u003ci;e++){var r=this.getLineWidth(e);r\\u003et\\u0026\\u0026(t=r)}return t},_renderTextLine:function(t,e,i,r,n,o){this._renderChars(t,e,i,r,n,o)},_renderTextLinesBackground:function(t){if(this.textBackgroundColor||this.styleHas(\\\"textBackgroundColor\\\")){for(var e,i,r,n,o,s,a,h=t.fillStyle,c=this._getLeftOffset(),l=this._getTopOffset(),u=0,f=0,d=this.path,g=0,p=this._textLines.length;g\\u003cp;g++)if(e=this.getHeightOfLine(g),this.textBackgroundColor||this.styleHas(\\\"textBackgroundColor\\\",g)){r=this._textLines[g],i=this._getLineLeftOffset(g),f=0,u=0,n=this.getValueOfPropertyAt(g,0,\\\"textBackgroundColor\\\");for(var v=0,m=r.length;v\\u003cm;v++)o=this.__charBounds[g][v],s=this.getValueOfPropertyAt(g,v,\\\"textBackgroundColor\\\"),d?(t.save(),t.translate(o.renderLeft,o.renderTop),t.rotate(o.angle),t.fillStyle=s,s\\u0026\\u0026t.fillRect(-o.width/2,-e/this.lineHeight*(1-this._fontSizeFraction),o.width,e/this.lineHeight),t.restore()):s!==n?(a=c+i+u,\\\"rtl\\\"===this.direction\\u0026\\u0026(a=this.width-a-f),t.fillStyle=n,n\\u0026\\u0026t.fillRect(a,l,f,e/this.lineHeight),u=o.left,f=o.width,n=s):f+=o.kernedWidth;s\\u0026\\u0026!d\\u0026\\u0026(a=c+i+u,\\\"rtl\\\"===this.direction\\u0026\\u0026(a=this.width-a-f),t.fillStyle=s,t.fillRect(a,l,f,e/this.lineHeight)),l+=e}else l+=e;t.fillStyle=h,this._removeShadow(t)}},getFontCache:function(t){var i=t.fontFamily.toLowerCase();e.charWidthsCache[i]||(e.charWidthsCache[i]={});var r=e.charWidthsCache[i],n=t.fontStyle.toLowerCase()+\\\"_\\\"+(t.fontWeight+\\\"\\\").toLowerCase();return r[n]||(r[n]={}),r[n]},_measureChar:function(t,e,i,r){var n,o,s,a,h=this.getFontCache(e),c=i+t,l=this._getFontDeclaration(e)===this._getFontDeclaration(r),u=e.fontSize/this.CACHE_FONT_SIZE;if(i\\u0026\\u0026void 0!==h[i]\\u0026\\u0026(s=h[i]),void 0!==h[t]\\u0026\\u0026(a=n=h[t]),l\\u0026\\u0026void 0!==h[c]\\u0026\\u0026(a=(o=h[c])-s),void 0===n||void 0===s||void 0===o){var f=this.getMeasuringContext();this._setTextStyles(f,e,!0)}return void 0===n\\u0026\\u0026(a=n=f.measureText(t).width,h[t]=n),void 0===s\\u0026\\u0026l\\u0026\\u0026i\\u0026\\u0026(s=f.measureText(i).width,h[i]=s),l\\u0026\\u0026void 0===o\\u0026\\u0026(o=f.measureText(c).width,h[c]=o,a=o-s),{width:n*u,kernedWidth:a*u}},getHeightOfChar:function(t,e){return this.getValueOfPropertyAt(t,e,\\\"fontSize\\\")},measureLine:function(t){var e=this._measureLine(t);return 0!==this.charSpacing\\u0026\\u0026(e.width-=this._getWidthOfCharSpacing()),e.width\\u003c0\\u0026\\u0026(e.width=0),e},_measureLine:function(t){var i,r,n,o,s,a,h=0,c=this._textLines[t],l=new Array(c.length),u=0,f=this.path,d=\\\"right\\\"===this.pathSide;for(this.__charBounds[t]=l,i=0;i\\u003cc.length;i++)r=c[i],o=this._getGraphemeBox(r,t,i,n),l[i]=o,h+=o.kernedWidth,n=r;if(l[i]={left:o?o.left+o.width:0,width:0,kernedWidth:0,height:this.fontSize},f){switch(a=f.segmentsInfo[f.segmentsInfo.length-1].length,(s=e.util.getPointOnPath(f.path,0,f.segmentsInfo)).x+=f.pathOffset.x,s.y+=f.pathOffset.y,this.textAlign){case\\\"left\\\":u=d?a-h:0;break;case\\\"center\\\":u=(a-h)/2;break;case\\\"right\\\":u=d?0:a-h}for(u+=this.pathStartOffset*(d?-1:1),i=d?c.length-1:0;d?i\\u003e=0:i\\u003cc.length;d?i--:i++)o=l[i],u\\u003ea?u%=a:u\\u003c0\\u0026\\u0026(u+=a),this._setGraphemeOnPath(u,o,s),u+=o.kernedWidth}return{width:h,numOfSpaces:0}},_setGraphemeOnPath:function(t,i,r){var n=t+i.kernedWidth/2,o=this.path,s=e.util.getPointOnPath(o.path,n,o.segmentsInfo);i.renderLeft=s.x-r.x,i.renderTop=s.y-r.y,i.angle=s.angle+(\\\"right\\\"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(t,e,i,r,n){var o,s=this.getCompleteStyleDeclaration(e,i),a=r?this.getCompleteStyleDeclaration(e,i-1):{},h=this._measureChar(t,s,r,a),c=h.kernedWidth,l=h.width;0!==this.charSpacing\\u0026\\u0026(l+=o=this._getWidthOfCharSpacing(),c+=o);var u={width:l,left:0,height:s.fontSize,kernedWidth:c,deltaY:s.deltaY};if(i\\u003e0\\u0026\\u0026!n){var f=this.__charBounds[e][i-1];u.left=f.left+f.width+h.kernedWidth-h.width}return u},getHeightOfLine:function(t){if(this.__lineHeights[t])return this.__lineHeights[t];for(var e=this._textLines[t],i=this.getHeightOfChar(t,0),r=1,n=e.length;r\\u003cn;r++)i=Math.max(this.getHeightOfChar(t,r),i);return this.__lineHeights[t]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var t,e=0,i=0,r=this._textLines.length;i\\u003cr;i++)t=this.getHeightOfLine(i),e+=i===r-1?t/this.lineHeight:t;return e},_getLeftOffset:function(){return\\\"ltr\\\"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(t,e){t.save();for(var i=0,r=this._getLeftOffset(),n=this._getTopOffset(),o=0,s=this._textLines.length;o\\u003cs;o++){var a=this.getHeightOfLine(o),h=a/this.lineHeight,c=this._getLineLeftOffset(o);this._renderTextLine(e,t,this._textLines[o],r+c,n+i+h,o),i+=a}t.restore()},_renderTextFill:function(t){(this.fill||this.styleHas(\\\"fill\\\"))\\u0026\\u0026this._renderTextCommon(t,\\\"fillText\\\")},_renderTextStroke:function(t){(this.stroke\\u0026\\u00260!==this.strokeWidth||!this.isEmptyStyles())\\u0026\\u0026(this.shadow\\u0026\\u0026!this.shadow.affectStroke\\u0026\\u0026this._removeShadow(t),t.save(),this._setLineDash(t,this.strokeDashArray),t.beginPath(),this._renderTextCommon(t,\\\"strokeText\\\"),t.closePath(),t.restore())},_renderChars:function(t,e,i,r,n,o){var s,a,h,c,l,u=this.getHeightOfLine(o),f=-1!==this.textAlign.indexOf(\\\"justify\\\"),d=\\\"\\\",g=0,p=this.path,v=!f\\u0026\\u00260===this.charSpacing\\u0026\\u0026this.isEmptyStyles(o)\\u0026\\u0026!p,m=\\\"ltr\\\"===this.direction,y=\\\"ltr\\\"===this.direction?1:-1;if(e.save(),n-=u*this._fontSizeFraction/this.lineHeight,v)return e.canvas.setAttribute(\\\"dir\\\",m?\\\"ltr\\\":\\\"rtl\\\"),e.direction=m?\\\"ltr\\\":\\\"rtl\\\",e.textAlign=m?\\\"left\\\":\\\"right\\\",this._renderChar(t,e,o,0,i.join(\\\"\\\"),r,n,u),void e.restore();for(var _=0,b=i.length-1;_\\u003c=b;_++)c=_===b||this.charSpacing||p,d+=i[_],h=this.__charBounds[o][_],0===g?(r+=y*(h.kernedWidth-h.width),g+=h.width):g+=h.kernedWidth,f\\u0026\\u0026!c\\u0026\\u0026this._reSpaceAndTab.test(i[_])\\u0026\\u0026(c=!0),c||(s=s||this.getCompleteStyleDeclaration(o,_),a=this.getCompleteStyleDeclaration(o,_+1),c=this._hasStyleChanged(s,a)),c\\u0026\\u0026(p?(e.save(),e.translate(h.renderLeft,h.renderTop),e.rotate(h.angle),this._renderChar(t,e,o,_,d,-g/2,0,u),e.restore()):(l=r,e.canvas.setAttribute(\\\"dir\\\",m?\\\"ltr\\\":\\\"rtl\\\"),e.direction=m?\\\"ltr\\\":\\\"rtl\\\",e.textAlign=m?\\\"left\\\":\\\"right\\\",this._renderChar(t,e,o,_,d,l,n,u)),d=\\\"\\\",s=a,r+=y*g,g=0);e.restore()},_applyPatternGradientTransformText:function(t){var i,r=e.util.createCanvasElement(),n=this.width+this.strokeWidth,o=this.height+this.strokeWidth;return r.width=n,r.height=o,(i=r.getContext(\\\"2d\\\")).beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,o),i.lineTo(0,o),i.closePath(),i.translate(n/2,o/2),i.fillStyle=t.toLive(i),this._applyPatternGradientTransform(i,t),i.fill(),i.createPattern(r,\\\"no-repeat\\\")},handleFiller:function(t,e,i){var r,n;return i.toLive?\\\"percentage\\\"===i.gradientUnits||i.gradientTransform||i.patternTransform?(r=-this.width/2,n=-this.height/2,t.translate(r,n),t[e]=this._applyPatternGradientTransformText(i),{offsetX:r,offsetY:n}):(t[e]=i.toLive(t,this),this._applyPatternGradientTransform(t,i)):(t[e]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(t,e){return t.lineWidth=e.strokeWidth,t.lineCap=this.strokeLineCap,t.lineDashOffset=this.strokeDashOffset,t.lineJoin=this.strokeLineJoin,t.miterLimit=this.strokeMiterLimit,this.handleFiller(t,\\\"strokeStyle\\\",e.stroke)},_setFillStyles:function(t,e){return this.handleFiller(t,\\\"fillStyle\\\",e.fill)},_renderChar:function(t,e,i,r,n,o,s){var a,h,c=this._getStyleDeclaration(i,r),l=this.getCompleteStyleDeclaration(i,r),u=\\\"fillText\\\"===t\\u0026\\u0026l.fill,f=\\\"strokeText\\\"===t\\u0026\\u0026l.stroke\\u0026\\u0026l.strokeWidth;(f||u)\\u0026\\u0026(e.save(),u\\u0026\\u0026(a=this._setFillStyles(e,l)),f\\u0026\\u0026(h=this._setStrokeStyles(e,l)),e.font=this._getFontDeclaration(l),c\\u0026\\u0026c.textBackgroundColor\\u0026\\u0026this._removeShadow(e),c\\u0026\\u0026c.deltaY\\u0026\\u0026(s+=c.deltaY),u\\u0026\\u0026e.fillText(n,o-a.offsetX,s-a.offsetY),f\\u0026\\u0026e.strokeText(n,o-h.offsetX,s-h.offsetY),e.restore())},setSuperscript:function(t,e){return this._setScript(t,e,this.superscript)},setSubscript:function(t,e){return this._setScript(t,e,this.subscript)},_setScript:function(t,e,i){var r=this.get2DCursorLocation(t,!0),n=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,\\\"fontSize\\\"),o=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,\\\"deltaY\\\"),s={fontSize:n*i.size,deltaY:o+n*i.baseline};return this.setSelectionStyles(s,t,e),this},_hasStyleChanged:function(t,e){return t.fill!==e.fill||t.stroke!==e.stroke||t.strokeWidth!==e.strokeWidth||t.fontSize!==e.fontSize||t.fontFamily!==e.fontFamily||t.fontWeight!==e.fontWeight||t.fontStyle!==e.fontStyle||t.deltaY!==e.deltaY},_hasStyleChangedForSvg:function(t,e){return this._hasStyleChanged(t,e)||t.overline!==e.overline||t.underline!==e.underline||t.linethrough!==e.linethrough},_getLineLeftOffset:function(t){var e=this.getLineWidth(t),i=this.width-e,r=this.textAlign,n=this.direction,o=0,s=this.isEndOfWrapping(t);return\\\"justify\\\"===r||\\\"justify-center\\\"===r\\u0026\\u0026!s||\\\"justify-right\\\"===r\\u0026\\u0026!s||\\\"justify-left\\\"===r\\u0026\\u0026!s?0:(\\\"center\\\"===r\\u0026\\u0026(o=i/2),\\\"right\\\"===r\\u0026\\u0026(o=i),\\\"justify-center\\\"===r\\u0026\\u0026(o=i/2),\\\"justify-right\\\"===r\\u0026\\u0026(o=i),\\\"rtl\\\"===n\\u0026\\u0026(o-=i),o)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var t=this._forceClearCache;return t||(t=this.hasStateChanged(\\\"_dimensionAffectingProps\\\")),t\\u0026\\u0026(this.dirty=!0,this._forceClearCache=!1),t},getLineWidth:function(t){return this.__lineWidths[t]?this.__lineWidths[t]:(e=\\\"\\\"===this._textLines[t]?0:this.measureLine(t).width,this.__lineWidths[t]=e,e);var e},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(t,e,i){var r=this._getStyleDeclaration(t,e);return r\\u0026\\u0026void 0!==r[i]?r[i]:this[i]},_renderTextDecoration:function(t,e){if(this[e]||this.styleHas(e)){for(var i,r,n,o,s,a,h,c,l,u,f,d,g,p,v,m,y=this._getLeftOffset(),_=this._getTopOffset(),b=this.path,x=this._getWidthOfCharSpacing(),C=this.offsets[e],w=0,S=this._textLines.length;w\\u003cS;w++)if(i=this.getHeightOfLine(w),this[e]||this.styleHas(e,w)){h=this._textLines[w],p=i/this.lineHeight,o=this._getLineLeftOffset(w),u=0,f=0,c=this.getValueOfPropertyAt(w,0,e),m=this.getValueOfPropertyAt(w,0,\\\"fill\\\"),l=_+p*(1-this._fontSizeFraction),r=this.getHeightOfChar(w,0),s=this.getValueOfPropertyAt(w,0,\\\"deltaY\\\");for(var T=0,O=h.length;T\\u003cO;T++)if(d=this.__charBounds[w][T],g=this.getValueOfPropertyAt(w,T,e),v=this.getValueOfPropertyAt(w,T,\\\"fill\\\"),n=this.getHeightOfChar(w,T),a=this.getValueOfPropertyAt(w,T,\\\"deltaY\\\"),b\\u0026\\u0026g\\u0026\\u0026v)t.save(),t.fillStyle=m,t.translate(d.renderLeft,d.renderTop),t.rotate(d.angle),t.fillRect(-d.kernedWidth/2,C*n+a,d.kernedWidth,this.fontSize/15),t.restore();else if((g!==c||v!==m||n!==r||a!==s)\\u0026\\u0026f\\u003e0){var P=y+o+u;\\\"rtl\\\"===this.direction\\u0026\\u0026(P=this.width-P-f),c\\u0026\\u0026m\\u0026\\u0026(t.fillStyle=m,t.fillRect(P,l+C*r+s,f,this.fontSize/15)),u=d.left,f=d.width,c=g,m=v,r=n,s=a}else f+=d.kernedWidth;P=y+o+u;\\\"rtl\\\"===this.direction\\u0026\\u0026(P=this.width-P-f),t.fillStyle=v,g\\u0026\\u0026v\\u0026\\u0026t.fillRect(P,l+C*r+s,f-x,this.fontSize/15),_+=i}else _+=i;this._removeShadow(t)}},_getFontDeclaration:function(t,i){var r=t||this,n=this.fontFamily,o=e.Text.genericFonts.indexOf(n.toLowerCase())\\u003e-1,s=void 0===n||n.indexOf(\\\"'\\\")\\u003e-1||n.indexOf(\\\",\\\")\\u003e-1||n.indexOf('\\\"')\\u003e-1||o?r.fontFamily:'\\\"'+r.fontFamily+'\\\"';return[e.isLikelyNode?r.fontWeight:r.fontStyle,e.isLikelyNode?r.fontStyle:r.fontWeight,i?this.CACHE_FONT_SIZE+\\\"px\\\":r.fontSize+\\\"px\\\",s].join(\\\" \\\")},render:function(t){this.visible\\u0026\\u0026(this.canvas\\u0026\\u0026this.canvas.skipOffscreen\\u0026\\u0026!this.group\\u0026\\u0026!this.isOnScreen()||(this._shouldClearDimensionCache()\\u0026\\u0026this.initDimensions(),this.callSuper(\\\"render\\\",t)))},_splitTextIntoLines:function(t){for(var i=t.split(this._reNewline),r=new Array(i.length),n=[\\\"\\\\n\\\"],o=[],s=0;s\\u003ci.length;s++)r[s]=e.util.string.graphemeSplit(i[s]),o=o.concat(r[s],n);return o.pop(),{_unwrappedLines:r,lines:i,graphemeText:o,graphemeLines:r}},toObject:function(t){var e=r.concat(t),n=this.callSuper(\\\"toObject\\\",e);return n.styles=i(this.styles,!0),n.path\\u0026\\u0026(n.path=this.path.toObject()),n},set:function(t,e){this.callSuper(\\\"set\\\",t,e);var i=!1,r=!1;if(\\\"object\\\"==typeof t)for(var n in t)\\\"path\\\"===n\\u0026\\u0026this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),r=r||\\\"path\\\"===n;else i=-1!==this._dimensionAffectingProps.indexOf(t),r=\\\"path\\\"===t;return r\\u0026\\u0026this.setPathInfo(),i\\u0026\\u0026(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),e.Text.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor\\\".split(\\\" \\\")),e.Text.DEFAULT_SVG_FONT_SIZE=16,e.Text.fromElement=function(t,r,n){if(!t)return r(null);var o=e.parseAttributes(t,e.Text.ATTRIBUTE_NAMES),s=o.textAnchor||\\\"left\\\";if((n=e.util.object.extend(n?i(n):{},o)).top=n.top||0,n.left=n.left||0,o.textDecoration){var a=o.textDecoration;-1!==a.indexOf(\\\"underline\\\")\\u0026\\u0026(n.underline=!0),-1!==a.indexOf(\\\"overline\\\")\\u0026\\u0026(n.overline=!0),-1!==a.indexOf(\\\"line-through\\\")\\u0026\\u0026(n.linethrough=!0),delete n.textDecoration}\\\"dx\\\"in o\\u0026\\u0026(n.left+=o.dx),\\\"dy\\\"in o\\u0026\\u0026(n.top+=o.dy),\\\"fontSize\\\"in n||(n.fontSize=e.Text.DEFAULT_SVG_FONT_SIZE);var h=\\\"\\\";\\\"textContent\\\"in t?h=t.textContent:\\\"firstChild\\\"in t\\u0026\\u0026null!==t.firstChild\\u0026\\u0026\\\"data\\\"in t.firstChild\\u0026\\u0026null!==t.firstChild.data\\u0026\\u0026(h=t.firstChild.data),h=h.replace(/^\\\\s+|\\\\s+$|\\\\n+/g,\\\"\\\").replace(/\\\\s+/g,\\\" \\\");var c=n.strokeWidth;n.strokeWidth=0;var l=new e.Text(h,n),u=l.getScaledHeight()/l.height,f=((l.height+l.strokeWidth)*l.lineHeight-l.height)*u,d=l.getScaledHeight()+f,g=0;\\\"center\\\"===s\\u0026\\u0026(g=l.getScaledWidth()/2),\\\"right\\\"===s\\u0026\\u0026(g=l.getScaledWidth()),l.set({left:l.left-g,top:l.top-(d-l.fontSize*(.07+l._fontSizeFraction))/l.lineHeight,strokeWidth:void 0!==c?c:1}),r(l)},e.Text.fromObject=function(t,r){var n=i(t),o=t.path;return delete n.path,e.Object._fromObject(\\\"Text\\\",n,(function(t){o?e.Object._fromObject(\\\"Path\\\",o,(function(e){t.set(\\\"path\\\",e),r(t)}),\\\"path\\\"):r(t)}),\\\"text\\\")},e.Text.genericFonts=[\\\"sans-serif\\\",\\\"serif\\\",\\\"cursive\\\",\\\"fantasy\\\",\\\"monospace\\\"],e.util.createAccessors\\u0026\\u0026e.util.createAccessors(e.Text)}}(t),T.util.object.extend(T.Text.prototype,{isEmptyStyles:function(t){if(!this.styles)return!0;if(void 0!==t\\u0026\\u0026!this.styles[t])return!0;var e=void 0===t?this.styles:{line:this.styles[t]};for(var i in e)for(var r in e[i])for(var n in e[i][r])return!1;return!0},styleHas:function(t,e){if(!this.styles||!t||\\\"\\\"===t)return!1;if(void 0!==e\\u0026\\u0026!this.styles[e])return!1;var i=void 0===e?this.styles:{0:this.styles[e]};for(var r in i)for(var n in i[r])if(void 0!==i[r][n][t])return!0;return!1},cleanStyle:function(t){if(!this.styles||!t||\\\"\\\"===t)return!1;var e,i,r=this.styles,n=0,o=!0,s=0;for(var a in r){for(var h in e=0,r[a]){var c;n++,(c=r[a][h]).hasOwnProperty(t)?(i?c[t]!==i\\u0026\\u0026(o=!1):i=c[t],c[t]===this[t]\\u0026\\u0026delete c[t]):o=!1,0!==Object.keys(c).length?e++:delete r[a][h]}0===e\\u0026\\u0026delete r[a]}for(var l=0;l\\u003cthis._textLines.length;l++)s+=this._textLines[l].length;o\\u0026\\u0026n===s\\u0026\\u0026(this[t]=i,this.removeStyle(t))},removeStyle:function(t){if(this.styles\\u0026\\u0026t\\u0026\\u0026\\\"\\\"!==t){var e,i,r,n=this.styles;for(i in n){for(r in e=n[i])delete e[r][t],0===Object.keys(e[r]).length\\u0026\\u0026delete e[r];0===Object.keys(e).length\\u0026\\u0026delete n[i]}}},_extendStyles:function(t,e){var i=this.get2DCursorLocation(t);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),T.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),e)},get2DCursorLocation:function(t,e){void 0===t\\u0026\\u0026(t=this.selectionStart);for(var i=e?this._unwrappedTextLines:this._textLines,r=i.length,n=0;n\\u003cr;n++){if(t\\u003c=i[n].length)return{lineIndex:n,charIndex:t};t-=i[n].length+this.missingNewlineOffset(n)}return{lineIndex:n-1,charIndex:i[n-1].length\\u003ct?i[n-1].length:t}},getSelectionStyles:function(t,e,i){void 0===t\\u0026\\u0026(t=this.selectionStart||0),void 0===e\\u0026\\u0026(e=this.selectionEnd||t);for(var r=[],n=t;n\\u003ce;n++)r.push(this.getStyleAtPosition(n,i));return r},getStyleAtPosition:function(t,e){var i=this.get2DCursorLocation(t);return(e?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(t,e,i){void 0===e\\u0026\\u0026(e=this.selectionStart||0),void 0===i\\u0026\\u0026(i=this.selectionEnd||e);for(var r=e;r\\u003ci;r++)this._extendStyles(r,t);return this._forceClearCache=!0,this},_getStyleDeclaration:function(t,e){var i=this.styles\\u0026\\u0026this.styles[t];return i?i[e]:null},getCompleteStyleDeclaration:function(t,e){for(var i,r=this._getStyleDeclaration(t,e)||{},n={},o=0;o\\u003cthis._styleProperties.length;o++)n[i=this._styleProperties[o]]=void 0===r[i]?this[i]:r[i];return n},_setStyleDeclaration:function(t,e,i){this.styles[t][e]=i},_deleteStyleDeclaration:function(t,e){delete this.styles[t][e]},_getLineStyle:function(t){return!!this.styles[t]},_setLineStyle:function(t){this.styles[t]={}},_deleteLineStyle:function(t){delete this.styles[t]}}),function(){function t(t){t.textDecoration\\u0026\\u0026(t.textDecoration.indexOf(\\\"underline\\\")\\u003e-1\\u0026\\u0026(t.underline=!0),t.textDecoration.indexOf(\\\"line-through\\\")\\u003e-1\\u0026\\u0026(t.linethrough=!0),t.textDecoration.indexOf(\\\"overline\\\")\\u003e-1\\u0026\\u0026(t.overline=!0),delete t.textDecoration)}T.IText=T.util.createClass(T.Text,T.Observable,{type:\\\"i-text\\\",selectionStart:0,selectionEnd:0,selectionColor:\\\"rgba(17,119,255,0.3)\\\",isEditing:!1,editable:!0,editingBorderColor:\\\"rgba(102,153,255,0.25)\\\",cursorWidth:2,cursorColor:\\\"\\\",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\\\\s|\\\\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(t,e){this.callSuper(\\\"initialize\\\",t,e),this.initBehavior()},setSelectionStart:function(t){t=Math.max(t,0),this._updateAndFire(\\\"selectionStart\\\",t)},setSelectionEnd:function(t){t=Math.min(t,this.text.length),this._updateAndFire(\\\"selectionEnd\\\",t)},_updateAndFire:function(t,e){this[t]!==e\\u0026\\u0026(this._fireSelectionChanged(),this[t]=e),this._updateTextarea()},_fireSelectionChanged:function(){this.fire(\\\"selection:changed\\\"),this.canvas\\u0026\\u0026this.canvas.fire(\\\"text:selection:changed\\\",{target:this})},initDimensions:function(){this.isEditing\\u0026\\u0026this.initDelayedCursor(),this.clearContextTop(),this.callSuper(\\\"initDimensions\\\")},render:function(t){this.clearContextTop(),this.callSuper(\\\"render\\\",t),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(t){this.callSuper(\\\"_render\\\",t)},clearContextTop:function(t){if(this.isEditing\\u0026\\u0026this.canvas\\u0026\\u0026this.canvas.contextTop){var e=this.canvas.contextTop,i=this.canvas.viewportTransform;e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(e),this._clearTextArea(e),t||e.restore()}},renderCursorOrSelection:function(){if(this.isEditing\\u0026\\u0026this.canvas\\u0026\\u0026this.canvas.contextTop){var t=this._getCursorBoundaries(),e=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(t,e):this.renderSelection(t,e),e.restore()}},_clearTextArea:function(t){var e=this.width+4,i=this.height+4;t.clearRect(-e/2,-i/2,e,i)},_getCursorBoundaries:function(t){void 0===t\\u0026\\u0026(t=this.selectionStart);var e=this._getLeftOffset(),i=this._getTopOffset(),r=this._getCursorBoundariesOffsets(t);return{left:e,top:i,leftOffset:r.left,topOffset:r.top}},_getCursorBoundariesOffsets:function(t){if(this.cursorOffsetCache\\u0026\\u0026\\\"top\\\"in this.cursorOffsetCache)return this.cursorOffsetCache;var e,i,r,n,o=0,s=0,a=this.get2DCursorLocation(t);r=a.charIndex,i=a.lineIndex;for(var h=0;h\\u003ci;h++)o+=this.getHeightOfLine(h);e=this._getLineLeftOffset(i);var c=this.__charBounds[i][r];return c\\u0026\\u0026(s=c.left),0!==this.charSpacing\\u0026\\u0026r===this._textLines[i].length\\u0026\\u0026(s-=this._getWidthOfCharSpacing()),n={top:o,left:e+(s\\u003e0?s:0)},\\\"rtl\\\"===this.direction\\u0026\\u0026(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(t,e){var i=this.get2DCursorLocation(),r=i.lineIndex,n=i.charIndex\\u003e0?i.charIndex-1:0,o=this.getValueOfPropertyAt(r,n,\\\"fontSize\\\"),s=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/s,h=t.topOffset,c=this.getValueOfPropertyAt(r,n,\\\"deltaY\\\");h+=(1-this._fontSizeFraction)*this.getHeightOfLine(r)/this.lineHeight-o*(1-this._fontSizeFraction),this.inCompositionMode\\u0026\\u0026this.renderSelection(t,e),e.fillStyle=this.cursorColor||this.getValueOfPropertyAt(r,n,\\\"fill\\\"),e.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,e.fillRect(t.left+t.leftOffset-a/2,h+t.top+c,a,o)},renderSelection:function(t,e){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,r=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf(\\\"justify\\\"),o=this.get2DCursorLocation(i),s=this.get2DCursorLocation(r),a=o.lineIndex,h=s.lineIndex,c=o.charIndex\\u003c0?0:o.charIndex,l=s.charIndex\\u003c0?0:s.charIndex,u=a;u\\u003c=h;u++){var f,d=this._getLineLeftOffset(u)||0,g=this.getHeightOfLine(u),p=0,v=0;if(u===a\\u0026\\u0026(p=this.__charBounds[a][c].left),u\\u003e=a\\u0026\\u0026u\\u003ch)v=n\\u0026\\u0026!this.isEndOfWrapping(u)?this.width:this.getLineWidth(u)||5;else if(u===h)if(0===l)v=this.__charBounds[h][l].left;else{var m=this._getWidthOfCharSpacing();v=this.__charBounds[h][l-1].left+this.__charBounds[h][l-1].width-m}f=g,(this.lineHeight\\u003c1||u===h\\u0026\\u0026this.lineHeight\\u003e1)\\u0026\\u0026(g/=this.lineHeight);var y=t.left+d+p,_=v-p,b=g,x=0;this.inCompositionMode?(e.fillStyle=this.compositionColor||\\\"black\\\",b=1,x=g):e.fillStyle=this.selectionColor,\\\"rtl\\\"===this.direction\\u0026\\u0026(y=this.width-y-_),e.fillRect(y,t.top+t.topOffset+x,_,b),t.topOffset+=f}},getCurrentCharFontSize:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,\\\"fontSize\\\")},getCurrentCharColor:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,\\\"fill\\\")},_getCurrentCharIndex:function(){var t=this.get2DCursorLocation(this.selectionStart,!0),e=t.charIndex\\u003e0?t.charIndex-1:0;return{l:t.lineIndex,c:e}}}),T.IText.fromObject=function(e,i){if(t(e),e.styles)for(var r in e.styles)for(var n in e.styles[r])t(e.styles[r][n]);T.Object._fromObject(\\\"IText\\\",e,i,\\\"text\\\")}}(),S=T.util.object.clone,T.util.object.extend(T.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing\\u0026\\u0026this.exitEditing(),this.selected=!1},initAddedHandler:function(){var t=this;this.on(\\\"added\\\",(function(){var e=t.canvas;e\\u0026\\u0026(e._hasITextHandlers||(e._hasITextHandlers=!0,t._initCanvasHandlers(e)),e._iTextInstances=e._iTextInstances||[],e._iTextInstances.push(t))}))},initRemovedHandler:function(){var t=this;this.on(\\\"removed\\\",(function(){var e=t.canvas;e\\u0026\\u0026(e._iTextInstances=e._iTextInstances||[],T.util.removeFromArray(e._iTextInstances,t),0===e._iTextInstances.length\\u0026\\u0026(e._hasITextHandlers=!1,t._removeCanvasHandlers(e)))}))},_initCanvasHandlers:function(t){t._mouseUpITextHandler=function(){t._iTextInstances\\u0026\\u0026t._iTextInstances.forEach((function(t){t.__isMousedown=!1}))},t.on(\\\"mouse:up\\\",t._mouseUpITextHandler)},_removeCanvasHandlers:function(t){t.off(\\\"mouse:up\\\",t._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,\\\"_onTickComplete\\\")},_animateCursor:function(t,e,i,r){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},t.animate(\\\"_currentCursorOpacity\\\",e,{duration:i,onComplete:function(){n.isAborted||t[r]()},onChange:function(){t.canvas\\u0026\\u0026t.selectionStart===t.selectionEnd\\u0026\\u0026t.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var t=this;this._cursorTimeout1\\u0026\\u0026clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){t._currentTickCompleteState=t._animateCursor(t,0,this.cursorDuration/2,\\\"_tick\\\")}),100)},initDelayedCursor:function(t){var e=this,i=t?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){e._tick()}),i)},abortCursorAnimation:function(){var t=this._currentTickState||this._currentTickCompleteState,e=this.canvas;this._currentTickState\\u0026\\u0026this._currentTickState.abort(),this._currentTickCompleteState\\u0026\\u0026this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,t\\u0026\\u0026e\\u0026\\u0026e.clearContext(e.contextTop||e.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join(\\\"\\\")},findWordBoundaryLeft:function(t){var e=0,i=t-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i--;for(;/\\\\S/.test(this._text[i])\\u0026\\u0026i\\u003e-1;)e++,i--;return t-e},findWordBoundaryRight:function(t){var e=0,i=t;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i++;for(;/\\\\S/.test(this._text[i])\\u0026\\u0026i\\u003cthis._text.length;)e++,i++;return t+e},findLineBoundaryLeft:function(t){for(var e=0,i=t-1;!/\\\\n/.test(this._text[i])\\u0026\\u0026i\\u003e-1;)e++,i--;return t-e},findLineBoundaryRight:function(t){for(var e=0,i=t;!/\\\\n/.test(this._text[i])\\u0026\\u0026i\\u003cthis._text.length;)e++,i++;return t+e},searchWordBoundary:function(t,e){for(var i=this._text,r=this._reSpace.test(i[t])?t-1:t,n=i[r],o=T.reNonWord;!o.test(n)\\u0026\\u0026r\\u003e0\\u0026\\u0026r\\u003ci.length;)n=i[r+=e];return o.test(n)\\u0026\\u0026(r+=1===e?0:1),r},selectWord:function(t){t=t||this.selectionStart;var e=this.searchWordBoundary(t,-1),i=this.searchWordBoundary(t,1);this.selectionStart=e,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(t){t=t||this.selectionStart;var e=this.findLineBoundaryLeft(t),i=this.findLineBoundaryRight(t);return this.selectionStart=e,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(t){if(!this.isEditing\\u0026\\u0026this.editable)return this.canvas\\u0026\\u0026(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(t),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire(\\\"editing:entered\\\"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire(\\\"text:editing:entered\\\",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(t){t._iTextInstances\\u0026\\u0026t._iTextInstances.forEach((function(t){t.selected=!1,t.isEditing\\u0026\\u0026t.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on(\\\"mouse:move\\\",this.mouseMoveHandler)},mouseMoveHandler:function(t){if(this.__isMousedown\\u0026\\u0026this.isEditing){var e=this.getSelectionStartFromPointer(t.e),i=this.selectionStart,r=this.selectionEnd;(e===this.__selectionStartOnMouseDown\\u0026\\u0026i!==r||i!==e\\u0026\\u0026r!==e)\\u0026\\u0026(e\\u003ethis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=e):(this.selectionStart=e,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i\\u0026\\u0026this.selectionEnd===r||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor=\\\"text\\\",this.canvas\\u0026\\u0026(this.canvas.defaultCursor=this.canvas.moveCursor=\\\"text\\\"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(t,e,i){var r=i.slice(0,t),n=T.util.string.graphemeSplit(r).length;if(t===e)return{selectionStart:n,selectionEnd:n};var o=i.slice(t,e);return{selectionStart:n,selectionEnd:n+T.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(t,e,i){var r=i.slice(0,t).join(\\\"\\\").length;return t===e?{selectionStart:r,selectionEnd:r}:{selectionStart:r,selectionEnd:r+i.slice(t,e).join(\\\"\\\").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var t=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=t.selectionStart,this.hiddenTextarea.selectionEnd=t.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()\\u0026\\u0026(this.initDimensions(),this.setCoords());var t=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=t.selectionEnd,this.inCompositionMode||(this.selectionStart=t.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var t=this._calcTextareaPosition();this.hiddenTextarea.style.left=t.left,this.hiddenTextarea.style.top=t.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var t=this.inCompositionMode?this.compositionStart:this.selectionStart,e=this._getCursorBoundaries(t),i=this.get2DCursorLocation(t),r=i.lineIndex,n=i.charIndex,o=this.getValueOfPropertyAt(r,n,\\\"fontSize\\\")*this.lineHeight,s=e.leftOffset,a=this.calcTransformMatrix(),h={x:e.left+s,y:e.top+e.topOffset+o},c=this.canvas.getRetinaScaling(),l=this.canvas.upperCanvasEl,u=l.width/c,f=l.height/c,d=u-o,g=f-o,p=l.clientWidth/u,v=l.clientHeight/f;return h=T.util.transformPoint(h,a),(h=T.util.transformPoint(h,this.canvas.viewportTransform)).x*=p,h.y*=v,h.x\\u003c0\\u0026\\u0026(h.x=0),h.x\\u003ed\\u0026\\u0026(h.x=d),h.y\\u003c0\\u0026\\u0026(h.y=0),h.y\\u003eg\\u0026\\u0026(h.y=g),h.x+=this.canvas._offset.left,h.y+=this.canvas._offset.top,{left:h.x+\\\"px\\\",top:h.y+\\\"px\\\",fontSize:o+\\\"px\\\",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas\\u0026\\u0026this.canvas.defaultCursor,moveCursor:this.canvas\\u0026\\u0026this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps\\u0026\\u0026(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas\\u0026\\u0026(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var t=this._textBeforeEdit!==this.text,e=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,e\\u0026\\u0026(e.blur\\u0026\\u0026e.blur(),e.parentNode\\u0026\\u0026e.parentNode.removeChild(e)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()\\u0026\\u0026(this.initDimensions(),this.setCoords()),this.fire(\\\"editing:exited\\\"),t\\u0026\\u0026this.fire(\\\"modified\\\"),this.canvas\\u0026\\u0026(this.canvas.off(\\\"mouse:move\\\",this.mouseMoveHandler),this.canvas.fire(\\\"text:editing:exited\\\",{target:this}),t\\u0026\\u0026this.canvas.fire(\\\"object:modified\\\",{target:this})),this},_removeExtraneousStyles:function(){for(var t in this.styles)this._textLines[t]||delete this.styles[t]},removeStyleFromTo:function(t,e){var i,r,n=this.get2DCursorLocation(t,!0),o=this.get2DCursorLocation(e,!0),s=n.lineIndex,a=n.charIndex,h=o.lineIndex,c=o.charIndex;if(s!==h){if(this.styles[s])for(i=a;i\\u003cthis._unwrappedTextLines[s].length;i++)delete this.styles[s][i];if(this.styles[h])for(i=c;i\\u003cthis._unwrappedTextLines[h].length;i++)(r=this.styles[h][i])\\u0026\\u0026(this.styles[s]||(this.styles[s]={}),this.styles[s][a+i-c]=r);for(i=s+1;i\\u003c=h;i++)delete this.styles[i];this.shiftLineStyles(h,s-h)}else if(this.styles[s]){r=this.styles[s];var l,u,f=c-a;for(i=a;i\\u003cc;i++)delete r[i];for(u in this.styles[s])(l=parseInt(u,10))\\u003e=c\\u0026\\u0026(r[l-f]=r[u],delete r[u])}},shiftLineStyles:function(t,e){var i=S(this.styles);for(var r in this.styles){var n=parseInt(r,10);n\\u003et\\u0026\\u0026(this.styles[n+e]=i[n],i[n-e]||delete this.styles[n])}},restartCursorIfNeeded:function(){this._currentTickState\\u0026\\u0026!this._currentTickState.isAborted\\u0026\\u0026this._currentTickCompleteState\\u0026\\u0026!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,e,i,r){var n,o={},s=!1,a=this._unwrappedTextLines[t].length===e;for(var h in i||(i=1),this.shiftLineStyles(t,i),this.styles[t]\\u0026\\u0026(n=this.styles[t][0===e?e:e-1]),this.styles[t]){var c=parseInt(h,10);c\\u003e=e\\u0026\\u0026(s=!0,o[c-e]=this.styles[t][h],a\\u0026\\u00260===e||delete this.styles[t][h])}var l=!1;for(s\\u0026\\u0026!a\\u0026\\u0026(this.styles[t+i]=o,l=!0),l\\u0026\\u0026i--;i\\u003e0;)r\\u0026\\u0026r[i-1]?this.styles[t+i]={0:S(r[i-1])}:n?this.styles[t+i]={0:S(n)}:delete this.styles[t+i],i--;this._forceClearCache=!0},insertCharStyleObject:function(t,e,i,r){this.styles||(this.styles={});var n=this.styles[t],o=n?S(n):{};for(var s in i||(i=1),o){var a=parseInt(s,10);a\\u003e=e\\u0026\\u0026(n[a+i]=o[a],o[a-i]||delete n[a])}if(this._forceClearCache=!0,r)for(;i--;)Object.keys(r[i]).length\\u0026\\u0026(this.styles[t]||(this.styles[t]={}),this.styles[t][e+i]=S(r[i]));else if(n)for(var h=n[e?e-1:1];h\\u0026\\u0026i--;)this.styles[t][e+i]=S(h)},insertNewStyleBlock:function(t,e,i){for(var r=this.get2DCursorLocation(e,!0),n=[0],o=0,s=0;s\\u003ct.length;s++)\\\"\\\\n\\\"===t[s]?n[++o]=0:n[o]++;for(n[0]\\u003e0\\u0026\\u0026(this.insertCharStyleObject(r.lineIndex,r.charIndex,n[0],i),i=i\\u0026\\u0026i.slice(n[0]+1)),o\\u0026\\u0026this.insertNewlineStyleObject(r.lineIndex,r.charIndex+n[0],o),s=1;s\\u003co;s++)n[s]\\u003e0?this.insertCharStyleObject(r.lineIndex+s,0,n[s],i):i\\u0026\\u0026(this.styles[r.lineIndex+s][0]=i[0]),i=i\\u0026\\u0026i.slice(n[s]+1);n[s]\\u003e0\\u0026\\u0026this.insertCharStyleObject(r.lineIndex+s,0,n[s],i)},setSelectionStartEndWithShift:function(t,e,i){i\\u003c=t?(e===t?this._selectionDirection=\\\"left\\\":\\\"right\\\"===this._selectionDirection\\u0026\\u0026(this._selectionDirection=\\\"left\\\",this.selectionEnd=t),this.selectionStart=i):i\\u003et\\u0026\\u0026i\\u003ce?\\\"right\\\"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(e===t?this._selectionDirection=\\\"right\\\":\\\"left\\\"===this._selectionDirection\\u0026\\u0026(this._selectionDirection=\\\"right\\\",this.selectionStart=e),this.selectionEnd=i)},setSelectionInBoundaries:function(){var t=this.text.length;this.selectionStart\\u003et?this.selectionStart=t:this.selectionStart\\u003c0\\u0026\\u0026(this.selectionStart=0),this.selectionEnd\\u003et?this.selectionEnd=t:this.selectionEnd\\u003c0\\u0026\\u0026(this.selectionEnd=0)}}),T.util.object.extend(T.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on(\\\"mousedown\\\",this.onMouseDown)},onMouseDown:function(t){if(this.canvas){this.__newClickTime=+new Date;var e=t.pointer;this.isTripleClick(e)\\u0026\\u0026(this.fire(\\\"tripleclick\\\",t),this._stopEvent(t.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=e,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(t){return this.__newClickTime-this.__lastClickTime\\u003c500\\u0026\\u0026this.__lastClickTime-this.__lastLastClickTime\\u003c500\\u0026\\u0026this.__lastPointer.x===t.x\\u0026\\u0026this.__lastPointer.y===t.y},_stopEvent:function(t){t.preventDefault\\u0026\\u0026t.preventDefault(),t.stopPropagation\\u0026\\u0026t.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(t){this.isEditing\\u0026\\u0026this.selectWord(this.getSelectionStartFromPointer(t.e))},tripleClickHandler:function(t){this.isEditing\\u0026\\u0026this.selectLine(this.getSelectionStartFromPointer(t.e))},initClicks:function(){this.on(\\\"mousedblclick\\\",this.doubleClickHandler),this.on(\\\"tripleclick\\\",this.tripleClickHandler)},_mouseDownHandler:function(t){!this.canvas||!this.editable||t.e.button\\u0026\\u00261!==t.e.button||(this.__isMousedown=!0,this.selected\\u0026\\u0026(this.inCompositionMode=!1,this.setCursorByClick(t.e)),this.isEditing\\u0026\\u0026(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd\\u0026\\u0026this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(t){!this.canvas||!this.editable||t.e.button\\u0026\\u00261!==t.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on(\\\"mousedown\\\",this._mouseDownHandler),this.on(\\\"mousedown:before\\\",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on(\\\"mouseup\\\",this.mouseUpHandler)},mouseUpHandler:function(t){if(this.__isMousedown=!1,!(!this.editable||this.group||t.transform\\u0026\\u0026t.transform.actionPerformed||t.e.button\\u0026\\u00261!==t.e.button)){if(this.canvas){var e=this.canvas._activeObject;if(e\\u0026\\u0026e!==this)return}this.__lastSelected\\u0026\\u0026!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(t.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(t){var e=this.getSelectionStartFromPointer(t),i=this.selectionStart,r=this.selectionEnd;t.shiftKey?this.setSelectionStartEndWithShift(i,r,e):(this.selectionStart=e,this.selectionEnd=e),this.isEditing\\u0026\\u0026(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(t){for(var e,i=this.getLocalPointer(t),r=0,n=0,o=0,s=0,a=0,h=0,c=this._textLines.length;h\\u003cc\\u0026\\u0026o\\u003c=i.y;h++)o+=this.getHeightOfLine(h)*this.scaleY,a=h,h\\u003e0\\u0026\\u0026(s+=this._textLines[h-1].length+this.missingNewlineOffset(h-1));n=this._getLineLeftOffset(a)*this.scaleX,e=this._textLines[a],\\\"rtl\\\"===this.direction\\u0026\\u0026(i.x=this.width*this.scaleX-i.x+n);for(var l=0,u=e.length;l\\u003cu\\u0026\\u0026(r=n,(n+=this.__charBounds[a][l].kernedWidth*this.scaleX)\\u003c=i.x);l++)s++;return this._getNewSelectionStartFromOffset(i,r,n,s,u)},_getNewSelectionStartFromOffset:function(t,e,i,r,n){var o=t.x-e,s=i-t.x,a=r+(s\\u003eo||s\\u003c0?0:1);return this.flipX\\u0026\\u0026(a=n-a),a\\u003ethis._text.length\\u0026\\u0026(a=this._text.length),a}}),T.util.object.extend(T.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=T.document.createElement(\\\"textarea\\\"),this.hiddenTextarea.setAttribute(\\\"autocapitalize\\\",\\\"off\\\"),this.hiddenTextarea.setAttribute(\\\"autocorrect\\\",\\\"off\\\"),this.hiddenTextarea.setAttribute(\\\"autocomplete\\\",\\\"off\\\"),this.hiddenTextarea.setAttribute(\\\"spellcheck\\\",\\\"false\\\"),this.hiddenTextarea.setAttribute(\\\"data-fabric-hiddentextarea\\\",\\\"\\\"),this.hiddenTextarea.setAttribute(\\\"wrap\\\",\\\"off\\\");var t=this._calcTextareaPosition();this.hiddenTextarea.style.cssText=\\\"position: absolute; top: \\\"+t.top+\\\"; left: \\\"+t.left+\\\"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; paddingｰtop: \\\"+t.fontSize+\\\";\\\",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):T.document.body.appendChild(this.hiddenTextarea),T.util.addListener(this.hiddenTextarea,\\\"keydown\\\",this.onKeyDown.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"keyup\\\",this.onKeyUp.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"input\\\",this.onInput.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"copy\\\",this.copy.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"cut\\\",this.copy.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"paste\\\",this.paste.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"compositionstart\\\",this.onCompositionStart.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"compositionupdate\\\",this.onCompositionUpdate.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"compositionend\\\",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized\\u0026\\u0026this.canvas\\u0026\\u0026(T.util.addListener(this.canvas.upperCanvasEl,\\\"click\\\",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:\\\"exitEditing\\\",27:\\\"exitEditing\\\",33:\\\"moveCursorUp\\\",34:\\\"moveCursorDown\\\",35:\\\"moveCursorRight\\\",36:\\\"moveCursorLeft\\\",37:\\\"moveCursorLeft\\\",38:\\\"moveCursorUp\\\",39:\\\"moveCursorRight\\\",40:\\\"moveCursorDown\\\"},keysMapRtl:{9:\\\"exitEditing\\\",27:\\\"exitEditing\\\",33:\\\"moveCursorUp\\\",34:\\\"moveCursorDown\\\",35:\\\"moveCursorLeft\\\",36:\\\"moveCursorRight\\\",37:\\\"moveCursorRight\\\",38:\\\"moveCursorUp\\\",39:\\\"moveCursorLeft\\\",40:\\\"moveCursorDown\\\"},ctrlKeysMapUp:{67:\\\"copy\\\",88:\\\"cut\\\"},ctrlKeysMapDown:{65:\\\"selectAll\\\"},onClick:function(){this.hiddenTextarea\\u0026\\u0026this.hiddenTextarea.focus()},onKeyDown:function(t){if(this.isEditing){var e=\\\"rtl\\\"===this.direction?this.keysMapRtl:this.keysMap;if(t.keyCode in e)this[e[t.keyCode]](t);else{if(!(t.keyCode in this.ctrlKeysMapDown)||!t.ctrlKey\\u0026\\u0026!t.metaKey)return;this[this.ctrlKeysMapDown[t.keyCode]](t)}t.stopImmediatePropagation(),t.preventDefault(),t.keyCode\\u003e=33\\u0026\\u0026t.keyCode\\u003c=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas\\u0026\\u0026this.canvas.requestRenderAll()}},onKeyUp:function(t){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:t.keyCode in this.ctrlKeysMapUp\\u0026\\u0026(t.ctrlKey||t.metaKey)\\u0026\\u0026(this[this.ctrlKeysMapUp[t.keyCode]](t),t.stopImmediatePropagation(),t.preventDefault(),this.canvas\\u0026\\u0026this.canvas.requestRenderAll())},onInput:function(t){var e=this.fromPaste;if(this.fromPaste=!1,t\\u0026\\u0026t.stopPropagation(),this.isEditing){var i,r,n,o,s,a=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,h=this._text.length,c=a.length,l=c-h,u=this.selectionStart,f=this.selectionEnd,d=u!==f;if(\\\"\\\"===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire(\\\"changed\\\"),void(this.canvas\\u0026\\u0026(this.canvas.fire(\\\"text:changed\\\",{target:this}),this.canvas.requestRenderAll()));var g=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),p=u\\u003eg.selectionStart;d?(i=this._text.slice(u,f),l+=f-u):c\\u003ch\\u0026\\u0026(i=p?this._text.slice(f+l,f):this._text.slice(u,u-l)),r=a.slice(g.selectionEnd-l,g.selectionEnd),i\\u0026\\u0026i.length\\u0026\\u0026(r.length\\u0026\\u0026(n=this.getSelectionStyles(u,u+1,!1),n=r.map((function(){return n[0]}))),d?(o=u,s=f):p?(o=f-i.length,s=f):(o=f,s=f+i.length),this.removeStyleFromTo(o,s)),r.length\\u0026\\u0026(e\\u0026\\u0026r.join(\\\"\\\")===T.copiedText\\u0026\\u0026!T.disableStyleCopyPaste\\u0026\\u0026(n=T.copiedTextStyle),this.insertNewStyleBlock(r,u,n)),this.updateFromTextArea(),this.fire(\\\"changed\\\"),this.canvas\\u0026\\u0026(this.canvas.fire(\\\"text:changed\\\",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(t){this.compositionStart=t.target.selectionStart,this.compositionEnd=t.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd\\u0026\\u0026(T.copiedText=this.getSelectedText(),T.disableStyleCopyPaste?T.copiedTextStyle=null:T.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(t){return t\\u0026\\u0026t.clipboardData||T.window.clipboardData},_getWidthBeforeCursor:function(t,e){var i,r=this._getLineLeftOffset(t);return e\\u003e0\\u0026\\u0026(r+=(i=this.__charBounds[t][e-1]).left+i.width),r},getDownCursorOffset:function(t,e){var i=this._getSelectionForOffset(t,e),r=this.get2DCursorLocation(i),n=r.lineIndex;if(n===this._textLines.length-1||t.metaKey||34===t.keyCode)return this._text.length-i;var o=r.charIndex,s=this._getWidthBeforeCursor(n,o),a=this._getIndexOnLine(n+1,s);return this._textLines[n].slice(o).length+a+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(t,e){return t.shiftKey\\u0026\\u0026this.selectionStart!==this.selectionEnd\\u0026\\u0026e?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(t,e){var i=this._getSelectionForOffset(t,e),r=this.get2DCursorLocation(i),n=r.lineIndex;if(0===n||t.metaKey||33===t.keyCode)return-i;var o=r.charIndex,s=this._getWidthBeforeCursor(n,o),a=this._getIndexOnLine(n-1,s),h=this._textLines[n].slice(0,o),c=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-h.length+(1-c)},_getIndexOnLine:function(t,e){for(var i,r,n=this._textLines[t],o=this._getLineLeftOffset(t),s=0,a=0,h=n.length;a\\u003ch;a++)if((o+=i=this.__charBounds[t][a].width)\\u003ee){r=!0;var c=o-i,l=o,u=Math.abs(c-e);s=Math.abs(l-e)\\u003cu?a:a-1;break}return r||(s=n.length-1),s},moveCursorDown:function(t){this.selectionStart\\u003e=this._text.length\\u0026\\u0026this.selectionEnd\\u003e=this._text.length||this._moveCursorUpOrDown(\\\"Down\\\",t)},moveCursorUp:function(t){0===this.selectionStart\\u0026\\u00260===this.selectionEnd||this._moveCursorUpOrDown(\\\"Up\\\",t)},_moveCursorUpOrDown:function(t,e){var i=this[\\\"get\\\"+t+\\\"CursorOffset\\\"](e,\\\"right\\\"===this._selectionDirection);e.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i\\u0026\\u0026(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(t){var e=\\\"left\\\"===this._selectionDirection?this.selectionStart+t:this.selectionEnd+t;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,e),0!==t},moveCursorWithoutShift:function(t){return t\\u003c0?(this.selectionStart+=t,this.selectionEnd=this.selectionStart):(this.selectionEnd+=t,this.selectionStart=this.selectionEnd),0!==t},moveCursorLeft:function(t){0===this.selectionStart\\u0026\\u00260===this.selectionEnd||this._moveCursorLeftOrRight(\\\"Left\\\",t)},_move:function(t,e,i){var r;if(t.altKey)r=this[\\\"findWordBoundary\\\"+i](this[e]);else{if(!t.metaKey\\u0026\\u002635!==t.keyCode\\u0026\\u002636!==t.keyCode)return this[e]+=\\\"Left\\\"===i?-1:1,!0;r=this[\\\"findLineBoundary\\\"+i](this[e])}if(void 0!==typeof r\\u0026\\u0026this[e]!==r)return this[e]=r,!0},_moveLeft:function(t,e){return this._move(t,e,\\\"Left\\\")},_moveRight:function(t,e){return this._move(t,e,\\\"Right\\\")},moveCursorLeftWithoutShift:function(t){var e=!0;return this._selectionDirection=\\\"left\\\",this.selectionEnd===this.selectionStart\\u0026\\u00260!==this.selectionStart\\u0026\\u0026(e=this._moveLeft(t,\\\"selectionStart\\\")),this.selectionEnd=this.selectionStart,e},moveCursorLeftWithShift:function(t){return\\\"right\\\"===this._selectionDirection\\u0026\\u0026this.selectionStart!==this.selectionEnd?this._moveLeft(t,\\\"selectionEnd\\\"):0!==this.selectionStart?(this._selectionDirection=\\\"left\\\",this._moveLeft(t,\\\"selectionStart\\\")):void 0},moveCursorRight:function(t){this.selectionStart\\u003e=this._text.length\\u0026\\u0026this.selectionEnd\\u003e=this._text.length||this._moveCursorLeftOrRight(\\\"Right\\\",t)},_moveCursorLeftOrRight:function(t,e){var i=\\\"moveCursor\\\"+t+\\\"With\\\";this._currentCursorOpacity=1,e.shiftKey?i+=\\\"Shift\\\":i+=\\\"outShift\\\",this[i](e)\\u0026\\u0026(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(t){return\\\"left\\\"===this._selectionDirection\\u0026\\u0026this.selectionStart!==this.selectionEnd?this._moveRight(t,\\\"selectionStart\\\"):this.selectionEnd!==this._text.length?(this._selectionDirection=\\\"right\\\",this._moveRight(t,\\\"selectionEnd\\\")):void 0},moveCursorRightWithoutShift:function(t){var e=!0;return this._selectionDirection=\\\"right\\\",this.selectionStart===this.selectionEnd?(e=this._moveRight(t,\\\"selectionStart\\\"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,e},removeChars:function(t,e){void 0===e\\u0026\\u0026(e=t+1),this.removeStyleFromTo(t,e),this._text.splice(t,e-t),this.text=this._text.join(\\\"\\\"),this.set(\\\"dirty\\\",!0),this._shouldClearDimensionCache()\\u0026\\u0026(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(t,e,i,r){void 0===r\\u0026\\u0026(r=i),r\\u003ei\\u0026\\u0026this.removeStyleFromTo(i,r);var n=T.util.string.graphemeSplit(t);this.insertNewStyleBlock(n,i,e),this._text=[].concat(this._text.slice(0,i),n,this._text.slice(r)),this.text=this._text.join(\\\"\\\"),this.set(\\\"dirty\\\",!0),this._shouldClearDimensionCache()\\u0026\\u0026(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var t=T.util.toFixed,e=/  +/g;T.util.object.extend(T.Text.prototype,{_toSVG:function(){var t=this._getSVGLeftTopOffsets(),e=this._getSVGTextAndBg(t.textTop,t.textLeft);return this._wrapSVGTextAndBg(e)},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(t){var e=this.getSvgTextDecoration(this);return[t.textBgRects.join(\\\"\\\"),'\\\\t\\\\t\\u003ctext xml:space=\\\"preserve\\\" ',this.fontFamily?'font-family=\\\"'+this.fontFamily.replace(/\\\"/g,\\\"'\\\")+'\\\" ':\\\"\\\",this.fontSize?'font-size=\\\"'+this.fontSize+'\\\" ':\\\"\\\",this.fontStyle?'font-style=\\\"'+this.fontStyle+'\\\" ':\\\"\\\",this.fontWeight?'font-weight=\\\"'+this.fontWeight+'\\\" ':\\\"\\\",e?'text-decoration=\\\"'+e+'\\\" ':\\\"\\\",'style=\\\"',this.getSvgStyles(!0),'\\\"',this.addPaintOrder(),\\\" \\u003e\\\",t.textSpans.join(\\\"\\\"),\\\"\\u003c/text\\u003e\\\\n\\\"]},_getSVGTextAndBg:function(t,e){var i,r=[],n=[],o=t;this._setSVGBg(n);for(var s=0,a=this._textLines.length;s\\u003ca;s++)i=this._getLineLeftOffset(s),(this.textBackgroundColor||this.styleHas(\\\"textBackgroundColor\\\",s))\\u0026\\u0026this._setSVGTextLineBg(n,s,e+i,o),this._setSVGTextLineText(r,s,e+i,o),o+=this.getHeightOfLine(s);return{textSpans:r,textBgRects:n}},_createTextCharSpan:function(i,r,n,o){var s=i!==i.trim()||i.match(e),a=this.getSvgSpanStyles(r,s),h=a?'style=\\\"'+a+'\\\"':\\\"\\\",c=r.deltaY,l=\\\"\\\",u=T.Object.NUM_FRACTION_DIGITS;return c\\u0026\\u0026(l=' dy=\\\"'+t(c,u)+'\\\" '),['\\u003ctspan x=\\\"',t(n,u),'\\\" y=\\\"',t(o,u),'\\\" ',l,h,\\\"\\u003e\\\",T.util.string.escapeXml(i),\\\"\\u003c/tspan\\u003e\\\"].join(\\\"\\\")},_setSVGTextLineText:function(t,e,i,r){var n,o,s,a,h,c=this.getHeightOfLine(e),l=-1!==this.textAlign.indexOf(\\\"justify\\\"),u=\\\"\\\",f=0,d=this._textLines[e];r+=c*(1-this._fontSizeFraction)/this.lineHeight;for(var g=0,p=d.length-1;g\\u003c=p;g++)h=g===p||this.charSpacing,u+=d[g],s=this.__charBounds[e][g],0===f?(i+=s.kernedWidth-s.width,f+=s.width):f+=s.kernedWidth,l\\u0026\\u0026!h\\u0026\\u0026this._reSpaceAndTab.test(d[g])\\u0026\\u0026(h=!0),h||(n=n||this.getCompleteStyleDeclaration(e,g),o=this.getCompleteStyleDeclaration(e,g+1),h=this._hasStyleChangedForSvg(n,o)),h\\u0026\\u0026(a=this._getStyleDeclaration(e,g)||{},t.push(this._createTextCharSpan(u,a,i,r)),u=\\\"\\\",n=o,i+=f,f=0)},_pushTextBgRect:function(e,i,r,n,o,s){var a=T.Object.NUM_FRACTION_DIGITS;e.push(\\\"\\\\t\\\\t\\u003crect \\\",this._getFillAttributes(i),' x=\\\"',t(r,a),'\\\" y=\\\"',t(n,a),'\\\" width=\\\"',t(o,a),'\\\" height=\\\"',t(s,a),'\\\"\\u003e\\u003c/rect\\u003e\\\\n')},_setSVGTextLineBg:function(t,e,i,r){for(var n,o,s=this._textLines[e],a=this.getHeightOfLine(e)/this.lineHeight,h=0,c=0,l=this.getValueOfPropertyAt(e,0,\\\"textBackgroundColor\\\"),u=0,f=s.length;u\\u003cf;u++)n=this.__charBounds[e][u],(o=this.getValueOfPropertyAt(e,u,\\\"textBackgroundColor\\\"))!==l?(l\\u0026\\u0026this._pushTextBgRect(t,l,i+c,r,h,a),c=n.left,h=n.width,l=o):h+=n.kernedWidth;o\\u0026\\u0026this._pushTextBgRect(t,o,i+c,r,h,a)},_getFillAttributes:function(t){var e=t\\u0026\\u0026\\\"string\\\"==typeof t?new T.Color(t):\\\"\\\";return e\\u0026\\u0026e.getSource()\\u0026\\u00261!==e.getAlpha()?'opacity=\\\"'+e.getAlpha()+'\\\" fill=\\\"'+e.setAlpha(1).toRgb()+'\\\"':'fill=\\\"'+t+'\\\"'},_getSVGLineTopOffset:function(t){for(var e,i=0,r=0;r\\u003ct;r++)i+=this.getHeightOfLine(r);return e=this.getHeightOfLine(r),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*e/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(t){return T.Object.prototype.getSvgStyles.call(this,t)+\\\" white-space: pre;\\\"}})}(),function(t){var e=t.fabric||(t.fabric={});e.Textbox=e.util.createClass(e.IText,e.Observable,{type:\\\"textbox\\\",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:e.Text.prototype._dimensionAffectingProps.concat(\\\"width\\\"),_wordJoiners:/[ \\\\t\\\\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing\\u0026\\u0026this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth\\u003ethis.width\\u0026\\u0026this._set(\\\"width\\\",this.dynamicMinWidth),-1!==this.textAlign.indexOf(\\\"justify\\\")\\u0026\\u0026this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:\\\"_dimensionAffectingProps\\\"}))},_generateStyleMap:function(t){for(var e=0,i=0,r=0,n={},o=0;o\\u003ct.graphemeLines.length;o++)\\\"\\\\n\\\"===t.graphemeText[r]\\u0026\\u0026o\\u003e0?(i=0,r++,e++):!this.splitByGrapheme\\u0026\\u0026this._reSpaceAndTab.test(t.graphemeText[r])\\u0026\\u0026o\\u003e0\\u0026\\u0026(i++,r++),n[o]={line:e,offset:i},r+=t.graphemeLines[o].length,i+=t.graphemeLines[o].length;return n},styleHas:function(t,i){if(this._styleMap\\u0026\\u0026!this.isWrapping){var r=this._styleMap[i];r\\u0026\\u0026(i=r.line)}return e.Text.prototype.styleHas.call(this,t,i)},isEmptyStyles:function(t){if(!this.styles)return!0;var e,i,r=0,n=!1,o=this._styleMap[t],s=this._styleMap[t+1];for(var a in o\\u0026\\u0026(t=o.line,r=o.offset),s\\u0026\\u0026(n=s.line===t,e=s.offset),i=void 0===t?this.styles:{line:this.styles[t]})for(var h in i[a])if(h\\u003e=r\\u0026\\u0026(!n||h\\u003ce))for(var c in i[a][h])return!1;return!0},_getStyleDeclaration:function(t,e){if(this._styleMap\\u0026\\u0026!this.isWrapping){var i=this._styleMap[t];if(!i)return null;t=i.line,e=i.offset+e}return this.callSuper(\\\"_getStyleDeclaration\\\",t,e)},_setStyleDeclaration:function(t,e,i){var r=this._styleMap[t];t=r.line,e=r.offset+e,this.styles[t][e]=i},_deleteStyleDeclaration:function(t,e){var i=this._styleMap[t];t=i.line,e=i.offset+e,delete this.styles[t][e]},_getLineStyle:function(t){var e=this._styleMap[t];return!!this.styles[e.line]},_setLineStyle:function(t){var e=this._styleMap[t];this.styles[e.line]={}},_wrapText:function(t,e){var i,r=[];for(this.isWrapping=!0,i=0;i\\u003ct.length;i++)r=r.concat(this._wrapLine(t[i],i,e));return this.isWrapping=!1,r},_measureWord:function(t,e,i){var r,n=0;i=i||0;for(var o=0,s=t.length;o\\u003cs;o++){n+=this._getGraphemeBox(t[o],e,o+i,r,true).kernedWidth,r=t[o]}return n},_wrapLine:function(t,i,r,n){var o=0,s=this.splitByGrapheme,a=[],h=[],c=s?e.util.string.graphemeSplit(t):t.split(this._wordJoiners),l=\\\"\\\",u=0,f=s?\\\"\\\":\\\" \\\",d=0,g=0,p=0,v=!0,m=this._getWidthOfCharSpacing();n=n||0;0===c.length\\u0026\\u0026c.push([]),r-=n;for(var y=0;y\\u003cc.length;y++)l=s?c[y]:e.util.string.graphemeSplit(c[y]),d=this._measureWord(l,i,u),u+=l.length,(o+=g+d-m)\\u003er\\u0026\\u0026!v?(a.push(h),h=[],o=d,v=!0):o+=m,v||s||h.push(f),h=h.concat(l),g=s?0:this._measureWord([f],i,u),u++,v=!1,d\\u003ep\\u0026\\u0026(p=d);return y\\u0026\\u0026a.push(h),p+n\\u003ethis.dynamicMinWidth\\u0026\\u0026(this.dynamicMinWidth=p-m+n),a},isEndOfWrapping:function(t){return!this._styleMap[t+1]||this._styleMap[t+1].line!==this._styleMap[t].line},missingNewlineOffset:function(t){return this.splitByGrapheme?this.isEndOfWrapping(t)?1:0:1},_splitTextIntoLines:function(t){for(var i=e.Text.prototype._splitTextIntoLines.call(this,t),r=this._wrapText(i.lines,this.width),n=new Array(r.length),o=0;o\\u003cr.length;o++)n[o]=r[o].join(\\\"\\\");return i.lines=n,i.graphemeLines=r,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var t={};for(var e in this._styleMap)this._textLines[e]\\u0026\\u0026(t[this._styleMap[e].line]=1);for(var e in this.styles)t[e]||delete this.styles[e]},toObject:function(t){return this.callSuper(\\\"toObject\\\",[\\\"minWidth\\\",\\\"splitByGrapheme\\\"].concat(t))}}),e.Textbox.fromObject=function(t,i){return e.Object._fromObject(\\\"Textbox\\\",t,i,\\\"text\\\")}}(t),function(){var t=T.controlsUtils,e=t.scaleSkewCursorStyleHandler,i=t.scaleCursorStyleHandler,r=t.scalingEqually,n=t.scalingYOrSkewingX,o=t.scalingXOrSkewingY,s=t.scaleOrSkewActionName,a=T.Object.prototype.controls;if(a.ml=new T.Control({x:-.5,y:0,cursorStyleHandler:e,actionHandler:o,getActionName:s}),a.mr=new T.Control({x:.5,y:0,cursorStyleHandler:e,actionHandler:o,getActionName:s}),a.mb=new T.Control({x:0,y:.5,cursorStyleHandler:e,actionHandler:n,getActionName:s}),a.mt=new T.Control({x:0,y:-.5,cursorStyleHandler:e,actionHandler:n,getActionName:s}),a.tl=new T.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:r}),a.tr=new T.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:r}),a.bl=new T.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:r}),a.br=new T.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:r}),a.mtr=new T.Control({x:0,y:-.5,actionHandler:t.rotationWithSnapping,cursorStyleHandler:t.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:\\\"rotate\\\"}),T.Textbox){var h=T.Textbox.prototype.controls={};h.mtr=a.mtr,h.tr=a.tr,h.br=a.br,h.tl=a.tl,h.bl=a.bl,h.mt=a.mt,h.mb=a.mb,h.mr=new T.Control({x:.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:\\\"resizing\\\"}),h.ml=new T.Control({x:-.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:\\\"resizing\\\"})}}(),function(){var t=T.Object.prototype._set,e=T.Object.prototype.render,i=T.Object.prototype.toObject,r=T.Object.prototype._createBaseSVGMarkup;T.util.object.extend(T.Object.prototype,{erasable:!0,getEraser:function(){return this.clipPath\\u0026\\u0026this.clipPath.eraser?this.clipPath:void 0},getClipPath:function(){var t=this.getEraser();return t?t._objects[0].clipPath:this.clipPath},setClipPath:function(t){var e=this.getEraser();(e?e._objects[0]:this).set(\\\"clipPath\\\",t),this.set(\\\"dirty\\\",!0)},_updateEraserDimensions:function(t,e){var i=this.getEraser();if(i){var r=i._objects[0],n={width:r.width,height:r.height},o=this._getNonTransformedDimensions(),s=T.util.object.extend({width:o.x,height:o.y},t);if(n.width===s.width\\u0026\\u0026n.height===s.height)return;var a=new T.Point((n.width-s.width)/2,(n.height-s.height)/2);i.set(s),i.setPositionByOrigin(new T.Point(0,0),\\\"center\\\",\\\"center\\\"),r.set(s),i.set(\\\"dirty\\\",!0),e||i.getObjects(\\\"path\\\").forEach((function(t){t.setPositionByOrigin(t.getCenterPoint().add(a),\\\"center\\\",\\\"center\\\")})),this.setCoords()}},_set:function(e,i){return t.call(this,e,i),\\\"width\\\"!==e\\u0026\\u0026\\\"height\\\"!==e||this._updateEraserDimensions(),this},render:function(t){this._updateEraserDimensions(),e.call(this,t)},toObject:function(t){return i.call(this,[\\\"erasable\\\"].concat(t))},eraserToSVG:function(t){var e=this.getEraser();if(e){var i=e._objects[0].fill;e._objects[0].fill=\\\"white\\\",e.clipPathId=\\\"CLIPPATH_\\\"+T.Object.__uid++;var r=[\\\"\\u003cdefs\\u003e\\\",\\\"\\u003cmask \\\"+['id=\\\"'+e.clipPathId+'\\\"'].join(\\\" \\\")+\\\" \\u003e\\\",e.toSVG(t.reviver),\\\"\\u003c/mask\\u003e\\\",\\\"\\u003c/defs\\u003e\\\"];return e._objects[0].fill=i,r.join(\\\"\\\\n\\\")}return\\\"\\\"},_createBaseSVGMarkup:function(t,e){var i=this.getEraser();if(i){var n=this.eraserToSVG(e);this.clipPath=null;var o=r.call(this,t,e);return this.clipPath=i,[n,o.replace(\\\"\\u003e\\\",'mask=\\\"url(#'+i.clipPathId+')\\\" \\u003e')].join(\\\"\\\\n\\\")}return r.call(this,t,e)}});var n=T.Group.prototype._restoreObjectsState,o=T.Group.prototype.toObject,s=T.Group.prototype._getBounds;T.util.object.extend(T.Group.prototype,{_getBounds:function(t,e,i){if(this.eraser)return this.width=this._objects[0].width,void(this.height=this._objects[0].height);s.call(this,t,e,i)},_addEraserPathToObjects:function(t){this._objects.forEach((function(e){T.EraserBrush.prototype._addPathToObjectEraser.call(T.EraserBrush.prototype,e,t)}))},applyEraserToObjects:function(){var t=this;if(this.getEraser()){var e=t.calcTransformMatrix();t.getEraser().clone((function(i){var r=i._objects[0].clipPath;t.clipPath=r||void 0,i.getObjects(\\\"path\\\").forEach((function(i){var n=T.util.multiplyTransformMatrices(e,i.calcTransformMatrix());T.util.applyTransformToObject(i,n),r?r.clone((function(r){T.EraserBrush.prototype.applyClipPathToPath.call(T.EraserBrush.prototype,i,r,e),t._addEraserPathToObjects(i)})):t._addEraserPathToObjects(i)}))}))}},_restoreObjectsState:function(){return!0===this.erasable\\u0026\\u0026this.applyEraserToObjects(),n.call(this)},toObject:function(t){return o.call(this,[\\\"eraser\\\"].concat(t))}}),T.util.object.extend(T.Canvas.prototype,{isErasing:function(){return this.isDrawingMode\\u0026\\u0026this.freeDrawingBrush\\u0026\\u0026\\\"eraser\\\"===this.freeDrawingBrush.type\\u0026\\u0026this.freeDrawingBrush._isErasing},renderAll:function(){if(!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),!this.isErasing()){this.hasLostContext\\u0026\\u0026this.renderTopLayer(this.contextTop);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this}this.freeDrawingBrush._render()}}),T.EraserBrush=T.util.createClass(T.PencilBrush,{type:\\\"eraser\\\",_ready:!1,_drawOverlayOnTop:!1,_isErasing:!1,initialize:function(t){this.callSuper(\\\"initialize\\\",t),this._renderBound=this._render.bind(this),this.render=this.render.bind(this)},hideObject:function(t){t\\u0026\\u0026(t._originalOpacity=t.opacity,t.set({opacity:0}))},restoreObjectVisibility:function(t){t\\u0026\\u0026t._originalOpacity\\u0026\\u0026(t.set({opacity:t._originalOpacity}),t._originalOpacity=void 0)},_isErasable:function(t){return!1!==t.erasable},prepareCanvasBackgroundForLayer:function(t){if(\\\"overlay\\\"!==t){var e=this.canvas.backgroundImage,i=\\\"top\\\"===t;e\\u0026\\u0026this._isErasable(e)===!i\\u0026\\u0026this.hideObject(e)}},prepareCanvasOverlayForLayer:function(t){var e=this.canvas,i=e.overlayImage,r=!!e.overlayColor;if(e.overlayColor\\u0026\\u0026\\\"overlay\\\"!==t\\u0026\\u0026(this.__overlayColor=e.overlayColor,delete e.overlayColor),\\\"bottom\\\"===t)return this.hideObject(i),!1;var n=\\\"top\\\"===t,o=i\\u0026\\u0026!this._isErasable(i)||r;return i\\u0026\\u0026this._isErasable(i)===!n\\u0026\\u0026this.hideObject(i),o},restoreCanvasDrawables:function(){var t=this.canvas;this.__overlayColor\\u0026\\u0026(t.overlayColor=this.__overlayColor,delete this.__overlayColor),this.restoreObjectVisibility(t.backgroundImage),this.restoreObjectVisibility(t.overlayImage)},prepareCollectionTraversal:function(t){var e=this;t.forEachObject((function(t){t.forEachObject\\u0026\\u0026\\\"deep\\\"===t.erasable?e.prepareCollectionTraversal(t):t.erasable\\u0026\\u0026e.hideObject(t)}))},restoreCollectionTraversal:function(t){var e=this;t.forEachObject((function(t){t.forEachObject\\u0026\\u0026\\\"deep\\\"===t.erasable?e.restoreCollectionTraversal(t):e.restoreObjectVisibility(t)}))},prepareCanvasObjectsForLayer:function(t){\\\"bottom\\\"===t\\u0026\\u0026this.prepareCollectionTraversal(this.canvas)},restoreCanvasObjectsFromLayer:function(t){\\\"bottom\\\"===t\\u0026\\u0026this.restoreCollectionTraversal(this.canvas)},prepareCanvasForLayer:function(t){return this.prepareCanvasBackgroundForLayer(t),this.prepareCanvasObjectsForLayer(t),this.prepareCanvasOverlayForLayer(t)},restoreCanvasFromLayer:function(t){this.restoreCanvasDrawables(),this.restoreCanvasObjectsFromLayer(t)},renderBottomLayer:function(){var t=this.canvas;this.prepareCanvasForLayer(\\\"bottom\\\"),t.renderCanvas(t.getContext(),t.getObjects().filter((function(t){return!t.erasable||t.forEachObject}))),this.restoreCanvasFromLayer(\\\"bottom\\\")},renderTopLayer:function(){var t=this.canvas;this._drawOverlayOnTop=this.prepareCanvasForLayer(\\\"top\\\"),t.renderCanvas(t.contextTop,t.getObjects()),this.callSuper(\\\"_render\\\"),this.restoreCanvasFromLayer(\\\"top\\\")},renderOverlay:function(){this.prepareCanvasForLayer(\\\"overlay\\\");var t=this.canvas,e=t.contextTop;t._renderOverlay(e),this.restoreCanvasFromLayer(\\\"overlay\\\")},_saveAndTransform:function(t){this.callSuper(\\\"_saveAndTransform\\\",t),t.globalCompositeOperation=\\\"destination-out\\\"},needsFullRender:function(){return this.callSuper(\\\"needsFullRender\\\")||this._drawOverlayOnTop},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)\\u0026\\u0026(this._prepareForDrawing(t),this._captureDrawingPath(t),this._isErasing=!0,this.canvas.fire(\\\"erasing:start\\\"),this._ready=!0,this._render())},_render:function(){this._ready\\u0026\\u0026(this.isRendering=1,this.renderBottomLayer(),this.renderTopLayer(),this.renderOverlay(),this.isRendering=0)},render:function(){return!!this._isErasing\\u0026\\u0026(this.isRendering?this.isRendering=T.util.requestAnimFrame(this._renderBound):this._render(),!0)},applyClipPathToPath:function(t,e,i){var r=t.calcTransformMatrix(),n=e.calcTransformMatrix(),o=T.util.multiplyTransformMatrices(T.util.invertTransform(r),i);return T.util.applyTransformToObject(e,T.util.multiplyTransformMatrices(o,n)),t.clipPath=e,t},clonePathWithClipPath:function(t,e,i){var r=e.calcTransformMatrix(),n=e.getClipPath(),o=this;t.clone((function(t){n.clone((function(e){i(o.applyClipPathToPath(t,e,r))}))}))},_addPathToObjectEraser:function(t,e){var i,r=this;if(t.forEachObject\\u0026\\u0026\\\"deep\\\"===t.erasable){var n=t._objects.filter((function(t){return t.erasable}));n.length\\u003e0\\u0026\\u0026t.clipPath?this.clonePathWithClipPath(e,t,(function(t){n.forEach((function(e){r._addPathToObjectEraser(e,t)}))})):n.length\\u003e0\\u0026\\u0026n.forEach((function(t){r._addPathToObjectEraser(t,e)}))}else{if(t.getEraser())i=t.clipPath;else{var o=t._getNonTransformedDimensions(),s=new T.Rect({fill:\\\"rgb(0,0,0)\\\",width:o.x,height:o.y,clipPath:t.clipPath,originX:\\\"center\\\",originY:\\\"center\\\"});i=new T.Group([s],{eraser:!0})}e.clone((function(e){e.globalCompositeOperation=\\\"destination-out\\\";var n=T.util.multiplyTransformMatrices(T.util.invertTransform(t.calcTransformMatrix()),e.calcTransformMatrix());T.util.applyTransformToObject(e,n),i.addWithUpdate(e),t.set({clipPath:i,dirty:!0}),t.fire(\\\"erasing:end\\\",{path:e}),t.group\\u0026\\u0026Array.isArray(r.__subTargets)\\u0026\\u0026r.__subTargets.push(t)}))}},applyEraserToCanvas:function(t){var e=this.canvas,i={};return[\\\"backgroundImage\\\",\\\"overlayImage\\\"].forEach((function(r){var n=e[r];n\\u0026\\u0026n.erasable\\u0026\\u0026(this._addPathToObjectEraser(n,t),i[r]=n)}),this),i},_finalizeAndAddPath:function(){var t=this.canvas.contextTop,e=this.canvas;t.closePath(),this.decimate\\u0026\\u0026(this._points=this.decimatePoints(this._points,this.decimate)),e.clearContext(e.contextTop),this._isErasing=!1;var i=this._points\\u0026\\u0026this._points.length\\u003e1?this.convertPointsToSVGPath(this._points):null;if(!i||this._isEmptySVGPath(i))return e.fire(\\\"erasing:end\\\"),void e.requestRenderAll();var r=this.createPath(i);r.setCoords(),e.fire(\\\"before:path:created\\\",{path:r});var n=this.applyEraserToCanvas(r),o=this;this.__subTargets=[];var s=[];e.forEachObject((function(t){t.erasable\\u0026\\u0026t.intersectsWithObject(r,!0,!0)\\u0026\\u0026(o._addPathToObjectEraser(t,r),s.push(t))})),e.fire(\\\"erasing:end\\\",{path:r,targets:s,subTargets:this.__subTargets,drawables:n}),delete this.__subTargets,e.requestRenderAll(),r.setCoords(),this._resetShadow(),e.fire(\\\"path:created\\\",{path:r})}})}()}(tt);var rt=tt.fabric;export{tt as default,rt as fabric};\\n10 | //# sourceMappingURL=/sm/4595deba885e6b95e012cf1ed9deed8a7b30edf3ae4c7d4bd5cc11d619b75c11.map\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web_version/v1/lib/fabric.js\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 9,\n        \"line_snippet\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=document.implementation.createHTMLDocument(\\\"\\\"),T.window=window;else{var O=new it.JSDOM(decodeURIComponent(\\\"%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E\\\"),{features:{FetchExternalResources:[\\\"img\\\"]},resources:\\\"usable\\\"}).window;T.document=O.document,T.jsdomImplForWrapper=it.implForWrapper,T.nodeCanvas=it.Canvas,T.window=O,DOMParser=T.window.DOMParser}if(T.isTouchSupported=\\\"ontouchstart\\\"in T.window||\\\"ontouchstart\\\"in T.document||T.window\\u0026\\u0026T.window.navigator\\u0026\\u0026T.window.navigator.maxTouchPoints\\u003e0,T.isLikelyNode=void 0!==p\\u0026\\u0026\\\"undefined\\\"==typeof window,T.SHARED_ATTRIBUTES=[\\\"display\\\",\\\"transform\\\",\\\"fill\\\",\\\"fill-opacity\\\",\\\"fill-rule\\\",\\\"opacity\\\",\\\"stroke\\\",\\\"stroke-dasharray\\\",\\\"stroke-linecap\\\",\\\"stroke-dashoffset\\\",\\\"stroke-linejoin\\\",\\\"stroke-miterlimit\\\",\\\"stroke-opacity\\\",\\\"stroke-width\\\",\\\"id\\\",\\\"paint-order\\\",\\\"vector-effect\\\",\\\"instantiated_by_use\\\",\\\"clip-path\\\"],T.DPI=96,T.reNum=\\\"(?:[-+]?(?:\\\\\\\\d+|\\\\\\\\d*\\\\\\\\.\\\\\\\\d+)(?:[eE][-+]?\\\\\\\\d+)?)\\\",T.commaWsp=\\\"(?:\\\\\\\\s+,?\\\\\\\\s*|,\\\\\\\\s*)\\\",T.rePathCommand=/([-+]?((\\\\d+\\\\.\\\\d+)|((\\\\d+)|(\\\\.\\\\d+)))(?:[eE][-+]?\\\\d+)?)/gi,T.reNonWord=/[ \\\\n\\\\.,;!\\\\?\\\\-]/,T.fontPaths={},T.iMatrix=[1,0,0,1,0,0],T.svgNS=\\\"http://www.w3.org/2000/svg\\\",T.perfLimitSizeTotal=2097152,T.maxCacheSideLimit=4096,T.minCacheSideLimit=256,T.charWidthsCache={},T.textureSize=2048,T.disableStyleCopyPaste=!1,T.enableGLFiltering=!0,T.devicePixelRatio=T.window.devicePixelRatio||T.window.webkitDevicePixelRatio||T.window.mozDevicePixelRatio||1,T.browserShadowBlurConstant=1,T.arcToSegmentsCache={},T.boundsOfCurveCache={},T.cachesBoundsOfCurve=!0,T.forceGLPutImageData=!1,T.initFilterBackend=function(){return T.enableGLFiltering\\u0026\\u0026T.isWebglSupported\\u0026\\u0026T.isWebglSupported(T.textureSize)?(console.log(\\\"max texture size: \\\"+T.maxTextureSize),new T.WebglFilterBackend({tileSize:T.textureSize})):T.Canvas2dFilterBackend?new T.Canvas2dFilterBackend:void 0},\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window\\u0026\\u0026(window.fabric=T),void 0===P)var P={};if(function(t){t.modifyEventListener=!1,t.modifySelectors=!1,t.configure=function(e){isFinite(e.modifyEventListener)\\u0026\\u0026(t.modifyEventListener=e.modifyEventListener),isFinite(e.modifySelectors)\\u0026\\u0026(t.modifySelectors=e.modifySelectors),!1===d\\u0026\\u0026t.modifyEventListener\\u0026\\u0026g(),!1===p\\u0026\\u0026t.modifySelectors\\u0026\\u0026v()},t.add=function(t,e,r,n){return i(t,e,r,n,\\\"add\\\")},t.remove=function(t,e,r,n){return i(t,e,r,n,\\\"remove\\\")},t.returnFalse=function(t){return!1},t.stop=function(t){t\\u0026\\u0026(t.stopPropagation\\u0026\\u0026t.stopPropagation(),t.cancelBubble=!0,t.cancelBubbleCount=0)},t.prevent=function(t){t\\u0026\\u0026(t.preventDefault?t.preventDefault():t.preventManipulation?t.preventManipulation():t.returnValue=!1)},t.cancel=function(e){t.stop(e),t.prevent(e)},t.blur=function(){var t=document.activeElement;if(t){var e=document.activeElement.nodeName;\\\"INPUT\\\"!==e\\u0026\\u0026\\\"TEXTAREA\\\"!==e\\u0026\\u0026\\\"true\\\"!==t.contentEditable||t.blur\\u0026\\u0026t.blur()}},t.getEventSupport=function(t,e){if(\\\"string\\\"==typeof t\\u0026\\u0026(e=t,t=window),(e=\\\"on\\\"+e)in t)return!0;if(t.setAttribute||(t=document.createElement(\\\"div\\\")),t.setAttribute\\u0026\\u0026t.removeAttribute){t.setAttribute(e,\\\"\\\");var i=\\\"function\\\"==typeof t[e];return void 0!==t[e]\\u0026\\u0026(t[e]=null),t.removeAttribute(e),i}};var e=function(t){if(!t||\\\"object\\\"!=typeof t)return t;var i=new t.constructor;for(var r in t)t[r]\\u0026\\u0026\\\"object\\\"==typeof t[r]?i[r]=e(t[r]):i[r]=t[r];return i},i=function(o,s,c,d,g,p){if(d=d||{},\\\"[object Object]\\\"===String(o)){var v=o;if(o=v.target,delete v.target,!v.type||!v.listener){for(var m in v){var y=v[m];\\\"function\\\"!=typeof y\\u0026\\u0026(d[m]=y)}var _={};for(var b in v){m=b.split(\\\",\\\");var x=v[b],C={};for(var w in d)C[w]=d[w];if(\\\"function\\\"==typeof x)c=x;else{if(\\\"function\\\"!=typeof x.listener)continue;c=x.listener;for(var w in x)\\\"function\\\"!=typeof x[w]\\u0026\\u0026(C[w]=x[w])}for(var S=0;S\\u003cm.length;S++)_[b]=P.add(o,m[S],c,C,g)}return _}for(var b in s=v.type,delete v.type,c=v.listener,delete v.listener,v)d[b]=v[b]}if(o\\u0026\\u0026s\\u0026\\u0026c){if(\\\"string\\\"==typeof o\\u0026\\u0026\\\"ready\\\"===s){if(!window.eventjs_stallOnReady){var T=(new Date).getTime(),O=d.timeout,E=d.interval||1e3/60,k=window.setInterval((function(){(new Date).getTime()-T\\u003eO\\u0026\\u0026window.clearInterval(k),document.querySelector(o)\\u0026\\u0026(window.clearInterval(k),setTimeout(c,1))}),E);return}s=\\\"load\\\",o=window}if(\\\"string\\\"==typeof o){if(0===(o=document.querySelectorAll(o)).length)return n(\\\"Missing target on listener!\\\",arguments);1===o.length\\u0026\\u0026(o=o[0])}var A,D={};if(o.length\\u003e0\\u0026\\u0026o!==window){for(var M=0,j=o.length;M\\u003cj;M++)(A=i(o[M],s,c,e(d),g))\\u0026\\u0026(D[M]=A);return r(D)}if(\\\"string\\\"==typeof s\\u0026\\u0026(-1!==(s=s.toLowerCase()).indexOf(\\\" \\\")?s=s.split(\\\" \\\"):-1!==s.indexOf(\\\",\\\")\\u0026\\u0026(s=s.split(\\\",\\\"))),\\\"string\\\"!=typeof s){if(\\\"number\\\"==typeof s.length)for(var F=0,L=s.length;F\\u003cL;F++)(A=i(o,s[F],c,e(d),g))\\u0026\\u0026(D[s[F]]=A);else for(var b in s)(A=\\\"function\\\"==typeof s[b]?i(o,b,s[b],e(d),g):i(o,b,s[b].listener,e(s[b]),g))\\u0026\\u0026(D[b]=A);return r(D)}if(0===s.indexOf(\\\"on\\\")\\u0026\\u0026(s=s.substr(2)),\\\"object\\\"!=typeof o)return n(\\\"Target is not defined!\\\",arguments);if(\\\"function\\\"!=typeof c)return n(\\\"Listener is not a function!\\\",arguments);var I=d.useCapture||!1,R=l(o)+\\\".\\\"+l(c)+\\\".\\\"+(I?1:0);if(t.Gesture\\u0026\\u0026t.Gesture._gestureHandlers[s]){if(R=s+R,\\\"remove\\\"===g){if(!h[R])return;h[R].remove(),delete h[R]}else if(\\\"add\\\"===g){if(h[R])return h[R].add(),h[R];if(d.useCall\\u0026\\u0026!t.modifyEventListener){var B=c;c=function(t,e){for(var i in e)t[i]=e[i];return B.call(o,t)}}d.gesture=s,d.target=o,d.listener=c,d.fromOverwrite=p,h[R]=t.proxy[s](d)}return h[R]}var Y,X=a(s);for(S=0;S\\u003cX.length;S++)if(Y=(s=X[S])+\\\".\\\"+R,\\\"remove\\\"===g){if(!h[Y])continue;o[f](s,c,I),delete h[Y]}else if(\\\"add\\\"===g){if(h[Y])return h[Y];o[u](s,c,I),h[Y]={id:Y,type:s,target:o,listener:c,remove:function(){for(var e=0;e\\u003cX.length;e++)t.remove(o,X[e],c,d)}}}return h[Y]}},r=function(t){return{remove:function(){for(var e in t)t[e].remove()},add:function(){for(var e in t)t[e].add()}}},n=function(t,e){\\\"undefined\\\"!=typeof console\\u0026\\u0026void 0!==console.error\\u0026\\u0026console.error(t,e)},o={msPointer:[\\\"MSPointerDown\\\",\\\"MSPointerMove\\\",\\\"MSPointerUp\\\"],touch:[\\\"touchstart\\\",\\\"touchmove\\\",\\\"touchend\\\"],mouse:[\\\"mousedown\\\",\\\"mousemove\\\",\\\"mouseup\\\"]},s={MSPointerDown:0,MSPointerMove:1,MSPointerUp:2,touchstart:0,touchmove:1,touchend:2,mousedown:0,mousemove:1,mouseup:2};t.supports={},window.navigator.msPointerEnabled\\u0026\\u0026(t.supports.msPointer=!0),t.getEventSupport(\\\"touchstart\\\")\\u0026\\u0026(t.supports.touch=!0),t.getEventSupport(\\\"mousedown\\\")\\u0026\\u0026(t.supports.mouse=!0);var a=function(e){var i=document.addEventListener?\\\"\\\":\\\"on\\\",r=s[e];if(isFinite(r)){var n=[];for(var a in t.supports)n.push(i+o[a][r]);return n}return[i+e]},h={},c=0,l=function(t){return t===window?\\\"#window\\\":t===document?\\\"#document\\\":(t.uniqueID||(t.uniqueID=\\\"e\\\"+c++),t.uniqueID)},u=document.addEventListener?\\\"addEventListener\\\":\\\"attachEvent\\\",f=document.removeEventListener?\\\"removeEventListener\\\":\\\"detachEvent\\\";t.createPointerEvent=function(e,i,r){var n=i.gesture,o=i.target,s=e.changedTouches||t.proxy.getCoords(e);if(s.length){var a=s[0];i.pointers=r?[]:s,i.pageX=a.pageX,i.pageY=a.pageY,i.x=i.pageX,i.y=i.pageY}var h=document.createEvent(\\\"Event\\\");for(var c in h.initEvent(n,!0,!0),h.originalEvent=e,i)\\\"target\\\"!==c\\u0026\\u0026(h[c]=i[c]);var l=h.type;t.Gesture\\u0026\\u0026t.Gesture._gestureHandlers[l]\\u0026\\u0026i.oldListener.call(o,h,i,!1)};var d=!1,g=function(){if(window.HTMLElement){var e=function(e){var r=function(r){var n=r+\\\"EventListener\\\",o=e[n];e[n]=function(e,n,s){if(t.Gesture\\u0026\\u0026t.Gesture._gestureHandlers[e]){var h=s;\\\"object\\\"==typeof s?h.useCall=!0:h={useCall:!0,useCapture:s},i(this,e,n,h,r,!0)}else for(var c=a(e),l=0;l\\u003cc.length;l++)o.call(this,c[l],n,s)}};r(\\\"add\\\"),r(\\\"remove\\\")};navigator.userAgent.match(/Firefox/)?(e(HTMLDivElement.prototype),e(HTMLCanvasElement.prototype)):e(HTMLElement.prototype),e(document),e(window)}},p=!1,v=function(){var t=NodeList.prototype;t.removeEventListener=function(t,e,i){for(var r=0,n=this.length;r\\u003cn;r++)this[r].removeEventListener(t,e,i)},t.addEventListener=function(t,e,i){for(var r=0,n=this.length;r\\u003cn;r++)this[r].addEventListener(t,e,i)}}}(P),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){t.pointerSetup=function(t,e){t.target=t.target||window,t.doc=t.target.ownerDocument||t.target,t.minFingers=t.minFingers||t.fingers||1,t.maxFingers=t.maxFingers||t.fingers||1/0,t.position=t.position||\\\"relative\\\",delete t.fingers,(e=e||{}).enabled=!0,e.gesture=t.gesture,e.target=t.target,e.env=t.env,P.modifyEventListener\\u0026\\u0026t.fromOverwrite\\u0026\\u0026(t.oldListener=t.listener,t.listener=P.createPointerEvent);var i=0,r=0===e.gesture.indexOf(\\\"pointer\\\")\\u0026\\u0026P.modifyEventListener?\\\"pointer\\\":\\\"mouse\\\";return t.oldListener\\u0026\\u0026(e.oldListener=t.oldListener),e.listener=t.listener,e.proxy=function(i){e.defaultListener=t.listener,t.listener=i,i(t.event,e)},e.add=function(){!0!==e.enabled\\u0026\\u0026(t.onPointerDown\\u0026\\u0026P.add(t.target,r+\\\"down\\\",t.onPointerDown),t.onPointerMove\\u0026\\u0026P.add(t.doc,r+\\\"move\\\",t.onPointerMove),t.onPointerUp\\u0026\\u0026P.add(t.doc,r+\\\"up\\\",t.onPointerUp),e.enabled=!0)},e.remove=function(){!1!==e.enabled\\u0026\\u0026(t.onPointerDown\\u0026\\u0026P.remove(t.target,r+\\\"down\\\",t.onPointerDown),t.onPointerMove\\u0026\\u0026P.remove(t.doc,r+\\\"move\\\",t.onPointerMove),t.onPointerUp\\u0026\\u0026P.remove(t.doc,r+\\\"up\\\",t.onPointerUp),e.reset(),e.enabled=!1)},e.pause=function(e){!t.onPointerMove||e\\u0026\\u0026!e.move||P.remove(t.doc,r+\\\"move\\\",t.onPointerMove),!t.onPointerUp||e\\u0026\\u0026!e.up||P.remove(t.doc,r+\\\"up\\\",t.onPointerUp),i=t.fingers,t.fingers=0},e.resume=function(e){!t.onPointerMove||e\\u0026\\u0026!e.move||P.add(t.doc,r+\\\"move\\\",t.onPointerMove),!t.onPointerUp||e\\u0026\\u0026!e.up||P.add(t.doc,r+\\\"up\\\",t.onPointerUp),t.fingers=i},e.reset=function(){t.tracker={},t.fingers=0},e};var e=P.supports;P.isMouse=!!e.mouse,P.isMSPointer=!!e.touch,P.isTouch=!!e.msPointer,t.pointerStart=function(e,i,r){var n=(e.type||\\\"mousedown\\\").toUpperCase();0===n.indexOf(\\\"MOUSE\\\")?(P.isMouse=!0,P.isTouch=!1,P.isMSPointer=!1):0===n.indexOf(\\\"TOUCH\\\")?(P.isMouse=!1,P.isTouch=!0,P.isMSPointer=!1):0===n.indexOf(\\\"MSPOINTER\\\")\\u0026\\u0026(P.isMouse=!1,P.isTouch=!1,P.isMSPointer=!0);var o=function(t,e){var i=r.bbox,n=a[e]={};switch(r.position){case\\\"absolute\\\":n.offsetX=0,n.offsetY=0;break;case\\\"differenceFromLast\\\":case\\\"difference\\\":n.offsetX=t.pageX,n.offsetY=t.pageY;break;case\\\"move\\\":n.offsetX=t.pageX-i.x1,n.offsetY=t.pageY-i.y1;break;default:n.offsetX=i.x1-i.scrollLeft,n.offsetY=i.y1-i.scrollTop}var o=t.pageX-n.offsetX,s=t.pageY-n.offsetY;n.rotation=0,n.scale=1,n.startTime=n.moveTime=(new Date).getTime(),n.move={x:o,y:s},n.start={x:o,y:s},r.fingers++};r.event=e,i.defaultListener\\u0026\\u0026(r.listener=i.defaultListener,delete i.defaultListener);for(var s=!r.fingers,a=r.tracker,h=e.changedTouches||t.getCoords(e),c=h.length,l=0;l\\u003cc;l++){var u=h[l],f=u.identifier||1/0;if(r.fingers){if(r.fingers\\u003e=r.maxFingers){var d=[];for(var f in r.tracker)d.push(f);return i.identifier=d.join(\\\",\\\"),s}for(var g in a)if(a[g].up){delete a[g],o(u,f),r.cancel=!0;break}if(a[f])continue;o(u,f)}else a=r.tracker={},i.bbox=r.bbox=t.getBoundingBox(r.target),r.fingers=0,r.cancel=!1,o(u,f)}d=[];for(var f in r.tracker)d.push(f);return i.identifier=d.join(\\\",\\\"),s},t.pointerEnd=function(t,e,i,r){for(var n=t.touches||[],o=n.length,s={},a=0;a\\u003co;a++){s[(h=n[a].identifier)||1/0]=!0}for(var h in i.tracker){var c=i.tracker[h];s[h]||c.up||(r\\u0026\\u0026r({pageX:c.pageX,pageY:c.pageY,changedTouches:[{pageX:c.pageX,pageY:c.pageY,identifier:\\\"Infinity\\\"===h?1/0:h}]},\\\"up\\\"),c.up=!0,i.fingers--)}if(0!==i.fingers)return!1;var l=[];for(var h in i.gestureFingers=0,i.tracker)i.gestureFingers++,l.push(h);return e.identifier=l.join(\\\",\\\"),!0},t.getCoords=function(e){return void 0!==e.pageX?t.getCoords=function(t){return Array({type:\\\"mouse\\\",x:t.pageX,y:t.pageY,pageX:t.pageX,pageY:t.pageY,identifier:t.pointerId||1/0})}:t.getCoords=function(t){var e=document.documentElement;return t=t||window.event,Array({type:\\\"mouse\\\",x:t.clientX+e.scrollLeft,y:t.clientY+e.scrollTop,pageX:t.clientX+e.scrollLeft,pageY:t.clientY+e.scrollTop,identifier:1/0})},t.getCoords(e)},t.getCoord=function(e){if(\\\"ontouchstart\\\"in window){var i=0,r=0;t.getCoord=function(t){var e=t.changedTouches;return e\\u0026\\u0026e.length?{x:i=e[0].pageX,y:r=e[0].pageY}:{x:i,y:r}}}else void 0!==e.pageX\\u0026\\u0026void 0!==e.pageY?t.getCoord=function(t){return{x:t.pageX,y:t.pageY}}:t.getCoord=function(t){var e=document.documentElement;return{x:(t=t||window.event).clientX+e.scrollLeft,y:t.clientY+e.scrollTop}};return t.getCoord(e)};var i,r,n,o=function(t,e){var i=parseFloat(t.getPropertyValue(e),10);return isFinite(i)?i:0};return t.getBoundingBox=function(t){t!==window\\u0026\\u0026t!==document||(t=document.body);var e={},i=t.getBoundingClientRect();if(e.width=i.width,e.height=i.height,e.x1=i.left,e.y1=i.top,e.scaleX=i.width/t.offsetWidth||1,e.scaleY=i.height/t.offsetHeight||1,e.scrollLeft=0,e.scrollTop=0,!1===(\\\"border-box\\\"===(c=window.getComputedStyle(t)).getPropertyValue(\\\"box-sizing\\\"))){var r=o(c,\\\"border-left-width\\\"),n=o(c,\\\"border-right-width\\\"),s=o(c,\\\"border-bottom-width\\\"),a=o(c,\\\"border-top-width\\\");e.border=[r,n,a,s],e.x1+=r,e.y1+=a,e.width-=n+r,e.height-=s+a}e.x2=e.x1+e.width,e.y2=e.y1+e.height;for(var h=\\\"fixed\\\"===(l=c.getPropertyValue(\\\"position\\\"))?t:t.parentNode;null!==h\\u0026\\u0026h!==document.body\\u0026\\u0026void 0!==h.scrollTop;){var c,l;if(\\\"absolute\\\"===(l=(c=window.getComputedStyle(h)).getPropertyValue(\\\"position\\\")));else{if(\\\"fixed\\\"===l){e.scrollTop-=h.parentNode.scrollTop,e.scrollLeft-=h.parentNode.scrollLeft;break}e.scrollLeft+=h.scrollLeft,e.scrollTop+=h.scrollTop}h=h.parentNode}return e.scrollBodyLeft=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,e.scrollBodyTop=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,e.scrollLeft-=e.scrollBodyLeft,e.scrollTop-=e.scrollBodyTop,e},r=navigator.userAgent.toLowerCase(),n=-1!==r.indexOf(\\\"macintosh\\\"),i=n\\u0026\\u0026-1!==r.indexOf(\\\"khtml\\\")?{91:!0,93:!0}:n\\u0026\\u0026-1!==r.indexOf(\\\"firefox\\\")?{224:!0}:{17:!0},(t.metaTrackerReset=function(){P.fnKey=t.fnKey=!1,P.metaKey=t.metaKey=!1,P.escKey=t.escKey=!1,P.ctrlKey=t.ctrlKey=!1,P.shiftKey=t.shiftKey=!1,P.altKey=t.altKey=!1})(),t.metaTracker=function(e){var r=\\\"keydown\\\"===e.type;27===e.keyCode\\u0026\\u0026(P.escKey=t.escKey=r),i[e.keyCode]\\u0026\\u0026(P.metaKey=t.metaKey=r),P.ctrlKey=t.ctrlKey=e.ctrlKey,P.shiftKey=t.shiftKey=e.shiftKey,P.altKey=t.altKey=e.altKey},t}(P.proxy),void 0===P)P={};if(P.MutationObserver=(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,i=!e\\u0026\\u0026function(){var t=document.createElement(\\\"p\\\"),e=!1,i=function(){e=!0};if(t.addEventListener)t.addEventListener(\\\"DOMAttrModified\\\",i,!1);else{if(!t.attachEvent)return!1;t.attachEvent(\\\"onDOMAttrModified\\\",i)}return t.setAttribute(\\\"id\\\",\\\"target\\\"),e}(),function(t,r){e?new e((function(t){t.forEach((function(t){r.call(t.target,t.attributeName)}))})).observe(t,{subtree:!1,attributes:!0}):i?P.add(t,\\\"DOMAttrModified\\\",(function(e){r.call(t,e.attrName)})):\\\"onpropertychange\\\"in document.body\\u0026\\u0026P.add(t,\\\"propertychange\\\",(function(e){r.call(t,window.event.propertyName)}))}),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=((r=P.proxy).click=function(t){t.gesture=t.gesture||\\\"click\\\",t.maxFingers=t.maxFingers||t.fingers||1,t.onPointerDown=function(i){r.pointerStart(i,e,t)\\u0026\\u0026P.add(t.target,\\\"mouseup\\\",t.onPointerUp)},t.onPointerUp=function(i){if(r.pointerEnd(i,e,t)){P.remove(t.target,\\\"mouseup\\\",t.onPointerUp);var n=(i.changedTouches||r.getCoords(i))[0],o=t.bbox,s=r.getBoundingBox(t.target),a=n.pageY-s.scrollBodyTop,h=n.pageX-s.scrollBodyLeft;if(h\\u003eo.x1\\u0026\\u0026a\\u003eo.y1\\u0026\\u0026h\\u003co.x2\\u0026\\u0026a\\u003co.y2\\u0026\\u0026o.scrollTop===s.scrollTop){for(var c in t.tracker)break;var l=t.tracker[c];e.x=l.start.x,e.y=l.start.y,t.listener(i,e)}}};var e=r.pointerSetup(t);return e.state=\\\"click\\\",P.add(t.target,\\\"mousedown\\\",t.onPointerDown),e},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.click=r.click,r),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.dbltap=t.dblclick=function(e){e.gesture=e.gesture||\\\"dbltap\\\",e.maxFingers=e.maxFingers||e.fingers||1;var i,r,n,o,s;e.onPointerDown=function(h){var c=h.changedTouches||t.getCoords(h);i\\u0026\\u0026!r?(s=c[0],r=(new Date).getTime()-i):(o=c[0],i=(new Date).getTime(),r=0,clearTimeout(n),n=setTimeout((function(){i=0}),700)),t.pointerStart(h,a,e)\\u0026\\u0026(P.add(e.target,\\\"mousemove\\\",e.onPointerMove).listener(h),P.add(e.target,\\\"mouseup\\\",e.onPointerUp))},e.onPointerMove=function(a){if(i\\u0026\\u0026!r){var h=a.changedTouches||t.getCoords(a);s=h[0]}var c=e.bbox,l=s.pageX-c.x1,u=s.pageY-c.y1;l\\u003e0\\u0026\\u0026l\\u003cc.width\\u0026\\u0026u\\u003e0\\u0026\\u0026u\\u003cc.height\\u0026\\u0026Math.abs(s.pageX-o.pageX)\\u003c=25\\u0026\\u0026Math.abs(s.pageY-o.pageY)\\u003c=25||(P.remove(e.target,\\\"mousemove\\\",e.onPointerMove),clearTimeout(n),i=r=0)},e.onPointerUp=function(o){if(t.pointerEnd(o,a,e)\\u0026\\u0026(P.remove(e.target,\\\"mousemove\\\",e.onPointerMove),P.remove(e.target,\\\"mouseup\\\",e.onPointerUp)),i\\u0026\\u0026r){if(r\\u003c=700){for(var s in a.state=e.gesture,e.tracker)break;var h=e.tracker[s];a.x=h.start.x,a.y=h.start.y,e.listener(o,a)}clearTimeout(n),i=r=0}};var a=t.pointerSetup(e);return a.state=\\\"dblclick\\\",P.add(e.target,\\\"mousedown\\\",e.onPointerDown),a},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.dbltap=t.dbltap,P.Gesture._gestureHandlers.dblclick=t.dblclick,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.dragElement=function(e,i){t.drag({event:i,target:e,position:\\\"move\\\",listener:function(t,i){e.style.left=i.x+\\\"px\\\",e.style.top=i.y+\\\"px\\\",P.prevent(t)}})},t.drag=function(e){e.gesture=\\\"drag\\\",e.onPointerDown=function(r){t.pointerStart(r,i,e)\\u0026\\u0026(e.monitor||(P.add(e.doc,\\\"mousemove\\\",e.onPointerMove),P.add(e.doc,\\\"mouseup\\\",e.onPointerUp))),e.onPointerMove(r,\\\"down\\\")},e.onPointerMove=function(r,n){if(!e.tracker)return e.onPointerDown(r);e.bbox;for(var o=r.changedTouches||t.getCoords(r),s=o.length,a=0;a\\u003cs;a++){var h=o[a],c=h.identifier||1/0,l=e.tracker[c];l\\u0026\\u0026(l.pageX=h.pageX,l.pageY=h.pageY,i.state=n||\\\"move\\\",i.identifier=c,i.start=l.start,i.fingers=e.fingers,\\\"differenceFromLast\\\"===e.position?(i.x=l.pageX-l.offsetX,i.y=l.pageY-l.offsetY,l.offsetX=l.pageX,l.offsetY=l.pageY):(i.x=l.pageX-l.offsetX,i.y=l.pageY-l.offsetY),e.listener(r,i))}},e.onPointerUp=function(r){t.pointerEnd(r,i,e,e.onPointerMove)\\u0026\\u0026(e.monitor||(P.remove(e.doc,\\\"mousemove\\\",e.onPointerMove),P.remove(e.doc,\\\"mouseup\\\",e.onPointerUp)))};var i=t.pointerSetup(e);return e.event?e.onPointerDown(e.event):(P.add(e.target,\\\"mousedown\\\",e.onPointerDown),e.monitor\\u0026\\u0026(P.add(e.doc,\\\"mousemove\\\",e.onPointerMove),P.add(e.doc,\\\"mouseup\\\",e.onPointerUp))),i},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.drag=t.drag,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){var e=Math.PI/180,i=function(t,e){var i=0,r=0,n=0;for(var o in e){var s=e[o];s.up||(i+=s.move.x,r+=s.move.y,n++)}return t.x=i/=n,t.y=r/=n,t};return t.gesture=function(r){r.gesture=r.gesture||\\\"gesture\\\",r.minFingers=r.minFingers||r.fingers||2,r.onPointerDown=function(e){var o=r.fingers;if(t.pointerStart(e,n,r)\\u0026\\u0026(P.add(r.doc,\\\"mousemove\\\",r.onPointerMove),P.add(r.doc,\\\"mouseup\\\",r.onPointerUp)),r.fingers===r.minFingers\\u0026\\u0026o!==r.fingers){n.fingers=r.minFingers,n.scale=1,n.rotation=0,n.state=\\\"start\\\";var s=\\\"\\\";for(var a in r.tracker)s+=a;n.identifier=parseInt(s),i(n,r.tracker),r.listener(e,n)}},r.onPointerMove=function(o,s){for(var a=r.bbox,h=r.tracker,c=(f=o.changedTouches||t.getCoords(o)).length,l=0;l\\u003cc;l++){var u=h[p=(v=f[l]).identifier||1/0];u\\u0026\\u0026(u.move.x=v.pageX-a.x1,u.move.y=v.pageY-a.y1)}if(!(r.fingers\\u003cr.minFingers)){var f=[],d=0,g=0;for(var p in i(n,h),h){var v;if(!(v=h[p]).up){var m=v.start;if(!m.distance){var y=m.x-n.x,_=m.y-n.y;m.distance=Math.sqrt(y*y+_*_),m.angle=Math.atan2(y,_)/e}y=v.move.x-n.x,_=v.move.y-n.y;d+=Math.sqrt(y*y+_*_)/m.distance;var b=Math.atan2(y,_)/e,x=(m.angle-b+360)%360-180;v.DEG2=v.DEG1,v.DEG1=x\\u003e0?x:-x,void 0!==v.DEG2\\u0026\\u0026(x\\u003e0?v.rotation+=v.DEG1-v.DEG2:v.rotation-=v.DEG1-v.DEG2,g+=v.rotation),f.push(v.move)}}n.touches=f,n.fingers=r.fingers,n.scale=d/r.fingers,n.rotation=g/r.fingers,n.state=\\\"change\\\",r.listener(o,n)}},r.onPointerUp=function(e){var i=r.fingers;t.pointerEnd(e,n,r)\\u0026\\u0026(P.remove(r.doc,\\\"mousemove\\\",r.onPointerMove),P.remove(r.doc,\\\"mouseup\\\",r.onPointerUp)),i===r.minFingers\\u0026\\u0026r.fingers\\u003cr.minFingers\\u0026\\u0026(n.fingers=r.fingers,n.state=\\\"end\\\",r.listener(e,n))};var n=t.pointerSetup(r);return P.add(r.target,\\\"mousedown\\\",r.onPointerDown),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.gesture=t.gesture,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.pointerdown=t.pointermove=t.pointerup=function(e){if(e.gesture=e.gesture||\\\"pointer\\\",!e.target.isPointerEmitter){var i=!0;e.onPointerDown=function(t){i=!1,r.gesture=\\\"pointerdown\\\",e.listener(t,r)},e.onPointerMove=function(t){r.gesture=\\\"pointermove\\\",e.listener(t,r,i)},e.onPointerUp=function(t){i=!0,r.gesture=\\\"pointerup\\\",e.listener(t,r,!0)};var r=t.pointerSetup(e);return P.add(e.target,\\\"mousedown\\\",e.onPointerDown),P.add(e.target,\\\"mousemove\\\",e.onPointerMove),P.add(e.doc,\\\"mouseup\\\",e.onPointerUp),e.target.isPointerEmitter=!0,r}},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.pointerdown=t.pointerdown,P.Gesture._gestureHandlers.pointermove=t.pointermove,P.Gesture._gestureHandlers.pointerup=t.pointerup,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.shake=function(t){var e={gesture:\\\"devicemotion\\\",acceleration:{},accelerationIncludingGravity:{},target:t.target,listener:t.listener,remove:function(){window.removeEventListener(\\\"devicemotion\\\",o,!1)}},i=(new Date).getTime(),r={x:0,y:0,z:0},n={x:{count:0,value:0},y:{count:0,value:0},z:{count:0,value:0}},o=function(o){var s=.8,a=o.accelerationIncludingGravity;if(r.x=s*r.x+(1-s)*a.x,r.y=s*r.y+(1-s)*a.y,r.z=s*r.z+(1-s)*a.z,e.accelerationIncludingGravity=r,e.acceleration.x=a.x-r.x,e.acceleration.y=a.y-r.y,e.acceleration.z=a.z-r.z,\\\"devicemotion\\\"!==t.gesture)for(var h=(new Date).getTime(),c=0;c\\u003c3;c++){var l=\\\"xyz\\\"[c],u=e.acceleration[l],f=n[l],d=Math.abs(u);if(!(h-i\\u003c1e3)\\u0026\\u0026d\\u003e4){var g=h*u/d,p=Math.abs(g+f.value);f.value\\u0026\\u0026p\\u003c200?(f.value=g,f.count++,3===f.count\\u0026\\u0026(t.listener(o,e),i=h,f.value=0,f.count=0)):(f.value=g,f.count=1)}}else t.listener(o,e)};if(window.addEventListener)return window.addEventListener(\\\"devicemotion\\\",o,!1),e},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.shake=t.shake,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){var e=Math.PI/180;return t.swipe=function(i){i.snap=i.snap||90,i.threshold=i.threshold||1,i.gesture=i.gesture||\\\"swipe\\\",i.onPointerDown=function(e){t.pointerStart(e,r,i)\\u0026\\u0026(P.add(i.doc,\\\"mousemove\\\",i.onPointerMove).listener(e),P.add(i.doc,\\\"mouseup\\\",i.onPointerUp))},i.onPointerMove=function(e){for(var r=e.changedTouches||t.getCoords(e),n=r.length,o=0;o\\u003cn;o++){var s=r[o],a=s.identifier||1/0,h=i.tracker[a];h\\u0026\\u0026(h.move.x=s.pageX,h.move.y=s.pageY,h.moveTime=(new Date).getTime())}},i.onPointerUp=function(n){if(t.pointerEnd(n,r,i)){var o,s;P.remove(i.doc,\\\"mousemove\\\",i.onPointerMove),P.remove(i.doc,\\\"mouseup\\\",i.onPointerUp);var a={x:0,y:0},h=0,c=0,l=0;for(var u in i.tracker){var f=i.tracker[u],d=f.move.x-f.start.x,g=f.move.y-f.start.y;h+=f.move.x,c+=f.move.y,a.x+=f.start.x,a.y+=f.start.y,l++;var p=Math.sqrt(d*d+g*g),v=f.moveTime-f.startTime,m=Math.atan2(d,g)/e+180,y=v?p/v:0;if(void 0===s)s=m,o=y;else{if(!(Math.abs(m-s)\\u003c=20))return;s=(s+m)/2,o=(o+y)/2}}var _=i.gestureFingers;i.minFingers\\u003c=_\\u0026\\u0026i.maxFingers\\u003e=_\\u0026\\u0026o\\u003ei.threshold\\u0026\\u0026(a.x/=l,a.y/=l,r.start=a,r.x=h/l,r.y=c/l,r.angle=-(((s/i.snap+.5\\u003e\\u003e0)*i.snap||360)-360),r.velocity=o,r.fingers=_,r.state=\\\"swipe\\\",i.listener(n,r))}};var r=t.pointerSetup(i);return P.add(i.target,\\\"mousedown\\\",i.onPointerDown),r},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.swipe=t.swipe,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.longpress=function(e){return e.gesture=\\\"longpress\\\",t.tap(e)},t.tap=function(e){var i,r;e.delay=e.delay||500,e.timeout=e.timeout||250,e.driftDeviance=e.driftDeviance||10,e.gesture=e.gesture||\\\"tap\\\",e.onPointerDown=function(o){if(t.pointerStart(o,n,e)){if(i=(new Date).getTime(),P.add(e.doc,\\\"mousemove\\\",e.onPointerMove).listener(o),P.add(e.doc,\\\"mouseup\\\",e.onPointerUp),\\\"longpress\\\"!==e.gesture)return;r=setTimeout((function(){if(!(o.cancelBubble\\u0026\\u0026++o.cancelBubbleCount\\u003e1)){var t=0;for(var i in e.tracker){var r=e.tracker[i];if(!0===r.end)return;if(e.cancel)return;t++}e.minFingers\\u003c=t\\u0026\\u0026e.maxFingers\\u003e=t\\u0026\\u0026(n.state=\\\"start\\\",n.fingers=t,n.x=r.start.x,n.y=r.start.y,e.listener(o,n))}}),e.delay)}},e.onPointerMove=function(i){for(var r=e.bbox,n=i.changedTouches||t.getCoords(i),o=n.length,s=0;s\\u003co;s++){var a=n[s],h=a.identifier||1/0,c=e.tracker[h];if(c){var l=a.pageX-r.x1,u=a.pageY-r.y1,f=l-c.start.x,d=u-c.start.y,g=Math.sqrt(f*f+d*d);if(!(l\\u003e0\\u0026\\u0026l\\u003cr.width\\u0026\\u0026u\\u003e0\\u0026\\u0026u\\u003cr.height\\u0026\\u0026g\\u003c=e.driftDeviance))return P.remove(e.doc,\\\"mousemove\\\",e.onPointerMove),void(e.cancel=!0)}}},e.onPointerUp=function(o){if(t.pointerEnd(o,n,e)){if(clearTimeout(r),P.remove(e.doc,\\\"mousemove\\\",e.onPointerMove),P.remove(e.doc,\\\"mouseup\\\",e.onPointerUp),o.cancelBubble\\u0026\\u0026++o.cancelBubbleCount\\u003e1)return;if(\\\"longpress\\\"===e.gesture)return void(\\\"start\\\"===n.state\\u0026\\u0026(n.state=\\\"end\\\",e.listener(o,n)));if(e.cancel)return;if((new Date).getTime()-i\\u003ee.timeout)return;var s=e.gestureFingers;e.minFingers\\u003c=s\\u0026\\u0026e.maxFingers\\u003e=s\\u0026\\u0026(n.state=\\\"tap\\\",n.fingers=e.gestureFingers,e.listener(o,n))}};var n=t.pointerSetup(e);return P.add(e.target,\\\"mousedown\\\",e.onPointerDown),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.tap=t.tap,P.Gesture._gestureHandlers.longpress=t.longpress,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\u0026\\u0026(P.proxy={}),P.proxy=function(t){return t.wheelPreventElasticBounce=function(t){t\\u0026\\u0026(\\\"string\\\"==typeof t\\u0026\\u0026(t=document.querySelector(t)),P.add(t,\\\"wheel\\\",(function(t,e){e.preventElasticBounce(),P.stop(t)})))},t.wheel=function(t){var e,i=t.timeout||150,r=0,n={gesture:\\\"wheel\\\",state:\\\"start\\\",wheelDelta:0,target:t.target,listener:t.listener,preventElasticBounce:function(t){var e=this.target,i=e.scrollTop;(i+e.offsetHeight===e.scrollHeight\\u0026\\u0026this.wheelDelta\\u003c=0||0===i\\u0026\\u0026this.wheelDelta\\u003e=0)\\u0026\\u0026P.cancel(t),P.stop(t)},add:function(){t.target[s](h,o,!1)},remove:function(){t.target[a](h,o,!1)}},o=function(o){o=o||window.event,n.state=r++?\\\"change\\\":\\\"start\\\",n.wheelDelta=o.detail?-20*o.detail:o.wheelDelta,t.listener(o,n),clearTimeout(e),e=setTimeout((function(){r=0,n.state=\\\"end\\\",n.wheelDelta=0,t.listener(o,n)}),i)},s=document.addEventListener?\\\"addEventListener\\\":\\\"attachEvent\\\",a=document.removeEventListener?\\\"removeEventListener\\\":\\\"detachEvent\\\",h=P.getEventSupport(\\\"mousewheel\\\")?\\\"mousewheel\\\":\\\"DOMMouseScroll\\\";return t.target[s](h,o,!1),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.wheel=t.wheel,t}(P.proxy),void 0===E)var E={};function k(t,e){var i=t.canvas,r=e.targetCanvas,n=r.getContext(\\\"2d\\\");n.translate(0,r.height),n.scale(1,-1);var o=i.height-r.height;n.drawImage(i,0,o,r.width,r.height,0,0,r.width,r.height)}function A(t,e){var i=e.targetCanvas.getContext(\\\"2d\\\"),r=e.destinationWidth,n=e.destinationHeight,o=r*n*4,s=new Uint8Array(this.imageBuffer,0,o),a=new Uint8ClampedArray(this.imageBuffer,0,o);t.readPixels(0,0,r,n,t.RGBA,t.UNSIGNED_BYTE,s);var h=new ImageData(a,r,n);i.putImageData(h,0,0)}void 0===E.proxy\\u0026\\u0026(E.proxy={}),E.proxy=function(t){return t.orientation=function(t){var e={gesture:\\\"orientationchange\\\",previous:null,current:window.orientation,target:t.target,listener:t.listener,remove:function(){window.removeEventListener(\\\"orientationchange\\\",i,!1)}},i=function(i){e.previous=e.current,e.current=window.orientation,null===e.previous||e.previous==e.current||t.listener(i,e)};return window.DeviceOrientationEvent\\u0026\\u0026window.addEventListener(\\\"orientationchange\\\",i,!1),e},E.Gesture=E.Gesture||{},E.Gesture._gestureHandlers=E.Gesture._gestureHandlers||{},E.Gesture._gestureHandlers.orientation=t.orientation,t}(E.proxy),function(){function t(t,e){if(this.__eventListeners[t]){var i=this.__eventListeners[t];e?i[i.indexOf(e)]=!1:T.util.array.fill(i,!1)}}function e(t,e){var i=function(){e.apply(this,arguments),this.off(t,i)}.bind(this);this.on(t,i)}T.Observable={fire:function(t,e){if(!this.__eventListeners)return this;var i=this.__eventListeners[t];if(!i)return this;for(var r=0,n=i.length;r\\u003cn;r++)i[r]\\u0026\\u0026i[r].call(this,e||{});return this.__eventListeners[t]=i.filter((function(t){return!1!==t})),this},on:function(t,e){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in t)this.on(i,t[i]);else this.__eventListeners[t]||(this.__eventListeners[t]=[]),this.__eventListeners[t].push(e);return this},once:function(t,i){if(1===arguments.length)for(var r in t)e.call(this,r,t[r]);else e.call(this,t,i);return this},off:function(e,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(e in this.__eventListeners)t.call(this,e);else if(1===arguments.length\\u0026\\u0026\\\"object\\\"==typeof arguments[0])for(var r in e)t.call(this,r,e[r]);else t.call(this,e,i);return this}}}(),T.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var t=0,e=arguments.length;t\\u003ce;t++)this._onObjectAdded(arguments[t]);return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},insertAt:function(t,e,i){var r=this._objects;return i?r[e]=t:r.splice(e,0,t),this._onObjectAdded\\u0026\\u0026this._onObjectAdded(t),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},remove:function(){for(var t,e=this._objects,i=!1,r=0,n=arguments.length;r\\u003cn;r++)-1!==(t=e.indexOf(arguments[r]))\\u0026\\u0026(i=!0,e.splice(t,1),this._onObjectRemoved\\u0026\\u0026this._onObjectRemoved(arguments[r]));return this.renderOnAddRemove\\u0026\\u0026i\\u0026\\u0026this.requestRenderAll(),this},forEachObject:function(t,e){for(var i=this.getObjects(),r=0,n=i.length;r\\u003cn;r++)t.call(e,i[r],r,i);return this},getObjects:function(t){return void 0===t?this._objects.concat():this._objects.filter((function(e){return e.type===t}))},item:function(t){return this._objects[t]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(t,e){return this._objects.indexOf(t)\\u003e-1||!!e\\u0026\\u0026this._objects.some((function(e){return\\\"function\\\"==typeof e.contains\\u0026\\u0026e.contains(t,!0)}))},complexity:function(){return this._objects.reduce((function(t,e){return t+=e.complexity?e.complexity():0}),0)}},T.CommonMethods={_setOptions:function(t){for(var e in t)this.set(e,t[e])},_initGradient:function(t,e){!t||!t.colorStops||t instanceof T.Gradient||this.set(e,new T.Gradient(t))},_initPattern:function(t,e,i){!t||!t.source||t instanceof T.Pattern?i\\u0026\\u0026i():this.set(e,new T.Pattern(t,i))},_setObject:function(t){for(var e in t)this._set(e,t[e])},set:function(t,e){return\\\"object\\\"==typeof t?this._setObject(t):this._set(t,e),this},_set:function(t,e){this[t]=e},toggle:function(t){var e=this.get(t);return\\\"boolean\\\"==typeof e\\u0026\\u0026this.set(t,!e),this},get:function(t){return this[t]}},n=t,o=Math.sqrt,s=Math.atan2,a=Math.pow,h=Math.PI/180,c=Math.PI/2,T.util={cos:function(t){if(0===t)return 1;switch(t\\u003c0\\u0026\\u0026(t=-t),t/c){case 1:case 3:return 0;case 2:return-1}return Math.cos(t)},sin:function(t){if(0===t)return 0;var e=1;switch(t\\u003c0\\u0026\\u0026(e=-1),t/c){case 1:return e;case 2:return 0;case 3:return-e}return Math.sin(t)},removeFromArray:function(t,e){var i=t.indexOf(e);return-1!==i\\u0026\\u0026t.splice(i,1),t},getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t},degreesToRadians:function(t){return t*h},radiansToDegrees:function(t){return t/h},rotatePoint:function(t,e,i){var r=new T.Point(t.x-e.x,t.y-e.y),n=T.util.rotateVector(r,i);return new T.Point(n.x,n.y).addEquals(e)},rotateVector:function(t,e){var i=T.util.sin(e),r=T.util.cos(e);return{x:t.x*r-t.y*i,y:t.x*i+t.y*r}},transformPoint:function(t,e,i){return i?new T.Point(e[0]*t.x+e[2]*t.y,e[1]*t.x+e[3]*t.y):new T.Point(e[0]*t.x+e[2]*t.y+e[4],e[1]*t.x+e[3]*t.y+e[5])},makeBoundingBoxFromPoints:function(t,e){if(e)for(var i=0;i\\u003ct.length;i++)t[i]=T.util.transformPoint(t[i],e);var r=[t[0].x,t[1].x,t[2].x,t[3].x],n=T.util.array.min(r),o=T.util.array.max(r)-n,s=[t[0].y,t[1].y,t[2].y,t[3].y],a=T.util.array.min(s);return{left:n,top:a,width:o,height:T.util.array.max(s)-a}},invertTransform:function(t){var e=1/(t[0]*t[3]-t[1]*t[2]),i=[e*t[3],-e*t[1],-e*t[2],e*t[0]],r=T.util.transformPoint({x:t[4],y:t[5]},i,!0);return i[4]=-r.x,i[5]=-r.y,i},toFixed:function(t,e){return parseFloat(Number(t).toFixed(e))},parseUnit:function(t,e){var i=/\\\\D{0,2}$/.exec(t),r=parseFloat(t);switch(e||(e=T.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case\\\"mm\\\":return r*T.DPI/25.4;case\\\"cm\\\":return r*T.DPI/2.54;case\\\"in\\\":return r*T.DPI;case\\\"pt\\\":return r*T.DPI/72;case\\\"pc\\\":return r*T.DPI/72*12;case\\\"em\\\":return r*e;default:return r}},falseFunction:function(){return!1},getKlass:function(t,e){return t=T.util.string.camelize(t.charAt(0).toUpperCase()+t.slice(1)),T.util.resolveNamespace(e)[t]},getSvgAttributes:function(t){var e=[\\\"instantiated_by_use\\\",\\\"style\\\",\\\"id\\\",\\\"class\\\"];switch(t){case\\\"linearGradient\\\":e=e.concat([\\\"x1\\\",\\\"y1\\\",\\\"x2\\\",\\\"y2\\\",\\\"gradientUnits\\\",\\\"gradientTransform\\\"]);break;case\\\"radialGradient\\\":e=e.concat([\\\"gradientUnits\\\",\\\"gradientTransform\\\",\\\"cx\\\",\\\"cy\\\",\\\"r\\\",\\\"fx\\\",\\\"fy\\\",\\\"fr\\\"]);break;case\\\"stop\\\":e=e.concat([\\\"offset\\\",\\\"stop-color\\\",\\\"stop-opacity\\\"])}return e},resolveNamespace:function(t){if(!t)return T;var e,i=t.split(\\\".\\\"),r=i.length,o=n||T.window;for(e=0;e\\u003cr;++e)o=o[i[e]];return o},loadImage:function(t,e,i,r){if(t){var n=T.util.createImage(),o=function(){e\\u0026\\u0026e.call(i,n,!1),n=n.onload=n.onerror=null};n.onload=o,n.onerror=function(){T.log(\\\"Error loading \\\"+n.src),e\\u0026\\u0026e.call(i,null,!0),n=n.onload=n.onerror=null},0!==t.indexOf(\\\"data\\\")\\u0026\\u0026null!=r\\u0026\\u0026(n.crossOrigin=r),\\\"data:image/svg\\\"===t.substring(0,14)\\u0026\\u0026(n.onload=null,T.util.loadImageInDom(n,o)),n.src=t}else e\\u0026\\u0026e.call(i,t)},loadImageInDom:function(t,e){var i=T.document.createElement(\\\"div\\\");i.style.width=i.style.height=\\\"1px\\\",i.style.left=i.style.top=\\\"-100%\\\",i.style.position=\\\"absolute\\\",i.appendChild(t),T.document.querySelector(\\\"body\\\").appendChild(i),t.onload=function(){e(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(t,e,i,r){var n=[],o=0,s=(t=t||[]).length;function a(){++o===s\\u0026\\u0026e\\u0026\\u0026e(n.filter((function(t){return t})))}s?t.forEach((function(t,e){t\\u0026\\u0026t.type?T.util.getKlass(t.type,i).fromObject(t,(function(i,o){o||(n[e]=i),r\\u0026\\u0026r(t,i,o),a()})):a()})):e\\u0026\\u0026e(n)},enlivenPatterns:function(t,e){function i(){++n===o\\u0026\\u0026e\\u0026\\u0026e(r)}var r=[],n=0,o=(t=t||[]).length;o?t.forEach((function(t,e){t\\u0026\\u0026t.source?new T.Pattern(t,(function(t){r[e]=t,i()})):(r[e]=t,i())})):e\\u0026\\u0026e(r)},groupSVGElements:function(t,e,i){var r;return t\\u0026\\u00261===t.length?t[0]:(e\\u0026\\u0026(e.width\\u0026\\u0026e.height?e.centerPoint={x:e.width/2,y:e.height/2}:(delete e.width,delete e.height)),r=new T.Group(t,e),void 0!==i\\u0026\\u0026(r.sourcePath=i),r)},populateWithProperties:function(t,e,i){if(i\\u0026\\u0026\\\"[object Array]\\\"===Object.prototype.toString.call(i))for(var r=0,n=i.length;r\\u003cn;r++)i[r]in t\\u0026\\u0026(e[i[r]]=t[i[r]])},drawDashedLine:function(t,e,i,r,n,a){var h=r-e,c=n-i,l=o(h*h+c*c),u=s(c,h),f=a.length,d=0,g=!0;for(t.save(),t.translate(e,i),t.moveTo(0,0),t.rotate(u),e=0;l\\u003ee;)(e+=a[d++%f])\\u003el\\u0026\\u0026(e=l),t[g?\\\"lineTo\\\":\\\"moveTo\\\"](e,0),g=!g;t.restore()},createCanvasElement:function(){return T.document.createElement(\\\"canvas\\\")},copyCanvasElement:function(t){var e=T.util.createCanvasElement();return e.width=t.width,e.height=t.height,e.getContext(\\\"2d\\\").drawImage(t,0,0),e},toDataURL:function(t,e,i){return t.toDataURL(\\\"image/\\\"+e,i)},createImage:function(){return T.document.createElement(\\\"img\\\")},multiplyTransformMatrices:function(t,e,i){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],i?0:t[0]*e[4]+t[2]*e[5]+t[4],i?0:t[1]*e[4]+t[3]*e[5]+t[5]]},qrDecompose:function(t){var e=s(t[1],t[0]),i=a(t[0],2)+a(t[1],2),r=o(i),n=(t[0]*t[3]-t[2]*t[1])/r,c=s(t[0]*t[2]+t[1]*t[3],i);return{angle:e/h,scaleX:r,scaleY:n,skewX:c/h,skewY:0,translateX:t[4],translateY:t[5]}},calcRotateMatrix:function(t){if(!t.angle)return T.iMatrix.concat();var e=T.util.degreesToRadians(t.angle),i=T.util.cos(e),r=T.util.sin(e);return[i,r,-r,i,0,0]},calcDimensionsMatrix:function(t){var e=void 0===t.scaleX?1:t.scaleX,i=void 0===t.scaleY?1:t.scaleY,r=[t.flipX?-e:e,0,0,t.flipY?-i:i,0,0],n=T.util.multiplyTransformMatrices,o=T.util.degreesToRadians;return t.skewX\\u0026\\u0026(r=n(r,[1,0,Math.tan(o(t.skewX)),1],!0)),t.skewY\\u0026\\u0026(r=n(r,[1,Math.tan(o(t.skewY)),0,1],!0)),r},composeMatrix:function(t){var e=[1,0,0,1,t.translateX||0,t.translateY||0],i=T.util.multiplyTransformMatrices;return t.angle\\u0026\\u0026(e=i(e,T.util.calcRotateMatrix(t))),(1!==t.scaleX||1!==t.scaleY||t.skewX||t.skewY||t.flipX||t.flipY)\\u0026\\u0026(e=i(e,T.util.calcDimensionsMatrix(t))),e},resetObjectTransform:function(t){t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.flipX=!1,t.flipY=!1,t.rotate(0)},saveObjectTransform:function(t){return{scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,angle:t.angle,left:t.left,flipX:t.flipX,flipY:t.flipY,top:t.top}},isTransparent:function(t,e,i,r){r\\u003e0\\u0026\\u0026(e\\u003er?e-=r:e=0,i\\u003er?i-=r:i=0);var n,o=!0,s=t.getImageData(e,i,2*r||1,2*r||1),a=s.data.length;for(n=3;n\\u003ca\\u0026\\u0026!1!=(o=s.data[n]\\u003c=0);n+=4);return s=null,o},parsePreserveAspectRatioAttribute:function(t){var e,i=\\\"meet\\\",r=t.split(\\\" \\\");return r\\u0026\\u0026r.length\\u0026\\u0026(\\\"meet\\\"!==(i=r.pop())\\u0026\\u0026\\\"slice\\\"!==i?(e=i,i=\\\"meet\\\"):r.length\\u0026\\u0026(e=r.pop())),{meetOrSlice:i,alignX:\\\"none\\\"!==e?e.slice(1,4):\\\"none\\\",alignY:\\\"none\\\"!==e?e.slice(5,8):\\\"none\\\"}},clearFabricFontCache:function(t){(t=(t||\\\"\\\").toLowerCase())?T.charWidthsCache[t]\\u0026\\u0026delete T.charWidthsCache[t]:T.charWidthsCache={}},limitDimsByArea:function(t,e){var i=Math.sqrt(e*t),r=Math.floor(e/i);return{x:Math.floor(i),y:r}},capValue:function(t,e,i){return Math.max(t,Math.min(e,i))},findScaleToFit:function(t,e){return Math.min(e.width/t.width,e.height/t.height)},findScaleToCover:function(t,e){return Math.max(e.width/t.width,e.height/t.height)},matrixToSVG:function(t){return\\\"matrix(\\\"+t.map((function(t){return T.util.toFixed(t,T.Object.NUM_FRACTION_DIGITS)})).join(\\\" \\\")+\\\")\\\"},removeTransformFromObject:function(t,e){var i=T.util.invertTransform(e),r=T.util.multiplyTransformMatrices(i,t.calcOwnMatrix());T.util.applyTransformToObject(t,r)},addTransformToObject:function(t,e){T.util.applyTransformToObject(t,T.util.multiplyTransformMatrices(e,t.calcOwnMatrix()))},applyTransformToObject:function(t,e){var i=T.util.qrDecompose(e),r=new T.Point(i.translateX,i.translateY);t.flipX=!1,t.flipY=!1,t.set(\\\"scaleX\\\",i.scaleX),t.set(\\\"scaleY\\\",i.scaleY),t.skewX=i.skewX,t.skewY=i.skewY,t.angle=i.angle,t.setPositionByOrigin(r,\\\"center\\\",\\\"center\\\")},sizeAfterTransform:function(t,e,i){var r=t/2,n=e/2,o=[{x:-r,y:-n},{x:r,y:-n},{x:-r,y:n},{x:r,y:n}],s=T.util.calcDimensionsMatrix(i),a=T.util.makeBoundingBoxFromPoints(o,s);return{x:a.width,y:a.height}}},T.util.createAccessors=function(t){var e,i,r,n,o,s=t.prototype;for(e=s.stateProperties.length;e--;)n=\\\"set\\\"+(r=(i=s.stateProperties[e]).charAt(0).toUpperCase()+i.slice(1)),s[o=\\\"get\\\"+r]||(s[o]=new Function('return this.get(\\\"'+i+'\\\")')),s[n]||(s[n]=function(t){return new Function(\\\"value\\\",'return this.set(\\\"'+t+'\\\", value)')}(i))},function(){var t=Array.prototype.join,e={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:\\\"l\\\",M:\\\"L\\\"};function r(t,e,i,r,n,o,s,a,h,c,l){var u=T.util.cos(t),f=T.util.sin(t),d=T.util.cos(e),g=T.util.sin(e),p=i*n*d-r*o*g+s,v=r*n*d+i*o*g+a;return[\\\"C\\\",c+h*(-i*n*f-r*o*u),l+h*(-r*n*f+i*o*u),p+h*(i*n*g+r*o*d),v+h*(r*n*g-i*o*d),p,v]}function n(t,e,i,n,s,a,h){var c=Math.PI,l=h*c/180,u=T.util.sin(l),f=T.util.cos(l),d=0,g=0,p=-f*t*.5-u*e*.5,v=-f*e*.5+u*t*.5,m=(i=Math.abs(i))*i,y=(n=Math.abs(n))*n,_=v*v,b=p*p,x=m*y-m*_-y*b,C=0;if(x\\u003c0){var w=Math.sqrt(1-x/(m*y));i*=w,n*=w}else C=(s===a?-1:1)*Math.sqrt(x/(m*_+y*b));var S=C*i*v/n,O=-C*n*p/i,P=f*S-u*O+.5*t,E=u*S+f*O+.5*e,k=o(1,0,(p-S)/i,(v-O)/n),A=o((p-S)/i,(v-O)/n,(-p-S)/i,(-v-O)/n);0===a\\u0026\\u0026A\\u003e0?A-=2*c:1===a\\u0026\\u0026A\\u003c0\\u0026\\u0026(A+=2*c);for(var D=Math.ceil(Math.abs(A/c*2)),M=[],j=A/D,F=8/3*Math.sin(j/4)*Math.sin(j/4)/Math.sin(j/2),L=k+j,I=0;I\\u003cD;I++)M[I]=r(k,L,f,u,i,n,P,E,F,d,g),d=M[I][5],g=M[I][6],k=L,L+=j;return M}function o(t,e,i,r){var n=Math.atan2(e,t),o=Math.atan2(r,i);return o\\u003e=n?o-n:2*Math.PI-(n-o)}function s(e,i,r,n,o,s,a,h){var c;if(T.cachesBoundsOfCurve\\u0026\\u0026(c=t.call(arguments),T.boundsOfCurveCache[c]))return T.boundsOfCurveCache[c];var l,u,f,d,g,p,v,m,y=Math.sqrt,_=Math.min,b=Math.max,x=Math.abs,C=[],w=[[],[]];u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*a,f=3*r-3*e;for(var S=0;S\\u003c2;++S)if(S\\u003e0\\u0026\\u0026(u=6*i-12*n+6*s,l=-3*i+9*n-9*s+3*h,f=3*n-3*i),x(l)\\u003c1e-12){if(x(u)\\u003c1e-12)continue;0\\u003c(d=-f/u)\\u0026\\u0026d\\u003c1\\u0026\\u0026C.push(d)}else(v=u*u-4*f*l)\\u003c0||(0\\u003c(g=(-u+(m=y(v)))/(2*l))\\u0026\\u0026g\\u003c1\\u0026\\u0026C.push(g),0\\u003c(p=(-u-m)/(2*l))\\u0026\\u0026p\\u003c1\\u0026\\u0026C.push(p));for(var O,P,E,k=C.length,A=k;k--;)O=(E=1-(d=C[k]))*E*E*e+3*E*E*d*r+3*E*d*d*o+d*d*d*a,w[0][k]=O,P=E*E*E*i+3*E*E*d*n+3*E*d*d*s+d*d*d*h,w[1][k]=P;w[0][A]=e,w[1][A]=i,w[0][A+1]=a,w[1][A+1]=h;var D=[{x:_.apply(null,w[0]),y:_.apply(null,w[1])},{x:b.apply(null,w[0]),y:b.apply(null,w[1])}];return T.cachesBoundsOfCurve\\u0026\\u0026(T.boundsOfCurveCache[c]=D),D}function a(t,e,i){for(var r=i[1],o=i[2],s=i[3],a=i[4],h=i[5],c=n(i[6]-t,i[7]-e,r,o,a,h,s),l=0,u=c.length;l\\u003cu;l++)c[l][1]+=t,c[l][2]+=e,c[l][3]+=t,c[l][4]+=e,c[l][5]+=t,c[l][6]+=e;return c}function h(t,e,i,r){return Math.sqrt((i-t)*(i-t)+(r-e)*(r-e))}function c(t,e,i,r,n,o,s,a){return function(h){var c,l=(c=h)*c*c,u=function(t){return 3*t*t*(1-t)}(h),f=function(t){return 3*t*(1-t)*(1-t)}(h),d=function(t){return(1-t)*(1-t)*(1-t)}(h);return{x:s*l+n*u+i*f+t*d,y:a*l+o*u+r*f+e*d}}}function l(t,e,i,r,n,o,s,a){return function(h){var c=1-h,l=3*c*c*(i-t)+6*c*h*(n-i)+3*h*h*(s-n),u=3*c*c*(r-e)+6*c*h*(o-r)+3*h*h*(a-o);return Math.atan2(u,l)}}function u(t,e,i,r,n,o){return function(s){var a,h=(a=s)*a,c=function(t){return 2*t*(1-t)}(s),l=function(t){return(1-t)*(1-t)}(s);return{x:n*h+i*c+t*l,y:o*h+r*c+e*l}}}function f(t,e,i,r,n,o){return function(s){var a=1-s,h=2*a*(i-t)+2*s*(n-i),c=2*a*(r-e)+2*s*(o-r);return Math.atan2(c,h)}}function d(t,e,i){var r,n,o={x:e,y:i},s=0;for(n=1;n\\u003c=100;n+=1)r=t(n/100),s+=h(o.x,o.y,r.x,r.y),o=r;return s}function g(t,e){for(var i,r,n,o=0,s=0,a=t.iterator,c={x:t.x,y:t.y},l=.01,u=t.angleFinder;s\\u003ce\\u0026\\u0026o\\u003c=1\\u0026\\u0026l\\u003e1e-4;)i=a(o),n=o,(r=h(c.x,c.y,i.x,i.y))+s\\u003ee?o-=l/=2:(c=i,o+=l,s+=r);return i.angle=u(n),i}function p(t){for(var e,i,r,n,o=0,s=t.length,a=0,g=0,p=0,v=0,m=[],y=0;y\\u003cs;y++){switch(r={x:a,y:g,command:(e=t[y])[0]},e[0]){case\\\"M\\\":r.length=0,p=a=e[1],v=g=e[2];break;case\\\"L\\\":r.length=h(a,g,e[1],e[2]),a=e[1],g=e[2];break;case\\\"C\\\":i=c(a,g,e[1],e[2],e[3],e[4],e[5],e[6]),n=l(a,g,e[1],e[2],e[3],e[4],e[5],e[6]),r.iterator=i,r.angleFinder=n,r.length=d(i,a,g),a=e[5],g=e[6];break;case\\\"Q\\\":i=u(a,g,e[1],e[2],e[3],e[4]),n=f(a,g,e[1],e[2],e[3],e[4]),r.iterator=i,r.angleFinder=n,r.length=d(i,a,g),a=e[3],g=e[4];break;case\\\"Z\\\":case\\\"z\\\":r.destX=p,r.destY=v,r.length=h(a,g,p,v),a=p,g=v}o+=r.length,m.push(r)}return m.push({length:o,x:a,y:g}),m}T.util.joinPath=function(t){return t.map((function(t){return t.join(\\\" \\\")})).join(\\\" \\\")},T.util.parsePath=function(t){var r,n,o,s,a,h=[],c=[],l=T.rePathCommand,u=\\\"[-+]?(?:\\\\\\\\d*\\\\\\\\.\\\\\\\\d+|\\\\\\\\d+\\\\\\\\.?)(?:[eE][-+]?\\\\\\\\d+)?\\\\\\\\s*\\\",f=\\\"(\\\"+u+\\\")\\\"+T.commaWsp,d=\\\"([01])\\\"+T.commaWsp+\\\"?\\\",g=new RegExp(f+\\\"?\\\"+f+\\\"?\\\"+f+d+d+f+\\\"?(\\\"+u+\\\")\\\",\\\"g\\\");if(!t||!t.match)return h;for(var p,v=0,m=(a=t.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;v\\u003cm;v++){s=(r=a[v]).slice(1).trim(),c.length=0;var y=r.charAt(0);if(p=[y],\\\"a\\\"===y.toLowerCase())for(var _;_=g.exec(s);)for(var b=1;b\\u003c_.length;b++)c.push(_[b]);else for(;o=l.exec(s);)c.push(o[0]);b=0;for(var x=c.length;b\\u003cx;b++)n=parseFloat(c[b]),isNaN(n)||p.push(n);var C=e[y.toLowerCase()],w=i[y]||y;if(p.length-1\\u003eC)for(var S=1,O=p.length;S\\u003cO;S+=C)h.push([y].concat(p.slice(S,S+C))),y=w;else h.push(p)}return h},T.util.makePathSimpler=function(t){var e,i,r,n,o,s,h=0,c=0,l=t.length,u=0,f=0,d=[];for(i=0;i\\u003cl;++i){switch(r=!1,(e=t[i].slice(0))[0]){case\\\"l\\\":e[0]=\\\"L\\\",e[1]+=h,e[2]+=c;case\\\"L\\\":h=e[1],c=e[2];break;case\\\"h\\\":e[1]+=h;case\\\"H\\\":e[0]=\\\"L\\\",e[2]=c,h=e[1];break;case\\\"v\\\":e[1]+=c;case\\\"V\\\":e[0]=\\\"L\\\",c=e[1],e[1]=h,e[2]=c;break;case\\\"m\\\":e[0]=\\\"M\\\",e[1]+=h,e[2]+=c;case\\\"M\\\":h=e[1],c=e[2],u=e[1],f=e[2];break;case\\\"c\\\":e[0]=\\\"C\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c,e[5]+=h,e[6]+=c;case\\\"C\\\":o=e[3],s=e[4],h=e[5],c=e[6];break;case\\\"s\\\":e[0]=\\\"S\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c;case\\\"S\\\":\\\"C\\\"===n?(o=2*h-o,s=2*c-s):(o=h,s=c),h=e[3],c=e[4],e[0]=\\\"C\\\",e[5]=e[3],e[6]=e[4],e[3]=e[1],e[4]=e[2],e[1]=o,e[2]=s,o=e[3],s=e[4];break;case\\\"q\\\":e[0]=\\\"Q\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c;case\\\"Q\\\":o=e[1],s=e[2],h=e[3],c=e[4];break;case\\\"t\\\":e[0]=\\\"T\\\",e[1]+=h,e[2]+=c;case\\\"T\\\":\\\"Q\\\"===n?(o=2*h-o,s=2*c-s):(o=h,s=c),e[0]=\\\"Q\\\",h=e[1],c=e[2],e[1]=o,e[2]=s,e[3]=h,e[4]=c;break;case\\\"a\\\":e[0]=\\\"A\\\",e[6]+=h,e[7]+=c;case\\\"A\\\":r=!0,d=d.concat(a(h,c,e)),h=e[6],c=e[7];break;case\\\"z\\\":case\\\"Z\\\":h=u,c=f}r||d.push(e),n=e[0]}return d},T.util.getSmoothPathFromPoints=function(t,e){var i,r=[],n=new T.Point(t[0].x,t[0].y),o=new T.Point(t[1].x,t[1].y),s=t.length,a=1,h=0,c=s\\u003e2;for(e=e||0,c\\u0026\\u0026(a=t[2].x\\u003co.x?-1:t[2].x===o.x?0:1,h=t[2].y\\u003co.y?-1:t[2].y===o.y?0:1),r.push([\\\"M\\\",n.x-a*e,n.y-h*e]),i=1;i\\u003cs;i++){if(!n.eq(o)){var l=n.midPointFrom(o);r.push([\\\"Q\\\",n.x,n.y,l.x,l.y])}n=t[i],i+1\\u003ct.length\\u0026\\u0026(o=t[i+1])}return c\\u0026\\u0026(a=n.x\\u003et[i-2].x?1:n.x===t[i-2].x?0:-1,h=n.y\\u003et[i-2].y?1:n.y===t[i-2].y?0:-1),r.push([\\\"L\\\",n.x+a*e,n.y+h*e]),r},T.util.getPathSegmentsInfo=p,T.util.getBoundsOfCurve=s,T.util.getPointOnPath=function(t,e,i){i||(i=p(t));for(var r=0;e-i[r].length\\u003e0\\u0026\\u0026r\\u003ci.length-2;)e-=i[r].length,r++;var n,o=i[r],s=e/o.length,a=o.command,h=t[r];switch(a){case\\\"M\\\":return{x:o.x,y:o.y,angle:0};case\\\"Z\\\":case\\\"z\\\":return(n=new T.Point(o.x,o.y).lerp(new T.Point(o.destX,o.destY),s)).angle=Math.atan2(o.destY-o.y,o.destX-o.x),n;case\\\"L\\\":return(n=new T.Point(o.x,o.y).lerp(new T.Point(h[1],h[2]),s)).angle=Math.atan2(h[2]-o.y,h[1]-o.x),n;case\\\"C\\\":case\\\"Q\\\":return g(o,e)}},T.util.transformPath=function(t,e,i){return i\\u0026\\u0026(e=T.util.multiplyTransformMatrices(e,[1,0,0,1,-i.x,-i.y])),t.map((function(t){for(var i=t.slice(0),r={},n=1;n\\u003ct.length-1;n+=2)r.x=t[n],r.y=t[n+1],r=T.util.transformPoint(r,e),i[n]=r.x,i[n+1]=r.y;return i}))},T.util.fromArcToBeizers=a,T.util.getBoundsOfArc=function(t,e,i,r,o,a,h,c,l){for(var u,f=0,d=0,g=[],p=n(c-t,l-e,i,r,a,h,o),v=0,m=p.length;v\\u003cm;v++)u=s(f,d,p[v][1],p[v][2],p[v][3],p[v][4],p[v][5],p[v][6]),g.push({x:u[0].x+t,y:u[0].y+e}),g.push({x:u[1].x+t,y:u[1].y+e}),f=p[v][5],d=p[v][6];return g},T.util.drawArc=function(t,e,i,r){a(e,i,r=r.slice(0).unshift(\\\"X\\\")).forEach((function(e){t.bezierCurveTo.apply(t,e.slice(1))}))}}(),function(){var t=Array.prototype.slice;function e(t,e,i){if(t\\u0026\\u00260!==t.length){var r=t.length-1,n=e?t[r][e]:t[r];if(e)for(;r--;)i(t[r][e],n)\\u0026\\u0026(n=t[r][e]);else for(;r--;)i(t[r],n)\\u0026\\u0026(n=t[r]);return n}}T.util.array={fill:function(t,e){for(var i=t.length;i--;)t[i]=e;return t},invoke:function(e,i){for(var r=t.call(arguments,2),n=[],o=0,s=e.length;o\\u003cs;o++)n[o]=r.length?e[o][i].apply(e[o],r):e[o][i].call(e[o]);return n},min:function(t,i){return e(t,i,(function(t,e){return t\\u003ce}))},max:function(t,i){return e(t,i,(function(t,e){return t\\u003e=e}))}}}(),function(){function t(e,i,r){if(r)if(!T.isLikelyNode\\u0026\\u0026i instanceof Element)e=i;else if(i instanceof Array){e=[];for(var n=0,o=i.length;n\\u003co;n++)e[n]=t({},i[n],r)}else if(i\\u0026\\u0026\\\"object\\\"==typeof i)for(var s in i)\\\"canvas\\\"===s||\\\"group\\\"===s?e[s]=null:i.hasOwnProperty(s)\\u0026\\u0026(e[s]=t({},i[s],r));else e=i;else for(var s in i)e[s]=i[s];return e}T.util.object={extend:t,clone:function(e,i){return t({},e,i)}},T.util.object.extend(T.util,T.Observable)}(),function(){function t(t,e){var i=t.charCodeAt(e);if(isNaN(i))return\\\"\\\";if(i\\u003c55296||i\\u003e57343)return t.charAt(e);if(55296\\u003c=i\\u0026\\u0026i\\u003c=56319){if(t.length\\u003c=e+1)throw\\\"High surrogate without following low surrogate\\\";var r=t.charCodeAt(e+1);if(56320\\u003er||r\\u003e57343)throw\\\"High surrogate without following low surrogate\\\";return t.charAt(e)+t.charAt(e+1)}if(0===e)throw\\\"Low surrogate without preceding high surrogate\\\";var n=t.charCodeAt(e-1);if(55296\\u003en||n\\u003e56319)throw\\\"Low surrogate without preceding high surrogate\\\";return!1}T.util.string={camelize:function(t){return t.replace(/-+(.)?/g,(function(t,e){return e?e.toUpperCase():\\\"\\\"}))},capitalize:function(t,e){return t.charAt(0).toUpperCase()+(e?t.slice(1):t.slice(1).toLowerCase())},escapeXml:function(t){return t.replace(/\\u0026/g,\\\"\\u0026amp;\\\").replace(/\\\"/g,\\\"\\u0026quot;\\\").replace(/'/g,\\\"\\u0026apos;\\\").replace(/\\u003c/g,\\\"\\u0026lt;\\\").replace(/\\u003e/g,\\\"\\u0026gt;\\\")},graphemeSplit:function(e){var i,r=0,n=[];for(r=0;r\\u003ce.length;r++)!1!==(i=t(e,r))\\u0026\\u0026n.push(i);return n}}}(),function(){var t=Array.prototype.slice,e=function(){},i=function(){for(var t in{toString:1})if(\\\"toString\\\"===t)return!1;return!0}(),r=function(t,e,r){for(var n in e)n in t.prototype\\u0026\\u0026\\\"function\\\"==typeof t.prototype[n]\\u0026\\u0026(e[n]+\\\"\\\").indexOf(\\\"callSuper\\\")\\u003e-1?t.prototype[n]=function(t){return function(){var i=this.constructor.superclass;this.constructor.superclass=r;var n=e[t].apply(this,arguments);if(this.constructor.superclass=i,\\\"initialize\\\"!==t)return n}}(n):t.prototype[n]=e[n],i\\u0026\\u0026(e.toString!==Object.prototype.toString\\u0026\\u0026(t.prototype.toString=e.toString),e.valueOf!==Object.prototype.valueOf\\u0026\\u0026(t.prototype.valueOf=e.valueOf))};function n(){}function o(e){for(var i=null,r=this;r.constructor.superclass;){var n=r.constructor.superclass.prototype[e];if(r[e]!==n){i=n;break}r=r.constructor.superclass.prototype}return i?arguments.length\\u003e1?i.apply(this,t.call(arguments,1)):i.call(this):console.log(\\\"tried to callSuper \\\"+e+\\\", method not found in prototype chain\\\",this)}T.util.createClass=function(){var i=null,s=t.call(arguments,0);function a(){this.initialize.apply(this,arguments)}\\\"function\\\"==typeof s[0]\\u0026\\u0026(i=s.shift()),a.superclass=i,a.subclasses=[],i\\u0026\\u0026(n.prototype=i.prototype,a.prototype=new n,i.subclasses.push(a));for(var h=0,c=s.length;h\\u003cc;h++)r(a,s[h],i);return a.prototype.initialize||(a.prototype.initialize=e),a.prototype.constructor=a,a.prototype.callSuper=o,a}}(),l=!!T.document.createElement(\\\"div\\\").attachEvent,u=[\\\"touchstart\\\",\\\"touchmove\\\",\\\"touchend\\\"],T.util.addListener=function(t,e,i,r){t\\u0026\\u0026t.addEventListener(e,i,!l\\u0026\\u0026r)},T.util.removeListener=function(t,e,i,r){t\\u0026\\u0026t.removeEventListener(e,i,!l\\u0026\\u0026r)},T.util.getPointer=function(t){var e=t.target,i=T.util.getScrollLeftTop(e),r=function(t){var e=t.changedTouches;return e\\u0026\\u0026e[0]?e[0]:t}(t);return{x:r.clientX+i.left,y:r.clientY+i.top}},T.util.isTouchEvent=function(t){return u.indexOf(t.type)\\u003e-1||\\\"touch\\\"===t.pointerType},f=T.document.createElement(\\\"div\\\"),d=\\\"string\\\"==typeof f.style.opacity,g=\\\"string\\\"==typeof f.style.filter,v=/alpha\\\\s*\\\\(\\\\s*opacity\\\\s*=\\\\s*([^\\\\)]+)\\\\)/,m=function(t){return t},d?m=function(t,e){return t.style.opacity=e,t}:g\\u0026\\u0026(m=function(t,e){var i=t.style;return t.currentStyle\\u0026\\u0026!t.currentStyle.hasLayout\\u0026\\u0026(i.zoom=1),v.test(i.filter)?(e=e\\u003e=.9999?\\\"\\\":\\\"alpha(opacity=\\\"+100*e+\\\")\\\",i.filter=i.filter.replace(v,e)):i.filter+=\\\" alpha(opacity=\\\"+100*e+\\\")\\\",t}),T.util.setStyle=function(t,e){var i=t.style;if(!i)return t;if(\\\"string\\\"==typeof e)return t.style.cssText+=\\\";\\\"+e,e.indexOf(\\\"opacity\\\")\\u003e-1?m(t,e.match(/opacity:\\\\s*(\\\\d?\\\\.?\\\\d*)/)[1]):t;for(var r in e)\\\"opacity\\\"===r?m(t,e[r]):i[\\\"float\\\"===r||\\\"cssFloat\\\"===r?void 0===i.styleFloat?\\\"cssFloat\\\":\\\"styleFloat\\\":r]=e[r];return t},function(){var t=Array.prototype.slice;var e,i,r,n,o=function(e){return t.call(e,0)};try{e=o(T.document.childNodes)instanceof Array}catch(t){}function s(t,e){var i=T.document.createElement(t);for(var r in e)\\\"class\\\"===r?i.className=e[r]:\\\"for\\\"===r?i.htmlFor=e[r]:i.setAttribute(r,e[r]);return i}function a(t){for(var e=0,i=0,r=T.document.documentElement,n=T.document.body||{scrollLeft:0,scrollTop:0};t\\u0026\\u0026(t.parentNode||t.host)\\u0026\\u0026((t=t.parentNode||t.host)===T.document?(e=n.scrollLeft||r.scrollLeft||0,i=n.scrollTop||r.scrollTop||0):(e+=t.scrollLeft||0,i+=t.scrollTop||0),1!==t.nodeType||\\\"fixed\\\"!==t.style.position););return{left:e,top:i}}e||(o=function(t){for(var e=new Array(t.length),i=t.length;i--;)e[i]=t[i];return e}),i=T.document.defaultView\\u0026\\u0026T.document.defaultView.getComputedStyle?function(t,e){var i=T.document.defaultView.getComputedStyle(t,null);return i?i[e]:void 0}:function(t,e){var i=t.style[e];return!i\\u0026\\u0026t.currentStyle\\u0026\\u0026(i=t.currentStyle[e]),i},r=T.document.documentElement.style,n=\\\"userSelect\\\"in r?\\\"userSelect\\\":\\\"MozUserSelect\\\"in r?\\\"MozUserSelect\\\":\\\"WebkitUserSelect\\\"in r?\\\"WebkitUserSelect\\\":\\\"KhtmlUserSelect\\\"in r?\\\"KhtmlUserSelect\\\":\\\"\\\",T.util.makeElementUnselectable=function(t){return void 0!==t.onselectstart\\u0026\\u0026(t.onselectstart=T.util.falseFunction),n?t.style[n]=\\\"none\\\":\\\"string\\\"==typeof t.unselectable\\u0026\\u0026(t.unselectable=\\\"on\\\"),t},T.util.makeElementSelectable=function(t){return void 0!==t.onselectstart\\u0026\\u0026(t.onselectstart=null),n?t.style[n]=\\\"\\\":\\\"string\\\"==typeof t.unselectable\\u0026\\u0026(t.unselectable=\\\"\\\"),t},T.util.setImageSmoothing=function(t,e){t.imageSmoothingEnabled=t.imageSmoothingEnabled||t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled||t.oImageSmoothingEnabled,t.imageSmoothingEnabled=e},T.util.getById=function(t){return\\\"string\\\"==typeof t?T.document.getElementById(t):t},T.util.toArray=o,T.util.addClass=function(t,e){t\\u0026\\u0026-1===(\\\" \\\"+t.className+\\\" \\\").indexOf(\\\" \\\"+e+\\\" \\\")\\u0026\\u0026(t.className+=(t.className?\\\" \\\":\\\"\\\")+e)},T.util.makeElement=s,T.util.wrapElement=function(t,e,i){return\\\"string\\\"==typeof e\\u0026\\u0026(e=s(e,i)),t.parentNode\\u0026\\u0026t.parentNode.replaceChild(e,t),e.appendChild(t),e},T.util.getScrollLeftTop=a,T.util.getElementOffset=function(t){var e,r,n=t\\u0026\\u0026t.ownerDocument,o={left:0,top:0},s={left:0,top:0},h={borderLeftWidth:\\\"left\\\",borderTopWidth:\\\"top\\\",paddingLeft:\\\"left\\\",paddingTop:\\\"top\\\"};if(!n)return s;for(var c in h)s[h[c]]+=parseInt(i(t,c),10)||0;return e=n.documentElement,void 0!==t.getBoundingClientRect\\u0026\\u0026(o=t.getBoundingClientRect()),r=a(t),{left:o.left+r.left-(e.clientLeft||0)+s.left,top:o.top+r.top-(e.clientTop||0)+s.top}},T.util.getNodeCanvas=function(t){var e=T.jsdomImplForWrapper(t);return e._canvas||e._image},T.util.cleanUpJsdomNode=function(t){if(T.isLikelyNode){var e=T.jsdomImplForWrapper(t);e\\u0026\\u0026(e._image=null,e._canvas=null,e._currentSrc=null,e._attributes=null,e._classList=null)}}}(),function(){function t(){}T.util.request=function(e,i){i||(i={});var r=i.method?i.method.toUpperCase():\\\"GET\\\",n=i.onComplete||function(){},o=new T.window.XMLHttpRequest,s=i.body||i.parameters;return o.onreadystatechange=function(){4===o.readyState\\u0026\\u0026(n(o),o.onreadystatechange=t)},\\\"GET\\\"===r\\u0026\\u0026(s=null,\\\"string\\\"==typeof i.parameters\\u0026\\u0026(e=function(t,e){return t+(/\\\\?/.test(t)?\\\"\\u0026\\\":\\\"?\\\")+e}(e,i.parameters))),o.open(r,e,!0),\\\"POST\\\"!==r\\u0026\\u0026\\\"PUT\\\"!==r||o.setRequestHeader(\\\"Content-Type\\\",\\\"application/x-www-form-urlencoded\\\"),o.send(s),o}}(),T.log=console.log,T.warn=console.warn,function(){function t(){return!1}function e(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e}var i=T.window.requestAnimationFrame||T.window.webkitRequestAnimationFrame||T.window.mozRequestAnimationFrame||T.window.oRequestAnimationFrame||T.window.msRequestAnimationFrame||function(t){return T.window.setTimeout(t,1e3/60)},r=T.window.cancelAnimationFrame||T.window.clearTimeout;function n(){return i.apply(T.window,arguments)}T.util.animate=function(i){var r=!1;return n((function(o){i||(i={});var s,a=o||+new Date,h=i.duration||500,c=a+h,l=i.onChange||t,u=i.abort||t,f=i.onComplete||t,d=i.easing||e,g=\\\"startValue\\\"in i?i.startValue:0,p=\\\"endValue\\\"in i?i.endValue:100,v=i.byValue||p-g;i.onStart\\u0026\\u0026i.onStart(),function t(e){var i=(s=e||+new Date)\\u003ec?h:s-a,o=i/h,m=d(i,g,v,h),y=Math.abs((m-g)/v);if(!r){if(!u(m,y,o))return s\\u003ec?(l(p,1,1),void f(p,1,1)):(l(m,y,o),void n(t));f(p,1,1)}}(a)})),function(){r=!0}},T.util.requestAnimFrame=n,T.util.cancelAnimFrame=function(){return r.apply(T.window,arguments)}}(),function(){function t(t,e,i){var r=\\\"rgba(\\\"+parseInt(t[0]+i*(e[0]-t[0]),10)+\\\",\\\"+parseInt(t[1]+i*(e[1]-t[1]),10)+\\\",\\\"+parseInt(t[2]+i*(e[2]-t[2]),10);return r+=\\\",\\\"+(t\\u0026\\u0026e?parseFloat(t[3]+i*(e[3]-t[3])):1),r+=\\\")\\\"}T.util.animateColor=function(e,i,r,n){var o=new T.Color(e).getSource(),s=new T.Color(i).getSource(),a=n.onComplete,h=n.onChange;return n=n||{},T.util.animate(T.util.object.extend(n,{duration:r||500,startValue:o,endValue:s,byValue:s,easing:function(e,i,r,o){return t(i,r,n.colorEasing?n.colorEasing(e,o):1-Math.cos(e/o*(Math.PI/2)))},onComplete:function(e,i,r){if(a)return a(t(s,s,0),i,r)},onChange:function(e,i,r){if(h){if(Array.isArray(e))return h(t(e,e,0),i,r);h(e,i,r)}}}))}}(),function(){function t(t,e,i,r){return t\\u003cMath.abs(e)?(t=e,r=i/4):r=0===e\\u0026\\u00260===t?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(e/t),{a:t,c:e,p:i,s:r}}function e(t,e,i){return t.a*Math.pow(2,10*(e-=1))*Math.sin((e*i-t.s)*(2*Math.PI)/t.p)}function i(t,e,i,n){return i-r(n-t,0,i,n)+e}function r(t,e,i,r){return(t/=r)\\u003c1/2.75?i*(7.5625*t*t)+e:t\\u003c2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t\\u003c2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e}T.util.ease={easeInQuad:function(t,e,i,r){return i*(t/=r)*t+e},easeOutQuad:function(t,e,i,r){return-i*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,i,r){return(t/=r/2)\\u003c1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,r){return i*(t/=r)*t*t+e},easeOutCubic:function(t,e,i,r){return i*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,r){return(t/=r/2)\\u003c1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,r){return i*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,i,r){return-i*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,r){return(t/=r/2)\\u003c1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,r){return i*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,i,r){return i*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,r){return(t/=r/2)\\u003c1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e},easeOutSine:function(t,e,i,r){return i*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,i,r){return-i/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,i,r){return 0===t?e:i*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,i,r){return t===r?e+i:i*(1-Math.pow(2,-10*t/r))+e},easeInOutExpo:function(t,e,i,r){return 0===t?e:t===r?e+i:(t/=r/2)\\u003c1?i/2*Math.pow(2,10*(t-1))+e:i/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,i,r){return-i*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,i,r){return i*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,i,r){return(t/=r/2)\\u003c1?-i/2*(Math.sqrt(1-t*t)-1)+e:i/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(i,r,n,o){var s=0;return 0===i?r:1===(i/=o)?r+n:(s||(s=.3*o),-e(t(n,n,s,1.70158),i,o)+r)},easeOutElastic:function(e,i,r,n){var o=0;if(0===e)return i;if(1===(e/=n))return i+r;o||(o=.3*n);var s=t(r,r,o,1.70158);return s.a*Math.pow(2,-10*e)*Math.sin((e*n-s.s)*(2*Math.PI)/s.p)+s.c+i},easeInOutElastic:function(i,r,n,o){var s=0;if(0===i)return r;if(2===(i/=o/2))return r+n;s||(s=o*(.3*1.5));var a=t(n,n,s,1.70158);return i\\u003c1?-.5*e(a,i,o)+r:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*o-a.s)*(2*Math.PI)/a.p)*.5+a.c+r},easeInBack:function(t,e,i,r,n){return void 0===n\\u0026\\u0026(n=1.70158),i*(t/=r)*t*((n+1)*t-n)+e},easeOutBack:function(t,e,i,r,n){return void 0===n\\u0026\\u0026(n=1.70158),i*((t=t/r-1)*t*((n+1)*t+n)+1)+e},easeInOutBack:function(t,e,i,r,n){return void 0===n\\u0026\\u0026(n=1.70158),(t/=r/2)\\u003c1?i/2*(t*t*((1+(n*=1.525))*t-n))+e:i/2*((t-=2)*t*((1+(n*=1.525))*t+n)+2)+e},easeInBounce:i,easeOutBounce:r,easeInOutBounce:function(t,e,n,o){return t\\u003co/2?.5*i(2*t,0,n,o)+e:.5*r(2*t-o,0,n,o)+.5*n+e}}}(),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n=e.util.toFixed,o=e.util.parseUnit,s=e.util.multiplyTransformMatrices,a={cx:\\\"left\\\",x:\\\"left\\\",r:\\\"radius\\\",cy:\\\"top\\\",y:\\\"top\\\",display:\\\"visible\\\",visibility:\\\"visible\\\",transform:\\\"transformMatrix\\\",\\\"fill-opacity\\\":\\\"fillOpacity\\\",\\\"fill-rule\\\":\\\"fillRule\\\",\\\"font-family\\\":\\\"fontFamily\\\",\\\"font-size\\\":\\\"fontSize\\\",\\\"font-style\\\":\\\"fontStyle\\\",\\\"font-weight\\\":\\\"fontWeight\\\",\\\"letter-spacing\\\":\\\"charSpacing\\\",\\\"paint-order\\\":\\\"paintFirst\\\",\\\"stroke-dasharray\\\":\\\"strokeDashArray\\\",\\\"stroke-dashoffset\\\":\\\"strokeDashOffset\\\",\\\"stroke-linecap\\\":\\\"strokeLineCap\\\",\\\"stroke-linejoin\\\":\\\"strokeLineJoin\\\",\\\"stroke-miterlimit\\\":\\\"strokeMiterLimit\\\",\\\"stroke-opacity\\\":\\\"strokeOpacity\\\",\\\"stroke-width\\\":\\\"strokeWidth\\\",\\\"text-decoration\\\":\\\"textDecoration\\\",\\\"text-anchor\\\":\\\"textAnchor\\\",opacity:\\\"opacity\\\",\\\"clip-path\\\":\\\"clipPath\\\",\\\"clip-rule\\\":\\\"clipRule\\\",\\\"vector-effect\\\":\\\"strokeUniform\\\",\\\"image-rendering\\\":\\\"imageSmoothing\\\"},h={stroke:\\\"strokeOpacity\\\",fill:\\\"fillOpacity\\\"},c=\\\"font-size\\\",l=\\\"clip-path\\\";function u(t){return t in a?a[t]:t}function f(t,i,r,n){var a,h=\\\"[object Array]\\\"===Object.prototype.toString.call(i);if(\\\"fill\\\"!==t\\u0026\\u0026\\\"stroke\\\"!==t||\\\"none\\\"!==i){if(\\\"strokeUniform\\\"===t)return\\\"non-scaling-stroke\\\"===i;if(\\\"strokeDashArray\\\"===t)i=\\\"none\\\"===i?null:i.replace(/,/g,\\\" \\\").split(/\\\\s+/).map(parseFloat);else if(\\\"transformMatrix\\\"===t)i=r\\u0026\\u0026r.transformMatrix?s(r.transformMatrix,e.parseTransformAttribute(i)):e.parseTransformAttribute(i);else if(\\\"visible\\\"===t)i=\\\"none\\\"!==i\\u0026\\u0026\\\"hidden\\\"!==i,r\\u0026\\u0026!1===r.visible\\u0026\\u0026(i=!1);else if(\\\"opacity\\\"===t)i=parseFloat(i),r\\u0026\\u0026void 0!==r.opacity\\u0026\\u0026(i*=r.opacity);else if(\\\"textAnchor\\\"===t)i=\\\"start\\\"===i?\\\"left\\\":\\\"end\\\"===i?\\\"right\\\":\\\"center\\\";else if(\\\"charSpacing\\\"===t)a=o(i,n)/n*1e3;else if(\\\"paintFirst\\\"===t){var c=i.indexOf(\\\"fill\\\"),l=i.indexOf(\\\"stroke\\\");i=\\\"fill\\\";(c\\u003e-1\\u0026\\u0026l\\u003e-1\\u0026\\u0026l\\u003cc||-1===c\\u0026\\u0026l\\u003e-1)\\u0026\\u0026(i=\\\"stroke\\\")}else{if(\\\"href\\\"===t||\\\"xlink:href\\\"===t||\\\"font\\\"===t)return i;if(\\\"imageSmoothing\\\"===t)return\\\"optimizeQuality\\\"===i;a=h?i.map(o):o(i,n)}}else i=\\\"\\\";return!h\\u0026\\u0026isNaN(a)?i:a}function d(t){return new RegExp(\\\"^(\\\"+t.join(\\\"|\\\")+\\\")\\\\\\\\b\\\",\\\"i\\\")}function g(t,e){var i,r,n,o,s=[];for(n=0,o=e.length;n\\u003co;n++)i=e[n],r=t.getElementsByTagName(i),s=s.concat(Array.prototype.slice.call(r));return s}function p(t,e){var i,r=!0;return(i=v(t,e.pop()))\\u0026\\u0026e.length\\u0026\\u0026(r=function(t,e){var i,r=!0;for(;t.parentNode\\u0026\\u00261===t.parentNode.nodeType\\u0026\\u0026e.length;)r\\u0026\\u0026(i=e.pop()),r=v(t=t.parentNode,i);return 0===e.length}(t,e)),i\\u0026\\u0026r\\u0026\\u00260===e.length}function v(t,e){var i,r,n=t.nodeName,o=t.getAttribute(\\\"class\\\"),s=t.getAttribute(\\\"id\\\");if(i=new RegExp(\\\"^\\\"+n,\\\"i\\\"),e=e.replace(i,\\\"\\\"),s\\u0026\\u0026e.length\\u0026\\u0026(i=new RegExp(\\\"#\\\"+s+\\\"(?![a-zA-Z\\\\\\\\-]+)\\\",\\\"i\\\"),e=e.replace(i,\\\"\\\")),o\\u0026\\u0026e.length)for(r=(o=o.split(\\\" \\\")).length;r--;)i=new RegExp(\\\"\\\\\\\\.\\\"+o[r]+\\\"(?![a-zA-Z\\\\\\\\-]+)\\\",\\\"i\\\"),e=e.replace(i,\\\"\\\");return 0===e.length}function m(t,e){var i;if(t.getElementById\\u0026\\u0026(i=t.getElementById(e)),i)return i;var r,n,o,s=t.getElementsByTagName(\\\"*\\\");for(n=0,o=s.length;n\\u003co;n++)if(e===(r=s[n]).getAttribute(\\\"id\\\"))return r}e.svgValidTagNamesRegEx=d([\\\"path\\\",\\\"circle\\\",\\\"polygon\\\",\\\"polyline\\\",\\\"ellipse\\\",\\\"rect\\\",\\\"line\\\",\\\"image\\\",\\\"text\\\"]),e.svgViewBoxElementsRegEx=d([\\\"symbol\\\",\\\"image\\\",\\\"marker\\\",\\\"pattern\\\",\\\"view\\\",\\\"svg\\\"]),e.svgInvalidAncestorsRegEx=d([\\\"pattern\\\",\\\"defs\\\",\\\"symbol\\\",\\\"metadata\\\",\\\"clipPath\\\",\\\"mask\\\",\\\"desc\\\"]),e.svgValidParentsRegEx=d([\\\"symbol\\\",\\\"g\\\",\\\"a\\\",\\\"svg\\\",\\\"clipPath\\\",\\\"defs\\\"]),e.cssRules={},e.gradientDefs={},e.clipPaths={},e.parseTransformAttribute=function(){function t(t,i,r){t[r]=Math.tan(e.util.degreesToRadians(i[0]))}var i=e.iMatrix,r=e.reNum,n=e.commaWsp,o=\\\"(?:\\\"+(\\\"(?:(matrix)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\")\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(translate)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")(?:\\\"+n+\\\"(\\\"+r+\\\"))?\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(scale)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")(?:\\\"+n+\\\"(\\\"+r+\\\"))?\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(rotate)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")(?:\\\"+n+\\\"(\\\"+r+\\\")\\\"+n+\\\"(\\\"+r+\\\"))?\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(skewX)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")\\\\\\\\s*\\\\\\\\))\\\")+\\\"|\\\"+(\\\"(?:(skewY)\\\\\\\\s*\\\\\\\\(\\\\\\\\s*(\\\"+r+\\\")\\\\\\\\s*\\\\\\\\))\\\")+\\\")\\\",s=new RegExp(\\\"^\\\\\\\\s*(?:\\\"+(\\\"(?:\\\"+o+\\\"(?:\\\"+n+\\\"*\\\"+o+\\\")*)\\\")+\\\"?)\\\\\\\\s*$\\\"),a=new RegExp(o,\\\"g\\\");return function(r){var n=i.concat(),h=[];if(!r||r\\u0026\\u0026!s.test(r))return n;r.replace(a,(function(r){var s=new RegExp(o).exec(r).filter((function(t){return!!t})),a=s[1],c=s.slice(2).map(parseFloat);switch(a){case\\\"translate\\\":!function(t,e){t[4]=e[0],2===e.length\\u0026\\u0026(t[5]=e[1])}(n,c);break;case\\\"rotate\\\":c[0]=e.util.degreesToRadians(c[0]),function(t,i){var r=e.util.cos(i[0]),n=e.util.sin(i[0]),o=0,s=0;3===i.length\\u0026\\u0026(o=i[1],s=i[2]),t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=o-(r*o-n*s),t[5]=s-(n*o+r*s)}(n,c);break;case\\\"scale\\\":!function(t,e){var i=e[0],r=2===e.length?e[1]:e[0];t[0]=i,t[3]=r}(n,c);break;case\\\"skewX\\\":t(n,c,2);break;case\\\"skewY\\\":t(n,c,1);break;case\\\"matrix\\\":n=c}h.push(n.concat()),n=i.concat()}));for(var c=h[0];h.length\\u003e1;)h.shift(),c=e.util.multiplyTransformMatrices(c,h[0]);return c}}();var y=new RegExp(\\\"^\\\\\\\\s*(\\\"+e.reNum+\\\"+)\\\\\\\\s*,?\\\\\\\\s*(\\\"+e.reNum+\\\"+)\\\\\\\\s*,?\\\\\\\\s*(\\\"+e.reNum+\\\"+)\\\\\\\\s*,?\\\\\\\\s*(\\\"+e.reNum+\\\"+)\\\\\\\\s*$\\\");function _(t){if(!e.svgViewBoxElementsRegEx.test(t.nodeName))return{};var i,r,n,s,a,h,c=t.getAttribute(\\\"viewBox\\\"),l=1,u=1,f=t.getAttribute(\\\"width\\\"),d=t.getAttribute(\\\"height\\\"),g=t.getAttribute(\\\"x\\\")||0,p=t.getAttribute(\\\"y\\\")||0,v=t.getAttribute(\\\"preserveAspectRatio\\\")||\\\"\\\",m=!c||!(c=c.match(y)),_=!f||!d||\\\"100%\\\"===f||\\\"100%\\\"===d,b=m\\u0026\\u0026_,x={},C=\\\"\\\",w=0,S=0;if(x.width=0,x.height=0,x.toBeParsed=b,m\\u0026\\u0026(g||p)\\u0026\\u0026t.parentNode\\u0026\\u0026\\\"#document\\\"!==t.parentNode.nodeName\\u0026\\u0026(C=\\\" translate(\\\"+o(g)+\\\" \\\"+o(p)+\\\") \\\",a=(t.getAttribute(\\\"transform\\\")||\\\"\\\")+C,t.setAttribute(\\\"transform\\\",a),t.removeAttribute(\\\"x\\\"),t.removeAttribute(\\\"y\\\")),b)return x;if(m)return x.width=o(f),x.height=o(d),x;if(i=-parseFloat(c[1]),r=-parseFloat(c[2]),n=parseFloat(c[3]),s=parseFloat(c[4]),x.minX=i,x.minY=r,x.viewBoxWidth=n,x.viewBoxHeight=s,_?(x.width=n,x.height=s):(x.width=o(f),x.height=o(d),l=x.width/n,u=x.height/s),\\\"none\\\"!==(v=e.util.parsePreserveAspectRatioAttribute(v)).alignX\\u0026\\u0026(\\\"meet\\\"===v.meetOrSlice\\u0026\\u0026(u=l=l\\u003eu?u:l),\\\"slice\\\"===v.meetOrSlice\\u0026\\u0026(u=l=l\\u003eu?l:u),w=x.width-n*l,S=x.height-s*l,\\\"Mid\\\"===v.alignX\\u0026\\u0026(w/=2),\\\"Mid\\\"===v.alignY\\u0026\\u0026(S/=2),\\\"Min\\\"===v.alignX\\u0026\\u0026(w=0),\\\"Min\\\"===v.alignY\\u0026\\u0026(S=0)),1===l\\u0026\\u00261===u\\u0026\\u00260===i\\u0026\\u00260===r\\u0026\\u00260===g\\u0026\\u00260===p)return x;if((g||p)\\u0026\\u0026\\\"#document\\\"!==t.parentNode.nodeName\\u0026\\u0026(C=\\\" translate(\\\"+o(g)+\\\" \\\"+o(p)+\\\") \\\"),a=C+\\\" matrix(\\\"+l+\\\" 0 0 \\\"+u+\\\" \\\"+(i*l+w)+\\\" \\\"+(r*u+S)+\\\") \\\",\\\"svg\\\"===t.nodeName){for(h=t.ownerDocument.createElementNS(e.svgNS,\\\"g\\\");t.firstChild;)h.appendChild(t.firstChild);t.appendChild(h)}else(h=t).removeAttribute(\\\"x\\\"),h.removeAttribute(\\\"y\\\"),a=h.getAttribute(\\\"transform\\\")+a;return h.setAttribute(\\\"transform\\\",a),x}function b(t,e){var i=\\\"xlink:href\\\",r=m(t,e.getAttribute(i).substr(1));if(r\\u0026\\u0026r.getAttribute(i)\\u0026\\u0026b(t,r),[\\\"gradientTransform\\\",\\\"x1\\\",\\\"x2\\\",\\\"y1\\\",\\\"y2\\\",\\\"gradientUnits\\\",\\\"cx\\\",\\\"cy\\\",\\\"r\\\",\\\"fx\\\",\\\"fy\\\"].forEach((function(t){r\\u0026\\u0026!e.hasAttribute(t)\\u0026\\u0026r.hasAttribute(t)\\u0026\\u0026e.setAttribute(t,r.getAttribute(t))})),!e.children.length)for(var n=r.cloneNode(!0);n.firstChild;)e.appendChild(n.firstChild);e.removeAttribute(i)}e.parseSVGDocument=function(t,i,n,o){if(t){!function(t){for(var i=g(t,[\\\"use\\\",\\\"svg:use\\\"]),r=0;i.length\\u0026\\u0026r\\u003ci.length;){var n=i[r],o=n.getAttribute(\\\"xlink:href\\\")||n.getAttribute(\\\"href\\\");if(null===o)return;var s,a,h,c,l=o.substr(1),u=n.getAttribute(\\\"x\\\")||0,f=n.getAttribute(\\\"y\\\")||0,d=m(t,l).cloneNode(!0),p=(d.getAttribute(\\\"transform\\\")||\\\"\\\")+\\\" translate(\\\"+u+\\\", \\\"+f+\\\")\\\",v=i.length,y=e.svgNS;if(_(d),/^svg$/i.test(d.nodeName)){var b=d.ownerDocument.createElementNS(y,\\\"g\\\");for(a=0,c=(h=d.attributes).length;a\\u003cc;a++)s=h.item(a),b.setAttributeNS(y,s.nodeName,s.nodeValue);for(;d.firstChild;)b.appendChild(d.firstChild);d=b}for(a=0,c=(h=n.attributes).length;a\\u003cc;a++)\\\"x\\\"!==(s=h.item(a)).nodeName\\u0026\\u0026\\\"y\\\"!==s.nodeName\\u0026\\u0026\\\"xlink:href\\\"!==s.nodeName\\u0026\\u0026\\\"href\\\"!==s.nodeName\\u0026\\u0026(\\\"transform\\\"===s.nodeName?p=s.nodeValue+\\\" \\\"+p:d.setAttribute(s.nodeName,s.nodeValue));d.setAttribute(\\\"transform\\\",p),d.setAttribute(\\\"instantiated_by_use\\\",\\\"1\\\"),d.removeAttribute(\\\"id\\\"),n.parentNode.replaceChild(d,n),i.length===v\\u0026\\u0026r++}}(t);var s,a,h=e.Object.__uid++,c=_(t),l=e.util.toArray(t.getElementsByTagName(\\\"*\\\"));if(c.crossOrigin=o\\u0026\\u0026o.crossOrigin,c.svgUid=h,0===l.length\\u0026\\u0026e.isLikelyNode){var u=[];for(s=0,a=(l=t.selectNodes('//*[name(.)!=\\\"svg\\\"]')).length;s\\u003ca;s++)u[s]=l[s];l=u}var f=l.filter((function(t){return _(t),e.svgValidTagNamesRegEx.test(t.nodeName.replace(\\\"svg:\\\",\\\"\\\"))\\u0026\\u0026!function(t,e){for(;t\\u0026\\u0026(t=t.parentNode);)if(t.nodeName\\u0026\\u0026e.test(t.nodeName.replace(\\\"svg:\\\",\\\"\\\"))\\u0026\\u0026!t.getAttribute(\\\"instantiated_by_use\\\"))return!0;return!1}(t,e.svgInvalidAncestorsRegEx)}));if(!f||f\\u0026\\u0026!f.length)i\\u0026\\u0026i([],{});else{var d={};l.filter((function(t){return\\\"clipPath\\\"===t.nodeName.replace(\\\"svg:\\\",\\\"\\\")})).forEach((function(t){var i=t.getAttribute(\\\"id\\\");d[i]=e.util.toArray(t.getElementsByTagName(\\\"*\\\")).filter((function(t){return e.svgValidTagNamesRegEx.test(t.nodeName.replace(\\\"svg:\\\",\\\"\\\"))}))})),e.gradientDefs[h]=e.getGradientDefs(t),e.cssRules[h]=e.getCSSRules(t),e.clipPaths[h]=d,e.parseElements(f,(function(t,r){i\\u0026\\u0026(i(t,c,r,l),delete e.gradientDefs[h],delete e.cssRules[h],delete e.clipPaths[h])}),r(c),n,o)}}};var x=new RegExp(\\\"(normal|italic)?\\\\\\\\s*(normal|small-caps)?\\\\\\\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\\\\\\\s*(\\\"+e.reNum+\\\"(?:px|cm|mm|em|pt|pc|in)*)(?:\\\\\\\\/(normal|\\\"+e.reNum+\\\"))?\\\\\\\\s+(.*)\\\");i(e,{parseFontDeclaration:function(t,e){var i=t.match(x);if(i){var r=i[1],n=i[3],s=i[4],a=i[5],h=i[6];r\\u0026\\u0026(e.fontStyle=r),n\\u0026\\u0026(e.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),s\\u0026\\u0026(e.fontSize=o(s)),h\\u0026\\u0026(e.fontFamily=h),a\\u0026\\u0026(e.lineHeight=\\\"normal\\\"===a?1:a)}},getGradientDefs:function(t){var e,i=g(t,[\\\"linearGradient\\\",\\\"radialGradient\\\",\\\"svg:linearGradient\\\",\\\"svg:radialGradient\\\"]),r=0,n={};for(r=i.length;r--;)(e=i[r]).getAttribute(\\\"xlink:href\\\")\\u0026\\u0026b(t,e),n[e.getAttribute(\\\"id\\\")]=e;return n},parseAttributes:function(t,r,s){if(t){var a,d,g,v={};void 0===s\\u0026\\u0026(s=t.getAttribute(\\\"svgUid\\\")),t.parentNode\\u0026\\u0026e.svgValidParentsRegEx.test(t.parentNode.nodeName)\\u0026\\u0026(v=e.parseAttributes(t.parentNode,r,s));var m=r.reduce((function(e,i){return(a=t.getAttribute(i))\\u0026\\u0026(e[i]=a),e}),{}),y=i(function(t,i){var r={};for(var n in e.cssRules[i])if(p(t,n.split(\\\" \\\")))for(var o in e.cssRules[i][n])r[o]=e.cssRules[i][n][o];return r}(t,s),e.parseStyleAttribute(t));m=i(m,y),y[l]\\u0026\\u0026t.setAttribute(l,y[l]),d=g=v.fontSize||e.Text.DEFAULT_SVG_FONT_SIZE,m[c]\\u0026\\u0026(m[c]=d=o(m[c],g));var _,b,x={};for(var C in m)b=f(_=u(C),m[C],v,d),x[_]=b;x\\u0026\\u0026x.font\\u0026\\u0026e.parseFontDeclaration(x.font,x);var w=i(v,x);return e.svgValidParentsRegEx.test(t.nodeName)?w:function(t){for(var i in h)if(void 0!==t[h[i]]\\u0026\\u0026\\\"\\\"!==t[i]){if(void 0===t[i]){if(!e.Object.prototype[i])continue;t[i]=e.Object.prototype[i]}if(0!==t[i].indexOf(\\\"url(\\\")){var r=new e.Color(t[i]);t[i]=r.setAlpha(n(r.getAlpha()*t[h[i]],2)).toRgba()}}return t}(w)}},parseElements:function(t,i,r,n,o){new e.ElementsParser(t,i,r,n,o).parse()},parseStyleAttribute:function(t){var e={},i=t.getAttribute(\\\"style\\\");return i?(\\\"string\\\"==typeof i?function(t,e){var i,r;t.replace(/;\\\\s*$/,\\\"\\\").split(\\\";\\\").forEach((function(t){var n=t.split(\\\":\\\");i=n[0].trim().toLowerCase(),r=n[1].trim(),e[i]=r}))}(i,e):function(t,e){var i,r;for(var n in t)void 0!==t[n]\\u0026\\u0026(i=n.toLowerCase(),r=t[n],e[i]=r)}(i,e),e):e},parsePointsAttribute:function(t){if(!t)return null;var e,i,r=[];for(e=0,i=(t=(t=t.replace(/,/g,\\\" \\\").trim()).split(/\\\\s+/)).length;e\\u003ci;e+=2)r.push({x:parseFloat(t[e]),y:parseFloat(t[e+1])});return r},getCSSRules:function(t){var i,r,n=t.getElementsByTagName(\\\"style\\\"),o={};for(i=0,r=n.length;i\\u003cr;i++){var s=n[i].textContent;\\\"\\\"!==(s=s.replace(/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//g,\\\"\\\")).trim()\\u0026\\u0026s.match(/[^{]*\\\\{[\\\\s\\\\S]*?\\\\}/g).map((function(t){return t.trim()})).forEach((function(t){var n=t.match(/([\\\\s\\\\S]*?)\\\\s*\\\\{([^}]*)\\\\}/),s={},a=n[2].trim().replace(/;$/,\\\"\\\").split(/\\\\s*;\\\\s*/);for(i=0,r=a.length;i\\u003cr;i++){var h=a[i].split(/\\\\s*:\\\\s*/),c=h[0],l=h[1];s[c]=l}(t=n[1]).split(\\\",\\\").forEach((function(t){\\\"\\\"!==(t=t.replace(/^svg/i,\\\"\\\").trim())\\u0026\\u0026(o[t]?e.util.object.extend(o[t],s):o[t]=e.util.object.clone(s))}))}))}return o},loadSVGFromURL:function(t,i,r,n){t=t.replace(/^\\\\n\\\\s*/,\\\"\\\").trim(),new e.util.request(t,{method:\\\"get\\\",onComplete:function(t){var o=t.responseXML;if(!o||!o.documentElement)return i\\u0026\\u0026i(null),!1;e.parseSVGDocument(o.documentElement,(function(t,e,r,n){i\\u0026\\u0026i(t,e,r,n)}),r,n)}})},loadSVGFromString:function(t,i,r,n){var o=(new e.window.DOMParser).parseFromString(t.trim(),\\\"text/xml\\\");e.parseSVGDocument(o.documentElement,(function(t,e,r,n){i(t,e,r,n)}),r,n)}})}(t),T.ElementsParser=function(t,e,i,r,n,o){this.elements=t,this.callback=e,this.options=i,this.reviver=r,this.svgUid=i\\u0026\\u0026i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\\\\(['\\\"]?#([^'\\\"]+)['\\\"]?\\\\)/g,this.doc=o},(y=T.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},y.createObjects=function(){var t=this;this.elements.forEach((function(e,i){e.setAttribute(\\\"svgUid\\\",t.svgUid),t.createObject(e,i)}))},y.findTag=function(t){return T[T.util.string.capitalize(t.tagName.replace(\\\"svg:\\\",\\\"\\\"))]},y.createObject=function(t,e){var i=this.findTag(t);if(i\\u0026\\u0026i.fromElement)try{i.fromElement(t,this.createCallback(e,t),this.options)}catch(t){T.log(t)}else this.checkIfDone()},y.createCallback=function(t,e){var i=this;return function(r){var n;i.resolveGradient(r,e,\\\"fill\\\"),i.resolveGradient(r,e,\\\"stroke\\\"),r instanceof T.Image\\u0026\\u0026r._originalElement\\u0026\\u0026(n=r.parsePreserveAspectRatioAttribute(e)),r._removeTransformMatrix(n),i.resolveClipPath(r,e),i.reviver\\u0026\\u0026i.reviver(e,r),i.instances[t]=r,i.checkIfDone()}},y.extractPropertyDefinition=function(t,e,i){var r=t[e],n=this.regexUrl;if(n.test(r)){n.lastIndex=0;var o=n.exec(r)[1];return n.lastIndex=0,T[i][this.svgUid][o]}},y.resolveGradient=function(t,e,i){var r=this.extractPropertyDefinition(t,i,\\\"gradientDefs\\\");if(r){var n=e.getAttribute(i+\\\"-opacity\\\"),o=T.Gradient.fromElement(r,t,n,this.options);t.set(i,o)}},y.createClipPathCallback=function(t,e){return function(t){t._removeTransformMatrix(),t.fillRule=t.clipRule,e.push(t)}},y.resolveClipPath=function(t,e){var i,r,n,o,s=this.extractPropertyDefinition(t,\\\"clipPath\\\",\\\"clipPaths\\\");if(s){n=[],r=T.util.invertTransform(t.calcTransformMatrix());for(var a=s[0].parentNode,h=e;h.parentNode\\u0026\\u0026h.getAttribute(\\\"clip-path\\\")!==t.clipPath;)h=h.parentNode;h.parentNode.appendChild(a);for(var c=0;c\\u003cs.length;c++)i=s[c],this.findTag(i).fromElement(i,this.createClipPathCallback(t,n),this.options);s=1===n.length?n[0]:new T.Group(n),o=T.util.multiplyTransformMatrices(r,s.calcTransformMatrix()),s.clipPath\\u0026\\u0026this.resolveClipPath(s,h);var l=T.util.qrDecompose(o);s.flipX=!1,s.flipY=!1,s.set(\\\"scaleX\\\",l.scaleX),s.set(\\\"scaleY\\\",l.scaleY),s.angle=l.angle,s.skewX=l.skewX,s.skewY=0,s.setPositionByOrigin({x:l.translateX,y:l.translateY},\\\"center\\\",\\\"center\\\"),t.clipPath=s}else delete t.clipPath},y.checkIfDone=function(){0==--this.numElements\\u0026\\u0026(this.instances=this.instances.filter((function(t){return null!=t})),this.callback(this.instances,this.elements))},function(t){var e=t.fabric||(t.fabric={});function i(t,e){this.x=t,this.y=e}e.Point?e.warn(\\\"fabric.Point is already defined\\\"):(e.Point=i,i.prototype={type:\\\"point\\\",constructor:i,add:function(t){return new i(this.x+t.x,this.y+t.y)},addEquals:function(t){return this.x+=t.x,this.y+=t.y,this},scalarAdd:function(t){return new i(this.x+t,this.y+t)},scalarAddEquals:function(t){return this.x+=t,this.y+=t,this},subtract:function(t){return new i(this.x-t.x,this.y-t.y)},subtractEquals:function(t){return this.x-=t.x,this.y-=t.y,this},scalarSubtract:function(t){return new i(this.x-t,this.y-t)},scalarSubtractEquals:function(t){return this.x-=t,this.y-=t,this},multiply:function(t){return new i(this.x*t,this.y*t)},multiplyEquals:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return new i(this.x/t,this.y/t)},divideEquals:function(t){return this.x/=t,this.y/=t,this},eq:function(t){return this.x===t.x\\u0026\\u0026this.y===t.y},lt:function(t){return this.x\\u003ct.x\\u0026\\u0026this.y\\u003ct.y},lte:function(t){return this.x\\u003c=t.x\\u0026\\u0026this.y\\u003c=t.y},gt:function(t){return this.x\\u003et.x\\u0026\\u0026this.y\\u003et.y},gte:function(t){return this.x\\u003e=t.x\\u0026\\u0026this.y\\u003e=t.y},lerp:function(t,e){return void 0===e\\u0026\\u0026(e=.5),e=Math.max(Math.min(1,e),0),new i(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e)},distanceFrom:function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},midPointFrom:function(t){return this.lerp(t)},min:function(t){return new i(Math.min(this.x,t.x),Math.min(this.y,t.y))},max:function(t){return new i(Math.max(this.x,t.x),Math.max(this.y,t.y))},toString:function(){return this.x+\\\",\\\"+this.y},setXY:function(t,e){return this.x=t,this.y=e,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setFromPoint:function(t){return this.x=t.x,this.y=t.y,this},swap:function(t){var e=this.x,i=this.y;this.x=t.x,this.y=t.y,t.x=e,t.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(t){var e=t.fabric||(t.fabric={});function i(t){this.status=t,this.points=[]}e.Intersection?e.warn(\\\"fabric.Intersection is already defined\\\"):(e.Intersection=i,e.Intersection.prototype={constructor:i,appendPoint:function(t){return this.points.push(t),this},appendPoints:function(t){return this.points=this.points.concat(t),this}},e.Intersection.intersectLineLine=function(t,r,n,o){var s,a=(o.x-n.x)*(t.y-n.y)-(o.y-n.y)*(t.x-n.x),h=(r.x-t.x)*(t.y-n.y)-(r.y-t.y)*(t.x-n.x),c=(o.y-n.y)*(r.x-t.x)-(o.x-n.x)*(r.y-t.y);if(0!==c){var l=a/c,u=h/c;0\\u003c=l\\u0026\\u0026l\\u003c=1\\u0026\\u00260\\u003c=u\\u0026\\u0026u\\u003c=1?(s=new i(\\\"Intersection\\\")).appendPoint(new e.Point(t.x+l*(r.x-t.x),t.y+l*(r.y-t.y))):s=new i}else s=new i(0===a||0===h?\\\"Coincident\\\":\\\"Parallel\\\");return s},e.Intersection.intersectLinePolygon=function(t,e,r){var n,o,s,a,h=new i,c=r.length;for(a=0;a\\u003cc;a++)n=r[a],o=r[(a+1)%c],s=i.intersectLineLine(t,e,n,o),h.appendPoints(s.points);return h.points.length\\u003e0\\u0026\\u0026(h.status=\\\"Intersection\\\"),h},e.Intersection.intersectPolygonPolygon=function(t,e){var r,n=new i,o=t.length;for(r=0;r\\u003co;r++){var s=t[r],a=t[(r+1)%o],h=i.intersectLinePolygon(s,a,e);n.appendPoints(h.points)}return n.points.length\\u003e0\\u0026\\u0026(n.status=\\\"Intersection\\\"),n},e.Intersection.intersectPolygonRectangle=function(t,r,n){var o=r.min(n),s=r.max(n),a=new e.Point(s.x,o.y),h=new e.Point(o.x,s.y),c=i.intersectLinePolygon(o,a,t),l=i.intersectLinePolygon(a,s,t),u=i.intersectLinePolygon(s,h,t),f=i.intersectLinePolygon(h,o,t),d=new i;return d.appendPoints(c.points),d.appendPoints(l.points),d.appendPoints(u.points),d.appendPoints(f.points),d.points.length\\u003e0\\u0026\\u0026(d.status=\\\"Intersection\\\"),d})}(t),function(t){var e=t.fabric||(t.fabric={});function i(t){t?this._tryParsingColor(t):this.setSource([0,0,0,1])}function r(t,e,i){return i\\u003c0\\u0026\\u0026(i+=1),i\\u003e1\\u0026\\u0026(i-=1),i\\u003c1/6?t+6*(e-t)*i:i\\u003c.5?e:i\\u003c2/3?t+(e-t)*(2/3-i)*6:t}e.Color?e.warn(\\\"fabric.Color is already defined.\\\"):(e.Color=i,e.Color.prototype={_tryParsingColor:function(t){var e;t in i.colorNameMap\\u0026\\u0026(t=i.colorNameMap[t]),\\\"transparent\\\"===t\\u0026\\u0026(e=[255,255,255,0]),e||(e=i.sourceFromHex(t)),e||(e=i.sourceFromRgb(t)),e||(e=i.sourceFromHsl(t)),e||(e=[0,0,0,1]),e\\u0026\\u0026this.setSource(e)},_rgbToHsl:function(t,i,r){t/=255,i/=255,r/=255;var n,o,s,a=e.util.array.max([t,i,r]),h=e.util.array.min([t,i,r]);if(s=(a+h)/2,a===h)n=o=0;else{var c=a-h;switch(o=s\\u003e.5?c/(2-a-h):c/(a+h),a){case t:n=(i-r)/c+(i\\u003cr?6:0);break;case i:n=(r-t)/c+2;break;case r:n=(t-i)/c+4}n/=6}return[Math.round(360*n),Math.round(100*o),Math.round(100*s)]},getSource:function(){return this._source},setSource:function(t){this._source=t},toRgb:function(){var t=this.getSource();return\\\"rgb(\\\"+t[0]+\\\",\\\"+t[1]+\\\",\\\"+t[2]+\\\")\\\"},toRgba:function(){var t=this.getSource();return\\\"rgba(\\\"+t[0]+\\\",\\\"+t[1]+\\\",\\\"+t[2]+\\\",\\\"+t[3]+\\\")\\\"},toHsl:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return\\\"hsl(\\\"+e[0]+\\\",\\\"+e[1]+\\\"%,\\\"+e[2]+\\\"%)\\\"},toHsla:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return\\\"hsla(\\\"+e[0]+\\\",\\\"+e[1]+\\\"%,\\\"+e[2]+\\\"%,\\\"+t[3]+\\\")\\\"},toHex:function(){var t,e,i,r=this.getSource();return t=1===(t=r[0].toString(16)).length?\\\"0\\\"+t:t,e=1===(e=r[1].toString(16)).length?\\\"0\\\"+e:e,i=1===(i=r[2].toString(16)).length?\\\"0\\\"+i:i,t.toUpperCase()+e.toUpperCase()+i.toUpperCase()},toHexa:function(){var t,e=this.getSource();return t=1===(t=(t=Math.round(255*e[3])).toString(16)).length?\\\"0\\\"+t:t,this.toHex()+t.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(t){var e=this.getSource();return e[3]=t,this.setSource(e),this},toGrayscale:function(){var t=this.getSource(),e=parseInt((.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),10),i=t[3];return this.setSource([e,e,e,i]),this},toBlackWhite:function(t){var e=this.getSource(),i=(.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),r=e[3];return t=t||127,i=Number(i)\\u003cNumber(t)?0:255,this.setSource([i,i,i,r]),this},overlayWith:function(t){t instanceof i||(t=new i(t));var e,r=[],n=this.getAlpha(),o=this.getSource(),s=t.getSource();for(e=0;e\\u003c3;e++)r.push(Math.round(.5*o[e]+.5*s[e]));return r[3]=n,this.setSource(r),this}},e.Color.reRGBa=/^rgba?\\\\(\\\\s*(\\\\d{1,3}(?:\\\\.\\\\d+)?\\\\%?)\\\\s*,\\\\s*(\\\\d{1,3}(?:\\\\.\\\\d+)?\\\\%?)\\\\s*,\\\\s*(\\\\d{1,3}(?:\\\\.\\\\d+)?\\\\%?)\\\\s*(?:\\\\s*,\\\\s*((?:\\\\d*\\\\.?\\\\d+)?)\\\\s*)?\\\\)$/i,e.Color.reHSLa=/^hsla?\\\\(\\\\s*(\\\\d{1,3})\\\\s*,\\\\s*(\\\\d{1,3}\\\\%)\\\\s*,\\\\s*(\\\\d{1,3}\\\\%)\\\\s*(?:\\\\s*,\\\\s*(\\\\d+(?:\\\\.\\\\d+)?)\\\\s*)?\\\\)$/i,e.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,e.Color.colorNameMap={aliceblue:\\\"#F0F8FF\\\",antiquewhite:\\\"#FAEBD7\\\",aqua:\\\"#00FFFF\\\",aquamarine:\\\"#7FFFD4\\\",azure:\\\"#F0FFFF\\\",beige:\\\"#F5F5DC\\\",bisque:\\\"#FFE4C4\\\",black:\\\"#000000\\\",blanchedalmond:\\\"#FFEBCD\\\",blue:\\\"#0000FF\\\",blueviolet:\\\"#8A2BE2\\\",brown:\\\"#A52A2A\\\",burlywood:\\\"#DEB887\\\",cadetblue:\\\"#5F9EA0\\\",chartreuse:\\\"#7FFF00\\\",chocolate:\\\"#D2691E\\\",coral:\\\"#FF7F50\\\",cornflowerblue:\\\"#6495ED\\\",cornsilk:\\\"#FFF8DC\\\",crimson:\\\"#DC143C\\\",cyan:\\\"#00FFFF\\\",darkblue:\\\"#00008B\\\",darkcyan:\\\"#008B8B\\\",darkgoldenrod:\\\"#B8860B\\\",darkgray:\\\"#A9A9A9\\\",darkgrey:\\\"#A9A9A9\\\",darkgreen:\\\"#006400\\\",darkkhaki:\\\"#BDB76B\\\",darkmagenta:\\\"#8B008B\\\",darkolivegreen:\\\"#556B2F\\\",darkorange:\\\"#FF8C00\\\",darkorchid:\\\"#9932CC\\\",darkred:\\\"#8B0000\\\",darksalmon:\\\"#E9967A\\\",darkseagreen:\\\"#8FBC8F\\\",darkslateblue:\\\"#483D8B\\\",darkslategray:\\\"#2F4F4F\\\",darkslategrey:\\\"#2F4F4F\\\",darkturquoise:\\\"#00CED1\\\",darkviolet:\\\"#9400D3\\\",deeppink:\\\"#FF1493\\\",deepskyblue:\\\"#00BFFF\\\",dimgray:\\\"#696969\\\",dimgrey:\\\"#696969\\\",dodgerblue:\\\"#1E90FF\\\",firebrick:\\\"#B22222\\\",floralwhite:\\\"#FFFAF0\\\",forestgreen:\\\"#228B22\\\",fuchsia:\\\"#FF00FF\\\",gainsboro:\\\"#DCDCDC\\\",ghostwhite:\\\"#F8F8FF\\\",gold:\\\"#FFD700\\\",goldenrod:\\\"#DAA520\\\",gray:\\\"#808080\\\",grey:\\\"#808080\\\",green:\\\"#008000\\\",greenyellow:\\\"#ADFF2F\\\",honeydew:\\\"#F0FFF0\\\",hotpink:\\\"#FF69B4\\\",indianred:\\\"#CD5C5C\\\",indigo:\\\"#4B0082\\\",ivory:\\\"#FFFFF0\\\",khaki:\\\"#F0E68C\\\",lavender:\\\"#E6E6FA\\\",lavenderblush:\\\"#FFF0F5\\\",lawngreen:\\\"#7CFC00\\\",lemonchiffon:\\\"#FFFACD\\\",lightblue:\\\"#ADD8E6\\\",lightcoral:\\\"#F08080\\\",lightcyan:\\\"#E0FFFF\\\",lightgoldenrodyellow:\\\"#FAFAD2\\\",lightgray:\\\"#D3D3D3\\\",lightgrey:\\\"#D3D3D3\\\",lightgreen:\\\"#90EE90\\\",lightpink:\\\"#FFB6C1\\\",lightsalmon:\\\"#FFA07A\\\",lightseagreen:\\\"#20B2AA\\\",lightskyblue:\\\"#87CEFA\\\",lightslategray:\\\"#778899\\\",lightslategrey:\\\"#778899\\\",lightsteelblue:\\\"#B0C4DE\\\",lightyellow:\\\"#FFFFE0\\\",lime:\\\"#00FF00\\\",limegreen:\\\"#32CD32\\\",linen:\\\"#FAF0E6\\\",magenta:\\\"#FF00FF\\\",maroon:\\\"#800000\\\",mediumaquamarine:\\\"#66CDAA\\\",mediumblue:\\\"#0000CD\\\",mediumorchid:\\\"#BA55D3\\\",mediumpurple:\\\"#9370DB\\\",mediumseagreen:\\\"#3CB371\\\",mediumslateblue:\\\"#7B68EE\\\",mediumspringgreen:\\\"#00FA9A\\\",mediumturquoise:\\\"#48D1CC\\\",mediumvioletred:\\\"#C71585\\\",midnightblue:\\\"#191970\\\",mintcream:\\\"#F5FFFA\\\",mistyrose:\\\"#FFE4E1\\\",moccasin:\\\"#FFE4B5\\\",navajowhite:\\\"#FFDEAD\\\",navy:\\\"#000080\\\",oldlace:\\\"#FDF5E6\\\",olive:\\\"#808000\\\",olivedrab:\\\"#6B8E23\\\",orange:\\\"#FFA500\\\",orangered:\\\"#FF4500\\\",orchid:\\\"#DA70D6\\\",palegoldenrod:\\\"#EEE8AA\\\",palegreen:\\\"#98FB98\\\",paleturquoise:\\\"#AFEEEE\\\",palevioletred:\\\"#DB7093\\\",papayawhip:\\\"#FFEFD5\\\",peachpuff:\\\"#FFDAB9\\\",peru:\\\"#CD853F\\\",pink:\\\"#FFC0CB\\\",plum:\\\"#DDA0DD\\\",powderblue:\\\"#B0E0E6\\\",purple:\\\"#800080\\\",rebeccapurple:\\\"#663399\\\",red:\\\"#FF0000\\\",rosybrown:\\\"#BC8F8F\\\",royalblue:\\\"#4169E1\\\",saddlebrown:\\\"#8B4513\\\",salmon:\\\"#FA8072\\\",sandybrown:\\\"#F4A460\\\",seagreen:\\\"#2E8B57\\\",seashell:\\\"#FFF5EE\\\",sienna:\\\"#A0522D\\\",silver:\\\"#C0C0C0\\\",skyblue:\\\"#87CEEB\\\",slateblue:\\\"#6A5ACD\\\",slategray:\\\"#708090\\\",slategrey:\\\"#708090\\\",snow:\\\"#FFFAFA\\\",springgreen:\\\"#00FF7F\\\",steelblue:\\\"#4682B4\\\",tan:\\\"#D2B48C\\\",teal:\\\"#008080\\\",thistle:\\\"#D8BFD8\\\",tomato:\\\"#FF6347\\\",turquoise:\\\"#40E0D0\\\",violet:\\\"#EE82EE\\\",wheat:\\\"#F5DEB3\\\",white:\\\"#FFFFFF\\\",whitesmoke:\\\"#F5F5F5\\\",yellow:\\\"#FFFF00\\\",yellowgreen:\\\"#9ACD32\\\"},e.Color.fromRgb=function(t){return i.fromSource(i.sourceFromRgb(t))},e.Color.sourceFromRgb=function(t){var e=t.match(i.reRGBa);if(e){var r=parseInt(e[1],10)/(/%$/.test(e[1])?100:1)*(/%$/.test(e[1])?255:1),n=parseInt(e[2],10)/(/%$/.test(e[2])?100:1)*(/%$/.test(e[2])?255:1),o=parseInt(e[3],10)/(/%$/.test(e[3])?100:1)*(/%$/.test(e[3])?255:1);return[parseInt(r,10),parseInt(n,10),parseInt(o,10),e[4]?parseFloat(e[4]):1]}},e.Color.fromRgba=i.fromRgb,e.Color.fromHsl=function(t){return i.fromSource(i.sourceFromHsl(t))},e.Color.sourceFromHsl=function(t){var e=t.match(i.reHSLa);if(e){var n,o,s,a=(parseFloat(e[1])%360+360)%360/360,h=parseFloat(e[2])/(/%$/.test(e[2])?100:1),c=parseFloat(e[3])/(/%$/.test(e[3])?100:1);if(0===h)n=o=s=c;else{var l=c\\u003c=.5?c*(h+1):c+h-c*h,u=2*c-l;n=r(u,l,a+1/3),o=r(u,l,a),s=r(u,l,a-1/3)}return[Math.round(255*n),Math.round(255*o),Math.round(255*s),e[4]?parseFloat(e[4]):1]}},e.Color.fromHsla=i.fromHsl,e.Color.fromHex=function(t){return i.fromSource(i.sourceFromHex(t))},e.Color.sourceFromHex=function(t){if(t.match(i.reHex)){var e=t.slice(t.indexOf(\\\"#\\\")+1),r=3===e.length||4===e.length,n=8===e.length||4===e.length,o=r?e.charAt(0)+e.charAt(0):e.substring(0,2),s=r?e.charAt(1)+e.charAt(1):e.substring(2,4),a=r?e.charAt(2)+e.charAt(2):e.substring(4,6),h=n?r?e.charAt(3)+e.charAt(3):e.substring(6,8):\\\"FF\\\";return[parseInt(o,16),parseInt(s,16),parseInt(a,16),parseFloat((parseInt(h,16)/255).toFixed(2))]}},e.Color.fromSource=function(t){var e=new i;return e.setSource(t),e})}(t),function(t){var e=t.fabric||(t.fabric={}),i=[\\\"e\\\",\\\"se\\\",\\\"s\\\",\\\"sw\\\",\\\"w\\\",\\\"nw\\\",\\\"n\\\",\\\"ne\\\",\\\"e\\\"],r=[\\\"ns\\\",\\\"nesw\\\",\\\"ew\\\",\\\"nwse\\\"],n={},o=\\\"left\\\",s=\\\"top\\\",a=\\\"right\\\",h=\\\"bottom\\\",c=\\\"center\\\",l={top:h,bottom:s,left:a,right:o,center:c},u=e.util.radiansToDegrees,f=Math.sign||function(t){return(t\\u003e0)-(t\\u003c0)||+t};function d(t,e){var i=t.angle+u(Math.atan2(e.y,e.x))+360;return Math.round(i%360/45)}function g(t,i){var r=i.transform.target,n=r.canvas,o=e.util.object.clone(i);o.target=r,n\\u0026\\u0026n.fire(\\\"object:\\\"+t,o),r.fire(t,i)}function p(t,e){var i=e.canvas,r=t[i.uniScaleKey];return i.uniformScaling\\u0026\\u0026!r||!i.uniformScaling\\u0026\\u0026r}function v(t){return t.originX===c\\u0026\\u0026t.originY===c}function m(t,e,i){var r=t.lockScalingX,n=t.lockScalingY;return!(!r||!n)||(!(e||!r\\u0026\\u0026!n||!i)||(!(!r||\\\"x\\\"!==e)||!(!n||\\\"y\\\"!==e)))}function y(t,e,i,r){return{e:t,transform:e,pointer:{x:i,y:r}}}function _(t){return function(e,i,r,n){var o=i.target,s=o.getCenterPoint(),a=o.translateToOriginPoint(s,i.originX,i.originY),h=t(e,i,r,n);return o.setPositionByOrigin(a,i.originX,i.originY),h}}function b(t,e){return function(i,r,n,o){var s=e(i,r,n,o);return s\\u0026\\u0026g(t,y(i,r,n,o)),s}}function x(t,i,r,n,o){var s=t.target,a=s.controls[t.corner],h=s.canvas.getZoom(),c=s.padding/h,l=s.toLocalPoint(new e.Point(n,o),i,r);return l.x\\u003e=c\\u0026\\u0026(l.x-=c),l.x\\u003c=-c\\u0026\\u0026(l.x+=c),l.y\\u003e=c\\u0026\\u0026(l.y-=c),l.y\\u003c=c\\u0026\\u0026(l.y+=c),l.x-=a.offsetX,l.y-=a.offsetY,l}function C(t){return t.flipX!==t.flipY}function w(t,e,i,r,n){if(0!==t[e]){var o=n/t._getTransformedDimensions()[r]*t[i];t.set(i,o)}}function S(t,e,i,r){var n,c=e.target,l=c._getTransformedDimensions(0,c.skewY),f=x(e,e.originX,e.originY,i,r),d=Math.abs(2*f.x)-l.x,g=c.skewX;d\\u003c2?n=0:(n=u(Math.atan2(d/c.scaleX,l.y/c.scaleY)),e.originX===o\\u0026\\u0026e.originY===h\\u0026\\u0026(n=-n),e.originX===a\\u0026\\u0026e.originY===s\\u0026\\u0026(n=-n),C(c)\\u0026\\u0026(n=-n));var p=g!==n;if(p){var v=c._getTransformedDimensions().y;c.set(\\\"skewX\\\",n),w(c,\\\"skewY\\\",\\\"scaleY\\\",\\\"y\\\",v)}return p}function T(t,e,i,r){var n,c=e.target,l=c._getTransformedDimensions(c.skewX,0),f=x(e,e.originX,e.originY,i,r),d=Math.abs(2*f.y)-l.y,g=c.skewY;d\\u003c2?n=0:(n=u(Math.atan2(d/c.scaleY,l.x/c.scaleX)),e.originX===o\\u0026\\u0026e.originY===h\\u0026\\u0026(n=-n),e.originX===a\\u0026\\u0026e.originY===s\\u0026\\u0026(n=-n),C(c)\\u0026\\u0026(n=-n));var p=g!==n;if(p){var v=c._getTransformedDimensions().x;c.set(\\\"skewY\\\",n),w(c,\\\"skewX\\\",\\\"scaleX\\\",\\\"x\\\",v)}return p}function O(t,e,i,r,n){n=n||{};var o,s,a,h,c,u,d=e.target,g=d.lockScalingX,y=d.lockScalingY,_=n.by,b=p(t,d),C=m(d,_,b),w=e.gestureScale;if(C)return!1;if(w)s=e.scaleX*w,a=e.scaleY*w;else{if(o=x(e,e.originX,e.originY,i,r),c=\\\"y\\\"!==_?f(o.x):1,u=\\\"x\\\"!==_?f(o.y):1,e.signX||(e.signX=c),e.signY||(e.signY=u),d.lockScalingFlip\\u0026\\u0026(e.signX!==c||e.signY!==u))return!1;if(h=d._getTransformedDimensions(),b\\u0026\\u0026!_){var S=Math.abs(o.x)+Math.abs(o.y),T=e.original,O=S/(Math.abs(h.x*T.scaleX/d.scaleX)+Math.abs(h.y*T.scaleY/d.scaleY));s=T.scaleX*O,a=T.scaleY*O}else s=Math.abs(o.x*d.scaleX/h.x),a=Math.abs(o.y*d.scaleY/h.y);v(e)\\u0026\\u0026(s*=2,a*=2),e.signX!==c\\u0026\\u0026\\\"y\\\"!==_\\u0026\\u0026(e.originX=l[e.originX],s*=-1,e.signX=c),e.signY!==u\\u0026\\u0026\\\"x\\\"!==_\\u0026\\u0026(e.originY=l[e.originY],a*=-1,e.signY=u)}var P=d.scaleX,E=d.scaleY;return _?(\\\"x\\\"===_\\u0026\\u0026d.set(\\\"scaleX\\\",s),\\\"y\\\"===_\\u0026\\u0026d.set(\\\"scaleY\\\",a)):(!g\\u0026\\u0026d.set(\\\"scaleX\\\",s),!y\\u0026\\u0026d.set(\\\"scaleY\\\",a)),P!==d.scaleX||E!==d.scaleY}n.scaleCursorStyleHandler=function(t,e,r){var n=p(t,r),o=\\\"\\\";if(0!==e.x\\u0026\\u00260===e.y?o=\\\"x\\\":0===e.x\\u0026\\u00260!==e.y\\u0026\\u0026(o=\\\"y\\\"),m(r,o,n))return\\\"not-allowed\\\";var s=d(r,e);return i[s]+\\\"-resize\\\"},n.skewCursorStyleHandler=function(t,e,i){var n=\\\"not-allowed\\\";if(0!==e.x\\u0026\\u0026i.lockSkewingY)return n;if(0!==e.y\\u0026\\u0026i.lockSkewingX)return n;var o=d(i,e)%4;return r[o]+\\\"-resize\\\"},n.scaleSkewCursorStyleHandler=function(t,e,i){return t[i.canvas.altActionKey]?n.skewCursorStyleHandler(t,e,i):n.scaleCursorStyleHandler(t,e,i)},n.rotationWithSnapping=b(\\\"rotating\\\",_((function(t,e,i,r){var n=e,o=n.target,s=o.translateToOriginPoint(o.getCenterPoint(),n.originX,n.originY);if(o.lockRotation)return!1;var a,h=Math.atan2(n.ey-s.y,n.ex-s.x),c=Math.atan2(r-s.y,i-s.x),l=u(c-h+n.theta);if(o.snapAngle\\u003e0){var f=o.snapAngle,d=o.snapThreshold||f,g=Math.ceil(l/f)*f,p=Math.floor(l/f)*f;Math.abs(l-p)\\u003cd?l=p:Math.abs(l-g)\\u003cd\\u0026\\u0026(l=g)}return l\\u003c0\\u0026\\u0026(l=360+l),l%=360,a=o.angle!==l,o.angle=l,a}))),n.scalingEqually=b(\\\"scaling\\\",_((function(t,e,i,r){return O(t,e,i,r)}))),n.scalingX=b(\\\"scaling\\\",_((function(t,e,i,r){return O(t,e,i,r,{by:\\\"x\\\"})}))),n.scalingY=b(\\\"scaling\\\",_((function(t,e,i,r){return O(t,e,i,r,{by:\\\"y\\\"})}))),n.scalingYOrSkewingX=function(t,e,i,r){return t[e.target.canvas.altActionKey]?n.skewHandlerX(t,e,i,r):n.scalingY(t,e,i,r)},n.scalingXOrSkewingY=function(t,e,i,r){return t[e.target.canvas.altActionKey]?n.skewHandlerY(t,e,i,r):n.scalingX(t,e,i,r)},n.changeWidth=b(\\\"resizing\\\",_((function(t,e,i,r){var n=e.target,o=x(e,e.originX,e.originY,i,r),s=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=v(e)?2:1,h=n.width,c=Math.abs(o.x*a/n.scaleX)-s;return n.set(\\\"width\\\",Math.max(c,0)),h!==c}))),n.skewHandlerX=function(t,e,i,r){var n,h=e.target,l=h.skewX,u=e.originY;return!h.lockSkewingX\\u0026\\u0026(0===l?n=x(e,c,c,i,r).x\\u003e0?o:a:(l\\u003e0\\u0026\\u0026(n=u===s?o:a),l\\u003c0\\u0026\\u0026(n=u===s?a:o),C(h)\\u0026\\u0026(n=n===o?a:o)),e.originX=n,b(\\\"skewing\\\",_(S))(t,e,i,r))},n.skewHandlerY=function(t,e,i,r){var n,a=e.target,l=a.skewY,u=e.originX;return!a.lockSkewingY\\u0026\\u0026(0===l?n=x(e,c,c,i,r).y\\u003e0?s:h:(l\\u003e0\\u0026\\u0026(n=u===o?s:h),l\\u003c0\\u0026\\u0026(n=u===o?h:s),C(a)\\u0026\\u0026(n=n===s?h:s)),e.originY=n,b(\\\"skewing\\\",_(T))(t,e,i,r))},n.dragHandler=function(t,e,i,r){var n=e.target,o=i-e.offsetX,s=r-e.offsetY,a=!n.get(\\\"lockMovementX\\\")\\u0026\\u0026n.left!==o,h=!n.get(\\\"lockMovementY\\\")\\u0026\\u0026n.top!==s;return a\\u0026\\u0026n.set(\\\"left\\\",o),h\\u0026\\u0026n.set(\\\"top\\\",s),(a||h)\\u0026\\u0026g(\\\"moving\\\",y(t,e,i,r)),a||h},n.scaleOrSkewActionName=function(t,e,i){var r=t[i.canvas.altActionKey];return 0===e.x?r?\\\"skewX\\\":\\\"scaleY\\\":0===e.y?r?\\\"skewY\\\":\\\"scaleX\\\":void 0},n.rotationStyleHandler=function(t,e,i){return i.lockRotation?\\\"not-allowed\\\":e.cursorStyle},n.fireEvent=g,n.wrapWithFixedAnchor=_,n.wrapWithFireEvent=b,n.getLocalPoint=x,e.controlsUtils=n}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.degreesToRadians,r=e.controlsUtils;r.renderCircleControl=function(t,e,i,r,n){r=r||{};var o,s=this.sizeX||r.cornerSize||n.cornerSize,a=this.sizeY||r.cornerSize||n.cornerSize,h=void 0!==r.transparentCorners?r.transparentCorners:n.transparentCorners,c=h?\\\"stroke\\\":\\\"fill\\\",l=!h\\u0026\\u0026(r.cornerStrokeColor||n.cornerStrokeColor),u=e,f=i;t.save(),t.fillStyle=r.cornerColor||n.cornerColor,t.strokeStyle=r.cornerStrokeColor||n.cornerStrokeColor,s\\u003ea?(o=s,t.scale(1,a/s),f=i*s/a):a\\u003es?(o=a,t.scale(s/a,1),u=e*a/s):o=s,t.lineWidth=1,t.beginPath(),t.arc(u,f,o/2,0,2*Math.PI,!1),t[c](),l\\u0026\\u0026t.stroke(),t.restore()},r.renderSquareControl=function(t,e,r,n,o){n=n||{};var s=this.sizeX||n.cornerSize||o.cornerSize,a=this.sizeY||n.cornerSize||o.cornerSize,h=void 0!==n.transparentCorners?n.transparentCorners:o.transparentCorners,c=h?\\\"stroke\\\":\\\"fill\\\",l=!h\\u0026\\u0026(n.cornerStrokeColor||o.cornerStrokeColor),u=s/2,f=a/2;t.save(),t.fillStyle=n.cornerColor||o.cornerColor,t.strokeStyle=n.cornerStrokeColor||o.cornerStrokeColor,t.lineWidth=1,t.translate(e,r),t.rotate(i(o.angle)),t[c+\\\"Rect\\\"](-u,-f,s,a),l\\u0026\\u0026t.strokeRect(-u,-f,s,a),t.restore()}}(t),function(t){var e=t.fabric||(t.fabric={});e.Control=function(t){for(var e in t)this[e]=t[e]},e.Control.prototype={visible:!0,actionName:\\\"scale\\\",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:\\\"crosshair\\\",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(t,e){return e.cursorStyle},getActionName:function(t,e){return e.actionName},getVisibility:function(t,e){var i=t._controlsVisibility;return i\\u0026\\u0026void 0!==i[e]?i[e]:this.visible},setVisibility:function(t){this.visible=t},positionHandler:function(t,i){return e.util.transformPoint({x:this.x*t.x+this.offsetX,y:this.y*t.y+this.offsetY},i)},calcCornerCoords:function(t,i,r,n,o){var s,a,h,c,l=o?this.touchSizeX:this.sizeX,u=o?this.touchSizeY:this.sizeY;if(l\\u0026\\u0026u\\u0026\\u0026l!==u){var f=Math.atan2(u,l),d=Math.sqrt(l*l+u*u)/2,g=f-e.util.degreesToRadians(t),p=Math.PI/2-f-e.util.degreesToRadians(t);s=d*e.util.cos(g),a=d*e.util.sin(g),h=d*e.util.cos(p),c=d*e.util.sin(p)}else{d=.7071067812*(l\\u0026\\u0026u?l:i);g=e.util.degreesToRadians(45-t);s=h=d*e.util.cos(g),a=c=d*e.util.sin(g)}return{tl:{x:r-c,y:n-h},tr:{x:r+s,y:n-a},bl:{x:r-s,y:n+a},br:{x:r+c,y:n+h}}},render:function(t,i,r,n,o){if(\\\"circle\\\"===((n=n||{}).cornerStyle||o.cornerStyle))e.controlsUtils.renderCircleControl.call(this,t,i,r,n,o);else e.controlsUtils.renderSquareControl.call(this,t,i,r,n,o)}}}(t),function(){function t(t,e){var i,r,n,o,s=t.getAttribute(\\\"style\\\"),a=t.getAttribute(\\\"offset\\\")||0;if(a=(a=parseFloat(a)/(/%$/.test(a)?100:1))\\u003c0?0:a\\u003e1?1:a,s){var h=s.split(/\\\\s*;\\\\s*/);for(\\\"\\\"===h[h.length-1]\\u0026\\u0026h.pop(),o=h.length;o--;){var c=h[o].split(/\\\\s*:\\\\s*/),l=c[0].trim(),u=c[1].trim();\\\"stop-color\\\"===l?i=u:\\\"stop-opacity\\\"===l\\u0026\\u0026(n=u)}}return i||(i=t.getAttribute(\\\"stop-color\\\")||\\\"rgb(0,0,0)\\\"),n||(n=t.getAttribute(\\\"stop-opacity\\\")),r=(i=new T.Color(i)).getAlpha(),n=isNaN(parseFloat(n))?1:parseFloat(n),n*=r*e,{offset:a,color:i.toRgb(),opacity:n}}var e=T.util.object.clone;T.Gradient=T.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:\\\"pixels\\\",type:\\\"linear\\\",initialize:function(t){t||(t={}),t.coords||(t.coords={});var e,i=this;Object.keys(t).forEach((function(e){i[e]=t[e]})),this.id?this.id+=\\\"_\\\"+T.Object.__uid++:this.id=T.Object.__uid++,e={x1:t.coords.x1||0,y1:t.coords.y1||0,x2:t.coords.x2||0,y2:t.coords.y2||0},\\\"radial\\\"===this.type\\u0026\\u0026(e.r1=t.coords.r1||0,e.r2=t.coords.r2||0),this.coords=e,this.colorStops=t.colorStops.slice()},addColorStop:function(t){for(var e in t){var i=new T.Color(t[e]);this.colorStops.push({offset:parseFloat(e),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(t){var e={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return T.util.populateWithProperties(this,e,t),e},toSVG:function(t,i){var r,n,o,s,a=e(this.coords,!0),h=(i=i||{},e(this.colorStops,!0)),c=a.r1\\u003ea.r2,l=this.gradientTransform?this.gradientTransform.concat():T.iMatrix.concat(),u=-this.offsetX,f=-this.offsetY,d=!!i.additionalTransform,g=\\\"pixels\\\"===this.gradientUnits?\\\"userSpaceOnUse\\\":\\\"objectBoundingBox\\\";if(h.sort((function(t,e){return t.offset-e.offset})),\\\"objectBoundingBox\\\"===g?(u/=t.width,f/=t.height):(u+=t.width/2,f+=t.height/2),\\\"path\\\"===t.type\\u0026\\u0026\\\"percentage\\\"!==this.gradientUnits\\u0026\\u0026(u-=t.pathOffset.x,f-=t.pathOffset.y),l[4]-=u,l[5]-=f,s='id=\\\"SVGID_'+this.id+'\\\" gradientUnits=\\\"'+g+'\\\"',s+=' gradientTransform=\\\"'+(d?i.additionalTransform+\\\" \\\":\\\"\\\")+T.util.matrixToSVG(l)+'\\\" ',\\\"linear\\\"===this.type?o=[\\\"\\u003clinearGradient \\\",s,' x1=\\\"',a.x1,'\\\" y1=\\\"',a.y1,'\\\" x2=\\\"',a.x2,'\\\" y2=\\\"',a.y2,'\\\"\\u003e\\\\n']:\\\"radial\\\"===this.type\\u0026\\u0026(o=[\\\"\\u003cradialGradient \\\",s,' cx=\\\"',c?a.x1:a.x2,'\\\" cy=\\\"',c?a.y1:a.y2,'\\\" r=\\\"',c?a.r1:a.r2,'\\\" fx=\\\"',c?a.x2:a.x1,'\\\" fy=\\\"',c?a.y2:a.y1,'\\\"\\u003e\\\\n']),\\\"radial\\\"===this.type){if(c)for((h=h.concat()).reverse(),r=0,n=h.length;r\\u003cn;r++)h[r].offset=1-h[r].offset;var p=Math.min(a.r1,a.r2);if(p\\u003e0){var v=p/Math.max(a.r1,a.r2);for(r=0,n=h.length;r\\u003cn;r++)h[r].offset+=v*(1-h[r].offset)}}for(r=0,n=h.length;r\\u003cn;r++){var m=h[r];o.push(\\\"\\u003cstop \\\",'offset=\\\"',100*m.offset+\\\"%\\\",'\\\" style=\\\"stop-color:',m.color,void 0!==m.opacity?\\\";stop-opacity: \\\"+m.opacity:\\\";\\\",'\\\"/\\u003e\\\\n')}return o.push(\\\"linear\\\"===this.type?\\\"\\u003c/linearGradient\\u003e\\\\n\\\":\\\"\\u003c/radialGradient\\u003e\\\\n\\\"),o.join(\\\"\\\")},toLive:function(t){var e,i,r,n=T.util.object.clone(this.coords);if(this.type){for(\\\"linear\\\"===this.type?e=t.createLinearGradient(n.x1,n.y1,n.x2,n.y2):\\\"radial\\\"===this.type\\u0026\\u0026(e=t.createRadialGradient(n.x1,n.y1,n.r1,n.x2,n.y2,n.r2)),i=0,r=this.colorStops.length;i\\u003cr;i++){var o=this.colorStops[i].color,s=this.colorStops[i].opacity,a=this.colorStops[i].offset;void 0!==s\\u0026\\u0026(o=new T.Color(o).setAlpha(s).toRgba()),e.addColorStop(a,o)}return e}}}),T.util.object.extend(T.Gradient,{fromElement:function(e,i,r,n){var o=parseFloat(r)/(/%$/.test(r)?100:1);o=o\\u003c0?0:o\\u003e1?1:o,isNaN(o)\\u0026\\u0026(o=1);var s,a,h,c,l=e.getElementsByTagName(\\\"stop\\\"),u=\\\"userSpaceOnUse\\\"===e.getAttribute(\\\"gradientUnits\\\")?\\\"pixels\\\":\\\"percentage\\\",f=e.getAttribute(\\\"gradientTransform\\\")||\\\"\\\",d=[],g=0,p=0;for(\\\"linearGradient\\\"===e.nodeName||\\\"LINEARGRADIENT\\\"===e.nodeName?(s=\\\"linear\\\",a=function(t){return{x1:t.getAttribute(\\\"x1\\\")||0,y1:t.getAttribute(\\\"y1\\\")||0,x2:t.getAttribute(\\\"x2\\\")||\\\"100%\\\",y2:t.getAttribute(\\\"y2\\\")||0}}(e)):(s=\\\"radial\\\",a=function(t){return{x1:t.getAttribute(\\\"fx\\\")||t.getAttribute(\\\"cx\\\")||\\\"50%\\\",y1:t.getAttribute(\\\"fy\\\")||t.getAttribute(\\\"cy\\\")||\\\"50%\\\",r1:0,x2:t.getAttribute(\\\"cx\\\")||\\\"50%\\\",y2:t.getAttribute(\\\"cy\\\")||\\\"50%\\\",r2:t.getAttribute(\\\"r\\\")||\\\"50%\\\"}}(e)),h=l.length;h--;)d.push(t(l[h],o));return c=T.parseTransformAttribute(f),function(t,e,i,r){var n,o;Object.keys(e).forEach((function(t){\\\"Infinity\\\"===(n=e[t])?o=1:\\\"-Infinity\\\"===n?o=0:(o=parseFloat(e[t],10),\\\"string\\\"==typeof n\\u0026\\u0026/^(\\\\d+\\\\.\\\\d+)%|(\\\\d+)%$/.test(n)\\u0026\\u0026(o*=.01,\\\"pixels\\\"===r\\u0026\\u0026(\\\"x1\\\"!==t\\u0026\\u0026\\\"x2\\\"!==t\\u0026\\u0026\\\"r2\\\"!==t||(o*=i.viewBoxWidth||i.width),\\\"y1\\\"!==t\\u0026\\u0026\\\"y2\\\"!==t||(o*=i.viewBoxHeight||i.height)))),e[t]=o}))}(0,a,n,u),\\\"pixels\\\"===u\\u0026\\u0026(g=-i.left,p=-i.top),new T.Gradient({id:e.getAttribute(\\\"id\\\"),type:s,coords:a,colorStops:d,gradientUnits:u,gradientTransform:c,offsetX:g,offsetY:p})}})}(),_=T.util.toFixed,T.Pattern=T.util.createClass({repeat:\\\"repeat\\\",offsetX:0,offsetY:0,crossOrigin:\\\"\\\",patternTransform:null,initialize:function(t,e){if(t||(t={}),this.id=T.Object.__uid++,this.setOptions(t),!t.source||t.source\\u0026\\u0026\\\"string\\\"!=typeof t.source)e\\u0026\\u0026e(this);else{var i=this;this.source=T.util.createImage(),T.util.loadImage(t.source,(function(t,r){i.source=t,e\\u0026\\u0026e(i,r)}),null,this.crossOrigin)}},toObject:function(t){var e,i,r=T.Object.NUM_FRACTION_DIGITS;return\\\"string\\\"==typeof this.source.src?e=this.source.src:\\\"object\\\"==typeof this.source\\u0026\\u0026this.source.toDataURL\\u0026\\u0026(e=this.source.toDataURL()),i={type:\\\"pattern\\\",source:e,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:_(this.offsetX,r),offsetY:_(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},T.util.populateWithProperties(this,i,t),i},toSVG:function(t){var e=\\\"function\\\"==typeof this.source?this.source():this.source,i=e.width/t.width,r=e.height/t.height,n=this.offsetX/t.width,o=this.offsetY/t.height,s=\\\"\\\";return\\\"repeat-x\\\"!==this.repeat\\u0026\\u0026\\\"no-repeat\\\"!==this.repeat||(r=1,o\\u0026\\u0026(r+=Math.abs(o))),\\\"repeat-y\\\"!==this.repeat\\u0026\\u0026\\\"no-repeat\\\"!==this.repeat||(i=1,n\\u0026\\u0026(i+=Math.abs(n))),e.src?s=e.src:e.toDataURL\\u0026\\u0026(s=e.toDataURL()),'\\u003cpattern id=\\\"SVGID_'+this.id+'\\\" x=\\\"'+n+'\\\" y=\\\"'+o+'\\\" width=\\\"'+i+'\\\" height=\\\"'+r+'\\\"\\u003e\\\\n\\u003cimage x=\\\"0\\\" y=\\\"0\\\" width=\\\"'+e.width+'\\\" height=\\\"'+e.height+'\\\" xlink:href=\\\"'+s+'\\\"\\u003e\\u003c/image\\u003e\\\\n\\u003c/pattern\\u003e\\\\n'},setOptions:function(t){for(var e in t)this[e]=t[e]},toLive:function(t){var e=this.source;if(!e)return\\\"\\\";if(void 0!==e.src){if(!e.complete)return\\\"\\\";if(0===e.naturalWidth||0===e.naturalHeight)return\\\"\\\"}return t.createPattern(e,this.repeat)}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.toFixed;e.Shadow?e.warn(\\\"fabric.Shadow is already defined.\\\"):(e.Shadow=e.util.createClass({color:\\\"rgb(0,0,0)\\\",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(t){for(var i in\\\"string\\\"==typeof t\\u0026\\u0026(t=this._parseShadow(t)),t)this[i]=t[i];this.id=e.Object.__uid++},_parseShadow:function(t){var i=t.trim(),r=e.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(e.Shadow.reOffsetsAndBlur,\\\"\\\")||\\\"rgb(0,0,0)\\\").trim(),offsetX:parseFloat(r[1],10)||0,offsetY:parseFloat(r[2],10)||0,blur:parseFloat(r[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join(\\\"px \\\")},toSVG:function(t){var r=40,n=40,o=e.Object.NUM_FRACTION_DIGITS,s=e.util.rotateVector({x:this.offsetX,y:this.offsetY},e.util.degreesToRadians(-t.angle)),a=new e.Color(this.color);return t.width\\u0026\\u0026t.height\\u0026\\u0026(r=100*i((Math.abs(s.x)+this.blur)/t.width,o)+20,n=100*i((Math.abs(s.y)+this.blur)/t.height,o)+20),t.flipX\\u0026\\u0026(s.x*=-1),t.flipY\\u0026\\u0026(s.y*=-1),'\\u003cfilter id=\\\"SVGID_'+this.id+'\\\" y=\\\"-'+n+'%\\\" height=\\\"'+(100+2*n)+'%\\\" x=\\\"-'+r+'%\\\" width=\\\"'+(100+2*r)+'%\\\" \\u003e\\\\n\\\\t\\u003cfeGaussianBlur in=\\\"SourceAlpha\\\" stdDeviation=\\\"'+i(this.blur?this.blur/2:0,o)+'\\\"\\u003e\\u003c/feGaussianBlur\\u003e\\\\n\\\\t\\u003cfeOffset dx=\\\"'+i(s.x,o)+'\\\" dy=\\\"'+i(s.y,o)+'\\\" result=\\\"oBlur\\\" \\u003e\\u003c/feOffset\\u003e\\\\n\\\\t\\u003cfeFlood flood-color=\\\"'+a.toRgb()+'\\\" flood-opacity=\\\"'+a.getAlpha()+'\\\"/\\u003e\\\\n\\\\t\\u003cfeComposite in2=\\\"oBlur\\\" operator=\\\"in\\\" /\\u003e\\\\n\\\\t\\u003cfeMerge\\u003e\\\\n\\\\t\\\\t\\u003cfeMergeNode\\u003e\\u003c/feMergeNode\\u003e\\\\n\\\\t\\\\t\\u003cfeMergeNode in=\\\"SourceGraphic\\\"\\u003e\\u003c/feMergeNode\\u003e\\\\n\\\\t\\u003c/feMerge\\u003e\\\\n\\u003c/filter\\u003e\\\\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var t={},i=e.Shadow.prototype;return[\\\"color\\\",\\\"blur\\\",\\\"offsetX\\\",\\\"offsetY\\\",\\\"affectStroke\\\",\\\"nonScaling\\\"].forEach((function(e){this[e]!==i[e]\\u0026\\u0026(t[e]=this[e])}),this),t}}),e.Shadow.reOffsetsAndBlur=/(?:\\\\s|^)(-?\\\\d+(?:\\\\.\\\\d*)?(?:px)?(?:\\\\s?|$))?(-?\\\\d+(?:\\\\.\\\\d*)?(?:px)?(?:\\\\s?|$))?(\\\\d+(?:\\\\.\\\\d*)?(?:px)?)?(?:\\\\s?|$)(?:$|\\\\s)/)}(t),function(){if(T.StaticCanvas)T.warn(\\\"fabric.StaticCanvas is already defined.\\\");else{var t=T.util.object.extend,e=T.util.getElementOffset,i=T.util.removeFromArray,r=T.util.toFixed,n=T.util.transformPoint,o=T.util.invertTransform,s=T.util.getNodeCanvas,a=T.util.createCanvasElement,h=new Error(\\\"Could not initialize `canvas` element\\\");T.StaticCanvas=T.util.createClass(T.CommonMethods,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e)},backgroundColor:\\\"\\\",backgroundImage:null,overlayColor:\\\"\\\",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:T.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(t,e){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(t),this._initOptions(e),this.interactive||this._initRetinaScaling(),e.overlayImage\\u0026\\u0026this.setOverlayImage(e.overlayImage,i),e.backgroundImage\\u0026\\u0026this.setBackgroundImage(e.backgroundImage,i),e.backgroundColor\\u0026\\u0026this.setBackgroundColor(e.backgroundColor,i),e.overlayColor\\u0026\\u0026this.setOverlayColor(e.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return 1!==T.devicePixelRatio\\u0026\\u0026this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?T.devicePixelRatio:1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var t=T.devicePixelRatio;this.__initRetinaScaling(t,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl\\u0026\\u0026this.__initRetinaScaling(t,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(t,e,i){e.setAttribute(\\\"width\\\",this.width*t),e.setAttribute(\\\"height\\\",this.height*t),i.scale(t,t)},calcOffset:function(){return this._offset=e(this.lowerCanvasEl),this},setOverlayImage:function(t,e,i){return this.__setBgOverlayImage(\\\"overlayImage\\\",t,e,i)},setBackgroundImage:function(t,e,i){return this.__setBgOverlayImage(\\\"backgroundImage\\\",t,e,i)},setOverlayColor:function(t,e){return this.__setBgOverlayColor(\\\"overlayColor\\\",t,e)},setBackgroundColor:function(t,e){return this.__setBgOverlayColor(\\\"backgroundColor\\\",t,e)},__setBgOverlayImage:function(t,e,i,r){return\\\"string\\\"==typeof e?T.util.loadImage(e,(function(e,n){if(e){var o=new T.Image(e,r);this[t]=o,o.canvas=this}i\\u0026\\u0026i(e,n)}),this,r\\u0026\\u0026r.crossOrigin):(r\\u0026\\u0026e.setOptions(r),this[t]=e,e\\u0026\\u0026(e.canvas=this),i\\u0026\\u0026i(e,!1)),this},__setBgOverlayColor:function(t,e,i){return this[t]=e,this._initGradient(e,t),this._initPattern(e,t,i),this},_createCanvasElement:function(){var t=a();if(!t)throw h;if(t.style||(t.style={}),void 0===t.getContext)throw h;return t},_initOptions:function(t){var e=this.lowerCanvasEl;this._setOptions(t),this.width=this.width||parseInt(e.width,10)||0,this.height=this.height||parseInt(e.height,10)||0,this.lowerCanvasEl.style\\u0026\\u0026(e.width=this.width,e.height=this.height,e.style.width=this.width+\\\"px\\\",e.style.height=this.height+\\\"px\\\",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(t){t\\u0026\\u0026t.getContext?this.lowerCanvasEl=t:this.lowerCanvasEl=T.util.getById(t)||this._createCanvasElement(),T.util.addClass(this.lowerCanvasEl,\\\"lower-canvas\\\"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive\\u0026\\u0026this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext(\\\"2d\\\")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(t,e){return this.setDimensions({width:t},e)},setHeight:function(t,e){return this.setDimensions({height:t},e)},setDimensions:function(t,e){var i;for(var r in e=e||{},t)i=t[r],e.cssOnly||(this._setBackstoreDimension(r,t[r]),i+=\\\"px\\\",this.hasLostContext=!0),e.backstoreOnly||this._setCssDimension(r,i);return this._isCurrentlyDrawing\\u0026\\u0026this.freeDrawingBrush\\u0026\\u0026this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this.calcOffset(),e.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(t,e){return this.lowerCanvasEl[t]=e,this.upperCanvasEl\\u0026\\u0026(this.upperCanvasEl[t]=e),this.cacheCanvasEl\\u0026\\u0026(this.cacheCanvasEl[t]=e),this[t]=e,this},_setCssDimension:function(t,e){return this.lowerCanvasEl.style[t]=e,this.upperCanvasEl\\u0026\\u0026(this.upperCanvasEl.style[t]=e),this.wrapperEl\\u0026\\u0026(this.wrapperEl.style[t]=e),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(t){var e,i,r,n=this._activeObject,o=this.backgroundImage,s=this.overlayImage;for(this.viewportTransform=t,i=0,r=this._objects.length;i\\u003cr;i++)(e=this._objects[i]).group||e.setCoords(!0);return n\\u0026\\u0026n.setCoords(),o\\u0026\\u0026o.setCoords(!0),s\\u0026\\u0026s.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},zoomToPoint:function(t,e){var i=t,r=this.viewportTransform.slice(0);t=n(t,o(this.viewportTransform)),r[0]=e,r[3]=e;var s=n(t,r);return r[4]+=i.x-s.x,r[5]+=i.y-s.y,this.setViewportTransform(r)},setZoom:function(t){return this.zoomToPoint(new T.Point(0,0),t),this},absolutePan:function(t){var e=this.viewportTransform.slice(0);return e[4]=-t.x,e[5]=-t.y,this.setViewportTransform(e)},relativePan:function(t){return this.absolutePan(new T.Point(-t.x-this.viewportTransform[4],-t.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(t){this.stateful\\u0026\\u0026t.setupState(),t._set(\\\"canvas\\\",this),t.setCoords(),this.fire(\\\"object:added\\\",{target:t}),t.fire(\\\"added\\\")},_onObjectRemoved:function(t){this.fire(\\\"object:removed\\\",{target:t}),t.fire(\\\"removed\\\"),delete t.canvas},clearContext:function(t){return t.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor=\\\"\\\",this.overlayColor=\\\"\\\",this._hasITextHandlers\\u0026\\u0026(this.off(\\\"mouse:up\\\",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire(\\\"canvas:cleared\\\"),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},renderAll:function(){var t=this.contextContainer;return this.renderCanvas(t,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=T.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var t={},e=this.width,i=this.height,r=o(this.viewportTransform);return t.tl=n({x:0,y:0},r),t.br=n({x:e,y:i},r),t.tr=new T.Point(t.br.x,t.tl.y),t.bl=new T.Point(t.tl.x,t.br.y),this.vptCoords=t,t},cancelRequestedRender:function(){this.isRendering\\u0026\\u0026(T.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(t,e){var i=this.viewportTransform,r=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(t),T.util.setImageSmoothing(t,this.imageSmoothingEnabled),this.fire(\\\"before:render\\\",{ctx:t}),this._renderBackground(t),t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(t,e),t.restore(),!this.controlsAboveOverlay\\u0026\\u0026this.interactive\\u0026\\u0026this.drawControls(t),r\\u0026\\u0026(r.canvas=this,r.shouldCache(),r._transformDone=!0,r.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(t)),this._renderOverlay(t),this.controlsAboveOverlay\\u0026\\u0026this.interactive\\u0026\\u0026this.drawControls(t),this.fire(\\\"after:render\\\",{ctx:t})},drawClipPathOnCanvas:function(t){var e=this.viewportTransform,i=this.clipPath;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t.globalCompositeOperation=\\\"destination-in\\\",i.transform(t),t.scale(1/i.zoomX,1/i.zoomY),t.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),t.restore()},_renderObjects:function(t,e){var i,r;for(i=0,r=e.length;i\\u003cr;++i)e[i]\\u0026\\u0026e[i].render(t)},_renderBackgroundOrOverlay:function(t,e){var i=this[e+\\\"Color\\\"],r=this[e+\\\"Image\\\"],n=this.viewportTransform,o=this[e+\\\"Vpt\\\"];if(i||r){if(i){t.save(),t.beginPath(),t.moveTo(0,0),t.lineTo(this.width,0),t.lineTo(this.width,this.height),t.lineTo(0,this.height),t.closePath(),t.fillStyle=i.toLive?i.toLive(t,this):i,o\\u0026\\u0026t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var s=i.gradientTransform||i.patternTransform;s\\u0026\\u0026t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),t.fill(),t.restore()}r\\u0026\\u0026(t.save(),o\\u0026\\u0026t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),r.render(t),t.restore())}},_renderBackground:function(t){this._renderBackgroundOrOverlay(t,\\\"background\\\")},_renderOverlay:function(t){this._renderBackgroundOrOverlay(t,\\\"overlay\\\")},getCenter:function(){return{top:this.height/2,left:this.width/2}},centerObjectH:function(t){return this._centerObject(t,new T.Point(this.getCenter().left,t.getCenterPoint().y))},centerObjectV:function(t){return this._centerObject(t,new T.Point(t.getCenterPoint().x,this.getCenter().top))},centerObject:function(t){var e=this.getCenter();return this._centerObject(t,new T.Point(e.left,e.top))},viewportCenterObject:function(t){var e=this.getVpCenter();return this._centerObject(t,e)},viewportCenterObjectH:function(t){var e=this.getVpCenter();return this._centerObject(t,new T.Point(e.x,t.getCenterPoint().y)),this},viewportCenterObjectV:function(t){var e=this.getVpCenter();return this._centerObject(t,new T.Point(t.getCenterPoint().x,e.y))},getVpCenter:function(){var t=this.getCenter(),e=o(this.viewportTransform);return n({x:t.left,y:t.top},e)},_centerObject:function(t,e){return t.setPositionByOrigin(e,\\\"center\\\",\\\"center\\\"),t.setCoords(),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},toDatalessJSON:function(t){return this.toDatalessObject(t)},toObject:function(t){return this._toObjectMethod(\\\"toObject\\\",t)},toDatalessObject:function(t){return this._toObjectMethod(\\\"toDatalessObject\\\",t)},_toObjectMethod:function(e,i){var r=this.clipPath,n={version:T.version,objects:this._toObjects(e,i)};return r\\u0026\\u0026!r.excludeFromExport\\u0026\\u0026(n.clipPath=this._toObject(this.clipPath,e,i)),t(n,this.__serializeBgOverlay(e,i)),T.util.populateWithProperties(this,n,i),n},_toObjects:function(t,e){return this._objects.filter((function(t){return!t.excludeFromExport})).map((function(i){return this._toObject(i,t,e)}),this)},_toObject:function(t,e,i){var r;this.includeDefaultValues||(r=t.includeDefaultValues,t.includeDefaultValues=!1);var n=t[e](i);return this.includeDefaultValues||(t.includeDefaultValues=r),n},__serializeBgOverlay:function(t,e){var i={},r=this.backgroundImage,n=this.overlayImage,o=this.backgroundColor,s=this.overlayColor;return o\\u0026\\u0026o.toObject?o.excludeFromExport||(i.background=o.toObject(e)):o\\u0026\\u0026(i.background=o),s\\u0026\\u0026s.toObject?s.excludeFromExport||(i.overlay=s.toObject(e)):s\\u0026\\u0026(i.overlay=s),r\\u0026\\u0026!r.excludeFromExport\\u0026\\u0026(i.backgroundImage=this._toObject(r,t,e)),n\\u0026\\u0026!n.excludeFromExport\\u0026\\u0026(i.overlayImage=this._toObject(n,t,e)),i},svgViewportTransformation:!0,toSVG:function(t,e){t||(t={}),t.reviver=e;var i=[];return this._setSVGPreamble(i,t),this._setSVGHeader(i,t),this.clipPath\\u0026\\u0026i.push('\\u003cg clip-path=\\\"url(#'+this.clipPath.clipPathId+')\\\" \\u003e\\\\n'),this._setSVGBgOverlayColor(i,\\\"background\\\"),this._setSVGBgOverlayImage(i,\\\"backgroundImage\\\",e),this._setSVGObjects(i,e),this.clipPath\\u0026\\u0026i.push(\\\"\\u003c/g\\u003e\\\\n\\\"),this._setSVGBgOverlayColor(i,\\\"overlay\\\"),this._setSVGBgOverlayImage(i,\\\"overlayImage\\\",e),i.push(\\\"\\u003c/svg\\u003e\\\"),i.join(\\\"\\\")},_setSVGPreamble:function(t,e){e.suppressPreamble||t.push('\\u003c?xml version=\\\"1.0\\\" encoding=\\\"',e.encoding||\\\"UTF-8\\\",'\\\" standalone=\\\"no\\\" ?\\u003e\\\\n','\\u003c!DOCTYPE svg PUBLIC \\\"-//W3C//DTD SVG 1.1//EN\\\" ','\\\"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\\\"\\u003e\\\\n')},_setSVGHeader:function(t,e){var i,n=e.width||this.width,o=e.height||this.height,s='viewBox=\\\"0 0 '+this.width+\\\" \\\"+this.height+'\\\" ',a=T.Object.NUM_FRACTION_DIGITS;e.viewBox?s='viewBox=\\\"'+e.viewBox.x+\\\" \\\"+e.viewBox.y+\\\" \\\"+e.viewBox.width+\\\" \\\"+e.viewBox.height+'\\\" ':this.svgViewportTransformation\\u0026\\u0026(i=this.viewportTransform,s='viewBox=\\\"'+r(-i[4]/i[0],a)+\\\" \\\"+r(-i[5]/i[3],a)+\\\" \\\"+r(this.width/i[0],a)+\\\" \\\"+r(this.height/i[3],a)+'\\\" '),t.push(\\\"\\u003csvg \\\",'xmlns=\\\"http://www.w3.org/2000/svg\\\" ','xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" ','version=\\\"1.1\\\" ','width=\\\"',n,'\\\" ','height=\\\"',o,'\\\" ',s,'xml:space=\\\"preserve\\\"\\u003e\\\\n',\\\"\\u003cdesc\\u003eCreated with Fabric.js \\\",T.version,\\\"\\u003c/desc\\u003e\\\\n\\\",\\\"\\u003cdefs\\u003e\\\\n\\\",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(e),\\\"\\u003c/defs\\u003e\\\\n\\\")},createSVGClipPathMarkup:function(t){var e=this.clipPath;return e?(e.clipPathId=\\\"CLIPPATH_\\\"+T.Object.__uid++,'\\u003cclipPath id=\\\"'+e.clipPathId+'\\\" \\u003e\\\\n'+this.clipPath.toClipPathSVG(t.reviver)+\\\"\\u003c/clipPath\\u003e\\\\n\\\"):\\\"\\\"},createSVGRefElementsMarkup:function(){var t=this;return[\\\"background\\\",\\\"overlay\\\"].map((function(e){var i=t[e+\\\"Color\\\"];if(i\\u0026\\u0026i.toLive){var r=t[e+\\\"Vpt\\\"],n=t.viewportTransform,o={width:t.width/(r?n[0]:1),height:t.height/(r?n[3]:1)};return i.toSVG(o,{additionalTransform:r?T.util.matrixToSVG(n):\\\"\\\"})}})).join(\\\"\\\")},createSVGFontFacesMarkup:function(){var t,e,i,r,n,o,s,a,h=\\\"\\\",c={},l=T.fontPaths,u=[];for(this._objects.forEach((function t(e){u.push(e),e._objects\\u0026\\u0026e._objects.forEach(t)})),s=0,a=u.length;s\\u003ca;s++)if(e=(t=u[s]).fontFamily,-1!==t.type.indexOf(\\\"text\\\")\\u0026\\u0026!c[e]\\u0026\\u0026l[e]\\u0026\\u0026(c[e]=!0,t.styles))for(n in i=t.styles)for(o in r=i[n])!c[e=r[o].fontFamily]\\u0026\\u0026l[e]\\u0026\\u0026(c[e]=!0);for(var f in c)h+=[\\\"\\\\t\\\\t@font-face {\\\\n\\\",\\\"\\\\t\\\\t\\\\tfont-family: '\\\",f,\\\"';\\\\n\\\",\\\"\\\\t\\\\t\\\\tsrc: url('\\\",l[f],\\\"');\\\\n\\\",\\\"\\\\t\\\\t}\\\\n\\\"].join(\\\"\\\");return h\\u0026\\u0026(h=['\\\\t\\u003cstyle type=\\\"text/css\\\"\\u003e',\\\"\\u003c![CDATA[\\\\n\\\",h,\\\"]]\\u003e\\\",\\\"\\u003c/style\\u003e\\\\n\\\"].join(\\\"\\\")),h},_setSVGObjects:function(t,e){var i,r,n,o=this._objects;for(r=0,n=o.length;r\\u003cn;r++)(i=o[r]).excludeFromExport||this._setSVGObject(t,i,e)},_setSVGObject:function(t,e,i){t.push(e.toSVG(i))},_setSVGBgOverlayImage:function(t,e,i){this[e]\\u0026\\u0026!this[e].excludeFromExport\\u0026\\u0026this[e].toSVG\\u0026\\u0026t.push(this[e].toSVG(i))},_setSVGBgOverlayColor:function(t,e){var i=this[e+\\\"Color\\\"],r=this.viewportTransform,n=this.width,o=this.height;if(i)if(i.toLive){var s=i.repeat,a=T.util.invertTransform(r),h=this[e+\\\"Vpt\\\"]?T.util.matrixToSVG(a):\\\"\\\";t.push('\\u003crect transform=\\\"'+h+\\\" translate(\\\",n/2,\\\",\\\",o/2,')\\\"',' x=\\\"',i.offsetX-n/2,'\\\" y=\\\"',i.offsetY-o/2,'\\\" ','width=\\\"',\\\"repeat-y\\\"===s||\\\"no-repeat\\\"===s?i.source.width:n,'\\\" height=\\\"',\\\"repeat-x\\\"===s||\\\"no-repeat\\\"===s?i.source.height:o,'\\\" fill=\\\"url(#SVGID_'+i.id+')\\\"',\\\"\\u003e\\u003c/rect\\u003e\\\\n\\\")}else t.push('\\u003crect x=\\\"0\\\" y=\\\"0\\\" width=\\\"100%\\\" height=\\\"100%\\\" ','fill=\\\"',i,'\\\"',\\\"\\u003e\\u003c/rect\\u003e\\\\n\\\")},sendToBack:function(t){if(!t)return this;var e,r,n,o=this._activeObject;if(t===o\\u0026\\u0026\\\"activeSelection\\\"===t.type)for(e=(n=o._objects).length;e--;)r=n[e],i(this._objects,r),this._objects.unshift(r);else i(this._objects,t),this._objects.unshift(t);return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},bringToFront:function(t){if(!t)return this;var e,r,n,o=this._activeObject;if(t===o\\u0026\\u0026\\\"activeSelection\\\"===t.type)for(n=o._objects,e=0;e\\u003cn.length;e++)r=n[e],i(this._objects,r),this._objects.push(r);else i(this._objects,t),this._objects.push(t);return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},sendBackwards:function(t,e){if(!t)return this;var r,n,o,s,a,h=this._activeObject,c=0;if(t===h\\u0026\\u0026\\\"activeSelection\\\"===t.type)for(a=h._objects,r=0;r\\u003ca.length;r++)n=a[r],(o=this._objects.indexOf(n))\\u003e0+c\\u0026\\u0026(s=o-1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else 0!==(o=this._objects.indexOf(t))\\u0026\\u0026(s=this._findNewLowerIndex(t,o,e),i(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},_findNewLowerIndex:function(t,e,i){var r,n;if(i)for(r=e,n=e-1;n\\u003e=0;--n){if(t.intersectsWithObject(this._objects[n])||t.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(t)){r=n;break}}else r=e-1;return r},bringForward:function(t,e){if(!t)return this;var r,n,o,s,a,h=this._activeObject,c=0;if(t===h\\u0026\\u0026\\\"activeSelection\\\"===t.type)for(r=(a=h._objects).length;r--;)n=a[r],(o=this._objects.indexOf(n))\\u003cthis._objects.length-1-c\\u0026\\u0026(s=o+1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else(o=this._objects.indexOf(t))!==this._objects.length-1\\u0026\\u0026(s=this._findNewUpperIndex(t,o,e),i(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll(),this},_findNewUpperIndex:function(t,e,i){var r,n,o;if(i)for(r=e,n=e+1,o=this._objects.length;n\\u003co;++n){if(t.intersectsWithObject(this._objects[n])||t.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(t)){r=n;break}}else r=e+1;return r},moveTo:function(t,e){return i(this._objects,t),this._objects.splice(e,0,t),this.renderOnAddRemove\\u0026\\u0026this.requestRenderAll()},dispose:function(){return this.isRendering\\u0026\\u0026(T.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(t){t.dispose\\u0026\\u0026t.dispose()})),this._objects=[],this.backgroundImage\\u0026\\u0026this.backgroundImage.dispose\\u0026\\u0026this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage\\u0026\\u0026this.overlayImage.dispose\\u0026\\u0026this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove(\\\"lower-canvas\\\"),this.lowerCanvasEl.style=this._originalCanvasStyle,delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute(\\\"width\\\",this.width),this.lowerCanvasEl.setAttribute(\\\"height\\\",this.height),T.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return\\\"#\\u003cfabric.Canvas (\\\"+this.complexity()+\\\"): { objects: \\\"+this._objects.length+\\\" }\\u003e\\\"}}),t(T.StaticCanvas.prototype,T.Observable),t(T.StaticCanvas.prototype,T.Collection),t(T.StaticCanvas.prototype,T.DataURLExporter),t(T.StaticCanvas,{EMPTY_JSON:'{\\\"objects\\\": [], \\\"background\\\": \\\"white\\\"}',supports:function(t){var e=a();if(!e||!e.getContext)return null;var i=e.getContext(\\\"2d\\\");return i\\u0026\\u0026\\\"setLineDash\\\"===t?void 0!==i.setLineDash:null}}),T.StaticCanvas.prototype.toJSON=T.StaticCanvas.prototype.toObject,T.isLikelyNode\\u0026\\u0026(T.StaticCanvas.prototype.createPNGStream=function(){var t=s(this.lowerCanvasEl);return t\\u0026\\u0026t.createPNGStream()},T.StaticCanvas.prototype.createJPEGStream=function(t){var e=s(this.lowerCanvasEl);return e\\u0026\\u0026e.createJPEGStream(t)})}}(),T.BaseBrush=T.util.createClass({color:\\\"rgb(0, 0, 0)\\\",width:1,shadow:null,strokeLineCap:\\\"round\\\",strokeLineJoin:\\\"round\\\",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(){var t=this.canvas.contextTop;t.strokeStyle=this.color,t.lineWidth=this.width,t.lineCap=this.strokeLineCap,t.miterLimit=this.strokeMiterLimit,t.lineJoin=this.strokeLineJoin,t.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(t){var e=this.canvas.viewportTransform;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},_setShadow:function(){if(this.shadow){var t=this.canvas,e=this.shadow,i=t.contextTop,r=t.getZoom();t\\u0026\\u0026t._isRetinaScaling()\\u0026\\u0026(r*=T.devicePixelRatio),i.shadowColor=e.color,i.shadowBlur=e.blur*r,i.shadowOffsetX=e.offsetX*r,i.shadowOffsetY=e.offsetY*r}},needsFullRender:function(){return new T.Color(this.color).getAlpha()\\u003c1||!!this.shadow},_resetShadow:function(){var t=this.canvas.contextTop;t.shadowColor=\\\"\\\",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0},_isOutSideCanvas:function(t){return t.x\\u003c0||t.x\\u003ethis.canvas.getWidth()||t.y\\u003c0||t.y\\u003ethis.canvas.getHeight()}}),T.PencilBrush=T.util.createClass(T.BaseBrush,{decimate:.4,initialize:function(t){this.canvas=t,this._points=[]},_drawSegment:function(t,e,i){var r=e.midPointFrom(i);return t.quadraticCurveTo(e.x,e.y,r.x,r.y),r},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)\\u0026\\u0026(this._prepareForDrawing(t),this._captureDrawingPath(t),this._render())},onMouseMove:function(t,e){if(this.canvas._isMainEvent(e.e)\\u0026\\u0026(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(t))\\u0026\\u0026this._captureDrawingPath(t)\\u0026\\u0026this._points.length\\u003e1)if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,r=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd\\u0026\\u0026(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[r-2],i[r-1],!0),n.stroke(),n.restore()}},onMouseUp:function(t){return!this.canvas._isMainEvent(t.e)||(this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(t){var e=new T.Point(t.x,t.y);this._reset(),this._addPoint(e),this.canvas.contextTop.moveTo(e.x,e.y)},_addPoint:function(t){return!(this._points.length\\u003e1\\u0026\\u0026t.eq(this._points[this._points.length-1])||(this._points.push(t),0))},_reset:function(){this._points=[],this._setBrushStyles(),this._setShadow()},_captureDrawingPath:function(t){var e=new T.Point(t.x,t.y);return this._addPoint(e)},_render:function(){var t,e,i=this.canvas.contextTop,r=this._points[0],n=this._points[1];if(this._saveAndTransform(i),i.beginPath(),2===this._points.length\\u0026\\u0026r.x===n.x\\u0026\\u0026r.y===n.y){var o=this.width/1e3;r=new T.Point(r.x,r.y),n=new T.Point(n.x,n.y),r.x-=o,n.x+=o}for(i.moveTo(r.x,r.y),t=1,e=this._points.length;t\\u003ce;t++)this._drawSegment(i,r,n),r=this._points[t],n=this._points[t+1];i.lineTo(r.x,r.y),i.stroke(),i.restore()},convertPointsToSVGPath:function(t){var e=this.width/1e3;return T.util.getSmoothPathFromPoints(t,e)},_isEmptySVGPath:function(t){return\\\"M 0 0 Q 0 0 0 0 L 0 0\\\"===T.util.joinPath(t)},createPath:function(t){var e=new T.Path(t,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow\\u0026\\u0026(this.shadow.affectStroke=!0,e.shadow=new T.Shadow(this.shadow)),e},decimatePoints:function(t,e){if(t.length\\u003c=2)return t;var i,r=this.canvas.getZoom(),n=Math.pow(e/r,2),o=t.length-1,s=t[0],a=[s];for(i=1;i\\u003co-1;i++)Math.pow(s.x-t[i].x,2)+Math.pow(s.y-t[i].y,2)\\u003e=n\\u0026\\u0026(s=t[i],a.push(s));return a.push(t[o]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate\\u0026\\u0026(this._points=this.decimatePoints(this._points,this.decimate));var t=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(t))this.canvas.requestRenderAll();else{var e=this.createPath(t);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire(\\\"before:path:created\\\",{path:e}),this.canvas.add(e),this.canvas.requestRenderAll(),e.setCoords(),this._resetShadow(),this.canvas.fire(\\\"path:created\\\",{path:e})}}}),T.CircleBrush=T.util.createClass(T.BaseBrush,{width:10,initialize:function(t){this.canvas=t,this.points=[]},drawDot:function(t){var e=this.addPoint(t),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,e),i.restore()},dot:function(t,e){t.fillStyle=e.fill,t.beginPath(),t.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),t.closePath(),t.fill()},onMouseDown:function(t){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(t)},_render:function(){var t,e,i=this.canvas.contextTop,r=this.points;for(this._saveAndTransform(i),t=0,e=r.length;t\\u003ce;t++)this.dot(i,r[t]);i.restore()},onMouseMove:function(t){!0===this.limitedToCanvasSize\\u0026\\u0026this._isOutSideCanvas(t)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(t),this._render()):this.drawDot(t))},onMouseUp:function(){var t,e,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var r=[];for(t=0,e=this.points.length;t\\u003ce;t++){var n=this.points[t],o=new T.Circle({radius:n.radius,left:n.x,top:n.y,originX:\\\"center\\\",originY:\\\"center\\\",fill:n.fill});this.shadow\\u0026\\u0026(o.shadow=new T.Shadow(this.shadow)),r.push(o)}var s=new T.Group(r);s.canvas=this.canvas,this.canvas.fire(\\\"before:path:created\\\",{path:s}),this.canvas.add(s),this.canvas.fire(\\\"path:created\\\",{path:s}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(t){var e=new T.Point(t.x,t.y),i=T.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,r=new T.Color(this.color).setAlpha(T.util.getRandomInt(0,100)/100).toRgba();return e.radius=i,e.fill=r,this.points.push(e),e}}),T.SprayBrush=T.util.createClass(T.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(t){this.canvas=t,this.sprayChunks=[]},onMouseDown:function(t){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(t),this.render(this.sprayChunkPoints)},onMouseMove:function(t){!0===this.limitedToCanvasSize\\u0026\\u0026this._isOutSideCanvas(t)||(this.addSprayChunk(t),this.render(this.sprayChunkPoints))},onMouseUp:function(){var t=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var e=[],i=0,r=this.sprayChunks.length;i\\u003cr;i++)for(var n=this.sprayChunks[i],o=0,s=n.length;o\\u003cs;o++){var a=new T.Rect({width:n[o].width,height:n[o].width,left:n[o].x+1,top:n[o].y+1,originX:\\\"center\\\",originY:\\\"center\\\",fill:this.color});e.push(a)}this.optimizeOverlapping\\u0026\\u0026(e=this._getOptimizedRects(e));var h=new T.Group(e);this.shadow\\u0026\\u0026h.set(\\\"shadow\\\",new T.Shadow(this.shadow)),this.canvas.fire(\\\"before:path:created\\\",{path:h}),this.canvas.add(h),this.canvas.fire(\\\"path:created\\\",{path:h}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=t,this.canvas.requestRenderAll()},_getOptimizedRects:function(t){var e,i,r,n={};for(i=0,r=t.length;i\\u003cr;i++)n[e=t[i].left+\\\"\\\"+t[i].top]||(n[e]=t[i]);var o=[];for(e in n)o.push(n[e]);return o},render:function(t){var e,i,r=this.canvas.contextTop;for(r.fillStyle=this.color,this._saveAndTransform(r),e=0,i=t.length;e\\u003ci;e++){var n=t[e];void 0!==n.opacity\\u0026\\u0026(r.globalAlpha=n.opacity),r.fillRect(n.x,n.y,n.width,n.width)}r.restore()},_render:function(){var t,e,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),t=0,e=this.sprayChunks.length;t\\u003ce;t++)this.render(this.sprayChunks[t]);i.restore()},addSprayChunk:function(t){this.sprayChunkPoints=[];var e,i,r,n,o=this.width/2;for(n=0;n\\u003cthis.density;n++){e=T.util.getRandomInt(t.x-o,t.x+o),i=T.util.getRandomInt(t.y-o,t.y+o),r=this.dotWidthVariance?T.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var s=new T.Point(e,i);s.width=r,this.randomOpacity\\u0026\\u0026(s.opacity=T.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(s)}this.sprayChunks.push(this.sprayChunkPoints)}}),T.PatternBrush=T.util.createClass(T.PencilBrush,{getPatternSrc:function(){var t=T.util.createCanvasElement(),e=t.getContext(\\\"2d\\\");return t.width=t.height=25,e.fillStyle=this.color,e.beginPath(),e.arc(10,10,10,0,2*Math.PI,!1),e.closePath(),e.fill(),t},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace(\\\"this.color\\\",'\\\"'+this.color+'\\\"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),\\\"repeat\\\")},_setBrushStyles:function(){this.callSuper(\\\"_setBrushStyles\\\"),this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(t){var e=this.callSuper(\\\"createPath\\\",t),i=e._getLeftTopCoords().scalarAdd(e.strokeWidth/2);return e.stroke=new T.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),e}}),function(){var t=T.util.getPointer,e=T.util.degreesToRadians,i=T.util.isTouchEvent;for(var r in T.Canvas=T.util.createClass(T.StaticCanvas,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:\\\"shiftKey\\\",centeredScaling:!1,centeredRotation:!1,centeredKey:\\\"altKey\\\",altActionKey:\\\"shiftKey\\\",interactive:!0,selection:!0,selectionKey:\\\"shiftKey\\\",altSelectionKey:null,selectionColor:\\\"rgba(100, 100, 255, 0.3)\\\",selectionDashArray:[],selectionBorderColor:\\\"rgba(255, 255, 255, 0.3)\\\",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:\\\"move\\\",moveCursor:\\\"move\\\",defaultCursor:\\\"default\\\",freeDrawingCursor:\\\"crosshair\\\",rotationCursor:\\\"crosshair\\\",notAllowedCursor:\\\"not-allowed\\\",containerClass:\\\"canvas-container\\\",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=T.PencilBrush\\u0026\\u0026new T.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var t,e,i,r=this.getActiveObjects();if(r.length\\u003e0\\u0026\\u0026!this.preserveObjectStacking){e=[],i=[];for(var n=0,o=this._objects.length;n\\u003co;n++)t=this._objects[n],-1===r.indexOf(t)?e.push(t):i.push(t);r.length\\u003e1\\u0026\\u0026(this._activeObject._objects=i),e.push.apply(e,i)}else e=this._objects;return e},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext\\u0026\\u0026this.renderTopLayer(this.contextTop);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this},renderTopLayer:function(t){t.save(),this.isDrawingMode\\u0026\\u0026this._isCurrentlyDrawing\\u0026\\u0026(this.freeDrawingBrush\\u0026\\u0026this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection\\u0026\\u0026this._groupSelector\\u0026\\u0026(this._drawSelection(t),this.contextTopDirty=!0),t.restore()},renderTop:function(){var t=this.contextTop;return this.clearContext(t),this.renderTopLayer(t),this.fire(\\\"after:render\\\"),this},_normalizePointer:function(t,e){var i=t.calcTransformMatrix(),r=T.util.invertTransform(i),n=this.restorePointerVpt(e);return T.util.transformPoint(n,r)},isTargetTransparent:function(t,e,i){if(t.shouldCache()\\u0026\\u0026t._cacheCanvas\\u0026\\u0026t!==this._activeObject){var r=this._normalizePointer(t,{x:e,y:i}),n=Math.max(t.cacheTranslationX+r.x*t.zoomX,0),o=Math.max(t.cacheTranslationY+r.y*t.zoomY,0);return T.util.isTransparent(t._cacheContext,Math.round(n),Math.round(o),this.targetFindTolerance)}var s=this.contextCache,a=t.selectionBackgroundColor,h=this.viewportTransform;return t.selectionBackgroundColor=\\\"\\\",this.clearContext(s),s.save(),s.transform(h[0],h[1],h[2],h[3],h[4],h[5]),t.render(s),s.restore(),t.selectionBackgroundColor=a,T.util.isTransparent(s,e,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(t){return\\\"[object Array]\\\"===Object.prototype.toString.call(this.selectionKey)?!!this.selectionKey.find((function(e){return!0===t[e]})):t[this.selectionKey]},_shouldClearSelection:function(t,e){var i=this.getActiveObjects(),r=this._activeObject;return!e||e\\u0026\\u0026r\\u0026\\u0026i.length\\u003e1\\u0026\\u0026-1===i.indexOf(e)\\u0026\\u0026r!==e\\u0026\\u0026!this._isSelectionKeyPressed(t)||e\\u0026\\u0026!e.evented||e\\u0026\\u0026!e.selectable\\u0026\\u0026r\\u0026\\u0026r!==e},_shouldCenterTransform:function(t,e,i){var r;if(t)return\\\"scale\\\"===e||\\\"scaleX\\\"===e||\\\"scaleY\\\"===e||\\\"resizing\\\"===e?r=this.centeredScaling||t.centeredScaling:\\\"rotate\\\"===e\\u0026\\u0026(r=this.centeredRotation||t.centeredRotation),r?!i:i},_getOriginFromCorner:function(t,e){var i={x:t.originX,y:t.originY};return\\\"ml\\\"===e||\\\"tl\\\"===e||\\\"bl\\\"===e?i.x=\\\"right\\\":\\\"mr\\\"!==e\\u0026\\u0026\\\"tr\\\"!==e\\u0026\\u0026\\\"br\\\"!==e||(i.x=\\\"left\\\"),\\\"tl\\\"===e||\\\"mt\\\"===e||\\\"tr\\\"===e?i.y=\\\"bottom\\\":\\\"bl\\\"!==e\\u0026\\u0026\\\"mb\\\"!==e\\u0026\\u0026\\\"br\\\"!==e||(i.y=\\\"top\\\"),i},_getActionFromCorner:function(t,e,i,r){if(!e||!t)return\\\"drag\\\";var n=r.controls[e];return n.getActionName(i,n,r)},_setupCurrentTransform:function(t,i,r){if(i){var n=this.getPointer(t),o=i.__corner,s=i.controls[o],a=r\\u0026\\u0026o?s.getActionHandler(t,i,s):T.controlsUtils.dragHandler,h=this._getActionFromCorner(r,o,t,i),c=this._getOriginFromCorner(i,o),l=t[this.centeredKey],u={target:i,action:h,actionHandler:a,corner:o,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:n.x-i.left,offsetY:n.y-i.top,originX:c.x,originY:c.y,ex:n.x,ey:n.y,lastX:n.x,lastY:n.y,theta:e(i.angle),width:i.width*i.scaleX,shiftKey:t.shiftKey,altKey:l,original:T.util.saveObjectTransform(i)};this._shouldCenterTransform(i,h,l)\\u0026\\u0026(u.originX=\\\"center\\\",u.originY=\\\"center\\\"),u.original.originX=c.x,u.original.originY=c.y,this._currentTransform=u,this._beforeTransform(t)}},setCursor:function(t){this.upperCanvasEl.style.cursor=t},_drawSelection:function(t){var e=this._groupSelector,i=new T.Point(e.ex,e.ey),r=T.util.transformPoint(i,this.viewportTransform),n=new T.Point(e.ex+e.left,e.ey+e.top),o=T.util.transformPoint(n,this.viewportTransform),s=Math.min(r.x,o.x),a=Math.min(r.y,o.y),h=Math.max(r.x,o.x),c=Math.max(r.y,o.y),l=this.selectionLineWidth/2;this.selectionColor\\u0026\\u0026(t.fillStyle=this.selectionColor,t.fillRect(s,a,h-s,c-a)),this.selectionLineWidth\\u0026\\u0026this.selectionBorderColor\\u0026\\u0026(t.lineWidth=this.selectionLineWidth,t.strokeStyle=this.selectionBorderColor,s+=l,a+=l,h-=l,c-=l,T.Object.prototype._setLineDash.call(this,t,this.selectionDashArray),t.strokeRect(s,a,h-s,c-a))},findTarget:function(t,e){if(!this.skipTargetFind){var r,n,o=this.getPointer(t,!0),s=this._activeObject,a=this.getActiveObjects(),h=i(t),c=a.length\\u003e1\\u0026\\u0026!e||1===a.length;if(this.targets=[],c\\u0026\\u0026s._findTargetCorner(o,h))return s;if(a.length\\u003e1\\u0026\\u0026!e\\u0026\\u0026s===this._searchPossibleTargets([s],o))return s;if(1===a.length\\u0026\\u0026s===this._searchPossibleTargets([s],o)){if(!this.preserveObjectStacking)return s;r=s,n=this.targets,this.targets=[]}var l=this._searchPossibleTargets(this._objects,o);return t[this.altSelectionKey]\\u0026\\u0026l\\u0026\\u0026r\\u0026\\u0026l!==r\\u0026\\u0026(l=r,this.targets=n),l}},_checkTarget:function(t,e,i){if(e\\u0026\\u0026e.visible\\u0026\\u0026e.evented\\u0026\\u0026e.containsPoint(t)){if(!this.perPixelTargetFind\\u0026\\u0026!e.perPixelTargetFind||e.isEditing)return!0;if(!this.isTargetTransparent(e,i.x,i.y))return!0}},_searchPossibleTargets:function(t,e){for(var i,r,n=t.length;n--;){var o=t[n],s=o.group?this._normalizePointer(o.group,e):e;if(this._checkTarget(s,o,e)){(i=t[n]).subTargetCheck\\u0026\\u0026i instanceof T.Group\\u0026\\u0026(r=this._searchPossibleTargets(i._objects,e))\\u0026\\u0026this.targets.push(r);break}}return i},restorePointerVpt:function(t){return T.util.transformPoint(t,T.util.invertTransform(this.viewportTransform))},getPointer:function(e,i){if(this._absolutePointer\\u0026\\u0026!i)return this._absolutePointer;if(this._pointer\\u0026\\u0026i)return this._pointer;var r,n=t(e),o=this.upperCanvasEl,s=o.getBoundingClientRect(),a=s.width||0,h=s.height||0;a\\u0026\\u0026h||(\\\"top\\\"in s\\u0026\\u0026\\\"bottom\\\"in s\\u0026\\u0026(h=Math.abs(s.top-s.bottom)),\\\"right\\\"in s\\u0026\\u0026\\\"left\\\"in s\\u0026\\u0026(a=Math.abs(s.right-s.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var c=this.getRetinaScaling();return 1!==c\\u0026\\u0026(n.x/=c,n.y/=c),r=0===a||0===h?{width:1,height:1}:{width:o.width/a,height:o.height/h},{x:n.x*r.width,y:n.y*r.height}},_createUpperCanvas:function(){var t=this.lowerCanvasEl.className.replace(/\\\\s*lower-canvas\\\\s*/,\\\"\\\"),e=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className=\\\"\\\":(i=this._createCanvasElement(),this.upperCanvasEl=i),T.util.addClass(i,\\\"upper-canvas \\\"+t),this.wrapperEl.appendChild(i),this._copyCanvasStyle(e,i),this._applyCanvasStyle(i),this.contextTop=i.getContext(\\\"2d\\\")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute(\\\"width\\\",this.width),this.cacheCanvasEl.setAttribute(\\\"height\\\",this.height),this.contextCache=this.cacheCanvasEl.getContext(\\\"2d\\\")},_initWrapperElement:function(){this.wrapperEl=T.util.wrapElement(this.lowerCanvasEl,\\\"div\\\",{class:this.containerClass}),T.util.setStyle(this.wrapperEl,{width:this.width+\\\"px\\\",height:this.height+\\\"px\\\",position:\\\"relative\\\"}),T.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(t){var e=this.width||t.width,i=this.height||t.height;T.util.setStyle(t,{position:\\\"absolute\\\",width:e+\\\"px\\\",height:i+\\\"px\\\",left:0,top:0,\\\"touch-action\\\":this.allowTouchScrolling?\\\"manipulation\\\":\\\"none\\\",\\\"-ms-touch-action\\\":this.allowTouchScrolling?\\\"manipulation\\\":\\\"none\\\"}),t.width=e,t.height=i,T.util.makeElementUnselectable(t)},_copyCanvasStyle:function(t,e){e.style.cssText=t.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var t=this._activeObject;return t?\\\"activeSelection\\\"===t.type\\u0026\\u0026t._objects?t._objects.slice(0):[t]:[]},_onObjectRemoved:function(t){t===this._activeObject\\u0026\\u0026(this.fire(\\\"before:selection:cleared\\\",{target:t}),this._discardActiveObject(),this.fire(\\\"selection:cleared\\\",{target:t}),t.fire(\\\"deselected\\\")),t===this._hoveredTarget\\u0026\\u0026(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper(\\\"_onObjectRemoved\\\",t)},_fireSelectionEvents:function(t,e){var i=!1,r=this.getActiveObjects(),n=[],o=[];t.forEach((function(t){-1===r.indexOf(t)\\u0026\\u0026(i=!0,t.fire(\\\"deselected\\\",{e:e,target:t}),o.push(t))})),r.forEach((function(r){-1===t.indexOf(r)\\u0026\\u0026(i=!0,r.fire(\\\"selected\\\",{e:e,target:r}),n.push(r))})),t.length\\u003e0\\u0026\\u0026r.length\\u003e0?i\\u0026\\u0026this.fire(\\\"selection:updated\\\",{e:e,selected:n,deselected:o,updated:n[0]||o[0],target:this._activeObject}):r.length\\u003e0?this.fire(\\\"selection:created\\\",{e:e,selected:n,target:this._activeObject}):t.length\\u003e0\\u0026\\u0026this.fire(\\\"selection:cleared\\\",{e:e,deselected:o})},setActiveObject:function(t,e){var i=this.getActiveObjects();return this._setActiveObject(t,e),this._fireSelectionEvents(i,e),this},_setActiveObject:function(t,e){return this._activeObject!==t\\u0026\\u0026(!!this._discardActiveObject(e,t)\\u0026\\u0026(!t.onSelect({e:e})\\u0026\\u0026(this._activeObject=t,!0)))},_discardActiveObject:function(t,e){var i=this._activeObject;if(i){if(i.onDeselect({e:t,object:e}))return!1;this._activeObject=null}return!0},discardActiveObject:function(t){var e=this.getActiveObjects(),i=this.getActiveObject();return e.length\\u0026\\u0026this.fire(\\\"before:selection:cleared\\\",{target:i,e:t}),this._discardActiveObject(t),this._fireSelectionEvents(e,t),this},dispose:function(){var t=this.wrapperEl;return this.removeListeners(),t.removeChild(this.upperCanvasEl),t.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,[\\\"upperCanvasEl\\\",\\\"cacheCanvasEl\\\"].forEach(function(t){T.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this)),t.parentNode\\u0026\\u0026t.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,T.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper(\\\"clear\\\")},drawControls:function(t){var e=this._activeObject;e\\u0026\\u0026e._renderControls(t)},_toObject:function(t,e,i){var r=this._realizeGroupTransformOnObject(t),n=this.callSuper(\\\"_toObject\\\",t,e,i);return this._unwindGroupTransformOnObject(t,r),n},_realizeGroupTransformOnObject:function(t){if(t.group\\u0026\\u0026\\\"activeSelection\\\"===t.group.type\\u0026\\u0026this._activeObject===t.group){var e={};return[\\\"angle\\\",\\\"flipX\\\",\\\"flipY\\\",\\\"left\\\",\\\"scaleX\\\",\\\"scaleY\\\",\\\"skewX\\\",\\\"skewY\\\",\\\"top\\\"].forEach((function(i){e[i]=t[i]})),T.util.addTransformToObject(t,this._activeObject.calcOwnMatrix()),e}return null},_unwindGroupTransformOnObject:function(t,e){e\\u0026\\u0026t.set(e)},_setSVGObject:function(t,e,i){var r=this._realizeGroupTransformOnObject(e);this.callSuper(\\\"_setSVGObject\\\",t,e,i),this._unwindGroupTransformOnObject(e,r)},setViewportTransform:function(t){this.renderOnAddRemove\\u0026\\u0026this._activeObject\\u0026\\u0026this._activeObject.isEditing\\u0026\\u0026this._activeObject.clearContextTop(),T.StaticCanvas.prototype.setViewportTransform.call(this,t)}}),T.StaticCanvas)\\\"prototype\\\"!==r\\u0026\\u0026(T.Canvas[r]=T.StaticCanvas[r])}(),function(){var t=T.util.addListener,e=T.util.removeListener,i={passive:!1};function r(t,e){return t.button\\u0026\\u0026t.button===e-1}T.util.object.extend(T.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(t,\\\"add\\\")},_getEventPrefix:function(){return this.enablePointerEvents?\\\"pointer\\\":\\\"mouse\\\"},addOrRemove:function(t,e){var r=this.upperCanvasEl,n=this._getEventPrefix();t(T.window,\\\"resize\\\",this._onResize),t(r,n+\\\"down\\\",this._onMouseDown),t(r,n+\\\"move\\\",this._onMouseMove,i),t(r,n+\\\"out\\\",this._onMouseOut),t(r,n+\\\"enter\\\",this._onMouseEnter),t(r,\\\"wheel\\\",this._onMouseWheel),t(r,\\\"contextmenu\\\",this._onContextMenu),t(r,\\\"dblclick\\\",this._onDoubleClick),t(r,\\\"dragover\\\",this._onDragOver),t(r,\\\"dragenter\\\",this._onDragEnter),t(r,\\\"dragleave\\\",this._onDragLeave),t(r,\\\"drop\\\",this._onDrop),this.enablePointerEvents||t(r,\\\"touchstart\\\",this._onTouchStart,i),void 0!==P\\u0026\\u0026e in P\\u0026\\u0026(P[e](r,\\\"gesture\\\",this._onGesture),P[e](r,\\\"drag\\\",this._onDrag),P[e](r,\\\"orientation\\\",this._onOrientationChange),P[e](r,\\\"shake\\\",this._onShake),P[e](r,\\\"longpress\\\",this._onLongPress))},removeListeners:function(){this.addOrRemove(e,\\\"remove\\\");var t=this._getEventPrefix();e(T.document,t+\\\"up\\\",this._onMouseUp),e(T.document,\\\"touchend\\\",this._onTouchEnd,i),e(T.document,t+\\\"move\\\",this._onMouseMove,i),e(T.document,\\\"touchmove\\\",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,\\\"dragenter\\\"),this._onDragLeave=this._simpleEventHandler.bind(this,\\\"dragleave\\\"),this._onDrop=this._simpleEventHandler.bind(this,\\\"drop\\\"),this.eventsBound=!0)},_onGesture:function(t,e){this.__onTransformGesture\\u0026\\u0026this.__onTransformGesture(t,e)},_onDrag:function(t,e){this.__onDrag\\u0026\\u0026this.__onDrag(t,e)},_onMouseWheel:function(t){this.__onMouseWheel(t)},_onMouseOut:function(t){var e=this._hoveredTarget;this.fire(\\\"mouse:out\\\",{target:e,e:t}),this._hoveredTarget=null,e\\u0026\\u0026e.fire(\\\"mouseout\\\",{e:t});var i=this;this._hoveredTargets.forEach((function(r){i.fire(\\\"mouse:out\\\",{target:e,e:t}),r\\u0026\\u0026e.fire(\\\"mouseout\\\",{e:t})})),this._hoveredTargets=[],this._iTextInstances\\u0026\\u0026this._iTextInstances.forEach((function(t){t.isEditing\\u0026\\u0026t.hiddenTextarea.focus()}))},_onMouseEnter:function(t){this._currentTransform||this.findTarget(t)||(this.fire(\\\"mouse:over\\\",{target:null,e:t}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(t,e){this.__onOrientationChange\\u0026\\u0026this.__onOrientationChange(t,e)},_onShake:function(t,e){this.__onShake\\u0026\\u0026this.__onShake(t,e)},_onLongPress:function(t,e){this.__onLongPress\\u0026\\u0026this.__onLongPress(t,e)},_onDragOver:function(t){t.preventDefault();var e=this._simpleEventHandler(\\\"dragover\\\",t);this._fireEnterLeaveEvents(e,t)},_onContextMenu:function(t){return this.stopContextMenu\\u0026\\u0026(t.stopPropagation(),t.preventDefault()),!1},_onDoubleClick:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\"dblclick\\\"),this._resetTransformEventData(t)},getPointerId:function(t){var e=t.changedTouches;return e?e[0]\\u0026\\u0026e[0].identifier:this.enablePointerEvents?t.pointerId:-1},_isMainEvent:function(t){return!0===t.isPrimary||!1!==t.isPrimary\\u0026\\u0026(\\\"touchend\\\"===t.type\\u0026\\u00260===t.touches.length||(!t.changedTouches||t.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(r){r.preventDefault(),null===this.mainTouchId\\u0026\\u0026(this.mainTouchId=this.getPointerId(r)),this.__onMouseDown(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();t(T.document,\\\"touchend\\\",this._onTouchEnd,i),t(T.document,\\\"touchmove\\\",this._onMouseMove,i),e(n,o+\\\"down\\\",this._onMouseDown)},_onMouseDown:function(r){this.__onMouseDown(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();e(n,o+\\\"move\\\",this._onMouseMove,i),t(T.document,o+\\\"up\\\",this._onMouseUp),t(T.document,o+\\\"move\\\",this._onMouseMove,i)},_onTouchEnd:function(r){if(!(r.touches.length\\u003e0)){this.__onMouseUp(r),this._resetTransformEventData(),this.mainTouchId=null;var n=this._getEventPrefix();e(T.document,\\\"touchend\\\",this._onTouchEnd,i),e(T.document,\\\"touchmove\\\",this._onMouseMove,i);var o=this;this._willAddMouseDown\\u0026\\u0026clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){t(o.upperCanvasEl,n+\\\"down\\\",o._onMouseDown),o._willAddMouseDown=0}),400)}},_onMouseUp:function(r){this.__onMouseUp(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();this._isMainEvent(r)\\u0026\\u0026(e(T.document,o+\\\"up\\\",this._onMouseUp),e(T.document,o+\\\"move\\\",this._onMouseMove,i),t(n,o+\\\"move\\\",this._onMouseMove,i))},_onMouseMove:function(t){!this.allowTouchScrolling\\u0026\\u0026t.preventDefault\\u0026\\u0026t.preventDefault(),this.__onMouseMove(t)},_onResize:function(){this.calcOffset()},_shouldRender:function(t){var e=this._activeObject;return!!(!!e!=!!t||e\\u0026\\u0026t\\u0026\\u0026e!==t)||(e\\u0026\\u0026e.isEditing,!1)},__onMouseUp:function(t){var e,i=this._currentTransform,n=this._groupSelector,o=!1,s=!n||0===n.left\\u0026\\u00260===n.top;if(this._cacheTransformEventData(t),e=this._target,this._handleEvent(t,\\\"up:before\\\"),r(t,3))this.fireRightClick\\u0026\\u0026this._handleEvent(t,\\\"up\\\",3,s);else{if(r(t,2))return this.fireMiddleClick\\u0026\\u0026this._handleEvent(t,\\\"up\\\",2,s),void this._resetTransformEventData();if(this.isDrawingMode\\u0026\\u0026this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(t);else if(this._isMainEvent(t)){if(i\\u0026\\u0026(this._finalizeCurrentTransform(t),o=i.actionPerformed),!s){var a=e===this._activeObject;this._maybeGroupObjects(t),o||(o=this._shouldRender(e)||!a\\u0026\\u0026e===this._activeObject)}if(e){if(e.selectable\\u0026\\u0026e!==this._activeObject\\u0026\\u0026\\\"up\\\"===e.activeOn)this.setActiveObject(e,t),o=!0;else{var h=e._findTargetCorner(this.getPointer(t,!0),T.util.isTouchEvent(t)),c=e.controls[h],l=c\\u0026\\u0026c.getMouseUpHandler(t,e,c);if(l){var u=this.getPointer(t);l(t,i,u.x,u.y)}}e.isMoving=!1}this._setCursorFromEvent(t,e),this._handleEvent(t,\\\"up\\\",1,s),this._groupSelector=null,this._currentTransform=null,e\\u0026\\u0026(e.__corner=0),o?this.requestRenderAll():s||this.renderTop()}}},_simpleEventHandler:function(t,e){var i=this.findTarget(e),r=this.targets,n={e:e,target:i,subTargets:r};if(this.fire(t,n),i\\u0026\\u0026i.fire(t,n),!r)return i;for(var o=0;o\\u003cr.length;o++)r[o].fire(t,n);return i},_handleEvent:function(t,e,i,r){var n=this._target,o=this.targets||[],s={e:t,target:n,subTargets:o,button:i||1,isClick:r||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};\\\"up\\\"===e\\u0026\\u0026(s.currentTarget=this.findTarget(t),s.currentSubTargets=this.targets),this.fire(\\\"mouse:\\\"+e,s),n\\u0026\\u0026n.fire(\\\"mouse\\\"+e,s);for(var a=0;a\\u003co.length;a++)o[a].fire(\\\"mouse\\\"+e,s)},_finalizeCurrentTransform:function(t){var e,i=this._currentTransform,r=i.target,n={e:t,target:r,transform:i,action:i.action};r._scaling\\u0026\\u0026(r._scaling=!1),r.setCoords(),(i.actionPerformed||this.stateful\\u0026\\u0026r.hasStateChanged())\\u0026\\u0026(i.actionPerformed\\u0026\\u0026(e=this._addEventOptions(n,i),this._fire(e,n)),this._fire(\\\"modified\\\",n))},_addEventOptions:function(t,e){var i,r;switch(e.action){case\\\"scaleX\\\":i=\\\"scaled\\\",r=\\\"x\\\";break;case\\\"scaleY\\\":i=\\\"scaled\\\",r=\\\"y\\\";break;case\\\"skewX\\\":i=\\\"skewed\\\",r=\\\"x\\\";break;case\\\"skewY\\\":i=\\\"skewed\\\",r=\\\"y\\\";break;case\\\"scale\\\":i=\\\"scaled\\\",r=\\\"equally\\\";break;case\\\"rotate\\\":i=\\\"rotated\\\";break;case\\\"drag\\\":i=\\\"moved\\\"}return t.by=r,i},_onMouseDownInDrawingMode:function(t){this._isCurrentlyDrawing=!0,this.getActiveObject()\\u0026\\u0026this.discardActiveObject(t).requestRenderAll();var e=this.getPointer(t);this.freeDrawingBrush.onMouseDown(e,{e:t,pointer:e}),this._handleEvent(t,\\\"down\\\")},_onMouseMoveInDrawingMode:function(t){if(this._isCurrentlyDrawing){var e=this.getPointer(t);this.freeDrawingBrush.onMouseMove(e,{e:t,pointer:e})}this.setCursor(this.freeDrawingCursor),this._handleEvent(t,\\\"move\\\")},_onMouseUpInDrawingMode:function(t){var e=this.getPointer(t);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:t,pointer:e}),this._handleEvent(t,\\\"up\\\")},__onMouseDown:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\"down:before\\\");var e=this._target;if(r(t,3))this.fireRightClick\\u0026\\u0026this._handleEvent(t,\\\"down\\\",3);else if(r(t,2))this.fireMiddleClick\\u0026\\u0026this._handleEvent(t,\\\"down\\\",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(t);else if(this._isMainEvent(t)\\u0026\\u0026!this._currentTransform){var i=this._pointer;this._previousPointer=i;var n=this._shouldRender(e),o=this._shouldGroup(t,e);if(this._shouldClearSelection(t,e)?this.discardActiveObject(t):o\\u0026\\u0026(this._handleGrouping(t,e),e=this._activeObject),!this.selection||e\\u0026\\u0026(e.selectable||e.isEditing||e===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),e){var s=e===this._activeObject;e.selectable\\u0026\\u0026\\\"down\\\"===e.activeOn\\u0026\\u0026this.setActiveObject(e,t);var a=e._findTargetCorner(this.getPointer(t,!0),T.util.isTouchEvent(t));if(e.__corner=a,e===this._activeObject\\u0026\\u0026(a||!o)){this._setupCurrentTransform(t,e,s);var h=e.controls[a],c=(i=this.getPointer(t),h\\u0026\\u0026h.getMouseDownHandler(t,e,h));c\\u0026\\u0026c(t,this._currentTransform,i.x,i.y)}}this._handleEvent(t,\\\"down\\\"),(n||o)\\u0026\\u0026this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(t){this._resetTransformEventData(),this._pointer=this.getPointer(t,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(t)||null},_beforeTransform:function(t){var e=this._currentTransform;this.stateful\\u0026\\u0026e.target.saveState(),this.fire(\\\"before:transform\\\",{e:t,transform:e})},__onMouseMove:function(t){var e,i;if(this._handleEvent(t,\\\"move:before\\\"),this._cacheTransformEventData(t),this.isDrawingMode)this._onMouseMoveInDrawingMode(t);else if(this._isMainEvent(t)){var r=this._groupSelector;r?(i=this._absolutePointer,r.left=i.x-r.ex,r.top=i.y-r.ey,this.renderTop()):this._currentTransform?this._transformObject(t):(e=this.findTarget(t)||null,this._setCursorFromEvent(t,e),this._fireOverOutEvents(e,t)),this._handleEvent(t,\\\"move\\\"),this._resetTransformEventData()}},_fireOverOutEvents:function(t,e){var i=this._hoveredTarget,r=this._hoveredTargets,n=this.targets,o=Math.max(r.length,n.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:i,evtOut:\\\"mouseout\\\",canvasEvtOut:\\\"mouse:out\\\",evtIn:\\\"mouseover\\\",canvasEvtIn:\\\"mouse:over\\\"});for(var s=0;s\\u003co;s++)this.fireSyntheticInOutEvents(n[s],e,{oldTarget:r[s],evtOut:\\\"mouseout\\\",evtIn:\\\"mouseover\\\"});this._hoveredTarget=t,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(t,e){var i=this._draggedoverTarget,r=this._hoveredTargets,n=this.targets,o=Math.max(r.length,n.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:i,evtOut:\\\"dragleave\\\",evtIn:\\\"dragenter\\\"});for(var s=0;s\\u003co;s++)this.fireSyntheticInOutEvents(n[s],e,{oldTarget:r[s],evtOut:\\\"dragleave\\\",evtIn:\\\"dragenter\\\"});this._draggedoverTarget=t},fireSyntheticInOutEvents:function(t,e,i){var r,n,o,s=i.oldTarget,a=s!==t,h=i.canvasEvtIn,c=i.canvasEvtOut;a\\u0026\\u0026(r={e:e,target:t,previousTarget:s},n={e:e,target:s,nextTarget:t}),o=t\\u0026\\u0026a,s\\u0026\\u0026a\\u0026\\u0026(c\\u0026\\u0026this.fire(c,n),s.fire(i.evtOut,n)),o\\u0026\\u0026(h\\u0026\\u0026this.fire(h,r),t.fire(i.evtIn,r))},__onMouseWheel:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\"wheel\\\"),this._resetTransformEventData()},_transformObject:function(t){var e=this.getPointer(t),i=this._currentTransform;i.reset=!1,i.shiftKey=t.shiftKey,i.altKey=t[this.centeredKey],this._performTransformAction(t,i,e),i.actionPerformed\\u0026\\u0026this.requestRenderAll()},_performTransformAction:function(t,e,i){var r=i.x,n=i.y,o=e.action,s=!1,a=e.actionHandler;a\\u0026\\u0026(s=a(t,e,r,n)),\\\"drag\\\"===o\\u0026\\u0026s\\u0026\\u0026(e.target.isMoving=!0,this.setCursor(e.target.moveCursor||this.moveCursor)),e.actionPerformed=e.actionPerformed||s},_fire:T.controlsUtils.fireEvent,_setCursorFromEvent:function(t,e){if(!e)return this.setCursor(this.defaultCursor),!1;var i=e.hoverCursor||this.hoverCursor,r=this._activeObject\\u0026\\u0026\\\"activeSelection\\\"===this._activeObject.type?this._activeObject:null,n=(!r||!r.contains(e))\\u0026\\u0026e._findTargetCorner(this.getPointer(t,!0));n?this.setCursor(this.getCornerCursor(n,e,t)):(e.subTargetCheck\\u0026\\u0026this.targets.concat().reverse().map((function(t){i=t.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(t,e,i){var r=e.controls[t];return r.cursorStyleHandler(i,r,e)}})}(),b=Math.min,x=Math.max,T.util.object.extend(T.Canvas.prototype,{_shouldGroup:function(t,e){var i=this._activeObject;return i\\u0026\\u0026this._isSelectionKeyPressed(t)\\u0026\\u0026e\\u0026\\u0026e.selectable\\u0026\\u0026this.selection\\u0026\\u0026(i!==e||\\\"activeSelection\\\"===i.type)\\u0026\\u0026!e.onSelect({e:t})},_handleGrouping:function(t,e){var i=this._activeObject;i.__corner||(e!==i||(e=this.findTarget(t,!0))\\u0026\\u0026e.selectable)\\u0026\\u0026(i\\u0026\\u0026\\\"activeSelection\\\"===i.type?this._updateActiveSelection(e,t):this._createActiveSelection(e,t))},_updateActiveSelection:function(t,e){var i=this._activeObject,r=i._objects.slice(0);i.contains(t)?(i.removeWithUpdate(t),this._hoveredTarget=t,this._hoveredTargets=this.targets.concat(),1===i.size()\\u0026\\u0026this._setActiveObject(i.item(0),e)):(i.addWithUpdate(t),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(r,e)},_createActiveSelection:function(t,e){var i=this.getActiveObjects(),r=this._createGroup(t);this._hoveredTarget=r,this._setActiveObject(r,e),this._fireSelectionEvents(i,e)},_createGroup:function(t){var e=this._objects,i=e.indexOf(this._activeObject)\\u003ce.indexOf(t)?[this._activeObject,t]:[t,this._activeObject];return this._activeObject.isEditing\\u0026\\u0026this._activeObject.exitEditing(),new T.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(t){var e,i=this._collectObjects(t);1===i.length?this.setActiveObject(i[0],t):i.length\\u003e1\\u0026\\u0026(e=new T.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(e,t))},_collectObjects:function(t){for(var e,i=[],r=this._groupSelector.ex,n=this._groupSelector.ey,o=r+this._groupSelector.left,s=n+this._groupSelector.top,a=new T.Point(b(r,o),b(n,s)),h=new T.Point(x(r,o),x(n,s)),c=!this.selectionFullyContained,l=r===o\\u0026\\u0026n===s,u=this._objects.length;u--\\u0026\\u0026!((e=this._objects[u])\\u0026\\u0026e.selectable\\u0026\\u0026e.visible\\u0026\\u0026(c\\u0026\\u0026e.intersectsWithRect(a,h,!0)||e.isContainedWithinRect(a,h,!0)||c\\u0026\\u0026e.containsPoint(a,null,!0)||c\\u0026\\u0026e.containsPoint(h,null,!0))\\u0026\\u0026(i.push(e),l)););return i.length\\u003e1\\u0026\\u0026(i=i.filter((function(e){return!e.onSelect({e:t})}))),i},_maybeGroupObjects:function(t){this.selection\\u0026\\u0026this._groupSelector\\u0026\\u0026this._groupSelectedObjects(t),this.setCursor(this.defaultCursor),this._groupSelector=null}}),T.util.object.extend(T.StaticCanvas.prototype,{toDataURL:function(t){t||(t={});var e=t.format||\\\"png\\\",i=t.quality||1,r=(t.multiplier||1)*(t.enableRetinaScaling?this.getRetinaScaling():1),n=this.toCanvasElement(r,t);return T.util.toDataURL(n,e,i)},toCanvasElement:function(t,e){t=t||1;var i=((e=e||{}).width||this.width)*t,r=(e.height||this.height)*t,n=this.getZoom(),o=this.width,s=this.height,a=n*t,h=this.viewportTransform,c=(h[4]-(e.left||0))*t,l=(h[5]-(e.top||0))*t,u=this.interactive,f=[a,0,0,a,c,l],d=this.enableRetinaScaling,g=T.util.createCanvasElement(),p=this.contextTop;return g.width=i,g.height=r,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=f,this.width=i,this.height=r,this.calcViewportBoundaries(),this.renderCanvas(g.getContext(\\\"2d\\\"),this._objects),this.viewportTransform=h,this.width=o,this.height=s,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=d,this.contextTop=p,g}}),T.util.object.extend(T.StaticCanvas.prototype,{loadFromJSON:function(t,e,i){if(t){var r=\\\"string\\\"==typeof t?JSON.parse(t):T.util.object.clone(t),n=this,o=r.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete r.clipPath,this._enlivenObjects(r.objects,(function(t){n.clear(),n._setBgOverlay(r,(function(){o?n._enlivenObjects([o],(function(i){n.clipPath=i[0],n.__setupCanvas.call(n,r,t,s,e)})):n.__setupCanvas.call(n,r,t,s,e)}))}),i),this}},__setupCanvas:function(t,e,i,r){var n=this;e.forEach((function(t,e){n.insertAt(t,e)})),this.renderOnAddRemove=i,delete t.objects,delete t.backgroundImage,delete t.overlayImage,delete t.background,delete t.overlay,this._setOptions(t),this.renderAll(),r\\u0026\\u0026r()},_setBgOverlay:function(t,e){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(t.backgroundImage||t.overlayImage||t.background||t.overlay){var r=function(){i.backgroundImage\\u0026\\u0026i.overlayImage\\u0026\\u0026i.backgroundColor\\u0026\\u0026i.overlayColor\\u0026\\u0026e\\u0026\\u0026e()};this.__setBgOverlay(\\\"backgroundImage\\\",t.backgroundImage,i,r),this.__setBgOverlay(\\\"overlayImage\\\",t.overlayImage,i,r),this.__setBgOverlay(\\\"backgroundColor\\\",t.background,i,r),this.__setBgOverlay(\\\"overlayColor\\\",t.overlay,i,r)}else e\\u0026\\u0026e()},__setBgOverlay:function(t,e,i,r){var n=this;if(!e)return i[t]=!0,void(r\\u0026\\u0026r());\\\"backgroundImage\\\"===t||\\\"overlayImage\\\"===t?T.util.enlivenObjects([e],(function(e){n[t]=e[0],i[t]=!0,r\\u0026\\u0026r()})):this[\\\"set\\\"+T.util.string.capitalize(t,!0)](e,(function(){i[t]=!0,r\\u0026\\u0026r()}))},_enlivenObjects:function(t,e,i){t\\u0026\\u00260!==t.length?T.util.enlivenObjects(t,(function(t){e\\u0026\\u0026e(t)}),null,i):e\\u0026\\u0026e([])},_toDataURL:function(t,e){this.clone((function(i){e(i.toDataURL(t))}))},_toDataURLWithMultiplier:function(t,e,i){this.clone((function(r){i(r.toDataURLWithMultiplier(t,e))}))},clone:function(t,e){var i=JSON.stringify(this.toJSON(e));this.cloneWithoutData((function(e){e.loadFromJSON(i,(function(){t\\u0026\\u0026t(e)}))}))},cloneWithoutData:function(t){var e=T.util.createCanvasElement();e.width=this.width,e.height=this.height;var i=new T.Canvas(e);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),t\\u0026\\u0026t(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):t\\u0026\\u0026t(i)}}),C=T.util.degreesToRadians,w=T.util.radiansToDegrees,T.util.object.extend(T.Canvas.prototype,{__onTransformGesture:function(t,e){if(!this.isDrawingMode\\u0026\\u0026t.touches\\u0026\\u00262===t.touches.length\\u0026\\u0026\\\"gesture\\\"===e.gesture){var i=this.findTarget(t);void 0!==i\\u0026\\u0026(this.__gesturesParams={e:t,self:e,target:i},this.__gesturesRenderer()),this.fire(\\\"touch:gesture\\\",{target:i,e:t,self:e})}},__gesturesParams:null,__gesturesRenderer:function(){if(null!==this.__gesturesParams\\u0026\\u0026null!==this._currentTransform){var t=this.__gesturesParams.self,e=this._currentTransform,i=this.__gesturesParams.e;e.action=\\\"scale\\\",e.originX=e.originY=\\\"center\\\",this._scaleObjectBy(t.scale,i),0!==t.rotation\\u0026\\u0026(e.action=\\\"rotate\\\",this._rotateObjectByAngle(t.rotation,i)),this.requestRenderAll(),e.action=\\\"drag\\\"}},__onDrag:function(t,e){this.fire(\\\"touch:drag\\\",{e:t,self:e})},__onOrientationChange:function(t,e){this.fire(\\\"touch:orientation\\\",{e:t,self:e})},__onShake:function(t,e){this.fire(\\\"touch:shake\\\",{e:t,self:e})},__onLongPress:function(t,e){this.fire(\\\"touch:longpress\\\",{e:t,self:e})},_scaleObjectBy:function(t,e){var i=this._currentTransform,r=i.target;return i.gestureScale=t,r._scaling=!0,T.controlsUtils.scalingEqually(e,i,0,0)},_rotateObjectByAngle:function(t,e){var i=this._currentTransform;i.target.get(\\\"lockRotation\\\")||(i.target.rotate(w(C(t)+i.theta)),this._fire(\\\"rotating\\\",{target:i.target,e:e,transform:i}))}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n=e.util.toFixed,o=e.util.string.capitalize,s=e.util.degreesToRadians,a=!e.isLikelyNode;e.Object||(e.Object=e.util.createClass(e.CommonMethods,{type:\\\"object\\\",originX:\\\"left\\\",originY:\\\"top\\\",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:\\\"rgb(178,204,255)\\\",borderDashArray:null,cornerColor:\\\"rgb(178,204,255)\\\",cornerStrokeColor:null,cornerStyle:\\\"rect\\\",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:\\\"rgb(0,0,0)\\\",fillRule:\\\"nonzero\\\",globalCompositeOperation:\\\"source-over\\\",backgroundColor:\\\"\\\",selectionBackgroundColor:\\\"\\\",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:\\\"butt\\\",strokeLineJoin:\\\"miter\\\",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:\\\"fill\\\",activeOn:\\\"down\\\",stateProperties:\\\"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform\\\".split(\\\" \\\"),cacheProperties:\\\"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath\\\".split(\\\" \\\"),colorProperties:\\\"fill stroke backgroundColor\\\".split(\\\" \\\"),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(t){t\\u0026\\u0026this.setOptions(t)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=e.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext(\\\"2d\\\"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(t){var i=e.perfLimitSizeTotal,r=t.width,n=t.height,o=e.maxCacheSideLimit,s=e.minCacheSideLimit;if(r\\u003c=o\\u0026\\u0026n\\u003c=o\\u0026\\u0026r*n\\u003c=i)return r\\u003cs\\u0026\\u0026(t.width=s),n\\u003cs\\u0026\\u0026(t.height=s),t;var a=r/n,h=e.util.limitDimsByArea(a,i),c=e.util.capValue,l=c(s,h.x,o),u=c(s,h.y,o);return r\\u003el\\u0026\\u0026(t.zoomX/=r/l,t.width=l,t.capped=!0),n\\u003eu\\u0026\\u0026(t.zoomY/=n/u,t.height=u,t.capped=!0),t},_getCacheCanvasDimensions:function(){var t=this.getTotalObjectScaling(),e=this._getTransformedDimensions(0,0),i=e.x*t.scaleX/this.scaleX,r=e.y*t.scaleY/this.scaleY;return{width:i+2,height:r+2,zoomX:t.scaleX,zoomY:t.scaleY,x:i,y:r}},_updateCacheCanvas:function(){var t=this.canvas;if(this.noScaleCache\\u0026\\u0026t\\u0026\\u0026t._currentTransform){var i=t._currentTransform.target,r=t._currentTransform.action;if(this===i\\u0026\\u0026r.slice\\u0026\\u0026\\\"scale\\\"===r.slice(0,5))return!1}var n,o,s=this._cacheCanvas,a=this._limitCacheSize(this._getCacheCanvasDimensions()),h=e.minCacheSideLimit,c=a.width,l=a.height,u=a.zoomX,f=a.zoomY,d=c!==this.cacheWidth||l!==this.cacheHeight,g=this.zoomX!==u||this.zoomY!==f,p=d||g,v=0,m=0,y=!1;if(d){var _=this._cacheCanvas.width,b=this._cacheCanvas.height,x=c\\u003e_||l\\u003eb;y=x||(c\\u003c.9*_||l\\u003c.9*b)\\u0026\\u0026_\\u003eh\\u0026\\u0026b\\u003eh,x\\u0026\\u0026!a.capped\\u0026\\u0026(c\\u003eh||l\\u003eh)\\u0026\\u0026(v=.1*c,m=.1*l)}return this instanceof e.Text\\u0026\\u0026this.path\\u0026\\u0026(p=!0,y=!0,v+=this.getHeightOfLine(0)*this.zoomX,m+=this.getHeightOfLine(0)*this.zoomY),!!p\\u0026\\u0026(y?(s.width=Math.ceil(c+v),s.height=Math.ceil(l+m)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,s.width,s.height)),n=a.x/2,o=a.y/2,this.cacheTranslationX=Math.round(s.width/2-n)+n,this.cacheTranslationY=Math.round(s.height/2-o)+o,this.cacheWidth=c,this.cacheHeight=l,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(u,f),this.zoomX=u,this.zoomY=f,!0)},setOptions:function(t){this._setOptions(t),this._initGradient(t.fill,\\\"fill\\\"),this._initGradient(t.stroke,\\\"stroke\\\"),this._initPattern(t.fill,\\\"fill\\\"),this._initPattern(t.stroke,\\\"stroke\\\")},transform:function(t){var e=this.group\\u0026\\u0026!this.group._transformDone||this.group\\u0026\\u0026this.canvas\\u0026\\u0026t===this.canvas.contextTop,i=this.calcTransformMatrix(!e);t.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(t){var i=e.Object.NUM_FRACTION_DIGITS,r={type:this.type,version:e.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill\\u0026\\u0026this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke\\u0026\\u0026this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow\\u0026\\u0026this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath\\u0026\\u0026!this.clipPath.excludeFromExport\\u0026\\u0026(r.clipPath=this.clipPath.toObject(t),r.clipPath.inverted=this.clipPath.inverted,r.clipPath.absolutePositioned=this.clipPath.absolutePositioned),e.util.populateWithProperties(this,r,t),this.includeDefaultValues||(r=this._removeDefaultValues(r)),r},toDatalessObject:function(t){return this.toObject(t)},_removeDefaultValues:function(t){var i=e.util.getKlass(t.type).prototype;return i.stateProperties.forEach((function(e){\\\"left\\\"!==e\\u0026\\u0026\\\"top\\\"!==e\\u0026\\u0026(t[e]===i[e]\\u0026\\u0026delete t[e],\\\"[object Array]\\\"===Object.prototype.toString.call(t[e])\\u0026\\u0026\\\"[object Array]\\\"===Object.prototype.toString.call(i[e])\\u0026\\u00260===t[e].length\\u0026\\u00260===i[e].length\\u0026\\u0026delete t[e])})),t},toString:function(){return\\\"#\\u003cfabric.\\\"+o(this.type)+\\\"\\u003e\\\"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var t=e.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(t.scaleX),scaleY:Math.abs(t.scaleY)}},getTotalObjectScaling:function(){var t=this.getObjectScaling(),e=t.scaleX,i=t.scaleY;if(this.canvas){var r=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();e*=r*n,i*=r*n}return{scaleX:e,scaleY:i}},getObjectOpacity:function(){var t=this.opacity;return this.group\\u0026\\u0026(t*=this.group.getObjectOpacity()),t},_set:function(t,i){var r=\\\"scaleX\\\"===t||\\\"scaleY\\\"===t,n=this[t]!==i,o=!1;return r\\u0026\\u0026(i=this._constrainScale(i)),\\\"scaleX\\\"===t\\u0026\\u0026i\\u003c0?(this.flipX=!this.flipX,i*=-1):\\\"scaleY\\\"===t\\u0026\\u0026i\\u003c0?(this.flipY=!this.flipY,i*=-1):\\\"shadow\\\"!==t||!i||i instanceof e.Shadow?\\\"dirty\\\"===t\\u0026\\u0026this.group\\u0026\\u0026this.group.set(\\\"dirty\\\",i):i=new e.Shadow(i),this[t]=i,n\\u0026\\u0026(o=this.group\\u0026\\u0026this.group.isOnACache(),this.cacheProperties.indexOf(t)\\u003e-1?(this.dirty=!0,o\\u0026\\u0026this.group.set(\\\"dirty\\\",!0)):o\\u0026\\u0026this.stateProperties.indexOf(t)\\u003e-1\\u0026\\u0026this.group.set(\\\"dirty\\\",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas\\u0026\\u0026this.canvas.viewportTransform?this.canvas.viewportTransform:e.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width\\u0026\\u0026!this.height\\u0026\\u00260===this.strokeWidth||!this.visible},render:function(t){this.isNotVisible()||this.canvas\\u0026\\u0026this.canvas.skipOffscreen\\u0026\\u0026!this.group\\u0026\\u0026!this.isOnScreen()||(t.save(),this._setupCompositeOperation(t),this.drawSelectionBackground(t),this.transform(t),this._setOpacity(t),this._setShadow(t,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(t)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(t),this.objectCaching\\u0026\\u0026this.statefullCache\\u0026\\u0026this.saveState({propertySet:\\\"cacheProperties\\\"})),t.restore())},renderCache:function(t){t=t||{},this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()\\u0026\\u0026(this.statefullCache\\u0026\\u0026this.saveState({propertySet:\\\"cacheProperties\\\"}),this.drawObject(this._cacheContext,t.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke\\u0026\\u0026\\\"transparent\\\"!==this.stroke\\u0026\\u00260!==this.strokeWidth},hasFill:function(){return this.fill\\u0026\\u0026\\\"transparent\\\"!==this.fill},needsItsOwnCache:function(){return!(\\\"stroke\\\"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||\\\"object\\\"!=typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching\\u0026\\u0026(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow\\u0026\\u0026(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(t){var i=this.clipPath;if(t.save(),i.inverted?t.globalCompositeOperation=\\\"destination-out\\\":t.globalCompositeOperation=\\\"destination-in\\\",i.absolutePositioned){var r=e.util.invertTransform(this.calcTransformMatrix());t.transform(r[0],r[1],r[2],r[3],r[4],r[5])}i.transform(t),t.scale(1/i.zoomX,1/i.zoomY),t.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),t.restore()},drawObject:function(t,e){var i=this.fill,r=this.stroke;e?(this.fill=\\\"black\\\",this.stroke=\\\"\\\",this._setClippingProperties(t)):this._renderBackground(t),this._render(t),this._drawClipPath(t),this.fill=i,this.stroke=r},_drawClipPath:function(t){var e=this.clipPath;e\\u0026\\u0026(e.canvas=this.canvas,e.shouldCache(),e._transformDone=!0,e.renderCache({forClipping:!0}),this.drawClipPathOnCache(t))},drawCacheOnCanvas:function(t){t.scale(1/this.zoomX,1/this.zoomY),t.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(t){if(this.isNotVisible())return!1;if(this._cacheCanvas\\u0026\\u0026!t\\u0026\\u0026this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath\\u0026\\u0026this.clipPath.absolutePositioned||this.statefullCache\\u0026\\u0026this.hasStateChanged(\\\"cacheProperties\\\")){if(this._cacheCanvas\\u0026\\u0026!t){var e=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-e/2,-i/2,e,i)}return!0}return!1},_renderBackground:function(t){if(this.backgroundColor){var e=this._getNonTransformedDimensions();t.fillStyle=this.backgroundColor,t.fillRect(-e.x/2,-e.y/2,e.x,e.y),this._removeShadow(t)}},_setOpacity:function(t){this.group\\u0026\\u0026!this.group._transformDone?t.globalAlpha=this.getObjectOpacity():t.globalAlpha*=this.opacity},_setStrokeStyles:function(t,e){var i=e.stroke;i\\u0026\\u0026(t.lineWidth=e.strokeWidth,t.lineCap=e.strokeLineCap,t.lineDashOffset=e.strokeDashOffset,t.lineJoin=e.strokeLineJoin,t.miterLimit=e.strokeMiterLimit,i.toLive?\\\"percentage\\\"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(t,i):(t.strokeStyle=i.toLive(t,this),this._applyPatternGradientTransform(t,i)):t.strokeStyle=e.stroke)},_setFillStyles:function(t,e){var i=e.fill;i\\u0026\\u0026(i.toLive?(t.fillStyle=i.toLive(t,this),this._applyPatternGradientTransform(t,e.fill)):t.fillStyle=i)},_setClippingProperties:function(t){t.globalAlpha=1,t.strokeStyle=\\\"transparent\\\",t.fillStyle=\\\"#000000\\\"},_setLineDash:function(t,e){e\\u0026\\u00260!==e.length\\u0026\\u0026(1\\u0026e.length\\u0026\\u0026e.push.apply(e,e),t.setLineDash(e))},_renderControls:function(t,i){var r,n,o,a=this.getViewportTransform(),h=this.calcTransformMatrix();n=void 0!==(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,o=void 0!==i.hasControls?i.hasControls:this.hasControls,h=e.util.multiplyTransformMatrices(a,h),r=e.util.qrDecompose(h),t.save(),t.translate(r.translateX,r.translateY),t.lineWidth=1*this.borderScaleFactor,this.group||(t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),t.rotate(s(r.angle)),i.forActiveSelection||this.group?n\\u0026\\u0026this.drawBordersInGroup(t,r,i):n\\u0026\\u0026this.drawBorders(t,i),o\\u0026\\u0026this.drawControls(t,i),t.restore()},_setShadow:function(t){if(this.shadow){var i,r=this.shadow,n=this.canvas,o=n\\u0026\\u0026n.viewportTransform[0]||1,s=n\\u0026\\u0026n.viewportTransform[3]||1;i=r.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n\\u0026\\u0026n._isRetinaScaling()\\u0026\\u0026(o*=e.devicePixelRatio,s*=e.devicePixelRatio),t.shadowColor=r.color,t.shadowBlur=r.blur*e.browserShadowBlurConstant*(o+s)*(i.scaleX+i.scaleY)/4,t.shadowOffsetX=r.offsetX*o*i.scaleX,t.shadowOffsetY=r.offsetY*s*i.scaleY}},_removeShadow:function(t){this.shadow\\u0026\\u0026(t.shadowColor=\\\"\\\",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0)},_applyPatternGradientTransform:function(t,e){if(!e||!e.toLive)return{offsetX:0,offsetY:0};var i=e.gradientTransform||e.patternTransform,r=-this.width/2+e.offsetX||0,n=-this.height/2+e.offsetY||0;return\\\"percentage\\\"===e.gradientUnits?t.transform(this.width,0,0,this.height,r,n):t.transform(1,0,0,1,r,n),i\\u0026\\u0026t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:r,offsetY:n}},_renderPaintInOrder:function(t){\\\"stroke\\\"===this.paintFirst?(this._renderStroke(t),this._renderFill(t)):(this._renderFill(t),this._renderStroke(t))},_render:function(){},_renderFill:function(t){this.fill\\u0026\\u0026(t.save(),this._setFillStyles(t,this),\\\"evenodd\\\"===this.fillRule?t.fill(\\\"evenodd\\\"):t.fill(),t.restore())},_renderStroke:function(t){if(this.stroke\\u0026\\u00260!==this.strokeWidth){if(this.shadow\\u0026\\u0026!this.shadow.affectStroke\\u0026\\u0026this._removeShadow(t),t.save(),this.strokeUniform\\u0026\\u0026this.group){var e=this.getObjectScaling();t.scale(1/e.scaleX,1/e.scaleY)}else this.strokeUniform\\u0026\\u0026t.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(t,this.strokeDashArray),this._setStrokeStyles(t,this),t.stroke(),t.restore()}},_applyPatternForTransformedGradient:function(t,i){var r,n=this._limitCacheSize(this._getCacheCanvasDimensions()),o=e.util.createCanvasElement(),s=this.canvas.getRetinaScaling(),a=n.x/this.scaleX/s,h=n.y/this.scaleY/s;o.width=a,o.height=h,(r=o.getContext(\\\"2d\\\")).beginPath(),r.moveTo(0,0),r.lineTo(a,0),r.lineTo(a,h),r.lineTo(0,h),r.closePath(),r.translate(a/2,h/2),r.scale(n.zoomX/this.scaleX/s,n.zoomY/this.scaleY/s),this._applyPatternGradientTransform(r,i),r.fillStyle=i.toLive(t),r.fill(),t.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),t.scale(s*this.scaleX/n.zoomX,s*this.scaleY/n.zoomY),t.strokeStyle=r.createPattern(o,\\\"no-repeat\\\")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var t=e.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set(\\\"scaleX\\\",t.scaleX),this.set(\\\"scaleY\\\",t.scaleY),this.angle=t.angle,this.skewX=t.skewX,this.skewY=0}},_removeTransformMatrix:function(t){var i=this._findCenterFromElement();this.transformMatrix\\u0026\\u0026(this._assignTransformMatrixProps(),i=e.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,t\\u0026\\u0026(this.scaleX*=t.scaleX,this.scaleY*=t.scaleY,this.cropX=t.cropX,this.cropY=t.cropY,i.x+=t.offsetLeft,i.y+=t.offsetTop,this.width=t.width,this.height=t.height),this.setPositionByOrigin(i,\\\"center\\\",\\\"center\\\")},clone:function(t,i){var r=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(r,t):e.Object._fromObject(\\\"Object\\\",r,t)},cloneAsImage:function(t,i){var r=this.toCanvasElement(i);return t\\u0026\\u0026t(new e.Image(r)),this},toCanvasElement:function(t){t||(t={});var i=e.util,r=i.saveObjectTransform(this),n=this.group,o=this.shadow,s=Math.abs,a=(t.multiplier||1)*(t.enableRetinaScaling?e.devicePixelRatio:1);delete this.group,t.withoutTransform\\u0026\\u0026i.resetObjectTransform(this),t.withoutShadow\\u0026\\u0026(this.shadow=null);var h,c,l,u,f=e.util.createCanvasElement(),d=this.getBoundingRect(!0,!0),g=this.shadow,p={x:0,y:0};g\\u0026\\u0026(c=g.blur,h=g.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),p.x=2*Math.round(s(g.offsetX)+c)*s(h.scaleX),p.y=2*Math.round(s(g.offsetY)+c)*s(h.scaleY)),l=d.width+p.x,u=d.height+p.y,f.width=Math.ceil(l),f.height=Math.ceil(u);var v=new e.StaticCanvas(f,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});\\\"jpeg\\\"===t.format\\u0026\\u0026(v.backgroundColor=\\\"#fff\\\"),this.setPositionByOrigin(new e.Point(v.width/2,v.height/2),\\\"center\\\",\\\"center\\\");var m=this.canvas;v.add(this);var y=v.toCanvasElement(a||1,t);return this.shadow=o,this.set(\\\"canvas\\\",m),n\\u0026\\u0026(this.group=n),this.set(r).setCoords(),v._objects=[],v.dispose(),v=null,y},toDataURL:function(t){return t||(t={}),e.util.toDataURL(this.toCanvasElement(t),t.format||\\\"png\\\",t.quality||1)},isType:function(t){return this.type===t},complexity:function(){return 1},toJSON:function(t){return this.toObject(t)},rotate:function(t){var e=(\\\"center\\\"!==this.originX||\\\"center\\\"!==this.originY)\\u0026\\u0026this.centeredRotation;return e\\u0026\\u0026this._setOriginToCenter(),this.set(\\\"angle\\\",t),e\\u0026\\u0026this._resetOrigin(),this},centerH:function(){return this.canvas\\u0026\\u0026this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas\\u0026\\u0026this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas\\u0026\\u0026this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas\\u0026\\u0026this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas\\u0026\\u0026this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas\\u0026\\u0026this.canvas.viewportCenterObject(this),this},getLocalPointer:function(t,i){i=i||this.canvas.getPointer(t);var r=new e.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle\\u0026\\u0026(r=e.util.rotatePoint(r,n,s(-this.angle))),{x:r.x-n.x,y:r.y-n.y}},_setupCompositeOperation:function(t){this.globalCompositeOperation\\u0026\\u0026(t.globalCompositeOperation=this.globalCompositeOperation)}}),e.util.createAccessors\\u0026\\u0026e.util.createAccessors(e.Object),i(e.Object.prototype,e.Observable),e.Object.NUM_FRACTION_DIGITS=2,e.Object._fromObject=function(t,i,n,o){var s=e[t];i=r(i,!0),e.util.enlivenPatterns([i.fill,i.stroke],(function(t){void 0!==t[0]\\u0026\\u0026(i.fill=t[0]),void 0!==t[1]\\u0026\\u0026(i.stroke=t[1]),e.util.enlivenObjects([i.clipPath],(function(t){i.clipPath=t[0];var e=o?new s(i[o],i):new s(i);n\\u0026\\u0026n(e)}))}))},e.Object.__uid=0)}(t),function(){var t=T.util.degreesToRadians,e={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};T.util.object.extend(T.Object.prototype,{translateToGivenOrigin:function(t,r,n,o,s){var a,h,c,l=t.x,u=t.y;return\\\"string\\\"==typeof r?r=e[r]:r-=.5,\\\"string\\\"==typeof o?o=e[o]:o-=.5,\\\"string\\\"==typeof n?n=i[n]:n-=.5,\\\"string\\\"==typeof s?s=i[s]:s-=.5,h=s-n,((a=o-r)||h)\\u0026\\u0026(c=this._getTransformedDimensions(),l=t.x+a*c.x,u=t.y+h*c.y),new T.Point(l,u)},translateToCenterPoint:function(e,i,r){var n=this.translateToGivenOrigin(e,i,r,\\\"center\\\",\\\"center\\\");return this.angle?T.util.rotatePoint(n,e,t(this.angle)):n},translateToOriginPoint:function(e,i,r){var n=this.translateToGivenOrigin(e,\\\"center\\\",\\\"center\\\",i,r);return this.angle?T.util.rotatePoint(n,e,t(this.angle)):n},getCenterPoint:function(){var t=new T.Point(this.left,this.top);return this.translateToCenterPoint(t,this.originX,this.originY)},getPointByOrigin:function(t,e){var i=this.getCenterPoint();return this.translateToOriginPoint(i,t,e)},toLocalPoint:function(e,i,r){var n,o,s=this.getCenterPoint();return n=void 0!==i\\u0026\\u0026void 0!==r?this.translateToGivenOrigin(s,\\\"center\\\",\\\"center\\\",i,r):new T.Point(this.left,this.top),o=new T.Point(e.x,e.y),this.angle\\u0026\\u0026(o=T.util.rotatePoint(o,s,-t(this.angle))),o.subtractEquals(n)},setPositionByOrigin:function(t,e,i){var r=this.translateToCenterPoint(t,e,i),n=this.translateToOriginPoint(r,this.originX,this.originY);this.set(\\\"left\\\",n.x),this.set(\\\"top\\\",n.y)},adjustPosition:function(i){var r,n,o=t(this.angle),s=this.getScaledWidth(),a=T.util.cos(o)*s,h=T.util.sin(o)*s;r=\\\"string\\\"==typeof this.originX?e[this.originX]:this.originX-.5,n=\\\"string\\\"==typeof i?e[i]:i-.5,this.left+=a*(n-r),this.top+=h*(n-r),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var t=this.getCenterPoint();this.originX=\\\"center\\\",this.originY=\\\"center\\\",this.left=t.x,this.top=t.y},_resetOrigin:function(){var t=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=t.x,this.top=t.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),\\\"left\\\",\\\"top\\\")}})}(),function(){var t=T.util,e=t.degreesToRadians,i=t.multiplyTransformMatrices,r=t.transformPoint;t.object.extend(T.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(t,e){return e?t?this.calcACoords():this.calcLineCoords():(this.aCoords\\u0026\\u0026this.lineCoords||this.setCoords(!0),t?this.aCoords:this.lineCoords)},getCoords:function(t,e){return i=this._getCoords(t,e),[new T.Point(i.tl.x,i.tl.y),new T.Point(i.tr.x,i.tr.y),new T.Point(i.br.x,i.br.y),new T.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(t,e,i,r){var n=this.getCoords(i,r);return\\\"Intersection\\\"===T.Intersection.intersectPolygonRectangle(n,t,e).status},intersectsWithObject:function(t,e,i){return\\\"Intersection\\\"===T.Intersection.intersectPolygonPolygon(this.getCoords(e,i),t.getCoords(e,i)).status||t.isContainedWithinObject(this,e,i)||this.isContainedWithinObject(t,e,i)},isContainedWithinObject:function(t,e,i){for(var r=this.getCoords(e,i),n=e?t.aCoords:t.lineCoords,o=0,s=t._getImageLines(n);o\\u003c4;o++)if(!t.containsPoint(r[o],s))return!1;return!0},isContainedWithinRect:function(t,e,i,r){var n=this.getBoundingRect(i,r);return n.left\\u003e=t.x\\u0026\\u0026n.left+n.width\\u003c=e.x\\u0026\\u0026n.top\\u003e=t.y\\u0026\\u0026n.top+n.height\\u003c=e.y},containsPoint:function(t,e,i,r){var n=this._getCoords(i,r),o=(e=e||this._getImageLines(n),this._findCrossPoints(t,e));return 0!==o\\u0026\\u0026o%2==1},isOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,t).some((function(t){return t.x\\u003c=i.x\\u0026\\u0026t.x\\u003e=e.x\\u0026\\u0026t.y\\u003c=i.y\\u0026\\u0026t.y\\u003e=e.y}))||(!!this.intersectsWithRect(e,i,!0,t)||this._containsCenterOfCanvas(e,i,t))},_containsCenterOfCanvas:function(t,e,i){var r={x:(t.x+e.x)/2,y:(t.y+e.y)/2};return!!this.containsPoint(r,null,!0,i)},isPartiallyOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(e,i,!0,t)||this.getCoords(!0,t).every((function(t){return(t.x\\u003e=i.x||t.x\\u003c=e.x)\\u0026\\u0026(t.y\\u003e=i.y||t.y\\u003c=e.y)}))\\u0026\\u0026this._containsCenterOfCanvas(e,i,t)},_getImageLines:function(t){return{topline:{o:t.tl,d:t.tr},rightline:{o:t.tr,d:t.br},bottomline:{o:t.br,d:t.bl},leftline:{o:t.bl,d:t.tl}}},_findCrossPoints:function(t,e){var i,r,n,o=0;for(var s in e)if(!((n=e[s]).o.y\\u003ct.y\\u0026\\u0026n.d.y\\u003ct.y||n.o.y\\u003e=t.y\\u0026\\u0026n.d.y\\u003e=t.y||(n.o.x===n.d.x\\u0026\\u0026n.o.x\\u003e=t.x?r=n.o.x:(0,i=(n.d.y-n.o.y)/(n.d.x-n.o.x),r=-(t.y-0*t.x-(n.o.y-i*n.o.x))/(0-i)),r\\u003e=t.x\\u0026\\u0026(o+=1),2!==o)))break;return o},getBoundingRect:function(e,i){var r=this.getCoords(e,i);return t.makeBoundingBoxFromPoints(r)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(t){return Math.abs(t)\\u003cthis.minScaleLimit?t\\u003c0?-this.minScaleLimit:this.minScaleLimit:0===t?1e-4:t},scale:function(t){return this._set(\\\"scaleX\\\",t),this._set(\\\"scaleY\\\",t),this.setCoords()},scaleToWidth:function(t,e){var i=this.getBoundingRect(e).width/this.getScaledWidth();return this.scale(t/this.width/i)},scaleToHeight:function(t,e){var i=this.getBoundingRect(e).height/this.getScaledHeight();return this.scale(t/this.height/i)},calcCoords:function(t){return t?this.calcACoords():this.calcOCoords()},calcLineCoords:function(){var i=this.getViewportTransform(),n=this.padding,o=e(this.angle),s=t.cos(o)*n,a=t.sin(o)*n,h=s+a,c=s-a,l=this.calcACoords(),u={tl:r(l.tl,i),tr:r(l.tr,i),bl:r(l.bl,i),br:r(l.br,i)};return n\\u0026\\u0026(u.tl.x-=c,u.tl.y-=h,u.tr.x+=h,u.tr.y-=c,u.bl.x-=h,u.bl.y+=c,u.br.x+=c,u.br.y+=h),u},calcOCoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),r=this.getViewportTransform(),n=i(r,e),o=i(n,t),s=(o=i(o,[1/r[0],0,0,1/r[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(t,e,i){a[e]=t.positionHandler(s,o,i)})),a},calcACoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),n=i(e,t),o=this._getTransformedDimensions(),s=o.x/2,a=o.y/2;return{tl:r({x:-s,y:-a},n),tr:r({x:s,y:-a},n),bl:r({x:-s,y:a},n),br:r({x:s,y:a},n)}},setCoords:function(t){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),t||(this.oCoords=this.calcOCoords(),this._setCornerCoords\\u0026\\u0026this._setCornerCoords()),this},_calcRotateMatrix:function(){return t.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var t=this.getCenterPoint();return[1,0,0,1,t.x,t.y]},transformMatrixKey:function(t){var e=\\\"_\\\",i=\\\"\\\";return!t\\u0026\\u0026this.group\\u0026\\u0026(i=this.group.transformMatrixKey(t)+e),i+this.top+e+this.left+e+this.scaleX+e+this.scaleY+e+this.skewX+e+this.skewY+e+this.angle+e+this.originX+e+this.originY+e+this.width+e+this.height+e+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(t){var e=this.calcOwnMatrix();if(t||!this.group)return e;var r=this.transformMatrixKey(t),n=this.matrixCache||(this.matrixCache={});return n.key===r?n.value:(this.group\\u0026\\u0026(e=i(this.group.calcTransformMatrix(!1),e)),n.key=r,n.value=e,e)},calcOwnMatrix:function(){var e=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===e)return i.value;var r=this._calcTranslateMatrix(),n={angle:this.angle,translateX:r[4],translateY:r[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=e,i.value=t.composeMatrix(n),i.value},_calcDimensionsTransformMatrix:function(e,i,r){return t.calcDimensionsMatrix({skewX:e,skewY:i,scaleX:this.scaleX*(r\\u0026\\u0026this.flipX?-1:1),scaleY:this.scaleY*(r\\u0026\\u0026this.flipY?-1:1)})},_getNonTransformedDimensions:function(){var t=this.strokeWidth;return{x:this.width+t,y:this.height+t}},_getTransformedDimensions:function(e,i){void 0===e\\u0026\\u0026(e=this.skewX),void 0===i\\u0026\\u0026(i=this.skewY);var r,n,o,s=0===e\\u0026\\u00260===i;if(this.strokeUniform?(n=this.width,o=this.height):(n=(r=this._getNonTransformedDimensions()).x,o=r.y),s)return this._finalizeDimensions(n*this.scaleX,o*this.scaleY);var a=t.sizeAfterTransform(n,o,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:e,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(t,e){return this.strokeUniform?{x:t+this.strokeWidth,y:e+this.strokeWidth}:{x:t,y:e}},_calculateCurrentDimensions:function(){var t=this.getViewportTransform(),e=this._getTransformedDimensions();return r(e,t,!0).scalarAdd(2*this.padding)}})}(),T.util.object.extend(T.Object.prototype,{sendToBack:function(){return this.group?T.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas\\u0026\\u0026this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?T.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas\\u0026\\u0026this.canvas.bringToFront(this),this},sendBackwards:function(t){return this.group?T.StaticCanvas.prototype.sendBackwards.call(this.group,this,t):this.canvas\\u0026\\u0026this.canvas.sendBackwards(this,t),this},bringForward:function(t){return this.group?T.StaticCanvas.prototype.bringForward.call(this.group,this,t):this.canvas\\u0026\\u0026this.canvas.bringForward(this,t),this},moveTo:function(t){return this.group\\u0026\\u0026\\\"activeSelection\\\"!==this.group.type?T.StaticCanvas.prototype.moveTo.call(this.group,this,t):this.canvas\\u0026\\u0026this.canvas.moveTo(this,t),this}}),function(){function t(t,e){if(e){if(e.toLive)return t+\\\": url(#SVGID_\\\"+e.id+\\\"); \\\";var i=new T.Color(e),r=t+\\\": \\\"+i.toRgb()+\\\"; \\\",n=i.getAlpha();return 1!==n\\u0026\\u0026(r+=t+\\\"-opacity: \\\"+n.toString()+\\\"; \\\"),r}return t+\\\": none; \\\"}var e=T.util.toFixed;T.util.object.extend(T.Object.prototype,{getSvgStyles:function(e){var i=this.fillRule?this.fillRule:\\\"nonzero\\\",r=this.strokeWidth?this.strokeWidth:\\\"0\\\",n=this.strokeDashArray?this.strokeDashArray.join(\\\" \\\"):\\\"none\\\",o=this.strokeDashOffset?this.strokeDashOffset:\\\"0\\\",s=this.strokeLineCap?this.strokeLineCap:\\\"butt\\\",a=this.strokeLineJoin?this.strokeLineJoin:\\\"miter\\\",h=this.strokeMiterLimit?this.strokeMiterLimit:\\\"4\\\",c=void 0!==this.opacity?this.opacity:\\\"1\\\",l=this.visible?\\\"\\\":\\\" visibility: hidden;\\\",u=e?\\\"\\\":this.getSvgFilter(),f=t(\\\"fill\\\",this.fill);return[t(\\\"stroke\\\",this.stroke),\\\"stroke-width: \\\",r,\\\"; \\\",\\\"stroke-dasharray: \\\",n,\\\"; \\\",\\\"stroke-linecap: \\\",s,\\\"; \\\",\\\"stroke-dashoffset: \\\",o,\\\"; \\\",\\\"stroke-linejoin: \\\",a,\\\"; \\\",\\\"stroke-miterlimit: \\\",h,\\\"; \\\",f,\\\"fill-rule: \\\",i,\\\"; \\\",\\\"opacity: \\\",c,\\\";\\\",u,l].join(\\\"\\\")},getSvgSpanStyles:function(e,i){var r=\\\"; \\\",n=e.fontFamily?\\\"font-family: \\\"+(-1===e.fontFamily.indexOf(\\\"'\\\")\\u0026\\u0026-1===e.fontFamily.indexOf('\\\"')?\\\"'\\\"+e.fontFamily+\\\"'\\\":e.fontFamily)+r:\\\"\\\",o=e.strokeWidth?\\\"stroke-width: \\\"+e.strokeWidth+r:\\\"\\\",s=(n=n,e.fontSize?\\\"font-size: \\\"+e.fontSize+\\\"px\\\"+r:\\\"\\\"),a=e.fontStyle?\\\"font-style: \\\"+e.fontStyle+r:\\\"\\\",h=e.fontWeight?\\\"font-weight: \\\"+e.fontWeight+r:\\\"\\\",c=e.fill?t(\\\"fill\\\",e.fill):\\\"\\\",l=e.stroke?t(\\\"stroke\\\",e.stroke):\\\"\\\",u=this.getSvgTextDecoration(e);return u\\u0026\\u0026(u=\\\"text-decoration: \\\"+u+r),[l,o,n,s,a,h,u,c,e.deltaY?\\\"baseline-shift: \\\"+-e.deltaY+\\\"; \\\":\\\"\\\",i?\\\"white-space: pre; \\\":\\\"\\\"].join(\\\"\\\")},getSvgTextDecoration:function(t){return[\\\"overline\\\",\\\"underline\\\",\\\"line-through\\\"].filter((function(e){return t[e.replace(\\\"-\\\",\\\"\\\")]})).join(\\\" \\\")},getSvgFilter:function(){return this.shadow?\\\"filter: url(#SVGID_\\\"+this.shadow.id+\\\");\\\":\\\"\\\"},getSvgCommons:function(){return[this.id?'id=\\\"'+this.id+'\\\" ':\\\"\\\",this.clipPath?'clip-path=\\\"url(#'+this.clipPath.clipPathId+')\\\" ':\\\"\\\"].join(\\\"\\\")},getSvgTransform:function(t,e){var i=t?this.calcTransformMatrix():this.calcOwnMatrix();return'transform=\\\"'+T.util.matrixToSVG(i)+(e||\\\"\\\")+'\\\" '},_setSVGBg:function(t){if(this.backgroundColor){var i=T.Object.NUM_FRACTION_DIGITS;t.push(\\\"\\\\t\\\\t\\u003crect \\\",this._getFillAttributes(this.backgroundColor),' x=\\\"',e(-this.width/2,i),'\\\" y=\\\"',e(-this.height/2,i),'\\\" width=\\\"',e(this.width,i),'\\\" height=\\\"',e(this.height,i),'\\\"\\u003e\\u003c/rect\\u003e\\\\n')}},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(t),{reviver:t})},toClipPathSVG:function(t){return\\\"\\\\t\\\"+this._createBaseClipPathSVGMarkup(this._toSVG(t),{reviver:t})},_createBaseClipPathSVGMarkup:function(t,e){var i=(e=e||{}).reviver,r=e.additionalTransform||\\\"\\\",n=[this.getSvgTransform(!0,r),this.getSvgCommons()].join(\\\"\\\"),o=t.indexOf(\\\"COMMON_PARTS\\\");return t[o]=n,i?i(t.join(\\\"\\\")):t.join(\\\"\\\")},_createBaseSVGMarkup:function(t,e){var i,r,n=(e=e||{}).noStyle,o=e.reviver,s=n?\\\"\\\":'style=\\\"'+this.getSvgStyles()+'\\\" ',a=e.withShadow?'style=\\\"'+this.getSvgFilter()+'\\\" ':\\\"\\\",h=this.clipPath,c=this.strokeUniform?'vector-effect=\\\"non-scaling-stroke\\\" ':\\\"\\\",l=h\\u0026\\u0026h.absolutePositioned,u=this.stroke,f=this.fill,d=this.shadow,g=[],p=t.indexOf(\\\"COMMON_PARTS\\\"),v=e.additionalTransform;return h\\u0026\\u0026(h.clipPathId=\\\"CLIPPATH_\\\"+T.Object.__uid++,r='\\u003cclipPath id=\\\"'+h.clipPathId+'\\\" \\u003e\\\\n'+h.toClipPathSVG(o)+\\\"\\u003c/clipPath\\u003e\\\\n\\\"),l\\u0026\\u0026g.push(\\\"\\u003cg \\\",a,this.getSvgCommons(),\\\" \\u003e\\\\n\\\"),g.push(\\\"\\u003cg \\\",this.getSvgTransform(!1),l?\\\"\\\":a+this.getSvgCommons(),\\\" \\u003e\\\\n\\\"),i=[s,c,n?\\\"\\\":this.addPaintOrder(),\\\" \\\",v?'transform=\\\"'+v+'\\\" ':\\\"\\\"].join(\\\"\\\"),t[p]=i,f\\u0026\\u0026f.toLive\\u0026\\u0026g.push(f.toSVG(this)),u\\u0026\\u0026u.toLive\\u0026\\u0026g.push(u.toSVG(this)),d\\u0026\\u0026g.push(d.toSVG(this)),h\\u0026\\u0026g.push(r),g.push(t.join(\\\"\\\")),g.push(\\\"\\u003c/g\\u003e\\\\n\\\"),l\\u0026\\u0026g.push(\\\"\\u003c/g\\u003e\\\\n\\\"),o?o(g.join(\\\"\\\")):g.join(\\\"\\\")},addPaintOrder:function(){return\\\"fill\\\"!==this.paintFirst?' paint-order=\\\"'+this.paintFirst+'\\\" ':\\\"\\\"}})}(),function(){var t=T.util.object.extend,e=\\\"stateProperties\\\";function i(e,i,r){var n={};r.forEach((function(t){n[t]=e[t]})),t(e[i],n,!0)}function r(t,e,i){if(t===e)return!0;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0,o=t.length;n\\u003co;n++)if(!r(t[n],e[n]))return!1;return!0}if(t\\u0026\\u0026\\\"object\\\"==typeof t){var s,a=Object.keys(t);if(!e||\\\"object\\\"!=typeof e||!i\\u0026\\u0026a.length!==Object.keys(e).length)return!1;for(n=0,o=a.length;n\\u003co;n++)if(\\\"canvas\\\"!==(s=a[n])\\u0026\\u0026\\\"group\\\"!==s\\u0026\\u0026!r(t[s],e[s]))return!1;return!0}}T.util.object.extend(T.Object.prototype,{hasStateChanged:function(t){var i=\\\"_\\\"+(t=t||e);return Object.keys(this[i]).length\\u003cthis[t].length||!r(this[i],this,!0)},saveState:function(t){var r=t\\u0026\\u0026t.propertySet||e,n=\\\"_\\\"+r;return this[n]?(i(this,n,this[r]),t\\u0026\\u0026t.stateProperties\\u0026\\u0026i(this,n,t.stateProperties),this):this.setupState(t)},setupState:function(t){var i=(t=t||{}).propertySet||e;return t.propertySet=i,this[\\\"_\\\"+i]={},this.saveState(t),this}})}(),function(){var t=T.util.degreesToRadians;T.util.object.extend(T.Object.prototype,{_findTargetCorner:function(t,e){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,r,n,o=t.x,s=t.y,a=Object.keys(this.oCoords),h=a.length-1;for(this.__corner=0;h\\u003e=0;h--)if(n=a[h],this.isControlVisible(n)\\u0026\\u0026(r=this._getImageLines(e?this.oCoords[n].touchCorner:this.oCoords[n].corner),0!==(i=this._findCrossPoints({x:o,y:s},r))\\u0026\\u0026i%2==1))return this.__corner=n,n;return!1},forEachControl:function(t){for(var e in this.controls)t(this.controls[e],e,this)},_setCornerCoords:function(){var t=this.oCoords;for(var e in t){var i=this.controls[e];t[e].corner=i.calcCornerCoords(this.angle,this.cornerSize,t[e].x,t[e].y,!1),t[e].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,t[e].x,t[e].y,!0)}},drawSelectionBackground:function(e){if(!this.selectionBackgroundColor||this.canvas\\u0026\\u0026!this.canvas.interactive||this.canvas\\u0026\\u0026this.canvas._activeObject!==this)return this;e.save();var i=this.getCenterPoint(),r=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return e.translate(i.x,i.y),e.scale(1/n[0],1/n[3]),e.rotate(t(this.angle)),e.fillStyle=this.selectionBackgroundColor,e.fillRect(-r.x/2,-r.y/2,r.x,r.y),e.restore(),this},drawBorders:function(t,e){e=e||{};var i=this._calculateCurrentDimensions(),r=this.borderScaleFactor,n=i.x+r,o=i.y+r,s=void 0!==e.hasControls?e.hasControls:this.hasControls,a=!1;return t.save(),t.strokeStyle=e.borderColor||this.borderColor,this._setLineDash(t,e.borderDashArray||this.borderDashArray),t.strokeRect(-n/2,-o/2,n,o),s\\u0026\\u0026(t.beginPath(),this.forEachControl((function(e,i,r){e.withConnection\\u0026\\u0026e.getVisibility(r,i)\\u0026\\u0026(a=!0,t.moveTo(e.x*n,e.y*o),t.lineTo(e.x*n+e.offsetX,e.y*o+e.offsetY))})),a\\u0026\\u0026t.stroke()),t.restore(),this},drawBordersInGroup:function(t,e,i){i=i||{};var r=T.util.sizeAfterTransform(this.width,this.height,e),n=this.strokeWidth,o=this.strokeUniform,s=this.borderScaleFactor,a=r.x+n*(o?this.canvas.getZoom():e.scaleX)+s,h=r.y+n*(o?this.canvas.getZoom():e.scaleY)+s;return t.save(),this._setLineDash(t,i.borderDashArray||this.borderDashArray),t.strokeStyle=i.borderColor||this.borderColor,t.strokeRect(-a/2,-h/2,a,h),t.restore(),this},drawControls:function(t,e){e=e||{},t.save();var i,r,n=this.canvas.getRetinaScaling();return t.setTransform(n,0,0,n,0,0),t.strokeStyle=t.fillStyle=e.cornerColor||this.cornerColor,this.transparentCorners||(t.strokeStyle=e.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(t,e.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group\\u0026\\u0026(i=this.group.calcTransformMatrix()),this.forEachControl((function(n,o,s){r=s.oCoords[o],n.getVisibility(s,o)\\u0026\\u0026(i\\u0026\\u0026(r=T.util.transformPoint(r,i)),n.render(t,r.x,r.y,e,s))})),t.restore(),this},isControlVisible:function(t){return this.controls[t]\\u0026\\u0026this.controls[t].getVisibility(this,t)},setControlVisible:function(t,e){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[t]=e,this},setControlsVisibility:function(t){for(var e in t||(t={}),t)this.setControlVisible(e,t[e]);return this},onDeselect:function(){},onSelect:function(){}})}(),T.util.object.extend(T.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(e){t.set(\\\"left\\\",e),o.requestRenderAll(),n()},onComplete:function(){t.setCoords(),r()}}),this},fxCenterObjectV:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(e){t.set(\\\"top\\\",e),o.requestRenderAll(),n()},onComplete:function(){t.setCoords(),r()}}),this},fxRemove:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(e){t.set(\\\"opacity\\\",e),o.requestRenderAll(),n()},onComplete:function(){o.remove(t),r()}}),this}}),T.util.object.extend(T.Object.prototype,{animate:function(){if(arguments[0]\\u0026\\u0026\\\"object\\\"==typeof arguments[0]){var t,e,i=[];for(t in arguments[0])i.push(t);for(var r=0,n=i.length;r\\u003cn;r++)t=i[r],e=r!==n-1,this._animate(t,arguments[0][t],arguments[1],e)}else this._animate.apply(this,arguments);return this},_animate:function(t,e,i,r){var n,o=this;e=e.toString(),i=i?T.util.object.clone(i):{},~t.indexOf(\\\".\\\")\\u0026\\u0026(n=t.split(\\\".\\\"));var s=o.colorProperties.indexOf(t)\\u003e-1||n\\u0026\\u0026o.colorProperties.indexOf(n[1])\\u003e-1,a=n?this.get(n[0])[n[1]]:this.get(t);\\\"from\\\"in i||(i.from=a),s||(e=~e.indexOf(\\\"=\\\")?a+parseFloat(e.replace(\\\"=\\\",\\\"\\\")):parseFloat(e));var h={startValue:i.from,endValue:e,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort\\u0026\\u0026function(t,e,r){return i.abort.call(o,t,e,r)},onChange:function(e,s,a){n?o[n[0]][n[1]]=e:o.set(t,e),r||i.onChange\\u0026\\u0026i.onChange(e,s,a)},onComplete:function(t,e,n){r||(o.setCoords(),i.onComplete\\u0026\\u0026i.onComplete(t,e,n))}};return s?T.util.animateColor(h.startValue,h.endValue,h.duration,h):T.util.animate(h)}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function o(t,e){var i=t.origin,r=t.axis1,n=t.axis2,o=t.dimension,s=e.nearest,a=e.center,h=e.farthest;return function(){switch(this.get(i)){case s:return Math.min(this.get(r),this.get(n));case a:return Math.min(this.get(r),this.get(n))+.5*this.get(o);case h:return Math.max(this.get(r),this.get(n))}}}e.Line?e.warn(\\\"fabric.Line is already defined\\\"):(e.Line=e.util.createClass(e.Object,{type:\\\"line\\\",x1:0,y1:0,x2:0,y2:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"x1\\\",\\\"x2\\\",\\\"y1\\\",\\\"y2\\\"),initialize:function(t,e){t||(t=[0,0,0,0]),this.callSuper(\\\"initialize\\\",e),this.set(\\\"x1\\\",t[0]),this.set(\\\"y1\\\",t[1]),this.set(\\\"x2\\\",t[2]),this.set(\\\"y2\\\",t[3]),this._setWidthHeight(e)},_setWidthHeight:function(t){t||(t={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left=\\\"left\\\"in t?t.left:this._getLeftToOriginX(),this.top=\\\"top\\\"in t?t.top:this._getTopToOriginY()},_set:function(t,e){return this.callSuper(\\\"_set\\\",t,e),void 0!==n[t]\\u0026\\u0026this._setWidthHeight(),this},_getLeftToOriginX:o({origin:\\\"originX\\\",axis1:\\\"x1\\\",axis2:\\\"x2\\\",dimension:\\\"width\\\"},{nearest:\\\"left\\\",center:\\\"center\\\",farthest:\\\"right\\\"}),_getTopToOriginY:o({origin:\\\"originY\\\",axis1:\\\"y1\\\",axis2:\\\"y2\\\",dimension:\\\"height\\\"},{nearest:\\\"top\\\",center:\\\"center\\\",farthest:\\\"bottom\\\"}),_render:function(t){t.beginPath();var e=this.calcLinePoints();t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.lineWidth=this.strokeWidth;var i=t.strokeStyle;t.strokeStyle=this.stroke||t.fillStyle,this.stroke\\u0026\\u0026this._renderStroke(t),t.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(t){return i(this.callSuper(\\\"toObject\\\",t),this.calcLinePoints())},_getNonTransformedDimensions:function(){var t=this.callSuper(\\\"_getNonTransformedDimensions\\\");return\\\"butt\\\"===this.strokeLineCap\\u0026\\u0026(0===this.width\\u0026\\u0026(t.y-=this.strokeWidth),0===this.height\\u0026\\u0026(t.x-=this.strokeWidth)),t},calcLinePoints:function(){var t=this.x1\\u003c=this.x2?-1:1,e=this.y1\\u003c=this.y2?-1:1,i=t*this.width*.5,r=e*this.height*.5;return{x1:i,x2:t*this.width*-.5,y1:r,y2:e*this.height*-.5}},_toSVG:function(){var t=this.calcLinePoints();return[\\\"\\u003cline \\\",\\\"COMMON_PARTS\\\",'x1=\\\"',t.x1,'\\\" y1=\\\"',t.y1,'\\\" x2=\\\"',t.x2,'\\\" y2=\\\"',t.y2,'\\\" /\\u003e\\\\n']}}),e.Line.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"x1 y1 x2 y2\\\".split(\\\" \\\")),e.Line.fromElement=function(t,r,n){n=n||{};var o=e.parseAttributes(t,e.Line.ATTRIBUTE_NAMES),s=[o.x1||0,o.y1||0,o.x2||0,o.y2||0];r(new e.Line(s,i(o,n)))},e.Line.fromObject=function(t,i){var n=r(t,!0);n.points=[t.x1,t.y1,t.x2,t.y2],e.Object._fromObject(\\\"Line\\\",n,(function(t){delete t.points,i\\u0026\\u0026i(t)}),\\\"points\\\")})}(t),function(t){var e=t.fabric||(t.fabric={}),i=Math.PI;e.Circle?e.warn(\\\"fabric.Circle is already defined.\\\"):(e.Circle=e.util.createClass(e.Object,{type:\\\"circle\\\",radius:0,startAngle:0,endAngle:2*i,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"radius\\\",\\\"startAngle\\\",\\\"endAngle\\\"),_set:function(t,e){return this.callSuper(\\\"_set\\\",t,e),\\\"radius\\\"===t\\u0026\\u0026this.setRadius(e),this},toObject:function(t){return this.callSuper(\\\"toObject\\\",[\\\"radius\\\",\\\"startAngle\\\",\\\"endAngle\\\"].concat(t))},_toSVG:function(){var t,r=(this.endAngle-this.startAngle)%(2*i);if(0===r)t=[\\\"\\u003ccircle \\\",\\\"COMMON_PARTS\\\",'cx=\\\"0\\\" cy=\\\"0\\\" ','r=\\\"',this.radius,'\\\" /\\u003e\\\\n'];else{var n=e.util.cos(this.startAngle)*this.radius,o=e.util.sin(this.startAngle)*this.radius,s=e.util.cos(this.endAngle)*this.radius,a=e.util.sin(this.endAngle)*this.radius,h=r\\u003ei?\\\"1\\\":\\\"0\\\";t=['\\u003cpath d=\\\"M '+n+\\\" \\\"+o,\\\" A \\\"+this.radius+\\\" \\\"+this.radius,\\\" 0 \\\",+h+\\\" 1\\\",\\\" \\\"+s+\\\" \\\"+a,'\\\" ',\\\"COMMON_PARTS\\\",\\\" /\\u003e\\\\n\\\"]}return t},_render:function(t){t.beginPath(),t.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(t)},getRadiusX:function(){return this.get(\\\"radius\\\")*this.get(\\\"scaleX\\\")},getRadiusY:function(){return this.get(\\\"radius\\\")*this.get(\\\"scaleY\\\")},setRadius:function(t){return this.radius=t,this.set(\\\"width\\\",2*t).set(\\\"height\\\",2*t)}}),e.Circle.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"cx cy r\\\".split(\\\" \\\")),e.Circle.fromElement=function(t,i){var r,n=e.parseAttributes(t,e.Circle.ATTRIBUTE_NAMES);if(!(\\\"radius\\\"in(r=n)\\u0026\\u0026r.radius\\u003e=0))throw new Error(\\\"value of `r` attribute is required and can not be negative\\\");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new e.Circle(n))},e.Circle.fromObject=function(t,i){e.Object._fromObject(\\\"Circle\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={});e.Triangle?e.warn(\\\"fabric.Triangle is already defined\\\"):(e.Triangle=e.util.createClass(e.Object,{type:\\\"triangle\\\",width:100,height:100,_render:function(t){var e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,i),t.lineTo(0,-i),t.lineTo(e,i),t.closePath(),this._renderPaintInOrder(t)},_toSVG:function(){var t=this.width/2,e=this.height/2;return[\\\"\\u003cpolygon \\\",\\\"COMMON_PARTS\\\",'points=\\\"',[-t+\\\" \\\"+e,\\\"0 \\\"+-e,t+\\\" \\\"+e].join(\\\",\\\"),'\\\" /\\u003e']}}),e.Triangle.fromObject=function(t,i){return e.Object._fromObject(\\\"Triangle\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=2*Math.PI;e.Ellipse?e.warn(\\\"fabric.Ellipse is already defined.\\\"):(e.Ellipse=e.util.createClass(e.Object,{type:\\\"ellipse\\\",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"rx\\\",\\\"ry\\\"),initialize:function(t){this.callSuper(\\\"initialize\\\",t),this.set(\\\"rx\\\",t\\u0026\\u0026t.rx||0),this.set(\\\"ry\\\",t\\u0026\\u0026t.ry||0)},_set:function(t,e){switch(this.callSuper(\\\"_set\\\",t,e),t){case\\\"rx\\\":this.rx=e,this.set(\\\"width\\\",2*e);break;case\\\"ry\\\":this.ry=e,this.set(\\\"height\\\",2*e)}return this},getRx:function(){return this.get(\\\"rx\\\")*this.get(\\\"scaleX\\\")},getRy:function(){return this.get(\\\"ry\\\")*this.get(\\\"scaleY\\\")},toObject:function(t){return this.callSuper(\\\"toObject\\\",[\\\"rx\\\",\\\"ry\\\"].concat(t))},_toSVG:function(){return[\\\"\\u003cellipse \\\",\\\"COMMON_PARTS\\\",'cx=\\\"0\\\" cy=\\\"0\\\" ','rx=\\\"',this.rx,'\\\" ry=\\\"',this.ry,'\\\" /\\u003e\\\\n']},_render:function(t){t.beginPath(),t.save(),t.transform(1,0,0,this.ry/this.rx,0,0),t.arc(0,0,this.rx,0,i,!1),t.restore(),this._renderPaintInOrder(t)}}),e.Ellipse.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"cx cy rx ry\\\".split(\\\" \\\")),e.Ellipse.fromElement=function(t,i){var r=e.parseAttributes(t,e.Ellipse.ATTRIBUTE_NAMES);r.left=(r.left||0)-r.rx,r.top=(r.top||0)-r.ry,i(new e.Ellipse(r))},e.Ellipse.fromObject=function(t,i){e.Object._fromObject(\\\"Ellipse\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend;e.Rect?e.warn(\\\"fabric.Rect is already defined\\\"):(e.Rect=e.util.createClass(e.Object,{stateProperties:e.Object.prototype.stateProperties.concat(\\\"rx\\\",\\\"ry\\\"),type:\\\"rect\\\",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"rx\\\",\\\"ry\\\"),initialize:function(t){this.callSuper(\\\"initialize\\\",t),this._initRxRy()},_initRxRy:function(){this.rx\\u0026\\u0026!this.ry?this.ry=this.rx:this.ry\\u0026\\u0026!this.rx\\u0026\\u0026(this.rx=this.ry)},_render:function(t){var e=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,r=this.width,n=this.height,o=-this.width/2,s=-this.height/2,a=0!==e||0!==i,h=.4477152502;t.beginPath(),t.moveTo(o+e,s),t.lineTo(o+r-e,s),a\\u0026\\u0026t.bezierCurveTo(o+r-h*e,s,o+r,s+h*i,o+r,s+i),t.lineTo(o+r,s+n-i),a\\u0026\\u0026t.bezierCurveTo(o+r,s+n-h*i,o+r-h*e,s+n,o+r-e,s+n),t.lineTo(o+e,s+n),a\\u0026\\u0026t.bezierCurveTo(o+h*e,s+n,o,s+n-h*i,o,s+n-i),t.lineTo(o,s+i),a\\u0026\\u0026t.bezierCurveTo(o,s+h*i,o+h*e,s,o+e,s),t.closePath(),this._renderPaintInOrder(t)},toObject:function(t){return this.callSuper(\\\"toObject\\\",[\\\"rx\\\",\\\"ry\\\"].concat(t))},_toSVG:function(){return[\\\"\\u003crect \\\",\\\"COMMON_PARTS\\\",'x=\\\"',-this.width/2,'\\\" y=\\\"',-this.height/2,'\\\" rx=\\\"',this.rx,'\\\" ry=\\\"',this.ry,'\\\" width=\\\"',this.width,'\\\" height=\\\"',this.height,'\\\" /\\u003e\\\\n']}}),e.Rect.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"x y rx ry width height\\\".split(\\\" \\\")),e.Rect.fromElement=function(t,r,n){if(!t)return r(null);n=n||{};var o=e.parseAttributes(t,e.Rect.ATTRIBUTE_NAMES);o.left=o.left||0,o.top=o.top||0,o.height=o.height||0,o.width=o.width||0;var s=new e.Rect(i(n?e.util.object.clone(n):{},o));s.visible=s.visible\\u0026\\u0026s.width\\u003e0\\u0026\\u0026s.height\\u003e0,r(s)},e.Rect.fromObject=function(t,i){return e.Object._fromObject(\\\"Rect\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.array.min,n=e.util.array.max,o=e.util.toFixed;e.Polyline?e.warn(\\\"fabric.Polyline is already defined\\\"):(e.Polyline=e.util.createClass(e.Object,{type:\\\"polyline\\\",points:null,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"points\\\"),initialize:function(t,e){e=e||{},this.points=t||[],this.callSuper(\\\"initialize\\\",e),this._setPositionDimensions(e)},_setPositionDimensions:function(t){var e,i=this._calcDimensions(t);this.width=i.width,this.height=i.height,t.fromSVG||(e=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2,y:i.top-this.strokeWidth/2},\\\"left\\\",\\\"top\\\",this.originX,this.originY)),void 0===t.left\\u0026\\u0026(this.left=t.fromSVG?i.left:e.x),void 0===t.top\\u0026\\u0026(this.top=t.fromSVG?i.top:e.y),this.pathOffset={x:i.left+this.width/2,y:i.top+this.height/2}},_calcDimensions:function(){var t=this.points,e=r(t,\\\"x\\\")||0,i=r(t,\\\"y\\\")||0;return{left:e,top:i,width:(n(t,\\\"x\\\")||0)-e,height:(n(t,\\\"y\\\")||0)-i}},toObject:function(t){return i(this.callSuper(\\\"toObject\\\",t),{points:this.points.concat()})},_toSVG:function(){for(var t=[],i=this.pathOffset.x,r=this.pathOffset.y,n=e.Object.NUM_FRACTION_DIGITS,s=0,a=this.points.length;s\\u003ca;s++)t.push(o(this.points[s].x-i,n),\\\",\\\",o(this.points[s].y-r,n),\\\" \\\");return[\\\"\\u003c\\\"+this.type+\\\" \\\",\\\"COMMON_PARTS\\\",'points=\\\"',t.join(\\\"\\\"),'\\\" /\\u003e\\\\n']},commonRender:function(t){var e,i=this.points.length,r=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;t.beginPath(),t.moveTo(this.points[0].x-r,this.points[0].y-n);for(var o=0;o\\u003ci;o++)e=this.points[o],t.lineTo(e.x-r,e.y-n);return!0},_render:function(t){this.commonRender(t)\\u0026\\u0026this._renderPaintInOrder(t)},complexity:function(){return this.get(\\\"points\\\").length}}),e.Polyline.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polyline.fromElementGenerator=function(t){return function(r,n,o){if(!r)return n(null);o||(o={});var s=e.parsePointsAttribute(r.getAttribute(\\\"points\\\")),a=e.parseAttributes(r,e[t].ATTRIBUTE_NAMES);a.fromSVG=!0,n(new e[t](s,i(a,o)))}},e.Polyline.fromElement=e.Polyline.fromElementGenerator(\\\"Polyline\\\"),e.Polyline.fromObject=function(t,i){return e.Object._fromObject(\\\"Polyline\\\",t,i,\\\"points\\\")})}(t),function(t){var e=t.fabric||(t.fabric={});e.Polygon?e.warn(\\\"fabric.Polygon is already defined\\\"):(e.Polygon=e.util.createClass(e.Polyline,{type:\\\"polygon\\\",_render:function(t){this.commonRender(t)\\u0026\\u0026(t.closePath(),this._renderPaintInOrder(t))}}),e.Polygon.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polygon.fromElement=e.Polyline.fromElementGenerator(\\\"Polygon\\\"),e.Polygon.fromObject=function(t,i){e.Object._fromObject(\\\"Polygon\\\",t,i,\\\"points\\\")})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.array.min,r=e.util.array.max,n=e.util.object.extend,o=Object.prototype.toString,s=e.util.toFixed;e.Path?e.warn(\\\"fabric.Path is already defined\\\"):(e.Path=e.util.createClass(e.Object,{type:\\\"path\\\",path:null,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\"path\\\",\\\"fillRule\\\"),stateProperties:e.Object.prototype.stateProperties.concat(\\\"path\\\"),initialize:function(t,i){i=i||{},this.callSuper(\\\"initialize\\\",i),t||(t=[]);var r=\\\"[object Array]\\\"===o.call(t);this.path=e.util.makePathSimpler(r?t:e.util.parsePath(t)),this.path\\u0026\\u0026e.Polyline.prototype._setPositionDimensions.call(this,i)},_renderPathCommands:function(t){var e,i=0,r=0,n=0,o=0,s=0,a=0,h=-this.pathOffset.x,c=-this.pathOffset.y;t.beginPath();for(var l=0,u=this.path.length;l\\u003cu;++l)switch((e=this.path[l])[0]){case\\\"L\\\":n=e[1],o=e[2],t.lineTo(n+h,o+c);break;case\\\"M\\\":i=n=e[1],r=o=e[2],t.moveTo(n+h,o+c);break;case\\\"C\\\":n=e[5],o=e[6],s=e[3],a=e[4],t.bezierCurveTo(e[1]+h,e[2]+c,s+h,a+c,n+h,o+c);break;case\\\"Q\\\":t.quadraticCurveTo(e[1]+h,e[2]+c,e[3]+h,e[4]+c),n=e[3],o=e[4],s=e[1],a=e[2];break;case\\\"z\\\":case\\\"Z\\\":n=i,o=r,t.closePath()}},_render:function(t){this._renderPathCommands(t),this._renderPaintInOrder(t)},toString:function(){return\\\"#\\u003cfabric.Path (\\\"+this.complexity()+'): { \\\"top\\\": '+this.top+', \\\"left\\\": '+this.left+\\\" }\\u003e\\\"},toObject:function(t){return n(this.callSuper(\\\"toObject\\\",t),{path:this.path.map((function(t){return t.slice()}))})},toDatalessObject:function(t){var e=this.toObject([\\\"sourcePath\\\"].concat(t));return e.sourcePath\\u0026\\u0026delete e.path,e},_toSVG:function(){return[\\\"\\u003cpath \\\",\\\"COMMON_PARTS\\\",'d=\\\"',e.util.joinPath(this.path),'\\\" stroke-linecap=\\\"round\\\" ',\\\"/\\u003e\\\\n\\\"]},_getOffsetTransform:function(){var t=e.Object.NUM_FRACTION_DIGITS;return\\\" translate(\\\"+s(-this.pathOffset.x,t)+\\\", \\\"+s(-this.pathOffset.y,t)+\\\")\\\"},toClipPathSVG:function(t){var e=this._getOffsetTransform();return\\\"\\\\t\\\"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},toSVG:function(t){var e=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var t,n,o=[],s=[],a=0,h=0,c=0,l=0,u=0,f=this.path.length;u\\u003cf;++u){switch((t=this.path[u])[0]){case\\\"L\\\":c=t[1],l=t[2],n=[];break;case\\\"M\\\":a=c=t[1],h=l=t[2],n=[];break;case\\\"C\\\":n=e.util.getBoundsOfCurve(c,l,t[1],t[2],t[3],t[4],t[5],t[6]),c=t[5],l=t[6];break;case\\\"Q\\\":n=e.util.getBoundsOfCurve(c,l,t[1],t[2],t[1],t[2],t[3],t[4]),c=t[3],l=t[4];break;case\\\"z\\\":case\\\"Z\\\":c=a,l=h}n.forEach((function(t){o.push(t.x),s.push(t.y)})),o.push(c),s.push(l)}var d=i(o)||0,g=i(s)||0;return{left:d,top:g,width:(r(o)||0)-d,height:(r(s)||0)-g}}}),e.Path.fromObject=function(t,i){if(\\\"string\\\"==typeof t.sourcePath){var r=t.sourcePath;e.loadSVGFromURL(r,(function(e){var r=e[0];r.setOptions(t),i\\u0026\\u0026i(r)}))}else e.Object._fromObject(\\\"Path\\\",t,i,\\\"path\\\")},e.Path.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat([\\\"d\\\"]),e.Path.fromElement=function(t,i,r){var o=e.parseAttributes(t,e.Path.ATTRIBUTE_NAMES);o.fromSVG=!0,i(new e.Path(o.d,n(o,r)))})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.array.min,r=e.util.array.max;e.Group||(e.Group=e.util.createClass(e.Object,e.Collection,{type:\\\"group\\\",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(t,e,i){e=e||{},this._objects=[],i\\u0026\\u0026this.callSuper(\\\"initialize\\\",e),this._objects=t||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;if(i)this._updateObjectsACoords();else{var n=e\\u0026\\u0026e.centerPoint;void 0!==e.originX\\u0026\\u0026(this.originX=e.originX),void 0!==e.originY\\u0026\\u0026(this.originY=e.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete e.centerPoint,this.callSuper(\\\"initialize\\\",e)}this.setCoords()},_updateObjectsACoords:function(){for(var t=this._objects.length;t--;)this._objects[t].setCoords(true)},_updateObjectsCoords:function(t){t=t||this.getCenterPoint();for(var e=this._objects.length;e--;)this._updateObjectCoords(this._objects[e],t)},_updateObjectCoords:function(t,e){var i=t.left,r=t.top;t.set({left:i-e.x,top:r-e.y}),t.group=this,t.setCoords(!0)},toString:function(){return\\\"#\\u003cfabric.Group: (\\\"+this.complexity()+\\\")\\u003e\\\"},addWithUpdate:function(t){var i=!!this.group;return this._restoreObjectsState(),e.util.resetObjectTransform(this),t\\u0026\\u0026(i\\u0026\\u0026e.util.removeTransformFromObject(t,this.group.calcTransformMatrix()),this._objects.push(t),t.group=this,t._set(\\\"canvas\\\",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(t){return this._restoreObjectsState(),e.util.resetObjectTransform(this),this.remove(t),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(t){this.dirty=!0,t.group=this,t._set(\\\"canvas\\\",this.canvas)},_onObjectRemoved:function(t){this.dirty=!0,delete t.group},_set:function(t,i){var r=this._objects.length;if(this.useSetOnGroup)for(;r--;)this._objects[r].setOnGroup(t,i);if(\\\"canvas\\\"===t)for(;r--;)this._objects[r]._set(t,i);e.Object.prototype._set.call(this,t,i)},toObject:function(t){var i=this.includeDefaultValues,r=this._objects.filter((function(t){return!t.excludeFromExport})).map((function(e){var r=e.includeDefaultValues;e.includeDefaultValues=i;var n=e.toObject(t);return e.includeDefaultValues=r,n})),n=e.Object.prototype.toObject.call(this,t);return n.objects=r,n},toDatalessObject:function(t){var i,r=this.sourcePath;if(r)i=r;else{var n=this.includeDefaultValues;i=this._objects.map((function(e){var i=e.includeDefaultValues;e.includeDefaultValues=n;var r=e.toDatalessObject(t);return e.includeDefaultValues=i,r}))}var o=e.Object.prototype.toDatalessObject.call(this,t);return o.objects=i,o},render:function(t){this._transformDone=!0,this.callSuper(\\\"render\\\",t),this._transformDone=!1},shouldCache:function(){var t=e.Object.prototype.shouldCache.call(this);if(t)for(var i=0,r=this._objects.length;i\\u003cr;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return t},willDrawShadow:function(){if(e.Object.prototype.willDrawShadow.call(this))return!0;for(var t=0,i=this._objects.length;t\\u003ci;t++)if(this._objects[t].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group\\u0026\\u0026this.group.isOnACache()},drawObject:function(t){for(var e=0,i=this._objects.length;e\\u003ci;e++)this._objects[e].render(t);this._drawClipPath(t)},isCacheDirty:function(t){if(this.callSuper(\\\"isCacheDirty\\\",t))return!0;if(!this.statefullCache)return!1;for(var e=0,i=this._objects.length;e\\u003ci;e++)if(this._objects[e].isCacheDirty(!0)){if(this._cacheCanvas){var r=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-r/2,-n/2,r,n)}return!0}return!1},_restoreObjectsState:function(){var t=this.calcOwnMatrix();return this._objects.forEach((function(i){e.util.addTransformToObject(i,t),delete i.group,i.setCoords()})),this},realizeTransform:function(t,i){return e.util.addTransformToObject(t,i),t},destroy:function(){return this._objects.forEach((function(t){t.set(\\\"dirty\\\",!0)})),this._restoreObjectsState()},toActiveSelection:function(){if(this.canvas){var t=this._objects,i=this.canvas;this._objects=[];var r=this.toObject();delete r.objects;var n=new e.ActiveSelection([]);return n.set(r),n.type=\\\"activeSelection\\\",i.remove(this),t.forEach((function(t){t.group=n,t.dirty=!0,i.add(t)})),n.canvas=i,n._objects=t,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(t){t.setCoords(true)})),this},_calcBounds:function(t){for(var e,i,r,n,o=[],s=[],a=[\\\"tr\\\",\\\"br\\\",\\\"bl\\\",\\\"tl\\\"],h=0,c=this._objects.length,l=a.length;h\\u003cc;++h){for(r=(e=this._objects[h]).calcACoords(),n=0;n\\u003cl;n++)i=a[n],o.push(r[i].x),s.push(r[i].y);e.aCoords=r}this._getBounds(o,s,t)},_getBounds:function(t,n,o){var s=new e.Point(i(t),i(n)),a=new e.Point(r(t),r(n)),h=s.y||0,c=s.x||0,l=a.x-s.x||0,u=a.y-s.y||0;this.width=l,this.height=u,o||this.setPositionByOrigin({x:c,y:h},\\\"left\\\",\\\"top\\\")},_toSVG:function(t){for(var e=[\\\"\\u003cg \\\",\\\"COMMON_PARTS\\\",\\\" \\u003e\\\\n\\\"],i=0,r=this._objects.length;i\\u003cr;i++)e.push(\\\"\\\\t\\\\t\\\",this._objects[i].toSVG(t));return e.push(\\\"\\u003c/g\\u003e\\\\n\\\"),e},getSvgStyles:function(){var t=void 0!==this.opacity\\u0026\\u00261!==this.opacity?\\\"opacity: \\\"+this.opacity+\\\";\\\":\\\"\\\",e=this.visible?\\\"\\\":\\\" visibility: hidden;\\\";return[t,this.getSvgFilter(),e].join(\\\"\\\")},toClipPathSVG:function(t){for(var e=[],i=0,r=this._objects.length;i\\u003cr;i++)e.push(\\\"\\\\t\\\",this._objects[i].toClipPathSVG(t));return this._createBaseClipPathSVGMarkup(e,{reviver:t})}}),e.Group.fromObject=function(t,i){var r=t.objects,n=e.util.object.clone(t,!0);delete n.objects,\\\"string\\\"!=typeof r?e.util.enlivenObjects(r,(function(r){e.util.enlivenObjects([t.clipPath],(function(n){var o=e.util.object.clone(t,!0);o.clipPath=n[0],delete o.objects,i\\u0026\\u0026i(new e.Group(r,o,!0))}))})):e.loadSVGFromURL(r,(function(o){var s=e.util.groupSVGElements(o,t,r);s.set(n),i\\u0026\\u0026i(s)}))})}(t),function(t){var e=t.fabric||(t.fabric={});e.ActiveSelection||(e.ActiveSelection=e.util.createClass(e.Group,{type:\\\"activeSelection\\\",initialize:function(t,i){i=i||{},this._objects=t||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;i.originX\\u0026\\u0026(this.originX=i.originX),i.originY\\u0026\\u0026(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),e.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var t=this._objects.concat();this._objects=[];var i=e.Object.prototype.toObject.call(this),r=new e.Group([]);if(delete i.type,r.set(i),t.forEach((function(t){t.canvas.remove(t),t.group=r})),r._objects=t,!this.canvas)return r;var n=this.canvas;return n.add(r),n._activeObject=r,r.setCoords(),r},onDeselect:function(){return this.destroy(),!1},toString:function(){return\\\"#\\u003cfabric.ActiveSelection: (\\\"+this.complexity()+\\\")\\u003e\\\"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(t,e,i){t.save(),t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper(\\\"_renderControls\\\",t,e),void 0===(i=i||{}).hasControls\\u0026\\u0026(i.hasControls=!1),i.forActiveSelection=!0;for(var r=0,n=this._objects.length;r\\u003cn;r++)this._objects[r]._renderControls(t,i);t.restore()}}),e.ActiveSelection.fromObject=function(t,i){e.util.enlivenObjects(t.objects,(function(r){delete t.objects,i\\u0026\\u0026i(new e.ActiveSelection(r,t,!0))}))})}(t),function(t){var e=T.util.object.extend;t.fabric||(t.fabric={}),t.fabric.Image?T.warn(\\\"fabric.Image is already defined.\\\"):(T.Image=T.util.createClass(T.Object,{type:\\\"image\\\",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:T.Object.prototype.stateProperties.concat(\\\"cropX\\\",\\\"cropY\\\"),cacheProperties:T.Object.prototype.cacheProperties.concat(\\\"cropX\\\",\\\"cropY\\\"),cacheKey:\\\"\\\",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(t,e){e||(e={}),this.filters=[],this.cacheKey=\\\"texture\\\"+T.Object.__uid++,this.callSuper(\\\"initialize\\\",e),this._initElement(t,e)},getElement:function(){return this._element||{}},setElement:function(t,e){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+\\\"_filtered\\\"),this._element=t,this._originalElement=t,this._initConfig(e),0!==this.filters.length\\u0026\\u0026this.applyFilters(),this.resizeFilter\\u0026\\u0026this.applyResizeFilters(),this},removeTexture:function(t){var e=T.filterBackend;e\\u0026\\u0026e.evictCachesForKey\\u0026\\u0026e.evictCachesForKey(t)},dispose:function(){this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+\\\"_filtered\\\"),this._cacheContext=void 0,[\\\"_originalElement\\\",\\\"_element\\\",\\\"_filteredEl\\\",\\\"_cacheCanvas\\\"].forEach(function(t){T.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement\\u0026\\u0026(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var t=this.getElement();return{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height}},_stroke:function(t){if(this.stroke\\u0026\\u00260!==this.strokeWidth){var e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,-i),t.lineTo(e,-i),t.lineTo(e,i),t.lineTo(-e,i),t.lineTo(-e,-i),t.closePath()}},toObject:function(t){var i=[];this.filters.forEach((function(t){t\\u0026\\u0026i.push(t.toObject())}));var r=e(this.callSuper(\\\"toObject\\\",[\\\"cropX\\\",\\\"cropY\\\"].concat(t)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter\\u0026\\u0026(r.resizeFilter=this.resizeFilter.toObject()),r},hasCrop:function(){return this.cropX||this.cropY||this.width\\u003cthis._element.width||this.height\\u003cthis._element.height},_toSVG:function(){var t,e=[],i=[],r=this._element,n=-this.width/2,o=-this.height/2,s=\\\"\\\",a=\\\"\\\";if(!r)return[];if(this.hasCrop()){var h=T.Object.__uid++;e.push('\\u003cclipPath id=\\\"imageCrop_'+h+'\\\"\\u003e\\\\n','\\\\t\\u003crect x=\\\"'+n+'\\\" y=\\\"'+o+'\\\" width=\\\"'+this.width+'\\\" height=\\\"'+this.height+'\\\" /\\u003e\\\\n',\\\"\\u003c/clipPath\\u003e\\\\n\\\"),s=' clip-path=\\\"url(#imageCrop_'+h+')\\\" '}if(this.imageSmoothing||(a='\\\" image-rendering=\\\"optimizeSpeed'),i.push(\\\"\\\\t\\u003cimage \\\",\\\"COMMON_PARTS\\\",'xlink:href=\\\"',this.getSvgSrc(!0),'\\\" x=\\\"',n-this.cropX,'\\\" y=\\\"',o-this.cropY,'\\\" width=\\\"',r.width||r.naturalWidth,'\\\" height=\\\"',r.height||r.height,a,'\\\"',s,\\\"\\u003e\\u003c/image\\u003e\\\\n\\\"),this.stroke||this.strokeDashArray){var c=this.fill;this.fill=null,t=[\\\"\\\\t\\u003crect \\\",'x=\\\"',n,'\\\" y=\\\"',o,'\\\" width=\\\"',this.width,'\\\" height=\\\"',this.height,'\\\" style=\\\"',this.getSvgStyles(),'\\\"/\\u003e\\\\n'],this.fill=c}return e=\\\"fill\\\"!==this.paintFirst?e.concat(t,i):e.concat(i,t)},getSrc:function(t){var e=t?this._element:this._originalElement;return e?e.toDataURL?e.toDataURL():this.srcFromAttribute?e.getAttribute(\\\"src\\\"):e.src:this.src||\\\"\\\"},setSrc:function(t,e,i){return T.util.loadImage(t,(function(t,r){this.setElement(t,i),this._setWidthHeight(),e\\u0026\\u0026e(this,r)}),this,i\\u0026\\u0026i.crossOrigin),this},toString:function(){return'#\\u003cfabric.Image: { src: \\\"'+this.getSrc()+'\\\" }\\u003e'},applyResizeFilters:function(){var t=this.resizeFilter,e=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),r=i.scaleX,n=i.scaleY,o=this._filteredEl||this._originalElement;if(this.group\\u0026\\u0026this.set(\\\"dirty\\\",!0),!t||r\\u003ee\\u0026\\u0026n\\u003ee)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=r,void(this._lastScaleY=n);T.filterBackend||(T.filterBackend=T.initFilterBackend());var s=T.util.createCanvasElement(),a=this._filteredEl?this.cacheKey+\\\"_filtered\\\":this.cacheKey,h=o.width,c=o.height;s.width=h,s.height=c,this._element=s,this._lastScaleX=t.scaleX=r,this._lastScaleY=t.scaleY=n,T.filterBackend.applyFilters([t],o,h,c,this._element,a),this._filterScalingX=s.width/this._originalElement.width,this._filterScalingY=s.height/this._originalElement.height},applyFilters:function(t){if(t=(t=t||this.filters||[]).filter((function(t){return t\\u0026\\u0026!t.isNeutralState()})),this.set(\\\"dirty\\\",!0),this.removeTexture(this.cacheKey+\\\"_filtered\\\"),0===t.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var e=this._originalElement,i=e.naturalWidth||e.width,r=e.naturalHeight||e.height;if(this._element===this._originalElement){var n=T.util.createCanvasElement();n.width=i,n.height=r,this._element=n,this._filteredEl=n}else this._element=this._filteredEl,this._filteredEl.getContext(\\\"2d\\\").clearRect(0,0,i,r),this._lastScaleX=1,this._lastScaleY=1;return T.filterBackend||(T.filterBackend=T.initFilterBackend()),T.filterBackend.applyFilters(t,this._originalElement,i,r,this._element,this.cacheKey),this._originalElement.width===this._element.width\\u0026\\u0026this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(t){T.util.setImageSmoothing(t,this.imageSmoothing),!0!==this.isMoving\\u0026\\u0026this.resizeFilter\\u0026\\u0026this._needsResize()\\u0026\\u0026this.applyResizeFilters(),this._stroke(t),this._renderPaintInOrder(t)},drawCacheOnCanvas:function(t){T.util.setImageSmoothing(t,this.imageSmoothing),T.Object.prototype.drawCacheOnCanvas.call(this,t)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(t){var e=this._element;if(e){var i=this._filterScalingX,r=this._filterScalingY,n=this.width,o=this.height,s=Math.min,a=Math.max,h=a(this.cropX,0),c=a(this.cropY,0),l=e.naturalWidth||e.width,u=e.naturalHeight||e.height,f=h*i,d=c*r,g=s(n*i,l-f),p=s(o*r,u-d),v=-n/2,m=-o/2,y=s(n,l/i-h),_=s(o,u/r-c);e\\u0026\\u0026t.drawImage(e,f,d,g,p,v,m,y,_)}},_needsResize:function(){var t=this.getTotalObjectScaling();return t.scaleX!==this._lastScaleX||t.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(t,e){this.setElement(T.util.getById(t),e),T.util.addClass(this.getElement(),T.Image.CSS_CANVAS)},_initConfig:function(t){t||(t={}),this.setOptions(t),this._setWidthHeight(t)},_initFilters:function(t,e){t\\u0026\\u0026t.length?T.util.enlivenObjects(t,(function(t){e\\u0026\\u0026e(t)}),\\\"fabric.Image.filters\\\"):e\\u0026\\u0026e()},_setWidthHeight:function(t){t||(t={});var e=this.getElement();this.width=t.width||e.naturalWidth||e.width||0,this.height=t.height||e.naturalHeight||e.height||0},parsePreserveAspectRatioAttribute:function(){var t,e=T.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||\\\"\\\"),i=this._element.width,r=this._element.height,n=1,o=1,s=0,a=0,h=0,c=0,l=this.width,u=this.height,f={width:l,height:u};return!e||\\\"none\\\"===e.alignX\\u0026\\u0026\\\"none\\\"===e.alignY?(n=l/i,o=u/r):(\\\"meet\\\"===e.meetOrSlice\\u0026\\u0026(t=(l-i*(n=o=T.util.findScaleToFit(this._element,f)))/2,\\\"Min\\\"===e.alignX\\u0026\\u0026(s=-t),\\\"Max\\\"===e.alignX\\u0026\\u0026(s=t),t=(u-r*o)/2,\\\"Min\\\"===e.alignY\\u0026\\u0026(a=-t),\\\"Max\\\"===e.alignY\\u0026\\u0026(a=t)),\\\"slice\\\"===e.meetOrSlice\\u0026\\u0026(t=i-l/(n=o=T.util.findScaleToCover(this._element,f)),\\\"Mid\\\"===e.alignX\\u0026\\u0026(h=t/2),\\\"Max\\\"===e.alignX\\u0026\\u0026(h=t),t=r-u/o,\\\"Mid\\\"===e.alignY\\u0026\\u0026(c=t/2),\\\"Max\\\"===e.alignY\\u0026\\u0026(c=t),i=l/n,r=u/o)),{width:i,height:r,scaleX:n,scaleY:o,offsetLeft:s,offsetTop:a,cropX:h,cropY:c}}}),T.Image.CSS_CANVAS=\\\"canvas-img\\\",T.Image.prototype.getSvgSrc=T.Image.prototype.getSrc,T.Image.fromObject=function(t,e){var i=T.util.object.clone(t);T.util.loadImage(i.src,(function(t,r){r?e\\u0026\\u0026e(null,!0):T.Image.prototype._initFilters.call(i,i.filters,(function(r){i.filters=r||[],T.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(r){i.resizeFilter=r[0],T.util.enlivenObjects([i.clipPath],(function(r){i.clipPath=r[0];var n=new T.Image(t,i);e(n,!1)}))}))}))}),null,i.crossOrigin)},T.Image.fromURL=function(t,e,i){T.util.loadImage(t,(function(t,r){e\\u0026\\u0026e(new T.Image(t,i),r)}),null,i\\u0026\\u0026i.crossOrigin)},T.Image.ATTRIBUTE_NAMES=T.SHARED_ATTRIBUTES.concat(\\\"x y width height preserveAspectRatio xlink:href crossOrigin image-rendering\\\".split(\\\" \\\")),T.Image.fromElement=function(t,i,r){var n=T.parseAttributes(t,T.Image.ATTRIBUTE_NAMES);T.Image.fromURL(n[\\\"xlink:href\\\"],i,e(r?T.util.object.clone(r):{},n))})}(t),T.util.object.extend(T.Object.prototype,{_getAngleValueForStraighten:function(){var t=this.angle%360;return t\\u003e0?90*Math.round((t-1)/90):90*Math.round(t/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(t){var e=function(){},i=(t=t||{}).onComplete||e,r=t.onChange||e,n=this;return T.util.animate({startValue:this.get(\\\"angle\\\"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(t){n.rotate(t),r()},onComplete:function(){n.setCoords(),i()}}),this}}),T.util.object.extend(T.StaticCanvas.prototype,{straightenObject:function(t){return t.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(t){return t.fxStraighten({onChange:this.requestRenderAllBound}),this}}),function(){function t(t,e){var i=\\\"precision \\\"+e+\\\" float;\\\\nvoid main(){}\\\",r=t.createShader(t.FRAGMENT_SHADER);return t.shaderSource(r,i),t.compileShader(r),!!t.getShaderParameter(r,t.COMPILE_STATUS)}function e(t){t\\u0026\\u0026t.tileSize\\u0026\\u0026(this.tileSize=t.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}T.isWebglSupported=function(e){if(T.isLikelyNode)return!1;e=e||T.WebglFilterBackend.prototype.tileSize;var i=document.createElement(\\\"canvas\\\"),r=i.getContext(\\\"webgl\\\")||i.getContext(\\\"experimental-webgl\\\"),n=!1;if(r){T.maxTextureSize=r.getParameter(r.MAX_TEXTURE_SIZE),n=T.maxTextureSize\\u003e=e;for(var o=[\\\"highp\\\",\\\"mediump\\\",\\\"lowp\\\"],s=0;s\\u003c3;s++)if(t(r,o[s])){T.webGlPrecision=o[s];break}}return this.isSupported=n,n},T.WebglFilterBackend=e,e.prototype={tileSize:2048,resources:{},setupGLContext:function(t,e){this.dispose(),this.createWebGLCanvas(t,e),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(t,e)},chooseFastestCopyGLTo2DMethod:function(t,e){var i,r=void 0!==window.performance;try{new ImageData(1,1),i=!0}catch(t){i=!1}var n=\\\"undefined\\\"!=typeof ArrayBuffer,o=\\\"undefined\\\"!=typeof Uint8ClampedArray;if(r\\u0026\\u0026i\\u0026\\u0026n\\u0026\\u0026o){var s=T.util.createCanvasElement(),a=new ArrayBuffer(t*e*4);if(T.forceGLPutImageData)return this.imageBuffer=a,void(this.copyGLTo2D=A);var h,c,l={imageBuffer:a,destinationWidth:t,destinationHeight:e,targetCanvas:s};s.width=t,s.height=e,h=window.performance.now(),k.call(l,this.gl,l),c=window.performance.now()-h,h=window.performance.now(),A.call(l,this.gl,l),c\\u003ewindow.performance.now()-h?(this.imageBuffer=a,this.copyGLTo2D=A):this.copyGLTo2D=k}},createWebGLCanvas:function(t,e){var i=T.util.createCanvasElement();i.width=t,i.height=e;var r={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},n=i.getContext(\\\"webgl\\\",r);n||(n=i.getContext(\\\"experimental-webgl\\\",r)),n\\u0026\\u0026(n.clearColor(0,0,0,0),this.canvas=i,this.gl=n)},applyFilters:function(t,e,i,r,n,o){var s,a=this.gl;o\\u0026\\u0026(s=this.getCachedTexture(o,e));var h={originalWidth:e.width||e.originalWidth,originalHeight:e.height||e.originalHeight,sourceWidth:i,sourceHeight:r,destinationWidth:i,destinationHeight:r,context:a,sourceTexture:this.createTexture(a,i,r,!s\\u0026\\u0026e),targetTexture:this.createTexture(a,i,r),originalTexture:s||this.createTexture(a,i,r,!s\\u0026\\u0026e),passes:t.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},c=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,c),t.forEach((function(t){t\\u0026\\u0026t.applyTo(h)})),function(t){var e=t.targetCanvas,i=e.width,r=e.height,n=t.destinationWidth,o=t.destinationHeight;i===n\\u0026\\u0026r===o||(e.width=n,e.height=o)}(h),this.copyGLTo2D(a,h),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(h.sourceTexture),a.deleteTexture(h.targetTexture),a.deleteFramebuffer(c),n.getContext(\\\"2d\\\").setTransform(1,0,0,1,0,0),h},dispose:function(){this.canvas\\u0026\\u0026(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(t,e,i,r){var n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),r?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),n},getCachedTexture:function(t,e){if(this.textureCache[t])return this.textureCache[t];var i=this.createTexture(this.gl,e.width,e.height,e);return this.textureCache[t]=i,i},evictCachesForKey:function(t){this.textureCache[t]\\u0026\\u0026(this.gl.deleteTexture(this.textureCache[t]),delete this.textureCache[t])},copyGLTo2D:k,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var t=this.gl,e={renderer:\\\"\\\",vendor:\\\"\\\"};if(!t)return e;var i=t.getExtension(\\\"WEBGL_debug_renderer_info\\\");if(i){var r=t.getParameter(i.UNMASKED_RENDERER_WEBGL),n=t.getParameter(i.UNMASKED_VENDOR_WEBGL);r\\u0026\\u0026(e.renderer=r.toLowerCase()),n\\u0026\\u0026(e.vendor=n.toLowerCase())}return this.gpuInfo=e,e}}}(),function(){var t=function(){};function e(){}T.Canvas2dFilterBackend=e,e.prototype={evictCachesForKey:t,dispose:t,clearWebGLCaches:t,resources:{},applyFilters:function(t,e,i,r,n){var o=n.getContext(\\\"2d\\\");o.drawImage(e,0,0,i,r);var s={sourceWidth:i,sourceHeight:r,imageData:o.getImageData(0,0,i,r),originalEl:e,originalImageData:o.getImageData(0,0,i,r),canvasEl:n,ctx:o,filterBackend:this};return t.forEach((function(t){t.applyTo(s)})),s.imageData.width===i\\u0026\\u0026s.imageData.height===r||(n.width=s.imageData.width,n.height=s.imageData.height),o.putImageData(s.imageData,0,0),s}}}(),T.Image=T.Image||{},T.Image.filters=T.Image.filters||{},T.Image.filters.BaseFilter=T.util.createClass({type:\\\"BaseFilter\\\",vertexSource:\\\"attribute vec2 aPosition;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvTexCoord = aPosition;\\\\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\\\\n}\\\",fragmentSource:\\\"precision highp float;\\\\nvarying vec2 vTexCoord;\\\\nuniform sampler2D uTexture;\\\\nvoid main() {\\\\ngl_FragColor = texture2D(uTexture, vTexCoord);\\\\n}\\\",initialize:function(t){t\\u0026\\u0026this.setOptions(t)},setOptions:function(t){for(var e in t)this[e]=t[e]},createProgram:function(t,e,i){e=e||this.fragmentSource,i=i||this.vertexSource,\\\"highp\\\"!==T.webGlPrecision\\u0026\\u0026(e=e.replace(/precision highp float/g,\\\"precision \\\"+T.webGlPrecision+\\\" float\\\"));var r=t.createShader(t.VERTEX_SHADER);if(t.shaderSource(r,i),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS))throw new Error(\\\"Vertex shader compile error for \\\"+this.type+\\\": \\\"+t.getShaderInfoLog(r));var n=t.createShader(t.FRAGMENT_SHADER);if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error(\\\"Fragment shader compile error for \\\"+this.type+\\\": \\\"+t.getShaderInfoLog(n));var o=t.createProgram();if(t.attachShader(o,r),t.attachShader(o,n),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS))throw new Error('Shader link error for \\\"${this.type}\\\" '+t.getProgramInfoLog(o));var s=this.getAttributeLocations(t,o),a=this.getUniformLocations(t,o)||{};return a.uStepW=t.getUniformLocation(o,\\\"uStepW\\\"),a.uStepH=t.getUniformLocation(o,\\\"uStepH\\\"),{program:o,attributeLocations:s,uniformLocations:a}},getAttributeLocations:function(t,e){return{aPosition:t.getAttribLocation(e,\\\"aPosition\\\")}},getUniformLocations:function(){return{}},sendAttributeData:function(t,e,i){var r=e.aPosition,n=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,n),t.enableVertexAttribArray(r),t.vertexAttribPointer(r,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW)},_setupFrameBuffer:function(t){var e,i,r=t.context;t.passes\\u003e1?(e=t.destinationWidth,i=t.destinationHeight,t.sourceWidth===e\\u0026\\u0026t.sourceHeight===i||(r.deleteTexture(t.targetTexture),t.targetTexture=t.filterBackend.createTexture(r,e,i)),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,t.targetTexture,0)):(r.bindFramebuffer(r.FRAMEBUFFER,null),r.finish())},_swapTextures:function(t){t.passes--,t.pass++;var e=t.targetTexture;t.targetTexture=t.sourceTexture,t.sourceTexture=e},isNeutralState:function(){var t=this.mainParameter,e=T.Image.filters[this.type].prototype;if(t){if(Array.isArray(e[t])){for(var i=e[t].length;i--;)if(this[t][i]!==e[t][i])return!1;return!0}return e[t]===this[t]}return!1},applyTo:function(t){t.webgl?(this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},retrieveShader:function(t){return t.programCache.hasOwnProperty(this.type)||(t.programCache[this.type]=this.createProgram(t.context)),t.programCache[this.type]},applyToWebGL:function(t){var e=t.context,i=this.retrieveShader(t);0===t.pass\\u0026\\u0026t.originalTexture?e.bindTexture(e.TEXTURE_2D,t.originalTexture):e.bindTexture(e.TEXTURE_2D,t.sourceTexture),e.useProgram(i.program),this.sendAttributeData(e,i.attributeLocations,t.aPosition),e.uniform1f(i.uniformLocations.uStepW,1/t.sourceWidth),e.uniform1f(i.uniformLocations.uStepH,1/t.sourceHeight),this.sendUniformData(e,i.uniformLocations),e.viewport(0,0,t.destinationWidth,t.destinationHeight),e.drawArrays(e.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(t,e,i){t.activeTexture(i),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE0)},unbindAdditionalTexture:function(t,e){t.activeTexture(e),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(t){this[this.mainParameter]=t},sendUniformData:function(){},createHelpLayer:function(t){if(!t.helpLayer){var e=document.createElement(\\\"canvas\\\");e.width=t.sourceWidth,e.height=t.sourceHeight,t.helpLayer=e}},toObject:function(){var t={type:this.type},e=this.mainParameter;return e\\u0026\\u0026(t[e]=this[e]),t},toJSON:function(){return this.toObject()}}),T.Image.filters.BaseFilter.fromObject=function(t,e){var i=new T.Image.filters[t.type](t);return e\\u0026\\u0026e(i),i},function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.ColorMatrix=r(i.BaseFilter,{type:\\\"ColorMatrix\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nvarying vec2 vTexCoord;\\\\nuniform mat4 uColorMatrix;\\\\nuniform vec4 uConstants;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\ncolor *= uColorMatrix;\\\\ncolor += uConstants;\\\\ngl_FragColor = color;\\\\n}\\\",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:\\\"matrix\\\",colorsOnly:!0,initialize:function(t){this.callSuper(\\\"initialize\\\",t),this.matrix=this.matrix.slice(0)},applyTo2d:function(t){var e,i,r,n,o,s=t.imageData.data,a=s.length,h=this.matrix,c=this.colorsOnly;for(o=0;o\\u003ca;o+=4)e=s[o],i=s[o+1],r=s[o+2],c?(s[o]=e*h[0]+i*h[1]+r*h[2]+255*h[4],s[o+1]=e*h[5]+i*h[6]+r*h[7]+255*h[9],s[o+2]=e*h[10]+i*h[11]+r*h[12]+255*h[14]):(n=s[o+3],s[o]=e*h[0]+i*h[1]+r*h[2]+n*h[3]+255*h[4],s[o+1]=e*h[5]+i*h[6]+r*h[7]+n*h[8]+255*h[9],s[o+2]=e*h[10]+i*h[11]+r*h[12]+n*h[13]+255*h[14],s[o+3]=e*h[15]+i*h[16]+r*h[17]+n*h[18]+255*h[19])},getUniformLocations:function(t,e){return{uColorMatrix:t.getUniformLocation(e,\\\"uColorMatrix\\\"),uConstants:t.getUniformLocation(e,\\\"uConstants\\\")}},sendUniformData:function(t,e){var i=this.matrix,r=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];t.uniformMatrix4fv(e.uColorMatrix,!1,r),t.uniform4fv(e.uConstants,n)}}),e.Image.filters.ColorMatrix.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Brightness=r(i.BaseFilter,{type:\\\"Brightness\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uBrightness;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\ncolor.rgb += uBrightness;\\\\ngl_FragColor = color;\\\\n}\\\",brightness:0,mainParameter:\\\"brightness\\\",applyTo2d:function(t){if(0!==this.brightness){var e,i=t.imageData.data,r=i.length,n=Math.round(255*this.brightness);for(e=0;e\\u003cr;e+=4)i[e]=i[e]+n,i[e+1]=i[e+1]+n,i[e+2]=i[e+2]+n}},getUniformLocations:function(t,e){return{uBrightness:t.getUniformLocation(e,\\\"uBrightness\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uBrightness,this.brightness)}}),e.Image.filters.Brightness.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.Convolute=n(r.BaseFilter,{type:\\\"Convolute\\\",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[9];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\nfor (float h = 0.0; h \\u003c 3.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 3.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\\\\n}\\\\n}\\\\ngl_FragColor = color;\\\\n}\\\",Convolute_3_0:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[9];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\nfor (float h = 0.0; h \\u003c 3.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 3.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\\\\n}\\\\n}\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\ngl_FragColor = color;\\\\ngl_FragColor.a = alpha;\\\\n}\\\",Convolute_5_1:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[25];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\nfor (float h = 0.0; h \\u003c 5.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 5.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\\\\n}\\\\n}\\\\ngl_FragColor = color;\\\\n}\\\",Convolute_5_0:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[25];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\nfor (float h = 0.0; h \\u003c 5.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 5.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\\\\n}\\\\n}\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\ngl_FragColor = color;\\\\ngl_FragColor.a = alpha;\\\\n}\\\",Convolute_7_1:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[49];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\nfor (float h = 0.0; h \\u003c 7.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 7.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\\\\n}\\\\n}\\\\ngl_FragColor = color;\\\\n}\\\",Convolute_7_0:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[49];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\nfor (float h = 0.0; h \\u003c 7.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 7.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\\\\n}\\\\n}\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\ngl_FragColor = color;\\\\ngl_FragColor.a = alpha;\\\\n}\\\",Convolute_9_1:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[81];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\nfor (float h = 0.0; h \\u003c 9.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 9.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\\\\n}\\\\n}\\\\ngl_FragColor = color;\\\\n}\\\",Convolute_9_0:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uMatrix[81];\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\nfor (float h = 0.0; h \\u003c 9.0; h+=1.0) {\\\\nfor (float w = 0.0; w \\u003c 9.0; w+=1.0) {\\\\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\\\\n}\\\\n}\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\ngl_FragColor = color;\\\\ngl_FragColor.a = alpha;\\\\n}\\\"},retrieveShader:function(t){var e=Math.sqrt(this.matrix.length),i=this.type+\\\"_\\\"+e+\\\"_\\\"+(this.opaque?1:0),r=this.fragmentSource[i];return t.programCache.hasOwnProperty(i)||(t.programCache[i]=this.createProgram(t.context,r)),t.programCache[i]},applyTo2d:function(t){var e,i,r,n,o,s,a,h,c,l,u,f,d,g=t.imageData,p=g.data,v=this.matrix,m=Math.round(Math.sqrt(v.length)),y=Math.floor(m/2),_=g.width,b=g.height,x=t.ctx.createImageData(_,b),C=x.data,w=this.opaque?1:0;for(u=0;u\\u003cb;u++)for(l=0;l\\u003c_;l++){for(o=4*(u*_+l),e=0,i=0,r=0,n=0,d=0;d\\u003cm;d++)for(f=0;f\\u003cm;f++)s=l+f-y,(a=u+d-y)\\u003c0||a\\u003e=b||s\\u003c0||s\\u003e=_||(h=4*(a*_+s),c=v[d*m+f],e+=p[h]*c,i+=p[h+1]*c,r+=p[h+2]*c,w||(n+=p[h+3]*c));C[o]=e,C[o+1]=i,C[o+2]=r,C[o+3]=w?p[o+3]:n}t.imageData=x},getUniformLocations:function(t,e){return{uMatrix:t.getUniformLocation(e,\\\"uMatrix\\\"),uOpaque:t.getUniformLocation(e,\\\"uOpaque\\\"),uHalfSize:t.getUniformLocation(e,\\\"uHalfSize\\\"),uSize:t.getUniformLocation(e,\\\"uSize\\\")}},sendUniformData:function(t,e){t.uniform1fv(e.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper(\\\"toObject\\\"),{opaque:this.opaque,matrix:this.matrix})}}),e.Image.filters.Convolute.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Grayscale=r(i.BaseFilter,{type:\\\"Grayscale\\\",fragmentSource:{average:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nfloat average = (color.r + color.b + color.g) / 3.0;\\\\ngl_FragColor = vec4(average, average, average, color.a);\\\\n}\\\",lightness:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform int uMode;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 col = texture2D(uTexture, vTexCoord);\\\\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\\\\ngl_FragColor = vec4(average, average, average, col.a);\\\\n}\\\",luminosity:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform int uMode;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 col = texture2D(uTexture, vTexCoord);\\\\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\\\\ngl_FragColor = vec4(average, average, average, col.a);\\\\n}\\\"},mode:\\\"average\\\",mainParameter:\\\"mode\\\",applyTo2d:function(t){var e,i,r=t.imageData.data,n=r.length,o=this.mode;for(e=0;e\\u003cn;e+=4)\\\"average\\\"===o?i=(r[e]+r[e+1]+r[e+2])/3:\\\"lightness\\\"===o?i=(Math.min(r[e],r[e+1],r[e+2])+Math.max(r[e],r[e+1],r[e+2]))/2:\\\"luminosity\\\"===o\\u0026\\u0026(i=.21*r[e]+.72*r[e+1]+.07*r[e+2]),r[e]=i,r[e+1]=i,r[e+2]=i},retrieveShader:function(t){var e=this.type+\\\"_\\\"+this.mode;if(!t.programCache.hasOwnProperty(e)){var i=this.fragmentSource[this.mode];t.programCache[e]=this.createProgram(t.context,i)}return t.programCache[e]},getUniformLocations:function(t,e){return{uMode:t.getUniformLocation(e,\\\"uMode\\\")}},sendUniformData:function(t,e){t.uniform1i(e.uMode,1)},isNeutralState:function(){return!1}}),e.Image.filters.Grayscale.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Invert=r(i.BaseFilter,{type:\\\"Invert\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform int uInvert;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nif (uInvert == 1) {\\\\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\\\\n} else {\\\\ngl_FragColor = color;\\\\n}\\\\n}\\\",invert:!0,mainParameter:\\\"invert\\\",applyTo2d:function(t){var e,i=t.imageData.data,r=i.length;for(e=0;e\\u003cr;e+=4)i[e]=255-i[e],i[e+1]=255-i[e+1],i[e+2]=255-i[e+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(t,e){return{uInvert:t.getUniformLocation(e,\\\"uInvert\\\")}},sendUniformData:function(t,e){t.uniform1i(e.uInvert,this.invert)}}),e.Image.filters.Invert.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.Noise=n(r.BaseFilter,{type:\\\"Noise\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uStepH;\\\\nuniform float uNoise;\\\\nuniform float uSeed;\\\\nvarying vec2 vTexCoord;\\\\nfloat rand(vec2 co, float seed, float vScale) {\\\\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\\\\n}\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\\\\ngl_FragColor = color;\\\\n}\\\",mainParameter:\\\"noise\\\",noise:0,applyTo2d:function(t){if(0!==this.noise){var e,i,r=t.imageData.data,n=r.length,o=this.noise;for(e=0,n=r.length;e\\u003cn;e+=4)i=(.5-Math.random())*o,r[e]+=i,r[e+1]+=i,r[e+2]+=i}},getUniformLocations:function(t,e){return{uNoise:t.getUniformLocation(e,\\\"uNoise\\\"),uSeed:t.getUniformLocation(e,\\\"uSeed\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uNoise,this.noise/255),t.uniform1f(e.uSeed,Math.random())},toObject:function(){return i(this.callSuper(\\\"toObject\\\"),{noise:this.noise})}}),e.Image.filters.Noise.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Pixelate=r(i.BaseFilter,{type:\\\"Pixelate\\\",blocksize:4,mainParameter:\\\"blocksize\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uBlocksize;\\\\nuniform float uStepW;\\\\nuniform float uStepH;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nfloat blockW = uBlocksize * uStepW;\\\\nfloat blockH = uBlocksize * uStepW;\\\\nint posX = int(vTexCoord.x / blockW);\\\\nint posY = int(vTexCoord.y / blockH);\\\\nfloat fposX = float(posX);\\\\nfloat fposY = float(posY);\\\\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\\\\nvec4 color = texture2D(uTexture, squareCoords);\\\\ngl_FragColor = color;\\\\n}\\\",applyTo2d:function(t){var e,i,r,n,o,s,a,h,c,l,u,f=t.imageData,d=f.data,g=f.height,p=f.width;for(i=0;i\\u003cg;i+=this.blocksize)for(r=0;r\\u003cp;r+=this.blocksize)for(n=d[e=4*i*p+4*r],o=d[e+1],s=d[e+2],a=d[e+3],l=Math.min(i+this.blocksize,g),u=Math.min(r+this.blocksize,p),h=i;h\\u003cl;h++)for(c=r;c\\u003cu;c++)d[e=4*h*p+4*c]=n,d[e+1]=o,d[e+2]=s,d[e+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(t,e){return{uBlocksize:t.getUniformLocation(e,\\\"uBlocksize\\\"),uStepW:t.getUniformLocation(e,\\\"uStepW\\\"),uStepH:t.getUniformLocation(e,\\\"uStepH\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uBlocksize,this.blocksize)}}),e.Image.filters.Pixelate.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.RemoveColor=n(r.BaseFilter,{type:\\\"RemoveColor\\\",color:\\\"#FFFFFF\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec4 uLow;\\\\nuniform vec4 uHigh;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\ngl_FragColor = texture2D(uTexture, vTexCoord);\\\\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) \\u0026\\u0026 all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\\\\ngl_FragColor.a = 0.0;\\\\n}\\\\n}\\\",distance:.02,useAlpha:!1,applyTo2d:function(t){var i,r,n,o,s=t.imageData.data,a=255*this.distance,h=new e.Color(this.color).getSource(),c=[h[0]-a,h[1]-a,h[2]-a],l=[h[0]+a,h[1]+a,h[2]+a];for(i=0;i\\u003cs.length;i+=4)r=s[i],n=s[i+1],o=s[i+2],r\\u003ec[0]\\u0026\\u0026n\\u003ec[1]\\u0026\\u0026o\\u003ec[2]\\u0026\\u0026r\\u003cl[0]\\u0026\\u0026n\\u003cl[1]\\u0026\\u0026o\\u003cl[2]\\u0026\\u0026(s[i+3]=0)},getUniformLocations:function(t,e){return{uLow:t.getUniformLocation(e,\\\"uLow\\\"),uHigh:t.getUniformLocation(e,\\\"uHigh\\\")}},sendUniformData:function(t,i){var r=new e.Color(this.color).getSource(),n=parseFloat(this.distance),o=[0+r[0]/255-n,0+r[1]/255-n,0+r[2]/255-n,1],s=[r[0]/255+n,r[1]/255+n,r[2]/255+n,1];t.uniform4fv(i.uLow,o),t.uniform4fv(i.uHigh,s)},toObject:function(){return i(this.callSuper(\\\"toObject\\\"),{color:this.color,distance:this.distance})}}),e.Image.filters.RemoveColor.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var o in n)i[o]=r(i.ColorMatrix,{type:o,matrix:n[o],mainParameter:!1,colorsOnly:!0}),e.Image.filters[o].fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric,i=e.Image.filters,r=e.util.createClass;i.BlendColor=r(i.BaseFilter,{type:\\\"BlendColor\\\",color:\\\"#F95C63\\\",mode:\\\"multiply\\\",alpha:1,fragmentSource:{multiply:\\\"gl_FragColor.rgb *= uColor.rgb;\\\\n\\\",screen:\\\"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\\\\n\\\",add:\\\"gl_FragColor.rgb += uColor.rgb;\\\\n\\\",diff:\\\"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\\\\n\\\",subtract:\\\"gl_FragColor.rgb -= uColor.rgb;\\\\n\\\",lighten:\\\"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\\\\n\\\",darken:\\\"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\\\\n\\\",exclusion:\\\"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\\\\n\\\",overlay:\\\"if (uColor.r \\u003c 0.5) {\\\\ngl_FragColor.r *= 2.0 * uColor.r;\\\\n} else {\\\\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\\\\n}\\\\nif (uColor.g \\u003c 0.5) {\\\\ngl_FragColor.g *= 2.0 * uColor.g;\\\\n} else {\\\\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\\\\n}\\\\nif (uColor.b \\u003c 0.5) {\\\\ngl_FragColor.b *= 2.0 * uColor.b;\\\\n} else {\\\\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\\\\n}\\\\n\\\",tint:\\\"gl_FragColor.rgb *= (1.0 - uColor.a);\\\\ngl_FragColor.rgb += uColor.rgb;\\\\n\\\"},buildSource:function(t){return\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec4 uColor;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\ngl_FragColor = color;\\\\nif (color.a \\u003e 0.0) {\\\\n\\\"+this.fragmentSource[t]+\\\"}\\\\n}\\\"},retrieveShader:function(t){var e,i=this.type+\\\"_\\\"+this.mode;return t.programCache.hasOwnProperty(i)||(e=this.buildSource(this.mode),t.programCache[i]=this.createProgram(t.context,e)),t.programCache[i]},applyTo2d:function(t){var i,r,n,o,s,a,h,c=t.imageData.data,l=c.length,u=1-this.alpha;i=(h=new e.Color(this.color).getSource())[0]*this.alpha,r=h[1]*this.alpha,n=h[2]*this.alpha;for(var f=0;f\\u003cl;f+=4)switch(o=c[f],s=c[f+1],a=c[f+2],this.mode){case\\\"multiply\\\":c[f]=o*i/255,c[f+1]=s*r/255,c[f+2]=a*n/255;break;case\\\"screen\\\":c[f]=255-(255-o)*(255-i)/255,c[f+1]=255-(255-s)*(255-r)/255,c[f+2]=255-(255-a)*(255-n)/255;break;case\\\"add\\\":c[f]=o+i,c[f+1]=s+r,c[f+2]=a+n;break;case\\\"diff\\\":case\\\"difference\\\":c[f]=Math.abs(o-i),c[f+1]=Math.abs(s-r),c[f+2]=Math.abs(a-n);break;case\\\"subtract\\\":c[f]=o-i,c[f+1]=s-r,c[f+2]=a-n;break;case\\\"darken\\\":c[f]=Math.min(o,i),c[f+1]=Math.min(s,r),c[f+2]=Math.min(a,n);break;case\\\"lighten\\\":c[f]=Math.max(o,i),c[f+1]=Math.max(s,r),c[f+2]=Math.max(a,n);break;case\\\"overlay\\\":c[f]=i\\u003c128?2*o*i/255:255-2*(255-o)*(255-i)/255,c[f+1]=r\\u003c128?2*s*r/255:255-2*(255-s)*(255-r)/255,c[f+2]=n\\u003c128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case\\\"exclusion\\\":c[f]=i+o-2*i*o/255,c[f+1]=r+s-2*r*s/255,c[f+2]=n+a-2*n*a/255;break;case\\\"tint\\\":c[f]=i+o*u,c[f+1]=r+s*u,c[f+2]=n+a*u}},getUniformLocations:function(t,e){return{uColor:t.getUniformLocation(e,\\\"uColor\\\")}},sendUniformData:function(t,i){var r=new e.Color(this.color).getSource();r[0]=this.alpha*r[0]/255,r[1]=this.alpha*r[1]/255,r[2]=this.alpha*r[2]/255,r[3]=this.alpha,t.uniform4fv(i.uColor,r)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendColor.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric,i=e.Image.filters,r=e.util.createClass;i.BlendImage=r(i.BaseFilter,{type:\\\"BlendImage\\\",image:null,mode:\\\"multiply\\\",alpha:1,vertexSource:\\\"attribute vec2 aPosition;\\\\nvarying vec2 vTexCoord;\\\\nvarying vec2 vTexCoord2;\\\\nuniform mat3 uTransformMatrix;\\\\nvoid main() {\\\\nvTexCoord = aPosition;\\\\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\\\\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\\\\n}\\\",fragmentSource:{multiply:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform sampler2D uImage;\\\\nuniform vec4 uColor;\\\\nvarying vec2 vTexCoord;\\\\nvarying vec2 vTexCoord2;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nvec4 color2 = texture2D(uImage, vTexCoord2);\\\\ncolor.rgba *= color2.rgba;\\\\ngl_FragColor = color;\\\\n}\\\",mask:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform sampler2D uImage;\\\\nuniform vec4 uColor;\\\\nvarying vec2 vTexCoord;\\\\nvarying vec2 vTexCoord2;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nvec4 color2 = texture2D(uImage, vTexCoord2);\\\\ncolor.a = color2.a;\\\\ngl_FragColor = color;\\\\n}\\\"},retrieveShader:function(t){var e=this.type+\\\"_\\\"+this.mode,i=this.fragmentSource[this.mode];return t.programCache.hasOwnProperty(e)||(t.programCache[e]=this.createProgram(t.context,i)),t.programCache[e]},applyToWebGL:function(t){var e=t.context,i=this.createTexture(t.filterBackend,this.image);this.bindAdditionalTexture(e,i,e.TEXTURE1),this.callSuper(\\\"applyToWebGL\\\",t),this.unbindAdditionalTexture(e,e.TEXTURE1)},createTexture:function(t,e){return t.getCachedTexture(e.cacheKey,e._element)},calculateMatrix:function(){var t=this.image,e=t._element.width,i=t._element.height;return[1/t.scaleX,0,0,0,1/t.scaleY,0,-t.left/e,-t.top/i,1]},applyTo2d:function(t){var i,r,n,o,s,a,h,c,l,u,f,d=t.imageData,g=t.filterBackend.resources,p=d.data,v=p.length,m=d.width,y=d.height,_=this.image;g.blendImage||(g.blendImage=e.util.createCanvasElement()),u=(l=g.blendImage).getContext(\\\"2d\\\"),l.width!==m||l.height!==y?(l.width=m,l.height=y):u.clearRect(0,0,m,y),u.setTransform(_.scaleX,0,0,_.scaleY,_.left,_.top),u.drawImage(_._element,0,0,m,y),f=u.getImageData(0,0,m,y).data;for(var b=0;b\\u003cv;b+=4)switch(s=p[b],a=p[b+1],h=p[b+2],c=p[b+3],i=f[b],r=f[b+1],n=f[b+2],o=f[b+3],this.mode){case\\\"multiply\\\":p[b]=s*i/255,p[b+1]=a*r/255,p[b+2]=h*n/255,p[b+3]=c*o/255;break;case\\\"mask\\\":p[b+3]=o}},getUniformLocations:function(t,e){return{uTransformMatrix:t.getUniformLocation(e,\\\"uTransformMatrix\\\"),uImage:t.getUniformLocation(e,\\\"uImage\\\")}},sendUniformData:function(t,e){var i=this.calculateMatrix();t.uniform1i(e.uImage,1),t.uniformMatrix3fv(e.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image\\u0026\\u0026this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendImage.fromObject=function(t,i){e.Image.fromObject(t.image,(function(r){var n=e.util.object.clone(t);n.image=r,i(new e.Image.filters.BlendImage(n))}))}}(t),function(t){var e=t.fabric||(t.fabric={}),i=Math.pow,r=Math.floor,n=Math.sqrt,o=Math.abs,s=Math.round,a=Math.sin,h=Math.ceil,c=e.Image.filters,l=e.util.createClass;c.Resize=l(c.BaseFilter,{type:\\\"Resize\\\",resizeType:\\\"hermite\\\",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(t,e){return{uDelta:t.getUniformLocation(e,\\\"uDelta\\\"),uTaps:t.getUniformLocation(e,\\\"uTaps\\\")}},sendUniformData:function(t,e){t.uniform2fv(e.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),t.uniform1fv(e.uTaps,this.taps)},retrieveShader:function(t){var e=this.getFilterWindow(),i=this.type+\\\"_\\\"+e;if(!t.programCache.hasOwnProperty(i)){var r=this.generateShader(e);t.programCache[i]=this.createProgram(t.context,r)}return t.programCache[i]},getFilterWindow:function(){var t=this.tempScale;return Math.ceil(this.lanczosLobes/t)},getTaps:function(){for(var t=this.lanczosCreate(this.lanczosLobes),e=this.tempScale,i=this.getFilterWindow(),r=new Array(i),n=1;n\\u003c=i;n++)r[n-1]=t(n*e);return r},generateShader:function(t){for(var e=new Array(t),i=this.fragmentSourceTOP,r=1;r\\u003c=t;r++)e[r-1]=r+\\\".0 * uDelta\\\";return i+=\\\"uniform float uTaps[\\\"+t+\\\"];\\\\n\\\",i+=\\\"void main() {\\\\n\\\",i+=\\\"  vec4 color = texture2D(uTexture, vTexCoord);\\\\n\\\",i+=\\\"  float sum = 1.0;\\\\n\\\",e.forEach((function(t,e){i+=\\\"  color += texture2D(uTexture, vTexCoord + \\\"+t+\\\") * uTaps[\\\"+e+\\\"];\\\\n\\\",i+=\\\"  color += texture2D(uTexture, vTexCoord - \\\"+t+\\\") * uTaps[\\\"+e+\\\"];\\\\n\\\",i+=\\\"  sum += 2.0 * uTaps[\\\"+e+\\\"];\\\\n\\\"})),i+=\\\"  gl_FragColor = color / sum;\\\\n\\\",i+=\\\"}\\\"},fragmentSourceTOP:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec2 uDelta;\\\\nvarying vec2 vTexCoord;\\\\n\\\",applyTo:function(t){t.webgl?(t.passes++,this.width=t.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=t.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),t.destinationWidth=this.dW,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceWidth=t.destinationWidth,this.height=t.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),t.destinationHeight=this.dH,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceHeight=t.destinationHeight):this.applyTo2d(t)},isNeutralState:function(){return 1===this.scaleX\\u0026\\u00261===this.scaleY},lanczosCreate:function(t){return function(e){if(e\\u003e=t||e\\u003c=-t)return 0;if(e\\u003c1.1920929e-7\\u0026\\u0026e\\u003e-1.1920929e-7)return 1;var i=(e*=Math.PI)/t;return a(e)/e*a(i)/i}},applyTo2d:function(t){var e=t.imageData,i=this.scaleX,r=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/r;var n,o=e.width,a=e.height,h=s(o*i),c=s(a*r);\\\"sliceHack\\\"===this.resizeType?n=this.sliceByTwo(t,o,a,h,c):\\\"hermite\\\"===this.resizeType?n=this.hermiteFastResize(t,o,a,h,c):\\\"bilinear\\\"===this.resizeType?n=this.bilinearFiltering(t,o,a,h,c):\\\"lanczos\\\"===this.resizeType\\u0026\\u0026(n=this.lanczosResize(t,o,a,h,c)),t.imageData=n},sliceByTwo:function(t,i,n,o,s){var a,h,c=t.imageData,l=.5,u=!1,f=!1,d=i*l,g=n*l,p=e.filterBackend.resources,v=0,m=0,y=i,_=0;for(p.sliceByTwo||(p.sliceByTwo=document.createElement(\\\"canvas\\\")),((a=p.sliceByTwo).width\\u003c1.5*i||a.height\\u003cn)\\u0026\\u0026(a.width=1.5*i,a.height=n),(h=a.getContext(\\\"2d\\\")).clearRect(0,0,1.5*i,n),h.putImageData(c,0,0),o=r(o),s=r(s);!u||!f;)i=d,n=g,o\\u003cr(d*l)?d=r(d*l):(d=o,u=!0),s\\u003cr(g*l)?g=r(g*l):(g=s,f=!0),h.drawImage(a,v,m,i,n,y,_,d,g),v=y,m=_,_+=g;return h.getImageData(v,m,o,s)},lanczosResize:function(t,e,s,a,c){var l=t.imageData.data,u=t.ctx.createImageData(a,c),f=u.data,d=this.lanczosCreate(this.lanczosLobes),g=this.rcpScaleX,p=this.rcpScaleY,v=2/this.rcpScaleX,m=2/this.rcpScaleY,y=h(g*this.lanczosLobes/2),_=h(p*this.lanczosLobes/2),b={},x={},C={};return function t(h){var w,S,T,O,P,E,k,A,D,M,j;for(x.x=(h+.5)*g,C.x=r(x.x),w=0;w\\u003cc;w++){for(x.y=(w+.5)*p,C.y=r(x.y),P=0,E=0,k=0,A=0,D=0,S=C.x-y;S\\u003c=C.x+y;S++)if(!(S\\u003c0||S\\u003e=e)){M=r(1e3*o(S-x.x)),b[M]||(b[M]={});for(var F=C.y-_;F\\u003c=C.y+_;F++)F\\u003c0||F\\u003e=s||(j=r(1e3*o(F-x.y)),b[M][j]||(b[M][j]=d(n(i(M*v,2)+i(j*m,2))/1e3)),(T=b[M][j])\\u003e0\\u0026\\u0026(P+=T,E+=T*l[O=4*(F*e+S)],k+=T*l[O+1],A+=T*l[O+2],D+=T*l[O+3]))}f[O=4*(w*a+h)]=E/P,f[O+1]=k/P,f[O+2]=A/P,f[O+3]=D/P}return++h\\u003ca?t(h):u}(0)},bilinearFiltering:function(t,e,i,n,o){var s,a,h,c,l,u,f,d,g,p=0,v=this.rcpScaleX,m=this.rcpScaleY,y=4*(e-1),_=t.imageData.data,b=t.ctx.createImageData(n,o),x=b.data;for(h=0;h\\u003co;h++)for(c=0;c\\u003cn;c++)for(l=v*c-(s=r(v*c)),u=m*h-(a=r(m*h)),g=4*(a*e+s),f=0;f\\u003c4;f++)d=_[g+f]*(1-l)*(1-u)+_[g+4+f]*l*(1-u)+_[g+y+f]*u*(1-l)+_[g+y+4+f]*l*u,x[p++]=d;return b},hermiteFastResize:function(t,e,i,s,a){for(var c=this.rcpScaleX,l=this.rcpScaleY,u=h(c/2),f=h(l/2),d=t.imageData.data,g=t.ctx.createImageData(s,a),p=g.data,v=0;v\\u003ca;v++)for(var m=0;m\\u003cs;m++){for(var y=4*(m+v*s),_=0,b=0,x=0,C=0,w=0,S=0,T=0,O=(v+.5)*l,P=r(v*l);P\\u003c(v+1)*l;P++)for(var E=o(O-(P+.5))/f,k=(m+.5)*c,A=E*E,D=r(m*c);D\\u003c(m+1)*c;D++){var M=o(k-(D+.5))/u,j=n(A+M*M);j\\u003e1\\u0026\\u0026j\\u003c-1||(_=2*j*j*j-3*j*j+1)\\u003e0\\u0026\\u0026(T+=_*d[(M=4*(D+P*e))+3],x+=_,d[M+3]\\u003c255\\u0026\\u0026(_=_*d[M+3]/250),C+=_*d[M],w+=_*d[M+1],S+=_*d[M+2],b+=_)}p[y]=C/b,p[y+1]=w/b,p[y+2]=S/b,p[y+3]=T/x}return g},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),e.Image.filters.Resize.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Contrast=r(i.BaseFilter,{type:\\\"Contrast\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uContrast;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\\\\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\\\\ngl_FragColor = color;\\\\n}\\\",contrast:0,mainParameter:\\\"contrast\\\",applyTo2d:function(t){if(0!==this.contrast){var e,i=t.imageData.data,r=i.length,n=Math.floor(255*this.contrast),o=259*(n+255)/(255*(259-n));for(e=0;e\\u003cr;e+=4)i[e]=o*(i[e]-128)+128,i[e+1]=o*(i[e+1]-128)+128,i[e+2]=o*(i[e+2]-128)+128}},getUniformLocations:function(t,e){return{uContrast:t.getUniformLocation(e,\\\"uContrast\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uContrast,this.contrast)}}),e.Image.filters.Contrast.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Saturation=r(i.BaseFilter,{type:\\\"Saturation\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uSaturation;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nfloat rgMax = max(color.r, color.g);\\\\nfloat rgbMax = max(rgMax, color.b);\\\\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\\\\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\\\\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\\\\ngl_FragColor = color;\\\\n}\\\",saturation:0,mainParameter:\\\"saturation\\\",applyTo2d:function(t){if(0!==this.saturation){var e,i,r=t.imageData.data,n=r.length,o=-this.saturation;for(e=0;e\\u003cn;e+=4)i=Math.max(r[e],r[e+1],r[e+2]),r[e]+=i!==r[e]?(i-r[e])*o:0,r[e+1]+=i!==r[e+1]?(i-r[e+1])*o:0,r[e+2]+=i!==r[e+2]?(i-r[e+2])*o:0}},getUniformLocations:function(t,e){return{uSaturation:t.getUniformLocation(e,\\\"uSaturation\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uSaturation,-this.saturation)}}),e.Image.filters.Saturation.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Vibrance=r(i.BaseFilter,{type:\\\"Vibrance\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform float uVibrance;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nfloat max = max(color.r, max(color.g, color.b));\\\\nfloat avg = (color.r + color.g + color.b) / 3.0;\\\\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\\\\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\\\\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\\\\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\\\\ngl_FragColor = color;\\\\n}\\\",vibrance:0,mainParameter:\\\"vibrance\\\",applyTo2d:function(t){if(0!==this.vibrance){var e,i,r,n,o=t.imageData.data,s=o.length,a=-this.vibrance;for(e=0;e\\u003cs;e+=4)i=Math.max(o[e],o[e+1],o[e+2]),r=(o[e]+o[e+1]+o[e+2])/3,n=2*Math.abs(i-r)/255*a,o[e]+=i!==o[e]?(i-o[e])*n:0,o[e+1]+=i!==o[e+1]?(i-o[e+1])*n:0,o[e+2]+=i!==o[e+2]?(i-o[e+2])*n:0}},getUniformLocations:function(t,e){return{uVibrance:t.getUniformLocation(e,\\\"uVibrance\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uVibrance,-this.vibrance)}}),e.Image.filters.Vibrance.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Blur=r(i.BaseFilter,{type:\\\"Blur\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec2 uDelta;\\\\nvarying vec2 vTexCoord;\\\\nconst float nSamples = 15.0;\\\\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\\\\nfloat random(vec3 scale) {\\\\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\\\\n}\\\\nvoid main() {\\\\nvec4 color = vec4(0.0);\\\\nfloat total = 0.0;\\\\nfloat offset = random(v3offset);\\\\nfor (float t = -nSamples; t \\u003c= nSamples; t++) {\\\\nfloat percent = (t + offset - 0.5) / nSamples;\\\\nfloat weight = 1.0 - abs(percent);\\\\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\\\\ntotal += weight;\\\\n}\\\\ngl_FragColor = color / total;\\\\n}\\\",blur:0,mainParameter:\\\"blur\\\",applyTo:function(t){t.webgl?(this.aspectRatio=t.sourceWidth/t.sourceHeight,t.passes++,this._setupFrameBuffer(t),this.horizontal=!0,this.applyToWebGL(t),this._swapTextures(t),this._setupFrameBuffer(t),this.horizontal=!1,this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},applyTo2d:function(t){t.imageData=this.simpleBlur(t)},simpleBlur:function(t){var i,r,n=t.filterBackend.resources,o=t.imageData.width,s=t.imageData.height;n.blurLayer1||(n.blurLayer1=e.util.createCanvasElement(),n.blurLayer2=e.util.createCanvasElement()),i=n.blurLayer1,r=n.blurLayer2,i.width===o\\u0026\\u0026i.height===s||(r.width=i.width=o,r.height=i.height=s);var a,h,c,l,u=i.getContext(\\\"2d\\\"),f=r.getContext(\\\"2d\\\"),d=15,g=.06*this.blur*.5;for(u.putImageData(t.imageData,0,0),f.clearRect(0,0,o,s),l=-15;l\\u003c=d;l++)c=g*(h=l/d)*o+(a=(Math.random()-.5)/4),f.globalAlpha=1-Math.abs(h),f.drawImage(i,c,a),u.drawImage(r,0,0),f.globalAlpha=1,f.clearRect(0,0,r.width,r.height);for(l=-15;l\\u003c=d;l++)c=g*(h=l/d)*s+(a=(Math.random()-.5)/4),f.globalAlpha=1-Math.abs(h),f.drawImage(i,a,c),u.drawImage(r,0,0),f.globalAlpha=1,f.clearRect(0,0,r.width,r.height);t.ctx.drawImage(i,0,0);var p=t.ctx.getImageData(0,0,i.width,i.height);return u.globalAlpha=1,u.clearRect(0,0,i.width,i.height),p},getUniformLocations:function(t,e){return{delta:t.getUniformLocation(e,\\\"uDelta\\\")}},sendUniformData:function(t,e){var i=this.chooseRightDelta();t.uniform2fv(e.delta,i)},chooseRightDelta:function(){var t,e=1,i=[0,0];return this.horizontal?this.aspectRatio\\u003e1\\u0026\\u0026(e=1/this.aspectRatio):this.aspectRatio\\u003c1\\u0026\\u0026(e=this.aspectRatio),t=e*this.blur*.12,this.horizontal?i[0]=t:i[1]=t,i}}),i.Blur.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Gamma=r(i.BaseFilter,{type:\\\"Gamma\\\",fragmentSource:\\\"precision highp float;\\\\nuniform sampler2D uTexture;\\\\nuniform vec3 uGamma;\\\\nvarying vec2 vTexCoord;\\\\nvoid main() {\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\nvec3 correction = (1.0 / uGamma);\\\\ncolor.r = pow(color.r, correction.r);\\\\ncolor.g = pow(color.g, correction.g);\\\\ncolor.b = pow(color.b, correction.b);\\\\ngl_FragColor = color;\\\\ngl_FragColor.rgb *= color.a;\\\\n}\\\",gamma:[1,1,1],mainParameter:\\\"gamma\\\",initialize:function(t){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,t)},applyTo2d:function(t){var e,i=t.imageData.data,r=this.gamma,n=i.length,o=1/r[0],s=1/r[1],a=1/r[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),e=0,n=256;e\\u003cn;e++)this.rVals[e]=255*Math.pow(e/255,o),this.gVals[e]=255*Math.pow(e/255,s),this.bVals[e]=255*Math.pow(e/255,a);for(e=0,n=i.length;e\\u003cn;e+=4)i[e]=this.rVals[i[e]],i[e+1]=this.gVals[i[e+1]],i[e+2]=this.bVals[i[e+2]]},getUniformLocations:function(t,e){return{uGamma:t.getUniformLocation(e,\\\"uGamma\\\")}},sendUniformData:function(t,e){t.uniform3fv(e.uGamma,this.gamma)}}),e.Image.filters.Gamma.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Composed=r(i.BaseFilter,{type:\\\"Composed\\\",subFilters:[],initialize:function(t){this.callSuper(\\\"initialize\\\",t),this.subFilters=this.subFilters.slice(0)},applyTo:function(t){t.passes+=this.subFilters.length-1,this.subFilters.forEach((function(e){e.applyTo(t)}))},toObject:function(){return e.util.object.extend(this.callSuper(\\\"toObject\\\"),{subFilters:this.subFilters.map((function(t){return t.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(t){return!t.isNeutralState()}))}}),e.Image.filters.Composed.fromObject=function(t,i){var r=(t.subFilters||[]).map((function(t){return new e.Image.filters[t.type](t)})),n=new e.Image.filters.Composed({subFilters:r});return i\\u0026\\u0026i(n),n}}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.HueRotation=r(i.ColorMatrix,{type:\\\"HueRotation\\\",rotation:0,mainParameter:\\\"rotation\\\",calculateMatrix:function(){var t=this.rotation*Math.PI,i=e.util.cos(t),r=e.util.sin(t),n=1/3,o=Math.sqrt(n)*r,s=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+s/3,this.matrix[1]=n*s-o,this.matrix[2]=n*s+o,this.matrix[5]=n*s+o,this.matrix[6]=i+n*s,this.matrix[7]=n*s-o,this.matrix[10]=n*s-o,this.matrix[11]=n*s+o,this.matrix[12]=i+n*s},isNeutralState:function(t){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,t)},applyTo:function(t){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,t)}}),e.Image.filters.HueRotation.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.clone;if(e.Text)e.warn(\\\"fabric.Text is already defined\\\");else{var r=\\\"fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide\\\".split(\\\" \\\");e.Text=e.util.createClass(e.Object,{_dimensionAffectingProps:[\\\"fontSize\\\",\\\"fontWeight\\\",\\\"fontFamily\\\",\\\"fontStyle\\\",\\\"lineHeight\\\",\\\"text\\\",\\\"charSpacing\\\",\\\"textAlign\\\",\\\"styles\\\",\\\"path\\\",\\\"pathStartOffset\\\",\\\"pathSide\\\"],_reNewline:/\\\\r?\\\\n/,_reSpacesAndTabs:/[ \\\\t\\\\r]/g,_reSpaceAndTab:/[ \\\\t\\\\r]/,_reWords:/\\\\S+/g,type:\\\"text\\\",fontSize:40,fontWeight:\\\"normal\\\",fontFamily:\\\"Times New Roman\\\",underline:!1,overline:!1,linethrough:!1,textAlign:\\\"left\\\",fontStyle:\\\"normal\\\",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:\\\"\\\",stateProperties:e.Object.prototype.stateProperties.concat(r),cacheProperties:e.Object.prototype.cacheProperties.concat(r),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:\\\"left\\\",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:\\\"ltr\\\",_styleProperties:[\\\"stroke\\\",\\\"strokeWidth\\\",\\\"fill\\\",\\\"fontFamily\\\",\\\"fontSize\\\",\\\"fontWeight\\\",\\\"fontStyle\\\",\\\"underline\\\",\\\"overline\\\",\\\"linethrough\\\",\\\"deltaY\\\",\\\"textBackgroundColor\\\"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(t,e){this.styles=e\\u0026\\u0026e.styles||{},this.text=t,this.__skipDimension=!0,this.callSuper(\\\"initialize\\\",e),this.path\\u0026\\u0026this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:\\\"_dimensionAffectingProps\\\"})},setPathInfo:function(){var t=this.path;t\\u0026\\u0026(t.segmentsInfo=e.util.getPathSegmentsInfo(t.path))},getMeasuringContext:function(){return e._measuringContext||(e._measuringContext=this.canvas\\u0026\\u0026this.canvas.contextCache||e.util.createCanvasElement().getContext(\\\"2d\\\")),e._measuringContext},_splitText:function(){var t=this._splitTextIntoLines(this.text);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,t},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf(\\\"justify\\\")\\u0026\\u0026this.enlargeSpaces(),this.saveState({propertySet:\\\"_dimensionAffectingProps\\\"}))},enlargeSpaces:function(){for(var t,e,i,r,n,o,s,a=0,h=this._textLines.length;a\\u003ch;a++)if((\\\"justify\\\"===this.textAlign||a!==h-1\\u0026\\u0026!this.isEndOfWrapping(a))\\u0026\\u0026(r=0,n=this._textLines[a],(e=this.getLineWidth(a))\\u003cthis.width\\u0026\\u0026(s=this.textLines[a].match(this._reSpacesAndTabs)))){i=s.length,t=(this.width-e)/i;for(var c=0,l=n.length;c\\u003c=l;c++)o=this.__charBounds[a][c],this._reSpaceAndTab.test(n[c])?(o.width+=t,o.kernedWidth+=t,o.left+=r,r+=t):o.left+=r}},isEndOfWrapping:function(t){return t===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return\\\"#\\u003cfabric.Text (\\\"+this.complexity()+'): { \\\"text\\\": \\\"'+this.text+'\\\", \\\"fontFamily\\\": \\\"'+this.fontFamily+'\\\" }\\u003e'},_getCacheCanvasDimensions:function(){var t=this.callSuper(\\\"_getCacheCanvasDimensions\\\"),e=this.fontSize;return t.width+=e*t.zoomX,t.height+=e*t.zoomY,t},_render:function(t){var e=this.path;e\\u0026\\u0026!e.isNotVisible()\\u0026\\u0026e._render(t),this._setTextStyles(t),this._renderTextLinesBackground(t),this._renderTextDecoration(t,\\\"underline\\\"),this._renderText(t),this._renderTextDecoration(t,\\\"overline\\\"),this._renderTextDecoration(t,\\\"linethrough\\\")},_renderText:function(t){\\\"stroke\\\"===this.paintFirst?(this._renderTextStroke(t),this._renderTextFill(t)):(this._renderTextFill(t),this._renderTextStroke(t))},_setTextStyles:function(t,e,i){t.textBaseline=\\\"alphabetic\\\",t.font=this._getFontDeclaration(e,i)},calcTextWidth:function(){for(var t=this.getLineWidth(0),e=1,i=this._textLines.length;e\\u003ci;e++){var r=this.getLineWidth(e);r\\u003et\\u0026\\u0026(t=r)}return t},_renderTextLine:function(t,e,i,r,n,o){this._renderChars(t,e,i,r,n,o)},_renderTextLinesBackground:function(t){if(this.textBackgroundColor||this.styleHas(\\\"textBackgroundColor\\\")){for(var e,i,r,n,o,s,a,h=t.fillStyle,c=this._getLeftOffset(),l=this._getTopOffset(),u=0,f=0,d=this.path,g=0,p=this._textLines.length;g\\u003cp;g++)if(e=this.getHeightOfLine(g),this.textBackgroundColor||this.styleHas(\\\"textBackgroundColor\\\",g)){r=this._textLines[g],i=this._getLineLeftOffset(g),f=0,u=0,n=this.getValueOfPropertyAt(g,0,\\\"textBackgroundColor\\\");for(var v=0,m=r.length;v\\u003cm;v++)o=this.__charBounds[g][v],s=this.getValueOfPropertyAt(g,v,\\\"textBackgroundColor\\\"),d?(t.save(),t.translate(o.renderLeft,o.renderTop),t.rotate(o.angle),t.fillStyle=s,s\\u0026\\u0026t.fillRect(-o.width/2,-e/this.lineHeight*(1-this._fontSizeFraction),o.width,e/this.lineHeight),t.restore()):s!==n?(a=c+i+u,\\\"rtl\\\"===this.direction\\u0026\\u0026(a=this.width-a-f),t.fillStyle=n,n\\u0026\\u0026t.fillRect(a,l,f,e/this.lineHeight),u=o.left,f=o.width,n=s):f+=o.kernedWidth;s\\u0026\\u0026!d\\u0026\\u0026(a=c+i+u,\\\"rtl\\\"===this.direction\\u0026\\u0026(a=this.width-a-f),t.fillStyle=s,t.fillRect(a,l,f,e/this.lineHeight)),l+=e}else l+=e;t.fillStyle=h,this._removeShadow(t)}},getFontCache:function(t){var i=t.fontFamily.toLowerCase();e.charWidthsCache[i]||(e.charWidthsCache[i]={});var r=e.charWidthsCache[i],n=t.fontStyle.toLowerCase()+\\\"_\\\"+(t.fontWeight+\\\"\\\").toLowerCase();return r[n]||(r[n]={}),r[n]},_measureChar:function(t,e,i,r){var n,o,s,a,h=this.getFontCache(e),c=i+t,l=this._getFontDeclaration(e)===this._getFontDeclaration(r),u=e.fontSize/this.CACHE_FONT_SIZE;if(i\\u0026\\u0026void 0!==h[i]\\u0026\\u0026(s=h[i]),void 0!==h[t]\\u0026\\u0026(a=n=h[t]),l\\u0026\\u0026void 0!==h[c]\\u0026\\u0026(a=(o=h[c])-s),void 0===n||void 0===s||void 0===o){var f=this.getMeasuringContext();this._setTextStyles(f,e,!0)}return void 0===n\\u0026\\u0026(a=n=f.measureText(t).width,h[t]=n),void 0===s\\u0026\\u0026l\\u0026\\u0026i\\u0026\\u0026(s=f.measureText(i).width,h[i]=s),l\\u0026\\u0026void 0===o\\u0026\\u0026(o=f.measureText(c).width,h[c]=o,a=o-s),{width:n*u,kernedWidth:a*u}},getHeightOfChar:function(t,e){return this.getValueOfPropertyAt(t,e,\\\"fontSize\\\")},measureLine:function(t){var e=this._measureLine(t);return 0!==this.charSpacing\\u0026\\u0026(e.width-=this._getWidthOfCharSpacing()),e.width\\u003c0\\u0026\\u0026(e.width=0),e},_measureLine:function(t){var i,r,n,o,s,a,h=0,c=this._textLines[t],l=new Array(c.length),u=0,f=this.path,d=\\\"right\\\"===this.pathSide;for(this.__charBounds[t]=l,i=0;i\\u003cc.length;i++)r=c[i],o=this._getGraphemeBox(r,t,i,n),l[i]=o,h+=o.kernedWidth,n=r;if(l[i]={left:o?o.left+o.width:0,width:0,kernedWidth:0,height:this.fontSize},f){switch(a=f.segmentsInfo[f.segmentsInfo.length-1].length,(s=e.util.getPointOnPath(f.path,0,f.segmentsInfo)).x+=f.pathOffset.x,s.y+=f.pathOffset.y,this.textAlign){case\\\"left\\\":u=d?a-h:0;break;case\\\"center\\\":u=(a-h)/2;break;case\\\"right\\\":u=d?0:a-h}for(u+=this.pathStartOffset*(d?-1:1),i=d?c.length-1:0;d?i\\u003e=0:i\\u003cc.length;d?i--:i++)o=l[i],u\\u003ea?u%=a:u\\u003c0\\u0026\\u0026(u+=a),this._setGraphemeOnPath(u,o,s),u+=o.kernedWidth}return{width:h,numOfSpaces:0}},_setGraphemeOnPath:function(t,i,r){var n=t+i.kernedWidth/2,o=this.path,s=e.util.getPointOnPath(o.path,n,o.segmentsInfo);i.renderLeft=s.x-r.x,i.renderTop=s.y-r.y,i.angle=s.angle+(\\\"right\\\"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(t,e,i,r,n){var o,s=this.getCompleteStyleDeclaration(e,i),a=r?this.getCompleteStyleDeclaration(e,i-1):{},h=this._measureChar(t,s,r,a),c=h.kernedWidth,l=h.width;0!==this.charSpacing\\u0026\\u0026(l+=o=this._getWidthOfCharSpacing(),c+=o);var u={width:l,left:0,height:s.fontSize,kernedWidth:c,deltaY:s.deltaY};if(i\\u003e0\\u0026\\u0026!n){var f=this.__charBounds[e][i-1];u.left=f.left+f.width+h.kernedWidth-h.width}return u},getHeightOfLine:function(t){if(this.__lineHeights[t])return this.__lineHeights[t];for(var e=this._textLines[t],i=this.getHeightOfChar(t,0),r=1,n=e.length;r\\u003cn;r++)i=Math.max(this.getHeightOfChar(t,r),i);return this.__lineHeights[t]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var t,e=0,i=0,r=this._textLines.length;i\\u003cr;i++)t=this.getHeightOfLine(i),e+=i===r-1?t/this.lineHeight:t;return e},_getLeftOffset:function(){return\\\"ltr\\\"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(t,e){t.save();for(var i=0,r=this._getLeftOffset(),n=this._getTopOffset(),o=0,s=this._textLines.length;o\\u003cs;o++){var a=this.getHeightOfLine(o),h=a/this.lineHeight,c=this._getLineLeftOffset(o);this._renderTextLine(e,t,this._textLines[o],r+c,n+i+h,o),i+=a}t.restore()},_renderTextFill:function(t){(this.fill||this.styleHas(\\\"fill\\\"))\\u0026\\u0026this._renderTextCommon(t,\\\"fillText\\\")},_renderTextStroke:function(t){(this.stroke\\u0026\\u00260!==this.strokeWidth||!this.isEmptyStyles())\\u0026\\u0026(this.shadow\\u0026\\u0026!this.shadow.affectStroke\\u0026\\u0026this._removeShadow(t),t.save(),this._setLineDash(t,this.strokeDashArray),t.beginPath(),this._renderTextCommon(t,\\\"strokeText\\\"),t.closePath(),t.restore())},_renderChars:function(t,e,i,r,n,o){var s,a,h,c,l,u=this.getHeightOfLine(o),f=-1!==this.textAlign.indexOf(\\\"justify\\\"),d=\\\"\\\",g=0,p=this.path,v=!f\\u0026\\u00260===this.charSpacing\\u0026\\u0026this.isEmptyStyles(o)\\u0026\\u0026!p,m=\\\"ltr\\\"===this.direction,y=\\\"ltr\\\"===this.direction?1:-1;if(e.save(),n-=u*this._fontSizeFraction/this.lineHeight,v)return e.canvas.setAttribute(\\\"dir\\\",m?\\\"ltr\\\":\\\"rtl\\\"),e.direction=m?\\\"ltr\\\":\\\"rtl\\\",e.textAlign=m?\\\"left\\\":\\\"right\\\",this._renderChar(t,e,o,0,i.join(\\\"\\\"),r,n,u),void e.restore();for(var _=0,b=i.length-1;_\\u003c=b;_++)c=_===b||this.charSpacing||p,d+=i[_],h=this.__charBounds[o][_],0===g?(r+=y*(h.kernedWidth-h.width),g+=h.width):g+=h.kernedWidth,f\\u0026\\u0026!c\\u0026\\u0026this._reSpaceAndTab.test(i[_])\\u0026\\u0026(c=!0),c||(s=s||this.getCompleteStyleDeclaration(o,_),a=this.getCompleteStyleDeclaration(o,_+1),c=this._hasStyleChanged(s,a)),c\\u0026\\u0026(p?(e.save(),e.translate(h.renderLeft,h.renderTop),e.rotate(h.angle),this._renderChar(t,e,o,_,d,-g/2,0,u),e.restore()):(l=r,e.canvas.setAttribute(\\\"dir\\\",m?\\\"ltr\\\":\\\"rtl\\\"),e.direction=m?\\\"ltr\\\":\\\"rtl\\\",e.textAlign=m?\\\"left\\\":\\\"right\\\",this._renderChar(t,e,o,_,d,l,n,u)),d=\\\"\\\",s=a,r+=y*g,g=0);e.restore()},_applyPatternGradientTransformText:function(t){var i,r=e.util.createCanvasElement(),n=this.width+this.strokeWidth,o=this.height+this.strokeWidth;return r.width=n,r.height=o,(i=r.getContext(\\\"2d\\\")).beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,o),i.lineTo(0,o),i.closePath(),i.translate(n/2,o/2),i.fillStyle=t.toLive(i),this._applyPatternGradientTransform(i,t),i.fill(),i.createPattern(r,\\\"no-repeat\\\")},handleFiller:function(t,e,i){var r,n;return i.toLive?\\\"percentage\\\"===i.gradientUnits||i.gradientTransform||i.patternTransform?(r=-this.width/2,n=-this.height/2,t.translate(r,n),t[e]=this._applyPatternGradientTransformText(i),{offsetX:r,offsetY:n}):(t[e]=i.toLive(t,this),this._applyPatternGradientTransform(t,i)):(t[e]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(t,e){return t.lineWidth=e.strokeWidth,t.lineCap=this.strokeLineCap,t.lineDashOffset=this.strokeDashOffset,t.lineJoin=this.strokeLineJoin,t.miterLimit=this.strokeMiterLimit,this.handleFiller(t,\\\"strokeStyle\\\",e.stroke)},_setFillStyles:function(t,e){return this.handleFiller(t,\\\"fillStyle\\\",e.fill)},_renderChar:function(t,e,i,r,n,o,s){var a,h,c=this._getStyleDeclaration(i,r),l=this.getCompleteStyleDeclaration(i,r),u=\\\"fillText\\\"===t\\u0026\\u0026l.fill,f=\\\"strokeText\\\"===t\\u0026\\u0026l.stroke\\u0026\\u0026l.strokeWidth;(f||u)\\u0026\\u0026(e.save(),u\\u0026\\u0026(a=this._setFillStyles(e,l)),f\\u0026\\u0026(h=this._setStrokeStyles(e,l)),e.font=this._getFontDeclaration(l),c\\u0026\\u0026c.textBackgroundColor\\u0026\\u0026this._removeShadow(e),c\\u0026\\u0026c.deltaY\\u0026\\u0026(s+=c.deltaY),u\\u0026\\u0026e.fillText(n,o-a.offsetX,s-a.offsetY),f\\u0026\\u0026e.strokeText(n,o-h.offsetX,s-h.offsetY),e.restore())},setSuperscript:function(t,e){return this._setScript(t,e,this.superscript)},setSubscript:function(t,e){return this._setScript(t,e,this.subscript)},_setScript:function(t,e,i){var r=this.get2DCursorLocation(t,!0),n=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,\\\"fontSize\\\"),o=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,\\\"deltaY\\\"),s={fontSize:n*i.size,deltaY:o+n*i.baseline};return this.setSelectionStyles(s,t,e),this},_hasStyleChanged:function(t,e){return t.fill!==e.fill||t.stroke!==e.stroke||t.strokeWidth!==e.strokeWidth||t.fontSize!==e.fontSize||t.fontFamily!==e.fontFamily||t.fontWeight!==e.fontWeight||t.fontStyle!==e.fontStyle||t.deltaY!==e.deltaY},_hasStyleChangedForSvg:function(t,e){return this._hasStyleChanged(t,e)||t.overline!==e.overline||t.underline!==e.underline||t.linethrough!==e.linethrough},_getLineLeftOffset:function(t){var e=this.getLineWidth(t),i=this.width-e,r=this.textAlign,n=this.direction,o=0,s=this.isEndOfWrapping(t);return\\\"justify\\\"===r||\\\"justify-center\\\"===r\\u0026\\u0026!s||\\\"justify-right\\\"===r\\u0026\\u0026!s||\\\"justify-left\\\"===r\\u0026\\u0026!s?0:(\\\"center\\\"===r\\u0026\\u0026(o=i/2),\\\"right\\\"===r\\u0026\\u0026(o=i),\\\"justify-center\\\"===r\\u0026\\u0026(o=i/2),\\\"justify-right\\\"===r\\u0026\\u0026(o=i),\\\"rtl\\\"===n\\u0026\\u0026(o-=i),o)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var t=this._forceClearCache;return t||(t=this.hasStateChanged(\\\"_dimensionAffectingProps\\\")),t\\u0026\\u0026(this.dirty=!0,this._forceClearCache=!1),t},getLineWidth:function(t){return this.__lineWidths[t]?this.__lineWidths[t]:(e=\\\"\\\"===this._textLines[t]?0:this.measureLine(t).width,this.__lineWidths[t]=e,e);var e},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(t,e,i){var r=this._getStyleDeclaration(t,e);return r\\u0026\\u0026void 0!==r[i]?r[i]:this[i]},_renderTextDecoration:function(t,e){if(this[e]||this.styleHas(e)){for(var i,r,n,o,s,a,h,c,l,u,f,d,g,p,v,m,y=this._getLeftOffset(),_=this._getTopOffset(),b=this.path,x=this._getWidthOfCharSpacing(),C=this.offsets[e],w=0,S=this._textLines.length;w\\u003cS;w++)if(i=this.getHeightOfLine(w),this[e]||this.styleHas(e,w)){h=this._textLines[w],p=i/this.lineHeight,o=this._getLineLeftOffset(w),u=0,f=0,c=this.getValueOfPropertyAt(w,0,e),m=this.getValueOfPropertyAt(w,0,\\\"fill\\\"),l=_+p*(1-this._fontSizeFraction),r=this.getHeightOfChar(w,0),s=this.getValueOfPropertyAt(w,0,\\\"deltaY\\\");for(var T=0,O=h.length;T\\u003cO;T++)if(d=this.__charBounds[w][T],g=this.getValueOfPropertyAt(w,T,e),v=this.getValueOfPropertyAt(w,T,\\\"fill\\\"),n=this.getHeightOfChar(w,T),a=this.getValueOfPropertyAt(w,T,\\\"deltaY\\\"),b\\u0026\\u0026g\\u0026\\u0026v)t.save(),t.fillStyle=m,t.translate(d.renderLeft,d.renderTop),t.rotate(d.angle),t.fillRect(-d.kernedWidth/2,C*n+a,d.kernedWidth,this.fontSize/15),t.restore();else if((g!==c||v!==m||n!==r||a!==s)\\u0026\\u0026f\\u003e0){var P=y+o+u;\\\"rtl\\\"===this.direction\\u0026\\u0026(P=this.width-P-f),c\\u0026\\u0026m\\u0026\\u0026(t.fillStyle=m,t.fillRect(P,l+C*r+s,f,this.fontSize/15)),u=d.left,f=d.width,c=g,m=v,r=n,s=a}else f+=d.kernedWidth;P=y+o+u;\\\"rtl\\\"===this.direction\\u0026\\u0026(P=this.width-P-f),t.fillStyle=v,g\\u0026\\u0026v\\u0026\\u0026t.fillRect(P,l+C*r+s,f-x,this.fontSize/15),_+=i}else _+=i;this._removeShadow(t)}},_getFontDeclaration:function(t,i){var r=t||this,n=this.fontFamily,o=e.Text.genericFonts.indexOf(n.toLowerCase())\\u003e-1,s=void 0===n||n.indexOf(\\\"'\\\")\\u003e-1||n.indexOf(\\\",\\\")\\u003e-1||n.indexOf('\\\"')\\u003e-1||o?r.fontFamily:'\\\"'+r.fontFamily+'\\\"';return[e.isLikelyNode?r.fontWeight:r.fontStyle,e.isLikelyNode?r.fontStyle:r.fontWeight,i?this.CACHE_FONT_SIZE+\\\"px\\\":r.fontSize+\\\"px\\\",s].join(\\\" \\\")},render:function(t){this.visible\\u0026\\u0026(this.canvas\\u0026\\u0026this.canvas.skipOffscreen\\u0026\\u0026!this.group\\u0026\\u0026!this.isOnScreen()||(this._shouldClearDimensionCache()\\u0026\\u0026this.initDimensions(),this.callSuper(\\\"render\\\",t)))},_splitTextIntoLines:function(t){for(var i=t.split(this._reNewline),r=new Array(i.length),n=[\\\"\\\\n\\\"],o=[],s=0;s\\u003ci.length;s++)r[s]=e.util.string.graphemeSplit(i[s]),o=o.concat(r[s],n);return o.pop(),{_unwrappedLines:r,lines:i,graphemeText:o,graphemeLines:r}},toObject:function(t){var e=r.concat(t),n=this.callSuper(\\\"toObject\\\",e);return n.styles=i(this.styles,!0),n.path\\u0026\\u0026(n.path=this.path.toObject()),n},set:function(t,e){this.callSuper(\\\"set\\\",t,e);var i=!1,r=!1;if(\\\"object\\\"==typeof t)for(var n in t)\\\"path\\\"===n\\u0026\\u0026this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),r=r||\\\"path\\\"===n;else i=-1!==this._dimensionAffectingProps.indexOf(t),r=\\\"path\\\"===t;return r\\u0026\\u0026this.setPathInfo(),i\\u0026\\u0026(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),e.Text.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\"x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor\\\".split(\\\" \\\")),e.Text.DEFAULT_SVG_FONT_SIZE=16,e.Text.fromElement=function(t,r,n){if(!t)return r(null);var o=e.parseAttributes(t,e.Text.ATTRIBUTE_NAMES),s=o.textAnchor||\\\"left\\\";if((n=e.util.object.extend(n?i(n):{},o)).top=n.top||0,n.left=n.left||0,o.textDecoration){var a=o.textDecoration;-1!==a.indexOf(\\\"underline\\\")\\u0026\\u0026(n.underline=!0),-1!==a.indexOf(\\\"overline\\\")\\u0026\\u0026(n.overline=!0),-1!==a.indexOf(\\\"line-through\\\")\\u0026\\u0026(n.linethrough=!0),delete n.textDecoration}\\\"dx\\\"in o\\u0026\\u0026(n.left+=o.dx),\\\"dy\\\"in o\\u0026\\u0026(n.top+=o.dy),\\\"fontSize\\\"in n||(n.fontSize=e.Text.DEFAULT_SVG_FONT_SIZE);var h=\\\"\\\";\\\"textContent\\\"in t?h=t.textContent:\\\"firstChild\\\"in t\\u0026\\u0026null!==t.firstChild\\u0026\\u0026\\\"data\\\"in t.firstChild\\u0026\\u0026null!==t.firstChild.data\\u0026\\u0026(h=t.firstChild.data),h=h.replace(/^\\\\s+|\\\\s+$|\\\\n+/g,\\\"\\\").replace(/\\\\s+/g,\\\" \\\");var c=n.strokeWidth;n.strokeWidth=0;var l=new e.Text(h,n),u=l.getScaledHeight()/l.height,f=((l.height+l.strokeWidth)*l.lineHeight-l.height)*u,d=l.getScaledHeight()+f,g=0;\\\"center\\\"===s\\u0026\\u0026(g=l.getScaledWidth()/2),\\\"right\\\"===s\\u0026\\u0026(g=l.getScaledWidth()),l.set({left:l.left-g,top:l.top-(d-l.fontSize*(.07+l._fontSizeFraction))/l.lineHeight,strokeWidth:void 0!==c?c:1}),r(l)},e.Text.fromObject=function(t,r){var n=i(t),o=t.path;return delete n.path,e.Object._fromObject(\\\"Text\\\",n,(function(t){o?e.Object._fromObject(\\\"Path\\\",o,(function(e){t.set(\\\"path\\\",e),r(t)}),\\\"path\\\"):r(t)}),\\\"text\\\")},e.Text.genericFonts=[\\\"sans-serif\\\",\\\"serif\\\",\\\"cursive\\\",\\\"fantasy\\\",\\\"monospace\\\"],e.util.createAccessors\\u0026\\u0026e.util.createAccessors(e.Text)}}(t),T.util.object.extend(T.Text.prototype,{isEmptyStyles:function(t){if(!this.styles)return!0;if(void 0!==t\\u0026\\u0026!this.styles[t])return!0;var e=void 0===t?this.styles:{line:this.styles[t]};for(var i in e)for(var r in e[i])for(var n in e[i][r])return!1;return!0},styleHas:function(t,e){if(!this.styles||!t||\\\"\\\"===t)return!1;if(void 0!==e\\u0026\\u0026!this.styles[e])return!1;var i=void 0===e?this.styles:{0:this.styles[e]};for(var r in i)for(var n in i[r])if(void 0!==i[r][n][t])return!0;return!1},cleanStyle:function(t){if(!this.styles||!t||\\\"\\\"===t)return!1;var e,i,r=this.styles,n=0,o=!0,s=0;for(var a in r){for(var h in e=0,r[a]){var c;n++,(c=r[a][h]).hasOwnProperty(t)?(i?c[t]!==i\\u0026\\u0026(o=!1):i=c[t],c[t]===this[t]\\u0026\\u0026delete c[t]):o=!1,0!==Object.keys(c).length?e++:delete r[a][h]}0===e\\u0026\\u0026delete r[a]}for(var l=0;l\\u003cthis._textLines.length;l++)s+=this._textLines[l].length;o\\u0026\\u0026n===s\\u0026\\u0026(this[t]=i,this.removeStyle(t))},removeStyle:function(t){if(this.styles\\u0026\\u0026t\\u0026\\u0026\\\"\\\"!==t){var e,i,r,n=this.styles;for(i in n){for(r in e=n[i])delete e[r][t],0===Object.keys(e[r]).length\\u0026\\u0026delete e[r];0===Object.keys(e).length\\u0026\\u0026delete n[i]}}},_extendStyles:function(t,e){var i=this.get2DCursorLocation(t);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),T.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),e)},get2DCursorLocation:function(t,e){void 0===t\\u0026\\u0026(t=this.selectionStart);for(var i=e?this._unwrappedTextLines:this._textLines,r=i.length,n=0;n\\u003cr;n++){if(t\\u003c=i[n].length)return{lineIndex:n,charIndex:t};t-=i[n].length+this.missingNewlineOffset(n)}return{lineIndex:n-1,charIndex:i[n-1].length\\u003ct?i[n-1].length:t}},getSelectionStyles:function(t,e,i){void 0===t\\u0026\\u0026(t=this.selectionStart||0),void 0===e\\u0026\\u0026(e=this.selectionEnd||t);for(var r=[],n=t;n\\u003ce;n++)r.push(this.getStyleAtPosition(n,i));return r},getStyleAtPosition:function(t,e){var i=this.get2DCursorLocation(t);return(e?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(t,e,i){void 0===e\\u0026\\u0026(e=this.selectionStart||0),void 0===i\\u0026\\u0026(i=this.selectionEnd||e);for(var r=e;r\\u003ci;r++)this._extendStyles(r,t);return this._forceClearCache=!0,this},_getStyleDeclaration:function(t,e){var i=this.styles\\u0026\\u0026this.styles[t];return i?i[e]:null},getCompleteStyleDeclaration:function(t,e){for(var i,r=this._getStyleDeclaration(t,e)||{},n={},o=0;o\\u003cthis._styleProperties.length;o++)n[i=this._styleProperties[o]]=void 0===r[i]?this[i]:r[i];return n},_setStyleDeclaration:function(t,e,i){this.styles[t][e]=i},_deleteStyleDeclaration:function(t,e){delete this.styles[t][e]},_getLineStyle:function(t){return!!this.styles[t]},_setLineStyle:function(t){this.styles[t]={}},_deleteLineStyle:function(t){delete this.styles[t]}}),function(){function t(t){t.textDecoration\\u0026\\u0026(t.textDecoration.indexOf(\\\"underline\\\")\\u003e-1\\u0026\\u0026(t.underline=!0),t.textDecoration.indexOf(\\\"line-through\\\")\\u003e-1\\u0026\\u0026(t.linethrough=!0),t.textDecoration.indexOf(\\\"overline\\\")\\u003e-1\\u0026\\u0026(t.overline=!0),delete t.textDecoration)}T.IText=T.util.createClass(T.Text,T.Observable,{type:\\\"i-text\\\",selectionStart:0,selectionEnd:0,selectionColor:\\\"rgba(17,119,255,0.3)\\\",isEditing:!1,editable:!0,editingBorderColor:\\\"rgba(102,153,255,0.25)\\\",cursorWidth:2,cursorColor:\\\"\\\",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\\\\s|\\\\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(t,e){this.callSuper(\\\"initialize\\\",t,e),this.initBehavior()},setSelectionStart:function(t){t=Math.max(t,0),this._updateAndFire(\\\"selectionStart\\\",t)},setSelectionEnd:function(t){t=Math.min(t,this.text.length),this._updateAndFire(\\\"selectionEnd\\\",t)},_updateAndFire:function(t,e){this[t]!==e\\u0026\\u0026(this._fireSelectionChanged(),this[t]=e),this._updateTextarea()},_fireSelectionChanged:function(){this.fire(\\\"selection:changed\\\"),this.canvas\\u0026\\u0026this.canvas.fire(\\\"text:selection:changed\\\",{target:this})},initDimensions:function(){this.isEditing\\u0026\\u0026this.initDelayedCursor(),this.clearContextTop(),this.callSuper(\\\"initDimensions\\\")},render:function(t){this.clearContextTop(),this.callSuper(\\\"render\\\",t),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(t){this.callSuper(\\\"_render\\\",t)},clearContextTop:function(t){if(this.isEditing\\u0026\\u0026this.canvas\\u0026\\u0026this.canvas.contextTop){var e=this.canvas.contextTop,i=this.canvas.viewportTransform;e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(e),this._clearTextArea(e),t||e.restore()}},renderCursorOrSelection:function(){if(this.isEditing\\u0026\\u0026this.canvas\\u0026\\u0026this.canvas.contextTop){var t=this._getCursorBoundaries(),e=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(t,e):this.renderSelection(t,e),e.restore()}},_clearTextArea:function(t){var e=this.width+4,i=this.height+4;t.clearRect(-e/2,-i/2,e,i)},_getCursorBoundaries:function(t){void 0===t\\u0026\\u0026(t=this.selectionStart);var e=this._getLeftOffset(),i=this._getTopOffset(),r=this._getCursorBoundariesOffsets(t);return{left:e,top:i,leftOffset:r.left,topOffset:r.top}},_getCursorBoundariesOffsets:function(t){if(this.cursorOffsetCache\\u0026\\u0026\\\"top\\\"in this.cursorOffsetCache)return this.cursorOffsetCache;var e,i,r,n,o=0,s=0,a=this.get2DCursorLocation(t);r=a.charIndex,i=a.lineIndex;for(var h=0;h\\u003ci;h++)o+=this.getHeightOfLine(h);e=this._getLineLeftOffset(i);var c=this.__charBounds[i][r];return c\\u0026\\u0026(s=c.left),0!==this.charSpacing\\u0026\\u0026r===this._textLines[i].length\\u0026\\u0026(s-=this._getWidthOfCharSpacing()),n={top:o,left:e+(s\\u003e0?s:0)},\\\"rtl\\\"===this.direction\\u0026\\u0026(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(t,e){var i=this.get2DCursorLocation(),r=i.lineIndex,n=i.charIndex\\u003e0?i.charIndex-1:0,o=this.getValueOfPropertyAt(r,n,\\\"fontSize\\\"),s=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/s,h=t.topOffset,c=this.getValueOfPropertyAt(r,n,\\\"deltaY\\\");h+=(1-this._fontSizeFraction)*this.getHeightOfLine(r)/this.lineHeight-o*(1-this._fontSizeFraction),this.inCompositionMode\\u0026\\u0026this.renderSelection(t,e),e.fillStyle=this.cursorColor||this.getValueOfPropertyAt(r,n,\\\"fill\\\"),e.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,e.fillRect(t.left+t.leftOffset-a/2,h+t.top+c,a,o)},renderSelection:function(t,e){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,r=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf(\\\"justify\\\"),o=this.get2DCursorLocation(i),s=this.get2DCursorLocation(r),a=o.lineIndex,h=s.lineIndex,c=o.charIndex\\u003c0?0:o.charIndex,l=s.charIndex\\u003c0?0:s.charIndex,u=a;u\\u003c=h;u++){var f,d=this._getLineLeftOffset(u)||0,g=this.getHeightOfLine(u),p=0,v=0;if(u===a\\u0026\\u0026(p=this.__charBounds[a][c].left),u\\u003e=a\\u0026\\u0026u\\u003ch)v=n\\u0026\\u0026!this.isEndOfWrapping(u)?this.width:this.getLineWidth(u)||5;else if(u===h)if(0===l)v=this.__charBounds[h][l].left;else{var m=this._getWidthOfCharSpacing();v=this.__charBounds[h][l-1].left+this.__charBounds[h][l-1].width-m}f=g,(this.lineHeight\\u003c1||u===h\\u0026\\u0026this.lineHeight\\u003e1)\\u0026\\u0026(g/=this.lineHeight);var y=t.left+d+p,_=v-p,b=g,x=0;this.inCompositionMode?(e.fillStyle=this.compositionColor||\\\"black\\\",b=1,x=g):e.fillStyle=this.selectionColor,\\\"rtl\\\"===this.direction\\u0026\\u0026(y=this.width-y-_),e.fillRect(y,t.top+t.topOffset+x,_,b),t.topOffset+=f}},getCurrentCharFontSize:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,\\\"fontSize\\\")},getCurrentCharColor:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,\\\"fill\\\")},_getCurrentCharIndex:function(){var t=this.get2DCursorLocation(this.selectionStart,!0),e=t.charIndex\\u003e0?t.charIndex-1:0;return{l:t.lineIndex,c:e}}}),T.IText.fromObject=function(e,i){if(t(e),e.styles)for(var r in e.styles)for(var n in e.styles[r])t(e.styles[r][n]);T.Object._fromObject(\\\"IText\\\",e,i,\\\"text\\\")}}(),S=T.util.object.clone,T.util.object.extend(T.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing\\u0026\\u0026this.exitEditing(),this.selected=!1},initAddedHandler:function(){var t=this;this.on(\\\"added\\\",(function(){var e=t.canvas;e\\u0026\\u0026(e._hasITextHandlers||(e._hasITextHandlers=!0,t._initCanvasHandlers(e)),e._iTextInstances=e._iTextInstances||[],e._iTextInstances.push(t))}))},initRemovedHandler:function(){var t=this;this.on(\\\"removed\\\",(function(){var e=t.canvas;e\\u0026\\u0026(e._iTextInstances=e._iTextInstances||[],T.util.removeFromArray(e._iTextInstances,t),0===e._iTextInstances.length\\u0026\\u0026(e._hasITextHandlers=!1,t._removeCanvasHandlers(e)))}))},_initCanvasHandlers:function(t){t._mouseUpITextHandler=function(){t._iTextInstances\\u0026\\u0026t._iTextInstances.forEach((function(t){t.__isMousedown=!1}))},t.on(\\\"mouse:up\\\",t._mouseUpITextHandler)},_removeCanvasHandlers:function(t){t.off(\\\"mouse:up\\\",t._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,\\\"_onTickComplete\\\")},_animateCursor:function(t,e,i,r){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},t.animate(\\\"_currentCursorOpacity\\\",e,{duration:i,onComplete:function(){n.isAborted||t[r]()},onChange:function(){t.canvas\\u0026\\u0026t.selectionStart===t.selectionEnd\\u0026\\u0026t.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var t=this;this._cursorTimeout1\\u0026\\u0026clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){t._currentTickCompleteState=t._animateCursor(t,0,this.cursorDuration/2,\\\"_tick\\\")}),100)},initDelayedCursor:function(t){var e=this,i=t?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){e._tick()}),i)},abortCursorAnimation:function(){var t=this._currentTickState||this._currentTickCompleteState,e=this.canvas;this._currentTickState\\u0026\\u0026this._currentTickState.abort(),this._currentTickCompleteState\\u0026\\u0026this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,t\\u0026\\u0026e\\u0026\\u0026e.clearContext(e.contextTop||e.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join(\\\"\\\")},findWordBoundaryLeft:function(t){var e=0,i=t-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i--;for(;/\\\\S/.test(this._text[i])\\u0026\\u0026i\\u003e-1;)e++,i--;return t-e},findWordBoundaryRight:function(t){var e=0,i=t;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i++;for(;/\\\\S/.test(this._text[i])\\u0026\\u0026i\\u003cthis._text.length;)e++,i++;return t+e},findLineBoundaryLeft:function(t){for(var e=0,i=t-1;!/\\\\n/.test(this._text[i])\\u0026\\u0026i\\u003e-1;)e++,i--;return t-e},findLineBoundaryRight:function(t){for(var e=0,i=t;!/\\\\n/.test(this._text[i])\\u0026\\u0026i\\u003cthis._text.length;)e++,i++;return t+e},searchWordBoundary:function(t,e){for(var i=this._text,r=this._reSpace.test(i[t])?t-1:t,n=i[r],o=T.reNonWord;!o.test(n)\\u0026\\u0026r\\u003e0\\u0026\\u0026r\\u003ci.length;)n=i[r+=e];return o.test(n)\\u0026\\u0026(r+=1===e?0:1),r},selectWord:function(t){t=t||this.selectionStart;var e=this.searchWordBoundary(t,-1),i=this.searchWordBoundary(t,1);this.selectionStart=e,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(t){t=t||this.selectionStart;var e=this.findLineBoundaryLeft(t),i=this.findLineBoundaryRight(t);return this.selectionStart=e,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(t){if(!this.isEditing\\u0026\\u0026this.editable)return this.canvas\\u0026\\u0026(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(t),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire(\\\"editing:entered\\\"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire(\\\"text:editing:entered\\\",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(t){t._iTextInstances\\u0026\\u0026t._iTextInstances.forEach((function(t){t.selected=!1,t.isEditing\\u0026\\u0026t.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on(\\\"mouse:move\\\",this.mouseMoveHandler)},mouseMoveHandler:function(t){if(this.__isMousedown\\u0026\\u0026this.isEditing){var e=this.getSelectionStartFromPointer(t.e),i=this.selectionStart,r=this.selectionEnd;(e===this.__selectionStartOnMouseDown\\u0026\\u0026i!==r||i!==e\\u0026\\u0026r!==e)\\u0026\\u0026(e\\u003ethis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=e):(this.selectionStart=e,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i\\u0026\\u0026this.selectionEnd===r||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor=\\\"text\\\",this.canvas\\u0026\\u0026(this.canvas.defaultCursor=this.canvas.moveCursor=\\\"text\\\"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(t,e,i){var r=i.slice(0,t),n=T.util.string.graphemeSplit(r).length;if(t===e)return{selectionStart:n,selectionEnd:n};var o=i.slice(t,e);return{selectionStart:n,selectionEnd:n+T.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(t,e,i){var r=i.slice(0,t).join(\\\"\\\").length;return t===e?{selectionStart:r,selectionEnd:r}:{selectionStart:r,selectionEnd:r+i.slice(t,e).join(\\\"\\\").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var t=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=t.selectionStart,this.hiddenTextarea.selectionEnd=t.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()\\u0026\\u0026(this.initDimensions(),this.setCoords());var t=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=t.selectionEnd,this.inCompositionMode||(this.selectionStart=t.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var t=this._calcTextareaPosition();this.hiddenTextarea.style.left=t.left,this.hiddenTextarea.style.top=t.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var t=this.inCompositionMode?this.compositionStart:this.selectionStart,e=this._getCursorBoundaries(t),i=this.get2DCursorLocation(t),r=i.lineIndex,n=i.charIndex,o=this.getValueOfPropertyAt(r,n,\\\"fontSize\\\")*this.lineHeight,s=e.leftOffset,a=this.calcTransformMatrix(),h={x:e.left+s,y:e.top+e.topOffset+o},c=this.canvas.getRetinaScaling(),l=this.canvas.upperCanvasEl,u=l.width/c,f=l.height/c,d=u-o,g=f-o,p=l.clientWidth/u,v=l.clientHeight/f;return h=T.util.transformPoint(h,a),(h=T.util.transformPoint(h,this.canvas.viewportTransform)).x*=p,h.y*=v,h.x\\u003c0\\u0026\\u0026(h.x=0),h.x\\u003ed\\u0026\\u0026(h.x=d),h.y\\u003c0\\u0026\\u0026(h.y=0),h.y\\u003eg\\u0026\\u0026(h.y=g),h.x+=this.canvas._offset.left,h.y+=this.canvas._offset.top,{left:h.x+\\\"px\\\",top:h.y+\\\"px\\\",fontSize:o+\\\"px\\\",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas\\u0026\\u0026this.canvas.defaultCursor,moveCursor:this.canvas\\u0026\\u0026this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps\\u0026\\u0026(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas\\u0026\\u0026(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var t=this._textBeforeEdit!==this.text,e=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,e\\u0026\\u0026(e.blur\\u0026\\u0026e.blur(),e.parentNode\\u0026\\u0026e.parentNode.removeChild(e)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()\\u0026\\u0026(this.initDimensions(),this.setCoords()),this.fire(\\\"editing:exited\\\"),t\\u0026\\u0026this.fire(\\\"modified\\\"),this.canvas\\u0026\\u0026(this.canvas.off(\\\"mouse:move\\\",this.mouseMoveHandler),this.canvas.fire(\\\"text:editing:exited\\\",{target:this}),t\\u0026\\u0026this.canvas.fire(\\\"object:modified\\\",{target:this})),this},_removeExtraneousStyles:function(){for(var t in this.styles)this._textLines[t]||delete this.styles[t]},removeStyleFromTo:function(t,e){var i,r,n=this.get2DCursorLocation(t,!0),o=this.get2DCursorLocation(e,!0),s=n.lineIndex,a=n.charIndex,h=o.lineIndex,c=o.charIndex;if(s!==h){if(this.styles[s])for(i=a;i\\u003cthis._unwrappedTextLines[s].length;i++)delete this.styles[s][i];if(this.styles[h])for(i=c;i\\u003cthis._unwrappedTextLines[h].length;i++)(r=this.styles[h][i])\\u0026\\u0026(this.styles[s]||(this.styles[s]={}),this.styles[s][a+i-c]=r);for(i=s+1;i\\u003c=h;i++)delete this.styles[i];this.shiftLineStyles(h,s-h)}else if(this.styles[s]){r=this.styles[s];var l,u,f=c-a;for(i=a;i\\u003cc;i++)delete r[i];for(u in this.styles[s])(l=parseInt(u,10))\\u003e=c\\u0026\\u0026(r[l-f]=r[u],delete r[u])}},shiftLineStyles:function(t,e){var i=S(this.styles);for(var r in this.styles){var n=parseInt(r,10);n\\u003et\\u0026\\u0026(this.styles[n+e]=i[n],i[n-e]||delete this.styles[n])}},restartCursorIfNeeded:function(){this._currentTickState\\u0026\\u0026!this._currentTickState.isAborted\\u0026\\u0026this._currentTickCompleteState\\u0026\\u0026!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,e,i,r){var n,o={},s=!1,a=this._unwrappedTextLines[t].length===e;for(var h in i||(i=1),this.shiftLineStyles(t,i),this.styles[t]\\u0026\\u0026(n=this.styles[t][0===e?e:e-1]),this.styles[t]){var c=parseInt(h,10);c\\u003e=e\\u0026\\u0026(s=!0,o[c-e]=this.styles[t][h],a\\u0026\\u00260===e||delete this.styles[t][h])}var l=!1;for(s\\u0026\\u0026!a\\u0026\\u0026(this.styles[t+i]=o,l=!0),l\\u0026\\u0026i--;i\\u003e0;)r\\u0026\\u0026r[i-1]?this.styles[t+i]={0:S(r[i-1])}:n?this.styles[t+i]={0:S(n)}:delete this.styles[t+i],i--;this._forceClearCache=!0},insertCharStyleObject:function(t,e,i,r){this.styles||(this.styles={});var n=this.styles[t],o=n?S(n):{};for(var s in i||(i=1),o){var a=parseInt(s,10);a\\u003e=e\\u0026\\u0026(n[a+i]=o[a],o[a-i]||delete n[a])}if(this._forceClearCache=!0,r)for(;i--;)Object.keys(r[i]).length\\u0026\\u0026(this.styles[t]||(this.styles[t]={}),this.styles[t][e+i]=S(r[i]));else if(n)for(var h=n[e?e-1:1];h\\u0026\\u0026i--;)this.styles[t][e+i]=S(h)},insertNewStyleBlock:function(t,e,i){for(var r=this.get2DCursorLocation(e,!0),n=[0],o=0,s=0;s\\u003ct.length;s++)\\\"\\\\n\\\"===t[s]?n[++o]=0:n[o]++;for(n[0]\\u003e0\\u0026\\u0026(this.insertCharStyleObject(r.lineIndex,r.charIndex,n[0],i),i=i\\u0026\\u0026i.slice(n[0]+1)),o\\u0026\\u0026this.insertNewlineStyleObject(r.lineIndex,r.charIndex+n[0],o),s=1;s\\u003co;s++)n[s]\\u003e0?this.insertCharStyleObject(r.lineIndex+s,0,n[s],i):i\\u0026\\u0026(this.styles[r.lineIndex+s][0]=i[0]),i=i\\u0026\\u0026i.slice(n[s]+1);n[s]\\u003e0\\u0026\\u0026this.insertCharStyleObject(r.lineIndex+s,0,n[s],i)},setSelectionStartEndWithShift:function(t,e,i){i\\u003c=t?(e===t?this._selectionDirection=\\\"left\\\":\\\"right\\\"===this._selectionDirection\\u0026\\u0026(this._selectionDirection=\\\"left\\\",this.selectionEnd=t),this.selectionStart=i):i\\u003et\\u0026\\u0026i\\u003ce?\\\"right\\\"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(e===t?this._selectionDirection=\\\"right\\\":\\\"left\\\"===this._selectionDirection\\u0026\\u0026(this._selectionDirection=\\\"right\\\",this.selectionStart=e),this.selectionEnd=i)},setSelectionInBoundaries:function(){var t=this.text.length;this.selectionStart\\u003et?this.selectionStart=t:this.selectionStart\\u003c0\\u0026\\u0026(this.selectionStart=0),this.selectionEnd\\u003et?this.selectionEnd=t:this.selectionEnd\\u003c0\\u0026\\u0026(this.selectionEnd=0)}}),T.util.object.extend(T.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on(\\\"mousedown\\\",this.onMouseDown)},onMouseDown:function(t){if(this.canvas){this.__newClickTime=+new Date;var e=t.pointer;this.isTripleClick(e)\\u0026\\u0026(this.fire(\\\"tripleclick\\\",t),this._stopEvent(t.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=e,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(t){return this.__newClickTime-this.__lastClickTime\\u003c500\\u0026\\u0026this.__lastClickTime-this.__lastLastClickTime\\u003c500\\u0026\\u0026this.__lastPointer.x===t.x\\u0026\\u0026this.__lastPointer.y===t.y},_stopEvent:function(t){t.preventDefault\\u0026\\u0026t.preventDefault(),t.stopPropagation\\u0026\\u0026t.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(t){this.isEditing\\u0026\\u0026this.selectWord(this.getSelectionStartFromPointer(t.e))},tripleClickHandler:function(t){this.isEditing\\u0026\\u0026this.selectLine(this.getSelectionStartFromPointer(t.e))},initClicks:function(){this.on(\\\"mousedblclick\\\",this.doubleClickHandler),this.on(\\\"tripleclick\\\",this.tripleClickHandler)},_mouseDownHandler:function(t){!this.canvas||!this.editable||t.e.button\\u0026\\u00261!==t.e.button||(this.__isMousedown=!0,this.selected\\u0026\\u0026(this.inCompositionMode=!1,this.setCursorByClick(t.e)),this.isEditing\\u0026\\u0026(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd\\u0026\\u0026this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(t){!this.canvas||!this.editable||t.e.button\\u0026\\u00261!==t.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on(\\\"mousedown\\\",this._mouseDownHandler),this.on(\\\"mousedown:before\\\",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on(\\\"mouseup\\\",this.mouseUpHandler)},mouseUpHandler:function(t){if(this.__isMousedown=!1,!(!this.editable||this.group||t.transform\\u0026\\u0026t.transform.actionPerformed||t.e.button\\u0026\\u00261!==t.e.button)){if(this.canvas){var e=this.canvas._activeObject;if(e\\u0026\\u0026e!==this)return}this.__lastSelected\\u0026\\u0026!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(t.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(t){var e=this.getSelectionStartFromPointer(t),i=this.selectionStart,r=this.selectionEnd;t.shiftKey?this.setSelectionStartEndWithShift(i,r,e):(this.selectionStart=e,this.selectionEnd=e),this.isEditing\\u0026\\u0026(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(t){for(var e,i=this.getLocalPointer(t),r=0,n=0,o=0,s=0,a=0,h=0,c=this._textLines.length;h\\u003cc\\u0026\\u0026o\\u003c=i.y;h++)o+=this.getHeightOfLine(h)*this.scaleY,a=h,h\\u003e0\\u0026\\u0026(s+=this._textLines[h-1].length+this.missingNewlineOffset(h-1));n=this._getLineLeftOffset(a)*this.scaleX,e=this._textLines[a],\\\"rtl\\\"===this.direction\\u0026\\u0026(i.x=this.width*this.scaleX-i.x+n);for(var l=0,u=e.length;l\\u003cu\\u0026\\u0026(r=n,(n+=this.__charBounds[a][l].kernedWidth*this.scaleX)\\u003c=i.x);l++)s++;return this._getNewSelectionStartFromOffset(i,r,n,s,u)},_getNewSelectionStartFromOffset:function(t,e,i,r,n){var o=t.x-e,s=i-t.x,a=r+(s\\u003eo||s\\u003c0?0:1);return this.flipX\\u0026\\u0026(a=n-a),a\\u003ethis._text.length\\u0026\\u0026(a=this._text.length),a}}),T.util.object.extend(T.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=T.document.createElement(\\\"textarea\\\"),this.hiddenTextarea.setAttribute(\\\"autocapitalize\\\",\\\"off\\\"),this.hiddenTextarea.setAttribute(\\\"autocorrect\\\",\\\"off\\\"),this.hiddenTextarea.setAttribute(\\\"autocomplete\\\",\\\"off\\\"),this.hiddenTextarea.setAttribute(\\\"spellcheck\\\",\\\"false\\\"),this.hiddenTextarea.setAttribute(\\\"data-fabric-hiddentextarea\\\",\\\"\\\"),this.hiddenTextarea.setAttribute(\\\"wrap\\\",\\\"off\\\");var t=this._calcTextareaPosition();this.hiddenTextarea.style.cssText=\\\"position: absolute; top: \\\"+t.top+\\\"; left: \\\"+t.left+\\\"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; paddingｰtop: \\\"+t.fontSize+\\\";\\\",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):T.document.body.appendChild(this.hiddenTextarea),T.util.addListener(this.hiddenTextarea,\\\"keydown\\\",this.onKeyDown.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"keyup\\\",this.onKeyUp.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"input\\\",this.onInput.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"copy\\\",this.copy.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"cut\\\",this.copy.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"paste\\\",this.paste.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"compositionstart\\\",this.onCompositionStart.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"compositionupdate\\\",this.onCompositionUpdate.bind(this)),T.util.addListener(this.hiddenTextarea,\\\"compositionend\\\",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized\\u0026\\u0026this.canvas\\u0026\\u0026(T.util.addListener(this.canvas.upperCanvasEl,\\\"click\\\",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:\\\"exitEditing\\\",27:\\\"exitEditing\\\",33:\\\"moveCursorUp\\\",34:\\\"moveCursorDown\\\",35:\\\"moveCursorRight\\\",36:\\\"moveCursorLeft\\\",37:\\\"moveCursorLeft\\\",38:\\\"moveCursorUp\\\",39:\\\"moveCursorRight\\\",40:\\\"moveCursorDown\\\"},keysMapRtl:{9:\\\"exitEditing\\\",27:\\\"exitEditing\\\",33:\\\"moveCursorUp\\\",34:\\\"moveCursorDown\\\",35:\\\"moveCursorLeft\\\",36:\\\"moveCursorRight\\\",37:\\\"moveCursorRight\\\",38:\\\"moveCursorUp\\\",39:\\\"moveCursorLeft\\\",40:\\\"moveCursorDown\\\"},ctrlKeysMapUp:{67:\\\"copy\\\",88:\\\"cut\\\"},ctrlKeysMapDown:{65:\\\"selectAll\\\"},onClick:function(){this.hiddenTextarea\\u0026\\u0026this.hiddenTextarea.focus()},onKeyDown:function(t){if(this.isEditing){var e=\\\"rtl\\\"===this.direction?this.keysMapRtl:this.keysMap;if(t.keyCode in e)this[e[t.keyCode]](t);else{if(!(t.keyCode in this.ctrlKeysMapDown)||!t.ctrlKey\\u0026\\u0026!t.metaKey)return;this[this.ctrlKeysMapDown[t.keyCode]](t)}t.stopImmediatePropagation(),t.preventDefault(),t.keyCode\\u003e=33\\u0026\\u0026t.keyCode\\u003c=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas\\u0026\\u0026this.canvas.requestRenderAll()}},onKeyUp:function(t){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:t.keyCode in this.ctrlKeysMapUp\\u0026\\u0026(t.ctrlKey||t.metaKey)\\u0026\\u0026(this[this.ctrlKeysMapUp[t.keyCode]](t),t.stopImmediatePropagation(),t.preventDefault(),this.canvas\\u0026\\u0026this.canvas.requestRenderAll())},onInput:function(t){var e=this.fromPaste;if(this.fromPaste=!1,t\\u0026\\u0026t.stopPropagation(),this.isEditing){var i,r,n,o,s,a=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,h=this._text.length,c=a.length,l=c-h,u=this.selectionStart,f=this.selectionEnd,d=u!==f;if(\\\"\\\"===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire(\\\"changed\\\"),void(this.canvas\\u0026\\u0026(this.canvas.fire(\\\"text:changed\\\",{target:this}),this.canvas.requestRenderAll()));var g=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),p=u\\u003eg.selectionStart;d?(i=this._text.slice(u,f),l+=f-u):c\\u003ch\\u0026\\u0026(i=p?this._text.slice(f+l,f):this._text.slice(u,u-l)),r=a.slice(g.selectionEnd-l,g.selectionEnd),i\\u0026\\u0026i.length\\u0026\\u0026(r.length\\u0026\\u0026(n=this.getSelectionStyles(u,u+1,!1),n=r.map((function(){return n[0]}))),d?(o=u,s=f):p?(o=f-i.length,s=f):(o=f,s=f+i.length),this.removeStyleFromTo(o,s)),r.length\\u0026\\u0026(e\\u0026\\u0026r.join(\\\"\\\")===T.copiedText\\u0026\\u0026!T.disableStyleCopyPaste\\u0026\\u0026(n=T.copiedTextStyle),this.insertNewStyleBlock(r,u,n)),this.updateFromTextArea(),this.fire(\\\"changed\\\"),this.canvas\\u0026\\u0026(this.canvas.fire(\\\"text:changed\\\",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(t){this.compositionStart=t.target.selectionStart,this.compositionEnd=t.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd\\u0026\\u0026(T.copiedText=this.getSelectedText(),T.disableStyleCopyPaste?T.copiedTextStyle=null:T.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(t){return t\\u0026\\u0026t.clipboardData||T.window.clipboardData},_getWidthBeforeCursor:function(t,e){var i,r=this._getLineLeftOffset(t);return e\\u003e0\\u0026\\u0026(r+=(i=this.__charBounds[t][e-1]).left+i.width),r},getDownCursorOffset:function(t,e){var i=this._getSelectionForOffset(t,e),r=this.get2DCursorLocation(i),n=r.lineIndex;if(n===this._textLines.length-1||t.metaKey||34===t.keyCode)return this._text.length-i;var o=r.charIndex,s=this._getWidthBeforeCursor(n,o),a=this._getIndexOnLine(n+1,s);return this._textLines[n].slice(o).length+a+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(t,e){return t.shiftKey\\u0026\\u0026this.selectionStart!==this.selectionEnd\\u0026\\u0026e?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(t,e){var i=this._getSelectionForOffset(t,e),r=this.get2DCursorLocation(i),n=r.lineIndex;if(0===n||t.metaKey||33===t.keyCode)return-i;var o=r.charIndex,s=this._getWidthBeforeCursor(n,o),a=this._getIndexOnLine(n-1,s),h=this._textLines[n].slice(0,o),c=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-h.length+(1-c)},_getIndexOnLine:function(t,e){for(var i,r,n=this._textLines[t],o=this._getLineLeftOffset(t),s=0,a=0,h=n.length;a\\u003ch;a++)if((o+=i=this.__charBounds[t][a].width)\\u003ee){r=!0;var c=o-i,l=o,u=Math.abs(c-e);s=Math.abs(l-e)\\u003cu?a:a-1;break}return r||(s=n.length-1),s},moveCursorDown:function(t){this.selectionStart\\u003e=this._text.length\\u0026\\u0026this.selectionEnd\\u003e=this._text.length||this._moveCursorUpOrDown(\\\"Down\\\",t)},moveCursorUp:function(t){0===this.selectionStart\\u0026\\u00260===this.selectionEnd||this._moveCursorUpOrDown(\\\"Up\\\",t)},_moveCursorUpOrDown:function(t,e){var i=this[\\\"get\\\"+t+\\\"CursorOffset\\\"](e,\\\"right\\\"===this._selectionDirection);e.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i\\u0026\\u0026(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(t){var e=\\\"left\\\"===this._selectionDirection?this.selectionStart+t:this.selectionEnd+t;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,e),0!==t},moveCursorWithoutShift:function(t){return t\\u003c0?(this.selectionStart+=t,this.selectionEnd=this.selectionStart):(this.selectionEnd+=t,this.selectionStart=this.selectionEnd),0!==t},moveCursorLeft:function(t){0===this.selectionStart\\u0026\\u00260===this.selectionEnd||this._moveCursorLeftOrRight(\\\"Left\\\",t)},_move:function(t,e,i){var r;if(t.altKey)r=this[\\\"findWordBoundary\\\"+i](this[e]);else{if(!t.metaKey\\u0026\\u002635!==t.keyCode\\u0026\\u002636!==t.keyCode)return this[e]+=\\\"Left\\\"===i?-1:1,!0;r=this[\\\"findLineBoundary\\\"+i](this[e])}if(void 0!==typeof r\\u0026\\u0026this[e]!==r)return this[e]=r,!0},_moveLeft:function(t,e){return this._move(t,e,\\\"Left\\\")},_moveRight:function(t,e){return this._move(t,e,\\\"Right\\\")},moveCursorLeftWithoutShift:function(t){var e=!0;return this._selectionDirection=\\\"left\\\",this.selectionEnd===this.selectionStart\\u0026\\u00260!==this.selectionStart\\u0026\\u0026(e=this._moveLeft(t,\\\"selectionStart\\\")),this.selectionEnd=this.selectionStart,e},moveCursorLeftWithShift:function(t){return\\\"right\\\"===this._selectionDirection\\u0026\\u0026this.selectionStart!==this.selectionEnd?this._moveLeft(t,\\\"selectionEnd\\\"):0!==this.selectionStart?(this._selectionDirection=\\\"left\\\",this._moveLeft(t,\\\"selectionStart\\\")):void 0},moveCursorRight:function(t){this.selectionStart\\u003e=this._text.length\\u0026\\u0026this.selectionEnd\\u003e=this._text.length||this._moveCursorLeftOrRight(\\\"Right\\\",t)},_moveCursorLeftOrRight:function(t,e){var i=\\\"moveCursor\\\"+t+\\\"With\\\";this._currentCursorOpacity=1,e.shiftKey?i+=\\\"Shift\\\":i+=\\\"outShift\\\",this[i](e)\\u0026\\u0026(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(t){return\\\"left\\\"===this._selectionDirection\\u0026\\u0026this.selectionStart!==this.selectionEnd?this._moveRight(t,\\\"selectionStart\\\"):this.selectionEnd!==this._text.length?(this._selectionDirection=\\\"right\\\",this._moveRight(t,\\\"selectionEnd\\\")):void 0},moveCursorRightWithoutShift:function(t){var e=!0;return this._selectionDirection=\\\"right\\\",this.selectionStart===this.selectionEnd?(e=this._moveRight(t,\\\"selectionStart\\\"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,e},removeChars:function(t,e){void 0===e\\u0026\\u0026(e=t+1),this.removeStyleFromTo(t,e),this._text.splice(t,e-t),this.text=this._text.join(\\\"\\\"),this.set(\\\"dirty\\\",!0),this._shouldClearDimensionCache()\\u0026\\u0026(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(t,e,i,r){void 0===r\\u0026\\u0026(r=i),r\\u003ei\\u0026\\u0026this.removeStyleFromTo(i,r);var n=T.util.string.graphemeSplit(t);this.insertNewStyleBlock(n,i,e),this._text=[].concat(this._text.slice(0,i),n,this._text.slice(r)),this.text=this._text.join(\\\"\\\"),this.set(\\\"dirty\\\",!0),this._shouldClearDimensionCache()\\u0026\\u0026(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var t=T.util.toFixed,e=/  +/g;T.util.object.extend(T.Text.prototype,{_toSVG:function(){var t=this._getSVGLeftTopOffsets(),e=this._getSVGTextAndBg(t.textTop,t.textLeft);return this._wrapSVGTextAndBg(e)},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(t){var e=this.getSvgTextDecoration(this);return[t.textBgRects.join(\\\"\\\"),'\\\\t\\\\t\\u003ctext xml:space=\\\"preserve\\\" ',this.fontFamily?'font-family=\\\"'+this.fontFamily.replace(/\\\"/g,\\\"'\\\")+'\\\" ':\\\"\\\",this.fontSize?'font-size=\\\"'+this.fontSize+'\\\" ':\\\"\\\",this.fontStyle?'font-style=\\\"'+this.fontStyle+'\\\" ':\\\"\\\",this.fontWeight?'font-weight=\\\"'+this.fontWeight+'\\\" ':\\\"\\\",e?'text-decoration=\\\"'+e+'\\\" ':\\\"\\\",'style=\\\"',this.getSvgStyles(!0),'\\\"',this.addPaintOrder(),\\\" \\u003e\\\",t.textSpans.join(\\\"\\\"),\\\"\\u003c/text\\u003e\\\\n\\\"]},_getSVGTextAndBg:function(t,e){var i,r=[],n=[],o=t;this._setSVGBg(n);for(var s=0,a=this._textLines.length;s\\u003ca;s++)i=this._getLineLeftOffset(s),(this.textBackgroundColor||this.styleHas(\\\"textBackgroundColor\\\",s))\\u0026\\u0026this._setSVGTextLineBg(n,s,e+i,o),this._setSVGTextLineText(r,s,e+i,o),o+=this.getHeightOfLine(s);return{textSpans:r,textBgRects:n}},_createTextCharSpan:function(i,r,n,o){var s=i!==i.trim()||i.match(e),a=this.getSvgSpanStyles(r,s),h=a?'style=\\\"'+a+'\\\"':\\\"\\\",c=r.deltaY,l=\\\"\\\",u=T.Object.NUM_FRACTION_DIGITS;return c\\u0026\\u0026(l=' dy=\\\"'+t(c,u)+'\\\" '),['\\u003ctspan x=\\\"',t(n,u),'\\\" y=\\\"',t(o,u),'\\\" ',l,h,\\\"\\u003e\\\",T.util.string.escapeXml(i),\\\"\\u003c/tspan\\u003e\\\"].join(\\\"\\\")},_setSVGTextLineText:function(t,e,i,r){var n,o,s,a,h,c=this.getHeightOfLine(e),l=-1!==this.textAlign.indexOf(\\\"justify\\\"),u=\\\"\\\",f=0,d=this._textLines[e];r+=c*(1-this._fontSizeFraction)/this.lineHeight;for(var g=0,p=d.length-1;g\\u003c=p;g++)h=g===p||this.charSpacing,u+=d[g],s=this.__charBounds[e][g],0===f?(i+=s.kernedWidth-s.width,f+=s.width):f+=s.kernedWidth,l\\u0026\\u0026!h\\u0026\\u0026this._reSpaceAndTab.test(d[g])\\u0026\\u0026(h=!0),h||(n=n||this.getCompleteStyleDeclaration(e,g),o=this.getCompleteStyleDeclaration(e,g+1),h=this._hasStyleChangedForSvg(n,o)),h\\u0026\\u0026(a=this._getStyleDeclaration(e,g)||{},t.push(this._createTextCharSpan(u,a,i,r)),u=\\\"\\\",n=o,i+=f,f=0)},_pushTextBgRect:function(e,i,r,n,o,s){var a=T.Object.NUM_FRACTION_DIGITS;e.push(\\\"\\\\t\\\\t\\u003crect \\\",this._getFillAttributes(i),' x=\\\"',t(r,a),'\\\" y=\\\"',t(n,a),'\\\" width=\\\"',t(o,a),'\\\" height=\\\"',t(s,a),'\\\"\\u003e\\u003c/rect\\u003e\\\\n')},_setSVGTextLineBg:function(t,e,i,r){for(var n,o,s=this._textLines[e],a=this.getHeightOfLine(e)/this.lineHeight,h=0,c=0,l=this.getValueOfPropertyAt(e,0,\\\"textBackgroundColor\\\"),u=0,f=s.length;u\\u003cf;u++)n=this.__charBounds[e][u],(o=this.getValueOfPropertyAt(e,u,\\\"textBackgroundColor\\\"))!==l?(l\\u0026\\u0026this._pushTextBgRect(t,l,i+c,r,h,a),c=n.left,h=n.width,l=o):h+=n.kernedWidth;o\\u0026\\u0026this._pushTextBgRect(t,o,i+c,r,h,a)},_getFillAttributes:function(t){var e=t\\u0026\\u0026\\\"string\\\"==typeof t?new T.Color(t):\\\"\\\";return e\\u0026\\u0026e.getSource()\\u0026\\u00261!==e.getAlpha()?'opacity=\\\"'+e.getAlpha()+'\\\" fill=\\\"'+e.setAlpha(1).toRgb()+'\\\"':'fill=\\\"'+t+'\\\"'},_getSVGLineTopOffset:function(t){for(var e,i=0,r=0;r\\u003ct;r++)i+=this.getHeightOfLine(r);return e=this.getHeightOfLine(r),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*e/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(t){return T.Object.prototype.getSvgStyles.call(this,t)+\\\" white-space: pre;\\\"}})}(),function(t){var e=t.fabric||(t.fabric={});e.Textbox=e.util.createClass(e.IText,e.Observable,{type:\\\"textbox\\\",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:e.Text.prototype._dimensionAffectingProps.concat(\\\"width\\\"),_wordJoiners:/[ \\\\t\\\\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing\\u0026\\u0026this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth\\u003ethis.width\\u0026\\u0026this._set(\\\"width\\\",this.dynamicMinWidth),-1!==this.textAlign.indexOf(\\\"justify\\\")\\u0026\\u0026this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:\\\"_dimensionAffectingProps\\\"}))},_generateStyleMap:function(t){for(var e=0,i=0,r=0,n={},o=0;o\\u003ct.graphemeLines.length;o++)\\\"\\\\n\\\"===t.graphemeText[r]\\u0026\\u0026o\\u003e0?(i=0,r++,e++):!this.splitByGrapheme\\u0026\\u0026this._reSpaceAndTab.test(t.graphemeText[r])\\u0026\\u0026o\\u003e0\\u0026\\u0026(i++,r++),n[o]={line:e,offset:i},r+=t.graphemeLines[o].length,i+=t.graphemeLines[o].length;return n},styleHas:function(t,i){if(this._styleMap\\u0026\\u0026!this.isWrapping){var r=this._styleMap[i];r\\u0026\\u0026(i=r.line)}return e.Text.prototype.styleHas.call(this,t,i)},isEmptyStyles:function(t){if(!this.styles)return!0;var e,i,r=0,n=!1,o=this._styleMap[t],s=this._styleMap[t+1];for(var a in o\\u0026\\u0026(t=o.line,r=o.offset),s\\u0026\\u0026(n=s.line===t,e=s.offset),i=void 0===t?this.styles:{line:this.styles[t]})for(var h in i[a])if(h\\u003e=r\\u0026\\u0026(!n||h\\u003ce))for(var c in i[a][h])return!1;return!0},_getStyleDeclaration:function(t,e){if(this._styleMap\\u0026\\u0026!this.isWrapping){var i=this._styleMap[t];if(!i)return null;t=i.line,e=i.offset+e}return this.callSuper(\\\"_getStyleDeclaration\\\",t,e)},_setStyleDeclaration:function(t,e,i){var r=this._styleMap[t];t=r.line,e=r.offset+e,this.styles[t][e]=i},_deleteStyleDeclaration:function(t,e){var i=this._styleMap[t];t=i.line,e=i.offset+e,delete this.styles[t][e]},_getLineStyle:function(t){var e=this._styleMap[t];return!!this.styles[e.line]},_setLineStyle:function(t){var e=this._styleMap[t];this.styles[e.line]={}},_wrapText:function(t,e){var i,r=[];for(this.isWrapping=!0,i=0;i\\u003ct.length;i++)r=r.concat(this._wrapLine(t[i],i,e));return this.isWrapping=!1,r},_measureWord:function(t,e,i){var r,n=0;i=i||0;for(var o=0,s=t.length;o\\u003cs;o++){n+=this._getGraphemeBox(t[o],e,o+i,r,true).kernedWidth,r=t[o]}return n},_wrapLine:function(t,i,r,n){var o=0,s=this.splitByGrapheme,a=[],h=[],c=s?e.util.string.graphemeSplit(t):t.split(this._wordJoiners),l=\\\"\\\",u=0,f=s?\\\"\\\":\\\" \\\",d=0,g=0,p=0,v=!0,m=this._getWidthOfCharSpacing();n=n||0;0===c.length\\u0026\\u0026c.push([]),r-=n;for(var y=0;y\\u003cc.length;y++)l=s?c[y]:e.util.string.graphemeSplit(c[y]),d=this._measureWord(l,i,u),u+=l.length,(o+=g+d-m)\\u003er\\u0026\\u0026!v?(a.push(h),h=[],o=d,v=!0):o+=m,v||s||h.push(f),h=h.concat(l),g=s?0:this._measureWord([f],i,u),u++,v=!1,d\\u003ep\\u0026\\u0026(p=d);return y\\u0026\\u0026a.push(h),p+n\\u003ethis.dynamicMinWidth\\u0026\\u0026(this.dynamicMinWidth=p-m+n),a},isEndOfWrapping:function(t){return!this._styleMap[t+1]||this._styleMap[t+1].line!==this._styleMap[t].line},missingNewlineOffset:function(t){return this.splitByGrapheme?this.isEndOfWrapping(t)?1:0:1},_splitTextIntoLines:function(t){for(var i=e.Text.prototype._splitTextIntoLines.call(this,t),r=this._wrapText(i.lines,this.width),n=new Array(r.length),o=0;o\\u003cr.length;o++)n[o]=r[o].join(\\\"\\\");return i.lines=n,i.graphemeLines=r,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var t={};for(var e in this._styleMap)this._textLines[e]\\u0026\\u0026(t[this._styleMap[e].line]=1);for(var e in this.styles)t[e]||delete this.styles[e]},toObject:function(t){return this.callSuper(\\\"toObject\\\",[\\\"minWidth\\\",\\\"splitByGrapheme\\\"].concat(t))}}),e.Textbox.fromObject=function(t,i){return e.Object._fromObject(\\\"Textbox\\\",t,i,\\\"text\\\")}}(t),function(){var t=T.controlsUtils,e=t.scaleSkewCursorStyleHandler,i=t.scaleCursorStyleHandler,r=t.scalingEqually,n=t.scalingYOrSkewingX,o=t.scalingXOrSkewingY,s=t.scaleOrSkewActionName,a=T.Object.prototype.controls;if(a.ml=new T.Control({x:-.5,y:0,cursorStyleHandler:e,actionHandler:o,getActionName:s}),a.mr=new T.Control({x:.5,y:0,cursorStyleHandler:e,actionHandler:o,getActionName:s}),a.mb=new T.Control({x:0,y:.5,cursorStyleHandler:e,actionHandler:n,getActionName:s}),a.mt=new T.Control({x:0,y:-.5,cursorStyleHandler:e,actionHandler:n,getActionName:s}),a.tl=new T.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:r}),a.tr=new T.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:r}),a.bl=new T.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:r}),a.br=new T.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:r}),a.mtr=new T.Control({x:0,y:-.5,actionHandler:t.rotationWithSnapping,cursorStyleHandler:t.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:\\\"rotate\\\"}),T.Textbox){var h=T.Textbox.prototype.controls={};h.mtr=a.mtr,h.tr=a.tr,h.br=a.br,h.tl=a.tl,h.bl=a.bl,h.mt=a.mt,h.mb=a.mb,h.mr=new T.Control({x:.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:\\\"resizing\\\"}),h.ml=new T.Control({x:-.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:\\\"resizing\\\"})}}(),function(){var t=T.Object.prototype._set,e=T.Object.prototype.render,i=T.Object.prototype.toObject,r=T.Object.prototype._createBaseSVGMarkup;T.util.object.extend(T.Object.prototype,{erasable:!0,getEraser:function(){return this.clipPath\\u0026\\u0026this.clipPath.eraser?this.clipPath:void 0},getClipPath:function(){var t=this.getEraser();return t?t._objects[0].clipPath:this.clipPath},setClipPath:function(t){var e=this.getEraser();(e?e._objects[0]:this).set(\\\"clipPath\\\",t),this.set(\\\"dirty\\\",!0)},_updateEraserDimensions:function(t,e){var i=this.getEraser();if(i){var r=i._objects[0],n={width:r.width,height:r.height},o=this._getNonTransformedDimensions(),s=T.util.object.extend({width:o.x,height:o.y},t);if(n.width===s.width\\u0026\\u0026n.height===s.height)return;var a=new T.Point((n.width-s.width)/2,(n.height-s.height)/2);i.set(s),i.setPositionByOrigin(new T.Point(0,0),\\\"center\\\",\\\"center\\\"),r.set(s),i.set(\\\"dirty\\\",!0),e||i.getObjects(\\\"path\\\").forEach((function(t){t.setPositionByOrigin(t.getCenterPoint().add(a),\\\"center\\\",\\\"center\\\")})),this.setCoords()}},_set:function(e,i){return t.call(this,e,i),\\\"width\\\"!==e\\u0026\\u0026\\\"height\\\"!==e||this._updateEraserDimensions(),this},render:function(t){this._updateEraserDimensions(),e.call(this,t)},toObject:function(t){return i.call(this,[\\\"erasable\\\"].concat(t))},eraserToSVG:function(t){var e=this.getEraser();if(e){var i=e._objects[0].fill;e._objects[0].fill=\\\"white\\\",e.clipPathId=\\\"CLIPPATH_\\\"+T.Object.__uid++;var r=[\\\"\\u003cdefs\\u003e\\\",\\\"\\u003cmask \\\"+['id=\\\"'+e.clipPathId+'\\\"'].join(\\\" \\\")+\\\" \\u003e\\\",e.toSVG(t.reviver),\\\"\\u003c/mask\\u003e\\\",\\\"\\u003c/defs\\u003e\\\"];return e._objects[0].fill=i,r.join(\\\"\\\\n\\\")}return\\\"\\\"},_createBaseSVGMarkup:function(t,e){var i=this.getEraser();if(i){var n=this.eraserToSVG(e);this.clipPath=null;var o=r.call(this,t,e);return this.clipPath=i,[n,o.replace(\\\"\\u003e\\\",'mask=\\\"url(#'+i.clipPathId+')\\\" \\u003e')].join(\\\"\\\\n\\\")}return r.call(this,t,e)}});var n=T.Group.prototype._restoreObjectsState,o=T.Group.prototype.toObject,s=T.Group.prototype._getBounds;T.util.object.extend(T.Group.prototype,{_getBounds:function(t,e,i){if(this.eraser)return this.width=this._objects[0].width,void(this.height=this._objects[0].height);s.call(this,t,e,i)},_addEraserPathToObjects:function(t){this._objects.forEach((function(e){T.EraserBrush.prototype._addPathToObjectEraser.call(T.EraserBrush.prototype,e,t)}))},applyEraserToObjects:function(){var t=this;if(this.getEraser()){var e=t.calcTransformMatrix();t.getEraser().clone((function(i){var r=i._objects[0].clipPath;t.clipPath=r||void 0,i.getObjects(\\\"path\\\").forEach((function(i){var n=T.util.multiplyTransformMatrices(e,i.calcTransformMatrix());T.util.applyTransformToObject(i,n),r?r.clone((function(r){T.EraserBrush.prototype.applyClipPathToPath.call(T.EraserBrush.prototype,i,r,e),t._addEraserPathToObjects(i)})):t._addEraserPathToObjects(i)}))}))}},_restoreObjectsState:function(){return!0===this.erasable\\u0026\\u0026this.applyEraserToObjects(),n.call(this)},toObject:function(t){return o.call(this,[\\\"eraser\\\"].concat(t))}}),T.util.object.extend(T.Canvas.prototype,{isErasing:function(){return this.isDrawingMode\\u0026\\u0026this.freeDrawingBrush\\u0026\\u0026\\\"eraser\\\"===this.freeDrawingBrush.type\\u0026\\u0026this.freeDrawingBrush._isErasing},renderAll:function(){if(!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),!this.isErasing()){this.hasLostContext\\u0026\\u0026this.renderTopLayer(this.contextTop);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this}this.freeDrawingBrush._render()}}),T.EraserBrush=T.util.createClass(T.PencilBrush,{type:\\\"eraser\\\",_ready:!1,_drawOverlayOnTop:!1,_isErasing:!1,initialize:function(t){this.callSuper(\\\"initialize\\\",t),this._renderBound=this._render.bind(this),this.render=this.render.bind(this)},hideObject:function(t){t\\u0026\\u0026(t._originalOpacity=t.opacity,t.set({opacity:0}))},restoreObjectVisibility:function(t){t\\u0026\\u0026t._originalOpacity\\u0026\\u0026(t.set({opacity:t._originalOpacity}),t._originalOpacity=void 0)},_isErasable:function(t){return!1!==t.erasable},prepareCanvasBackgroundForLayer:function(t){if(\\\"overlay\\\"!==t){var e=this.canvas.backgroundImage,i=\\\"top\\\"===t;e\\u0026\\u0026this._isErasable(e)===!i\\u0026\\u0026this.hideObject(e)}},prepareCanvasOverlayForLayer:function(t){var e=this.canvas,i=e.overlayImage,r=!!e.overlayColor;if(e.overlayColor\\u0026\\u0026\\\"overlay\\\"!==t\\u0026\\u0026(this.__overlayColor=e.overlayColor,delete e.overlayColor),\\\"bottom\\\"===t)return this.hideObject(i),!1;var n=\\\"top\\\"===t,o=i\\u0026\\u0026!this._isErasable(i)||r;return i\\u0026\\u0026this._isErasable(i)===!n\\u0026\\u0026this.hideObject(i),o},restoreCanvasDrawables:function(){var t=this.canvas;this.__overlayColor\\u0026\\u0026(t.overlayColor=this.__overlayColor,delete this.__overlayColor),this.restoreObjectVisibility(t.backgroundImage),this.restoreObjectVisibility(t.overlayImage)},prepareCollectionTraversal:function(t){var e=this;t.forEachObject((function(t){t.forEachObject\\u0026\\u0026\\\"deep\\\"===t.erasable?e.prepareCollectionTraversal(t):t.erasable\\u0026\\u0026e.hideObject(t)}))},restoreCollectionTraversal:function(t){var e=this;t.forEachObject((function(t){t.forEachObject\\u0026\\u0026\\\"deep\\\"===t.erasable?e.restoreCollectionTraversal(t):e.restoreObjectVisibility(t)}))},prepareCanvasObjectsForLayer:function(t){\\\"bottom\\\"===t\\u0026\\u0026this.prepareCollectionTraversal(this.canvas)},restoreCanvasObjectsFromLayer:function(t){\\\"bottom\\\"===t\\u0026\\u0026this.restoreCollectionTraversal(this.canvas)},prepareCanvasForLayer:function(t){return this.prepareCanvasBackgroundForLayer(t),this.prepareCanvasObjectsForLayer(t),this.prepareCanvasOverlayForLayer(t)},restoreCanvasFromLayer:function(t){this.restoreCanvasDrawables(),this.restoreCanvasObjectsFromLayer(t)},renderBottomLayer:function(){var t=this.canvas;this.prepareCanvasForLayer(\\\"bottom\\\"),t.renderCanvas(t.getContext(),t.getObjects().filter((function(t){return!t.erasable||t.forEachObject}))),this.restoreCanvasFromLayer(\\\"bottom\\\")},renderTopLayer:function(){var t=this.canvas;this._drawOverlayOnTop=this.prepareCanvasForLayer(\\\"top\\\"),t.renderCanvas(t.contextTop,t.getObjects()),this.callSuper(\\\"_render\\\"),this.restoreCanvasFromLayer(\\\"top\\\")},renderOverlay:function(){this.prepareCanvasForLayer(\\\"overlay\\\");var t=this.canvas,e=t.contextTop;t._renderOverlay(e),this.restoreCanvasFromLayer(\\\"overlay\\\")},_saveAndTransform:function(t){this.callSuper(\\\"_saveAndTransform\\\",t),t.globalCompositeOperation=\\\"destination-out\\\"},needsFullRender:function(){return this.callSuper(\\\"needsFullRender\\\")||this._drawOverlayOnTop},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)\\u0026\\u0026(this._prepareForDrawing(t),this._captureDrawingPath(t),this._isErasing=!0,this.canvas.fire(\\\"erasing:start\\\"),this._ready=!0,this._render())},_render:function(){this._ready\\u0026\\u0026(this.isRendering=1,this.renderBottomLayer(),this.renderTopLayer(),this.renderOverlay(),this.isRendering=0)},render:function(){return!!this._isErasing\\u0026\\u0026(this.isRendering?this.isRendering=T.util.requestAnimFrame(this._renderBound):this._render(),!0)},applyClipPathToPath:function(t,e,i){var r=t.calcTransformMatrix(),n=e.calcTransformMatrix(),o=T.util.multiplyTransformMatrices(T.util.invertTransform(r),i);return T.util.applyTransformToObject(e,T.util.multiplyTransformMatrices(o,n)),t.clipPath=e,t},clonePathWithClipPath:function(t,e,i){var r=e.calcTransformMatrix(),n=e.getClipPath(),o=this;t.clone((function(t){n.clone((function(e){i(o.applyClipPathToPath(t,e,r))}))}))},_addPathToObjectEraser:function(t,e){var i,r=this;if(t.forEachObject\\u0026\\u0026\\\"deep\\\"===t.erasable){var n=t._objects.filter((function(t){return t.erasable}));n.length\\u003e0\\u0026\\u0026t.clipPath?this.clonePathWithClipPath(e,t,(function(t){n.forEach((function(e){r._addPathToObjectEraser(e,t)}))})):n.length\\u003e0\\u0026\\u0026n.forEach((function(t){r._addPathToObjectEraser(t,e)}))}else{if(t.getEraser())i=t.clipPath;else{var o=t._getNonTransformedDimensions(),s=new T.Rect({fill:\\\"rgb(0,0,0)\\\",width:o.x,height:o.y,clipPath:t.clipPath,originX:\\\"center\\\",originY:\\\"center\\\"});i=new T.Group([s],{eraser:!0})}e.clone((function(e){e.globalCompositeOperation=\\\"destination-out\\\";var n=T.util.multiplyTransformMatrices(T.util.invertTransform(t.calcTransformMatrix()),e.calcTransformMatrix());T.util.applyTransformToObject(e,n),i.addWithUpdate(e),t.set({clipPath:i,dirty:!0}),t.fire(\\\"erasing:end\\\",{path:e}),t.group\\u0026\\u0026Array.isArray(r.__subTargets)\\u0026\\u0026r.__subTargets.push(t)}))}},applyEraserToCanvas:function(t){var e=this.canvas,i={};return[\\\"backgroundImage\\\",\\\"overlayImage\\\"].forEach((function(r){var n=e[r];n\\u0026\\u0026n.erasable\\u0026\\u0026(this._addPathToObjectEraser(n,t),i[r]=n)}),this),i},_finalizeAndAddPath:function(){var t=this.canvas.contextTop,e=this.canvas;t.closePath(),this.decimate\\u0026\\u0026(this._points=this.decimatePoints(this._points,this.decimate)),e.clearContext(e.contextTop),this._isErasing=!1;var i=this._points\\u0026\\u0026this._points.length\\u003e1?this.convertPointsToSVGPath(this._points):null;if(!i||this._isEmptySVGPath(i))return e.fire(\\\"erasing:end\\\"),void e.requestRenderAll();var r=this.createPath(i);r.setCoords(),e.fire(\\\"before:path:created\\\",{path:r});var n=this.applyEraserToCanvas(r),o=this;this.__subTargets=[];var s=[];e.forEachObject((function(t){t.erasable\\u0026\\u0026t.intersectsWithObject(r,!0,!0)\\u0026\\u0026(o._addPathToObjectEraser(t,r),s.push(t))})),e.fire(\\\"erasing:end\\\",{path:r,targets:s,subTargets:this.__subTargets,drawables:n}),delete this.__subTargets,e.requestRenderAll(),r.setCoords(),this._resetShadow(),e.fire(\\\"path:created\\\",{path:r})}})}()}(tt);var rt=tt.fabric;export{tt as default,rt as fabric};\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket4\",\n                \"$socket_stage_recv\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v1/lib/fabric.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket4\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 29050\n                                },\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 102737\n                                },\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 102797\n                                },\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 129362\n                                },\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 129422\n                                },\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 139859\n                                },\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 142603\n                                },\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 142652\n                                },\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 142699\n                                },\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 142742\n                                }\n                            ]\n                        },\n                        {\n                            \"identifier\": \"$socket_stage_recv\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\"4.6.0\\\"};if(t.fabric=T,\\\"undefined\\\"!=typeof document\\u0026\\u0026\\\"undefined\\\"!=typeof window)document instanceof(\\\"undefined\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\",\n                                    \"line_number\": 9,\n                                    \"matched_data\": \"o.send(\",\n                                    \"matched_length\": 7,\n                                    \"offset\": 55051\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\",\n            \"any-network-requests\",\n            \"credential-access\",\n            \"obfuscated-code\"\n        ],\n        \"code_snippet\": \"1 | var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i)=\\u003e(y(e,t,\\\"read from private field\\\"),i?i.call(e):t.get(e)),b=(e,t,i)=\\u003et.has(e)?g(\\\"Cannot add the same private member more than once\\\"):t instanceof WeakSet?t.add(e):t.set(e,i),_=(e,t,i,s)=\\u003e(y(e,t,\\\"write to private field\\\"),s?s.call(e,i):t.set(e,i),i);import{d as S,h as x,s as L,a as k,T as E,b as N,c as C,e as I,f as T,g as O,i as M,j as D}from\\\"./vendor-DrOEdrAG.js\\\";import{c as R}from\\\"./lodash-DkvwM0Z9.js\\\";import{r as P,m as G,w as z,o as V,a as j,c as U,b as W,d as F,u as X,e as Z,f as H,g as q,h as Y,F as K,i as J,n as B,j as Q,v as $,t as ee,k as te,l as ie,p as se,q as ne,s as ae,x as oe,y as le,z as re,A as de,B as ue}from\\\"./vue-DfGw76ex.js\\\";import{u as ce,a as Ae,b as pe,c as he}from\\\"./vueuse-Bf7Wy5dB.js\\\";import{P as me}from\\\"./primevue-keNb8gkp.js\\\";let fe=(null==(t=null==(e=window.comfyAPI)?void 0:e.app)?void 0:t.app)||null,ge=(null==(s=null==(i=window.comfyAPI)?void 0:i.api)?void 0:s.api)||null,ve=(null==(a=null==(n=window.comfyAPI)?void 0:n.ui)?void 0:a.$el)||null,ye=(null==(l=null==(o=window.comfyAPI)?void 0:o.dialog)?void 0:l.ComfyDialog)||null,we=(null==(d=null==(r=window.comfyAPI)?void 0:r.widgets)?void 0:d.ComfyWidgets)||null,be=(null==(c=null==(u=window.comfyAPI)?void 0:u.utils)?void 0:c.applyTextReplacements)||null,_e=(null==(p=null==(A=window.comfyAPI)?void 0:A.groupNode)?void 0:p.GroupNodeConfig)||null;const Se=e=\\u003e{var t,i;return e?null==(i=null==(t=null==fe?void 0:fe.ui)?void 0:t.settings)?void 0:i.getSettingValue(e):null};function xe(e,t=null){try{let i=e?Se(e):null;return null==i\\u0026\\u0026(i=t?localStorage[t]:localStorage[e]||null),i}catch(i){return null}}function Le(e,t=e=\\u003e{}){var i;const s=null==(i=fe.ui.settings.settingsLookup)?void 0:i[e];s\\u0026\\u0026(s.onChange=e=\\u003et(e))}async function ke(e,t,i=null){var s,n;if(!e)throw new Error(\\\"Invalid arguments\\\");try{(null==(n=null==(s=null==fe?void 0:fe.ui)?void 0:s.settings)?void 0:n.setSettingValue)?fe.ui.settings.setSettingValue(e,t):await ge.storeSetting(e,t),i\\u0026\\u0026(localStorage[i]=\\\"object\\\"==typeof t?JSON.stringify(t):t)}catch(a){}}const Ee={\\\"Workflow created by\\\":\\\"工作流创建者\\\",\\\"Watch more video content\\\":\\\"观看更多视频内容\\\",\\\"Workflow Guide\\\":\\\"工作流指南\\\",\\\"💎 View Checkpoint Info...\\\":\\\"💎 查看 Checkpoint 信息...\\\",\\\"💎 View Lora Info...\\\":\\\"💎 查看 Lora 信息...\\\",\\\"🔃 Reload Node\\\":\\\"🔃 刷新节点\\\",\\\"Updated At:\\\":\\\"最近更新：\\\",\\\"Created At:\\\":\\\"首次发布：\\\",\\\"✏️ Edit\\\":\\\"✏️ 编辑\\\",\\\"💾 Save\\\":\\\"💾 保存\\\",\\\"No notes\\\":\\\"当前还没有备注内容\\\",\\\"Saving Notes...\\\":\\\"正在保存备注...\\\",\\\"Type your notes here\\\":\\\"在这里输入备注内容\\\",ModelName:\\\"模型名称\\\",\\\"Models Required\\\":\\\"所需模型\\\",\\\"Download Model\\\":\\\"下载模型\\\",\\\"Source Url\\\":\\\"模型源地址\\\",Notes:\\\"备注\\\",Type:\\\"类型\\\",\\\"Trained Words\\\":\\\"训练词\\\",BaseModel:\\\"基础算法\\\",Details:\\\"详情\\\",Description:\\\"描述\\\",Download:\\\"下载量\\\",Source:\\\"来源\\\",\\\"Saving Preview...\\\":\\\"正在保存预览图...\\\",\\\"Saving Succeed\\\":\\\"保存成功\\\",\\\"Clean SuccessFully\\\":\\\"清理成功\\\",\\\"Clean Failed\\\":\\\"清理失败\\\",\\\"Saving Failed\\\":\\\"保存失败\\\",\\\"No COMBO link\\\":\\\"沒有找到COMBO连接\\\",\\\"Reboot ComfyUI\\\":\\\"重启ComfyUI\\\",\\\"Are you sure you'd like to reboot the server?\\\":\\\"是否要重启ComfyUI？\\\",\\\"NODES MAP\\\":\\\"管理节点与组\\\",NodesMap:\\\"节点与组\\\",\\\"Nodes map sorting mode\\\":\\\"管理节点组排序模式\\\",\\\"Search by Node ID/Name...\\\":\\\"通过节点ID/名称搜索...\\\",\\\"No Nodes\\\":\\\"未找到节点\\\",\\\"No nodes found in the map\\\":\\\"在工作流程中没有找到节点\\\",\\\"No nodes found in the search\\\":\\\"未找到与搜索匹配的节点\\\",\\\"Jump to this node\\\":\\\"跳转到该节点\\\",\\\"Rename node\\\":\\\"重命名节点\\\",\\\"Delete node\\\":\\\"删除节点\\\",\\\"Rename group\\\":\\\"重命名组\\\",\\\"Delete group\\\":\\\"删除组\\\",\\\"Expand All\\\":\\\"展开所有组\\\",\\\"Collapse All\\\":\\\"折叠所有组\\\",Close:\\\"关闭\\\",\\\"Default automatic sorting, if set to manual, groups can be dragged and dropped and the sorting results saved.\\\":\\\"默认自动排序，如果设置为手动，组可以拖放并保存排序结果。\\\",\\\"For drag and drop sorting, please find Nodes map sorting mode in Settings-\\u003eEasyUse and change it to manual\\\":\\\"如需拖拽排序请在设置-\\u003eEasyUse节点中找到管理节点组排序模式并修改成 manual\\\",Queue:\\\"队列\\\",\\\"Cleanup Of VRAM Usage\\\":\\\"清理显存占用\\\",\\\"Please stop all running tasks before cleaning GPU\\\":\\\"请在清理GPU之前停止所有运行中的任务\\\",Always:\\\"启用中\\\",Bypass:\\\"已忽略\\\",Never:\\\"已停用\\\",\\\"Auto Sorting\\\":\\\"自动排序\\\",\\\"Toggle `Show/Hide` can set mode of group, LongPress can set group nodes to never\\\":\\\"点击`启用中/已忽略`可设置组模式, 长按可停用该组节点\\\",\\\"Enable Shift+Up/Down/Left/Right key and Shift+Ctrl+Alt+Left/Right to align selected nodes\\\":\\\"启用 Shift+上/下/左/右 和 Shift+Ctrl+Alt+左/右 键对齐选中的节点\\\",\\\"Enable Shift+Ctrl+Left/Right key to normalize selected nodes\\\":\\\"启用 Shift+Ctrl+左/右 键规范化选中的节点\\\",\\\"Enable Shift+g to add selected nodes to a group\\\":\\\"启用 Shift+g 键将选中的节点添加一个组\\\",\\\"Enable Shift+r to unload models and node cache\\\":\\\"启用 Shift+r 键卸载模型和节点缓存\\\",\\\"Enable Shift+m to toggle nodes map\\\":\\\"启用 Shift+m 键显隐管理节点组\\\",\\\"Enable Up/Down/Left/Right key to jump nearest nodes\\\":\\\"启用 上/下/左/右 键跳转到最近的前后节点\\\",\\\"Enable Alt+1~9 to paste nodes from nodes template\\\":\\\"启用 Alt+1~9 从节点模板粘贴到工作流中\\\",\\\"Enable contextMenu auto nest subdirectories\\\":\\\"启用上下文菜单自动嵌套子目录\\\",\\\"Enable right-click menu to add node A~Z sorting\\\":\\\"启用右键菜单中新建节点A~Z排序\\\",\\\"Enable model thumbnails display\\\":\\\"启动模型预览图显示\\\",\\\"Enable nodes runtime display\\\":\\\"启动节点运行时间显示\\\",\\\"Enable chain get node and set node with parent nodes\\\":\\\"启用将获取点和设置点与父节点链在一起\\\",\\\"Maximum number of model thumbnails displayed\\\":\\\"显示的模型缩略图的最大数量\\\",\\\"Too many thumbnails will affect the first loading time, set the maximum value to not load the thumbnail function when there are too many models's thumbnail\\\":\\\"太多的缩略图会影响首次加载时间，当模型缩略图太多时，设置最大值以不加载缩略图功能\\\",\\\"Too many thumbnails, have closed the display\\\":\\\"模型缩略图太多啦，为您关闭了显示\\\",\\\"Shift+Up/Down/Left/Right can align selected nodes, Shift+Ctrl+Alt+Left/Right can distribute horizontal/vertical nodes\\\":\\\"Shift+上/下/左/右 可以对齐选中的节点, Shift+Ctrl+Alt+左/右 可以水平/垂直分布节点\\\",\\\"Enable Shift+Ctrl+Left key to normalize width and Shift+Ctrl+Right key to normalize height\\\":\\\"启用 Shift+Ctrl+左 键规范化宽度和 Shift+Ctrl+右 键规范化高度\\\",\\\"After v1.2.39, Ctrl+g can be used instead of it\\\":\\\"从v1.2.39开始，可以使用Ctrl+g代替\\\",\\\"Styles Selector Display Type\\\":\\\"样式选择器显示类型\\\",\\\"Styles Selector Display Type, if set to 'Grid', it will display as a Grid, if set to 'List', it will display as a list\\\":\\\"样式选择器显示类型，如果设置为“网格”，则显示为网格，如果设置为“列表”，则显示为列表\\\",\\\"Use three shortcut buttons in the right-click menu\\\":\\\"在右键菜单中使用三个快捷按钮\\\",\\\"Enable Nodes Map\\\":\\\"启用节点组管理\\\",\\\"Display Groups Only\\\":\\\"仅显示组\\\",\\\"Display Node ID\\\":\\\"显示节点ID\\\",\\\"You need to refresh the page to update successfully\\\":\\\"您需要刷新页面以成功更新\\\",\\\"Get styles list Failed\\\":\\\"获取样式列表失败\\\",\\\"Get style image Failed\\\":\\\"获取样式图片失败\\\",\\\"Empty All\\\":\\\"清空所有\\\",\\\"Type here to search styles ...\\\":\\\"在此处输入以搜索样式 ...\\\",\\\"Loading UserInfo...\\\":\\\"正在获取用户信息...\\\",\\\"Please set the APIKEY first\\\":\\\"请先设置APIKEY\\\",\\\"Setting APIKEY\\\":\\\"设置APIKEY\\\",\\\"Save Account Info\\\":\\\"保存账号信息\\\",Choose:\\\"选择\\\",Delete:\\\"删除\\\",Edit:\\\"编辑\\\",\\\"At least one account is required\\\":\\\"删除失败: 至少需要一个账户\\\",\\\"APIKEY is not Empty\\\":\\\"APIKEY 不能为空\\\",\\\"Add Account\\\":\\\"添加账号\\\",\\\"Getting Your APIKEY\\\":\\\"获取您的APIKEY\\\",Canceling:\\\"正在取消\\\",\\\"Cancel current run\\\":\\\"取消当前运行\\\",\\\"Waiting for selection...\\\":\\\"等待选择中...\\\",\\\"Using last selection\\\":\\\"使用上次选择\\\",\\\"Pass Through\\\":\\\"跳过选择\\\",\\\"Unknown Mode\\\":\\\"未知模式\\\",\\\"Choose Selected Images\\\":\\\"选择选中的图片\\\",\\\"Choose images to continue\\\":\\\"选择图片以继续\\\",\\\"Please run first\\\":\\\"请先运行队列\\\",\\\"Progress selected\\\":\\\"处理选中的图片\\\",\\\"Progress selected image\\\":\\\"处理选中的图片\\\",\\\"Please select images to continue\\\":\\\"请选择图片以继续\\\",Background:\\\"背景\\\",Hat:\\\"帽子\\\",Hair:\\\"头发\\\",Body:\\\"身体\\\",Face:\\\"脸部\\\",Clothes:\\\"衣服\\\",Others:\\\"其他\\\",Glove:\\\"手套\\\",Glasses:\\\"眼镜\\\",Sunglasses:\\\"太阳镜\\\",\\\"Upper-clothes\\\":\\\"上衣\\\",\\\"Top-clothes\\\":\\\"上衣\\\",\\\"Bottom-clothes\\\":\\\"下身装\\\",\\\"Torso-skin\\\":\\\"皮肤\\\",Dress:\\\"连衣裙\\\",Belt:\\\"腰带\\\",Coat:\\\"外套\\\",Socks:\\\"袜子\\\",Pants:\\\"裤子\\\",Jumpsuits:\\\"连体衣\\\",Bag:\\\"包\\\",Scarf:\\\"围巾\\\",Skirt:\\\"裙子\\\",\\\"Left-arm\\\":\\\"左臂\\\",\\\"Right-arm\\\":\\\"右臂\\\",\\\"Left-leg\\\":\\\"左腿\\\",\\\"Right-leg\\\":\\\"右腿\\\",\\\"Left-foot\\\":\\\"左脚\\\",\\\"Right-foot\\\":\\\"右脚\\\",\\\"Left-shoe\\\":\\\"左鞋\\\",\\\"Right-shoe\\\":\\\"右鞋\\\",\\\"select mask components\\\":\\\"选择分割部位\\\",\\\"select items\\\":\\\"选择项\\\",Unlabelled:\\\"未标记\\\",\\\"shirt, blouse\\\":\\\"衬衫，女式衬衫\\\",\\\"top, t-shirt, sweatshirt\\\":\\\"上衣，T恤，运动衫\\\",sweater:\\\"毛衣\\\",cardigan:\\\"开襟毛衣\\\",jacket:\\\"夹克\\\",vest:\\\"背心\\\",pants:\\\"长裤\\\",shorts:\\\"短裤\\\",skirt:\\\"裙子\\\",coat:\\\"外套\\\",dress:\\\"连衣裙\\\",jumpsuit:\\\"连体衣\\\",cape:\\\"斗篷\\\",glasses:\\\"眼镜\\\",hat:\\\"帽子\\\",\\\"headband, head covering, hair accessory\\\":\\\"头带，头饰，发饰\\\",tie:\\\"领带\\\",glove:\\\"手套\\\",watch:\\\"手表\\\",belt:\\\"腰带\\\",\\\"leg warmer\\\":\\\"护腿\\\",\\\"tights, stockings\\\":\\\"紧身袜，丝袜\\\",sock:\\\"袜子\\\",shoe:\\\"鞋子\\\",\\\"bag, wallet\\\":\\\"包，钱包\\\",scarf:\\\"围巾\\\",umbrella:\\\"雨伞\\\",hood:\\\"帽兜\\\",collar:\\\"领子\\\",lapel:\\\"翻领\\\",epaulette:\\\"肩章\\\",sleeve:\\\"袖子\\\",pocket:\\\"口袋\\\",neckline:\\\"领口\\\",buckle:\\\"扣环\\\",zipper:\\\"拉链\\\",applique:\\\"贴花\\\",bead:\\\"珠子\\\",bow:\\\"蝴蝶结\\\",flower:\\\"花朵装饰\\\",fringe:\\\"流苏\\\",ribbon:\\\"丝带\\\",rivet:\\\"铆钉\\\",ruffle:\\\"褶边\\\",sequin:\\\"亮片\\\",tassel:\\\"流苏穗\\\",background:\\\"背景\\\",skin:\\\"皮肤\\\",nose:\\\"鼻子\\\",eyeglasses:\\\"眼镜\\\",left_eye:\\\"左眼\\\",right_eye:\\\"右眼\\\",left_eyebrow:\\\"左眉毛\\\",right_eyebrow:\\\"右眉毛\\\",left_ear:\\\"左耳\\\",right_ear:\\\"右耳\\\",mouth:\\\"嘴巴\\\",upper_lip:\\\"上唇\\\",lower_lip:\\\"下唇\\\",hair:\\\"头发\\\",earring:\\\"耳环\\\",necklace:\\\"项链\\\",neck:\\\"脖子\\\",clothing:\\\"服装\\\",s:\\\"秒\\\",\\\"No Node Templates Found\\\":\\\"未找到节点模板预设\\\",\\\"Get Node Templates File Failed\\\":\\\"获取节点模板文件失败\\\",\\\"Node template with {key} not set\\\":\\\"未设置快捷键为{key}的节点预设\\\",\\\"ComfyUI Basic\\\":\\\"ComfyUI 基础节点\\\",\\\"Recommend Nodes\\\":\\\"推荐节点\\\",\\\"Others A~Z\\\":\\\"其他节点 A~Z\\\",\\\"The maximum number of inputs is 20\\\":\\\"输入数量最大20个\\\",\\\"The maximum number of outputs is 20\\\":\\\"输出数量最大20个\\\",\\\"Stop recording\\\":\\\"停止录音\\\",\\\"Voice input\\\":\\\"语音输入\\\",Continue:\\\"继续\\\",Stop:\\\"停止\\\",now:\\\"当前\\\",prev:\\\"上一步\\\",\\\"Add New Tab\\\":\\\"添加新标签\\\",\\\"Add Angle Prompt\\\":\\\"添加角度提示词\\\",\\\"Invert Rotate Mode\\\":\\\"反转旋转\\\",Hollow:\\\"镂空展示\\\",Reset:\\\"重置\\\",\\\"Angle Prompt\\\":\\\"角度词\\\",Image:\\\"图像\\\",F:\\\"前\\\",B:\\\"后\\\",U:\\\"顶\\\",D:\\\"底\\\",L:\\\"左\\\",R:\\\"右\\\",Rotate:\\\"旋转\\\",Vertical:\\\"垂直\\\",Zoom:\\\"缩放\\\"},Ne=(e,t=!1)=\\u003e{switch(xe(\\\"Comfy.Locale\\\")){case\\\"zh-CN\\\":case\\\"zh\\\":return Ee[e]||e;default:return e}};const Ce=\\\"comfyui-easyuse-\\\",Ie=\\\"dark-theme\\\",Te={PIPE_LINE:\\\"#7737AA\\\",PIPE_LINE_SDXL:\\\"#7737AA\\\",INT:\\\"#29699C\\\",X_Y:\\\"#38291f\\\",XYPLOT:\\\"#74DA5D\\\",LORA_STACK:\\\"#94dccd\\\",CONTROL_NET_STACK:\\\"#94dccd\\\",FLOW_CONTROL:\\\"#373780\\\"},Oe=0x4000000000000,Me=[\\\"loaders\\\",\\\"latent\\\",\\\"image\\\",\\\"mask\\\",\\\"sampling\\\",\\\"_for_testing\\\",\\\"advanced\\\",\\\"utils\\\",\\\"api\\\",\\\"api node\\\",\\\"加载器\\\",\\\"Latent\\\",\\\"图像\\\",\\\"遮罩\\\",\\\"采样\\\",\\\"_用于测试\\\",\\\"高级\\\",\\\"工具\\\",\\\"API\\\",\\\"api 节点\\\",\\\"chargeurs\\\",\\\"latent\\\",\\\"image\\\",\\\"masque\\\",\\\"échantillonnage\\\",\\\"_pour_test\\\",\\\"avancé\\\",\\\"outils\\\",\\\"nœud api\\\",\\\"загрузчики\\\",\\\"латентный\\\",\\\"изображение\\\",\\\"маска\\\",\\\"выборка\\\",\\\"_для_тестирования\\\",\\\"расширенный\\\",\\\"инструменты\\\",\\\"api\\\",\\\"api узел\\\",\\\"로더\\\",\\\"잠재\\\",\\\"이미지\\\",\\\"마스크\\\",\\\"샘플링\\\",\\\"_테스트용\\\",\\\"고급\\\",\\\"도구\\\",\\\"api\\\",\\\"api 노드\\\",\\\"ローダー\\\",\\\"潜在\\\",\\\"画像\\\",\\\"マスク\\\",\\\"サンプリング\\\",\\\"_テスト用\\\",\\\"高度な\\\",\\\"ツール\\\",\\\"api\\\",\\\"apiノード\\\",\\\"cargadores\\\",\\\"latente\\\",\\\"imagen\\\",\\\"máscara\\\",\\\"muestreo\\\",\\\"_para_pruebas\\\",\\\"avanzado\\\",\\\"herramientas\\\",\\\"api\\\",\\\"nodo api\\\"],De={selfie_multiclass_256x256:[\\\"Background\\\",\\\"Hair\\\",\\\"Body\\\",\\\"Face\\\",\\\"Clothes\\\",\\\"Others\\\"],human_parsing_lip:[\\\"Background\\\",\\\"Hat\\\",\\\"Hair\\\",\\\"Glove\\\",\\\"Sunglasses\\\",\\\"Upper-clothes\\\",\\\"Dress\\\",\\\"Coat\\\",\\\"Socks\\\",\\\"Pants\\\",\\\"Jumpsuits\\\",\\\"Scarf\\\",\\\"Skirt\\\",\\\"Face\\\",\\\"Left-arm\\\",\\\"Right-arm\\\",\\\"Left-leg\\\",\\\"Right-leg\\\",\\\"Left-shoe\\\",\\\"Right-shoe\\\"],\\\"human_parts (deeplabv3p)\\\":[\\\"Background\\\",\\\"Face\\\",\\\"Hair\\\",\\\"Glasses\\\",\\\"Top-clothes\\\",\\\"Bottom-clothes\\\",\\\"Torso-skin\\\",\\\"Left-arm\\\",\\\"Right-arm\\\",\\\"Left-leg\\\",\\\"Right-leg\\\",\\\"Left-foot\\\",\\\"Right-foot\\\"],segformer_b3_clothes:{Background:0,Hat:1,Hair:2,Sunglasses:3,\\\"Upper-clothes\\\":4,Skirt:5,Pants:6,Dress:7,Belt:8,\\\"Left-shoe\\\":9,\\\"Right-shoe\\\":10,Face:11,\\\"Left-leg\\\":12,\\\"Right-leg\\\":13,\\\"Left-arm\\\":14,\\\"Right-arm\\\":15,Bag:16,Scarf:17},segformer_b3_fashion:{Unlabelled:0,\\\"shirt, blouse\\\":1,\\\"top, t-shirt, sweatshirt\\\":2,sweater:3,cardigan:4,jacket:5,vest:6,pants:7,shorts:8,skirt:9,coat:10,dress:11,jumpsuit:12,cape:13,glasses:14,hat:15,\\\"headband, head covering, hair accessory\\\":16,tie:17,glove:18,watch:19,belt:20,\\\"leg warmer\\\":21,\\\"tights, stockings\\\":22,sock:23,shoe:24,\\\"bag, wallet\\\":25,scarf:26,umbrella:27,hood:28,collar:29,lapel:30,epaulette:31,sleeve:32,pocket:33,neckline:34,buckle:35,zipper:36,applique:37,bead:38,bow:39,flower:40,fringe:41,ribbon:42,rivet:43,ruffle:44,sequin:45,tassel:46},face_parsing:[\\\"background\\\",\\\"skin\\\",\\\"nose\\\",\\\"eyeglasses\\\",\\\"left_eye\\\",\\\"right_eye\\\",\\\"left_eyebrow\\\",\\\"right_eyebrow\\\",\\\"left_ear\\\",\\\"right_ear\\\",\\\"mouth\\\",\\\"upper_lip\\\",\\\"lower_lip\\\",\\\"hair\\\",\\\"hat\\\",\\\"earring\\\",\\\"necklace\\\",\\\"neck\\\",\\\"clothing\\\"]},Re={ALWAYS:0,NEVER:2,BYPASS:4},Pe=\\\"easyuse_nodes_map\\\",Ge=\\\"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMyaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA5LjEtYzAwMSA3OS4xNDYyODk5Nzc3LCAyMDIzLzA2LzI1LTIzOjU3OjE0ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjUuMyAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2RkFERDc2MUNDRkIxMUVGQjFENkE0NzFCNTUzRkQ0MCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2RkFERDc2MkNDRkIxMUVGQjFENkE0NzFCNTUzRkQ0MCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjUyMkMxRkIyQ0M0QzExRUZCMUQ2QTQ3MUI1NTNGRDQwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjZGQURENzYwQ0NGQjExRUZCMUQ2QTQ3MUI1NTNGRDQwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgICAwMDAwMDAwMDAwEBAQEBAQECAQECAgIBAgIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD/8AAEQgBgAGAAwERAAIRAQMRAf/EAMoAAQADAQEBAQEBAQAAAAAAAAAICQoHBgUEAwECAQEAAwEBAQEAAAAAAAAAAAAABQYHBAMCARAAAAYCAQIDBAQJBwoGAwAAAAECAwQFBgcIERITFAkhFRZXIpYXGTEy1bbWd5cYOEEjM9Q2djdRsbMktHWVtbd4QlIlJ9dYNJQ5EQACAQICBQYJCQYFAwUBAAAAAQIRAwQFITFREgZBYXGBkROhsdEiMpJTFBbBQlJy0nNUFTXworIjMzThYoKDJMLidPFDk7MmNv/aAAwDAQACEQMRAD8AxHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+lZU1vSrht3FVZVLljWwbmvRZQZUFc6otGEya21hplNNHJrbGMonGH0dzTyDJSFGXtH1KE4UU002k1VUqnqa5nyM+YyjKu606Omjata6T5o+T6LYfT19PfAOY+B59lmXZ7mGJTMQy6Hj0WJjkOlfiyosmmYsjkyHLOPId8cnXTT0T2pJKSP2mfst3DnDmHzrD3L165OEoTUfNS2V5Sv5xnF7LbsLduEZKUa6a7acg9Qr098A4cYHgOWYjnuYZbMy/LpmPSomRw6ViLFixqZ+yKTHcrI8d3xzdaJPRXck0qM/YZe1xHw5h8lw9u9ZuTnKc3HzktleQZPnF7Mrs7dyEYqMa6K7acpU8KiWA/fAqrS1OYVXWz7I6+BKtZ5QIciYcGrgoJybZTCjtuHGgQ0GSnXl9rbZH1UZD6jCc67iboquirRLW+jnPxyjGm80qunXsPwD5P0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC1T0sOKGpeR20re72pk1HZRNblDuYWmnnTTa5wvxEdlzbsvEhEzCKaUptEqOwbipEhxtuR4bCuyTbOE8oweZ4uU8XOLVqjVvllzvbFcqWt0TotcBn+YYjBWFDDxac9G/yR5l/mfJ4NOq/Dmtwc19y616zWeFXYls3Eq9xrXGcMQ0oRXIQk1oxW+ZiN+LMw6a57DbQlTkBxXjxyM/FZf0HPMhw+cYbd0QxUF5kqav8AK9sX4Na5U6jlea3suvb2mViT86Pyrn8ep82P3amq880rnd/rfZWPTMZy3HJao0+vlp6tvNH1VFsq2WjrHsqixY6OxpTKlsvtKJSVGQxvF4TEYHESw2Ki43ovSvlW1Pka0M0fD4izirSv2JKVuX7UexrlRog9DH/Bvdv6zaj81Yo0fgP+yv8A3q/hRTeK/wC5tfUfjHrnf4N6S/Wbb/mrKDjz+ysfev8AhY4U/ubv1F4zO/qvVeebqzug1vrXHpmTZbkctMaBXxE9G2Wi6KlWVlLX0j1tRXMdXZMp5SGWGkmpSiIZxhMJiMdiI4bCxcr0noXyvYlyt6EXLEYizhbTv35KNuP7UW1vkRr/AOF3BfXXEzXEulejVeZ7HzOsKLs3MpkBt+PbR32/5/EaWNNaUqNhUVSjSbLiSXYLLxpKf6JljZMkyHDZRhnBpTxM158mtf8AlVfm+PW+RLOMzzW9mF9SVY2IvzY7Od/5vFqXPQD6oXErWPGbalVY6vymkj02xW5l2rUvm1O5FgR+MolS4jCScMsItJCXEQDfWh1p1pxlHiob7kZ5xVk+FyvFqWFnHcuVfd8sP+18ledaaFvyHMb+Ow7jfi96Gjf5Jf8AcuXtKvBVSeAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPY6+2BmOq8yx/YGAX87GMvxee3ZUtzXOEh+NIQSm3G3G1pWxLhS47i2ZEd1K2JDDi23EqQpST9sPiL2EvxxGHk43oOqa/bVyNamtDPK9ZtYi07N5KVuSo0/2/9DTFr71i9OzuONnsDP4XkN34yzHppWqapTrSc1yKQysq+6xee+mSiDiM1bSnZy3zcfqe1bRpkqOKqVqGH4zwUsseIxCpj46O7XznyOL5Ivlrpjq06K0e9w3iVjVZsuuFlp3381bHz7NvNppnS33vnY3JDZVztHZ1sVlfWZJiwocdKmajHKKO8+7XY5QQ1LcOFT1pyVmhJqW4444t51bjzjjis2zDMMTmeKli8U63HqXJFckUuRL/ABelsumEwlnBWFYsKkF2t7Xzv/DUNZ8iN5aarLKm1VtTNMAqreeizs4GMXUmrjTrBuOmKiXIbYUROPpjISjr/wCVJf5CDC5lj8FBwwl2duEnVqLpVn5fwWExMlLEW4zklRVVRszkRvLctZW021dqZpn9VUT12dZAye6k2kaDYOR1RVy47b6jJt9UZakdf/Ko/wDKYYrMsfjYKGLuzuQi6pSdaMWMFhMNJyw9uMJNUdFQaE3zsbjfsqm2jrG2KtvqwlRZsOQlT1RkdFIeYdsccv4aVtnNp7I4yDWklIcbcbQ80tt5ttxLL8wxOWYqOLwrpcWtcklyxa5U/wDFaUj9xeEs42w7F9Vg+1Paudf4ajRbsH1i9OweONZsDAIXn935MzIpouqbVTrqcKyKOygrC6yiewmMidiMJbqXYK2Dbftu5DRJjKKUqLpOI4zwUcsWIw6rj5aO7fzXyuT5Yrkpplq0aaUuzw3iXjXZvOmFjp3185bFz7dnPormd2DsDMdqZlkGwM/v52T5flE9yyurmxcJb8mQsktttttoShiJCiR20Mx47SUMR2G0NtpShKUll+IxF7F35YjEScr03Vt/tq5EtSWhF4s2bWHtKzZSjbiqJL9v/U8cPE9QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACWfG3hNyE5UrlStW4kynF6+ScKyzrKJxUOHw5pIStUJuwWzJm201pC0m6zAjS3WErSbqUJUkzl8syPMc2q8JD+UnRzk6RT2V1t8yTpykfjc0weX6MRL+Y9UVpf8Ah1tE5vuQeTvs/wDcXSH4C6/+t5x+H+Uv7B/yGJ74FzX2ljtl9givinAfQu9kftD7kHk78xdH/wDGs4/QMPgXNfaWO2X2B8U4D6F3sj9ofcg8nfmLo/8A41nH6Bh8C5r7Sx2y+wPinAfQu9kftD7kHk78xdH/APGs4/QMPgXNfaWO2X2B8U4D6F3sj9ofcg8nfmLo/wD41nH6Bh8C5r7Sx2y+wPinAfQu9kftD7kHk77f/cXSH4D6f+t5x+H+Qv7B/wAph8C5r7Sx2y+wPinAfQu9kftEHOSvCPkFxS8jN2ljEN3F7SV7vrc4xWx9+4nKsTQ66mudmHHhWFXPdZYWtpqbFjKfQlRtd/YvtgszyLMcppLFwXdN0Uousa7ORp9KVeQlMDmmDzCqsSfeLXFqjpt2PqbIkiHJEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOxaB0plfIfbuFagw0kN3GX2hRnbF9px2FR1EVl2dd39glr6Zw6eqjOvqSRkp1SSbT9NaSPty/A3syxkMHY9Ob18iWtt8yWnwHNjMVbweGlibvoxXa+RdbNxWrdaYjp3XuJaywStRVYrhtNFpqqMXap5xEdPWRPnPJSjzVpZy1rkSnjLuekOrWftUN2wmFs4LDQwuHVLMI0XlfO9bfKzLMRfuYm9K/ddbknV/tsXIRcu/Ui4S47dW+P2u+6Buzo7KZU2KIeP5vaw0ToD640pEW0qcYm1diwh5tRJejvOsudOqFqT0MRVzibI7c3bniI70W06KTVVzqLT6U6HdDJM0nFTjZe61VaUvA3VdZ8z7zrgt8/aj6obG/Q4fHxTkP4iPqz+yfX5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8p9Ok9SPhNkV1UY/U74o37W9s4NPWMv43ndew7PsZLcSG09PscWi18JpyQ6lJuvutst9eq1JSRmPuHE2R3JxtwxEd+TSXmyWl6tLjRdeg/J5JmkIucrT3UqvTHUusk/tbWOI7m11l+r86rm7PF8zpZdNZMqQ0p+N46O6JaV63m3URranmoblQ3ySamJLKHC9qSEpi8LZxuGnhcQq2pxo/KudPSnyM4MPfuYa9G/adLkXVeToep8xh75AaUyrjxt7N9RZg0s7PEbd6NEsfBNiNf0UgilUORwEmtwih3dS81ISnuUplS1NL6OIWRYVmOBu5bjLmDvelCWvauSS5mtPgNTweKt4zDQxNv0ZLVsfKupnGxxHSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABqS9H/iYnVmrZHIPMa5TWebfr22cXjTYqW5WN62ZlKeiOsqWgn2pGcSmm5zntNKoLEI09qjcI9W4Nyj3TCPMby/5F5ebX5sP+7X0KPOULiPMPeMR7nbf8m29PPL/t1dNTuPqd8sS416GlUOL2hwtsbbasMYwxUcz83SU7aI7eXZclZJ7Y7lXXzkR4i+5LhTpbTiCUllzt7+Kc3/ACzL3btOmLvVjHmXzpdSdFztPkZy5Fl/v2L37irh7dHLnfIut6+Zc5j8GNGjgAAAAAAABsB9MLli3yR0JBx3JrEn9q6iYrsTy1MqV41jkFK1GJrFs1X4i1yH1WkKOqNMdWpS12MR5xXal5sj2ThbN/zPL1buv/l2aRlta+bLrWh86b5UZxnuX+5Ytzgv+Pcq1sT5Y9WtczWw4h6wHExG09WNchcPrvFz3T9YtvKm2CPxr3VqH5M2etSSIyck4VNlu2CD6oIoLswzNSktJHDxllHveE/MbK/5Fledz29b9V6eje5jq4czD3fEe53H/JuPRzT/AO7V00MtoykvoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABN7gDxWlcrN+0eM2cN9zWuInHyzaE1txyOg8eiPl5XHm5LS2nW52WT0Jho8JaXm45vvo/oDE7w9lLzbMI2pp+6w86b5tnTJ6NtKvkIvN8wWX4N3Iv+fLRHp29WvsXKbLbi4xvBsZsby7nVWMYlilNIsLKwlLYraaioqaGp6Q+6v+bjQoFfCYM+hESUIT0Iv5BtU52rFp3JtQswjVvUkl4kkZpGM7s1CKcrknRLW22YneZfJS05U76yzZ75TYmM97VBgFFNcJSqLDaglNVrK2kqW2zOtX1Oz5aUqWRS5biUqNCUdMOzrM55tmE8U6q1qgnyRWrret87NPyzAxy/CRsKjnrk9snr7NS5kRWESSAAAAAAAAASr4Y8lLXitv3EtnRzffxl1w8a2HUsEa1W+C3MiMVy200SkeLYVTkdmwhp7kEqZDaSo/DUsjlskzOeU5hDFKvdejNbYPX1rQ1zpchH5ngY5hhJWH6euL2SWrqep8zNr1Pb4znuK1t5Ty6zJ8PzGhi2VbMaJqfT3+PX0BEiM+lDqFMy6+yr5RH2rSaVtr6KL2mQ3GE7WItK5Bqdmcap60014U0ZhKM7NxwlWNyLo9qa8jMa3qA8WZHFXkDe4zWRn/ALOcwJ7MdaTlNOeCigsJbpSsbVIPvbcnYjYd0RZd5urjeXfWSfMJIYrxDlLynMZWor/jT86D5m/R6YvR0UfKaVk+PWYYNTl/Wj5sunb16+mq5CD4giVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADXh6SeoqPXPELFMtix4qsk29Y22Z5FZIjNImORYdnPx/HKhyWk1PSINZW1xvNNqMktPzZBpSRrUati4QwdvDZNC8ku9vNyk+XQ2kuhJV6WzOuIsTO9mMrb9C2lFLqq31t+BFkt3R0uS1M+hyOorL+jtY64lpTXUCLaVVlEc6eJFn105p+JMjOdPpNuIUhX8pCzXLcLsHbuxUrbWlNVT6U9ZCRlKElODamtTWhrrOYfu6cfPkVpv9mOE/kMcv5bl34ex6kfIe/vuM9rd9aXlH7unHz5Fab/ZjhP5DD8ty78PY9SPkHvuM9rd9aXlH7unHz5Fab/ZjhP5DD8ty78PY9SPkHvuM9rd9aXlKDfVm4QXtHnNHu/R+sULwG4x2HS5xRa7xhCGsYyankPMxr+VRUEJtEWpyCokx2TfbZNCJUNw31JU+13Z9xfkVy3fjjsBa/48o0koR9GS5aJamqKtNa060W7h7NYTtPC4q5/OUqxcnrT5KvlTr1PRqZ/vpL8I7y8zfId27w1iprBKfHpFHg1HsTFm1xMryC7eNiwvYlLfxlFKrcdq4jrJPOR/CckzUmytS2HOxwhkVy5fljsfa/48Y0gpx9JvW6PkitFaa3o1McQ5pCNqOFwtz+a5Vk4vUlyVXK34Fp1l+P7unHz5Fab/AGY4T+QxoP5bl34ex6kfIVH33Ge1u+tLyj93Tj58itN/sxwn8hh+W5d+HsepHyD33Ge1u+tLyj93Tj58itN/sxwn8hh+W5d+HsepHyD33Ge1u+tLynUKWjpcaqoFDjtRWUNHVx0RKympoEWrqq6I318OLAr4TTESHGb6/RbbQlCf5CHVC3C1BW7aUbaWhJUS6EtR4SnKcnObbm9belvrK2/Vp1Dj+xuIWW5dPYJOSagnVWaYvYIS2TzaJlrXY/kNY64ror3fY1Nkbq2yMu6REYV7ewiFZ4vwdvE5NO9L+rZalF9LSa6Gn2pE1w9iZ2MxjbXoXE4vsbT6muxsyGjHTRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2oenH/BHx6/udM/Oa+G38NfoWG+o/4mZjnX6pe+t8iKzvVF5qcmOPnI2lwbUOy3sQxaTqvGsifq2saxC2J24sMhy6FLmKlX1BaTSU5Gq2E9hOE2kkdSSRmZnV+Ks8zTLsyjYwd3ctO1F03YvS3JV0pvkROZDlmBxmCd3Ew3riuNVq1oSWxraVw/ekc6vnpK+o2tf0OFa+K8+9v+5D7JNfkGU+y/el9ofekc6vnpK+o2tf0OD4rz72/7kPsj8gyn2X70vtErOIPq5bYx7Z7VZyny9/NtY5M2zWvXrON0FfZ4BYm8go2QojYvSVz9xSdqlInxux2Qls0vMdy2zYflsm4wxdvF7ubT38LPRXdScHt81Kq2rXyrVRx+Y8O4edjewEd2/HTSraktmluj2Pqe1aWMQzLE8/x6tyzCMkpcsxm3YRJrb3H7GLaVkxpaSV1alxHHWvER3dFoMyW2rqlREZGQ06zfs4i2r1iUZ2pamnVPsKRctXLM3buxcZrWmqMZfmWJ4Bj1llmcZJS4njNQwuTZXuQWMWqrIbSEmr+dlzHGmvEX29EIIzW4r6KSMzIgvX7OHtu9flGFpa23ReEW7Vy9NW7UXKb1JKrM0/L71ctr5DtByt4sZdIwnWWMtSaxm9exygsLLYFgb5ePkTkXKKSxep6ZCWiRAj9jUhTZqekElbqWGMxznjDF3MXu5TPcwsNFd1Nze3zk6LYtfK9dFd8u4dw8LFcfHevy00q6RWzQ1V7fBtcU/vSOdXz0lfUbWv6HCJ+K8+9v+5D7JIfkGU+y/el9ofekc6vnpK+o2tf0OD4rz72/7kPsj8gyn2X70vtFj3pdc1OTHIPkbdYNt7Zb2X4tG1XkuRMVbuNYhUk1cV+Q4jCiTEyqGgq5pqbjWj6ew3DbUS+ppMyIysvCueZpmOZSsYy7v2lak6bsVpTiq6Enyshc+yzA4PBK7hobtx3Eq1b0NPa3sLMfUc/gj5C/3Oh/nNQi0cS/oWJ+ov4kQeS/qln63yMxXjEDTgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2oenH/BHx6/udM/Oa+G38NfoWG+o/wCJmY51+qXvrfIiij1rP4use/Uhhv51Z8KDxx+sR+4j/FMtfC/6dL72XiiVDCnFjAAAD2mI7I2Hr9x57A88zPCXZCiVIcxLKLvHFyFERJI31U86GbxkkiL6XX2D3s4nE4d1w9ydtv6MnHxNHlcsWb2i9CMlzpPxjL9kbE2C6y/nueZnmz0bp5d3Lcnu8jcjmSCaI2F3E6YpoybLt+j09nsC9icTiXXEXJza+lJvxti3Ys2dFmEYrmSXiPFjwPUAAALefRT/AIush/UhmX51YCLjwP8ArEvuJfxQK5xR+nR+9j4pF6/qOfwR8hf7nQ/zmoRfuJf0LE/UX8SKpkv6pZ+t8jMV4xA04AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANiHpV7Ix3POGWtKmolMKt9cqvMJymtS8lcmuso13YWsF15v2OIZtKWzjyG1dO0zWpJGZoV02bhPE28RklqEH59qsZLY6trtTTM3z+xOzmc5S9GdJJ7VSngaaOr744IcbOSeax9g7cxG3vsoi0EDGWJkLLslo2G6itl2M6LH8nT2UOMpaJNq+o1mk1q7iIz6EQ7MwyDLMzvrEYyDldUVGqlJaFV6k1tZz4TNsdgbXc4eSVtuupPS6bVzHFvuj+Dfy1yH9o+dfl0cPwfkPspevPynT8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIPuj+Dfy1yH9o+dfl0Pg/IfZS9eflHxFmv04+rHyD7o/g38tch/aPnX5dD4PyH2UvXn5R8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIPuj+Dfy1yH9o+dfl0Pg/IfZS9eflHxFmv04+rHyD7o/g38tch/aPnX5dD4PyH2UvXn5R8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIdq0NwS418a80lbA1Jh1rRZRMoJuMvTp2XZNete6LCZXT5bCIdvZy4iXHZNUwfidnekkmRGRKPr3ZfkGWZZfeIwcHG64uNXKT0Np6m+ZHNi82x2OtdziJJ2066ktKrsXOcm9VTZOOYFwz2TT3EpgrnZCqXCsVrDfbRKsLB+7rrWwfaaNXirj1VNWvvuqSk0kokIUZG4nrx8WYq1h8kuwm/Pu0jFbXVN9iTZ0ZBYnezOEorzYVk3s0NLtZjwGMmkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB3vj5yY3Fxhy9zMdRZS7SyZrbEe+pJjRWOMZRCjKdUxDyGkeWmPNTHN9zwHkm3KjeKs2HWzWozkMuzTG5Ve77Bz3W9aemMlsa5eZ61yNHJjMDhsfb7rExqlqeprof7J8pahC9c7cDcZpFho/W0qWSUk8/Du8ngx3FElJKU3FedsHGiNZGZEby+hGRdT6dTtkePMal51i03zOS8pAPhTDV0XZ06Efq+/R2n8h8A+s+Rf1cfvx7i/w9v1mfnwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7Efmmeuft9yM6iv0fraLLNKiZfl3mTzo7azQokKcisu17jqUrMjMidR1IjLqXXqX5LjzGNebYtJ87k/Ifq4Uw1dN2dOhFWfInk7uHlHmDWY7byT3o9AZdiY/QVrCq3FsXhPm0qTGoKYnXkRTlrYQp99xb0qQbaPFdWTaCTVMyzTG5re77GSq1qS0RiuZc/K9b5WT2CwOGwFrusPGietvS30v8AZIj+I47AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmTwx4dX/MrMcvw/H81p8JfxHGmMlfm3FXNtGZjL9pGqyistQpEdbTiVyCX3GZl0Lp0E3kmS3M6vTs27ituEa1abrppyEZmeZRyy3G5KDmpSpodOSp7Dmb6fmzeG8PEr+8va3O8Nyp6RV/FVDWza+JTZGylySzRWseY9IcZesa5pb8Vzu7XiZeSREbR93tnfDuKyWMLk5K5Yno3kmqPY+laV0M8sszixmTlCKcLsdNG61W1dD19RAYV4mD2OvMQe2DsDBsBjTWq2Rm+Y4ziDFi+yuQzXvZLdQqZqa8w2ttb7UVc0nFISpJqJPQjLr1HvhrLxOJt4dOjuTjGuzeaVfCeV64rNmd5qqhFunQqlh/Lb0xcx4m6lVti82pjOYQU5LS417nqsftK2X41yiatuV5mZMfZ8NjyR9ye3qfcXQxZM44WvZRg/fJ3ozjvJUUWtfWQ2XZ7bzDE+7xtuL3W6tp6uoq/FUJ4AAAAAAAAAAu3wv0UNiZnh2J5hH3phcFjK8aoslYhPYpeOvQ2b2ri2jcV11FilDjkdEokKURERmXUiF6s8DYi9ZheWIglOKdN18qrtKtd4otW7krbsybjJr0lyOmw9N9xZsn5+4P9UL78pD1+AsT+Ih6r8p5/Fdn2MvWXkPMZR6HW96+CuRiW29W5LMbLuOBbMZPjBukXf3IjymqzIWVPH0T2k54SDMz6qT09vld4Ex8Y1s3rUpbGpR8NJHpb4qwrdLtu5Fc1H5CrbevHTcXG3KmsQ3Dhk7FbGa1Jk0003YtjR5DBiv8Al3Z1Dd1z0musGUKUg3GyWUiOTqCebbUokiqZhluNyy73ONg4Sep61JbU1ofjXKkT+ExuGx1vvMNJSS18jXSv2T5DiQ4DqAAAAAAAAAAAAAAALAeD/ADMeaLmX2cTNa3XWFYZIr62xyOXSuZNPnXVkw9KarKqgZt6PxiixGUuSHXpbCEE82SPEM1kixZFw7ezvfmritWINJypvNt8iVVqWurWvlIfNc4t5ZuxcXO7LTStNG1uj8RzrmTw+zThxsauwrJb2sy2kySoO9xHLauM5Wpt4LEg4U9iwpX5Mx+ntK+WkicaJ+SyppxtaHlGpaW+bOsmv5LiVYuyU7clWMloqtTqtNGulrVp2e2WZlazKy7sE4zi6NPTTZp5U+oiGIYkgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwvQz/xt3R+qyB+dtYL3wH/e3/ul/EVXir+1tfePxGgTcut9c7/wbO9E5wuLPjX+MwZFrXsOx1XdAxbS7RrFssgtupd8pMiXmOyHYLykKbVIgrSZKSS0nomNw2GzCxcwF+jjKKquVVruyXOmnR7UVDDX72DuwxdrQ1LRsdKVXY9PSYn+QOjsx457ay/Umbx1ptMZsFIg2ZRnI0HJKGSZvUmS1RLU4S6+4gmlwiJazZd72Vn4jSyLDsxwF7LcZPB3/Si9D5JLkkuZrsdVrRp+DxdvG4eOItejJaVsfKn0f4n9eNf8Rmgf116r/PqiDK/1PD/f2/40Md/ZXvup/wALNMPrL/wbOfrTwb/QXw1DjT9Ef3sPlKPw1+p/7cvkMmYyE0I6RrzTu2Nty3IOsNbZxn8hl1DMr4Sxi4vWIK3CSaTsZdfEfiVrfaojNb620ER9TMiHVhsFjMY93CWrlx/5Yt06WtC6zwvYnD4ZVvzhDpaXZtOg5lxH5P6/rFXWYaD2vS0zTUh6TbO4VeSqyCzFShbztlPgRJUWsaShfUlSFtEskqNPXsV06b+TZrh4797D3lDbutpdLVadZ42sxwF6W7bvW3LZvKvVXX1EdhGHaAAAAAbb7zJ73CeBdvmeL2C6nJsR4i2GT47atNR5DlZe0OmnrWosG2JjMiI8uHYRG3CQ62ttRp6KSpPUj3S7duWMglftOl2GDck9jVuqenYzLoW4Xc2Vq4qwliEmtqc6MzAfebc6Pn/dfVPXn6IDK/inPvxEvVh9kvf5FlXsV2y8p0rWHq4cxsGyGLYZbmVVtbHfMNKssXyrGsaqykxiUkpCa+9xelp7atmOMkZNrWqSw2v6SmF+0j6cJxhnWHuKV6avW+WMoxXY4pNeFcx4Yjh3LbsKW4u3Pkabfam2n4Okvv5c4ZhPMDgpkeV10BM0p+qmt46xlyW4zVpV3ddiy8tqo7b8okogSrOvU7Vy+5SCJqU6lRp6dydBzixYznIZXYqtbPew2pqO8teqq819LKjl127luaxtydKXNyWxqtH001roRj7xzC8xzA5acSxPJcpVXkwc9OOUVpdnCKUbpRjllWRZRxikHHc7O/t7+xXTr0PpjVqxfv17mE5017qbp00NHuXbVqneyjGu1peM+tXau2Xb5ZHwKr17m9hnEpKHI+Hw8VvH8neacSlxDyKJuCqzNlTayV3+F29p9evT2j7jhMXO8sPC1cd9/N3XvdlKny8RYjb76U4K19Kqp26j2myuNW/9O1Ma/wBoaf2BhFDLlJgs3l9jdhFpvPOEamYTtqTS4EeZISlRtNOOJcdJCjQSiSrp74rK8xwUFcxdm5C23SrTpXZXUeVjHYPEy3LFyEp7E9PYcerKuzurCHU01dOtrWwfRFgVlZEkT7CdJdPtbjw4cVt2TJfcP2JQhKlGf4CHFCE7klC2nKb1JKrfQjqlKMIuU2lFcr0IktH4R8vZdSm6Y43biXBXEcmoJWDXbc9yO2lazNuodiot3HnEo6ttJYN13qXYlXcnrKLIc5cO8WGvbtK+i69mvqpU4XmuWqW479utfpKnbqI85Ji2T4bbP0OX45fYpeRSSqTTZJUWFHbR0r6khT9daR4sxol9p9DUguvQRt2zdsT7u/GULi5JJp9j0nZbuW7sd+1JShtTTXaj+2O4bl+YLlt4limSZQ5ASyucjHaK0u1w0SDcSwuWmsiyVR0vqaWSDX0JRpPp16GP21Yv369zCc6a91N06aH5cu2rVO9lGNdrS8Z+e/xjJMTmorcpx68xqxcjImNwL+pn001yI64603KRFsY8Z9cZx1haUrJPaakKIj6kY/Llq7ZluXoyhKlaNNOnWfsLlu4t63JSjtTT8R8MeZ9nv06n2mutTco1rn66hcErNNqnDciVWqrVMeaTYJnFXHFOCcU/EJ0leH4f0uvT2jp9zxm7v91d3KVruypTbWmo8PecNvbveQ3q0pvKtdmsm5wC5k7n4vzc3qcA1TO3Rh+THW2mQ4nXR7pqwqbeIl6JBuod1SU18uuTMiqWy82/Eebf8Js0GhSFd07w9nWOyt3IYey79mVG4qtU9SdUnSq0Oq06CLzjLcLjlCV64rVyNUm6Ua2UbVe05nzi5M7Y5ObVgZJtHCH9Zox7H2ajE8BkRLWM9T08mS9MkT5ci5iV820n201SjXJKOw0ptltCGy8MzVy59mmMzTFq5i7btKMaRhR6Ft0pNtvlotS2HvlWBw+Bw7hh595vOrlo0vZorSmwhgIMlCReHcROUGwKlu9xDQe1bqlfQy5FtmsNuY1dOafR4rT1dLnRYrFiwpvofewpxBEZdTLqXWTs5Nm2Ih3lnD3XDbutJ9FaV6jiuZlgLMty5etqWyq8NNRznYGoNraolphbN1tnOASHJDsaOWX4tdY+zNdZNXf7vk2cOPGsWjSg1JcYW42tH0kqNJkY5cTgsZg3TFWrlt1p50Wq9Dao+o9rOJw+IVbE4T6Gn201Hi6mntr+xjVFFV2N1bTVLRDq6mFJsbGWttpbziI0KG09JfUhltSzJCTMkpM/wEY8IQnckoW05TepJVfYj1lKMI702lFcr0I+9kOvs+xKIzYZXhGX4zAkSUw2JuQ41c0sR6Wtp15MVmTZQozLklTLC1kglGo0oUfToRj1u4bE2Y7163OEW6VlFpV60fEL9m6923OMnzNPxHkB4Hqe4stY7Kpqp29t9e5xVUbDTL79zZYnfwapliQttth52xlV7URtp9x5CUKNZEo1kRdTMh0SwmKhDvJ2ritrlcWl20oeMcRh5S3Izg57FJV7Knhxznse9qtVbQvK+LbUmt89uKqa2bsKzqsPyGwr5bRLU2bkWZErno0hsnEGnqhRl1Iy/kHTDB4u5FTt2rkoPU1GTT66HjLE4eEt2dyCkuRySfjPDOtOsOuMvNuMvMuLadadQpt1p1tRocbcbWRLQ4hZGRkZEZGXQxztNOj1nsmmqrUfzH4AAAAAAAAAAAAAAAC8L0M/8bd0fqsgfnbWC98B/wB7f+6X8RVeKv7W194/ESB538psk4meozqLYFeubOw+x4+YdRbIxeO6Xh5FiUnZ+1zkKaYcUlg7ujcPzle4ZoMn2zaNaWXniVI5/m1zKOJbOIjV2Hhoqcdsd+54VrXZqbOPKcvhmOS3LLorqvNxex7sPA9T7daRIr1C+LuM819AUG6dOOR8m2BimMnlOu7OlUTidgYRZtNWlhihpNKXH5jjRHJrW1kTrM4nI/ag5LvSS4jyq1nmXRxuDpLEQjvQa+fF6XH5Y7Ho5WcWT4+eV4x4bE+bZlKkk/myWivyPm08iMz/ABuQtvkdoRtxKkLRu3VqFoWk0rQtOd0RKSpJkRpUky6GR+0jGYZYqZnh09ff2/40XnG/2V77qf8ACzS/6y/8Gzn608G/0F8NP40/RH97D5Sj8Nfqf+3L5CiD0+uIv73W7Cx2+dnQtaYVAayfYc+vcJiXIhKlJjVWMwZRko4s/I5aVp8UkmpqKw+tJktKOtA4dyf84x3d3KrC21vTa8EVzy8SZbM4zH8uwu/CjvzdI18L6vHQ0DcqOamjvTyxjFNT4FryutspeqPPY5rLF3oWMUOO0JvOx27rJbFqJPfinZzGXTaSmM/KnONOrcWj+kVombZ5gOHLUMJYtp3d2sYRpFJbZPTSr1aG3pKfl+V4vObksRdm1brpk9Lb2Lo6aIipov1tMdyzNarF92ati6+oLucxBbzrHcmft66gdkqSyy/kNPZVkR9NSl9RG/LZlKVHb6qNhZEZlE4Djm1evq1jrSt25Om8pVS+smlo2uujYSGL4XuW7TuYW5vzS9FqjfQ6vTzeE/l6rPBPC7PX9nyj01j9dTZDjhMWezajHmo8WmynFJaiS7mkWDEQUVN5TvPNuy3WSQmXBU4851cZI3Pzi3ILE8O81wUVG7DTNLVKP0qbVrb5VV8g4fza7G8sBiW3bloi3rT+j0Pk2PpM3gzMuwAAAbW84hTbP08cvrq6JKsLCw4YZBCgQIUd2VNmzZWj5bEWJEisIcfkypL7iUNtoSpa1qIiIzMbjiIynw7cjFNyeCkklrb7p6EZfZajnEZSdIrEqr/1mPH7FNy/KTZv1Cyr8lDGfcMd7G76kvIaR73hfa2/WXlOk6x4d8mtuZFBxzENLbB8SZKbjP3V9jFzjeL1KVLaJ6TcZHdQodVBZjNvE4pBuKfWj+jbWoySfThclzXGXVas2Lml63FxiultJfLsR438zwGHg53LsNHImm30JaTVXut+j4m+n7k+Oz7WJI+z3j63q+mmTlLJq/yyTiLeE0hFHStmQ8VrfykOrabNCksmsyNCUmpOtY128o4enbbX8rD7ib5Zbu6u1lAwqnmGbxmk/PvbzpyKu8+xFXHoR/2i5K/7l1b/ALdngqfAP9TFfVt+OZPcWehY6Z/9Javv/dHGfhdZZRvDY5KLYm2Cr4MWHTQIltn2VV+HU9bWR6LH2X3oDUPHqk1JkPuSJDEZMqZ1ccNSmUFbsxx2V5JKWOxP9xdotCrOSikqLVoWt1aVXpeor+DwuOzNRwtn+jb26IqrrV877aLpKbec3qRai5e6GVqDX+DbRpsxlZ5iNxWNX9Tjz0KzahHZRnoUZdDklvPOzdentEy0UcydMzIlEroR0rPeJsHnOXvBYe3djfdyLVUtNK6NEm66dhZcqyTE5bi/eb07btKDTo3o7UtBZNxh426Z9OjjtZbg2w3U/aJAxor/AGZnZwkWFnWOzksoYwDC1OEb6IyJclqAhLJtKtJqvEd7UG22zZ8qyzBcN5a8Zi6e8KNbk6Va/wAsebk0ek9L5oTH43E5zjVh8PXuXKkY8n1n4+ZEG7n117lORSFY9x3rHcTbfNMVq5z+UxkUuKnuInpEiDjUmtrn3/Yo2ktykte1PiOfjCBnx9PvH3eGXc889Pgi0vCSseFI7nn3n3nNHR46+In4hnjV6r3HCfZs0yqy+gLm00SwsokIs91PmjMcpMXtmw3VefpJiX23vCJw4lhGWZLQ2+gyZsNMr4tyxySpNVVXTfty6uTl2Nc+qIrjuH8ao1rF6dHozj5fCnza6SfTxzzIOJnO5rWOePFUMZDe3+h89jKlPJrGb47XyuOWLPipYYktpzGsitR5TiE9IM11aDJLhkqjcOX7mUZ/7piPNUpO1PTorXzXz+ckk9je0tGc2oZjlPvFnS4pXI7aU0rsbqtqJ4euFpMp+Naq5A1cM1S6Ce/rLLZDMdtTh09uU2+xSTLkJ6PNxK22Ynsp7u5Hi2KSI0qV0XP8dYHes2sxgvOi9yXQ6uNeh1X+oieFsVu3LmDk9ElvLpWh9qp2FFHH/Vc3d+7NYangk53ZzmVNSznmVpbchUi5KZGQ2SVqSsi910MeTJ/FUZk17CM+hHQcuwjx+PtYRf8AuTSfR859Sqy2YzELC4W5iH8yLfXydroakPVN29B0Xw4vcNx426202gmBqHG4TCVKRExqRDUrKiSg+vSGjD4D0DqauqVzGz9o1bivGRwGSys29E7tLcVzP0v3U11ooWQ4Z4vMo3J6Y2/PfTyfvUfUV2ehZ/iTv3+4+If8+shW+Av7nEfUj42TPFf9Gz9aXiRHn1kv4zJv6ssE/wA1uI3jX9a/2o/KdvDP6b/uS+QmX6THBTFJuJQ+U24aGvvpVvJlfZNjd7CJ+tp62pmPQ5Od2EKc35eVZTbCK4mt70Kbjx2fNIUpbzSmZvhDIbTsrNsZFSlJ/wAtNaElo3mnyt+jsWnl0RnEOa3FceAwzaS9Nrlb+b0Ll59HJp9Vvv1r6DC88ucR0tq6HsGix+wk1sjOchySTUV19JiLNiQ7j1RAq5Mg6lMhCvBlvSCVJR0UTKEmSle2YccWrGIlZwVpXIRdN5yonTYkno529Ow88JwxO7ZVzE3NyclXdSq10uuvm5CSPFrm7o71D6TKNL7K1nApcpXSSLC119kcqNk+OZNSNvKiSLPGLhcOsmJsqkpDTjiDjxpcQ3ScjuuE2txuTynPcBxHbngsTaUbu7Vwl5yktVYui0rl0Jquius4swyvFZNOOJszbt10SWhp7GtOvpafKUY8ldQ3Xp5czsbsMSenS8boL/Gds6ylvSF+bn4qi5cVJxuzmKZNpyTElVsysk9e/wAeKaHXEkT/AGFQszwc+G87hOzV2oyjchzxrpi31OL2qjestWBxMc5yyUblO8acJdNNa8D6egv+9RPEqXkLwKzfKsWejW0SrxfHN64bZoJEplypo47OQTrGO5HU8j/WsCnWCUuIUaCJ3qauzqY0PiOzDMeH7l2004qCuxevQvOb64V7SoZNclg82hbuaG5O21zvRT1qGVTj3rF7c+8dU6sabWtrN86x6jsjQ4ppTFG/YMuZBMJxBktPkaNqQ99H6X837Pb0GS5bhXjsfZwnJO4k+ivndiqaBjb/ALrhLmI5YwbXTyeGhte3prmp25pbaumGlRG38o1vb0cOG0tpK6p+0rbGLith5YjLwo8a5rCWyaiJClRVJLr2q6bjj8NDGYK7gtFZ2muiqai+1aOgy/C3pYfE28T9GafTR6fB4zCazV2MizapWYMpdu/ORVtVpMOFOXYuSCiIglGUknSlKkqJvwzIld/s6dRgahNz7tJ77dKctdVDV3KKjvtrdpWvMbMtoZBF4P8AAeX5CVHZuNUaco8KxySpLi0Ttgzq2Di9TPU1E8J1/wA1l1iU1/wzb6N+IrubSRqTteLuLIuH3utb9myox550UU9G2Tq/kM0sQeaZsq+jcuuT+rWr8CojGCta3FqccUpa1qUta1qNS1rUZmpSlGZmpSjPqZn7TMYk3XS9Zpp/yAAAAAAAAAAAAAAAALwvQz/xt3R+qyB+dtYL3wH/AHt/7pfxFV4q/tbX3j8R431vv4rtff8Ab1in/UjbI8OOv1e3/wCNH+O4evC36fP75/wwOnekDzTPFb1vivsq57cayaY7I09YzT/mqXKZbr0mzwx2UtXRqvydxZvwEq6JRYktpPcuWgk9fBued1P8pxUv5cn/AC2+SXLHoetc9Vyo5+I8s34/mFhefFefzrkl1cvN0HsObnC8tU8xNCcjdd1TiNe7J5BauTnVbBiF5PD8/m51RvLsi8AukamzZwlvdVp7GbMnUd5FIjtJ989yT3TOsPmeGX/Hu4m3vpL0Zua09Ev4ulI88rzP3jLb2CvP+dCzPdb5Y7r0dMfF0Ml96y/8Gzn608G/0F8JjjT9Ef3sPlI7hr9T/wBuXyHHfQ0pYDGkNz5E2yhNpabVhUsyQSEEt2BQ4jUzq1lThJ8RSGJGSSlJIzMkm4ZkRGZ9eLgOEVgL9xek71OpRTXjZ08VSbxdqHzVbr2t18SKavUVyOzybmpyBl2kh19ddmqschJcdU4iNWY1WV9JXx2Eq6JZaKPBJXakiLvWo/aZmZ0viW7K7nmIc3qnuroSSRZclhG3ldlR5Y1622yFQgiUNm/Fd09p+ndrqDmDiLFjItBW+H3Dln/rzcqph1FziHWeTy2zlIXVQk+IS1kai69Vf+IbZlT974dtRvaVLDuLrpqqOOnqRmWPXu+cTdvQ43k1TbVPxmMgYmaaAAAG6HFc5rtYcTcc2VcRJs+o15x3p85tYNYlhVjNrsS1rHv50SvTKfjRlTZEavUhonHG2zcMu5SS6mW9W78cLlMcVNNwt4dSaWtqMKunPoMpnalfzB2I0Up3nFV1VcqFb334vHP5U7r/AP08F/TQVn47yz2V/sh9om/hXG+0tfvfZPIZL66OsI8OWeH6Jz24nl0KC3kuSY9jcNzqj6Tkt6rayp5nw1/gQhtzvIvxk9fZ43ePMIovucPclLk3nGK8G8ekOFMQ3/MuwUeZN+OhTzyz5y7q5e2kNGczIOP4NSS3JmO66xkn2MfgS1k40m1s35Djs7IL0ojnheYkK8NpJr8uywTrpLpmcZ9js5klfajh4uqhHUud8rfO9XIlVlky7KsLl0X3VZXnrk9fQti/Ztll/oR/2i5K/wC5dW/7dngs/AP9TFfVt+OZB8WehY6Z/wDSRa9Y6+tLXmXZ1c6Ut6BjGvMHqqaOal+FEiTYkq/lEhBqNBOPWVu8tSiIjUXaR/ikIrjS5OedOEn5sbUUuur8bO/hqEY5apLXKcm/F8hErhRR12R8t+OdTatG/Ad27hUt5jqRJfVV3Ma1YZdJSVEuO7IhIS4np9JszLqXXqIjIrcbucYaE9Me+i+x1+Qkc0nKGXXpR193Lwqhrl5e6a1LvnVDGvN07JttZYTLyuotHrSnynEMSfurGqi2b0ChkWOZ0t7XPxFuLOYbLTSJCnYaFEsm0OJXsGcYLCZhhPdsbdlasOadVKMatVoqyTVOXRp0dJneXYnEYTEd9hoKd1Rao03StNNItPm2aSsH7rT05P8A7R5l+23RX/x6Kt8J8N/irn/y2vsE7+f517CPqXPtExuJmlOIPDdWclrHkXHvWNgFj3vmHnm29XWkSK9jZ3HkZNW1j9RjHl5DyLt1LynDe70pQREnt9s1lGAyfJe891xO8rlKqdyDXm1pSijt09RG5hisxzLc7+zRwrTdhJa6a6t7Cg31PpGNwObOaZprfJ6q0j5BX4FmMe5xS7g2kSBkMSgrquQ5Dn1SltR5qJ1CUpZeK44l5019xdxITn3FTtwz2d/DTT3lCVYtOjSS0Ncvm16S25CpyyuNq/Frdco0apVVry9NDQLbLgc/PTwlSYrMSVf7L1QcxiOkvGRXbaw9Xj+UbNlKH2kR8/x02SNKUrXGV+IaV9h6HPd4h4dbVHO7Z7LkfJNdhUI72UZxR13Ldztg/wDtZU96JmknMh3DsLd1tEWmDrDH04pj5vxkkR5dmhPtWD8d5wjW3Ip8YgSGHkJIldtojqoi6pVUeBsC7mMu46a821HdX1pa+yKo/rFg4oxW5h4YWL03HV9C1dr8Ry/1j93Fsjk1D1rWyEvUGj8eRRK7O5SV5hlSIN7lLyFmrtNLMJushrSSSNL8NzqZ+wi5ONMd7zmiwsf6diNP9UqOXg3V0pnRw1he5wLvy9O7Kv8ApWheGr6zt3oWf4k79/uPiH/PrId/AX9ziPqR8bOTiv8Ao2frS8SI8+sl/GZN/Vlgn+a3Ebxr+tf7UflO3hn9N/3JfIaPNVYjjcPiBr7CHbuXhuLr4743QTMnhz6ytscdrJ2u4kSwyRi0tocunh2cBuQ5MKTKjux0Pp73G1I7knpeEs245Pbsbzha93it5NJxW5StWmqrXVqldaKViLk3mM7tFKffN000b3tVFpo9VFpKs/utPTk/+0eZftt0V/8AHoqnwnw3+Kuf/La+wT/5/nXsI+pc+0di0Fwk4K8cdsYtuLA+TlzMybEjtvJQMi3NpyVQzmbqksaGbGtYlTiVLOkxzh2a1pSiS10eQhRmfb0Pty7IsiyzFwxuHxUndhXQ7lujqmnWkU+XbrObGZrmuNw8sNesJQlTVCddDT0Vb2bCLnrY2+tM4xzQuXYdm2H5Pd0d3muOT2MZyeku5JVV3Ao7OM7OjVj8x5DESXRrJpaltpSqQsuizURoiuOZYa/aw96zOEpxlKL3ZJ6Gk9NOjwnfwvG/auXrdyMoxai9Ka0ptcvT4CZPpR7Nhbv4YlrbJlKspWtpmQ6qvI8lLJKm4jbRV2WP9Cb7kKhIorpda2akpWfkFdxK/HXNcJYpY7JPdrul2m7b54vSuqj3eojOILDwuZ99DQppTXTqfhVesrr9LLjjPoOdm2mr+IbzfGiPnFCUqYx0d+KrC7l4NSyUN9PCIrDHm7WQ26RqSaUpNHUlEoq3wplkrWf3lcWjC7y0/Sb3U+uO8yZz7GqeU2tx6b+6+pLefY6E9OP3Kj409TzlBq5yeh7HJmJVOGYklDpqbReaNffauoSEKcNC3pNnlORPqW2RfzcdKTJXTuFgy/Nu/wCKcVhG62txRj02ta7ZT7CJxmA7rIrGIp5+82+ierwKPaV9VXFbt9YV/XqqhfwfX7Jk786Gskwm8b93FsyvQgjNtb1ajMJDFR4aSX9LqhXVBLWK7DKf/wBn7vu/yFc77mpTfXVv0j/gTEsw/wDzfe1/muHd9dd3t3dJIX1xdzeUodRaCrJna/cTZu0MsjMzPDdTXVaZWO4gxLiN/TkQrGwlWjxeIZNk9XoUSVKSRtyHHeN3bdnL4PTJuctPItEarY3vPpj2cfCuGrO5jJLQlurpel9ip2mdAZsXQAAAAAAAAAAAAAAAAC8L0M/8bd0fqsgfnbWC98B/3t/7pfxFV4q/tbX3j8R431vv4rtff9vWKf8AUjbI8OOv1e3/AONH+O4evC36fP75/wAMCnmFNm1k2JY10uVX2FfKjzYE+FIdizYU2K6h+LLiSmFtvxpUZ9tK23EKStC0kZGRkKZGUoSUotqSdU1rT2osjSknGSrF60bA+AfKrHeaGimqXPk11ltHATo67Y9LLQylVxIq5UewxbYcGM0TSW0Wk2rbkKUylvydtGc7CQgmFK2bh7Nred4Dcv0eKt0U1tppjNdNK80k+YzfN8vnlmL3rVVYnVxeyuuPVWnOn0nPvWX/AINnP1p4N/oL4c3Gn6I/vYfKe/DX6n/ty+Qgb6JW+qbGc02NoDIZ0WC7sJuBmOCqkLaY89kWPRJMTIqRpxayVJnWFCpmUw0RexuufPr1MiFf4GzCFq9dy640ncpKHO0qSXS1RroZLcUYSU7cMZBN7nmy5k9T7arrR8T1ZeFWx6/cVxyK1xid1l2C5/Er5eaFj8J+1m4fltbCi1EmRPrYbTs1uhvYUNiQiWlLjTcvx0PG0RseL8cX5HiVjXmWFhKdi4lvUVXGSVNKWmjVHXbWtNFfrh7NLDwywV+Sjdg/Nroqnp17U+TZTnKvdD8ZNz8jcwrcR1nhdxYlLnph2mTya+fHxHF2EOITNn5Jf+WXCr2ILa+5TXVUl1XRtptx1SUKquX5VjsyvKzhoSabo5NPdjtbepU2a9iqT2Lx+FwVt3L8ktGhV0voX7I1Pcnc0wzg/wAE5mI1tk2mdVazj6b1szJUhNlkGVWGPOUaLfy3iEbrsVJyLeZ29EJS0si6dySPWM0v2MiyF2ovzo2u7htcmqV8cmUHA2rua5qrkloc9+WxKtafIjHIMWNKAAADajsX/wDnJnf/AGT5P/0KnDcMV/8Azdz/AMGX/wBTMwsfrUP/ACl/9hiuGHmngAABf16Ef9ouSv8AuXVv+3Z4NC4B/qYr6tvxzKhxZ6Fjpn/0kQfV9/jbzP8Aubr382owh+Mv1yf3cPESPDn6XH60vGQE1Nn03Ve0ddbLr0uuzMAzfF8wZjsu+CqX8PXUK1cgqX+L4U9qKplxKuqFIWaVEaTMhXsHiJYTF2sVHXbuRl00adOvUTGJsrEYedh6pwa7VTwGubmjqODzj4cOFqedAyKwsI+Obb1RKN1DUe4sYMKSpquJ155hqBYXGPXE6AkpBoTGlvkl7s7VmnYc7wcc9yamEalJqNy29rXJzNptadTekzrLMS8qzL/kJqKrCfMv8GkzIneau2VjOUJwnIdf5pS5i5Ifis4vZYzcxL+TIjGvx24lU9DTNlm2SDMzbQsu0uvXp7RjtzCYq1d7i5buRvV9FxdXTYqaeo0WGIsXLfewnB2tqap2l4XCf0lMczfVk3PeV1Tm+J3d/Nak4liMO3Ti9tRYvFjLNyxyuFLrJEmBZW8l01JivdjkaOwhTiUrdUhF7yPhC1fwjxGbxnC5J+bGu61HbJU0N7HqS2sq2acRTtYhWcvcZQitLpVN82nUtvKymPkBB1TVbm2JU6PesZeqqjIX6fDrC1sW7eVawKphivlXSbJpphEuDdWcZ+XFUSE/6q82Rl1IUnMY4OGOuQwFXhIypFt1qlobrypurXNQs2DeIlhYSxdFiHGrSVKV00pzLQ+cvL9D/efm6faPHa3mGp+ofb2hhjLz3eo62eqFQ5jCjNqaLwWINiVdISgnFEpya8skJ6LUq+cC4/et3ctm9MXvx6Hokup0fWyqcU4Sk7eNitD82XStK7VVdRabQ4XrbhPpve+cQmyaoTyja2+chQRJbcem3Lj9nCx+EajJS/Agw4dbDQZ9VLJJfhUZnbLdnC5Jg79+Oi3vXLsul6aLqSSICd2/meJtWn6e7C2urRXxtmKvM8sus9y/Kc4yN8pV/mGQ3OT3UhPidjtpe2EiznrbJ5151LRyZKuxKlqNKehdT6DD796eIvTxF3TcnJyfS3Vmn2rcbNqNqHoRikuhKhdx6Fn+JO/f7j4h/wA+sheuAv7nEfUj42Vbiv8Ao2frS8SI8+sl/GZN/Vlgn+a3Ebxr+tf7UflO3hn9N/3JfIXc8E9iYnyr4L4/hFrOTPl1mup+g9l1jjpvWEZELHHMTZfmdykPPlkGIvR5aXuvRxbziDWbjbnS9ZBibObZDGzN1atu1NcuhbunpjR9ZVs2s3MvzWVyKonPvIvrr4HoMuPIHjHuDjbmd7iexsQu4UGssX41TmKKqb8JZRXeOtuvuKS7Jtde+xYsklfg+L47CzNp1KHUqSWVZjlWNyy/K1iYSUU9EqPdkuRp6tOzWtT0l9wePw2OtK5Zkt5rTGulPlTWsm36f3pwZPyIyublO7cVzTDNK09ZLJqU+1KxS6zPIJTRNVsTHDtK5b8inriWuRKmttmz4jSGEqUpbhNznDvDN3Mbzu4+E4YGK54uT5KVWpa29XJtpFZxndvB21bwsoyxTfSorlrR63qS69hzT1HtHcdOOe18d1PoqRkky6p6B202Y5e5Cxfor7K6VDfxujb8GHDVBsYtQ0uXIQoj7mZ8c+vsMhzcTYDLMtxccJgN7vIxrOrrRum6uZ00vmaPfJMVjcbh5YjF03G6RoqVprfRXR1M7T6Mu5kYDyXt9ZWUtqNTbqxR6sjJc8VJOZjhpS8gx0jdI/AbJymdt2Ek4RG48+2lCiUZIc7eCcasPmcsLJ0hfhT/AFRq14N7rp18vE2G77Aq/H0rUv3ZaH4d00E2GI4PxmRyx5KmiO29mkKLsnJ0JjEg/A1trpmthVhONJKRJXYWkabJSgjPrIsF9v0lmNElZw+WLF5norNb8v8ARCiXam+llPVy7jvd8FyRe6v9Uq18S6jIrxk3XY615Was3Xf2aVvx9nRbXM7eWpMcnajLpsiqzqe8pjwGWVvUd7NWfQiaJR+1PZ1SMeyrHSw2b2sddenvayb2SdJPsbNFx+Fjfy+5hYLR3dIrnjpiu1I2Sx9J4w1yDn8iENM/FM/UlfqjvQnqaqqNlczKXpRn+J4z61x2u8uq1NspSZ9qUkNpWBtLMHmK/rOyrfVvOXk7DNXirnuawf8A7aub/XShkG587qXvjldtrMWJXmcfqr53BsP7DbVHLGMKUujiSoq2+prj3c2NIsiNSlK7ppl7CIkpxviHHe/5vevJ1txluR+rHR4XWXWaNk+F90y+3bfptbz6ZafAqLqIciFJMAAAAAAAAAAAAAAAACcPBnmZ+5fm2aZj9m/2k/F+Kx8Z93fGHwd7u8C3i2nnfOfC2Veb7vLeH4fhNdO7u7/Z0OeyHO/yS/cvd13u/DdpvbtNNa+jKpFZrln5najb39zdlWtN6uim1Hxub/LX98ra+P7P+z/7OPcWvKnA/cfxV8X+a915JlmQ+9fefw3i/geP8UeD4Hl19vgd/iH39qPPPc4/OsXHFd33W7bUKb29qlJ1rux+lqpyaz7yrLvyzDuxv79ZuVaU1pKlKvYQ3EKSRILjFyNzbi1t3HtrYUZTFQFHX5Ljb8lUWvy/FJjrKrjHJz6WZPlfNIZS5Hk+E6cSW008SF9nYqRyrM7+U4yOLsaaaJR5JR5U/kfI6PTqOPH4K1j8M8Pd0V0p8qfI/KuVaCcnMv1RP3uNNK1J9hv2fd2VUWTfEH2mfFfT3KiejyXur7Psa/8AyfPdfE8z9Dt/EV19k9nXFf5xgvc+47vz1Ku/vauSm5HxkVlmQ/l2J9473f8ANapu018+8/EVV01zbY7bVt9Q2U6mu6adFs6m2rJT0GxrbGC8iRDnQZkdbb8WVFfbStC0KJSVERkYqdu5O1NXLbcbkXVNaGmuVE/KMZxcJpODVGnqaL0dC+tvleO0ldj3ILWys9kwY6WHM/wqfAo7+xJrw0oeuMUlxWaGXYPJNRuPxJVeyZkRFHLqaivuX8c3bcFbzG13jS9OLSb6Y6q86aXMVTF8LQnNzwc9xP5stKXQ9fan0ncMw9c/V0aqeVgGj8+ubs0EmO1mF3j2M1Ta1K7TdekUr2Wy3kNIPu7EtNm4Zdvejr3l3XuPMIof8exclc/zOMV4N5+A5bfCmIcv512ChzJt+GhR3yW5U7e5WZqWYbRum3Y8An2MYxKpQ7DxXEoMg2jejUtc48+4b8s2UKkSn3HpUhSUktzsQ2hFEzTN8Zm9/vsVLzV6MV6MVzLxt6X2FpwOX4bL7Xd2FpetvW+n5FqI4CMO4AAALqcj9YH3/wAcr3j/APu8eU996TtNO/Fv2teP5b3lgj+FfEXuH7MmfG8HxvM+T86ju6eH45f0gvF3jPvctll/u1N6w7e93m2O7Wm510rzVKxDhvcxqxnfVpdU6bmyW9Su91Vp1FKwo5ZwAAAn7wR5y/uUWOyrD7LvtM+0OFi0Pwvjb4M9z/DT9894nifCOV+8PO+++nTtY8PwuvVXd9Gw5Bn35HK7Luu97xR+du03a/5ZVrXmIjNsq/NIwXebm4383erWnOthyDl9yP8A3rN3XO4/g34C9702PVHw58RfFHl/cNa1XeY97+4sd8Xzfh9/Z5VPh9encr8I485zP83xzxu53dYpUrvalTXSPiOjLcF+X4VYbe36NutKa+ar8ZGERR3lg/Df1FtvcQ40jFYtfE2PqyZLdsFYDfWcmsXTT5BqXLl4lftRrFyg94PGS5LKosqK651cJpDq3HFWPJeJcZk6dlJXcI3XcbpR/wCV6aV5VRrlpWpDZnkuHzF943uYhfOSrXpWitOTSn1FtEX1ytErgE5O07tuPaeEozhxX8OmQPHJHVDZWT17BkG0pz2GvynUk+3tM/oi3rjzL92srN7e/wBNO2q8RXnwri66Llvd/wBXk+Ur/wCWPq27a33jtpr3WuPp03gVw1Ig3smNcLuc4ySqfbNl2uk3bcOti0NZOaUfmGIbSnlpPwzkqaNaHK9m/GGLzC28NhY9zh5aG61m1sroST5UtPPQmMv4dw+Emr1997dWrRSKfRyvp7CpAU4sRILi5yBu+MG7sO3LS1asgPG12ce1xo7RVMzklJcVcursKiRZFAtSipWiUl5tw4z5NSGW19hmkhI5TmM8qx0MbBb27Wsa03k1RqtH06npRx4/Bxx+FlhpOm9SjpWjTrWlV4yeHMH1W7zlNpex03U6eLWEK+vKOfkdz9ozuXrtKWkkLtG6JFe3hOJJjeYu48OQp5bzySRGNHhGaycbsGc8XXM1wLwULPdRlJOT396qWmlN2PLR1q9VKETlvD8MBiliZXe8cU6LdpRvRX0nyV7dZUaKcWIndwV5sfuV5Ln+Q/Zn9pXxzR09N5P4z+DfdfuqfJneZ8x8KZV53zHmO3s7Gezp17j69Cn8gzz8juXLndd73kUvS3aUbf0ZV8BE5tlf5pCEO83Nxt+jvVr1o57zJ5Ofvbbmf278EfZ/42MUWOfD3xL8V9vuQpZec97e4Mb6+Z81/R+WLs7fxldfZz51mv5xjffO77vzFGm9vaq6a0jt2HtlmA/LsN7vv7/nN1pTXzVfjPN8auT+1uKufJzzV1s00qWwiBkuMWqHpeMZbVIWpxuDeV7T8da3Ijq1LjSWltSYy1K8NZIcdQ55ZXmuLynEe8YV69Eov0ZLY1zcj1rrdfvHYDD5hZ7q+tWprWnzfKtT7C8vD/XP1dJqmVZ/o/Pqa7JBpkNYfd49k1U4tKu0nWZF09iUtlDqC7uxTThtmfb3r6d53yzx5hHD/kWLkbn+VxkvDuvwFVucKYhS/k3YOHOmn4KnHd6et5fXdJYUXH/V7uHz50d6OznWe2EG2tKsnTNspNXiVay9UIsWmvptuSpsthLh9FMOJT9Ljx/HU523by61uSfzptNroitFeltczOnCcLRjNTxlzeS+bHQn0t6exLpKKMjyO+y++t8oyi3sL/Ir+wk2t1dWsl2ZY2djMdU9Jly5LylOOvOuKMzMz9n4C6EREKDdu3L1yV27JyuydW3rbLXCELUFbtpRhFUSWpI+1rfObjWOwcJ2Nj6zTd4LlVDllYXirZQ7LobONZNRnlt9VeWlnH8J0uhkptakmRkZkf3hcRPCYm3ibfp25qS6nWnXqPm/ajfszsT9GcWn1qha5yn9XO15H6OzHTFVpE9cfGnueNZZOjZ6sodbqq26gXMyuaq06+xrqVt7vTHcWckiJha0mlXd7LdmvGM8ywE8FCx3XeUTlv72hNNqm5HXSmvUV/AcOxwWKjiZXd/dro3aaaUrXeerXqKbxSiyl4kf1rcui6YY1y1pJBZzH1o1hbezT2es0lkzOMpo0ZueKlr4lGv3ikp3kfef43834/T6Yvi45vLBe7qx/PVrd39/527Te3dzbppvc1Sqvhe28T33e/yt/e3d3krXdrvbNFadRR2KGWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/9k=\\\",ze=\\\"rgba(24,24,27,.9)\\\",Ve={ColorPalette:{version:112,id:\\\"obsidian\\\",name:\\\"Obsidian\\\",colors:{node_slot:{CLIP:\\\"#FFD500\\\",CLIP_VISION:\\\"#A8DADC\\\",CLIP_VISION_OUTPUT:\\\"#ad7452\\\",CONDITIONING:\\\"#FFA931\\\",CONTROL_NET:\\\"#6EE7B7\\\",IMAGE:\\\"#64B5F6\\\",LATENT:\\\"#FF9CF9\\\",MASK:\\\"#81C784\\\",MODEL:\\\"#B39DDB\\\",STYLE_MODEL:\\\"#C2FFAE\\\",VAE:\\\"#FF6E6E\\\",TAESD:\\\"#DCC274\\\",PIPE_LINE:\\\"#7737AA\\\",PIPE_LINE_SDXL:\\\"#7737AA\\\",INT:\\\"#29699C\\\",X_Y:\\\"#38291f\\\",XYPLOT:\\\"#74DA5D\\\",LORA_STACK:\\\"#94dccd\\\",CONTROL_NET_STACK:\\\"#94dccd\\\",FAST_MODEL_LOADER:\\\"#ffd399\\\",SAMPLING:\\\"#60a5fa\\\"},litegraph_base:{BACKGROUND_IMAGE:\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQBJREFUeNrs1rEKwjAUhlETUkj3vP9rdmr1Ysammk2w5wdxuLgcMHyptfawuZX4pJSWZTnfnu/lnIe/jNNxHHGNn//HNbbv+4dr6V+11uF527arU7+u63qfa/bnmh8sWLBgwYJlqRf8MEptXPBXJXa37BSl3ixYsGDBMliwFLyCV/DeLIMFCxYsWLBMwSt4Be/NggXLYMGCBUvBK3iNruC9WbBgwYJlsGApeAWv4L1ZBgsWLFiwYJmCV/AK3psFC5bBggULloJX8BpdwXuzYMGCBctgwVLwCl7Be7MMFixYsGDBsu8FH1FaSmExVfAxBa/gvVmwYMGCZbBg/W4vAQYA5tRF9QYlv/QAAAAASUVORK5CYII=\\\",CLEAR_BACKGROUND_COLOR:\\\"#222222\\\",NODE_TITLE_COLOR:\\\"#d4d4d8\\\",NODE_SELECTED_TITLE_COLOR:\\\"#ffffff\\\",NODE_TEXT_SIZE:14,NODE_TEXT_COLOR:\\\"#ffffff\\\",NODE_SUBTEXT_SIZE:12,NODE_DEFAULT_COLOR:\\\"#09090b\\\",NODE_DEFAULT_BGCOLOR:\\\"rgba(24,24,27,.9)\\\",NODE_DEFAULT_BOXCOLOR:\\\"rgba(255,255,255,.75)\\\",NODE_DEFAULT_SHAPE:2,NODE_BOX_OUTLINE_COLOR:\\\"#60a5fa\\\",NODE_BYPASS_BGCOLOR:\\\"#FF00FF\\\",NODE_ERROR_COLOUR:\\\"#E00\\\",DEFAULT_SHADOW_COLOR:\\\"rgba(0,0,0,0)\\\",DEFAULT_GROUP_FONT:24,WIDGET_BGCOLOR:\\\"#242427\\\",WIDGET_OUTLINE_COLOR:\\\"#3f3f46\\\",WIDGET_TEXT_COLOR:\\\"#d4d4d8\\\",WIDGET_SECONDARY_TEXT_COLOR:\\\"#d4d4d8\\\",LINK_COLOR:\\\"#9A9\\\",EVENT_LINK_COLOR:\\\"#A86\\\",CONNECTING_LINK_COLOR:\\\"#AFA\\\"},comfy_base:{\\\"fg-color\\\":\\\"#fff\\\",\\\"bg-color\\\":\\\"#09090b\\\",\\\"comfy-menu-bg\\\":\\\"rgba(24,24,24,.9)\\\",\\\"comfy-input-bg\\\":\\\"#262626\\\",\\\"input-text\\\":\\\"#ddd\\\",\\\"descrip-text\\\":\\\"#999\\\",\\\"drag-text\\\":\\\"#ccc\\\",\\\"error-text\\\":\\\"#ff4444\\\",\\\"border-color\\\":\\\"#29292c\\\",\\\"tr-even-bg-color\\\":\\\"rgba(28,28,28,.9)\\\",\\\"tr-odd-bg-color\\\":\\\"rgba(19,19,19,.9)\\\"}}},NODE_COLORS:{red:{color:\\\"#af3535\\\",bgcolor:ze,groupcolor:\\\"#A88\\\"},brown:{color:\\\"#38291f\\\",bgcolor:ze,groupcolor:\\\"#b06634\\\"},green:{color:\\\"#346434\\\",bgcolor:ze,groupcolor:\\\"#8A8\\\"},blue:{color:\\\"#1f1f48\\\",bgcolor:ze,groupcolor:\\\"#88A\\\"},pale_blue:{color:\\\"#006691\\\",bgcolor:ze,groupcolor:\\\"#3f789e\\\"},cyan:{color:\\\"#008181\\\",bgcolor:ze,groupcolor:\\\"#8AA\\\"},purple:{color:\\\"#422342\\\",bgcolor:ze,groupcolor:\\\"#a1309b\\\"},yellow:{color:\\\"#c09430\\\",bgcolor:ze,groupcolor:\\\"#b58b2a\\\"},black:{color:\\\"rgba(0,0,0,.8)\\\",bgcolor:ze,groupcolor:\\\"#444\\\"}}};let je=JSON.parse(JSON.stringify(Ve));delete je.NODE_COLORS,je.ColorPalette.id=\\\"obsidian_dark\\\",je.ColorPalette.name=\\\"Obsidian Dark\\\",je.ColorPalette.colors.litegraph_base.BACKGROUND_IMAGE=\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGlmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4xLWMwMDEgNzkuMTQ2Mjg5OSwgMjAyMy8wNi8yNS0yMDowMTo1NSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDI1LjEgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAyMy0xMS0xM1QwMDoxODowMiswMTowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmIyYzRhNjA5LWJmYTctYTg0MC1iOGFlLTk3MzE2ZjM1ZGIyNyIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjk0ZmNlZGU4LTE1MTctZmQ0MC04ZGU3LWYzOTgxM2E3ODk5ZiIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjIzMWIxMGIwLWI0ZmItMDI0ZS1iMTJlLTMwNTMwM2NkMDdjOCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjMxYjEwYjAtYjRmYi0wMjRlLWIxMmUtMzA1MzAzY2QwN2M4IiBzdEV2dDp3aGVuPSIyMDIzLTExLTEzVDAwOjE4OjAyKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoV2luZG93cykiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjQ4OWY1NzlmLTJkNjUtZWQ0Zi04OTg0LTA4NGE2MGE1ZTMzNSIgc3RFdnQ6d2hlbj0iMjAyMy0xMS0xNVQwMjowNDo1OSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDI1LjEgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpiMmM0YTYwOS1iZmE3LWE4NDAtYjhhZS05NzMxNmYzNWRiMjciIHN0RXZ0OndoZW49IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyNS4xIChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4OTe6GAAAAx0lEQVR42u3WMQoAIQxFwRzJys77X8vSLiRgITif7bYbgrwYc/mKXyBoY4VVBgsWLFiwYFmOlTv+9jfDOjHmr8u6eVkGCxYsWLBgmc5S8ApewXvgYRksWLBgKXidpeBdloL3wMOCBctgwVLwCl7BuyyDBQsWLFiwTGcpeAWv4D3wsAwWLFiwFLzOUvAuS8F74GHBgmWwYCl4Ba/gXZbBggULFixYprMUvIJX8B54WAYLFixYCl5nKXiXpeA98LBgwTJYsGC9tg1o8f4TTtqzNQAAAABJRU5ErkJggg==\\\",je.ColorPalette.colors.litegraph_base.CLEAR_BACKGROUND_COLOR=\\\"#09090b\\\";const Ue=\\\"#FFFFFF\\\",We={ColorPalette:{id:\\\"milk_white\\\",name:\\\"Milk White\\\",colors:{node_slot:{CLIP:\\\"#FFA726\\\",CLIP_VISION:\\\"#5C6BC0\\\",CLIP_VISION_OUTPUT:\\\"#8D6E63\\\",CONDITIONING:\\\"#EF5350\\\",CONTROL_NET:\\\"#66BB6A\\\",IMAGE:\\\"#42A5F5\\\",LATENT:\\\"#AB47BC\\\",MASK:\\\"#9CCC65\\\",MODEL:\\\"#7E57C2\\\",STYLE_MODEL:\\\"#D4E157\\\",VAE:\\\"#FF7043\\\",PIPE_LINE:\\\"#7737AA\\\",PIPE_LINE_SDXL:\\\"#7737AA\\\",INT:\\\"#29699C\\\",X_Y:\\\"#38291f\\\",XYPLOT:\\\"#74DA5D\\\",LORA_STACK:\\\"#94dccd\\\",CONTROL_NET_STACK:\\\"#94dccd\\\",FAST_MODEL_LOADER:\\\"#ffd399\\\",SAMPLING:\\\"#60a5fa\\\"},litegraph_base:{BACKGROUND_IMAGE:\\\"data:image/gif;base64,R0lGODlhZABkALMAAAAAAP///+vr6+rq6ujo6Ofn5+bm5uXl5d3d3f///wAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAkALAAAAABkAGQAAAT/UMhJq7046827HkcoHkYxjgZhnGG6si5LqnIM0/fL4qwwIMAg0CAsEovBIxKhRDaNy2GUOX0KfVFrssrNdpdaqTeKBX+dZ+jYvEaTf+y4W66mC8PUdrE879f9d2mBeoNLfH+IhYBbhIx2jkiHiomQlGKPl4uZe3CaeZifnnijgkESBqipqqusra6vsLGys62SlZO4t7qbuby7CLa+wqGWxL3Gv3jByMOkjc2lw8vOoNSi0czAncXW3Njdx9Pf48/Z4Kbbx+fQ5evZ4u3k1fKR6cn03vHlp7T9/v8A/8Gbp4+gwXoFryXMB2qgwoMMHyKEqA5fxX322FG8tzBcRnMW/zlulPbRncmQGidKjMjyYsOSKEF2FBlJQMCbOHP6c9iSZs+UnGYCdbnSo1CZI5F64kn0p1KnTH02nSoV3dGTV7FFHVqVq1dtWcMmVQZTbNGu72zqXMuW7danVL+6e4t1bEy6MeueBYLXrNO5Ze36jQtWsOG97wIj1vt3St/DjTEORss4nNq2mDP3e7w4r1bFkSET5hy6s2TRlD2/mSxXtSHQhCunXo26NevCpmvD/UU6tuullzULH76q92zdZG/Ltv1a+W+osI/nRmyc+fRi1Xdbh+68+0vv10dH3+77KD/i6IdnX669/frn5Zsjh4/2PXju8+8bzc9/6fj27LFnX11/+IUnXWl7BJfegm79FyB9JOl3oHgSklefgxAC+FmFGpqHIYcCfkhgfCohSKKJVo044YUMttggiBkmp6KFXw1oII24oYhjiDByaKOOHcp3Y5BD/njikSkO+eBREQAAOw==\\\",CLEAR_BACKGROUND_COLOR:\\\"lightgray\\\",NODE_TITLE_COLOR:\\\"#222\\\",NODE_SELECTED_TITLE_COLOR:\\\"#000\\\",NODE_TEXT_SIZE:14,NODE_TEXT_COLOR:\\\"#444\\\",NODE_SUBTEXT_SIZE:12,NODE_DEFAULT_COLOR:\\\"#F7F7F7\\\",NODE_DEFAULT_BGCOLOR:\\\"#F5F5F5\\\",NODE_DEFAULT_BOXCOLOR:\\\"#555\\\",NODE_DEFAULT_SHAPE:2,NODE_BOX_OUTLINE_COLOR:\\\"#000\\\",DEFAULT_SHADOW_COLOR:\\\"rgba(0,0,0,0.1)\\\",DEFAULT_GROUP_FONT:24,WIDGET_BGCOLOR:\\\"#D4D4D4\\\",WIDGET_OUTLINE_COLOR:\\\"#999\\\",WIDGET_TEXT_COLOR:\\\"#222\\\",WIDGET_SECONDARY_TEXT_COLOR:\\\"#555\\\",LINK_COLOR:\\\"#9A9\\\",EVENT_LINK_COLOR:\\\"#FF9800\\\",CONNECTING_LINK_COLOR:\\\"#222\\\"},comfy_base:{\\\"fg-color\\\":\\\"#222\\\",\\\"bg-color\\\":\\\"#DDD\\\",\\\"comfy-menu-bg\\\":\\\"#F5F5F5\\\",\\\"comfy-input-bg\\\":\\\"#C9C9C9\\\",\\\"input-text\\\":\\\"#222\\\",\\\"descrip-text\\\":\\\"#444\\\",\\\"drag-text\\\":\\\"#555\\\",\\\"error-text\\\":\\\"#F44336\\\",\\\"border-color\\\":\\\"#bbb\\\",\\\"tr-even-bg-color\\\":\\\"#f9f9f9\\\",\\\"tr-odd-bg-color\\\":\\\"#fff\\\",\\\"content-bg\\\":\\\"#e0e0e0\\\",\\\"content-fg\\\":\\\"#222\\\",\\\"content-hover-bg\\\":\\\"#adadad\\\",\\\"content-hover-fg\\\":\\\"#222\\\"}}},NODE_COLORS:{red:{color:\\\"#af3535\\\",bgcolor:Ue,groupcolor:\\\"#A88\\\"},brown:{color:\\\"#38291f\\\",bgcolor:Ue,groupcolor:\\\"#b06634\\\"},green:{color:\\\"#346434\\\",bgcolor:Ue,groupcolor:\\\"#8A8\\\"},blue:{color:\\\"#1f1f48\\\",bgcolor:Ue,groupcolor:\\\"#88A\\\"},pale_blue:{color:\\\"#006691\\\",bgcolor:Ue,groupcolor:\\\"#3f789e\\\"},cyan:{color:\\\"#008181\\\",bgcolor:Ue,groupcolor:\\\"#8AA\\\"},purple:{color:\\\"#422342\\\",bgcolor:Ue,groupcolor:\\\"#a1309b\\\"},yellow:{color:\\\"#c09430\\\",bgcolor:Ue,groupcolor:\\\"#b58b2a\\\"},black:{color:\\\"rgba(0,0,0,.8)\\\",bgcolor:Ue,groupcolor:\\\"#444\\\"}}},Fe={addGroup:{id:\\\"EasyUse.Hotkeys.AddGroup\\\",name:\\\"Enable Shift+g to add selected nodes to a group\\\",tooltip:\\\"After v1.2.39, Ctrl+g can be used instead of it\\\",type:\\\"boolean\\\",defaultValue:!0},cleanVRAMUsed:{id:\\\"EasyUse.Hotkeys.cleanVRAMUsed\\\",name:\\\"Enable Shift+r to unload models and node cache\\\",type:\\\"boolean\\\",defaultValue:!0},toggleSiteMap:{id:\\\"EasyUse.Hotkeys.toggleNodesMap\\\",name:\\\"Enable Shift+m to toggle nodes map\\\",type:\\\"boolean\\\",defaultValue:!0},alignSelectedNodes:{id:\\\"EasyUse.Hotkeys.AlignSelectedNodes\\\",name:\\\"Enable Shift+Up/Down/Left/Right key and Shift+Ctrl+Alt+Left/Right to align selected nodes\\\",tooltip:\\\"Shift+Up/Down/Left/Right can align selected nodes, Shift+Ctrl+Alt+Left/Right can distribute horizontal/vertical nodes\\\",type:\\\"boolean\\\",defaultValue:!0},NormalizeSelectedNodes:{id:\\\"EasyUse.Hotkeys.NormalizeSelectedNodes\\\",name:\\\"Enable Shift+Ctrl+Left/Right key to normalize selected nodes\\\",tooltip:\\\"Enable Shift+Ctrl+Left key to normalize width and Shift+Ctrl+Right key to normalize height\\\",type:\\\"boolean\\\",defaultValue:!0},nodesTemplate:{id:\\\"EasyUse.Hotkeys.NodesTemplate\\\",name:\\\"Enable Alt+1~9 to paste nodes from nodes template\\\",type:\\\"boolean\\\",defaultValue:!0},jumpNearestNodes:{id:\\\"EasyUse.Hotkeys.JumpNearestNodes\\\",name:\\\"Enable Up/Down/Left/Right key to jump nearest nodes\\\",type:\\\"boolean\\\",defaultValue:!0},subDirectories:{id:\\\"EasyUse.ContextMenu.SubDirectories\\\",name:\\\"Enable contextMenu auto nest subdirectories\\\",type:\\\"boolean\\\",defaultValue:!1},modelsThumbnails:{id:\\\"EasyUse.ContextMenu.ModelsThumbnails\\\",name:\\\"Enable model thumbnails display\\\",type:\\\"boolean\\\",defaultValue:!1},rightMenuNodesSort:{id:\\\"EasyUse.ContextMenu.NodesSort\\\",name:\\\"Enable right-click menu to add node A~Z sorting\\\",type:\\\"boolean\\\",defaultValue:!0},quickOptions:{id:\\\"EasyUse.ContextMenu.QuickOptions\\\",name:\\\"Use three shortcut buttons in the right-click menu\\\",type:\\\"combo\\\",options:[\\\"At the forefront\\\",\\\"At the end\\\",\\\"Disable\\\"],defaultValue:\\\"At the forefront\\\"},nodesRuntime:{id:\\\"EasyUse.Nodes.Runtime\\\",name:\\\"Enable nodes runtime display\\\",type:\\\"boolean\\\",defaultValue:!0},chainGetSet:{id:\\\"EasyUse.Nodes.ChainGetSet\\\",name:\\\"Enable chain get node and set node with parent nodes\\\",type:\\\"boolean\\\",defaultValue:!0},nodesMap:{id:\\\"EasyUse.NodesMap.Sorting\\\",name:\\\"Nodes map sorting mode\\\",tooltip:\\\"Default automatic sorting, if set to manual, groups can be dragged and dropped and the sorting results saved.\\\",type:\\\"combo\\\",options:[\\\"Auto sorting\\\",\\\"Manual drag\\u0026drop sorting\\\"],defaultValue:\\\"Auto sorting\\\"},displayNodesID:{id:\\\"EasyUse.NodesMap.DisplayNodeID\\\",name:\\\"Display Node ID\\\",type:\\\"boolean\\\",defaultValue:!0},onlyDisplayGroup:{id:\\\"EasyUse.NodesMap.DisplayGroupOnly\\\",name:\\\"Display Groups Only\\\",type:\\\"boolean\\\",defaultValue:!1},enableNodesMap:{id:\\\"EasyUse.NodesMap.Enable\\\",name:\\\"Enable Nodes Map\\\",tooltip:\\\"You need to refresh the page to update successfully\\\",type:\\\"boolean\\\",defaultValue:!0},stylesSelectorDisplay:{id:\\\"EasyUse.StylesSelector.DisplayType\\\",name:\\\"Styles Selector Display Type\\\",tooltip:\\\"Styles Selector Display Type, if set to 'Grid', it will display as a Grid, if set to 'List', it will display as a list\\\",type:\\\"combo\\\",options:[\\\"Grid\\\",\\\"List\\\"],defaultValue:\\\"Grid\\\"},enableAddAnglePrompt:{id:\\\"EasyUse.MultiAngle.AddAnglePrompt\\\",name:\\\"Add angle prompt in easy multiAngle\\\",type:\\\"boolean\\\",defaultValue:!1},enableHollowMode:{id:\\\"EasyUse.MultiAngle.HollowMode\\\",name:\\\"Enable hollow display mode in easy multiAngle\\\",type:\\\"boolean\\\",defaultValue:!1},enableInvertRotate:{id:\\\"EasyUse.MultiAngle.InvertRotate\\\",name:\\\"Invert rotate mode in easy multiAngle\\\",tooltip:\\\"Enable invert rotate mode in easy multiAngle to match the rotation direction of most 3D software\\\",type:\\\"boolean\\\",defaultValue:!1}};function Xe(e=100,t){return new Promise((i=\\u003e{setTimeout((()=\\u003e{i(t)}),e)}))}function Ze(e,t){if(e=\\\"number\\\"==typeof e?e:e instanceof Date?e.getTime():parseInt(e),isNaN(e))return null;let i=new Date(e);(e=i.toString().split(/[\\\\s\\\\:]/g).slice(0,-2))[1]=[\\\"01\\\",\\\"02\\\",\\\"03\\\",\\\"04\\\",\\\"05\\\",\\\"06\\\",\\\"07\\\",\\\"08\\\",\\\"09\\\",\\\"10\\\",\\\"11\\\",\\\"12\\\"][i.getMonth()];let s={MM:1,dd:2,yyyy:3,hh:4,mm:5,ss:6};return t.replace(/([Mmdhs]|y{2})\\\\1/g,(t=\\u003ee[s[t]]))}const He=/Mac|iPod|iPhone|iPad/.test(navigator.platform),qe=e=\\u003eHe?e.replace(/Ctrl/g,\\\"⌘\\\").replace(/Alt/g,\\\"⌥\\\").replace(/Shift/g,\\\"⇧\\\"):e;const Ye=new class{constructor(){v(this,\\\"element\\\",ve(`div.${Ce}toast`)),v(this,\\\"children\\\",HTMLElement),v(this,\\\"container\\\",document.body),v(this,\\\"info_icon\\\",`mdi mdi-information ${Ce}theme`),v(this,\\\"success_icon\\\",`mdi mdi-check-circle ${Ce}success`),v(this,\\\"error_icon\\\",`mdi mdi-close-circle ${Ce}error`),v(this,\\\"warn_icon\\\",`mdi mdi-alert-circle ${Ce}warning`),v(this,\\\"loading_icon\\\",\\\"mdi mdi-rotate-right loading\\\"),this.container.appendChild(this.element)}async show(e){let t=ve(`div.${Ce}toast-container`,[ve(\\\"div\\\",[ve(\\\"span\\\",[...e.icon?[ve(\\\"i\\\",{className:e.icon})]:[],ve(\\\"span\\\",e.content)])])]);t.setAttribute(\\\"toast-id\\\",e.id),this.element.replaceChildren(t),this.container.appendChild(this.element),await Xe(64),t.style.marginTop=`-${t.offsetHeight}px`,await Xe(64),t.classList.add(\\\"show\\\"),e.duration\\u0026\\u0026(await Xe(e.duration),this.hide(e.id))}async hide(e){const t=document.querySelector(`.${Ce}toast \\u003e [toast-id=\\\"${e}\\\"]`);(null==t?void 0:t.classList.contains(\\\"show\\\"))\\u0026\\u0026(t.classList.remove(\\\"show\\\"),await Xe(750)),t\\u0026\\u0026t.remove()}async clearAllMessages(){let e=document.querySelector(`.${Ce}container`);e\\u0026\\u0026(e.innerHTML=\\\"\\\")}async info(e,t=3e3,i=[]){this.show({id:\\\"toast-info\\\",icon:this.info_icon,content:e,duration:t})}async success(e,t=3e3){this.show({id:\\\"toast-success\\\",icon:this.success_icon,content:e,duration:t})}async error(e,t=3e3){this.show({id:\\\"toast-error\\\",icon:this.error_icon,content:e,duration:t})}async warn(e,t=3e3){this.show({id:\\\"toast-warn\\\",icon:this.warn_icon,content:e,duration:t})}async showLoading(e,t=0){this.show({id:\\\"toast-loading\\\",icon:this.loading_icon,content:e,duration:t})}async hideLoading(){this.hide(\\\"toast-loading\\\")}},Ke=S(\\\"groups\\\",{state:e=\\u003e({groups:[],nodes:[],isWatching:!1}),getters:{groups_nodes(){var e;let t=[],i=[];const s=e=\\u003e{var t;return{info:e,children:(null==(t=e.sub_groups)?void 0:t.length)\\u003e0?e.sub_groups.map(s):[],bounds:{x1:e.pos[0],y1:e.pos[1],x2:e.pos[0]+e.size[0],y2:e.pos[1]+e.size[1]}}};if(t=this.groups.map(s),(null==(e=this.nodes)?void 0:e.length)\\u003e0){const e=(e,t)=\\u003ee[0]\\u003e=t.x1\\u0026\\u0026e[0]\\u003c=t.x2\\u0026\\u0026e[1]\\u003e=t.y1\\u0026\\u0026e[1]\\u003c=t.y2,s=(t,i)=\\u003e{let s=null,n=-1;const a=(i,o)=\\u003e{i.bounds\\u0026\\u0026e(t.pos,i.bounds)\\u0026\\u0026(o\\u003en\\u0026\\u0026(n=o,s=i),i.children.forEach((e=\\u003ea(e,o+1))))};return i.forEach((e=\\u003ea(e,0))),s};this.nodes.forEach((e=\\u003e{const n=s(e,t);n?(n.children||(n.children=[]),n.children.push(e)):i.push({info:e})}))}return[...t,...i]}},actions:{setGroups(e){let t=R(e.map((e=\\u003enew Object({id:e.id,pos:Array.isArray(e.pos)?[...e.pos]:e.pos,size:Array.isArray(e.size)?[...e.size]:e.size,title:e.title,pinned:e.pinned,show_nodes:e.show_nodes}))));t.forEach((e=\\u003e{e.sub_groups=[],t.forEach((t=\\u003e{t!==e\\u0026\\u0026t.pos[0]\\u003ee.pos[0]\\u0026\\u0026t.pos[0]\\u003ce.pos[0]+e.size[0]\\u0026\\u0026t.pos[1]\\u003ee.pos[1]\\u0026\\u0026t.pos[1]\\u003ce.pos[1]+e.size[1]\\u0026\\u0026e.sub_groups.push(t)})),e.sub_groups.forEach((e=\\u003e{t=t.filter((t=\\u003et!==e))}))})),this.groups=\\\"Manual drag\\u0026drop sorting\\\"==xe(\\\"EasyUse.NodesMap.Sorting\\\")?R(t):R(t.sort(((e,t)=\\u003ee.pos[0]-t.pos[0])).sort(((e,t)=\\u003ee.pos[1]-t.pos[1])))},setNodes(e){this.nodes=R(e.map((e=\\u003enew Object({id:e.id,pos:e.pos,size:e.size,type:e.type,is_edit:e.is_edit,title:e.title,mode:e.mode}))))},update(){var e,t,i;(((null==(e=fe.extensionManager)?void 0:e.activeSidebarTab)||(null==(i=null==(t=fe.extensionManager.sidebarTab)?void 0:t.activeSidebarTab)?void 0:i.id))===Pe||this.isWatching)\\u0026\\u0026setTimeout((e=\\u003e{this.setGroups(fe.canvas.graph._groups),this.setNodes(fe.canvas.graph._nodes)}),1)},watchGraph(e=!1){e\\u0026\\u0026(this.isWatching=!0);let t=this;this.update();const i=fe.graph.onNodeAdded;fe.graph.onNodeAdded=function(e){t.update();const s=e.onRemoved;return e.onRemoved=function(){return t.update(),null==s?void 0:s.apply(this,arguments)},null==i?void 0:i.apply(this,arguments)},fe.canvas.onNodeMoved=function(e){t.update()};const s=LGraphCanvas.onNodeAlign;LGraphCanvas.onNodeAlign=function(e){return t.update(),null==s?void 0:s.apply(this,arguments)};const n=LGraphCanvas.onGroupAdd;LGraphCanvas.onGroupAdd=function(){return t.update(),null==n?void 0:n.apply(this,arguments)};const a=LGraphCanvas.onGroupAlign;LGraphCanvas.onGroupAlign=function(e){return t.update(),null==a?void 0:a.apply(this,arguments)};const o=LGraphCanvas.onMenuNodeRemove;LGraphCanvas.onMenuNodeRemove=function(e){return t.update(),null==o?void 0:o.apply(this,arguments)}},unwatchGraph(){this.isWatching=!1}}});const Je={BOX:1,ROUND:2,CIRCLE:3,CARD:4,ARROW:5,GRID:6,HollowCircle:7};function Be(e,t,i={}){const{shape:s=Je.BOX,round_radius:n=LiteGraph.ROUND_RADIUS,title_height:a=LiteGraph.NODE_TITLE_HEIGHT,title_mode:o=LiteGraph.NORMAL_TITLE,color:l=LiteGraph.NODE_BOX_OUTLINE_COLOR,padding:r=6,collapsed:d=!1,thickness:u=1}=i;o===LiteGraph.TRANSPARENT_TITLE\\u0026\\u0026(t[1]-=a,t[3]+=a);const{lineWidth:c,strokeStyle:A}=e;e.lineWidth=u,e.globalAlpha=.8,e.strokeStyle=l,e.beginPath();const[p,h,m,f]=t;switch(s){case Je.BOX:e.rect(p-r,h-r,m+2*r,f+2*r);break;case Je.ROUND:case Je.CARD:{const t=n+r,i=s===Je.CARD\\u0026\\u0026d||s===Je.ROUND?[t]:[t,2,t,2];e.roundRect(p-r,h-r,m+2*r,f+2*r,i);break}case Je.CIRCLE:{const t=p+m/2,i=h+f/2,s=Math.max(m,f)/2+r;e.arc(t,i,s,0,2*Math.PI);break}}e.stroke(),e.lineWidth=c,e.strokeStyle=A,e.globalAlpha=1}function Qe(e,t,i){var s,n;let a=0,o=null==(s=e[0])?void 0:s.naturalWidth,l=null==(n=e[0])?void 0:n.naturalHeight;const r=e.length;let d,u,c,A,p;for(let h=1;h\\u003c=r;h++){const e=Math.ceil(r/h),s=t/h,n=s/o,m=i/e/l,f=Math.min(n,m,1),g=o*f,v=l*f,y=g*v*r;y\\u003ea\\u0026\\u0026(a=y,d=g,u=v,c=h,A=e,p=h*((s-g)/2))}return{cellWidth:d,cellHeight:u,cols:c,rows:A,shiftX:p}}class $e{constructor(e,t){this.type=\\\"custom\\\",this.name=e,this.options=t,this.value=\\\"\\\"}draw(e,t,i,s,n){((e,t,i)=\\u003e{const s=fe.canvas,n=s.graph_mouse;!s.pointer_is_down\\u0026\\u0026t.pointerDown\\u0026\\u0026(n[0]===t.pointerDown.pos[0]\\u0026\\u0026n[1]===t.pointerDown.pos[1]\\u0026\\u0026(t.imageIndex=t.pointerDown.index),t.pointerDown=null);const a=t.imgs??[];let{imageIndex:o}=t;const l=a.length;1!==l||o||(t.imageIndex=o=0);const r=t.size[0],d=t.size[1]-i-15;if(null==o){let o,u,c,A,p;const h=(e=\\u003e{if(!e.length||1===e.length)return!0;const t=e[0].naturalWidth/e[0].naturalHeight;for(let i=1;i\\u003ce.length;i++)if(t!=e[i].naturalWidth/e[i].naturalHeight)return!1;return!0})(a);if(h)A=0,({cellWidth:o,cellHeight:u,cols:p,shiftX:c}=Qe(a,r,d));else{A=2;const e=a.reduce(((e,t)=\\u003eMath.max(e,t.naturalWidth,t.naturalHeight)),0),t=[];t.length=a.length,t[0]={naturalWidth:e,naturalHeight:e},({cellWidth:o,cellHeight:u,cols:p,shiftX:c}=Qe(t,r,d))}let m=!1;t.imageRects=[];for(let r=0;r\\u003cl;r++){const l=a[r],d=Math.floor(r/p),f=r%p,g=f*o+c,v=d*u+i;if(!m\\u0026\\u0026(m=LiteGraph.isInsideRectangle(n[0],n[1],g+t.pos[0],v+t.pos[1],o,u),m)){t.overIndex=r;let i=110;s.pointer_is_down\\u0026\\u0026(t.pointerDown\\u0026\\u0026t.pointerDown.index===r||(t.pointerDown={index:r,pos:[...n]}),i=125),e.filter=`contrast(${i}%) brightness(${i}%)`,s.canvas.style.cursor=\\\"pointer\\\"}t.imageRects.push([g,v,o,u]);const y=o/l.width,w=u/l.height,b=Math.min(y,w),_=b*l.height,S=d*u+i+(u-_)/2,x=b*l.width,L=f*o+c+(o-x)/2;e.drawImage(l,L+A,S+A,x-2*A,_-2*A),h||(e.strokeStyle=\\\"#8F8F8F\\\",e.lineWidth=1,e.strokeRect(g+A,v+A,o-2*A,u-2*A)),e.filter=\\\"none\\\"}return void(m||(t.pointerDown=null,t.overIndex=null))}const u=a[o];if(!u)return;let c=null==u?void 0:u.naturalWidth,A=null==u?void 0:u.naturalHeight;const p=r/c,h=d/A,m=Math.min(p,h,1);c*=m,A*=m;const f=(r-c)/2,g=(d-A)/2+i;e.drawImage(u,f,g,c,A),e.fillStyle=LiteGraph.NODE_TEXT_COLOR,e.textAlign=\\\"center\\\",e.font=\\\"10px sans-serif\\\";const v=`${Math.round(u.naturalWidth)} × ${Math.round(u.naturalHeight)}`,y=g+A+10;e.fillText(v,f+c/2,y);const w=(i,a,o,l)=\\u003e{let r=\\\"#333\\\",d=\\\"#fff\\\",u=!1;return LiteGraph.isInsideRectangle(n[0],n[1],i+t.pos[0],a+t.pos[1],o,o)\\u0026\\u0026(s.canvas.style.cursor=\\\"pointer\\\",s.pointer_is_down?(r=\\\"#1e90ff\\\",u=!0):(r=\\\"#eee\\\",d=\\\"#000\\\")),e.fillStyle=r,e.beginPath(),e.roundRect(i,a,o,o,[4]),e.fill(),e.fillStyle=d,e.font=\\\"12px Arial\\\",e.textAlign=\\\"center\\\",e.fillText(l,i+15,a+20),u};if(!(l\\u003e1))return;const b=(t.imageIndex??0)+1;if(w(r-40,d+i-40,30,`${b}/${l}`)){const e=b\\u003e=l?0:b;t.pointerDown\\u0026\\u0026t.pointerDown.index===e||(t.pointerDown={index:e,pos:[...n]})}w(r-40,i+10,30,\\\"x\\\")\\u0026\\u0026(t.pointerDown\\u0026\\u0026null===t.pointerDown.index||(t.pointerDown={index:null,pos:[...n]}))})(e,t,s)}computeLayoutSize(e,t){return{minHeight:220,minWidth:1}}}const et=()=\\u003e(e,t)=\\u003ee.addCustomWidget(new $e(t.name,{serialize:!1}));function tt(e,t,i,s,n,a){return e\\u003e=i\\u0026\\u0026e\\u003ci+n\\u0026\\u0026t\\u003e=s\\u0026\\u0026t\\u003cs+a}class it extends Float64Array{constructor(e=0,t=0,i=0,s=0){super(4),b(this,h),b(this,m),this[0]=e,this[1]=t,this[2]=i,this[3]=s}subarray(e=0,t){const i=e\\u003c\\u003c3,s=void 0===t?t:t-e;return new Float64Array(this.buffer,i,s)}get pos(){return w(this,h)??_(this,h,this.subarray(0,2)),w(this,h)}set pos(e){this[0]=e[0],this[1]=e[1]}get size(){return w(this,m)??_(this,m,this.subarray(2,4)),w(this,m)}set size(e){this[2]=e[0],this[3]=e[1]}get x(){return this[0]}set x(e){this[0]=e}get y(){return this[1]}set y(e){this[1]=e}get width(){return this[2]}set width(e){this[2]=e}get height(){return this[3]}set height(e){this[3]=e}get left(){return this[0]}set left(e){this[0]=e}get top(){return this[1]}set top(e){this[1]=e}get right(){return this[0]+this[2]}set right(e){this[0]=e-this[2]}get bottom(){return this[1]+this[3]}set bottom(e){this[1]=e-this[3]}get centreX(){return this[0]+.5*this[2]}get centreY(){return this[1]+.5*this[3]}updateTo(e){this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3]}containsXy(e,t){const{x:i,y:s,width:n,height:a}=this;return e\\u003e=i\\u0026\\u0026e\\u003ci+n\\u0026\\u0026t\\u003e=s\\u0026\\u0026t\\u003cs+a}containsPoint(e){return this.x\\u003c=e[0]\\u0026\\u0026this.y\\u003c=e[1]\\u0026\\u0026this.x+this.width\\u003e=e[0]\\u0026\\u0026this.y+this.height\\u003e=e[1]}containsRect(e){return this.x\\u003c=e[0]\\u0026\\u0026this.y\\u003c=e[1]\\u0026\\u0026this.x+this.width\\u003e=e[0]+e[2]\\u0026\\u0026this.y+this.height\\u003e=e[1]+e[3]}overlaps(e){return this.x\\u003ce[0]+e[2]\\u0026\\u0026this.y\\u003ce[1]+e[3]\\u0026\\u0026this.x+this.width\\u003ee[0]\\u0026\\u0026this.y+this.height\\u003ee[1]}findContainingCorner(e,t,i){return this.isInTopLeftCorner(e,t,i)?\\\"NW\\\":this.isInTopRightCorner(e,t,i)?\\\"NE\\\":this.isInBottomLeftCorner(e,t,i)?\\\"SW\\\":this.isInBottomRightCorner(e,t,i)?\\\"SE\\\":void 0}isInTopLeftCorner(e,t,i){return tt(e,t,this.x,this.y,i,i)}isInTopRightCorner(e,t,i){return tt(e,t,this.right-i,this.y,i,i)}isInBottomLeftCorner(e,t,i){return tt(e,t,this.x,this.bottom-i,i,i)}isInBottomRightCorner(e,t,i){return tt(e,t,this.right-i,this.bottom-i,i,i)}isInTopEdge(e,t,i){return tt(e,t,this.x,this.y,this.width,i)}isInBottomEdge(e,t,i){return tt(e,t,this.x,this.bottom-i,this.width,i)}isInLeftEdge(e,t,i){return tt(e,t,this.x,this.y,i,this.height)}isInRightEdge(e,t,i){return tt(e,t,this.right-i,this.y,i,this.height)}getCentre(){return[this.centreX,this.centreY]}getArea(){return this.width*this.height}getPerimeter(){return 2*(this.width+this.height)}getTopLeft(){return[this[0],this[1]]}getBottomRight(){return[this.right,this.bottom]}getSize(){return[this[2],this[3]]}getOffsetTo([e,t]){return[e-this[0],t-this[1]]}getOffsetFrom([e,t]){return[this[0]-e,this[1]-t]}resizeTopLeft(e,t){this[2]+=this[0]-e,this[3]+=this[1]-t,this[0]=e,this[1]=t}resizeBottomLeft(e,t){this[2]+=this[0]-e,this[3]=t-this[1],this[0]=e}resizeTopRight(e,t){this[2]=e-this[0],this[3]+=this[1]-t,this[1]=t}resizeBottomRight(e,t){this[2]=e-this[0],this[3]=t-this[1]}setWidthRightAnchored(e){const t=this[2];this[2]=e,this[0]+=t-e}setHeightBottomAnchored(e){const t=this[3];this[3]=e,this[1]+=t-e}toArray(){return this.export()}export(){return[this[0],this[1],this[2],this[3]]}_drawDebug(e,t=\\\"red\\\"){const{strokeStyle:i,lineWidth:s}=e;try{e.strokeStyle=t,e.lineWidth=.5,e.beginPath(),e.strokeRect(this[0],this[1],this[2],this[3])}finally{e.strokeStyle=i,e.lineWidth=s}}}h=new WeakMap,m=new WeakMap;const st=(e,...t)=\\u003efunction(...i){try{t.forEach((e=\\u003enull==e?void 0:e.call(this,...i)))}catch(s){null==e||e.call(this,...i,s)}};let nt=null;const at=new Image;at.src=\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-width='1.3' d='M9.18613 3.09999H6.81377M9.18613 12.9H7.55288c-3.08678 0-5.35171-2.99581-4.60305-6.08843l.3054-1.26158M14.7486 2.1721l-.5931 2.45c-.132.54533-.6065.92789-1.1508.92789h-2.2993c-.77173 0-1.33797-.74895-1.1508-1.5221l.5931-2.45c.132-.54533.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.74896 1.1508 1.52211Zm-8.3033 0-.59309 2.45c-.13201.54533-.60646.92789-1.15076.92789H2.4021c-.7717 0-1.33793-.74895-1.15077-1.5221l.59309-2.45c.13201-.54533.60647-.9279 1.15077-.9279h2.29935c.77169 0 1.33792.74896 1.15076 1.52211Zm8.3033 9.8-.5931 2.45c-.132.5453-.6065.9279-1.1508.9279h-2.2993c-.77173 0-1.33797-.749-1.1508-1.5221l.5931-2.45c.132-.5453.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.7489 1.1508 1.5221Z'/%3E%3C/svg%3E %3C/svg%3E\\\";const ot=[\\\"custom_obsidian\\\",\\\"custom_obsidian_dark\\\",\\\"custom_milk_white\\\",\\\"obsidian_dark\\\",\\\"obsidian\\\",\\\"milk_white\\\"],lt={\\\"easy positive\\\":\\\"green\\\",\\\"easy negative\\\":\\\"red\\\",\\\"easy promptList\\\":\\\"cyan\\\",\\\"easy promptLine\\\":\\\"cyan\\\",\\\"easy promptConcat\\\":\\\"cyan\\\",\\\"easy promptReplace\\\":\\\"cyan\\\",\\\"easy forLoopStart\\\":\\\"blue\\\",\\\"easy forLoopEnd\\\":\\\"blue\\\",\\\"easy whileLoopStart\\\":\\\"blue\\\",\\\"easy whileLoopEnd\\\":\\\"blue\\\",\\\"easy loadImagesForLoop\\\":\\\"blue\\\"};let rt=LGraphCanvas.node_colors,dt=null,ut=null,ct=null,At=new it;for(let Aa in Fe)pt=Fe[Aa],fe.ui.settings.settingsLookup[pt.id]||fe.ui.settings.addSetting(pt);var pt;function ht(e,t,i,s,n,a){var o,l,r;t.strokeStyle=s,t.fillStyle=n;const d=LiteGraph.NODE_TITLE_HEIGHT,{low_quality:u}=this,{collapsed:c}=e.flags,A=e.renderingShape,{title_mode:p}=e.constructor,h=p!=LiteGraph.TRANSPARENT_TITLE\\u0026\\u0026p!=LiteGraph.NO_TITLE,m=At;m.set(e.boundingRect),m[0]-=e.pos[0],m[1]-=e.pos[1];let f=t.globalAlpha;if(t.lineWidth=1,t.beginPath(),A==LiteGraph.BOX_SHAPE||u?t.fillRect(m[0],m[1],m[2],m[3]):A==LiteGraph.ROUND_SHAPE||A==LiteGraph.CARD_SHAPE?t.roundRect(m[0],m[1],m[2],m[3],A==LiteGraph.CARD_SHAPE?[this.round_radius,this.round_radius,0,0]:[this.round_radius]):A==LiteGraph.CIRCLE_SHAPE\\u0026\\u0026t.arc(.5*i[0],.5*i[1],.5*i[0],0,2*Math.PI),t.strokeStyle=LiteGraph.WIDGET_OUTLINE_COLOR,t.stroke(),t.strokeStyle=s,t.fill(),e.has_errors\\u0026\\u0026!LiteGraph.use_legacy_node_error_indicator\\u0026\\u0026Be(t,m,{shape:A,title_mode:p,title_height:d,padding:12,color:LiteGraph.NODE_ERROR_COLOUR,collapsed:c,thickness:10}),!c\\u0026\\u0026h\\u0026\\u0026(t.shadowColor=\\\"transparent\\\",t.fillStyle=\\\"rgba(0,0,0,0.2)\\\",t.fillRect(0,-1,m[2],2)),t.shadowColor=\\\"transparent\\\",e.onDrawBackground\\u0026\\u0026e.onDrawBackground(t,this,this.canvas,this.graph_mouse),h||p==LiteGraph.TRANSPARENT_TITLE){const s=\\\"dark\\\"==function(e){let t=e.replace(\\\"#\\\",\\\"\\\");return i=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16),.299*i+.587*s+.114*n\\u003e127.5?\\\"light\\\":\\\"dark\\\";var i,s,n}((null==e?void 0:e.color)||\\\"#ffffff\\\");e.drawTitleBarBackground(t,{scale:this.ds.scale,low_quality:u});let n=!1;LiteGraph.node_box_coloured_by_mode\\u0026\\u0026LiteGraph.NODE_MODES_COLORS[e.mode]\\u0026\\u0026(n=LiteGraph.NODE_MODES_COLORS[e.mode]),LiteGraph.node_box_coloured_when_on\\u0026\\u0026(n=e.action_triggered?\\\"#FFF\\\":e.execute_triggered?\\\"#AAA\\\":n);let l=10;if(e.onDrawTitleBox)e.onDrawTitleBox(t,d,i,this.ds.scale);else if([LiteGraph.ROUND_SHAPE,LiteGraph.CIRCLE_SHAPE,LiteGraph.CARD_SHAPE].includes(A))if(u\\u0026\\u0026(t.fillStyle=\\\"black\\\",t.beginPath(),t.arc(.5*d,-.5*d,.5*l+1,0,2*Math.PI),t.fill()),e.subgraph\\u0026\\u0026!e.skip_subgraph_button)t.save(),t.fillStyle=\\\"#3b82f6\\\",t.beginPath(),t.roundRect(6,-24.5,22,20,5),t.fill(),u||(t.translate(25,23),t.scale(-1.5,1.5),t.drawImage(at,0,-d,l,l)),t.restore();else{const i=s?\\\"#ffffff\\\":LiteGraph.NODE_SELECTED_TITLE_COLOR,o=s?\\\"#eeeeee\\\":e.boxcolor||n||LiteGraph.NODE_DEFAULT_BOXCOLOR;t.fillStyle=a?i:o,t.beginPath(),t.fillRect(10,0-1.05*l-1,1.1*l,.125*l),t.fillRect(10,0-1.45*l-1,1.1*l,.125*l),t.fillRect(10,0-1.85*l-1,1.1*l,.125*l)}else u\\u0026\\u0026(t.fillStyle=\\\"black\\\",t.fillRect(.5*(d-l)-1,-.5*(d+l)-1,l+2,l+2)),t.fillStyle=e.renderingBoxColor,t.fillRect(.5*(d-l),-.5*(d+l),l,l);if(t.globalAlpha=f,e.onDrawTitleText\\u0026\\u0026e.onDrawTitleText(t,d,i,this.ds.scale,this.title_text_font,a),!u){t.font=this.title_text_font;const i=e.getTitle()??`❌ ${e.type}`,n=String(i)+(e.pinned?\\\"📌\\\":\\\"\\\");n\\u0026\\u0026(t.fillStyle=a?s?\\\"#ffffff\\\":LiteGraph.NODE_SELECTED_TITLE_COLOR:s?\\\"#ffffff\\\":e.constructor.title_text_color||this.node_title_color,e.flags.collapsed?(t.textAlign=\\\"left\\\",t.measureText(n),t.fillText(n.substr(0,20),d,LiteGraph.NODE_TITLE_TEXT_Y-d),t.textAlign=\\\"left\\\"):(t.textAlign=\\\"left\\\",t.fillText(n,d,LiteGraph.NODE_TITLE_TEXT_Y-d)))}null==(o=e.onDrawTitle)||o.call(e,t)}if(null==e?void 0:e.strokeStyles){for(const i of Object.values(e.strokeStyles)){const s=i.call(e);s\\u0026\\u0026Be(t,m,{shape:A,title_height:d,title_mode:p,collapsed:c,...s})}null==e||e.drawProgressBar(t)}else if(a){null==(l=e.onBounding)||l.call(e,m),p==LiteGraph.TRANSPARENT_TITLE\\u0026\\u0026(m[1]-=d,m[3]+=d),t.lineWidth=2,t.globalAlpha=.8,t.beginPath();let n=0,a=0,o=1;A==LiteGraph.BOX_SHAPE?t.rect(n+m[0],n+m[1],a+m[2],a+m[3]):A==LiteGraph.ROUND_SHAPE||A==LiteGraph.CARD_SHAPE\\u0026\\u0026e.flags.collapsed?t.roundRect(n+m[0],n+m[1],a+m[2],a+m[3],[this.round_radius*o]):A==LiteGraph.CARD_SHAPE?t.roundRect(n+m[0],n+m[1],a+m[2],a+m[3],[this.round_radius*o,o,this.round_radius*o,o]):A==LiteGraph.CIRCLE_SHAPE\\u0026\\u0026t.arc(.5*i[0],.5*i[1],.5*i[0]+6,0,2*Math.PI),t.strokeStyle=LiteGraph.NODE_BOX_OUTLINE_COLOR,t.stroke(),t.strokeStyle=s,t.globalAlpha=1}null==(r=e.drawProgressBar)||r.call(e,t),e.execute_triggered\\u003e0\\u0026\\u0026e.execute_triggered--,e.action_triggered\\u003e0\\u0026\\u0026e.action_triggered--}function mt(e,t,i,s,n){return new LiteGraph.ContextMenu(LiteGraph.NODE_MODES,{event:i,callback:function(e){if(!n)return;var t=Object.values(LiteGraph.NODE_MODES).indexOf(e),i=function(e){t\\u003e=0\\u0026\\u0026LiteGraph.NODE_MODES[t]?e.changeMode(t):e.changeMode(LiteGraph.ALWAYS),nt||(nt=Ke()),nt.update()},s=LGraphCanvas.active_canvas;if(!s.selected_nodes||Object.keys(s.selected_nodes).length\\u003c=1)i(n);else for(var a in s.selected_nodes)i(s.selected_nodes[a])},parentMenu:s,node:n}),!1}function ft(e,t,i,s,n){if(!n)throw\\\"no node for color\\\";var a=[];for(var o in a.push({value:null,content:\\\"\\u003cspan style='display: block; padding-left: 4px;'\\u003eNo color\\u003c/span\\u003e\\\"}),LGraphCanvas.node_colors){var l=LGraphCanvas.node_colors[o];e={value:o,content:\\\"\\u003cspan style='display: block; color: #999; padding-left: 4px; border-left: 8px solid \\\"+l.color+\\\"; background-color:\\\"+l.bgcolor+\\\"'\\u003e\\\"+o+\\\"\\u003c/span\\u003e\\\"};a.push(e)}return new LiteGraph.ContextMenu(a,{event:i,callback:function(e){if(!n)return;var t=e.value?LGraphCanvas.node_colors[e.value]:null,i=function(e){t?e.constructor===LiteGraph.LGraphGroup?e.color=t.groupcolor:(e.color=t.color,e.bgcolor=t.bgcolor):(delete e.color,delete e.bgcolor),nt||(nt=Ke()),nt.update()},s=LGraphCanvas.active_canvas;if(!s.selected_nodes||Object.keys(s.selected_nodes).length\\u003c=1)i(n);else for(var a in s.selected_nodes)i(s.selected_nodes[a]);n.setDirtyCanvas(!0,!0)},parentMenu:s,node:n}),!1}function gt(e,t,i,s,n){var a=e.property||\\\"title\\\",o=n[a],l=document.createElement(\\\"div\\\");l.is_modified=!1,l.className=\\\"graphdialog\\\",l.innerHTML=\\\"\\u003cspan class='name'\\u003e\\u003c/span\\u003e\\u003cinput autofocus type='text' class='value'/\\u003e\\u003cbutton\\u003eOK\\u003c/button\\u003e\\\",l.close=function(){l.parentNode\\u0026\\u0026l.parentNode.removeChild(l)},l.querySelector(\\\".name\\\").innerText=a;var r=l.querySelector(\\\".value\\\");r\\u0026\\u0026(r.value=o,r.addEventListener(\\\"blur\\\",(function(e){this.focus()})),r.addEventListener(\\\"keydown\\\",(function(e){if(l.is_modified=!0,27==e.keyCode)l.close();else if(13==e.keyCode)h();else if(13!=e.keyCode\\u0026\\u0026\\\"textarea\\\"!=e.target.localName)return;e.preventDefault(),e.stopPropagation()})));var d=LGraphCanvas.active_canvas.canvas,u=d.getBoundingClientRect(),c=-20,A=-20;u\\u0026\\u0026(c-=u.left,A-=u.top),event?(l.style.left=event.clientX+c+\\\"px\\\",l.style.top=event.clientY+A+\\\"px\\\"):(l.style.left=.5*d.width+c+\\\"px\\\",l.style.top=.5*d.height+A+\\\"px\\\"),l.querySelector(\\\"button\\\").addEventListener(\\\"click\\\",h),d.parentNode.appendChild(l),r\\u0026\\u0026r.focus();var p=null;function h(){r\\u0026\\u0026function(t){\\\"Number\\\"==e.type?t=Number(t):\\\"Boolean\\\"==e.type\\u0026\\u0026(t=Boolean(t));n[a]=t,l.parentNode\\u0026\\u0026l.parentNode.removeChild(l);n.setDirtyCanvas(!0,!0),nt||(nt=Ke());nt.update()}(r.value)}l.addEventListener(\\\"mouseleave\\\",(function(e){LiteGraph.dialog_close_on_mouse_leave\\u0026\\u0026!l.is_modified\\u0026\\u0026LiteGraph.dialog_close_on_mouse_leave\\u0026\\u0026(p=setTimeout(l.close,LiteGraph.dialog_close_on_mouse_leave_delay))})),l.addEventListener(\\\"mouseenter\\\",(function(e){LiteGraph.dialog_close_on_mouse_leave\\u0026\\u0026p\\u0026\\u0026clearTimeout(p)}))}(e=\\u003e{try{fe.registerExtension(e)}catch(t){}})({name:\\\"Comfy.EasyUse.UI\\\",init(){var e,t;const i=\\\"Comfy.CustomColorPalettes\\\",s=\\\"Comfy.Settings.Comfy.CustomColorPalettes\\\";if(dt||(dt=xe(i,s)),ut||(ut=xe(\\\"Comfy.ColorPalette\\\",\\\"Comfy.Settings.Comfy.ColorPalette\\\")||\\\"dark\\\"),(!(null==(e=null==dt?void 0:dt.obsidian)?void 0:e.version)||dt.obsidian.version\\u003cVe.ColorPalette.version)\\u0026\\u0026(dt.obsidian=Ve.ColorPalette,dt.obsidian_dark=je.ColorPalette,ke(i,dt,s)),(!dt||!(null==(t=null==dt?void 0:dt.milk_white)?void 0:t.version)||dt.milk_white.version\\u003cWe.ColorPalette.version)\\u0026\\u0026(dt.milk_white=We.ColorPalette,ke(i,dt,s)),ot.includes(ut)){switch(document.body.classList+=\\\" comfyui-easyuse\\\",function(e,t=!1){const i=document.createElement(\\\"link\\\");i.rel=\\\"preconnect\\\",i.href=e,t\\u0026\\u0026(i.crossorigin=\\\"\\\"),document.head.appendChild(i)}(\\\"https://fonts.googleapis.com\\\",!0),function(e,t=!0,i=\\\"ComfyUI-Easy-Use\\\"){const s=document.createElement(\\\"link\\\");s.rel=\\\"stylesheet\\\",s.type=\\\"text/css\\\",s.href=t?`extensions/${i}/${e}`:e,document.head.appendChild(s)}(\\\"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700\\u0026amp;family=JetBrains+Mono\\u0026amp;display=swap\\\",!1),ut){case\\\"obsidian\\\":case\\\"obsidian_dark\\\":case\\\"custom_obsidian\\\":case\\\"custom_obsidian_dark\\\":case\\\"dark\\\":LGraphCanvas.node_colors=Ve.NODE_COLORS;break;case\\\"custom_milk_white\\\":case\\\"milk_white\\\":case\\\"light\\\":LGraphCanvas.node_colors=We.NODE_COLORS}rt=LGraphCanvas.node_colors,LiteGraph.NODE_TEXT_SIZE=13,LGraphCanvas.prototype.drawNodeShape=st(LGraphCanvas.prototype.drawNodeShape,ht)}else document.body.classList.remove(\\\"comfyui-easyuse\\\");LGraphCanvas.onMenuNodeMode=st(LGraphCanvas.onMenuNodeMode,mt),LGraphCanvas.onMenuNodeColors=st(LGraphCanvas.onMenuNodeColors,ft),LGraphCanvas.onShowPropertyEditor=st(LGraphCanvas.onShowPropertyEditor,gt)},async setup(){var e;Object.assign(fe.canvas.default_connection_color_byType,Te),Object.assign(LGraphCanvas.link_type_colors,Te),\\\"custom_milk_white\\\"==ut\\u0026\\u0026document.body.classList.remove(Ie),fe.ui.settings.addEventListener(\\\"Comfy.ColorPalette.change\\\",(async({detail:e})=\\u003e{(null==e?void 0:e.value)\\u0026\\u0026(null==e?void 0:e.oldValue)\\u0026\\u0026(await Xe(1),Object.assign(fe.canvas.default_connection_color_byType,Te),Object.assign(LGraphCanvas.link_type_colors,Te)),\\\"custom_milk_white\\\"==e.value\\u0026\\u0026document.body.classList.remove(Ie)})),setTimeout((e=\\u003evt(xe(\\\"Comfy.UseNewMenu\\\")||\\\"Disabled\\\")),1);const t=null==(e=fe.ui.settings.settingsLookup)?void 0:e[\\\"Comfy.UseNewMenu\\\"];t\\u0026\\u0026(t.onChange=e=\\u003evt(e)),ge.addEventListener(\\\"easyuse-toast\\\",(e=\\u003e{const t=e.detail.content,i=e.detail.type,s=e.detail.duration;i?Ye.show({id:`toast-${i}`,icon:Ye[i+\\\"_icon\\\"],content:`${t}`,duration:s||3e3}):Ye.info(t,s)}))},async nodeCreated(e){if(lt.hasOwnProperty(e.comfyClass)){const t=lt[e.comfyClass],i=rt[t];if(!i)return;!e.bgcolor\\u0026\\u0026i.bgcolor\\u0026\\u0026(e.bgcolor=i.bgcolor),!e.color\\u0026\\u0026i.color\\u0026\\u0026(e.color=i.color)}}});const vt=e=\\u003e{var t;const i=(null==(t=document.getElementById(\\\"crystools-root\\\"))?void 0:t.children)||null,s=xe(\\\"Comfy.Workflow.WorkflowTabsPosition\\\",null);if((null==i?void 0:i.length)\\u003e0\\u0026\\u0026s)if(ct||(ct=document.getElementById(\\\"MonitorUI\\\")),\\\"Disabled\\\"==e){document.getElementById(\\\"crystools-root\\\").appendChild(ct)}else{let e=document.getElementById(\\\"crystools-root-easyuse\\\");if(e)e.appendChild(ct);else{const e=document.getElementsByClassName(\\\"comfyui-menu-right\\\");e.length\\u003e0\\u0026\\u0026e[0].before(ve(\\\"div\\\",{id:\\\"crystools-root-easyuse\\\"},ct))}}};let yt={};const wt=(e,t)=\\u003ee.widgets.find((e=\\u003ee.name===t)),bt=(e,t,i=!1,s=\\\"\\\")=\\u003e{var n;if(!t||((e,t,i)=\\u003e!!e.inputs\\u0026\\u0026e.inputs.some((e=\\u003ee.name===t\\u0026\\u0026e.link\\u0026\\u0026!i)))(e,t.name,i))return;yt[t.name]||(yt[t.name]={origType:t.type,origComputeSize:t.computeSize});const a=e.size;t.hidden=!i,t.type=i?yt[t.name].origType:\\\"easyHidden\\\"+s,t.computeSize=i?yt[t.name].origComputeSize:()=\\u003e[0,-4],null==(n=t.linkedWidgets)||n.forEach((s=\\u003ebt(e,s,\\\":\\\"+t.name,i)));const o=i?Math.max(e.computeSize()[1],a[1]):e.size[1];e.setSize([e.size[0],o])},_t=(e,t=0)=\\u003e{var i,s;if(e)return(null==(i=e.widgets)?void 0:i[t])?e.widgets[t].value:e.widgets_values?null==(s=e.widgets_values)?void 0:s[t]:void 0},St=e=\\u003ee.setSize([e.size[0],e.computeSize()[1]]),xt=(e,t)=\\u003egraph.getNodeById(e),Lt=e=\\u003e{var t;try{return Object.values(null==(t=null==graph?void 0:graph.list_of_graphcanvas[0])?void 0:t.selected_nodes)}catch(i){return[]}};function kt(e,t,i){return e+(s=i,(.5-.5*Math.cos(Math.PI*s))*(t-e));var s}const Et=(e,t=!0)=\\u003e{var i,s;const n=(null==(s=null==(i=e.graph)?void 0:i.list_of_graphcanvas)?void 0:s[0])||null;if(!n)return;const[a,o]=e.pos,[l,r]=e.size;(([e,t],i)=\\u003e{const s=i.ds,n=document.body.clientWidth,a=document.body.clientHeight,o=s.scale,l=.5*n/o-e,r=.5*a/o-t,d=Date.now()+250,u=s.offset[0],c=s.offset[1],A=()=\\u003e{const e=d-Date.now();if(!(Date.now()\\u003cd))return s.offset[0]=l,s.offset[1]=r,void i.setDirty(!0,!0);requestAnimationFrame(A);const t=1-e/250;s.offset[0]=kt(u,l,t),s.offset[1]=kt(c,r,t),i.setDirty(!0,!0)};requestAnimationFrame(A)})([a+l/2,o+r/2],n),t\\u0026\\u0026n.selectNode(e)},Nt=e=\\u003e{const t=xt(e);t\\u0026\\u0026Et(t)},Ct=(e,t=(()=\\u003egraph.links??[])())=\\u003et[e],It=e=\\u003ee.toLowerCase().replace(/_./g,(e=\\u003ee.replace(\\\"_\\\",\\\"\\\").toUpperCase())),Tt=e=\\u003e\\\"easy getNode\\\"===e.type,Ot=e=\\u003e\\\"easy setNode\\\"===e.type,Mt=e=\\u003eTt(e)||Ot(e),Dt=(e=(()=\\u003egraph._nodes??[])())=\\u003ee.filter((e=\\u003eMt(e)));let Rt={},Pt={};const Gt=(e,t,i=0)=\\u003e{e.widgets_values||(e.widgets_values=[]),e.widgets_values[i]=t,e.widgets[i].value=t},zt=e=\\u003egraph.add(e),Vt=e=\\u003egraph.remove(e),jt=(e,t=0)=\\u003e{var i,s;if(\\\"Reroute\\\"!==e.type)return[e,t];const n=e,a=null==(s=null==(i=n.inputs)?void 0:i[0])?void 0:s.link;if(!a)return[n,t];const o=Ct(a);if(!o)return[n,t];const l=xt(o.origin_id);return l?(setTimeout((()=\\u003e{Vt(n)})),jt(l,o.origin_slot)):[n,t]},Ut=e=\\u003e{var t,i,s;if(\\\"Reroute\\\"!==e.type)return e;const n=e,a=null==(i=null==(t=n.outputs)?void 0:t[0])?void 0:i.links;if(!a)return n;const o=a[0];if(!o)return n;const l=Ct(o);if(!l)return n;const r=xt(l.target_id);return r?(1===(null==(s=n.outputs[0].links)?void 0:s.length)\\u0026\\u0026setTimeout((()=\\u003e{Vt(n)})),Ut(r)):n},Wt=(e,t=\\\"width\\\")=\\u003e{var i;const s=e[0],n=\\\"width\\\"==t?0:1,a=null==(i=s.size)?void 0:i[n];a\\u0026\\u0026(e.forEach((e=\\u003e{e.size[n]=a})),LGraphCanvas.active_canvas.setDirty(!0,!0))},Ft=(e,t=\\\"horizontal\\\")=\\u003e{if(e.length\\u003c3)return;const i=\\\"horizontal\\\"===t?0:1;e.sort(((e,t)=\\u003ee.pos[i]-t.pos[i]));const s=Math.min(...e.map((e=\\u003ee.pos[i]))),n=(Math.max(...e.map((e=\\u003ee.pos[i]+e.size[i])))-s-e.reduce(((e,t)=\\u003ee+t.size[i]),0))/(e.length-1);let a=s;e.forEach((e=\\u003e{e.pos[i]=a,a+=e.size[i]+n})),LGraphCanvas.active_canvas.setDirty(!0,!0)},Xt=\\\"$$canvas-image-preview\\\";const Zt=\\\"$$comfy_animation_preview\\\";const Ht=\\\"video_upload\\\",qt=(e,t)=\\u003e{if(!e)return!1;const i=(e=\\u003e{var t;return null==(t=e.constructor)?void 0:t.nodeData})(e);if(!(null==i?void 0:i.input))return!1;return(e=\\u003e{if(!e)return[];const{required:t,optional:i}=e,s=[];if(t)for(const n of Object.values(t))s.push(n);if(i)for(const n of Object.values(i))s.push(n);return s})(i.input).some((e=\\u003e{var i;return null==(i=null==e?void 0:e[1])?void 0:i[t]}))};const Yt=e=\\u003enull==e?void 0:e.id.toString(),Kt=e=\\u003efe.nodeOutputs[Yt(e)],Jt=e=\\u003efe.nodePreviewImages[Yt(e)];function Bt(e){var t;const i=Jt(e),s=Kt(e);if((null==i?void 0:i.length)\\u0026\\u0026!e.isOutputFinal)return i;if(!(null==(t=null==s?void 0:s.images)?void 0:t.length))return(null==i?void 0:i.length)?i:void 0;const n=fe.getRandParam(),a=(e=\\u003ee.animatedImages?\\\"\\\":fe.getPreviewFormatParam())(e);return s.images.map((e=\\u003e{const t=new URLSearchParams(e);return ge.apiURL(`/view?${t}${a}${n}`)}))}const Qt=\\\"video-preview\\\",$t={playsInline:!0,controls:!0,loop:!0},ei=(e,t)=\\u003e{const{loadElement:i,onLoaded:s,onFailedLoading:n}=t,a=async(e,t=0)=\\u003e{const s=await Promise.race([i(e),(n=8192,new Promise((e=\\u003esetTimeout((()=\\u003ee(null)),n))))]);var n;return null===s\\u0026\\u0026t\\u003c1?a(e,t+1):s};return{showPreview:function(){var i;if(e.isLoading)return;const o=(null==(i=e.videos)?void 0:i.length)\\u003e0?e.videos.map((e=\\u003e{return t=e,ge.apiURL(`/view?filename=${encodeURIComponent(t.filename)}\\u0026type=${t.type}\\u0026subfolder=${t.subfolder}\\u0026rand=${Math.random()}`);var t})):Bt(e);(null==o?void 0:o.length)\\u0026\\u0026((null==t?void 0:t.block)\\u0026\\u0026(e.isLoading=!0),(async e=\\u003ePromise.all(e.map((e=\\u003ea(e)))))(o).then((e=\\u003e{const t=e.filter((e=\\u003enull!==e));t.length\\u0026\\u0026(null==s||s(t))})).catch((()=\\u003e{null==n||n()})).finally((()=\\u003e{e.isLoading=!1})))}}},ti=e=\\u003e{e.previewMediaType=\\\"image\\\";return ei(e,{loadElement:e=\\u003enew Promise((t=\\u003e{const i=new Image;i.onload=()=\\u003et(i),i.onerror=()=\\u003et(null),i.src=e})),onLoaded:t=\\u003e{e.imageIndex=null,e.imgs=t},onFailedLoading:()=\\u003e{e.imgs=void 0}})},ii=e=\\u003e{e.previewMediaType=\\\"video\\\";return ei(e,{loadElement:e=\\u003enew Promise((t=\\u003e{const i=document.createElement(\\\"video\\\");Object.assign(i,$t),i.onloadeddata=()=\\u003et(i),i.onerror=()=\\u003et(null),i.src=e})),onLoaded:t=\\u003e{const i=t[0];var s,n;i\\u0026\\u0026(e.videoContainer||(e.imgs\\u0026\\u0026(e.imgs=void 0),e.videoContainer=(()=\\u003e{const e=document.createElement(\\\"div\\\");return e.classList.add(\\\"comfy-img-preview\\\"),e})(),e.videoContainer.style.pointerEvents=\\\"auto\\\",s=e.videoContainer,(null==(n=e.widgets)?void 0:n.some((e=\\u003ee.name===Qt)))||e.addDOMWidget(Qt,\\\"video\\\",s,{hideOnZoom:!1,serialize:!1})),e.videoContainer.replaceChildren(i),e.imageOffset=64)},onFailedLoading:()=\\u003e{e.videoContainer=void 0}})};function si(e,t){var i;if(e.flags.collapsed)return;const{showCanvasImagePreview:s,removeCanvasImagePreview:n}=function(){const e=et();return{showCanvasImagePreview:function(t){var i;(null==(i=t.imgs)?void 0:i.length)\\u0026\\u0026t.widgets\\u0026\\u0026(t.widgets.find((e=\\u003ee.name===Xt))||e(t,{type:\\\"IMAGE_PREVIEW\\\",name:Xt}))},removeCanvasImagePreview:function(e){var t,i;if(!e.widgets)return;const s=e.widgets.findIndex((e=\\u003ee.name===Xt));s\\u003e-1\\u0026\\u0026(null==(i=(t=e.widgets[s]).onRemove)||i.call(t),e.widgets.splice(s,1))}}}(),{showVideoPreview:a,removeVideoPreview:o}={showVideoPreview:function(e){var t;(null==(t=e.video)?void 0:t.length)\\u0026\\u0026e.widgets\\u0026\\u0026e.widgets.findIndex((e=\\u003ee.name===Zt))},removeVideoPreview:function(e){var t,i;if(!e.widgets)return;const s=e.widgets.findIndex((e=\\u003e\\\"video-preview\\\"===e.name));s\\u003e-1\\u0026\\u0026(null==(i=(t=e.widgets[s]).onRemove)||i.call(t),e.widgets.splice(s,1))}},l=Kt(e),r=Jt(e),d=l\\u0026\\u0026(e.images!==l.images||e.videos!==l.videos),u=r\\u0026\\u0026e.preview!==r;if(u\\u0026\\u0026(e.isOutputFinal=!1,e.isTwiceRendered\\u0026\\u0026(e.isTwiceRendered=!1),e.preview=r),d\\u0026\\u0026(e.isOutputFinal=!0,l.images\\u0026\\u0026(e.images=l.images),l.videos\\u0026\\u0026(e.videos=l.videos)),d||u){e.animatedImages=null==l?void 0:l.animated;const t=e.animatedImages\\u0026\\u0026l.images.some((e=\\u003e{var t;return null==(t=e.filename)?void 0:t.includes(\\\"webp\\\")})),i=e.animatedImages\\u0026\\u0026!t||!!(c=this)\\u0026\\u0026(!!c.videoContainer||!!c.widgets\\u0026\\u0026qt(c,Ht));d\\u0026\\u0026(null==l?void 0:l.videos)||i?ii(e).showPreview():ti(e).showPreview()}var c;e.id!=fe.runningNodeId\\u0026\\u0026!e.isTwiceRendered\\u0026\\u0026e.isOutputFinal\\u0026\\u0026(e.videos?ii(e.videos):ti(e).showPreview(),e.isTwiceRendered=!0),(null==(i=e.imgs)?void 0:i.length)\\u0026\\u0026(e.animatedImages||d\\u0026\\u0026(null==l?void 0:l.videos)?(n(e),a(e)):(o(e),s(e)))}const ni=[\\\"rescale_after_model\\\",\\\"rescale\\\",\\\"lora_name\\\",\\\"upscale_method\\\",\\\"image_output\\\",\\\"add_noise\\\",\\\"info\\\",\\\"sampler_name\\\",\\\"ckpt_B_name\\\",\\\"ckpt_C_name\\\",\\\"save_model\\\",\\\"refiner_ckpt_name\\\",\\\"num_loras\\\",\\\"num_controlnet\\\",\\\"mode\\\",\\\"toggle\\\",\\\"resolution\\\",\\\"ratio\\\",\\\"target_parameter\\\",\\\"input_count\\\",\\\"replace_count\\\",\\\"downscale_mode\\\",\\\"range_mode\\\",\\\"text_combine_mode\\\",\\\"input_mode\\\",\\\"lora_count\\\",\\\"ckpt_count\\\",\\\"conditioning_mode\\\",\\\"preset\\\",\\\"use_tiled\\\",\\\"use_batch\\\",\\\"num_embeds\\\",\\\"easing_mode\\\",\\\"guider\\\",\\\"scheduler\\\",\\\"inpaint_mode\\\",\\\"t5_type\\\",\\\"rem_mode\\\",\\\"encode\\\",\\\"method\\\"],ai=[\\\"LIGHT - SD1.5 only (low strength)\\\",\\\"STANDARD (medium strength)\\\",\\\"VIT-G (medium strength)\\\",\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\",\\\"PLUS (high strength)\\\",\\\"PLUS (kolors genernal)\\\",\\\"PLUS FACE (portraits)\\\",\\\"FULL FACE - SD1.5 only (portraits stronger)\\\",\\\"COMPOSITION\\\"],oi=[\\\"FACEID\\\",\\\"FACEID PLUS - SD1.5 only\\\",\\\"FACEID PLUS V2\\\",\\\"FACEID PLUS KOLORS\\\",\\\"FACEID PORTRAIT (style transfer)\\\",\\\"FACEID PORTRAIT UNNORM - SDXL only (strong)\\\"],li=[\\\"easy seed\\\",\\\"easy latentNoisy\\\",\\\"easy wildcards\\\",\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingNoiseIn\\\",\\\"easy preSamplingSdTurbo\\\",\\\"easy preSamplingCascade\\\",\\\"easy preSamplingDynamicCFG\\\",\\\"easy preSamplingLayerDiffusion\\\",\\\"easy fullkSampler\\\",\\\"easy fullCascadeKSampler\\\"],ri=[\\\"easy fullLoader\\\",\\\"easy a1111Loader\\\",\\\"easy comfyLoader\\\",\\\"easy hyditLoader\\\",\\\"easy pixArtLoader\\\"],di=[\\\"easy fullkSampler\\\",\\\"easy kSampler\\\",\\\"easy kSamplerCustom\\\",\\\"easy kSamplerTiled\\\",\\\"easy kSamplerLayerDiffusion\\\",\\\"easy kSamplerInpainting\\\",\\\"easy kSamplerDownscaleUnet\\\",\\\"easy kSamplerSDTurbo\\\",\\\"easy fullCascadeKSampler\\\",\\\"easy cascadeKSampler\\\"],ui=[\\\"easy imageSize\\\",\\\"easy imageSizeBySide\\\",\\\"easy imageSizeByLongerSide\\\",\\\"easy imageSizeShow\\\",\\\"easy imageRatio\\\",\\\"easy imagePixelPerfect\\\"],ci=[\\\"easy forLoopStart\\\",\\\"easy forLoopEnd\\\",\\\"easy whileLoopStart\\\",\\\"easy whileLoopEnd\\\"],Ai=[\\\"easy anythingIndexSwitch\\\",\\\"easy imageIndexSwitch\\\",\\\"easy textIndexSwitch\\\",\\\"easy conditioningIndexSwitch\\\"],pi=[\\\"easy anythingInversedSwitch\\\"],hi=[\\\"easy loadImagesForLoop\\\",...ci,...Ai,...pi],mi={\\\"easy anythingInversedSwitch\\\":\\\"out\\\",\\\"easy anythingIndexSwitch\\\":\\\"value\\\",\\\"easy imageIndexSwitch\\\":\\\"image\\\",\\\"easy textIndexSwitch\\\":\\\"text\\\",\\\"easy conditioningIndexSwitch\\\":\\\"cond\\\"};function fi(e,t){var i;const s=e.comfyClass;let n=t.value;switch(t.name){case\\\"range_mode\\\":bt(e,wt(e,\\\"step\\\"),\\\"step\\\"==n),bt(e,wt(e,\\\"num_steps\\\"),\\\"num_steps\\\"==n),St(e);break;case\\\"text_combine_mode\\\":bt(e,wt(e,\\\"replace_text\\\"),\\\"replace\\\"==n);break;case\\\"lora_name\\\":[\\\"lora_model_strength\\\",\\\"lora_clip_strength\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"None\\\"!==n)));break;case\\\"resolution\\\":\\\"自定义 x 自定义\\\"===n\\u0026\\u0026(t.value=\\\"width x height (custom)\\\"),[\\\"empty_latent_width\\\",\\\"empty_latent_height\\\",\\\"width\\\",\\\"height\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"width x height (custom)\\\"===n)));break;case\\\"ratio\\\":[\\\"empty_latent_width\\\",\\\"empty_latent_height\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"custom\\\"===n)));break;case\\\"num_loras\\\":var a=n+1,o=null==(i=wt(e,\\\"mode\\\"))?void 0:i.value;requestAnimationFrame((t=\\u003e{for(let i=0;i\\u003ca;i++)bt(e,wt(e,\\\"lora_\\\"+i+\\\"_name\\\"),!0),bt(e,wt(e,\\\"lora_\\\"+i+\\\"_strength\\\"),\\\"simple\\\"===o),[\\\"lora_\\\"+i+\\\"_model_strength\\\",\\\"lora_\\\"+i+\\\"_clip_strength\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"simple\\\"!==o)));for(let i=a;i\\u003c99;i++)[\\\"lora_\\\"+i+\\\"_name\\\",\\\"lora_\\\"+i+\\\"_strength\\\",\\\"lora_\\\"+i+\\\"_model_strength\\\",\\\"lora_\\\"+i+\\\"_clip_strength\\\"].map((t=\\u003ebt(e,wt(e,t),!1)));St(e)}));break;case\\\"num_controlnet\\\":a=n+1,o=wt(e,\\\"mode\\\").value;for(let t=0;t\\u003ca;t++)[\\\"controlnet_\\\"+t,\\\"controlnet_\\\"+t+\\\"_strength\\\",\\\"scale_soft_weight_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!0))),[\\\"start_percent_\\\"+t,\\\"end_percent_\\\"+t].map((t=\\u003ebt(e,wt(e,t),\\\"simple\\\"!==o)));for(let t=a;t\\u003c21;t++)[\\\"controlnet_\\\"+t,\\\"controlnet_\\\"+t+\\\"_strength\\\",\\\"scale_soft_weight_\\\"+t,\\\"start_percent_\\\"+t,\\\"end_percent_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\"mode\\\":switch(null==e?void 0:e.comfyClass){case\\\"easy loraStack\\\":a=wt(e,\\\"num_loras\\\").value+1,o=n;for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"lora_\\\"+t+\\\"_strength\\\"),\\\"simple\\\"===o),[\\\"lora_\\\"+t+\\\"_model_strength\\\",\\\"lora_\\\"+t+\\\"_clip_strength\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"simple\\\"!==o)));St(e);break;case\\\"easy controlnetStack\\\":a=wt(e,\\\"num_controlnet\\\").value+1,o=n;for(let t=0;t\\u003ca;t++)[\\\"start_percent_\\\"+t,\\\"end_percent_\\\"+t].map((t=\\u003ebt(e,wt(e,t),\\\"simple\\\"!==o)));St(e);break;case\\\"easy icLightApply\\\":o=n;[\\\"lighting\\\",\\\"remove_bg\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"Foreground\\\"===o))),bt(e,wt(e,\\\"source\\\"),\\\"Foreground\\\"!==o),St(e)}break;case\\\"toggle\\\":t.type=\\\"toggle\\\",t.options={on:\\\"Enabled\\\",off:\\\"Disabled\\\"};break;case\\\"t5_type\\\":[\\\"clip_name\\\",\\\"padding\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"sd3\\\"==n))),[\\\"t5_name\\\",\\\"device\\\",\\\"dtype\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"t5v11\\\"==n))),St(e);break;case\\\"preset\\\":if(\\\"FLUX.1-dev\\\"==n\\u0026\\u0026(t.value=\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\"),ai.includes(n)){let t=wt(e,\\\"use_tiled\\\");bt(e,wt(e,\\\"lora_strength\\\")),bt(e,wt(e,\\\"provider\\\"),!![\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\"].includes(n)),bt(e,wt(e,\\\"weight_faceidv2\\\")),bt(e,wt(e,\\\"weight_kolors\\\")),bt(e,wt(e,\\\"use_tiled\\\"),!0),bt(e,wt(e,\\\"sharpening\\\"),t\\u0026\\u0026t.value)}else oi.includes(n)\\u0026\\u0026(bt(e,wt(e,\\\"weight_faceidv2\\\"),!![\\\"FACEID PLUS V2\\\",\\\"FACEID PLUS KOLORS\\\"].includes(n)),bt(e,wt(e,\\\"weight_kolors\\\"),!![\\\"FACEID PLUS KOLORS\\\"].includes(t.value)),[\\\"FACEID PLUS KOLORS\\\",\\\"FACEID PORTRAIT (style transfer)\\\",\\\"FACEID PORTRAIT UNNORM - SDXL only (strong)\\\"].includes(n)?bt(e,wt(e,\\\"lora_strength\\\"),!1):bt(e,wt(e,\\\"lora_strength\\\"),!0),bt(e,wt(e,\\\"provider\\\"),!0),bt(e,wt(e,\\\"use_tiled\\\")),bt(e,wt(e,\\\"sharpening\\\")));St(e);break;case\\\"use_tiled\\\":bt(e,wt(e,\\\"sharpening\\\"),!!n),St(e);break;case\\\"num_embeds\\\":a=n+1;for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"weight\\\"+t),!0);for(let t=a;t\\u003c6;t++)bt(e,wt(e,\\\"weight\\\"+t));St(e);break;case\\\"inpaint_mode\\\":switch(n){case\\\"normal\\\":case\\\"fooocus_inpaint\\\":[\\\"dtype\\\",\\\"fitting\\\",\\\"function\\\",\\\"scale\\\",\\\"start_at\\\",\\\"end_at\\\"].map((t=\\u003ebt(e,wt(e,t),!1)));break;case\\\"brushnet_random\\\":case\\\"brushnet_segmentation\\\":[\\\"dtype\\\",\\\"scale\\\",\\\"start_at\\\",\\\"end_at\\\"].map((t=\\u003ebt(e,wt(e,t),!0))),[\\\"fitting\\\",\\\"function\\\"].map((t=\\u003ebt(e,wt(e,t),!1)));break;case\\\"powerpaint\\\":[\\\"dtype\\\",\\\"fitting\\\",\\\"function\\\",\\\"scale\\\",\\\"start_at\\\",\\\"end_at\\\"].map((t=\\u003ebt(e,wt(e,t),!0)))}St(e);break;case\\\"encode\\\":bt(e,wt(e,\\\"noise_mask\\\"),!![\\\"inpaint_model_conditioning\\\",\\\"different_diffusion\\\"].includes(n)),St(e);break;case\\\"image_output\\\":bt(e,wt(e,\\\"link_id\\\"),!![\\\"Sender\\\",\\\"Sender\\u0026Save\\\"].includes(n)),bt(e,wt(e,\\\"decode_vae_name\\\"),!![\\\"Hide\\\",\\\"Hide\\u0026Save\\\"].includes(n)),[\\\"save_prefix\\\",\\\"output_path\\\",\\\"embed_workflow\\\",\\\"number_padding\\\",\\\"overwrite_existing\\\"].map((t=\\u003ebt(e,wt(e,t),!![\\\"Save\\\",\\\"Hide\\u0026Save\\\",\\\"Sender\\u0026Save\\\"].includes(n))));break;case\\\"add_noise\\\":var l=wt(e,\\\"control_before_generate\\\"),r=wt(e,\\\"control_after_generate\\\")||l;\\\"disable\\\"===n?(bt(e,wt(e,\\\"seed\\\")),r\\u0026\\u0026(r.last_value=r.value,r.value=\\\"fixed\\\",bt(e,r))):(\\\"enable\\\"===n\\u0026\\u0026(t.value=\\\"enable (CPU)\\\"),bt(e,wt(e,\\\"seed\\\"),!0),r\\u0026\\u0026((null==r?void 0:r.last_value)\\u0026\\u0026(r.value=r.last_value),bt(e,r,!0))),St(e);break;case\\\"guider\\\":switch(n){case\\\"Basic\\\":case\\\"IP2P+Basic\\\":[\\\"cfg_negative\\\"].map((t=\\u003ebt(e,wt(e,t))));break;case\\\"CFG\\\":case\\\"IP2P+CFG\\\":bt(e,wt(e,\\\"cfg\\\"),!0),bt(e,wt(e,\\\"cfg_negative\\\"));break;case\\\"DualCFG\\\":case\\\"IP2P+DualCFG\\\":[\\\"cfg\\\",\\\"cfg_negative\\\"].map((t=\\u003ebt(e,wt(e,t),!0)))}St(e);break;case\\\"scheduler\\\":\\\"easy preSamplingCustom\\\"==s\\u0026\\u0026([\\\"karrasADV\\\",\\\"exponentialADV\\\",\\\"polyExponential\\\"].includes(n)?([\\\"sigma_max\\\",\\\"sigma_min\\\"].map((t=\\u003ebt(e,wt(e,t),!0))),[\\\"denoise\\\",\\\"beta_d\\\",\\\"beta_min\\\",\\\"eps_s\\\",\\\"coeff\\\"].map((t=\\u003ebt(e,wt(e,t))),!1),bt(e,wt(e,\\\"rho\\\"),\\\"exponentialADV\\\"!=n)):\\\"vp\\\"==n?([\\\"sigma_max\\\",\\\"sigma_min\\\",\\\"denoise\\\",\\\"rho\\\",\\\"coeff\\\"].map((t=\\u003ebt(e,wt(e,t)))),[\\\"beta_d\\\",\\\"beta_min\\\",\\\"eps_s\\\"].map((t=\\u003ebt(e,wt(e,t),!0)))):([\\\"sigma_max\\\",\\\"sigma_min\\\",\\\"beta_d\\\",\\\"beta_min\\\",\\\"eps_s\\\",\\\"rho\\\"].map((t=\\u003ebt(e,wt(e,t)))),bt(e,wt(e,\\\"coeff\\\"),\\\"gits\\\"==n),bt(e,wt(e,\\\"denoise\\\"),!0)),St(e));break;case\\\"conditioning_mode\\\":[\\\"replace\\\",\\\"concat\\\",\\\"combine\\\"].includes(n)?[\\\"average_strength\\\",\\\"old_cond_start\\\",\\\"old_cond_end\\\",\\\"new_cond_start\\\",\\\"new_cond_end\\\"].map((t=\\u003ebt(e,wt(e,t)))):\\\"average\\\"==n?(bt(e,wt(e,\\\"average_strength\\\"),!0),[\\\"old_cond_start\\\",\\\"old_cond_end\\\",\\\"new_cond_start\\\",\\\"new_cond_end\\\"].map((t=\\u003ebt(e,wt(e,t),!1)))):\\\"timestep\\\"==n\\u0026\\u0026([\\\"average_strength\\\"].map((t=\\u003ebt(e,wt(e,t),!1))),[\\\"old_cond_start\\\",\\\"old_cond_end\\\",\\\"new_cond_start\\\",\\\"new_cond_end\\\"].map((t=\\u003ebt(e,wt(e,t),!0))));break;case\\\"rescale\\\":wt(e,\\\"rescale_after_model\\\").value,bt(e,wt(e,\\\"width\\\"),\\\"to Width/Height\\\"===n),bt(e,wt(e,\\\"height\\\"),\\\"to Width/Height\\\"===n),bt(e,wt(e,\\\"percent\\\"),\\\"by percentage\\\"===n),bt(e,wt(e,\\\"longer_side\\\"),\\\"to longer side - maintain aspect\\\"===n),St(e);break;case\\\"upscale_method\\\":[\\\"factor\\\",\\\"crop\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"None\\\"!==n)));break;case\\\"target_parameter\\\":switch(s){case\\\"easy XYInputs: Steps\\\":[\\\"first_step\\\",\\\"last_step\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"steps\\\"==n))),[\\\"first_start_step\\\",\\\"last_start_step\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"start_at_step\\\"==n))),[\\\"first_end_step\\\",\\\"last_end_step\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"end_at_step\\\"==n)));break;case\\\"easy XYInputs: Sampler/Scheduler\\\":let t=wt(e,\\\"input_count\\\").value+1;for(let i=0;i\\u003ct;i++)bt(e,wt(e,\\\"sampler_\\\"+i),\\\"scheduler\\\"!==n),bt(e,wt(e,\\\"scheduler_\\\"+i),\\\"sampler\\\"!==n);St(e);break;case\\\"easy XYInputs: ControlNet\\\":[\\\"first_strength\\\",\\\"last_strength\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"strength\\\"==n))),[\\\"first_start_percent\\\",\\\"last_start_percent\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"start_percent\\\"==n))),[\\\"first_end_percent\\\",\\\"last_end_percent\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"end_percent\\\"==n))),[\\\"strength\\\",\\\"start_percent\\\",\\\"end_percent\\\"].map((t=\\u003ebt(e,wt(e,t),n!=t))),St(e)}case\\\"replace_count\\\":a=n+1;for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"replace_\\\"+t),!0);for(let t=a;t\\u003c31;t++)bt(e,wt(e,\\\"replace_\\\"+t));St(e);break;case\\\"lora_count\\\":a=n+1;var d=-1==wt(e,\\\"input_mode\\\").value.indexOf(\\\"Weights\\\");for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"lora_name_\\\"+t),!0),[\\\"model_str_\\\"+t,\\\"clip_str_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!d)));for(let t=a;t\\u003c11;t++)[\\\"lora_name_\\\"+t,\\\"model_str_\\\"+t,\\\"clip_str_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\"ckpt_count\\\":a=n+1;var u=-1!=wt(e,\\\"input_mode\\\").value.indexOf(\\\"ClipSkip\\\"),c=-1!=wt(e,\\\"input_mode\\\").value.indexOf(\\\"VAE\\\");for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"ckpt_name_\\\"+t),!0),bt(e,wt(e,\\\"clip_skip_\\\"+t),!!u),bt(e,wt(e,\\\"vae_name_\\\"+t),!!c);for(let t=a;t\\u003c11;t++)[\\\"ckpt_name_\\\"+t,\\\"clip_skip_\\\"+t,\\\"vae_name_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\"input_count\\\":a=n+1;var A=wt(e,\\\"target_parameter\\\").value;for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"sampler_\\\"+t),\\\"scheduler\\\"!==A),bt(e,wt(e,\\\"scheduler_\\\"+t),\\\"sampler\\\"!==A);for(let t=a;t\\u003c31;t++)bt(e,wt(e,\\\"sampler_\\\"+t)),bt(e,wt(e,\\\"scheduler_\\\"+t));St(e);break;case\\\"input_mode\\\":switch(s){case\\\"easy XYInputs: Lora\\\":a=wt(e,\\\"lora_count\\\").value+1;const t=-1!=n.indexOf(\\\"Weights\\\");for(let i=0;i\\u003ca;i++)bt(e,wt(e,\\\"lora_name_\\\"+i),!0),[\\\"model_str_\\\"+i,\\\"clip_str_\\\"+i].map((i=\\u003ebt(e,wt(e,i),!!t)));[\\\"model_strength\\\",\\\"clip_strength\\\"].map((i=\\u003ebt(e,wt(e,i),!t)));break;case\\\"easy XYInputs: Checkpoint\\\":a=wt(e,\\\"ckpt_count\\\").value+1,u=-1!=wt(e,\\\"input_mode\\\").value.indexOf(\\\"ClipSkip\\\"),c=-1!=wt(e,\\\"input_mode\\\").value.indexOf(\\\"VAE\\\");for(let i=0;i\\u003ca;i++)bt(e,wt(e,\\\"ckpt_name_\\\"+i),!0),bt(e,wt(e,\\\"clip_skip_\\\"+i),!!u),bt(e,wt(e,\\\"vae_name_\\\"+i),!!c)}St(e);break;case\\\"rem_mode\\\":bt(e,wt(e,\\\"torchscript_jit\\\"),\\\"Inspyrenet\\\"===n),bt(e,wt(e,\\\"refine_foreground\\\"),\\\"BEN2\\\"===n),St(e)}}fe.registerExtension({name:\\\"Comfy.EasyUse.Widget\\\",async beforeRegisterNodeDef(e,t,i){var s;const n=t.name,a=e.prototype.onAdded,o=e.prototype.onNodeCreated,l=e.prototype.onConfigure,r=e.prototype.onExecuted,d=e.prototype.onConnectionsChange;if([\\\"easy showAnything\\\",\\\"easy showAnythingLazy\\\",\\\"easy showTensorShape\\\",\\\"easy showSpentTime\\\",\\\"easy imageInterrogator\\\",\\\"easy showLoaderSettingsNames\\\"].includes(n)){let s=function(e,t=\\\"text\\\"){var s,n;if(this.widgets){const e=this.widgets.findIndex((e=\\u003ee.name===t));if(-1!==e){for(let t=e;t\\u003cthis.widgets.length;t++)null==(n=(s=this.widgets[t]).onRemove)||n.call(s);this.widgets.length=e}}for(const a of e){const e=we.STRING(this,\\\"text\\\",[\\\"STRING\\\",{multiline:!0}],i).widget;e.element\\u0026\\u0026(e.element.readOnly=!0,e.element.style.opacity=.6),e.value=a}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments),s.call(this,e.text,\\\"text\\\")},[\\\"easy imageInterrogator\\\"].includes(t.name)||(e.prototype.onConfigure=function(){var e;null==l||l.apply(this,arguments);let t=\\\"text\\\";switch(n){case\\\"easy showLoaderSettingsNames\\\":t=\\\"names\\\";break;case\\\"easy showSpentTime\\\":t=\\\"spent_time\\\";break;default:t=\\\"text\\\"}(null==(e=this.widgets_values)?void 0:e.length)\\u0026\\u0026s.call(this,this.widgets_values,t)})}if(ui.includes(n)){let t=function(e){if(this.widgets){const t=this.widgets.findIndex((e=\\u003e\\\"info\\\"===e.name));if(-1!==t\\u0026\\u0026this.widgets[t]){this.widgets[t].value=e}}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments);var i=\\\"\\\";for(let t=0;t\\u003ce.text.length;t++)i+=e.text[t];t.call(this,i)}}if(\\\"easy promptLine\\\"==n\\u0026\\u0026(e.prototype.onAdded=async function(){a\\u0026\\u0026a.apply(this,[]);let e=this.widgets.find((e=\\u003e\\\"prompt\\\"==e.name));this.addWidget(\\\"button\\\",\\\"get values from COMBO link\\\",\\\"\\\",(()=\\u003e{var t,s;const n=(null==(s=null==(t=this.outputs[1])?void 0:t.links)?void 0:s.length)\\u003e0?this.outputs[1].links[0]:null,a=i.graph._nodes.find((e=\\u003e{var t;return null==(t=e.inputs)?void 0:t.find((e=\\u003ee.link==n))}));if(n\\u0026\\u0026a){const t=a.inputs.find((e=\\u003ee.link==n)).widget.name,i=a.widgets.find((e=\\u003ee.name==t));let s=(null==i?void 0:i.options.values)||null;s\\u0026\\u0026(s=s.join(\\\"\\\\n\\\"),e.value=s)}else Ye.error(Ne(\\\"No COMBO link\\\"),3e3)}),{serialize:!1})}),ri.includes(t.name)){let t=function(e){var t=\\\"\\\";for(let i=0;i\\u003ce.length;i++)t+=e[i];return t},i=function(e,t=\\\"positive\\\"){if(this.widgets){const i=this.widgets.findIndex((e=\\u003ee.name===t+\\\"_prompt\\\")),s=\\\"comfy-multiline-input wildcard_\\\"+t+\\\"_\\\"+this.id.toString();if(-1==i\\u0026\\u0026e){const i=document.createElement(\\\"textarea\\\");i.className=s,i.placeholder=\\\"Wildcard Prompt (\\\"+t+\\\")\\\";const n=this.addDOMWidget(t+\\\"_prompt\\\",\\\"customtext\\\",i,{getValue:e=\\u003ei.value,setValue(e){i.value=e},serialize:!1});n.inputEl=i,n.inputEl.readOnly=!0,i.addEventListener(\\\"input\\\",(()=\\u003e{var e;null==(e=n.callback)||e.call(n,n.value)})),n.value=e}else if(this.widgets[i])if(e){this.widgets[i].value=e}else{this.widgets.splice(i,1);const e=document.getElementsByClassName(s);e\\u0026\\u0026e[0]\\u0026\\u0026e[0].remove()}}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments);const s=t(e.positive),n=t(e.negative);i.call(this,s,\\\"positive\\\"),i.call(this,n,\\\"negative\\\")}}if([\\\"easy sv3dLoader\\\"].includes(t.name)){let t=function(e,t,i){switch(e){case\\\"azimuth\\\":return i.readOnly=!0,i.style.opacity=.6,\\\"0:(0.0,0.0)\\\"+(t\\u003e1?`\\\\n${t-1}:(360.0,0.0)`:\\\"\\\");case\\\"elevation\\\":return i.readOnly=!0,i.style.opacity=.6,\\\"0:(-90.0,0.0)\\\"+(t\\u003e1?`\\\\n${t-1}:(90.0,0.0)`:\\\"\\\");case\\\"custom\\\":return i.readOnly=!1,i.style.opacity=1,\\\"0:(0.0,0.0)\\\\n9:(180.0,0.0)\\\\n20:(360.0,0.0)\\\"}};e.prototype.onNodeCreated=async function(){o\\u0026\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\u003e\\\"easing_mode\\\"==e.name)),i=this.widgets.find((e=\\u003e\\\"batch_size\\\"==e.name)),s=this.widgets.find((e=\\u003e\\\"scheduler\\\"==e.name));setTimeout((n=\\u003e{s.value||(s.value=t(e.value,i.value,s.inputEl))}),1),e.callback=e=\\u003e{s.value=t(e,i.value,s.inputEl)},i.callback=i=\\u003e{s.value=t(e.value,i,s.inputEl)}}}if(li.includes(n)\\u0026\\u0026(e.prototype.onNodeCreated=async function(){o\\u0026\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\u003e[\\\"seed_num\\\",\\\"seed\\\"].includes(e.name))),s=this.widgets.find((e=\\u003e[\\\"control before generate\\\",\\\"control after generate\\\",\\\"control_before_generate\\\",\\\"control_after_generate\\\"].includes(e.name)));if(\\\"easy seed\\\"==t.name\\u0026\\u0026s){const t=this.addWidget(\\\"button\\\",\\\"🎲 Manual Random Seed\\\",null,(t=\\u003e{\\\"fixed\\\"!=s.value\\u0026\\u0026(s.value=\\\"fixed\\\"),e.value=Math.floor(Math.random()*Oe),i.queuePrompt(0,1)}),{serialize:!1});e.linkedWidgets=[t,s]}},e.prototype.onAdded=async function(){a\\u0026\\u0026a.apply(this,[]);const e=this.widgets.find((e=\\u003e[\\\"seed_num\\\",\\\"seed\\\"].includes(e.name))),t=this.widgets.find((e=\\u003e[\\\"control before generate\\\",\\\"control after generate\\\",\\\"control_before_generate\\\",\\\"control_after_generate\\\"].includes(e.name)));t\\u0026\\u0026setTimeout((i=\\u003e{[\\\"control before generate\\\",\\\"control_before_generate\\\"].includes(t.name)\\u0026\\u00260===e.value\\u0026\\u0026(e.value=Math.floor(Math.random()*Oe))}),1)}),\\\"easy convertAnything\\\"==n\\u0026\\u0026(e.prototype.onNodeCreated=async function(){o\\u0026\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\u003e\\\"output_type\\\"==e.name)),t=t=\\u003e{this.outputs[0].type=e.value.toUpperCase(),this.outputs[0].name=e.value,this.outputs[0].label=e.value};setTimeout((e=\\u003et()),10),e.callback=e=\\u003et()}),\\\"easy imageInsetCrop\\\"==n){let t=function(e){const t=e.widgets[0];for(let i=1;i\\u003c=4;i++)\\\"Pixels\\\"===t.value?(e.widgets[i].options.step=80,void 0!==e.widgets[i].options.step2\\u0026\\u0026(e.widgets[i].options.step2=8),e.widgets[i].options.max=8192):(e.widgets[i].options.step=10,void 0!==e.widgets[i].options.step2\\u0026\\u0026(e.widgets[i].options.step2=1),e.widgets[i].options.max=99)};e.prototype.onAdded=async function(e){const i=this.widgets[0];let s=i.callback;i.callback=(...e)=\\u003e{t(this),s\\u0026\\u0026s.apply(i,[...e])},setTimeout((e=\\u003e{t(this)}),1)}}if(hi.includes(n)){const t=e=\\u003e{switch(n){case\\\"easy forLoopStart\\\":case\\\"easy whileLoopStart\\\":return 0;case\\\"easy forLoopEnd\\\":case\\\"easy whileLoopEnd\\\":return 1}},i=e=\\u003e{switch(n){case\\\"easy forLoopStart\\\":return 2;case\\\"easy forLoopEnd\\\":case\\\"easy whileLoopEnd\\\":return 0;case\\\"easy whileLoopStart\\\":return 1}};e.prototype.onNodeCreated=async function(){if(\\\"easy loadImagesForLoop\\\"==n\\u0026\\u0026(this.outputs[0].shape=5),ci.includes(n)){const e=this.inputs.findIndex((e=\\u003e\\\"flow\\\"===e.name)),s=this.outputs.findIndex((e=\\u003e\\\"flow\\\"===e.name));-1!==e\\u0026\\u0026(this.inputs[e].shape=5),-1!==s\\u0026\\u0026(this.outputs[s].shape=5),this.inputs=this.inputs.filter(((e,i)=\\u003ei\\u003c=t()||e.widget)),this.outputs=this.outputs.filter(((e,t)=\\u003et\\u003c=i())),St(this)}return Ai.includes(n)\\u0026\\u0026(\\\"easy textIndexSwitch\\\"==n\\u0026\\u0026(this.widgets=this.widgets.filter(((e,t)=\\u003et\\u003c=2))),this.inputs=this.inputs.filter(((e,t)=\\u003et\\u003c=1||e.widget)),St(this)),null==o?void 0:o.apply(this,arguments)},e.prototype.onConnectionsChange=function(e,s,a,o){var l,r;if(o)if(1==e){let e=this.inputs.every((e=\\u003enull!==e.link||e.widget)),i=this.inputs.filter((e=\\u003e![\\\"condition\\\",\\\"index\\\",\\\"total\\\"].includes(e.name)));if(ci.includes(n)){if(e){if(i.length\\u003e=20)return void Ye.warn(Ne(\\\"The maximum number of inputs is 20\\\"));let e=i[i.length-1],t=parseInt(e.name.split(\\\"initial_value\\\")[1])+1;if(this.inputs.find((e=\\u003ee.name===\\\"initial_value\\\"+t)))return;let s=\\\"initial_value\\\"+t,n=\\\"value\\\"+t;this.addInput(s,\\\"*\\\"),this.addOutput(n,\\\"*\\\")}else if(!a){const e=t();let i=this.inputs.findLastIndex((e=\\u003ee.link));if(s\\u003e=e\\u0026\\u0026(-1===i||s\\u003e=i)){let e=this.inputs[s];if(!e.name||[\\\"condition\\\",\\\"total\\\"].includes(e.name))return;let t=parseInt(e.name.split(\\\"initial_value\\\")[1])+1,i=this.inputs.findIndex((e=\\u003ee.name===\\\"initial_value\\\"+t)),n=this.outputs.findIndex((e=\\u003ee.name===\\\"value\\\"+t));-1!==i\\u0026\\u0026this.removeInput(i),-1!==n\\u0026\\u0026this.removeOutput(n)}}}else if(Ai.includes(n))if(e){if(i.length\\u003e=20)return void Ye.warn(Ne(\\\"The maximum number of inputs is 20\\\"));let e=mi[n]+i.length;this.addInput(e,\\\"*\\\")}else a||s==this.inputs.length-2\\u0026\\u0026this.removeInput(s+1)}else if(2==e){let e=this.outputs.filter((e=\\u003e![\\\"flow\\\",\\\"index\\\"].includes(e.name))),t=e.every((e=\\u003e{var t;return(null==(t=e.links)?void 0:t.length)\\u003e0}));if(ci.includes(n)){if(t){if(e.length\\u003e=20)return void Ye.warn(Ne(\\\"The maximum number of outputs is 20\\\"));let t=e[e.length-1],i=parseInt(t.name.split(\\\"value\\\")[1])+1;if(this.inputs.find((e=\\u003ee.name===\\\"initial_value\\\"+i)))return;if(this.outputs.find((e=\\u003ee.name===\\\"value\\\"+i)))return;let s=\\\"initial_value\\\"+i,n=\\\"value\\\"+i;this.addInput(s,\\\"*\\\"),this.addOutput(n,\\\"*\\\")}else if(!a){const e=i();let t=o.origin_slot,s=this.outputs.findLastIndex((e=\\u003e{var t;return(null==(t=e.links)?void 0:t.length)\\u003e0}));if(t\\u003e=e\\u0026\\u0026(-1===s||t\\u003e=s)){let e=this.outputs[t];if(!e.name||[\\\"flow\\\",\\\"index\\\"].includes(e.name))return;let i=parseInt(e.name.split(\\\"value\\\")[1])+1,s=this.inputs.findIndex((e=\\u003ee.name===\\\"initial_value\\\"+i)),n=this.outputs.findIndex((e=\\u003ee.name===\\\"value\\\"+i));if(-1!==s\\u0026\\u0026(null==(l=this.inputs[s])?void 0:l.link))return;-1!==s\\u0026\\u0026this.removeInput(s),-1!==n\\u0026\\u0026this.removeOutput(n)}}}else if(pi.includes(n))if(t){if(e.length\\u003e=20)return void Ye.warn(Ne(\\\"The maximum number of outputs is 20\\\"));let t=mi[n]+e.length;this.addOutput(t,\\\"*\\\")}else if(!a){let t=o.origin_slot;t==this.outputs.length-2\\u0026\\u00260==(null==(r=e[t].links)?void 0:r.length)\\u0026\\u0026this.removeOutput(t+1)}}}}if([\\\"easy fluxLoader\\\",\\\"easy fullLoader\\\"].includes(n)\\u0026\\u0026(e.prototype.onConnectionsChange=async function(e,t){d\\u0026\\u0026d.apply(this,[]);const i=this.inputs.find((e=\\u003e\\\"model_override\\\"===e.name)),s=this.inputs.find((e=\\u003e\\\"vae_override\\\"===e.name));let n=wt(this,\\\"ckpt_name\\\"),a=wt(this,\\\"vae_name\\\");if((null==i?void 0:i.link)\\u0026\\u00260==t){const e=(null==n?void 0:n.options.values)||[];setTimeout((t=\\u003e{this.widgets[0].value=(null==e?void 0:e[0])||\\\"None\\\",bt(this,n,!(null==i?void 0:i.link))}),1)}else bt(this,n,!(null==i?void 0:i.link));if(!(null==s?void 0:s.link)||1!=t\\u0026\\u00262!=t)bt(this,a,!(null==s?void 0:s.link));else{let e=this.widgets.findIndex((e=\\u003e\\\"vae_name\\\"==e.name));setTimeout((t=\\u003e{this.widgets[e].value=\\\"Baked VAE\\\",bt(this,a,!(null==s?void 0:s.link))}),1)}}),di.includes(n)||-1!==n.indexOf(\\\"workflow\\\")){const i=(null==(s=null==t?void 0:t.input)?void 0:s.required)||{};if(!i.image_output\\u0026\\u0026!i[\\\"图像输出\\\"]\\u0026\\u0026!i[\\\"视频输出\\\"])return;e.prototype.onDrawBackground=function(e){try{si(this)}catch(t){}}}},nodeCreated(e){if(e.comfyClass.startsWith(\\\"easy \\\")){if(e.widgets)for(const i of e.widgets){if(!ni.includes(i.name))continue;let t=i.value;fi(e,i),Object.defineProperty(i,\\\"value\\\",{get:e=\\u003et,set(s){s!==t\\u0026\\u0026(t=s,requestAnimationFrame((t=\\u003e{fi(e,i)})))}})}const t=e.comfyClass;if(\\\"easy preDetailerFix\\\"==t){const t=e.widgets.find((e=\\u003e\\\"customtext\\\"===e.type));if(!t)return;t.dynamicPrompts=!1,t.inputEl.placeholder=\\\"wildcard spec: if kept empty, this option will be ignored\\\",t.serializeValue=()=\\u003et.value}if([\\\"easy wildcards\\\",\\\"easy wildcardsMatrix\\\"].includes(t)){const t=e.widgets.find((e=\\u003e\\\"text\\\"==e.name));let i=1;Object.defineProperty(e.widgets[i],\\\"value\\\",{set:e=\\u003e{if(\\\"Select the LoRA to add to the text\\\"!=e){let i=e;i.endsWith(\\\".safetensors\\\")\\u0026\\u0026(i=i.slice(0,-12)),t.value+=`\\u003clora:${i}\\u003e`}},get:e=\\u003e\\\"Select the LoRA to add to the text\\\"}),Object.defineProperty(e.widgets[i+1],\\\"value\\\",{set:e=\\u003e{\\\"Select the Wildcard to add to the text\\\"!=e\\u0026\\u0026(\\\"\\\"!=t.value\\u0026\\u0026(t.value+=\\\", \\\"),t.value+=e)},get:e=\\u003e\\\"Select the Wildcard to add to the text\\\"}),e.widgets[i].serializeValue=e=\\u003e\\\"Select the LoRA to add to the text\\\",e.widgets[i+1].serializeValue=e=\\u003e\\\"Select the Wildcard to add to the text\\\"}if(\\\"easy prompt\\\"==t){const t=e.widgets.find((e=\\u003e\\\"text\\\"==e.name));let i=1;Object.defineProperty(e.widgets[i],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"Select the prefix to add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\" \\\"+s)},get:e=\\u003e\\\"Select the prefix to add to the text\\\"}),Object.defineProperty(e.widgets[i+1],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"👤Select the subject add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+1])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\" \\\"+s)},get:e=\\u003e\\\"👤Select the subject add to the text\\\"}),Object.defineProperty(e.widgets[i+2],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"🎬Select the action add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+2])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\",\\\"+s)},get:e=\\u003e\\\"🎬Select the action add to the text\\\"}),Object.defineProperty(e.widgets[i+3],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"👚Select the clothes add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+3])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\",\\\"+s)},get:e=\\u003e\\\"👚Select the clothes add to the text\\\"}),Object.defineProperty(e.widgets[i+4],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"☀️Select the illumination environment add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+4])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\",\\\"+s)},get:e=\\u003e\\\"☀️Select the illumination environment add to the text\\\"}),Object.defineProperty(e.widgets[i+5],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"🎞️Select the background add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+5])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\" \\\"+s)},get:e=\\u003e\\\"🎞️Select the background add to the text\\\"}),Object.defineProperty(e.widgets[i+6],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"🔞Select the nsfw add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+6])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\",\\\"+s)},get:e=\\u003e\\\"🔞Select the nsfw add to the text\\\"}),e.widgets[i].serializeValue=e=\\u003e\\\"Select the prefix add to the text\\\",e.widgets[i+1].serializeValue=e=\\u003e\\\"👤Select the subject add to the text\\\",e.widgets[i+2].serializeValue=e=\\u003e\\\"🎬Select the action add to the text\\\",e.widgets[i+3].serializeValue=e=\\u003e\\\"👚Select the clothes add to the text\\\",e.widgets[i+4].serializeValue=e=\\u003e\\\"☀️Select the illumination environment add to the text\\\",e.widgets[i+5].serializeValue=e=\\u003e\\\"🎞️Select the background add to the text\\\",e.widgets[i+6].serializeValue=e=\\u003e\\\"🔞Select the nsfw add to the text\\\"}if(ui.includes(t)){const t=document.createElement(\\\"textarea\\\");t.className=\\\"comfy-multiline-input\\\",t.readOnly=!0;const i=e.addDOMWidget(\\\"info\\\",\\\"customtext\\\",t,{getValue:e=\\u003et.value,setValue:e=\\u003et.value=e,serialize:!1});i.inputEl=t,t.addEventListener(\\\"input\\\",(()=\\u003e{var e;null==(e=i.callback)||e.call(i,i.value)}))}}}});const gi=LiteGraph.LGraphNode;fe.registerExtension({name:\\\"easy bookmark\\\",registerCustomNodes(){class e extends gi{constructor(){super(\\\"🔖\\\"),v(this,\\\"type\\\",\\\"easy bookmark\\\"),v(this,\\\"title\\\",\\\"🔖\\\"),v(this,\\\"slot_start_y\\\",-20),v(this,\\\"___collapsed_width\\\",0),v(this,\\\"isVirtualNode\\\",!0),v(this,\\\"serialize_widgets\\\",!0),v(this,\\\"keypressBound\\\",null),this.addWidget(\\\"text\\\",\\\"shortcut_key\\\",\\\"1\\\",(e=\\u003e{\\\"\\\"!==(e=e.trim()[0]||\\\"1\\\")\\u0026\\u0026(this.title=\\\"🔖 \\\"+e)}),{y:8}),this.addWidget(\\\"number\\\",\\\"zoom\\\",1,(e=\\u003e{}),{y:8+LiteGraph.NODE_WIDGET_HEIGHT+4,max:2,min:.5,precision:2}),this.keypressBound=this.onKeypress.bind(this)}get _collapsed_width(){return this.___collapsed_width}set _collapsed_width(e){const t=fe.canvas,i=t.canvas.getContext(\\\"2d\\\");if(i){const e=i.font;i.font=t.title_text_font,this.___collapsed_width=40+i.measureText(this.title).width,i.font=e}}onAdded(){setTimeout((e=\\u003e{const t=this.widgets[0].value;t\\u0026\\u0026(this.title=\\\"🔖 \\\"+t)}),1),window.addEventListener(\\\"keydown\\\",this.keypressBound)}onRemoved(){window.removeEventListener(\\\"keydown\\\",this.keypressBound)}onKeypress(e){const t=e.target;[\\\"input\\\",\\\"textarea\\\"].includes(t.localName)||this.widgets[0]\\u0026\\u0026e.key.toLocaleLowerCase()===this.widgets[0].value.toLocaleLowerCase()\\u0026\\u0026this.canvasToBookmark()}canvasToBookmark(){var e,t;const i=fe.canvas;(null==(e=null==i?void 0:i.ds)?void 0:e.offset)\\u0026\\u0026(i.ds.offset[0]=16-this.pos[0],i.ds.offset[1]=40-this.pos[1]),null!=(null==(t=null==i?void 0:i.ds)?void 0:t.scale)\\u0026\\u0026(i.ds.scale=Number(this.widgets[1].value||1)),i.setDirty(!0,!0)}}LiteGraph.registerNodeType(\\\"easy bookmark\\\",Object.assign(e,{title:\\\"Bookmark 🔖\\\"})),e.category=\\\"EasyUse/Util\\\"}}),fe.registerExtension({name:\\\"Comfy.EasyUse.ChainNode\\\",init(){fe.canvas._mousemove_callback=e=\\u003e{xe(\\\"EasyUse.Nodes.ChainGetSet\\\",null)\\u0026\\u0026((e=!1,t={})=\\u003e{var i,s,n,a,o;const l=Dt();if(!l||l.length\\u003c1)return;const r=Lt();if(0===r.length)return;let d=t.inputX||160,u=t.ouputX||60;if(r.filter((e=\\u003eMt(e))).length\\u003e1)return;for(const A of r){let a=t.inputY||10,o=t.outputY||30;const l=[],c=A.id;if(A.graph){Rt[c]||(Rt[c]=[]);for(const e of A.inputs??[]){const t=e.link;if(!t)continue;const{origin_id:i,target_slot:s}=Ct(t),n=xt(i);if(!n)continue;if(!Mt(n))continue;let o=A.getConnectionPos(!0,s);Rt[c][s]||(Rt[c][s]=o),!Rt[c]||Rt[c][s][1]===o[1]\\u0026\\u0026Rt[c][s][0]===o[0]||(d=o[0]-Rt[c][s][0],a=o[1]-Rt[c][s][1],n.pos=[n.pos[0]+d,n.pos[1]+a]),Rt[c][s]=o,l.push(n)}Pt[c]||(Pt[c]=[]);for(const e of A.outputs??[])if(e.links\\u0026\\u0026A.graph)for(const t of e.links){const{target_id:e,target_slot:s,origin_slot:n}=Ct(t),a=xt(e);if(!a)continue;if(!Mt(a))continue;const r=null==(i=a.outputs)?void 0:i.links;if((null==r?void 0:r.length)\\u003e1)return;const d=A.getConnectionPos(!1,n);Pt[c][n]||(Pt[c][n]=d),!Pt[c]||Pt[c][n][0]===d[0]\\u0026\\u0026Pt[c][n][1]===d[1]||(u=d[0]-Pt[c][n][0],o=d[1]-Pt[c][n][1],a.pos=[a.pos[0]+u,a.pos[1]+o]),Pt[c][n]=d,l.push(a)}if(e\\u0026\\u00261===r.length){const e=[A,...l];(null==(n=null==(s=A.graph)?void 0:s.list_of_graphcanvas)?void 0:n[0]).selectNodes(e)}}}const c=r[0];if(!c)return;(null==(o=null==(a=c.graph)?void 0:a.list_of_graphcanvas)?void 0:o[0]).setDirty(!0,!0)})()};const e=LGraphCanvas.prototype.showLinkMenu;LGraphCanvas.prototype.showLinkMenu=st(e,(function(t,i){return i.shiftKey?(((e,t=!1)=\\u003e{var i,s,n,a,o,l,r,d,u,c;const{type:A}=e;if(\\\"*\\\"===A)return;let{origin_id:p,target_id:h,origin_slot:m,target_slot:f}=e,g=xt(p),v=xt(h);if(!g||!v)return!1;if(\\\"Reroute\\\"===g.type){let e=0;[g,e]=jt(g),p=null==g?void 0:g.id,m=e,void 0!==m\\u0026\\u0026-1!==m||(m=0)}if(\\\"Reroute\\\"===v.type\\u0026\\u0026(v=Ut(v),h=null==v?void 0:v.id,f=null==v?void 0:v.inputs.findIndex((e=\\u003ee.type===A)),void 0!==f\\u0026\\u0026-1!==f||(f=0)),void 0===p||void 0===h||!g||!v)return!1;if(t\\u0026\\u0026(Mt(g)||Mt(v)))return!1;let y=It((null==(i=v.getInputInfo(f))?void 0:i.name)??A.toLowerCase());y||(y=It((null==(n=null==(s=null==g?void 0:g.outputs)?void 0:s[m])?void 0:n.name)??(null==(o=null==(a=null==g?void 0:g.outputs)?void 0:a[m])?void 0:o.type.toString())??y+`_from_${p}_to_${h}`));let w,b=!1,_=!1;if(Mt(g))y=_t(g),_=!0;else{const e=null==(r=null==(l=g.outputs)?void 0:l[m])?void 0:r.links;if(e)for(const t of e){const e=xt((null==(d=Ct(t))?void 0:d.target_id)??-1);e\\u0026\\u0026Mt(e)\\u0026\\u0026Ot(e)\\u0026\\u0026(y=_t(e),_=!0)}if(!_){for(const e of Dt()){if(y!==_t(e)||!Ot(e))continue;const t=null==(u=e.inputs[0])?void 0:u.link;(null==(c=Ct(t))?void 0:c.origin_id)===g.id?_=!0:b=!0}b\\u0026\\u0026(y+=`_from_${p}_to_${h}`)}}if(!_){w=LiteGraph.createNode(\\\"easy setNode\\\"),w.is_auto_link=!0;const e=g.getConnectionPos(!1,m);w.pos=[e[0]+20,e[1]],w.inputs[0].name=y,w.inputs[0].type=A,w.inputs[0].widget=v.inputs[f].widget,Gt(w,y),zt(w),w.flags.collapsed=!0;let t=[];g.widgets?t=Object.values(g.widgets).map((e=\\u003ee.value)):g.widgets_values\\u0026\\u0026(t=JSON.parse(JSON.stringify(g.widgets_values))),g.connect(m,w,0),g.widgets_values=t,\\\"PrimitiveNode\\\"===g.type\\u0026\\u0026setTimeout((()=\\u003e{if(g){g.connect(m,w,0);for(const[e,i]of t.entries())Gt(g,i,e);null!==w\\u0026\\u0026w.setSize(w.computeSize())}}))}const S=LiteGraph.createNode(\\\"easy getNode\\\"),x=v.getConnectionPos(!0,f);S.pos=[x[0]-150,x[1]],S.outputs[0].name=y,S.outputs[0].type=A,S.outputs[0].widget=v.inputs[f].widget,zt(S),Gt(S,y),null===S||(S.flags.collapsed=!0,S.setSize(S.computeSize()),S.connect(0,v,f))})(t),!1):(e.apply(this,[t,i]),!1)}))}});const vi=async()=\\u003e{try{const{Running:e,Pending:t}=await ge.getQueue();if(e.length\\u003e0||t.length\\u003e0)return void Ye.error(Ne(\\\"Clean Failed\\\")+\\\":\\\"+Ne(\\\"Please stop all running tasks before cleaning GPU\\\"));200==(await ge.fetchApi(\\\"/easyuse/cleangpu\\\",{method:\\\"POST\\\"})).status?Ye.success(Ne(\\\"Clean SuccessFully\\\")):Ye.error(Ne(\\\"Clean Failed\\\"))}catch(e){}};let yi={},wi=!1;function bi(e,t,i,s,n){var a=LGraphCanvas.active_canvas,o=a.getCanvasWindow(),l=a.graph;if(l)return function e(t,s){var r=LiteGraph.getNodeTypesCategories(a.filter||l.filter).filter((function(e){return e.startsWith(t)})),d=[];r.map((function(i){if(i){var s=new RegExp(\\\"^(\\\"+t+\\\")\\\"),n=i.replace(s,\\\"\\\").split(\\\"/\\\")[0],a=\\\"\\\"===t?n+\\\"/\\\":t+n+\\\"/\\\",o=n;-1!=o.indexOf(\\\"::\\\")\\u0026\\u0026(o=o.split(\\\"::\\\")[1]),-1===d.findIndex((function(e){return e.value===a}))\\u0026\\u0026d.push({value:a,content:o,has_submenu:!0,callback:function(t,i,s,n){e(t.value,n)}})}})),LiteGraph.getNodeTypesInCategory(t.slice(0,-1),a.filter||l.filter).map((function(e){if(!e.skip_list){var t={value:e.type,content:e.title,has_submenu:!1,callback:function(e,t,i,s){var o=s.getFirstEvent();a.graph.beforeChange();var l=LiteGraph.createNode(e.value);l\\u0026\\u0026(l.pos=a.convertEventToCanvasOffset(o),a.graph.add(l)),n\\u0026\\u0026n(l),a.graph.afterChange()}};d.push(t)}}));const u=xe(\\\"EasyUse.ContextMenu.NodesSort\\\",null);\\\"\\\"===t\\u0026\\u0026u\\u0026\\u0026(d=function(e){let t=[],i=[];return e.forEach((e=\\u003e{(null==e?void 0:e.value)\\u0026\\u0026Me.includes(e.value.split(\\\"/\\\")[0])?t.push(e):i.push(e)})),[{title:Ne(\\\"ComfyUI Basic\\\"),is_category_title:!0},...t,{title:Ne(\\\"Others A~Z\\\"),is_category_title:!0},...i.sort(((e,t)=\\u003ee.content.localeCompare(t.content)))]}(d)),new LiteGraph.ContextMenu(d,{event:i,parentMenu:s},o)}(\\\"\\\",s),!1}function _i(e){try{return encodeURIComponent(e).replace(/[!'()*]/g,(e=\\u003e`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}catch(t){return e}}function Si(e,t,i){var s=this;i=i||{};var n=document.createElement(\\\"div\\\");n.className=\\\"litemenu-entry submenu\\\";var a=!1;function o(e){var t=this.value,n=!0;(s.current_submenu\\u0026\\u0026s.current_submenu.close(e),i.callback)\\u0026\\u0026(!0===i.callback.call(this,t,i,e,s,i.node)\\u0026\\u0026(n=!1));if(t){if(t.callback\\u0026\\u0026!i.ignore_item_callbacks\\u0026\\u0026!0!==t.disabled)!0===t.callback.call(this,t,i,e,s,i.extra)\\u0026\\u0026(n=!1);if(t.submenu){if(!t.submenu.options)throw\\\"ContextMenu submenu needs options\\\";new s.constructor(t.submenu.options,{callback:t.submenu.callback,event:e,parentMenu:s,ignore_item_callbacks:t.submenu.ignore_item_callbacks,title:t.submenu.title,extra:t.submenu.extra,autoopen:i.autoopen}),n=!1}}n\\u0026\\u0026!s.lock\\u0026\\u0026s.close()}return null===t?n.classList.add(\\\"separator\\\"):t.is_category_title?(n.classList.remove(\\\"litemenu-entry\\\"),n.classList.remove(\\\"submenu\\\"),n.classList.add(\\\"litemenu-title\\\"),n.innerHTML=t.title):(n.innerHTML=t\\u0026\\u0026t.title?t.title:e,n.value=t,t\\u0026\\u0026(t.disabled\\u0026\\u0026(a=!0,n.classList.add(\\\"disabled\\\")),(t.submenu||t.has_submenu)\\u0026\\u0026n.classList.add(\\\"has_submenu\\\")),\\\"function\\\"==typeof t?(n.dataset.value=e,n.onclick_callback=t):n.dataset.value=t,t.className\\u0026\\u0026(n.className+=\\\" \\\"+t.className)),n\\u0026\\u0026(null==t?void 0:t.thumbnail)\\u0026\\u0026(n.addEventListener(\\\"mouseenter\\\",Li(n,t,this.root),{passive:!0}),n.addEventListener(\\\"mouseleave\\\",ki(),{passive:!0}),n.addEventListener(\\\"click\\\",ki(),{passive:!0})),this.root.appendChild(n),a||n.addEventListener(\\\"click\\\",o),!a\\u0026\\u0026i.autoopen\\u0026\\u0026LiteGraph.pointerListenerAdd(n,\\\"enter\\\",(function(e){var t=this.value;if(!t||!t.has_submenu)return;o.call(this,e)})),n}fe.registerExtension({name:\\\"Comfy.EasyUse.ContextMenu\\\",async setup(){LGraphCanvas.onMenuAdd=bi,xi();const e=LiteGraph.ContextMenu;LiteGraph.ContextMenu=function(t,i){if(!(null==i?void 0:i.callback)||t.some((e=\\u003e\\\"string\\\"!=typeof e))){if(i.parentMenu);else if(i.extra);else if(i.scale);else{const e=xe(\\\"EasyUse.ContextMenu.QuickOptions\\\",null);if(i.hasOwnProperty(\\\"extra\\\")\\u0026\\u0026\\\"Disable\\\"!==e){if(\\\"At the forefront\\\"==e?t.unshift(null):t.push(null),s=window.location.host,[\\\"192.168.\\\",\\\"10.\\\",\\\"127.\\\",/^172\\\\.((1[6-9]|2[0-9]|3[0-1])\\\\.)/].some((e=\\u003e\\\"string\\\"==typeof e?s.startsWith(e):e.test(s)))){const i={content:`\\u003ci class=\\\"mdi mdi-refresh-circle comfyui-easyuse-error\\\" style=\\\"margin-right:2px;font-size:16px\\\"\\u003e\\u003c/i\\u003e${Ne(\\\"Reboot ComfyUI\\\")}`,callback:e=\\u003e(async()=\\u003e{if(confirm(Ne(\\\"Are you sure you'd like to reboot the server?\\\")))try{ge.fetchApi(\\\"/easyuse/reboot\\\")}catch(e){}})()};\\\"At the forefront\\\"==e?t.unshift(i):t.push(i)}const i=xe(\\\"EasyUse.Hotkeys.cleanVRAMUsed\\\",null)?\\\"(\\\"+qe(\\\"Shift+r\\\")+\\\")\\\":\\\"\\\",n={content:`\\u003ci class=\\\"mdi mdi-rocket comfyui-easyuse-theme\\\" style=\\\"margin-right:2px;font-size:16px\\\"\\u003e\\u003c/i\\u003e${Ne(\\\"Cleanup Of VRAM Usage\\\")} ${i}`,callback:e=\\u003evi()};\\\"At the forefront\\\"==e?t.unshift(n):t.push(n);const a=xe(\\\"EasyUse.Hotkeys.toggleNodesMap\\\",null)?\\\"(\\\"+qe(\\\"Shift+m\\\")+\\\")\\\":\\\"\\\",o={content:`\\u003ci class=\\\"mdi mdi-sitemap comfyui-easyuse-warning\\\" style=\\\"margin-right:2px;font-size:14px\\\"\\u003e\\u003c/i\\u003e${Ne(\\\"Nodes Map\\\")} ${a}`,callback:e=\\u003e{var t,i,s;const n=(null==(t=fe.extensionManager)?void 0:t.sidebarTab)||fe.extensionManager,a=(null==(i=fe.extensionManager.sidebarTab)?void 0:i.activeSidebarTabId)||(null==(s=fe.extensionManager)?void 0:s.activeSidebarTab);n.activeSidebarTabId=a==Pe?null:Pe}};\\\"At the forefront\\\"==e?t.unshift(o):t.push(o)}}return e.apply(this,[...arguments])}{const s=function(e,t){const i=xe(\\\"EasyUse.ContextMenu.ModelsThumbnails\\\",null),s=xe(\\\"EasyUse.ContextMenu.SubDirectories\\\",null);if(!i\\u0026\\u0026!s)return null;if(wi)return null;const n=[\\\"ckpt\\\",\\\"pt\\\",\\\"bin\\\",\\\"pth\\\",\\\"safetensors\\\",\\\"gguf\\\"];if((null==e?void 0:e.length)\\u003e0){const t=null==(a=e[e.length-1])?void 0:a.substring(a.lastIndexOf(\\\".\\\")+1);if(!n.includes(t))return null}var a;const o=t.callback,l=[...e];t.callback=null;const r=(e,t)=\\u003e{[\\\"None\\\",\\\"无\\\",\\\"無\\\",\\\"なし\\\"].includes(e.content)?o(\\\"None\\\",t):o(l.find((t=\\u003et.endsWith(e.content)),t))};if(i\\u0026\\u0026!s)return e.map((e=\\u003e{var t,i;let s=null==(t=yi[e])?void 0:t.folder,n=null==(i=yi[e])?void 0:i.pathIndex;const a=window.location.protocol,o=window.location.host;let l=s?`${`${a}//${o}`}/api/experiment/models/preview/${s}/${n}/${_i(e)}`:\\\"\\\";return{folder:s,content:e,fullName:e,title:ve(\\\"div.comfyui-easyuse-contextmenu-model\\\",{},[ve(\\\"span\\\",{},e)]).outerHTML,thumbnail:l,callback:r}}));const d=e,u={},c=[],A=[];for(const f of d){const e=f.indexOf(\\\"/\\\")\\u003e-1?\\\"/\\\":\\\"\\\\\\\\\\\",t=f.split(e);if(t.length\\u003e1){const i=t.shift();u[i]=u[i]||[],u[i].push({value:t.join(e),fullValue:f})}else\\\"CHOOSE\\\"===f||f.startsWith(\\\"DISABLE \\\")?c.push({value:f,fullValue:f}):A.push({value:f,fullValue:f})}const p=Object.values(u).length,h=[],m=(e,t=\\\"\\\",s)=\\u003e{var n,a;let o;o=ve(\\\"div.comfyui-easyuse-contextmenu-model\\\",{},[ve(\\\"span\\\",{},e)]);let l=null==(n=yi[s])?void 0:n.folder,d=null==(a=yi[s])?void 0:a.pathIndex;const u=window.location.protocol,c=window.location.host;let A=l?`${`${u}//${c}`}/api/experiment/models/preview/${l}/${d}/${_i(s)}`:\\\"\\\";return{folder:l,content:e,fullName:s,thumbnail:i?A:null,title:o.outerHTML,callback:r}};if(p\\u003e0){const e=(t,i)=\\u003e{let s=[],n=[];const a=t.map((({value:e,fullValue:t})=\\u003e{const a={},o=e.indexOf(\\\"/\\\")\\u003e-1?\\\"/\\\":\\\"\\\\\\\\\\\",l=e.split(o);if(l.length\\u003e1){const e=l.shift();a[e]=a[e]||[],a[e].push({value:l.join(o),fullValue:t})}if(Object.values(u).length\\u003e0){let i=Object.keys(a)[0];i\\u0026\\u0026a[i]?s.push({key:i,value:a[i][0]}):n.push(m(e,i,t))}return m(e,i,t)}));if(s.length\\u003e0){let t={};return s.forEach((e=\\u003e{t[e.key]=t[e.key]||[],t[e.key].push(e.value)})),[...Object.entries(t).map((t=\\u003e({content:t[0],has_submenu:!0,callback:()=\\u003e{},submenu:{options:e(t[1],t[0])}}))),...n]}return a};for(const[t,i]of Object.entries(u))h.push({content:t,has_submenu:!0,callback:()=\\u003e{},submenu:{options:e(i,t)}})}h.push(...A.map((e=\\u003em(e.value,\\\"\\\",e.fullValue)))),c.length\\u003e0\\u0026\\u0026h.push(...c.map((e=\\u003em(e.value,\\\"\\\",e.fullValue))));return h}(t,i);return s?e.call(this,s,i):e.apply(this,[...arguments])}var s},LiteGraph.ContextMenu.prototype=e.prototype,xe(\\\"EasyUse.ContextMenu.NodesSort\\\")\\u0026\\u0026(LiteGraph.ContextMenu.prototype.addItem=Si),document.getElementById(\\\"graph-canvas\\\").addEventListener(\\\"mouseenter\\\",(e=\\u003e{setTimeout((e=\\u003e{const t=document.getElementById(\\\"easyuse-model-thumbnail\\\");t\\u0026\\u00260!=t.style.opacity\\u0026\\u0026(t.style.display=\\\"none\\\",t.style.opacity=0,t.style.left=\\\"0px\\\",t.style.top=\\\"0px\\\")}),100)}))},async beforeRegisterNodeDef(e,t,i){const s=e.prototype.onNodeCreated;[\\\"CheckpointLoader|pysssss\\\",\\\"LoraLoader|pysssss\\\"].includes(t.name)\\u0026\\u0026(e.prototype.onNodeCreated=async function(){s\\u0026\\u0026s.apply(this,[]);let e=wt(this,\\\"lora_name\\\")||wt(this,\\\"ckpt_name\\\");if(e){let t=e.onClick;e.onClick=function(e){return wi=!0,setTimeout((e=\\u003e{wi=!1}),500),t.call(this,e)}}})}});const xi=async()=\\u003e{[\\\"checkpoints\\\",\\\"loras\\\",\\\"diffusion_models\\\"].map((async e=\\u003e{const t=await ge.getModels(e);(null==t?void 0:t.length)\\u003e0\\u0026\\u0026t.map((t=\\u003e{yi[t.name]={folder:e,pathIndex:t.pathIndex}}))}))},Li=(e,t,i)=\\u003es=\\u003e{var n;const a=t=\\u003e{setTimeout((s=\\u003e{const n=i.getBoundingClientRect();if(!n)return;const a=document.body.getBoundingClientRect();if(!a)return;const{left:o,top:l}=((e,t,i)=\\u003e{const{x:s}=e.getBoundingClientRect();let{top:n,left:a}=t;const{width:o,height:l}=i;return s\\u003c=o\\u0026\\u0026(a+=t.width),t.top\\u003c=l||(n=l),{left:a,top:n}})(e,n,a),r=document.getElementById(\\\"easyuse-model-thumbnail\\\");r.src=t,r.style.left=`${o}px`,r.style.top=`${l}px`,r.style.display=\\\"block\\\",r.style.opacity=1,r.onerror=e=\\u003e{r.src=Ge}}),10)};if(null==(n=null==yi?void 0:yi[t.fullName])?void 0:n.img){let e=yi[t.fullName].img;a(\\\"no_preview_image\\\"==e?Ge:e.src)}else{let e=new Image;e.src=t.thumbnail,e.onload=i=\\u003e{yi[t.fullName].img=e,a(t.thumbnail)},e.onerror=i=\\u003e{e=null,yi[t.fullName].img=\\\"no_preview_image\\\",a(Ge)}}},ki=()=\\u003ee=\\u003e{const t=document.getElementById(\\\"easyuse-model-thumbnail\\\");t\\u0026\\u00260!=t.style.opacity\\u0026\\u0026(t.style.display=\\\"none\\\",t.style.opacity=0,t.style.left=\\\"0px\\\",t.style.top=\\\"0px\\\")};class Ei extends ye{constructor(){super(),this.element.classList.add(\\\"easyuse-model-metadata\\\")}show(e){super.show(ve(\\\"div\\\",Object.keys(e).map((t=\\u003eve(\\\"div\\\",[ve(\\\"label\\\",{textContent:t}),ve(\\\"span\\\",{textContent:e[t]})])))))}}class Ni extends ye{constructor(e){super(),this.name=e,this.element.classList.add(\\\"easyuse-model-info\\\")}get customNotes(){return this.metadata[\\\"easyuse.notes\\\"]}set customNotes(e){this.metadata[\\\"easyuse.notes\\\"]=e}get hash(){return this.metadata[\\\"easyuse.sha256\\\"]}async show(e,t){this.type=e;const i=ge.fetchApi(\\\"/easyuse/metadata/\\\"+encodeURIComponent(`${e}/${t}`));this.info=ve(\\\"div\\\",{style:{flex:\\\"auto\\\"}}),this.imgCurrent=0,this.imgList=ve(\\\"div.easyuse-preview-list\\\",{style:{display:\\\"none\\\"}}),this.imgWrapper=ve(\\\"div.easyuse-preview\\\",[ve(\\\"div.easyuse-preview-group\\\",[this.imgList])]),this.main=ve(\\\"main\\\",{style:{display:\\\"flex\\\"}},[this.imgWrapper,this.info]),this.content=ve(\\\"div.easyuse-model-content\\\",[ve(\\\"div.easyuse-model-header\\\",[ve(\\\"h2\\\",{textContent:this.name})]),this.main]);const s=ve(\\\"div\\\",{textContent:\\\"ℹ️ Loading...\\\",parent:this.content});super.show(this.content),this.metadata=await(await i).json(),this.viewMetadata.style.cursor=this.viewMetadata.style.opacity=\\\"\\\",this.viewMetadata.removeAttribute(\\\"disabled\\\"),s.remove(),this.addInfo()}createButtons(){const e=super.createButtons();return this.viewMetadata=ve(\\\"button\\\",{type:\\\"button\\\",textContent:\\\"View raw metadata\\\",disabled:\\\"disabled\\\",style:{opacity:.5,cursor:\\\"not-allowed\\\"},onclick:e=\\u003e{this.metadata\\u0026\\u0026(new Ei).show(this.metadata)}}),e.unshift(this.viewMetadata),e}parseNote(){if(!this.customNotes)return[];let e=[];const t=new RegExp(\\\"(\\\\\\\\bhttps?:\\\\\\\\/\\\\\\\\/[^\\\\\\\\s]+)\\\",\\\"g\\\");let i,s=0;do{let n;i=t.exec(this.customNotes);let a=0;i?(n=i.index,a=i.index+i[0].length):n=this.customNotes.length;let o=this.customNotes.substring(s,n);o\\u0026\\u0026(o=o.replaceAll(\\\"\\\\n\\\",\\\"\\u003cbr\\u003e\\\"),e.push(ve(\\\"span\\\",{innerHTML:o}))),i\\u0026\\u0026e.push(ve(\\\"a\\\",{href:i[0],textContent:i[0],target:\\\"_blank\\\"})),s=a}while(i);return e}addInfoEntry(e,t){return ve(\\\"p\\\",{parent:this.info},[\\\"string\\\"==typeof e?ve(\\\"label\\\",{textContent:e+\\\": \\\"}):e,\\\"string\\\"==typeof t?ve(\\\"span\\\",{textContent:t}):t])}async getCivitaiDetails(){const e=await fetch(\\\"https://civitai.com/api/v1/model-versions/by-hash/\\\"+this.hash);if(200===e.status)return await e.json();throw 404===e.status?new Error(\\\"Model not found\\\"):new Error(`Error loading info (${e.status}) ${e.statusText}`)}addCivitaiInfo(){const e=this.getCivitaiDetails(),t=ve(\\\"span\\\",{textContent:\\\"ℹ️ Loading...\\\"});return this.addInfoEntry(ve(\\\"label\\\",[ve(\\\"img\\\",{style:{width:\\\"18px\\\",position:\\\"relative\\\",top:\\\"3px\\\",margin:\\\"0 5px 0 0\\\"},src:\\\"https://civitai.com/favicon.ico\\\"}),ve(\\\"span\\\",{textContent:\\\"Civitai: \\\"})]),t),e.then((e=\\u003e{var t,i;this.imgWrapper.style.display=\\\"block\\\";let s=this.element.querySelector(\\\".easyuse-model-header\\\");s\\u0026\\u0026s.replaceChildren(ve(\\\"h2\\\",{textContent:this.name}),ve(\\\"div.easyuse-model-header-remark\\\",[ve(\\\"h5\\\",{textContent:Ne(\\\"Updated At:\\\")+Ze(new Date(e.updatedAt),\\\"yyyy/MM/dd\\\")}),ve(\\\"h5\\\",{textContent:Ne(\\\"Created At:\\\")+Ze(new Date(e.updatedAt),\\\"yyyy/MM/dd\\\")})]));let n=null,a=this.parseNote.call(this),o=Ne(\\\"✏️ Edit\\\"),l=ve(\\\"div.easyuse-model-detail-textarea\\\",[ve(\\\"p\\\",(null==a?void 0:a.length)\\u003e0?a:{textContent:Ne(\\\"No notes\\\")})]);if(a\\u0026\\u00260!=a.length?l.classList.remove(\\\"empty\\\"):l.classList.add(\\\"empty\\\"),this.info.replaceChildren(ve(\\\"div.easyuse-model-detail\\\",[ve(\\\"div.easyuse-model-detail-head.flex-b\\\",[ve(\\\"span\\\",Ne(\\\"Notes\\\")),ve(\\\"a\\\",{textContent:o,href:\\\"#\\\",style:{fontSize:\\\"12px\\\",float:\\\"right\\\",color:\\\"var(--warning-color)\\\",textDecoration:\\\"none\\\"},onclick:async e=\\u003e{if(e.preventDefault(),n){if(n.value!=this.customNotes){Ye.showLoading(Ne(\\\"Saving Notes...\\\")),this.customNotes=n.value;const e=await ge.fetchApi(\\\"/easyuse/metadata/notes/\\\"+encodeURIComponent(`${this.type}/${this.name}`),{method:\\\"POST\\\",body:this.customNotes});if(Ye.hideLoading(),200!==e.status)return Ye.error(Ne(\\\"Saving Failed\\\")),void alert(`Error saving notes (${e.status}) ${e.statusText}`);Ye.success(Ne(\\\"Saving Succeed\\\")),a=this.parseNote.call(this),l.replaceChildren(ve(\\\"p\\\",(null==a?void 0:a.length)\\u003e0?a:{textContent:Ne(\\\"No notes\\\")})),n.value?l.classList.remove(\\\"empty\\\"):l.classList.add(\\\"empty\\\")}else l.replaceChildren(ve(\\\"p\\\",{textContent:Ne(\\\"No notes\\\")})),l.classList.add(\\\"empty\\\");e.target.textContent=o,n.remove(),n=null}else e.target.textContent=\\\"💾 Save\\\",n=ve(\\\"textarea\\\",{placeholder:Ne(\\\"Type your notes here\\\"),style:{width:\\\"100%\\\",minWidth:\\\"200px\\\",minHeight:\\\"50px\\\",height:\\\"100px\\\"},textContent:this.customNotes}),l.replaceChildren(n),n.focus()}})]),l]),ve(\\\"div.easyuse-model-detail\\\",[ve(\\\"div.easyuse-model-detail-head\\\",{textContent:Ne(\\\"Details\\\")}),ve(\\\"div.easyuse-model-detail-body\\\",[ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"Type\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",{textContent:e.model.type})]),ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"BaseModel\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",{textContent:e.baseModel})]),ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"Download\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",{textContent:(null==(t=e.stats)?void 0:t.downloadCount)||0})]),ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"Trained Words\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",{textContent:(null==e?void 0:e.trainedWords.join(\\\",\\\"))||\\\"-\\\"})]),ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"Source\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",[ve(\\\"label\\\",[ve(\\\"img\\\",{style:{width:\\\"14px\\\",position:\\\"relative\\\",top:\\\"3px\\\",margin:\\\"0 5px 0 0\\\"},src:\\\"https://civitai.com/favicon.ico\\\"}),ve(\\\"a\\\",{href:\\\"https://civitai.com/models/\\\"+e.modelId,textContent:\\\"View \\\"+e.model.name,target:\\\"_blank\\\"})])])])])])),null==(i=e.images)?void 0:i.length){this.imgCurrent=0,this.isSaving=!1,e.images.map((e=\\u003ee.url\\u0026\\u0026this.imgList.appendChild(ve(\\\"div.easyuse-preview-slide\\\",[ve(\\\"div.easyuse-preview-slide-content\\\",[ve(\\\"img\\\",{src:e.url}),ve(\\\"div.save\\\",{textContent:\\\"Save as preview\\\",onclick:async()=\\u003e{if(this.isSaving)return;this.isSaving=!0,Ye.showLoading(Ne(\\\"Saving Preview...\\\"));const t=await(await fetch(e.url)).blob(),i=\\\"temp_preview.\\\"+new URL(e.url).pathname.split(\\\".\\\")[1],s=new FormData;s.append(\\\"image\\\",new File([t],i)),s.append(\\\"overwrite\\\",\\\"true\\\"),s.append(\\\"type\\\",\\\"temp\\\");if(200!==(await ge.fetchApi(\\\"/upload/image\\\",{method:\\\"POST\\\",body:s})).status)return this.isSaving=!1,Ye.error(Ne(\\\"Saving Failed\\\")),Ye.hideLoading(),void alert(`Error saving preview (${req.status}) ${req.statusText}`);await ge.fetchApi(\\\"/easyuse/save/\\\"+encodeURIComponent(`${this.type}/${this.name}`),{method:\\\"POST\\\",body:JSON.stringify({filename:i,type:\\\"temp\\\"}),headers:{\\\"content-type\\\":\\\"application/json\\\"}}).then((e=\\u003e{Ye.success(Ne(\\\"Saving Succeed\\\")),Ye.hideLoading()})),this.isSaving=!1,app.refreshComboInNodes()}})])]))));let t=this;this.imgDistance=(-660*this.imgCurrent).toString(),this.imgList.style.display=\\\"\\\",this.imgList.style.transform=\\\"translate3d(\\\"+this.imgDistance+\\\"px, 0px, 0px)\\\",this.slides=this.imgList.querySelectorAll(\\\".easyuse-preview-slide\\\"),this.slideLeftButton=ve(\\\"button.left\\\",{parent:this.imgWrapper,style:{display:e.images.length\\u003c=2?\\\"none\\\":\\\"block\\\"},innerHTML:'\\u003csvg viewBox=\\\"0 0 15 15\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"16\\\" style=\\\"transform: rotate(90deg);\\\"\\u003e\\u003cpath d=\\\"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z\\\" fill=\\\"currentColor\\\" fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\"\\u003e\\u003c/path\\u003e\\u003c/svg\\u003e',onclick:()=\\u003e{e.images.length\\u003c=2||(t.imgList.classList.remove(\\\"no-transition\\\"),0==t.imgCurrent?(t.imgCurrent=e.images.length/2-1,this.slides[this.slides.length-1].style.transform=\\\"translate3d(\\\"+(-660*(this.imgCurrent+1)).toString()+\\\"px, 0px, 0px)\\\",this.slides[this.slides.length-2].style.transform=\\\"translate3d(\\\"+(-660*(this.imgCurrent+1)).toString()+\\\"px, 0px, 0px)\\\",t.imgList.style.transform=\\\"translate3d(660px, 0px, 0px)\\\",setTimeout((e=\\u003e{this.slides[this.slides.length-1].style.transform=\\\"translate3d(0px, 0px, 0px)\\\",this.slides[this.slides.length-2].style.transform=\\\"translate3d(0px, 0px, 0px)\\\",t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\"translate3d(\\\"+t.imgDistance+\\\"px, 0px, 0px)\\\",t.imgList.classList.add(\\\"no-transition\\\")}),500)):(t.imgCurrent=t.imgCurrent-1,t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\"translate3d(\\\"+t.imgDistance+\\\"px, 0px, 0px)\\\"))}}),this.slideRightButton=ve(\\\"button.right\\\",{parent:this.imgWrapper,style:{display:e.images.length\\u003c=2?\\\"none\\\":\\\"block\\\"},innerHTML:'\\u003csvg viewBox=\\\"0 0 15 15\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"16\\\" style=\\\"transform: rotate(-90deg);\\\"\\u003e\\u003cpath d=\\\"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z\\\" fill=\\\"currentColor\\\" fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\"\\u003e\\u003c/path\\u003e\\u003c/svg\\u003e',onclick:()=\\u003e{if(!(e.images.length\\u003c=2))if(t.imgList.classList.remove(\\\"no-transition\\\"),t.imgCurrent\\u003e=e.images.length/2-1){t.imgCurrent=0;const i=e.images.length/2;this.slides[0].style.transform=\\\"translate3d(\\\"+(660*i).toString()+\\\"px, 0px, 0px)\\\",this.slides[1].style.transform=\\\"translate3d(\\\"+(660*i).toString()+\\\"px, 0px, 0px)\\\",t.imgList.style.transform=\\\"translate3d(\\\"+(-660*i).toString()+\\\"px, 0px, 0px)\\\",setTimeout((e=\\u003e{this.slides[0].style.transform=\\\"translate3d(0px, 0px, 0px)\\\",this.slides[1].style.transform=\\\"translate3d(0px, 0px, 0px)\\\",t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\"translate3d(\\\"+t.imgDistance+\\\"px, 0px, 0px)\\\",t.imgList.classList.add(\\\"no-transition\\\")}),500)}else t.imgCurrent=t.imgCurrent+1,t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\"translate3d(\\\"+t.imgDistance+\\\"px, 0px, 0px)\\\"}})}return e.description\\u0026\\u0026ve(\\\"div\\\",{parent:this.content,innerHTML:e.description,style:{marginTop:\\\"10px\\\"}}),e})).catch((e=\\u003e{this.imgWrapper.style.display=\\\"none\\\",t.textContent=\\\"⚠️ \\\"+e.message})).finally((e=\\u003e{}))}}class Ci extends Ni{async addInfo(){await this.addCivitaiInfo()}}class Ii extends Ni{getTagFrequency(){if(!this.metadata.ss_tag_frequency)return[];const e=JSON.parse(this.metadata.ss_tag_frequency),t={};for(const i in e){const s=e[i];for(const e in s)e in t?t[e]+=s[e]:t[e]=s[e]}return Object.entries(t).sort(((e,t)=\\u003et[1]-e[1]))}getResolutions(){let e=[];if(this.metadata.ss_bucket_info){const t=JSON.parse(this.metadata.ss_bucket_info);if(null==t?void 0:t.buckets)for(const{resolution:i,count:s}of Object.values(t.buckets))e.push([s,`${i.join(\\\"x\\\")} * ${s}`])}e=e.sort(((e,t)=\\u003et[0]-e[0])).map((e=\\u003ee[1]));let t=this.metadata.ss_resolution;if(t){const i=t.split(\\\",\\\"),s=i[0].replace(\\\"(\\\",\\\"\\\"),n=i[1].replace(\\\")\\\",\\\"\\\");e.push(`${s.trim()}x${n.trim()} (Base res)`)}else(t=this.metadata[\\\"modelspec.resolution\\\"])\\u0026\\u0026e.push(t+\\\" (Base res\\\");return e.length||e.push(\\\"⚠️ Unknown\\\"),e}getTagList(e){return e.map((e=\\u003eve(\\\"li.easyuse-model-tag\\\",{dataset:{tag:e[0]},$:e=\\u003e{e.onclick=()=\\u003e{e.classList.toggle(\\\"easyuse-model-tag--selected\\\")}}},[ve(\\\"p\\\",{textContent:e[0]}),ve(\\\"span\\\",{textContent:e[1]})])))}addTags(){let e,t=this.getTagFrequency();if(null==t?void 0:t.length){const i=t.length;let s;i\\u003e500\\u0026\\u0026(t=t.slice(0,500),e=ve(\\\"p\\\",[ve(\\\"span\\\",{textContent:\\\"⚠️ Only showing first 500 tags \\\"}),ve(\\\"a\\\",{href:\\\"#\\\",textContent:`Show all ${i}`,onclick:()=\\u003e{s.replaceChildren(...this.getTagList(this.getTagFrequency())),e.remove()}})])),s=ve(\\\"ol.easyuse-model-tags-list\\\",this.getTagList(t)),this.tags=ve(\\\"div\\\",[s])}else this.tags=ve(\\\"p\\\",{textContent:\\\"⚠️ No tag frequency metadata found\\\"});this.content.append(this.tags),e\\u0026\\u0026this.content.append(e)}async addInfo(){const e=this.addCivitaiInfo();this.addTags();const t=await e;t\\u0026\\u0026ve(\\\"div\\\",{parent:this.content,innerHTML:t.description,style:{maxHeight:\\\"250px\\\",overflow:\\\"auto\\\"}})}createButtons(){const e=super.createButtons();function t(e,t){const i=ve(\\\"textarea\\\",{parent:document.body,style:{position:\\\"fixed\\\"},textContent:t.map((e=\\u003ee.dataset.tag)).join(\\\", \\\")});i.select();try{document.execCommand(\\\"copy\\\"),e.target.dataset.text||(e.target.dataset.text=e.target.textContent),e.target.textContent=\\\"Copied \\\"+t.length+\\\" tags\\\",setTimeout((()=\\u003e{e.target.textContent=e.target.dataset.text}),1e3)}catch(s){prompt(\\\"Copy to clipboard: Ctrl+C, Enter\\\",text)}finally{document.body.removeChild(i)}}return e.unshift(ve(\\\"button\\\",{type:\\\"button\\\",textContent:\\\"Copy Selected\\\",onclick:e=\\u003e{t(e,[...this.tags.querySelectorAll(\\\".easyuse-model-tag--selected\\\")])}}),ve(\\\"button\\\",{type:\\\"button\\\",textContent:\\\"Copy All\\\",onclick:e=\\u003e{t(e,[...this.tags.querySelectorAll(\\\".easyuse-model-tag\\\")])}})),e}}const Ti={pipe:{category:\\\"Easy Pipe\\\",nodes:[\\\"easy pipeIn\\\",\\\"easy pipeOut\\\",\\\"easy pipeEdit\\\",\\\"easy pipeEditPrompt\\\",\\\"easy pipeBatchIndex\\\"],input:{pipe:\\\"pipe\\\"},output:{pipe:\\\"pipe\\\"},widget:{optional_positive:\\\"optional_positive\\\",optional_negative:\\\"optional_negative\\\"}},loaders:{category:\\\"Easy Loaders\\\",nodes:[\\\"easy fullLoader\\\",\\\"easy a1111Loader\\\",\\\"easy comfyLoader\\\",\\\"easy kolorsLoader\\\",\\\"easy hunyuanDiTLoader\\\",\\\"easy pixArtLoader\\\",\\\"easy fluxLoader\\\"],input:{optional_lora_stack:\\\"optional_lora_stack\\\",optional_controlnet_stack:\\\"optional_controlnet_stack\\\",positive:\\\"positive\\\",negative:\\\"negative\\\"},output:{pipe:\\\"pipe\\\",model:\\\"model\\\",vae:\\\"vae\\\",clip:null,positive:null,negative:null,latent:null},widget:{ckpt_name:\\\"ckpt_name\\\",vae_name:\\\"vae_name\\\",clip_skip:\\\"clip_skip\\\",lora_name:\\\"lora_name\\\",resolution:\\\"resolution\\\",empty_latent_width:\\\"empty_latent_width\\\",empty_latent_height:\\\"empty_latent_height\\\",positive:\\\"positive\\\",negative:\\\"negative\\\",batch_size:\\\"batch_size\\\",a1111_prompt_style:\\\"a1111_prompt_style\\\"}},preSampling:{category:\\\"Easy PreSampling\\\",nodes:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingDynamicCFG\\\",\\\"easy preSamplingNoiseIn\\\",\\\"easy preSamplingCustom\\\",\\\"easy preSamplingLayerDiffusion\\\",\\\"easy fullkSampler\\\"],input:{pipe:\\\"pipe\\\",image_to_latent:\\\"image_to_latent\\\",latent:\\\"latent\\\"},output:{pipe:\\\"pipe\\\"},widget:{steps:\\\"steps\\\",cfg:\\\"cfg\\\",cfg_scale_min:\\\"cfg\\\",sampler_name:\\\"sampler_name\\\",scheduler:\\\"scheduler\\\",denoise:\\\"denoise\\\",seed_num:\\\"seed_num\\\",seed:\\\"seed\\\"}},samplers:{category:\\\"Custom Sampler\\\",nodes:[\\\"KSamplerSelect\\\",\\\"SamplerEulerAncestral\\\",\\\"SamplerEulerAncestralCFG++\\\",\\\"SamplerLMS\\\",\\\"SamplerDPMPP_3M_SDE\\\",\\\"SamplerDPMPP_2M_SDE\\\",\\\"SamplerDPMPP_SDE\\\",\\\"SamplerDPMAdaptative\\\",\\\"SamplerLCMUpscale\\\",\\\"SamplerTCD\\\",\\\"SamplerTCD EulerA\\\"],output:{SAMPLER:\\\"SAMPLER\\\"}},sigmas:{category:\\\"Custom Sigmas\\\",nodes:[\\\"BasicScheduler\\\",\\\"KarrasScheduler\\\",\\\"ExponentialScheduler\\\",\\\"PolyexponentialScheduler\\\",\\\"VPScheduler\\\",\\\"BetaSamplingScheduler\\\",\\\"SDTurboScheduler\\\",\\\"SplitSigmas\\\",\\\"SplitSigmasDenoise\\\",\\\"FlipSigmas\\\",\\\"AlignYourStepsScheduler\\\",\\\"GITSScheduler\\\"],output:{SIGMAS:\\\"SIGMAS\\\"}},kSampler:{category:\\\"Easy kSampler\\\",nodes:[\\\"easy kSampler\\\",\\\"easy kSamplerTiled\\\",\\\"easy kSamplerCustom\\\",\\\"easy kSamplerInpainting\\\",\\\"easy kSamplerDownscaleUnet\\\",\\\"easy kSamplerLayerDiffusion\\\"],input:{pipe:\\\"pipe\\\",model:\\\"model\\\"},output:{pipe:\\\"pipe\\\",image:\\\"image\\\"},widget:{image_output:\\\"image_output\\\",save_prefix:\\\"save_prefix\\\",link_id:\\\"link_id\\\"}},controlNet:{category:\\\"Easy ControlNet\\\",nodes:[\\\"easy controlnetLoader\\\",\\\"easy controlnetLoaderADV\\\",\\\"easy controlnetLoader++\\\",\\\"easy instantIDApply\\\",\\\"easy instantIDApplyADV\\\"],input:{pipe:\\\"pipe\\\",image:\\\"image\\\",image_kps:\\\"image_kps\\\",control_net:\\\"control_net\\\",positive:\\\"positive\\\",negative:\\\"negative\\\",mask:\\\"mask\\\"},output:{pipe:\\\"pipe\\\",positive:\\\"positive\\\",negative:\\\"negative\\\"},widget:{control_net_name:\\\"control_net_name\\\",strength:[\\\"strength\\\",\\\"cn_strength\\\"],scale_soft_weights:[\\\"scale_soft_weights\\\",\\\"cn_soft_weights\\\"],cn_strength:[\\\"strength\\\",\\\"cn_strength\\\"],cn_soft_weights:[\\\"scale_soft_weights\\\",\\\"cn_soft_weights\\\"]}},adapter:{category:\\\"Easy Adapter\\\",nodes:[\\\"easy ipadapterApply\\\",\\\"easy ipadapterApplyADV\\\",\\\"easy ipadapterApplyFaceIDKolors\\\",\\\"easy ipadapterStyleComposition\\\",\\\"easy ipadapterApplyFromParams\\\",\\\"easy pulIDApply\\\",\\\"easy pulIDApplyADV\\\"],input:{model:\\\"model\\\",image:\\\"image\\\",image_style:\\\"image\\\",attn_mask:\\\"attn_mask\\\",optional_ipadapter:\\\"optional_ipadapter\\\"},output:{model:\\\"model\\\",tiles:\\\"tiles\\\",masks:\\\"masks\\\",ipadapter:\\\"ipadapter\\\"},widget:{preset:\\\"preset\\\",lora_strength:\\\"lora_strength\\\",provider:\\\"provider\\\",weight:\\\"weight\\\",weight_faceidv2:\\\"weight_faceidv2\\\",start_at:\\\"start_at\\\",end_at:\\\"end_at\\\",cache_mode:\\\"cache_mode\\\",use_tiled:\\\"use_tiled\\\",insightface:\\\"insightface\\\",pulid_file:\\\"pulid_file\\\"}},positive:{category:\\\"Easy Positive\\\",nodes:[\\\"easy positive\\\",\\\"easy wildcards\\\"],input:{},output:{text:\\\"positive\\\",positive:\\\"text\\\"},widget:{text:\\\"positive\\\",positive:\\\"text\\\"}},loadImage:{category:\\\"Easy LoadImage\\\",nodes:[\\\"easy loadImageBase64\\\",\\\"LoadImage\\\",\\\"LoadImageMask\\\"],input:{pipe:\\\"pipe\\\",image:\\\"image\\\",mask:\\\"mask\\\"},output:{IMAGE:\\\"IMAGE\\\",MASK:\\\"MASK\\\"},widget:{image:\\\"image\\\",base64_data:\\\"base64_data\\\",channel:\\\"channel\\\"}},saveImage:{category:\\\"Save/Preview Image\\\",nodes:[\\\"SaveImage\\\",\\\"PreviewImage\\\"]},inPaint:{category:\\\"Easy Inpaint\\\",nodes:[\\\"easy applyBrushNet\\\",\\\"easy applyPowerPaint\\\",\\\"easy applyInpaint\\\"],input:{},output:{pipe:\\\"pipe\\\"},widget:{dtype:\\\"dtype\\\",fitting:\\\"fitting\\\",function:\\\"function\\\",scale:\\\"scale\\\",start_at:\\\"start_at\\\",end_at:\\\"end_at\\\"}},showAny:{category:\\\"Show Anything\\\",nodes:[\\\"easy showAnything\\\",\\\"Preview Any\\\"],input:{anything:\\\"anything\\\"},output:{output:\\\"output\\\"}},saveText:{category:\\\"Save Text\\\",nodes:[\\\"easy saveText\\\"],input:{image:\\\"image\\\",text:\\\"text\\\",output_file_path:\\\"output_file_path\\\",file_name:\\\"file_name\\\",file_extension:\\\"file_extension\\\",overwrite:\\\"overwrite\\\"},output:{text:\\\"text\\\",image:\\\"image\\\"},widget:{image:\\\"image\\\",text:\\\"text\\\",output_file_path:\\\"output_file_path\\\",file_name:\\\"file_name\\\",file_extension:\\\"file_extension\\\",overwrite:\\\"overwrite\\\"}},persona:{category:\\\"LLM Party Persona\\\",nodes:[\\\"load_persona\\\",\\\"classify_persona\\\",\\\"classify_persona_plus\\\",\\\"custom_persona\\\",\\\"translate_persona\\\",\\\"flux_persona\\\"],input:{file_content:\\\"file_content\\\"},output:{system_prompt:\\\"system_prompt\\\"},widget:{is_enable:\\\"is_enable\\\"}},llmModelLoader:{category:\\\"LLM Model Loader\\\",nodes:[\\\"LLM_api_loader\\\",\\\"genai_api_loader\\\",\\\"LLM_local_loader\\\"],output:{model:\\\"model\\\"}},llmModelChain:{category:\\\"LLM Model Chain\\\",nodes:[\\\"LLM\\\",\\\"LLM_local\\\"],input:{model:\\\"model\\\",image:\\\"images\\\",images:\\\"image\\\",extra_parameters:\\\"extra_parameters\\\",system_prompt_input:\\\"system_prompt_input\\\",user_prompt_input:\\\"user_prompt_input\\\",tools:\\\"tools\\\",file_content:\\\"file_content\\\"},output:{assistant_response:\\\"assistant_response\\\",history:\\\"history\\\",tool:\\\"tool\\\",image:\\\"image\\\"},widget:{system_prompt:\\\"system_prompt\\\",user_prompt:\\\"user_prompt\\\",temperature:\\\"temperature\\\",is_memory:\\\"is_memory\\\",is_tools_in_sys_prompt:\\\"is_tools_in_sys_prompt\\\",max_length:\\\"max_length\\\",main_brain:\\\"main_brain\\\",conversation_rounds:\\\"conversation_rounds\\\",history_record:\\\"history_record\\\",is_enable:\\\"is_enable\\\"}},maskModify:{category:\\\"Mask Modify\\\",nodes:[\\\"CropMask\\\",\\\"ThresholdMask\\\",\\\"GrowMask\\\",\\\"FeatherMask\\\",\\\"LayerMask: MaskGrain\\\",\\\"LayerMask: MaskEdgeUltraDetail\\\",\\\"LayerMask: MaskEdgeUltraDetail V2\\\"],input:{mask:\\\"mask\\\"},output:{MASK:\\\"MASK\\\",mask:\\\"mask\\\",image:\\\"image\\\"}},maskModifyWAS:{category:\\\"Mask Modify (WAS)\\\",nodes:[\\\"Mask Dilate Region\\\",\\\"Mask Gaussian Region\\\"],input:{masks:\\\"masks\\\"},output:{MASKS:\\\"MASKS\\\"}},indextts_emotions:{category:\\\"IndexTTS Emotions\\\",nodes:[\\\"easy indexTTSEmotionVector\\\",\\\"easy indexTTSEmotionText\\\",\\\"easy indexTTSEmotionAudio\\\"],input:{reference_audio:\\\"reference_audio\\\"},output:{emotions:\\\"emotions\\\"}},indextts_generate:{category:\\\"IndexTTS Generate\\\",nodes:[\\\"easy indexTTSGenerate\\\",\\\"easy indexTTSGenerateSimple\\\"],input:{indextts_model:\\\"indextts_model\\\",reference_audio:\\\"reference_audio\\\",reference_audios:\\\"reference_audios\\\",emotions:\\\"emotions\\\"},output:{audio:\\\"audio\\\",seed:\\\"seed\\\",subtitle:\\\"subtitle\\\"},widget:{text:\\\"text\\\",unload_model:\\\"unload_model\\\",seed:\\\"seed\\\"}},fast_loaders:{category:\\\"Fast Loaders\\\",nodes:[\\\"fast ckptLoader\\\",\\\"fast unetLoader\\\"],input:{\\\"开始加载\\\":\\\"开始加载\\\"},output:{\\\"模型加载器\\\":\\\"模型加载器\\\",MODEL:\\\"MODEL\\\",VAE:\\\"VAE\\\",CLIP:\\\"CLIP\\\"}},fast_inputs:{category:\\\"Fast Inputs\\\",nodes:[\\\"fast sdInput\\\",\\\"fast fluxInput\\\",\\\"fast hiDreamInput\\\",\\\"fast videoInput\\\",\\\"fast qwenImageInput\\\"],input:{\\\"模型加载器\\\":\\\"模型加载器\\\",\\\"更多Controlnet\\\":\\\"更多Controlnet\\\",\\\"图像\\\":\\\"图像\\\",\\\"遮罩\\\":\\\"遮罩\\\",\\\"功能节点\\\":\\\"功能节点\\\"},output:{\\\"采样\\\":\\\"采样\\\",\\\"正面条件\\\":\\\"正面条件\\\",\\\"负面条件\\\":\\\"负面条件\\\",\\\"潜空间\\\":\\\"潜空间\\\"},widget:{Sigmas:\\\"Sigmas\\\",\\\"分离Sigmas步数\\\":\\\"分离Sigmas步数\\\",\\\"分离降噪\\\":\\\"分离降噪\\\",\\\"降噪\\\":\\\"降噪\\\",\\\"添加噪声\\\":\\\"添加噪声\\\",seed:\\\"seed\\\",\\\"生成数量\\\":\\\"生成数量\\\"}},fast_outputResult:{category:\\\"Fast Outputs\\\",nodes:[\\\"fast outputResult\\\",\\\"fast outputResultVideo\\\",\\\"fast outputLatent\\\"],input:{\\\"采样\\\":\\\"采样\\\",\\\"噪声\\\":\\\"噪声\\\",\\\"模型加载器\\\":\\\"模型加载器\\\"},output:{\\\"图像\\\":\\\"图像序列\\\",\\\"图像序列\\\":\\\"图像\\\",\\\"输出\\\":\\\"输出\\\",\\\"降噪输出\\\":\\\"降噪输出\\\",VAE:\\\"VAE\\\"},widget:{\\\"采样预览\\\":\\\"采样预览\\\",\\\"VAE解码\\\":\\\"VAE解码\\\",\\\"图像输出\\\":\\\"视频输出\\\",\\\"视频输出\\\":\\\"图像输出\\\",\\\"保存路径\\\":\\\"保存路径\\\"}},fast_loadImage:{category:\\\"Fast LoadImage\\\",nodes:[\\\"fast loadImage\\\",\\\"fast loadImageList\\\"],output:{\\\"图像\\\":\\\"图像\\\",\\\"遮罩\\\":\\\"遮罩\\\",\\\"文件名\\\":\\\"文件名\\\"},widget:{\\\"模式\\\":\\\"模式\\\",\\\"图像\\\":\\\"图像\\\",\\\"路径\\\":\\\"路径\\\",\\\"最大张数\\\":\\\"最大张数\\\",\\\"开始索引\\\":\\\"开始索引\\\",Base64:\\\"Base64\\\",\\\"链接\\\":\\\"链接\\\"}}};function Oi(e,t,i){return function(){!function(e,t,i){var s;const n=LiteGraph.createNode(t);if(n){if(fe.graph.add(n),n.pos=e.pos.slice(),n.size=e.size.slice(),(null==(s=e.widgets)?void 0:s.length)\\u003e0\\u0026\\u0026e.widgets.forEach((e=\\u003e{var t,s,a;if(null==(s=null==(t=Ti[i])?void 0:t.widget)?void 0:s[e.name]){const t=Ti[i].widget[e.name];if(t\\u0026\\u0026n.widgets){const i=(a=t,n.widgets.find((e=\\u003e\\\"object\\\"==typeof a?a.includes(e.name):e.name===a)));i\\u0026\\u0026(i.value=e.value,\\\"seed_num\\\"==e.name\\u0026\\u0026(i.linkedWidgets[0].value=e.linkedWidgets[0].value),\\\"converted-widget\\\"==e.type\\u0026\\u0026Vi(n,i,e))}}})),e.inputs\\u0026\\u0026e.inputs.forEach(((t,s)=\\u003e{var a,o,l;if(t\\u0026\\u0026t.link\\u0026\\u0026(null==(o=null==(a=Ti[i])?void 0:a.input)?void 0:o[t.name])){const s=null==(l=Ti[i])?void 0:l.input[t.name];if(null===s)return;const a=n.findInputSlot(s);if(-1!==a){const i=e.graph.links[t.link];if(i){const t=e.graph.getNodeById(i.origin_id);t\\u0026\\u0026t.connect(i.origin_slot,n,a)}}}})),e.outputs\\u0026\\u0026e.outputs.forEach(((t,s)=\\u003e{var a,o;if(t\\u0026\\u0026t.links\\u0026\\u0026(null==(o=null==(a=Ti[i])?void 0:a.output)?void 0:o[t.name])){const s=Ti[i].output[t.name];if(null===s)return;const a=n.findOutputSlot(s);-1!==a\\u0026\\u0026t.links.forEach((t=\\u003e{const i=e.graph.links[t];if(i){const t=e.graph.getNodeById(i.target_id);t\\u0026\\u0026n.connect(a,t,i.target_slot)}}))}})),fe.graph.remove(e),\\\"easy fullkSampler\\\"==n.type){const e=n.outputs[0].links;if(e\\u0026\\u0026e[0]){const t=fe.graph._nodes.find((t=\\u003et.inputs\\u0026\\u0026t.inputs[0]\\u0026\\u0026t.inputs[0].link==e[0]));t\\u0026\\u0026fe.graph.remove(t)}}else if(Ti.preSampling.nodes.includes(n.type)){const e=n.outputs[0].links;if(!e||!e[0]){const e=LiteGraph.createNode(\\\"easy kSampler\\\");fe.graph.add(e),e.pos=n.pos.slice(),e.pos[0]=e.pos[0]+n.size[0]+20;const t=n.findInputSlot(\\\"pipe\\\");-1!==t\\u0026\\u0026n\\u0026\\u0026n.connect(0,e,t)}}n.setSize([n.size[0],n.computeSize()[1]])}}(e,t,i)}}const Mi=(e,t)=\\u003e{const i=e.prototype.getExtraMenuOptions;e.prototype.getExtraMenuOptions=function(){const e=i.apply(this,arguments);return t.apply(this,arguments),e}},Di=(e,t,i,s,n=!0)=\\u003e{Mi(s,(function(s,a){a.unshift({content:e,has_submenu:n,callback:(e,s,n,a,o)=\\u003eRi(e,s,n,a,o,t,i)}),\\\"loaders\\\"==t\\u0026\\u0026(a.unshift({content:Ne(\\\"💎 View Lora Info...\\\"),callback:(e,t,i,s,n)=\\u003e{let a=n.widgets.find((e=\\u003e\\\"lora_name\\\"==e.name)).value;a\\u0026\\u0026\\\"None\\\"!=a\\u0026\\u0026new Ii(a).show(\\\"loras\\\",a)}}),a.unshift({content:Ne(\\\"💎 View Checkpoint Info...\\\"),callback:(e,t,i,s,n)=\\u003e{let a=n.widgets[0].value;a\\u0026\\u0026\\\"None\\\"!=a\\u0026\\u0026new Ci(a).show(\\\"checkpoints\\\",a)}}))}))},Ri=(e,t,i,s,n,a,o)=\\u003e{const l=[];return o.map((e=\\u003e{n.type!==e\\u0026\\u0026l.push({content:`${e}`,callback:Oi(n,e,a)})})),new LiteGraph.ContextMenu(l,{event:i,callback:null,parentMenu:s,node:n}),!1},Pi=\\\"converted-widget\\\",Gi=Symbol();function zi(e,t,i=\\\"\\\"){if(t.origType=t.type,t.origComputeSize=t.computeSize,t.origSerializeValue=t.serializeValue,t.computeSize=()=\\u003e[0,-4],t.type=Pi+i,t.serializeValue=()=\\u003e{if(!e.inputs)return;let i=e.inputs.find((e=\\u003e{var i;return(null==(i=e.widget)?void 0:i.name)===t.name}));return i\\u0026\\u0026i.link?t.origSerializeValue?t.origSerializeValue():t.value:void 0},t.linkedWidgets)for(const s of t.linkedWidgets)zi(e,s,\\\":\\\"+t.name)}function Vi(e,t,i){zi(e,t);const{type:s}=function(e){let t=e[0];t instanceof Array\\u0026\\u0026(t=\\\"COMBO\\\");return{type:t}}(i),n=e.size;t.options\\u0026\\u0026t.options.forceInput||e.addInput(t.name,s,{widget:{name:t.name,[Gi]:()=\\u003ei}});for(const a of e.widgets)a.last_y+=LiteGraph.NODE_SLOT_HEIGHT;e.setSize([Math.max(n[0],e.size[0]),Math.max(n[1],e.size[1])])}const ji=function(e){var t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f,g,v,y,w;const b=e.constructor.type,_=(null==(t=e.properties)?void 0:t.origVals)||{},S=_.title||e.title,x=_.color||e.color,L=_.bgcolor||e.bgcolor,k=e.graph||fe.graph,E={size:[...e.size],color:x,bgcolor:L,pos:[...e.pos]},N=e=\\u003e{var t,i,s,n;return(null==(t=k.getLink)?void 0:t.call(k,e))||(null==(s=null==(i=k.links)?void 0:i.get)?void 0:s.call(i,e))||(null==(n=k.links)?void 0:n[e])},C=[],I=[],T=new Map((null==(i=e.inputs)?void 0:i.map((e=\\u003e[e.name,e.label])))||[]),O=new Map((null==(s=e.outputs)?void 0:s.map((e=\\u003e[e.name,e.label])))||[]),M=(null==(n=e.widgets)?void 0:n.map((e=\\u003e({name:e.name,type:e.origType||e.type,value:e.value}))))||[],D=[];null==(a=e.inputs)||a.forEach(((e,t)=\\u003e{var i,s;if(null==e.link)return;const n=N(e.link);if(!n)return;const a=k.getNodeById(n.origin_id);C.push({inputName:e.name,inputSlot:t,originId:n.origin_id,originName:null==(s=null==(i=null==a?void 0:a.outputs)?void 0:i[n.origin_slot])?void 0:s.name,originSlot:n.origin_slot})})),null==(o=e.outputs)||o.forEach(((e,t)=\\u003e{var i,s;for(const n of e.links||[]){const a=N(n);if(!a)continue;const o=k.getNodeById(a.target_id);I.push({outputName:e.name,outputSlot:t,targetId:a.target_id,targetName:null==(s=null==(i=null==o?void 0:o.inputs)?void 0:i[a.target_slot])?void 0:s.name,targetSlot:a.target_slot})}})),null==(l=e.widgets)||l.forEach((t=\\u003e{var i,s,n;if(t.type!==Pi)return;const a=null==(i=e.inputs)?void 0:i.find((e=\\u003e{var i;return(null==(i=e.widget)?void 0:i.name)===t.name||e.name===t.name})),o=null==(n=null==(s=null==a?void 0:a.widget)?void 0:s[Gi])?void 0:n.call(s);o\\u0026\\u0026D.push({name:t.name,config:o})}));const R=LiteGraph.createNode(b,S,E);if(!R)return;k.remove(e),k.add(R);const P=(e,t,i)=\\u003e{var s,n,a,o,l,r,d;const u=e.origType||e.type;if(u!==t||null==i)return!1;const c=null==(s=e.options)?void 0:s.values;if(null!=c){const t=\\\"function\\\"==typeof c?c(e,R):c;return Array.isArray(t)?t.includes(i):!(!t||\\\"object\\\"!=typeof t)\\u0026\\u0026(Object.prototype.hasOwnProperty.call(t,i)||Number.isInteger(i)\\u0026\\u0026i\\u003e=0\\u0026\\u0026i\\u003cObject.keys(t).length)}if(\\\"number\\\"===u||\\\"slider\\\"===u){if(\\\"number\\\"!=typeof i||!Number.isFinite(i))return!1;const t=(null==(n=e.options)?void 0:n.min)??-1/0,s=(null==(a=e.options)?void 0:a.max)??1/0;return t\\u003c=i\\u0026\\u0026i\\u003c=s}if(\\\"number\\\"==typeof i){const t=(null==(o=e.options)?void 0:o.min)??-1/0,s=(null==(l=e.options)?void 0:l.max)??1/0;return Number.isFinite(i)\\u0026\\u0026t\\u003c=i\\u0026\\u0026i\\u003c=s}return\\\"boolean\\\"!=typeof i||(\\\"toggle\\\"===e.type||!(!(null==(r=e.options)?void 0:r.on)||!(null==(d=e.options)?void 0:d.off)))};for(const{name:G,type:z,value:V}of M){const e=null==(r=R.widgets)?void 0:r.find((e=\\u003ee.name===G));e\\u0026\\u0026P(e,z,V)\\u0026\\u0026(e.value=V)}for(const{name:G,config:z}of D){const e=null==(d=R.widgets)?void 0:d.find((e=\\u003ee.name===G));e\\u0026\\u0026Vi(R,e,z)}null==(u=R.inputs)||u.forEach((e=\\u003e{T.has(e.name)\\u0026\\u0026(e.label=T.get(e.name))})),null==(c=R.outputs)||c.forEach((e=\\u003e{O.has(e.name)\\u0026\\u0026(e.label=O.get(e.name))}));for(const{inputName:G,inputSlot:z,originId:V,originName:j,originSlot:U}of C){const e=k.getNodeById(V);if(!e)continue;const t=(null==(p=null==(A=e.outputs)?void 0:A[U])?void 0:p.name)===j?U:e.findOutputSlot(j),i=(null==(m=null==(h=R.inputs)?void 0:h[z])?void 0:m.name)===G?z:R.findInputSlot(G);t\\u003e=0\\u0026\\u0026i\\u003e=0\\u0026\\u0026e.connect(t,R,i)}for(const{outputName:G,outputSlot:z,targetId:V,targetName:j,targetSlot:U}of I){const e=k.getNodeById(V);if(!e)continue;const t=(null==(g=null==(f=R.outputs)?void 0:f[z])?void 0:g.name)===G?z:R.findOutputSlot(G),i=(null==(y=null==(v=e.inputs)?void 0:v[U])?void 0:y.name)===j?U:e.findInputSlot(j);t\\u003e=0\\u0026\\u0026i\\u003e=0\\u0026\\u0026R.connect(t,e,i)}R.setSize(E.size),null==(w=R.setDirtyCanvas)||w.call(R,!0,!0)};fe.registerExtension({name:\\\"Comfy.EasyUse.ExtraMenu\\\",async beforeRegisterNodeDef(e,t,i){Mi(e,(function(e,i){i.unshift({content:Ne(\\\"🔃 Reload Node\\\"),callback:(e,t,i,s,n)=\\u003e{let a=LGraphCanvas.active_canvas;if(!a.selected_nodes||Object.keys(a.selected_nodes).length\\u003c=1)ji(n);else for(let o in a.selected_nodes)ji(a.selected_nodes[o])}}),\\\"easy ckptNames\\\"==t.name\\u0026\\u0026i.unshift({content:Ne(\\\"💎 View Checkpoint Info...\\\"),callback:(e,t,i,s,n)=\\u003e{n.widgets[0].value}})}));for(const s in Ti)Ti[s].nodes.includes(t.name)\\u0026\\u0026Di(`↪️ Swap ${Ti[s].category}`,s,Ti[s].nodes,e)}});const Ui=LiteGraph.LGraphNode,Wi=\\\"➡️\\\";fe.registerExtension({name:\\\"easy setNode\\\",registerCustomNodes(){class e extends Ui{constructor(t){super(\\\"Set\\\"),v(this,\\\"defaultVisibility\\\",!0),v(this,\\\"serialize_widgets\\\",!0),this.properties||(this.properties={previousName:\\\"\\\"}),this.properties.showOutputText=e.defaultVisibility;const i=this;i.color=LGraphCanvas.node_colors.blue.color,this.addWidget(\\\"text\\\",\\\"Constant\\\",\\\"\\\",((e,t,s,n,a)=\\u003e{i.validateName(i.graph),\\\"\\\"!==this.widgets[0].value\\u0026\\u0026(this.title=Wi+this.widgets[0].value),this.properties.previousName=this.widgets[0].value,this.update()}),{}),this.addInput(\\\"*\\\",\\\"*\\\"),this.onConnectionsChange=function(e,t,s,n,a){if(1!=e||s||(this.inputs[t].type=\\\"*\\\",this.inputs[t].name=\\\"*\\\",this.title=\\\"Set\\\"),n\\u0026\\u0026i.graph\\u0026\\u00261==e\\u0026\\u0026s){const e=i.graph._nodes.find((e=\\u003ee.id==n.origin_id)).outputs[n.origin_slot];if(!e)return;const t=e.type,s=i.is_auto_link?this.widgets[0].value:e.name;\\\"Set\\\"===this.title\\u0026\\u0026(this.title=Wi+s,this.widgets[0].value=s),\\\"*\\\"===this.widgets[0].value\\u0026\\u0026(this.widgets[0].value=s),this.validateName(i.graph),this.inputs[0]\\u0026\\u0026(this.inputs[0].type=t,this.inputs[0].name=s),setTimeout((e=\\u003e{this.title=Wi+this.widgets[0].value,this.properties.previousName=this.widgets[0].value}),1)}this.update()},this.validateName=function(e){let t=i.widgets[0].value;if(\\\"\\\"!=t){let s=0,n=[];do{n=e._nodes.filter((e=\\u003ee!=this\\u0026\\u0026(\\\"easy setNode\\\"==e.type\\u0026\\u0026e.widgets[0].value===t))),n.length\\u003e0\\u0026\\u0026(t=i.widgets[0].value+s),s++}while(n.length\\u003e0);i.widgets[0].value=t,this.update()}},this.clone=function(){const t=e.prototype.clone.apply(this);return t.inputs[0].name=\\\"*\\\",t.inputs[0].type=\\\"*\\\",t.properties.previousName=\\\"\\\",t.size=t.computeSize(),t},this.onAdded=function(e){this.validateName(e)},this.update=function(){if(i.graph){this.findGetters(i.graph).forEach((e=\\u003e{e.setType(this.inputs[0].type)})),this.widgets[0].value\\u0026\\u0026this.findGetters(i.graph,!0).forEach((e=\\u003e{e.setName(this.widgets[0].value)}));i.graph._nodes.filter((e=\\u003e\\\"easy getNode\\\"==e.type)).forEach((e=\\u003e{e.setComboValues\\u0026\\u0026e.setComboValues()}))}},this.findGetters=function(e,t){const i=t?this.properties.previousName:this.widgets[0].value;return e._nodes.filter((e=\\u003e\\\"easy getNode\\\"==e.type\\u0026\\u0026e.widgets[0].value===i\\u0026\\u0026\\\"\\\"!=i))},this.isVirtualNode=!0}onRemoved(){this.graph._nodes.filter((e=\\u003e\\\"easy getNode\\\"==e.type)).forEach((e=\\u003e{e.setComboValues\\u0026\\u0026e.setComboValues([this])}))}}LiteGraph.registerNodeType(\\\"easy setNode\\\",Object.assign(e,{title:\\\"Set\\\"})),e.category=\\\"EasyUse/Util\\\"}}),fe.registerExtension({name:\\\"easy getNode\\\",registerCustomNodes(){class e extends Ui{constructor(t){super(\\\"Get\\\"),v(this,\\\"defaultVisibility\\\",!0),v(this,\\\"serialize_widgets\\\",!0),this.properties||(this.properties={}),this.properties.showOutputText=e.defaultVisibility;const i=this;i.color=LGraphCanvas.node_colors.blue.color,this.addWidget(\\\"combo\\\",\\\"Constant\\\",\\\"\\\",(e=\\u003e{this.onRename()}),{values:()=\\u003ei.graph._nodes.filter((e=\\u003e\\\"easy setNode\\\"==e.type)).map((e=\\u003ee.widgets[0].value)).sort()}),this.addOutput(\\\"*\\\",\\\"*\\\"),this.onConnectionsChange=function(e,t,i,s,n){this.validateLinks(),2!=e||i?(this.onRename(),setTimeout((e=\\u003e{this.title=\\\"⬅️\\\"+this.widgets[0].value}),1)):(this.outputs[t].type=\\\"*\\\",this.outputs[t].name=\\\"*\\\",this.title=\\\"Get\\\")},this.setName=function(e){i.widgets[0].value=e,i.onRename(),i.serialize()},this.onRename=function(e=0){const t=this.findSetter(i.graph);if(t){const i=t.inputs[0].type,s=t.inputs[0].name;this.setType(i,s),this.outputs[e].type=i,this.outputs[e].name=s,this.title=\\\"⬅️\\\"+t.widgets[0].value}else this.setType(\\\"*\\\",\\\"*\\\"),this.outputs[e].type=\\\"*\\\",this.outputs[e].name=\\\"*\\\"},this.clone=function(){const t=e.prototype.clone.apply(this);return t.size=t.computeSize(),t},this.validateLinks=function(){\\\"*\\\"!=this.outputs[0].type\\u0026\\u0026this.outputs[0].links\\u0026\\u0026this.outputs[0].links.forEach((e=\\u003e{const t=i.graph.links[e];t\\u0026\\u0026t.type!=this.outputs[0].type\\u0026\\u0026\\\"*\\\"!=t.type\\u0026\\u0026i.graph.removeLink(e)}))},this.setType=function(e,t){this.outputs[0].name=t,this.outputs[0].type=e,this.validateLinks()},this.findSetter=function(e){const t=this.widgets[0].value;return e._nodes.find((e=\\u003e\\\"easy setNode\\\"==e.type\\u0026\\u0026e.widgets[0].value===t\\u0026\\u0026\\\"\\\"!=t))},this.isVirtualNode=!0}getInputLink(e){const t=this.findSetter(this.graph);if(t){const i=t.inputs[e];return this.graph.links[i.link]}throw new Error(\\\"No setter found for \\\"+this.widgets[0].value+\\\"(\\\"+this.type+\\\")\\\")}onAdded(e){}}LiteGraph.registerNodeType(\\\"easy getNode\\\",Object.assign(e,{title:\\\"Get\\\"})),e.category=\\\"EasyUse/Util\\\"}}),ge.addEventListener(\\\"easyuse-global-seed\\\",(function(e){let t=fe.graph._nodes_by_id;for(let i in t){let s=t[i];if(\\\"easy globalSeed\\\"==s.type){if(s.widgets){const t=s.widgets.find((e=\\u003e\\\"value\\\"==e.name));s.widgets.find((e=\\u003e\\\"last_seed\\\"==e.name)).value=t.value,t.value=e.detail.value}}else if(s.widgets){const t=s.widgets.find((e=\\u003e\\\"seed_num\\\"==e.name||\\\"seed\\\"==e.name||\\\"noise_seed\\\"==e.name));t\\u0026\\u0026null!=e.detail.seed_map[s.id]\\u0026\\u0026(t.value=e.detail.seed_map[s.id])}}}));const Fi=fe.graphToPrompt;fe.graphToPrompt=function(...e){const t=e[0]||fe.rootGraph||fe.graph;return Promise.resolve(Fi.apply(this,e)).then((e=\\u003efunction(e,t){const i=null==e?void 0:e.workflow;if(!i||\\\"object\\\"!=typeof i)return e;i.seed_widgets={};const s=(null==t?void 0:t._nodes_by_id)||{};for(let n in s){let e=s[n].widgets;if(e)for(let t in e)\\\"seed_num\\\"!=e[t].name\\u0026\\u0026\\\"seed\\\"!=e[t].name\\u0026\\u0026\\\"noise_seed\\\"!=e[t].name||\\\"converted-widget\\\"==e[t].type||(i.seed_widgets[n]=parseInt(t))}return e}(e,t)))};const Xi=[\\\"easy imageSave\\\",\\\"easy fullkSampler\\\",\\\"easy kSampler\\\",\\\"easy kSamplerTiled\\\",\\\"easy kSamplerInpainting\\\",\\\"easy kSamplerDownscaleUnet\\\",\\\"easy kSamplerSDTurbo\\\",\\\"easy detailerFix\\\"];fe.registerExtension({name:\\\"Comfy.EasyUse.SaveImageExtraOutput\\\",async beforeRegisterNodeDef(e,t,i){if(Xi.includes(t.name)){const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){const e=t?t.apply(this,arguments):void 0,s=this.widgets.find((e=\\u003e\\\"filename_prefix\\\"===e.name||\\\"save_prefix\\\"===e.name));return s.serializeValue=()=\\u003ebe(i,s.value),e}}else{const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){const e=t?t.apply(this,arguments):void 0;return this.properties\\u0026\\u0026\\\"Node name for S\\u0026R\\\"in this.properties||this.addProperty(\\\"Node name for S\\u0026R\\\",this.constructor.type,\\\"string\\\"),e}}}});const Zi=[\\\"easy wildcards\\\",\\\"easy positive\\\",\\\"easy negative\\\",\\\"easy stylesSelector\\\",\\\"easy promptConcat\\\",\\\"easy promptReplace\\\"],Hi=[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingNoiseIn\\\",\\\"easy preSamplingCustom\\\",\\\"easy preSamplingDynamicCFG\\\",\\\"easy preSamplingSdTurbo\\\",\\\"easy preSamplingLayerDiffusion\\\"],qi=[\\\"easy kSampler\\\",\\\"easy kSamplerTiled\\\",\\\"easy kSamplerInpainting\\\",\\\"easy kSamplerDownscaleUnet\\\",\\\"easy kSamplerSDTurbo\\\"],Yi=[\\\"easy controlnetLoader\\\",\\\"easy controlnetLoaderADV\\\"],Ki=[\\\"easy instantIDApply\\\",\\\"easy instantIDApplyADV\\\"],Ji=[\\\"easy ipadapterApply\\\",\\\"easy ipadapterApplyADV\\\",\\\"easy ipadapterApplyFaceIDKolors\\\",\\\"easy ipadapterStyleComposition\\\"],Bi=[\\\"easy pipeIn\\\",\\\"easy pipeOut\\\",\\\"easy pipeEdit\\\",\\\"easy pipeEditPrompt\\\"],Qi=[\\\"easy XYPlot\\\",\\\"easy XYPlotAdvanced\\\"],$i=[\\\"easy setNode\\\"],es=[\\\"RescaleCFG\\\",\\\"LoraLoaderModelOnly\\\",\\\"LoraLoader\\\",\\\"FreeU\\\",\\\"FreeU_v2\\\",...Ji,...$i],ts={\\\"easy seed\\\":{from:{INT:[...Hi,\\\"easy fullkSampler\\\"]}},\\\"easy positive\\\":{from:{STRING:[...Zi]}},\\\"easy negative\\\":{from:{STRING:[...Zi]}},\\\"easy wildcards\\\":{from:{STRING:[\\\"easy showAnything\\\",...Zi]}},\\\"easy stylesSelector\\\":{from:{STRING:[\\\"easy showAnything\\\",...Zi]}},\\\"easy promptConcat\\\":{from:{STRING:[\\\"easy showAnything\\\",...Zi]}},\\\"easy promptReplace\\\":{from:{STRING:[\\\"easy showAnything\\\",...Zi]}},\\\"easy fullLoader\\\":{from:{PIPE_LINE:[...Hi,\\\"easy fullkSampler\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy a1111Loader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy comfyLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy hunyuanDiTLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy kolorsLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy pixArtLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy fluxLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy svdLoader\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingDynamicCFG\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy zero123Loader\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingDynamicCFG\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy sv3dLoader\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingDynamicCFG\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy preSampling\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingAdvanced\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingDynamicCFG\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingCustom\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingLayerDiffusion\\\":{from:{PIPE_LINE:[\\\"easy kSamplerLayerDiffusion\\\",...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingNoiseIn\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy fullkSampler\\\":{from:{PIPE_LINE:[...Bi.reverse(),\\\"easy preDetailerFix\\\",\\\"easy preMaskDetailerFix\\\",...Hi,...$i]}},\\\"easy kSampler\\\":{from:{PIPE_LINE:[...Bi.reverse(),\\\"easy preDetailerFix\\\",\\\"easy preMaskDetailerFix\\\",\\\"easy hiresFix\\\",...Hi,...$i]}},\\\"easy controlnetLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\"easy controlnetLoaderADV\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\"easy instantIDApply\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{COMBO:[\\\"easy promptLine\\\"]}},\\\"easy instantIDApplyADV\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{COMBO:[\\\"easy promptLine\\\"]}},\\\"easy ipadapterApply\\\":{to:{COMBO:[\\\"easy promptLine\\\"]}},\\\"easy ipadapterApplyADV\\\":{to:{STRING:[\\\"easy sliderControl\\\",...Zi],COMBO:[\\\"easy promptLine\\\"]}},\\\"easy ipadapterStyleComposition\\\":{to:{COMBO:[\\\"easy promptLine\\\"]}},\\\"easy preDetailerFix\\\":{from:{PIPE_LINE:[\\\"easy detailerFix\\\",...Bi,...$i]},to:{PIPE_LINE:[\\\"easy ultralyticsDetectorPipe\\\",\\\"easy samLoaderPipe\\\",\\\"easy kSampler\\\",\\\"easy fullkSampler\\\"]}},\\\"easy preMaskDetailerFix\\\":{from:{PIPE_LINE:[\\\"easy detailerFix\\\",...Bi,...$i]}},\\\"easy samLoaderPipe\\\":{from:{PIPE_LINE:[\\\"easy preDetailerFix\\\",...Bi,...$i]}},\\\"easy ultralyticsDetectorPipe\\\":{from:{PIPE_LINE:[\\\"easy preDetailerFix\\\",...Bi,...$i]}},\\\"easy cascadeLoader\\\":{from:{PIPE_LINE:[\\\"easy fullCascadeKSampler\\\",\\\"easy preSamplingCascade\\\",...Yi,...Bi,...$i],MODEL:es.filter((e=\\u003e!Ji.includes(e)))}},\\\"easy fullCascadeKSampler\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",...Bi,...$i]}},\\\"easy preSamplingCascade\\\":{from:{PIPE_LINE:[\\\"easy cascadeKSampler\\\",...Bi,...$i]}},\\\"easy cascadeKSampler\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",...Bi,...$i]}},\\\"easy pipeEdit\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...$i]},to:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\"easy pipeEditPrompt\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...$i]},to:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}}};class is extends Error{constructor(e=\\\"Attempted to access LGraph reference that was null or undefined.\\\",t){super(e,{cause:t}),this.name=\\\"NullGraphError\\\"}}fe.registerExtension({name:\\\"Comfy.EasyUse.Suggestions\\\",async setup(e){const t=LGraphCanvas.prototype.createDefaultNodeForSlot;LGraphCanvas.prototype.createDefaultNodeForSlot=function(e){var i;const s=Object.assign({nodeFrom:null,slotFrom:null,nodeTo:null,slotTo:null,position:[],nodeType:null,posAdd:[0,0],posSizeFix:[0,0]},e||{}),n=this,a=s.nodeFrom\\u0026\\u0026null!==s.slotFrom,o=!a\\u0026\\u0026s.nodeTo\\u0026\\u0026null!==s.slotTo,l=a?s.nodeFrom:s.nodeTo;if(!l||!Object.keys(ts).includes(l.type))return t.call(this,e);if(!a\\u0026\\u0026!o)return!1;if(!s.nodeType)return!1;const r=a?s.nodeFrom:s.nodeTo;if(!r)throw new TypeError(\\\"nodeX was null when creating default node for slot.\\\");const d=r.type;let u=a?s.slotFrom:s.slotTo,c=!1;switch(typeof u){case\\\"string\\\":c=a?r.findOutputSlot(u,!1):r.findInputSlot(u,!1),u=a?r.outputs[u]:r.inputs[u];break;case\\\"object\\\":if(null===u)return!1;c=a?r.findOutputSlot(u.name):r.findInputSlot(u.name);break;case\\\"number\\\":c=u,u=a?r.outputs[u]:r.inputs[u];break;default:return!1}var A=u.type==LiteGraph.EVENT?\\\"_event_\\\":u.type,p=a?LiteGraph.slot_types_default_out:LiteGraph.slot_types_default_in;if(null==p?void 0:p[A]){let e=!1;const t=a?\\\"from\\\":\\\"to\\\";if(ts[d]\\u0026\\u0026ts[d][t]\\u0026\\u0026(null==(i=ts[d][t][A])?void 0:i.length)\\u003e0){for(var h in ts[d][t][A])if(s.nodeType==ts[d][t][A][h]||\\\"AUTO\\\"==s.nodeType){e=ts[d][t][A][h];break}}else if(\\\"object\\\"==typeof p[A]||\\\"array\\\"==typeof p[A]){for(var h in p[A])if(s.nodeType==p[A][h]||\\\"AUTO\\\"==s.nodeType){e=p[A][h];break}}else s.nodeType!=p[A]\\u0026\\u0026\\\"AUTO\\\"!=s.nodeType||(e=p[A]);if(e){var m=!1;\\\"object\\\"==typeof e\\u0026\\u0026e.node\\u0026\\u0026(m=e,e=e.node);var f=LiteGraph.createNode(e);if(f){if(m){if(m.properties)for(var g in m.properties)f.addProperty(g,m.properties[g]);if(m.inputs)for(var g in f.inputs=[],m.inputs)f.addOutput(m.inputs[g][0],m.inputs[g][1]);if(m.outputs)for(var g in f.outputs=[],m.outputs)f.addOutput(m.outputs[g][0],m.outputs[g][1]);m.title\\u0026\\u0026(f.title=m.title),m.json\\u0026\\u0026f.configure(m.json)}n.graph.add(f),f.pos=[s.position[0]+s.posAdd[0]+(s.posSizeFix[0]?s.posSizeFix[0]*f.size[0]:0),s.position[1]+s.posAdd[1]+(s.posSizeFix[1]?s.posSizeFix[1]*f.size[1]:0)];const e={node:f,opts:s};if(!this.canvas.dispatchEvent(new CustomEvent(\\\"connect-new-default-node\\\",{detail:e,cancelable:!0})))return!0;if(a){if(!s.nodeFrom)throw new TypeError(\\\"createDefaultNodeForSlot - nodeFrom was null\\\");s.nodeFrom.connectByType(c,f,A)}else{if(!s.nodeTo)throw new TypeError(\\\"createDefaultNodeForSlot - nodeTo was null\\\");s.nodeTo.connectByTypeOutput(c,f,A)}return!0}}}return!1};let i=LGraphCanvas.prototype.showConnectionMenu;LGraphCanvas.prototype.showConnectionMenu=function(e){var t;const s=Object.assign({nodeFrom:null,slotFrom:null,nodeTo:null,slotTo:null,e:void 0,allow_searchbox:this.allow_searchbox,showSearchBox:this.showSearchBox},e||{}),n=this,{graph:a}=this,{afterRerouteId:o}=s,l=s.nodeFrom\\u0026\\u0026s.slotFrom,r=!l\\u0026\\u0026s.nodeTo\\u0026\\u0026s.slotTo,d=l?s.nodeFrom:s.nodeTo;if(!d||!Object.keys(ts).includes(d.type))return i.call(this,e);if(!l\\u0026\\u0026!r)return!1;const u=l?s.nodeFrom:s.nodeTo;if(!u)throw new TypeError(\\\"nodeX was null when creating default node for slot.\\\");let c=l?s.slotFrom:s.slotTo,A=!1;switch(typeof c){case\\\"string\\\":A=l?u.findOutputSlot(c,!1):u.findInputSlot(c,!1),c=l?u.outputs[c]:u.inputs[c];break;case\\\"object\\\":if(null===c)return;A=l?u.findOutputSlot(c.name):u.findInputSlot(c.name);break;case\\\"number\\\":A=c,c=l?u.outputs[c]:u.inputs[c];break;default:return!1}const p=[\\\"Add Node\\\",\\\"Add Reroute\\\",null];s.allow_searchbox\\u0026\\u0026p.push(\\\"Search\\\",null);var h=c.type==LiteGraph.EVENT?\\\"_event_\\\":c.type,m=l?LiteGraph.slot_types_default_out:LiteGraph.slot_types_default_in,f=u.type;if(m\\u0026\\u0026m[h]){const e=l?\\\"from\\\":\\\"to\\\";if(ts[f]\\u0026\\u0026ts[f][e]\\u0026\\u0026(null==(t=ts[f][e][h])?void 0:t.length)\\u003e0)for(var g in ts[f][e][h])p.push(ts[f][e][h][g]);else if(\\\"object\\\"==typeof m[h]||\\\"array\\\"==typeof m[h])for(var g in m[h])p.push(m[h][g]);else p.push(m[h])}var v=new LiteGraph.ContextMenu(p,{event:s.e,extra:c,title:(c\\u0026\\u0026\\\"\\\"!=c.name?c.name+(h?\\\" | \\\":\\\"\\\"):\\\"\\\")+(c\\u0026\\u0026h?h:\\\"\\\"),callback:function(e,t,i){var r,d;switch(e){case\\\"Add Node\\\":LGraphCanvas.onMenuAdd(null,null,i,v,(function(e){var t,i;e\\u0026\\u0026(l?null==(t=s.nodeFrom)||t.connectByType(A,e,h,{afterRerouteId:o}):null==(i=s.nodeTo)||i.connectByTypeOutput(A,e,h,{afterRerouteId:o}))}));break;case\\\"Add Reroute\\\":const u=l?s.nodeFrom:s.nodeTo,p=t.extra;if(!a)throw new is;if(!u)throw new TypeError(\\\"Cannot add reroute: node was null\\\");if(!p)throw new TypeError(\\\"Cannot add reroute: slot was null\\\");if(!s.e)throw new TypeError(\\\"Cannot add reroute: CanvasPointerEvent was null\\\");if(!u.connectFloatingReroute([s.e.canvasX,s.e.canvasY],p,o))throw new Error(\\\"Failed to create reroute\\\");n.dirty_canvas=!0,n.dirty_bgcanvas=!0;break;case\\\"Search\\\":l?s.showSearchBox(i,{node_from:s.nodeFrom,slot_from:c,type_filter_in:h}):s.showSearchBox(i,{node_to:s.nodeTo,slot_from:c,type_filter_out:h});break;default:const m={position:[(null==(r=s.e)?void 0:r.canvasX)??0,(null==(d=s.e)?void 0:d.canvasY)??0],nodeType:e,afterRerouteId:o};n.createDefaultNodeForSlot(Object.assign(s,m))}}});return v}}}),fe.registerExtension({name:\\\"Comfy.EasyUse.TimeTaken\\\",setup(){let e=new Map,t=0;ge.addEventListener(\\\"execution_start\\\",(e=\\u003e{graph\\u0026\\u0026graph._nodes.forEach((e=\\u003e{e.executionDuration\\u0026\\u0026delete e.executionDuration}))})),ge.addEventListener(\\\"executing\\\",(i=\\u003e{if(!xe(\\\"EasyUse.Nodes.Runtime\\\",null))return;const s=(null==i?void 0:i.node)||(null==i?void 0:i.detail)||null,n=e.get(t);if(e.delete(t),t\\u0026\\u0026n){const e=Date.now()-n,i=xt(t);i\\u0026\\u0026(i.executionDuration||(i.executionDuration=0),i.executionDuration=i.executionDuration+e/1e3)}t=s,e.set(s,Date.now())}))},beforeRegisterNodeDef(e,t){const i=e.prototype.onDrawForeground;e.prototype.onDrawForeground=function(...e){const[t]=e;return function(e,t){if(!t)return;t=parseFloat(t).toFixed(3)+Ne(\\\"s\\\"),e.save(),e.fillStyle=LiteGraph.NODE_DEFAULT_BGCOLOR,function(e,t,i,s,n,a){e.beginPath(),e.moveTo(t+a,i),e.lineTo(t+s-a,i),e.arcTo(t+s,i,t+s,i+a,a),e.lineTo(t+s,i+n-a),e.arcTo(t+s,i+n,t+s-a,i+n,a),e.lineTo(t+a,i+n),e.arcTo(t,i+n,t,i+n-a,a),e.lineTo(t,i+a),e.arcTo(t,i,t+a,i,a),e.closePath()}(e,0,-LiteGraph.NODE_TITLE_HEIGHT-20,e.measureText(t).width+10,LiteGraph.NODE_TITLE_HEIGHT-10,4),e.fill(),function(e,t,i,s,n=\\\"#000\\\",a=12,o=\\\"Inter\\\"){e.font=`${a}px ${o}`,e.fillStyle=n,e.fillText(t,i,s)}(e,t,8,-LiteGraph.NODE_TITLE_HEIGHT-6,LiteGraph.NODE_TITLE_COLOR),e.restore()}(t,this.executionDuration),null==i?void 0:i.apply(this,e)}}});let ss=null;fe.registerExtension({name:\\\"Comfy.EasyUse.HotKeys\\\",setup(){if(void 0!==x){x(\\\"up,down,left,right\\\",(function(e,t){var i,s,n,a,o,l,r,d,u,c,A,p,h,m,f;e.preventDefault();if(!xe(\\\"EasyUse.Hotkeys.JumpNearestNodes\\\",null))return;const g=Lt();if(0===g.length)return;const v=g[0];switch(t.key){case\\\"up\\\":case\\\"left\\\":let e=null;if(Tt(v)){const e=null==(i=v.widgets_values)?void 0:i[0],t=null==(s=v.graph)?void 0:s._nodes,n=null==t?void 0:t.find((t=\\u003e{var i;if(Ot(t)){if((null==(i=t.widgets_values)?void 0:i[0])===e)return t}return null}));n\\u0026\\u0026Et(n)}else if((null==(n=v.inputs)?void 0:n.length)\\u003e0){for(let t=0;t\\u003cv.inputs.length;t++)if(v.inputs[t].link){e=v.inputs[t].link;break}if(e){const t=null==(a=v.graph)?void 0:a.links;if(t[e]){const i=null==(o=t[e])?void 0:o.origin_id,s=null==(r=null==(l=v.graph)?void 0:l._nodes_by_id)?void 0:r[i];s\\u0026\\u0026Et(s)}}}break;case\\\"down\\\":case\\\"right\\\":let t=null;if(Ot(v)){const e=null==(d=v.widgets_values)?void 0:d[0],t=null==(u=v.graph)?void 0:u._nodes,i=null==t?void 0:t.find((t=\\u003e{var i;if(Tt(t)){if((null==(i=t.widgets_values)?void 0:i[0])===e)return t}return null}));i\\u0026\\u0026Et(i)}else if((null==(c=v.outputs)?void 0:c.length)\\u003e0){for(let e=0;e\\u003cv.outputs.length;e++)if((null==(A=v.outputs[e].links)?void 0:A.length)\\u003e0\\u0026\\u0026v.outputs[e].links[0]){t=v.outputs[e].links[0];break}if(t){const e=null==(p=v.graph)?void 0:p.links;if(e[t]){const i=null==(h=e[t])?void 0:h.target_id,s=null==(f=null==(m=v.graph)?void 0:m._nodes_by_id)?void 0:f[i];s\\u0026\\u0026Et(s)}}}}})),x(\\\"shift+up,shift+down,shift+left,shift+right,shift+alt+⌘+left,shift+alt+⌘+right,shift+alt+ctrl+left,shift+alt+ctrl+right\\\",(function(e,t){e.preventDefault();if(!xe(\\\"EasyUse.Hotkeys.AlignSelectedNodes\\\",null))return;const i=Lt();if(i.length\\u003c=1)return;const s=i;switch(t.key){case\\\"shift+up\\\":LGraphCanvas.alignNodes(s,\\\"top\\\",s[0]);break;case\\\"shift+down\\\":LGraphCanvas.alignNodes(s,\\\"bottom\\\",s[0]);break;case\\\"shift+left\\\":LGraphCanvas.alignNodes(s,\\\"left\\\",s[0]);break;case\\\"shift+right\\\":LGraphCanvas.alignNodes(s,\\\"right\\\",s[0]);break;case\\\"shift+alt+ctrl+left\\\":case\\\"shift+alt+⌘+left\\\":Ft(s,\\\"horizontal\\\");break;case\\\"shift+alt+ctrl+right\\\":case\\\"shift+alt+⌘+right\\\":Ft(s,\\\"vertical\\\")}ss||(ss=Ke()),ss\\u0026\\u0026ss.update()})),x(\\\"shift+⌘+left,shift+⌘+right,shift+ctrl+left,shift+ctrl+right\\\",(function(e,t){e.preventDefault();if(!xe(\\\"EasyUse.Hotkeys.NormalizeSelectedNodes\\\",null))return;const i=Lt();if(i.length\\u003c=1)return;const s=i;switch(t.key){case\\\"shift+ctrl+left\\\":case\\\"shift+⌘+left\\\":Wt(s,\\\"width\\\");break;case\\\"shift+ctrl+right\\\":case\\\"shift+⌘+right\\\":Wt(s,\\\"height\\\")}ss||(ss=Ke()),ss\\u0026\\u0026ss.update()})),x(\\\"shift+g\\\",(function(e,t){e.preventDefault();xe(\\\"EasyUse.Hotkeys.AddGroup\\\",null)\\u0026\\u0026(as(),ss||(ss=Ke()),ss\\u0026\\u0026ss.update())})),x(\\\"shift+r\\\",(function(e,t){e.preventDefault();xe(\\\"EasyUse.Hotkeys.cleanVRAMused\\\",null)\\u0026\\u0026vi()})),x(\\\"shift+m\\\",(function(e,t){var i,s,n;if(!xe(\\\"EasyUse.Hotkeys.toggleNodesMap\\\",null))return;let a=(null==(i=fe.extensionManager)?void 0:i.sidebarTab)||fe.extensionManager,o=(null==(s=fe.extensionManager.sidebarTab)?void 0:s.activeSidebarTabId)||(null==(n=fe.extensionManager)?void 0:n.activeSidebarTab);a.activeSidebarTabId=o==Pe?null:Pe}));const e=[];Array.from(Array(10).keys()).forEach((t=\\u003ee.push(`alt+${t}`))),x(e.join(\\\",\\\"),(async function(e,t){e.preventDefault();if(!xe(\\\"EasyUse.Hotkeys.NodesTemplate\\\",null))return;const i=t.key;let s=parseInt(i.split(\\\"+\\\")[1]);const n=await ge.getUserData(\\\"comfy.templates.json\\\");let a=null;if(200==n.status)try{a=await n.json()}catch(l){Ye.error(Ne(\\\"Get Node Templates File Failed\\\"))}else localStorage[\\\"Comfy.NodeTemplates\\\"]?a=JSON.parse(localStorage[\\\"Comfy.NodeTemplates\\\"]):Ye.warn(Ne(\\\"No Node Templates Found\\\"));if(!a)return void Ye.warn(Ne(\\\"No Node Templates Found\\\"));s=0===s?9:s-1;const o=a[s];if(o)try{const e=(null==o?void 0:o.name)||\\\"Group\\\",t=(null==o?void 0:o.data)?JSON.parse(o.data):[];ns((async()=\\u003e{await _e.registerFromWorkflow(t.groupNodes,{}),localStorage.litegrapheditor_clipboard=o.data,fe.canvas.pasteFromClipboard(),t.groupNodes||as(e)}))}catch(l){Ye.error(l)}else Ye.warn(Ne(\\\"Node template with {key} not set\\\").replace(\\\"{key}\\\",i))}));const t=async function(e){if((\\\"b\\\"===e.key||\\\"m\\\"==e.key)\\u0026\\u0026(e.metaKey||e.ctrlKey)){if(0===Lt().length)return;ss||(ss=Ke()),ss\\u0026\\u0026ss.update()}};window.addEventListener(\\\"keydown\\\",t,!0)}}});const ns=async e=\\u003e{const t=localStorage.litegrapheditor_clipboard;await e(),localStorage.litegrapheditor_clipboard=t},as=e=\\u003e{const t=Lt();if(0===t.length)return;const i=t;let s=new LiteGraph.LGraphGroup;s.title=e||\\\"Group\\\",((e,t=[],i=20)=\\u003e{var s,n,a,o,l,r,d,u,c,A;for(var p of(n=a=o=l=-1,r=d=u=c=-1,[e._nodes,t]))for(var h in p)r=(A=p[h]).pos[0],d=A.pos[1],u=A.pos[0]+A.size[0],c=A.pos[1]+A.size[1],\\\"Reroute\\\"!=A.type\\u0026\\u0026(d-=LiteGraph.NODE_TITLE_HEIGHT),(null==(s=A.flags)?void 0:s.collapsed)\\u0026\\u0026(c=d+LiteGraph.NODE_TITLE_HEIGHT,(null==A?void 0:A._collapsed_width)\\u0026\\u0026(u=r+Math.round(A._collapsed_width))),(-1==n||r\\u003cn)\\u0026\\u0026(n=r),(-1==a||d\\u003ca)\\u0026\\u0026(a=d),(-1==o||u\\u003eo)\\u0026\\u0026(o=u),(-1==l||c\\u003el)\\u0026\\u0026(l=c);a-=Math.round(1.4*e.font_size),e.pos=[n-i,a-i],e.size=[o-n+2*i,l-a+2*i]})(s,i),fe.canvas.graph.add(s)},os=\\\"easy imageChooser\\\",ls=e=\\u003e(null==e?void 0:e.comfyClass)===os;fe.registerExtension({name:\\\"Comfy.EasyUse.imageChooser\\\",setup(){const e=ge.interrupt;ge.interrupt=function(){var t;(null==(t=fe.graph)?void 0:t._nodes_by_id)\\u0026\\u0026(()=\\u003e{var e;Object.values(null==(e=fe.graph)?void 0:e._nodes_by_id).forEach((e=\\u003e{ls(e)\\u0026\\u0026e.cancelSelection(\\\"interrupt\\\")}))})(),e.apply(this,arguments)},ge.addEventListener(\\\"easyuse-image-choose\\\",(e=\\u003e{var t;const i=e.detail,s=fe.graph._nodes_by_id[i.id];if(!s||!ls(s))return;s.setExecutingState(!1),s.selected_images.clear(),s.anti_selected.clear(),s.isWaitingSelection=[\\\"Always Pause\\\",\\\"Keep Last Selection\\\"].includes(s.currentMode),s.isCanceling=!1,s.overIndex=null;const n=(null==(t=i.urls)?void 0:t.map(((e,t)=\\u003e({index:t,filename:e.filename,subfolder:e.subfolder,type:e.type}))))||[];s.imageData=n,s.imgs=[],n.forEach((e=\\u003e{const t=new Image;t.onload=()=\\u003e{fe.graph.setDirtyCanvas(!0)},t.src=`/view?filename=${encodeURIComponent(e.filename)}${(e=\\u003e`\\u0026type=${e.type}\\u0026subfolder=${e.subfolder}\\u0026rand=${e.random}`)(e)}`,s.imgs.push(t)})),s.update(),\\\"Always Pause\\\"===s.currentMode\\u0026\\u0026s.setExecutingState(!0)})),ge.addEventListener(\\\"easyuse-image-keep-selection\\\",(e=\\u003e{const t=e.detail,i=fe.graph._nodes_by_id[t.id];i\\u0026\\u0026ls(i)\\u0026\\u0026(i.isWaitingSelection=!1,i.isCancelling=!1,t.selected\\u0026\\u0026Array.isArray(t.selected)\\u0026\\u0026(i.selected_images.clear(),t.selected.forEach((e=\\u003e{i.selected_images.add(e)}))),i.update())}))},beforeRegisterNodeDef(e,t){if(t.name==os){e.prototype.confirmSelection=function(){ge.fetchApi(\\\"/easyuse/image_chooser_message\\\",{method:\\\"POST\\\",body:JSON.stringify({node_id:this.id.toString(),action:\\\"select\\\",selected:Array.from(this.selected_images)})}).catch((e=\\u003e{})).finally((e=\\u003e{this.isWaitingSelection=!1,this.update(),this.setExecutingState(!1)}))},e.prototype.cancelSelection=function(e){ge.fetchApi(\\\"/easyuse/image_chooser_message\\\",{method:\\\"POST\\\",body:JSON.stringify({node_id:this.id.toString(),action:\\\"cancel\\\",selected:[]})}).catch((e=\\u003e{})).finally((e=\\u003e{this.isCanceling=!1,this.isWaitingSelection=!1,this.update(),this.setExecutingState(!1)}))},e.prototype.updateWidgets=function(){var e;if(!this.confirm_button_widget||!this.cancel_button_widget)return;const t=this.selected_images.size,i=(null==(e=this.imgs)?void 0:e.length)||0;if(this.isCanceling)this.confirm_button_widget.name=Ne(\\\"Canceling\\\"),this.cancel_button_widget.name=\\\"\\\",this.confirm_button_widget.disabled=!0,this.cancel_button_widget.disabled=!0;else if(this.isWaitingSelection)t\\u003e0?(this.confirm_button_widget.name=t\\u003e1?`${Ne(\\\"Progress selected\\\")} (${t}/${i})`:`${Ne(\\\"Progress selected image\\\")}`,this.confirm_button_widget.disabled=!1):(this.confirm_button_widget.name=Ne(\\\"Please select images to continue\\\"),this.confirm_button_widget.disabled=!0),this.cancel_button_widget.name=Ne(\\\"Cancel current run\\\"),this.cancel_button_widget.disabled=!1;else{const e={\\\"Always Pause\\\":Ne(\\\"Waiting for selection...\\\"),\\\"Keep Last Selection\\\":Ne(\\\"Using last selection\\\")};this.confirm_button_widget.name=(t\\u003e0\\u0026\\u0026\\\"Always Pause\\\"==this.currentMode?Ne(\\\"Please run first\\\"):null==e?void 0:e[this.currentMode])||Ne(\\\"Unknown Mode\\\"),this.cancel_button_widget.name=\\\"\\\",this.confirm_button_widget.disabled=!0,this.cancel_button_widget.disabled=!0}this.setDirtyCanvas(!0,!0)},e.prototype.serialize=function(){const e=LiteGraph.LGraphNode.prototype.serialize.call(this);return e.isWaitingSelection=this.isWaitingSelection,e.currentMode=this.currentMode,this.imageData\\u0026\\u0026this.imageData.length\\u003e0\\u0026\\u0026(e.imageData=this.imageData),this.selected_images\\u0026\\u0026this.selected_images.size\\u003e0\\u0026\\u0026(e.selected_images=Array.from(this.selected_images)),e.isExecuting=this.isExecuting||!1,e},e.prototype.configure=function(e){LiteGraph.LGraphNode.prototype.configure.call(this,e),this.isWaitingSelection=e.isWaitingSelection||!1,this.currentMode=e.currentMode||\\\"Always Pause\\\",this.imgs=[],this.updateWidgets()},e.prototype.setExecutingState=function(e){this.isExecuting=e,fe.graph\\u0026\\u0026fe.graph.setDirtyCanvas(!0,!1)};const t=e.prototype.update;e.prototype.update=function(){null==t||t.call(this,arguments),this.updateWidgets()};const i=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){null==i||i.call(this,arguments),this.selected_images=new Set,this.anti_selected=new Set,this.currentMode=\\\"Always Pause\\\",this.isWaitingSelection=!1,this.isCanceling=!1,this.imageData=[],this.imgs,this.confirm_button_widget=this.addWidget(\\\"button\\\",\\\"\\\",\\\"\\\",(()=\\u003e{this.confirmSelection()})),this.cancel_button_widget=this.addWidget(\\\"button\\\",\\\"\\\",\\\"\\\",(()=\\u003e{this.cancelSelection()})),this.confirm_button_widget.serialize=!1,this.cancel_button_widget.serialize=!1,setTimeout((e=\\u003e{const t=wt(this,\\\"mode\\\");t.callback=e=\\u003e{requestAnimationFrame((t=\\u003e{this.currentMode=e,this.updateWidgets(),this.setDirtyCanvas(!0,!0)}))},this.currentMode=t.value||\\\"Always Pause\\\",this.updateWidgets()}),1),Object.defineProperty(this.confirm_button_widget,\\\"clicked\\\",{get:function(){return this._clicked},set:function(e){this._clicked=e\\u0026\\u0026\\\"\\\"!=this.name}}),Object.defineProperty(this.cancel_button_widget,\\\"clicked\\\",{get:function(){return this._clicked},set:function(e){this._clicked=e\\u0026\\u0026\\\"\\\"!=this.name}}),Object.defineProperty(this,\\\"imageIndex\\\",{get:function(){return null},set:function(e){this.overIndex=e}}),Object.defineProperty(this,\\\"imagey\\\",{get:function(){var e,t;return(null==(t=null==(e=this.widgets)?void 0:e[this.widgets.length-1])?void 0:t.last_y)+LiteGraph.NODE_WIDGET_HEIGHT},set:function(e){this.imagey=e}});const e=this.onMouseDown;this.onMouseDown=function(t,i,s){if(t.isPrimary){const e=rs(this,i);e\\u003e=0\\u0026\\u0026this.toggleImageSelection(e)}return e\\u0026\\u0026e.apply(this,arguments)},this.update()},e.prototype.onDrawBackground,e.prototype.onDrawBackground=function(e){!function(e,t,i=0){var s,n;if(!e.imgs||!e.imgs.length)return;const a=fe.canvas,o=a.graph_mouse,l=15,r=e.size[0];let d=e.size[1]-i-l;d\\u003c200\\u0026\\u0026(d=200,requestAnimationFrame((t=\\u003e{e.size[1]=i+l+200})));if(null==e.imageIndex){let n,l,u,c;if(us(e.imgs))({cellWidth:n,cellHeight:l,cols:c,shiftX:u}=cs(e.imgs,r,d));else{const t=e.imgs.reduce(((e,t)=\\u003eMath.max(e,t.naturalWidth,t.naturalHeight)),0),i=[];i.length=null==(s=e.imgs)?void 0:s.length,i[0]={naturalWidth:t,naturalHeight:t},({cellWidth:n,cellHeight:l,cols:c,shiftX:u}=cs(i,r,d))}let A=!1,p=e.imgs.length;e.imageRects=[];for(let s=0;s\\u003cp;s++){e.imgs[s];const r=s%c*n+u,d=Math.floor(s/c)*l+i;if(!A\\u0026\\u0026(A=LiteGraph.isInsideRectangle(o[0],o[1],r+e.pos[0],d+e.pos[1],n,l),A)){e.overIndex=s;let i=110;a.pointer_is_down\\u0026\\u0026(e.pointerDown\\u0026\\u0026e.pointerDown.index===s||(e.pointerDown={index:s,pos:[...o]}),i=125),t.filter=`contrast(${i}%) brightness(${i}%)`,a.canvas.style.cursor=\\\"pointer\\\"}e.imageRects.push([r,d,n,l])}}if(e.imageRects)for(let c=0;c\\u003ce.imgs.length;c++){t.fillStyle=\\\"#000\\\",t.fillRect(...e.imageRects[c]);const i=e.imgs[c],s=e.imageRects[c][2],n=e.imageRects[c][3];let a=s/i.width,o=n/i.height;var u=Math.min(a,o);let l=u*i.height,r=u*i.width;const d=e.imageRects[c][0]+(s-r)/2,A=e.imageRects[c][1]+(n-l)/2,p=2;t.drawImage(i,d+p,A+p,r-2*p,l-2*p)}t.lineWidth=2,t.strokeStyle=\\\"green\\\",e\\u0026\\u0026e.selected_images\\u0026\\u0026e.selected_images.forEach((i=\\u003e{ds(e,i,t)}));t.strokeStyle=\\\"#F88\\\",null==(n=null==e?void 0:e.anti_selected)||n.forEach((i=\\u003e{ds(e,i,t)}))}(this,e,this.imagey||0)},e.prototype.toggleImageSelection=function(e){this.selected_images.has(e)?this.selected_images.delete(e):this.selected_images.add(e),this.update()}}}});const rs=(e,t)=\\u003e{var i,s;if((null==(i=e.imgs)?void 0:i.length)\\u003e1)for(var n=0;n\\u003ce.imageRects.length;n++){const i=t[0]-e.imageRects[n][0],s=t[1]-e.imageRects[n][1];if(i\\u003e0\\u0026\\u0026i\\u003ce.imageRects[n][2]\\u0026\\u0026s\\u003e0\\u0026\\u0026s\\u003ce.imageRects[n][3])return n}else if(1==(null==(s=e.imgs)?void 0:s.length)\\u0026\\u0026t[1]\\u003ee.imagey)return 0;return-1};function ds(e,t,i){var s;if(e.imageRects)s=e.imageRects[t];else{const t=e.imagey;s=[1,t+1,e.size[0]-2,e.size[1]-t-2]}i.strokeRect(s[0]+1,s[1]+1,s[2]-2,s[3]-2)}const us=e=\\u003e{if(!e.length||1===e.length)return!0;const t=e[0].naturalWidth/e[0].naturalHeight;for(let i=1;i\\u003ce.length;i++){if(t!=e[i].naturalWidth/e[i].naturalHeight)return!1}return!0};function cs(e,t,i){let s=0,n=e[0].naturalWidth,a=e[0].naturalHeight;const o=e.length;let l,r,d,u,c;for(let A=1;A\\u003c=o;A++){const e=Math.ceil(o/A),p=t/A,h=p/n,m=i/e/a,f=Math.min(h,m,1),g=n*f,v=a*f,y=g*v*o;y\\u003es\\u0026\\u0026(s=y,l=g,r=v,d=A,u=e,c=A*((p-g)/2))}return{cellWidth:l,cellHeight:r,cols:d,rows:u,shiftX:c}}Number.prototype.div=function(e){return function(e,t){let i,s,n=0,a=0,o=\\\"string\\\"==typeof e?e:e.toString(),l=\\\"string\\\"==typeof t?t:t.toString();try{n=o.toString().split(\\\".\\\")[1].length}catch(r){}try{a=l.toString().split(\\\".\\\")[1].length}catch(r){}return i=Number(o.toString().replace(\\\".\\\",\\\"\\\")),s=Number(l.toString().replace(\\\".\\\",\\\"\\\")),i/s*Math.pow(10,a-n)}(this,e)};let As=[],ps=0;const hs={sd3:6.5,\\\"sd3-turbo\\\":4};class ms extends ye{constructor(){super(),this.lists=[],this.dialog_div=null,this.user_div=null}addItem(e,t){return ve(\\\"div.easyuse-account-dialog-item\\\",[ve(\\\"input\\\",{type:\\\"text\\\",placeholder:\\\"Enter name\\\",oninput:e=\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\".easyuse-account-dialog-item\\\"),e.target.parentNode);As[t].name=e.target.value},value:As[e].name}),ve(\\\"input.key\\\",{type:\\\"text\\\",oninput:e=\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\".easyuse-account-dialog-item\\\"),e.target.parentNode);As[t].key=e.target.value},placeholder:\\\"Enter APIKEY\\\",value:As[e].key}),ve(\\\"button.choose\\\",{textContent:Ne(\\\"Choose\\\"),onclick:async e=\\u003e{var i,s,n;const a=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\".easyuse-account-dialog-item\\\"),e.target.parentNode);let o=As[a].name,l=As[a].key;if(!o)return void Ye.error(Ne(\\\"Please enter the account name\\\"));if(!l)return void Ye.error(Ne(\\\"Please enter the APIKEY\\\"));let r=!0;for(let t=0;t\\u003cAs.length;t++)if(!As[t].key){r=!1;break}if(!r)return void Ye.error(Ne(\\\"APIKEY is not Empty\\\"));ps=a;const d=new FormData;d.append(\\\"api_keys\\\",JSON.stringify(As)),d.append(\\\"current\\\",ps);const u=await ge.fetchApi(\\\"/easyuse/stability/set_api_keys\\\",{method:\\\"POST\\\",body:d});if(200==u.status){const e=await u.json();if((null==e?void 0:e.account)\\u0026\\u0026(null==e?void 0:e.balance)){const a=(null==(i=e.account)?void 0:i.profile_picture)||null,o=(null==(s=e.account)?void 0:s.email)||null,l=(null==(n=e.balance)?void 0:n.credits)||0;t.replaceChildren(ve(\\\"div.easyuse-account-user-info\\\",{onclick:e=\\u003e{(new ms).show(t)}},[ve(\\\"div.user\\\",[ve(\\\"div.avatar\\\",a?[ve(\\\"img\\\",{src:a})]:\\\"😀\\\"),ve(\\\"div.info\\\",[ve(\\\"h5.name\\\",o),ve(\\\"h6.remark\\\",\\\"Credits: \\\"+l)])]),ve(\\\"div.edit\\\",{textContent:Ne(\\\"Edit\\\")})])),Ye.success(Ne(\\\"Save Succeed\\\"))}else Ye.success(Ne(\\\"Save Succeed\\\"));this.close()}else Ye.error(Ne(\\\"Save Failed\\\"))}}),ve(\\\"button.delete\\\",{textContent:Ne(\\\"Delete\\\"),onclick:e=\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\".easyuse-account-dialog-item\\\"),e.target.parentNode);As.length\\u003c=1?Ye.error(Ne(\\\"At least one account is required\\\")):(As.splice(t,1),this.dialog_div.removeChild(e.target.parentNode))}})])}show(e){As.forEach(((t,i)=\\u003e{this.lists.push(this.addItem(i,e))})),this.dialog_div=ve(\\\"div.easyuse-account-dialog\\\",this.lists),super.show(ve(\\\"div.easyuse-account-dialog-main\\\",[ve(\\\"div\\\",[ve(\\\"a\\\",{href:\\\"https://platform.stability.ai/account/keys\\\",target:\\\"_blank\\\",textContent:Ne(\\\"Getting Your APIKEY\\\")})]),this.dialog_div]))}createButtons(){const e=super.createButtons();return e.unshift(ve(\\\"button\\\",{type:\\\"button\\\",textContent:Ne(\\\"Save Account Info\\\"),onclick:e=\\u003e{let t=!0;for(let i=0;i\\u003cAs.length;i++)if(!As[i].key){t=!1;break}if(t){const e=new FormData;e.append(\\\"api_keys\\\",JSON.stringify(As)),ge.fetchApi(\\\"/easyuse/stability/set_api_keys\\\",{method:\\\"POST\\\",body:e}).then((e=\\u003e{200==e.status?Ye.success(Ne(\\\"Save Succeed\\\")):Ye.error(Ne(\\\"Save Failed\\\"))}))}else Ye.error(Ne(\\\"APIKEY is not Empty\\\"))}})),e.unshift(ve(\\\"button\\\",{type:\\\"button\\\",textContent:Ne(\\\"Add Account\\\"),onclick:e=\\u003e{const t=\\\"Account \\\"+As.length.toString();As.push({name:t,key:\\\"\\\"});const i=this.addItem(As.length-1);this.lists.push(i),this.dialog_div.appendChild(i)}})),e}}fe.registerExtension({name:\\\"Comfy.EasyUse.API.SD3\\\",async beforeRegisterNodeDef(e,t,i){if(\\\"easy stableDiffusion3API\\\"==t.name){const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=async function(){var e,i,s;t\\u0026\\u0026(null==t||t.apply(this,arguments));const n=this.widgets.find((e=\\u003e[\\\"seed_num\\\",\\\"seed\\\"].includes(e.name))),a=this.widgets.find((e=\\u003e[\\\"control_before_generate\\\",\\\"control_after_generate\\\"].includes(e.name)));let o=this.widgets.find((e=\\u003e\\\"model\\\"==e.name));o.callback=e=\\u003e{l.value=\\\"-\\\"+hs[e]};const l=this.addWidget(\\\"text\\\",\\\"cost_credit\\\",\\\"0\\\",(e=\\u003e{}),{serialize:!1});l.disabled=!0,a\\u0026\\u0026setTimeout((e=\\u003e{\\\"control before generate\\\"==a.name\\u0026\\u00260===n.value\\u0026\\u0026(n.value=Math.floor(4294967294*Math.random())),l.value=\\\"-\\\"+hs[o.value]}),100);let r=ve(\\\"div.easyuse-account-user\\\",[Ne(\\\"Loading UserInfo...\\\")]);this.addDOMWidget(\\\"account\\\",\\\"btn\\\",ve(\\\"div.easyuse-account\\\",r)),ge.addEventListener(\\\"stable-diffusion-api-generate-succeed\\\",(async({detail:e})=\\u003e{var t;let i=r.querySelectorAll(\\\".remark\\\");if(i\\u0026\\u0026i[0]){const t=(null==e?void 0:e.model)?hs[e.model]:0;if(t){let e=function(e,t){let i,s,n,a,o,l;o=\\\"string\\\"==typeof e?e:e.toString(),l=\\\"string\\\"==typeof t?t:t.toString();try{i=o.split(\\\".\\\")[1].length}catch(r){i=0}try{s=l.split(\\\".\\\")[1].length}catch(r){s=0}return n=Math.pow(10,Math.max(i,s)),a=i\\u003e=s?i:s,((e*n-t*n)/n).toFixed(a)}(parseFloat(i[0].innerText.replace(/Credits: /g,\\\"\\\")),t);e\\u003e0\\u0026\\u0026(i[0].innerText=\\\"Credits: \\\"+e.toString())}}await Xe(1e4);const s=await ge.fetchApi(\\\"/easyuse/stability/balance\\\");if(200==s.status){const e=await s.json();if(null==e?void 0:e.balance){const s=(null==(t=e.balance)?void 0:t.credits)||0;i\\u0026\\u0026i[0]\\u0026\\u0026(i[0].innerText=\\\"Credits: \\\"+s)}}}));const d=await ge.fetchApi(\\\"/easyuse/stability/api_keys\\\");if(200==d.status){let t=await d.json();if(As=t.keys,ps=t.current,As.length\\u003e0\\u0026\\u0026void 0!==ps){const t=As[ps].key,n=As[ps].name;if(t){const t=await ge.fetchApi(\\\"/easyuse/stability/user_info\\\");if(200==t.status){const n=await t.json();if((null==n?void 0:n.account)\\u0026\\u0026(null==n?void 0:n.balance)){const t=(null==(e=n.account)?void 0:e.profile_picture)||null,a=(null==(i=n.account)?void 0:i.email)||null,o=(null==(s=n.balance)?void 0:s.credits)||0;r.replaceChildren(ve(\\\"div.easyuse-account-user-info\\\",{onclick:e=\\u003e{(new ms).show(r)}},[ve(\\\"div.user\\\",[ve(\\\"div.avatar\\\",t?[ve(\\\"img\\\",{src:t})]:\\\"😀\\\"),ve(\\\"div.info\\\",[ve(\\\"h5.name\\\",a),ve(\\\"h6.remark\\\",\\\"Credits: \\\"+o)])]),ve(\\\"div.edit\\\",{textContent:Ne(\\\"Edit\\\")})]))}}}else r.replaceChildren(ve(\\\"div.easyuse-account-user-info\\\",{onclick:e=\\u003e{(new ms).show(r)}},[ve(\\\"div.user\\\",[ve(\\\"div.avatar\\\",\\\"😀\\\"),ve(\\\"div.info\\\",[ve(\\\"h5.name\\\",n),ve(\\\"h6.remark\\\",Ne(\\\"Click to set the APIKEY first\\\"))])]),ve(\\\"div.edit\\\",{textContent:Ne(\\\"Edit\\\")})]))}}}}}});let fs=null;function gs(){fs\\u0026\\u0026(fs.removeEventListeners(),fs.dropdown.remove(),fs=null)}function vs(e,t,i,s=!1){gs(),new ys(e,t,i,s)}class ys{constructor(e,t,i,s=!1){this.dropdown=document.createElement(\\\"ul\\\"),this.dropdown.setAttribute(\\\"role\\\",\\\"listbox\\\"),this.dropdown.classList.add(\\\"easy-dropdown\\\"),this.selectedIndex=-1,this.inputEl=e,this.suggestions=t,this.onSelect=i,this.isDict=s,this.focusedDropdown=this.dropdown,this.buildDropdown(),this.onKeyDownBound=this.onKeyDown.bind(this),this.onWheelBound=this.onWheel.bind(this),this.onClickBound=this.onClick.bind(this),this.addEventListeners()}buildDropdown(){this.isDict?this.buildNestedDropdown(this.suggestions,this.dropdown):this.suggestions.forEach(((e,t)=\\u003e{this.addListItem(e,t,this.dropdown)}));const e=this.inputEl.getBoundingClientRect();this.dropdown.style.top=e.top+e.height-10+\\\"px\\\",this.dropdown.style.left=e.left+\\\"px\\\",document.body.appendChild(this.dropdown),fs=this}buildNestedDropdown(e,t){let i=0;Object.keys(e).forEach((s=\\u003e{const n=e[s];if(\\\"object\\\"==typeof n\\u0026\\u0026null!==n){const e=document.createElement(\\\"ul\\\");e.setAttribute(\\\"role\\\",\\\"listbox\\\"),e.classList.add(\\\"easy-nested-dropdown\\\");const a=document.createElement(\\\"li\\\");a.classList.add(\\\"folder\\\"),a.textContent=s,a.appendChild(e),a.addEventListener(\\\"mouseover\\\",this.onMouseOver.bind(this,i,t)),t.appendChild(a),this.buildNestedDropdown(n,e),i+=1}else{const e=document.createElement(\\\"li\\\");e.classList.add(\\\"item\\\"),e.setAttribute(\\\"role\\\",\\\"option\\\"),e.textContent=s,e.addEventListener(\\\"mouseover\\\",this.onMouseOver.bind(this,i,t)),e.addEventListener(\\\"mousedown\\\",this.onMouseDown.bind(this,s)),t.appendChild(e),i+=1}}))}addListItem(e,t,i){const s=document.createElement(\\\"li\\\");s.setAttribute(\\\"role\\\",\\\"option\\\"),s.textContent=e,s.addEventListener(\\\"mouseover\\\",this.onMouseOver.bind(this,t)),s.addEventListener(\\\"mousedown\\\",this.onMouseDown.bind(this,e)),i.appendChild(s)}addEventListeners(){document.addEventListener(\\\"keydown\\\",this.onKeyDownBound),this.dropdown.addEventListener(\\\"wheel\\\",this.onWheelBound),document.addEventListener(\\\"click\\\",this.onClickBound)}removeEventListeners(){document.removeEventListener(\\\"keydown\\\",this.onKeyDownBound),this.dropdown.removeEventListener(\\\"wheel\\\",this.onWheelBound),document.removeEventListener(\\\"click\\\",this.onClickBound)}onMouseOver(e,t){t\\u0026\\u0026(this.focusedDropdown=t),this.selectedIndex=e,this.updateSelection()}onMouseOut(){this.selectedIndex=-1,this.updateSelection()}onMouseDown(e,t){t.preventDefault(),this.onSelect(e),this.dropdown.remove(),this.removeEventListeners()}onKeyDown(e){const t=Array.from(this.focusedDropdown.children),i=t[this.selectedIndex];if(fs)if(38===e.keyCode)e.preventDefault(),this.selectedIndex=Math.max(0,this.selectedIndex-1),this.updateSelection();else if(40===e.keyCode)e.preventDefault(),this.selectedIndex=Math.min(t.length-1,this.selectedIndex+1),this.updateSelection();else if(39===e.keyCode){if(e.preventDefault(),i\\u0026\\u0026i.classList.contains(\\\"folder\\\")){const e=i.querySelector(\\\".easy-nested-dropdown\\\");e\\u0026\\u0026(this.focusedDropdown=e,this.selectedIndex=0,this.updateSelection())}}else if(37===e.keyCode\\u0026\\u0026this.focusedDropdown!==this.dropdown){const e=this.focusedDropdown.closest(\\\".easy-dropdown, .easy-nested-dropdown\\\").parentNode.closest(\\\".easy-dropdown, .easy-nested-dropdown\\\");e\\u0026\\u0026(this.focusedDropdown=e,this.selectedIndex=Array.from(e.children).indexOf(this.focusedDropdown.parentNode),this.updateSelection())}else if((13===e.keyCode||9===e.keyCode)\\u0026\\u0026this.selectedIndex\\u003e=0){e.preventDefault(),i.classList.contains(\\\"item\\\")\\u0026\\u0026(this.onSelect(t[this.selectedIndex].textContent),this.dropdown.remove(),this.removeEventListeners());const s=i.querySelector(\\\".easy-nested-dropdown\\\");s\\u0026\\u0026(this.focusedDropdown=s,this.selectedIndex=0,this.updateSelection())}else 27===e.keyCode\\u0026\\u0026(this.dropdown.remove(),this.removeEventListeners())}onWheel(e){const t=parseInt(this.dropdown.style.top);localStorage.getItem(\\\"Comfy.Settings.Comfy.InvertMenuScrolling\\\")?this.dropdown.style.top=t+(e.deltaY\\u003c0?10:-10)+\\\"px\\\":this.dropdown.style.top=t+(e.deltaY\\u003c0?-10:10)+\\\"px\\\"}onClick(e){this.dropdown.contains(e.target)||e.target===this.inputEl||(this.dropdown.remove(),this.removeEventListeners())}updateSelection(){Array.from(this.focusedDropdown.children).forEach(((e,t)=\\u003e{t===this.selectedIndex?e.classList.add(\\\"selected\\\"):e.classList.remove(\\\"selected\\\")}))}}function ws(e){const t=e.min||0,i=e.max||0,s=e.step||1;if(0===s)return[];const n=[];let a=t;for(;a\\u003c=i;){if(Number.isInteger(s))n.push(Math.round(a)+\\\"; \\\");else{let e=a.toFixed(3);-0==e\\u0026\\u0026(e=\\\"0.000\\\"),/\\\\.\\\\d{3}$/.test(e)||(e+=\\\"0\\\"),n.push(e+\\\"; \\\")}a+=s}return i\\u003e=0\\u0026\\u0026t\\u003e=0?n:n.reverse()}let bs={},_s={};function Ss(e,t){String(e.id);const i=t.name,s=t.value.replace(/^(loader|preSampling):\\\\s/,\\\"\\\");_s[i]?_s[i]!=bs[s]\\u0026\\u0026(_s[i]=bs[s]):_s={..._s,[i]:bs[s]}}fe.registerExtension({name:\\\"Comfy.EasyUse.XYPlot\\\",async beforeRegisterNodeDef(e,t,i){if(\\\"easy XYPlot\\\"===t.name){bs=t.input.hidden.plot_dict[0];for(const e in bs){const t=bs[e];if(Array.isArray(t)){let i=[];for(const e of t)i.push(e+\\\"; \\\");bs[e]=i}else bs[e]=\\\"object\\\"==typeof t?\\\"seed\\\"==e?t+\\\"; \\\":ws(t):t+\\\"; \\\"}bs.None=[],bs[\\\"---------------------\\\"]=[]}},nodeCreated(e){\\\"easy XYPlot\\\"===e.comfyClass\\u0026\\u0026(function(e){if(e.widgets)for(const t of e.widgets)if(\\\"x_axis\\\"===t.name||\\\"y_axis\\\"===t.name){let i=t.value;Object.defineProperty(t,\\\"value\\\",{get:()=\\u003ei,set(s){s!==i\\u0026\\u0026(i=s,Ss(e,t))}})}}(e),function(e){if(e.widgets){const t=e.widgets.filter((e=\\u003e\\\"customtext\\\"===e.type\\u0026\\u0026!1!==e.dynamicPrompts||e.dynamicPrompts));for(const e of t){let t=function(e,t,s,n){return e\\u0026\\u0026(t[s]=e),t.map((e=\\u003ei(e,n))).filter((e=\\u003e\\\"\\\"!==e)).join(\\\"\\\")},i=function(e,t){if(e=s(e),n(e,t))return e+\\\"; \\\";let i=a(e,t);return 1===i.length||2===i.length?i[0]:n(o(e),t)?o(e)+\\\"; \\\":\\\"\\\"},s=function(e){return e.replace(/(\\\\n|;| )/g,\\\"\\\")},n=function(e,t){return t.includes(e+\\\"; \\\")},a=function(e,t){return t.filter((t=\\u003et.toLowerCase().includes(e.toLowerCase())))},o=function(e){return Number(e)?Number(e).toFixed(3):[\\\"0\\\",\\\"0.\\\",\\\"0.0\\\",\\\"0.00\\\",\\\"00\\\"].includes(e)?\\\"0.000\\\":e};const l=function(){const i=e.name[0]+\\\"_axis\\\";let s=(null==_s?void 0:_s[i])||[];if(0===s.length)return;const n=e.inputEl.value,a=e.inputEl.selectionStart;let o=n.split(\\\"; \\\");const l=n.substring(0,a).split(\\\"; \\\").length-1,r=o[l].replace(/\\\\n/g,\\\"\\\").toLowerCase(),d=s.filter((e=\\u003ee.toLowerCase().includes(r))).map((e=\\u003ee.replace(/; /g,\\\"\\\")));if(d.length\\u003e0)vs(e.inputEl,d,(i=\\u003e{const n=t(i,o,l,s);e.inputEl.value=n}));else{gs();const i=t(null,o,l,s);e.inputEl.value=i}};e.inputEl.removeEventListener(\\\"input\\\",l),e.inputEl.addEventListener(\\\"input\\\",l),e.inputEl.removeEventListener(\\\"mouseup\\\",l),e.inputEl.addEventListener(\\\"mouseup\\\",l)}}}(e))}}),S(\\\"domWidget\\\",(()=\\u003e{const e=P(new Map);return{widgetStates:e,registerWidget:t=\\u003e{e.value.set(t.id,{widget:G(t),visible:!0,readonly:!1,zIndex:0,pos:[0,0],size:[0,0]})},unregisterWidget:t=\\u003e{e.value.delete(t)}}}));const xs={class:\\\"w-full flex justify-between items-center\\\"},Ls={class:\\\"flex justify-start items-center flex-1 gap-2\\\"},ks={class:\\\"flex justify-end items-center tool ml-2 position-relative\\\"},Es={__name:\\\"promptAwait\\\",props:[\\\"widget\\\"],setup(e){const t=P({select:\\\"now\\\",unlock:!0,last_seed:0,seed:0}),i=P(!1),s=P(!1);let n=null;const a=()=\\u003e{if(s.value)return;const t=window.SpeechRecognition||window.webkitSpeechRecognition;t\\u0026\\u0026(s.value=!0,n||(n=new t,n.interimResults=!1),n.start(),n.addEventListener(\\\"result\\\",(t=\\u003e{var i;const s=t.results[0][0].transcript;let n=null==(i=e.widget.value)?void 0:i.node,a=wt(n,\\\"prompt\\\");a\\u0026\\u0026(a.value+=s)})),n.addEventListener(\\\"end\\\",(()=\\u003e{s.value=!1,n=null})),n.addEventListener(\\\"error\\\",(e=\\u003e{})))},o=()=\\u003e{s.value\\u0026\\u0026n\\u0026\\u0026n.stop()};z((t=\\u003ee.widget.value),(e=\\u003e{t.value=\\\"object\\\"==typeof e?e:JSON.parse(e)}),{immediate:!0}),V((s=\\u003e{ge.addEventListener(\\\"easyuse_prompt_await\\\",(t=\\u003e{var s,n,a,o,l,d;const u=t.detail.id,c=-1!==(null==(s=e.widget.value)?void 0:s.node.id).toString().indexOf(\\\":\\\")?(null==(n=e.widget.value)?void 0:n.node.id).toString().split(\\\":\\\")[0]:null==(a=e.widget.value)?void 0:a.node.id;parseInt(u)===parseInt(c)\\u0026\\u0026(i.value=!0,r(\\\"last_seed\\\",(null==(o=e.widget.value.value)?void 0:o.seed)||0),(null==(l=e.widget.value.value)?void 0:l.unlock)?r(\\\"seed\\\",Math.floor(Math.random()*Oe)):r(\\\"seed\\\",(null==(d=e.widget.value.value)?void 0:d.last_seed)||0))}));const n=ge.interrupt;ge.interrupt=function(){!i.value\\u0026\\u0026fe.runningNodeId||(l(JSON.stringify({result:-1,prompt:\\\"\\\",select:\\\"now\\\"}),!0),i.value=!1),n.apply(this,arguments)},e.widget.serializeValue=async({node:e},i)=\\u003e{try{let s=JSON.stringify(t.value);return(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[i]=s,e.widgets[i].value=s),s}catch(s){return[]}}}));const l=(s,n)=\\u003e{var a,o,l,d,u,c,A,p,h;if(!i.value\\u0026\\u0026!n)return;const m=new FormData,f=null==(a=e.widget.value)?void 0:a.node,g=-1!==(null==(o=e.widget.value)?void 0:o.node.id).toString().indexOf(\\\":\\\")?(null==(l=e.widget.value)?void 0:l.node.id).toString().split(\\\":\\\")[0]:null==(d=e.widget.value)?void 0:d.node.id,v=(null==(u=wt(f,\\\"prompt\\\"))?void 0:u.value)||\\\"\\\";let y=null==(c=t.value)?void 0:c.select,w=(null==(A=t.value)?void 0:A.last_seed)||0,b=(null==(p=t.value)?void 0:p.seed)||0,_=(null==(h=t.value)?void 0:h.unlock)||!1;m.append(\\\"message\\\",JSON.stringify({result:s,prompt:v,select:y,last_seed:w,seed:b,unlock:_})),m.append(\\\"id\\\",g),i.value=!1,ge.fetchApi(\\\"/easyuse/message_callback\\\",{method:\\\"POST\\\",body:m}).then((e=\\u003e{r(\\\"select\\\",\\\"now\\\")}))},r=(e,i)=\\u003e{t.value.value||(t.value={}),t.value[e]=i};return(e,n)=\\u003e(j(),U(\\\"div\\\",xs,[W(\\\"div\\\",Ls,[F(X(L),{disabled:!Boolean(i.value),label:X(Ne)(\\\"Continue\\\"),size:\\\"small\\\",style:{height:\\\"20px\\\",\\\"font-size\\\":\\\"12px\\\",\\\"white-space\\\":\\\"nowrap\\\",padding:\\\"0 8px\\\"},onClick:n[0]||(n[0]=e=\\u003el(1))},null,8,[\\\"disabled\\\",\\\"label\\\"]),F(X(L),{disabled:!Boolean(i.value),label:X(Ne)(\\\"Stop\\\"),severity:\\\"danger\\\",size:\\\"small\\\",style:{height:\\\"20px\\\",\\\"font-size\\\":\\\"12px\\\",\\\"white-space\\\":\\\"nowrap\\\",padding:\\\"0 8px\\\"},onClick:n[1]||(n[1]=e=\\u003el(-1))},null,8,[\\\"disabled\\\",\\\"label\\\"]),F(X(k),{class:\\\"easyuse-prompt-await-select\\\",modelValue:t.value.select,\\\"onUpdate:modelValue\\\":n[2]||(n[2]=e=\\u003et.value.select=e),options:[{name:X(Ne)(\\\"now\\\"),value:\\\"now\\\"},{name:X(Ne)(\\\"prev\\\"),value:\\\"prev\\\"}],optionLabel:\\\"name\\\",optionValue:\\\"value\\\",size:\\\"small\\\",style:{flex:\\\"1\\\",height:\\\"24px\\\",\\\"line-height\\\":\\\"10px\\\",\\\"min-width\\\":\\\"70px\\\",\\\"max-width\\\":\\\"100px\\\"}},null,8,[\\\"modelValue\\\",\\\"options\\\"])]),W(\\\"div\\\",ks,[Z(F(X(L),{style:{\\\"--p-button-sm-font-size\\\":\\\"11px\\\"},size:\\\"small\\\",icon:t.value.unlock?\\\"pi pi-unlock\\\":\\\"pi pi-lock\\\",severity:t.value.unlock?\\\"contrast\\\":\\\"warn\\\",variant:\\\"text\\\",onClick:n[3]||(n[3]=e=\\u003et.value.unlock=!t.value.value.unlock),rounded:\\\"\\\"},null,8,[\\\"icon\\\",\\\"severity\\\"]),[[X(E),{value:t.value.unlock?\\\"随机种子\\\":\\\"锁定种子值\\\",class:\\\"jm-tooltip\\\"},\\\"top\\\"]]),s.value?Z((j(),H(X(L),{key:0,size:\\\"small\\\",icon:\\\"pi pi-pause-circle\\\",severity:\\\"info\\\",variant:\\\"outlined\\\",onClick:o,rounded:\\\"\\\"},null,512)),[[X(E),{value:X(Ne)(\\\"Stop Recording\\\"),class:\\\"jm-tooltip\\\"},\\\"top\\\"]]):Z((j(),H(X(L),{key:1,size:\\\"small\\\",icon:\\\"pi pi-microphone\\\",severity:\\\"contrast\\\",variant:\\\"text\\\",onClick:a,rounded:\\\"\\\"},null,512)),[[X(E),{value:X(Ne)(\\\"Voice input\\\"),class:\\\"jm-tooltip\\\"},\\\"top\\\"]])])]))}},Ns={class:\\\"easyuse-multiselect\\\"},Cs={__name:\\\"multiSelectWidget\\\",props:[\\\"widget\\\"],setup(e){var t,i,s,n;const a=Object.keys(De).reduce(((e,t)=\\u003e(Array.isArray(De[t])?e[t]=De[t].map(((e,t)=\\u003e({label:e,value:t}))):\\\"object\\\"==typeof De[t]?e[t]=Object.entries(De[t]).map((([e,t])=\\u003e({label:e,value:t}))):e[t]=[],e)),{}),o=P([]),l=e.widget.inputSpec,r=(null==(t=null==l?void 0:l.multi_select)?void 0:t.max_selected_labels)??3,d=(null==l?void 0:l.optionLabel)??\\\"label\\\",u=(null==l?void 0:l.optionValue)??\\\"value\\\",c=(null==(i=null==l?void 0:l.multi_select)?void 0:i.placeholder)?Ne(null==(s=l.multi_select)?void 0:s.placeholder):Ne(\\\"select items\\\"),A=(null==(n=null==l?void 0:l.multi_select)?void 0:n.chip)?\\\"chip\\\":\\\"comma\\\",p=P((null==l?void 0:l.options)??[]),h=e=\\u003e{e\\u0026\\u0026a[e]?p.value=a[e].map(((e,t)=\\u003e({label:Ne(e.label),value:e.value}))):p.value=[]};return z((t=\\u003ee.widget.value),(e=\\u003e{o.value=e.split(\\\",\\\").map((e=\\u003ee\\u0026\\u0026parseInt(e.trim())))})),V((t=\\u003e{setTimeout((t=\\u003e{const i=wt(e.widget.node,\\\"method\\\");h(i.value),i.callback=e=\\u003e{o.value=[],h(e)}}),1),e.widget.serializeValue=async({node:e},t)=\\u003e{try{let i=o.value||[];return i=i.join(\\\",\\\"),(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[t]=i,e.widgets[t].value=i),i}catch(i){return[]}}})),(e,t)=\\u003e(j(),U(\\\"div\\\",Ns,[F(X(N),{modelValue:o.value,\\\"onUpdate:modelValue\\\":t[0]||(t[0]=e=\\u003eo.value=e),options:p.value,optionLabel:X(d),optionValue:X(u),appendTo:\\\"self\\\",filter:\\\"\\\",placeholder:X(c),\\\"max-selected-labels\\\":X(r),display:X(A),class:\\\"w-full easyuse-multiselect-container\\\"},null,8,[\\\"modelValue\\\",\\\"options\\\",\\\"optionLabel\\\",\\\"optionValue\\\",\\\"placeholder\\\",\\\"max-selected-labels\\\",\\\"display\\\"])]))}},Is={class:\\\"flex flex-col easyuse-multiangle-widget\\\"},Ts={class:\\\"easyuse-multiangle-tabs flex items-center gap-1 px-1 relative z-10 overflow-x-auto no-scrollbar w-full min-w-0\\\"},Os=[\\\"onClick\\\"],Ms={class:\\\"tab-number\\\"},Ds=[\\\"onClick\\\"],Rs=[\\\"title\\\"],Ps={class:\\\"easyuse-multiangle-content flex flex-col gap-2\\\"},Gs=[\\\"title\\\"],zs={class:\\\"settings-item flex items-center\\\"},Vs={for:\\\"add-angle-prompt\\\",class:\\\"whitespace-nowrap\\\"},js={class:\\\"settings-item flex items-center\\\"},Us={for:\\\"hollow-mode\\\",class:\\\"whitespace-nowrap\\\"},Ws={class:\\\"settings-item flex items-center\\\"},Fs={for:\\\"rotate-3d-mode\\\",class:\\\"whitespace-nowrap\\\"},Xs=[\\\"title\\\"],Zs=[\\\"onDblclick\\\"],Hs={key:0},qs={key:0,style:{filter:\\\"grayscale(10)\\\"}},Ys={key:0,class:\\\"absolute inset-0 flex flex-col items-center justify-center\\\",style:{\\\"pointer-events\\\":\\\"none\\\"}},Ks={key:1,class:\\\"easyuse-cube-face-label\\\"},Js={class:\\\"flex flex-col gap-2 px-2 w-full easyuse-mulitangle-slider\\\"},Bs={class:\\\"flex flex-col gap-2 w-full\\\"},Qs={class:\\\"flex justify-between items-center\\\"},$s={class:\\\"font-semibold opacity-80\\\"},en={class:\\\"font-mono text-primary font-bold\\\"},tn={class:\\\"flex flex-col gap-2 w-full\\\"},sn={class:\\\"flex justify-between items-center\\\"},nn={class:\\\"font-semibold opacity-80\\\"},an={class:\\\"font-mono text-primary font-bold\\\"},on={class:\\\"flex flex-col gap-2 w-full\\\"},ln={class:\\\"flex justify-between items-center\\\"},rn={class:\\\"font-semibold opacity-80\\\"},dn={class:\\\"font-mono text-primary font-bold\\\"},un={__name:\\\"multiAngleWidget\\\",props:[\\\"widget\\\"],emits:[\\\"update:value\\\",\\\"change\\\"],setup(e,{emit:t}){const i=P([{rotate:0,vertical:0,zoom:5,add_angle_prompt:!1}]),s=P(0),n=i.value[s.value]||{rotate:0,vertical:0,zoom:5,add_angle_prompt:!1},a=P(n.rotate??0),o=P(n.vertical??0),l=P(n.zoom??5),r=P(n.add_angle_prompt??!1),d=P(xe(\\\"EasyUse.MultiAngle.HollowMode\\\")||!1),u=P(xe(\\\"EasyUse.MultiAngle.3DRotate\\\")||!1),c=P(!1),A=()=\\u003e{c.value=!c.value},p=()=\\u003e{c.value\\u0026\\u0026(c.value=!1)};V((()=\\u003e{window.addEventListener(\\\"click\\\",p)})),q((()=\\u003e{window.removeEventListener(\\\"click\\\",p),L()})),z((t=\\u003ee.widget.value),(e=\\u003e{Array.isArray(e)?i.value=e:i.value=JSON.parse(e)}),{immediate:!0}),z((()=\\u003e{var e;return null==(e=i.value)?void 0:e[s.value]}),(e=\\u003e{if(e){let t=xe(\\\"EasyUse.MultiAngle.AddAnglePrompt\\\")??!1;void 0!==e.rotate\\u0026\\u0026(a.value=e.rotate),void 0!==e.vertical\\u0026\\u0026(o.value=e.vertical),void 0!==e.zoom\\u0026\\u0026(l.value=e.zoom),null!=r\\u0026\\u0026(r.value=t)}}),{deep:!0}),z(d,(e=\\u003e{ke(\\\"EasyUse.MultiAngle.HollowMode\\\",e)})),z(u,(e=\\u003e{ke(\\\"EasyUse.MultiAngle.InvertRotate\\\",e)})),z(r,(e=\\u003e{ke(\\\"EasyUse.MultiAngle.AddAnglePrompt\\\",e),i.value.forEach((t=\\u003e{t.add_angle_prompt=e}))}));const h=e=\\u003e{s.value=e;const t=i.value[e];t\\u0026\\u0026(a.value=t.rotate??0,o.value=t.vertical??0,l.value=t.zoom??5,r.value=t.add_angle_prompt??!0)},m=()=\\u003e{i.value[s.value];const e={rotate:a.value,vertical:o.value,zoom:l.value,add_angle_prompt:r.value};i.value.push(JSON.parse(JSON.stringify(e))),s.value=i.value.length-1,h(s.value)},f=(e=!1)=\\u003e{e\\u0026\\u0026(c.value=!1);const t={rotate:a.value,vertical:o.value,zoom:l.value,add_angle_prompt:r.value};Array.isArray(i.value)||(i.value=[]),i.value[s.value]=JSON.parse(JSON.stringify(t))},g=()=\\u003e{a.value=0,o.value=0,l.value=5,f()},v=Y((()=\\u003e[{name:\\\"front\\\",text:\\\"\\\",style:{transform:\\\"translateZ(40px)\\\"}},{name:\\\"back\\\",text:Ne(\\\"B\\\"),style:{transform:\\\"rotateY(180deg) translateZ(40px)\\\"}},{name:\\\"up\\\",text:Ne(\\\"U\\\"),style:{transform:\\\"rotateX(90deg) translateZ(40px)\\\"}},{name:\\\"down\\\",text:Ne(\\\"D\\\"),style:{transform:\\\"rotateX(-90deg) translateZ(40px)\\\"}},{name:\\\"left\\\",text:Ne(\\\"L\\\"),style:{transform:\\\"rotateY(-90deg) translateZ(40px)\\\"}},{name:\\\"right\\\",text:Ne(\\\"R\\\"),style:{transform:\\\"rotateY(90deg) translateZ(40px)\\\"}},{name:\\\"center\\\",style:{transform:\\\"translateZ(0.1px)\\\",border:\\\"none\\\",background:\\\"transparent\\\",backfaceVisibility:\\\"hidden\\\"}},{name:\\\"center-back\\\",style:{transform:\\\"rotateY(180deg) translateZ(0.1px)\\\",border:\\\"none\\\",backfaceVisibility:\\\"hidden\\\",background:\\\"transparent\\\"}}])),y=P(!1),w={x:0,y:0},b={rotate:0,vertical:0},_=e=\\u003e{const t=e.deltaY;let i=l.value-.05*t;i=Math.max(0,Math.min(10,i)),l.value=Math.round(10*i)/10,f()},S=e=\\u003e{y.value=!0,w.x=e.clientX??e.touches[0].clientX,w.y=e.clientY??e.touches[0].clientY,b.rotate=a.value,b.vertical=o.value,window.addEventListener(\\\"mousemove\\\",x),window.addEventListener(\\\"mouseup\\\",L),window.addEventListener(\\\"touchmove\\\",x),window.addEventListener(\\\"touchend\\\",L)},x=e=\\u003e{if(!y.value)return;const t=e.clientX??e.touches[0].clientX,i=e.clientY??e.touches[0].clientY;let s=t-w.x,n=i-w.y;u.value\\u0026\\u0026(s=-s,n=-n);let l=b.rotate+.5*s,r=b.vertical+.5*n;l=(l%360+360)%360,r=Math.max(-90,Math.min(90,r)),a.value=Math.round(l),o.value=Math.round(r),f()},L=()=\\u003e{y.value=!1,window.removeEventListener(\\\"mousemove\\\",x),window.removeEventListener(\\\"mouseup\\\",L),window.removeEventListener(\\\"touchmove\\\",x),window.removeEventListener(\\\"touchend\\\",L)},k=Y((()=\\u003e({transform:`scale(${1+.1*l.value}) rotateX(${-o.value}deg) rotateY(${-a.value}deg)`})));return V((t=\\u003e{d.value=xe(\\\"EasyUse.MultiAngle.HollowMode\\\"),u.value=xe(\\\"EasyUse.MultiAngle.InvertRotate\\\"),r.value=xe(\\\"EasyUse.MultiAngle.AddAnglePrompt\\\")||!1,e.widget.serializeValue=async({node:e},t)=\\u003e{try{let s=JSON.stringify(i.value);return(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[t]=s,e.widgets[t].value=s),s}catch(s){return[]}}})),(e,t)=\\u003e(j(),U(\\\"div\\\",Is,[W(\\\"div\\\",Ts,[(j(!0),U(K,null,J(i.value,((e,t)=\\u003e(j(),U(\\\"div\\\",{key:t,class:B([\\\"tab-item whitespace-nowrap flex-shrink-0\\\",{active:s.value===t}]),onClick:e=\\u003eh(t)},[W(\\\"span\\\",Ms,ee(t+1),1),i.value.length\\u003e1\\u0026\\u00260!==t?(j(),U(\\\"i\\\",{key:0,class:\\\"pi pi-times tab-close\\\",onClick:Q((e=\\u003e(e=\\u003e{i.value.length\\u003c=1||(i.value.splice(e,1),s.value\\u003e=i.value.length\\u0026\\u0026(s.value=i.value.length-1),h(s.value))})(t)),[\\\"stop\\\"])},null,8,Ds)):te(\\\"\\\",!0)],10,Os)))),128)),W(\\\"button\\\",{class:\\\"tab-add-btn flex-shrink-0\\\",onClick:m,title:X(Ne)(\\\"Add New Tab\\\")},t[10]||(t[10]=[W(\\\"i\\\",{class:\\\"pi pi-plus\\\"},null,-1)]),8,Rs)]),W(\\\"div\\\",Ps,[W(\\\"div\\\",{class:B([\\\"easyuse-multiangle-cube w-full flex items-center justify-center bg-black overflow-hidden select-none\\\",{\\\"is-hollow\\\":d.value}]),onMousedown:S,onTouchstart:S,onWheel:Q(_,[\\\"prevent\\\"])},[W(\\\"div\\\",{class:\\\"settings-icon\\\",onMousedown:t[5]||(t[5]=Q((()=\\u003e{}),[\\\"stop\\\"])),onClick:Q(A,[\\\"stop\\\"]),title:X(Ne)(\\\"Settings\\\")},[t[11]||(t[11]=W(\\\"i\\\",{class:\\\"pi pi-cog\\\"},null,-1)),c.value?(j(),U(\\\"div\\\",{key:0,class:\\\"settings-dropdown\\\",onClick:t[4]||(t[4]=Q((()=\\u003e{}),[\\\"stop\\\"]))},[W(\\\"div\\\",zs,[Z(W(\\\"input\\\",{type:\\\"checkbox\\\",\\\"onUpdate:modelValue\\\":t[0]||(t[0]=e=\\u003er.value=e),onChange:t[1]||(t[1]=e=\\u003ef(!1)),id:\\\"add-angle-prompt\\\"},null,544),[[$,r.value]]),W(\\\"label\\\",Vs,ee(X(Ne)(\\\"Angle Prompt\\\")),1)]),W(\\\"div\\\",js,[Z(W(\\\"input\\\",{type:\\\"checkbox\\\",\\\"onUpdate:modelValue\\\":t[2]||(t[2]=e=\\u003ed.value=e),id:\\\"hollow-mode\\\"},null,512),[[$,d.value]]),W(\\\"label\\\",Us,ee(X(Ne)(\\\"Hollow\\\")),1)]),W(\\\"div\\\",Ws,[Z(W(\\\"input\\\",{type:\\\"checkbox\\\",\\\"onUpdate:modelValue\\\":t[3]||(t[3]=e=\\u003eu.value=e),id:\\\"rotate-3d-mode\\\"},null,512),[[$,u.value]]),W(\\\"label\\\",Fs,ee(X(Ne)(\\\"Invert Rotate Mode\\\")),1)])])):te(\\\"\\\",!0)],40,Gs),W(\\\"div\\\",{class:\\\"reset-icon\\\",onMousedown:t[6]||(t[6]=Q((()=\\u003e{}),[\\\"stop\\\"])),onClick:Q(g,[\\\"stop\\\"]),title:X(Ne)(\\\"Reset\\\")},t[12]||(t[12]=[W(\\\"i\\\",{class:\\\"pi pi-refresh\\\"},null,-1)]),40,Xs),W(\\\"div\\\",{class:\\\"relative transition-transform duration-75 ease-out\\\",style:ie([{\\\"transform-style\\\":\\\"preserve-3d\\\",width:\\\"80px\\\",height:\\\"80px\\\"},k.value])},[(j(!0),U(K,null,J(v.value,(e=\\u003e(j(),U(\\\"div\\\",{key:e.name,class:\\\"absolute flex items-center justify-center font-bold text-xs easyuse-multiangle-cube-face\\\",style:ie([{width:\\\"80px\\\",height:\\\"80px\\\",\\\"backface-visibility\\\":\\\"visible\\\"},e.style]),onDblclick:Q((t=\\u003e(e=\\u003e{switch(e){case\\\"front\\\":a.value=0;break;case\\\"back\\\":a.value=180;break;case\\\"left\\\":a.value=270;break;case\\\"right\\\":a.value=90;break;case\\\"up\\\":o.value=90;break;case\\\"down\\\":o.value=-90}f()})(e.name)),[\\\"stop\\\"])},[\\\"center\\\"===e.name?(j(),U(K,{key:0},[d.value?(j(),U(\\\"div\\\",Hs,t[13]||(t[13]=[W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"20px\\\",\\\"text-align\\\":\\\"center\\\"}},\\\"🤓\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👕\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👖\\\",-1)]))):te(\\\"\\\",!0)],64)):\\\"center-back\\\"===e.name?(j(),U(K,{key:1},[d.value?(j(),U(\\\"div\\\",qs,t[14]||(t[14]=[W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"20px\\\",\\\"text-align\\\":\\\"center\\\"}},\\\"🌕\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👕\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👖\\\",-1)]))):te(\\\"\\\",!0)],64)):(j(),U(K,{key:2},[\\\"front\\\"!==e.name||d.value?te(\\\"\\\",!0):(j(),U(\\\"div\\\",Ys,t[15]||(t[15]=[W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"20px\\\",\\\"text-align\\\":\\\"center\\\"}},\\\"🤓\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👕\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👖\\\",-1)]))),e.text?(j(),U(\\\"div\\\",Ks,ee(e.text),1)):te(\\\"\\\",!0)],64))],44,Zs)))),128))],4)],34),W(\\\"div\\\",Js,[W(\\\"div\\\",Bs,[W(\\\"div\\\",Qs,[W(\\\"span\\\",$s,ee(X(Ne)(\\\"Rotate\\\")),1),W(\\\"span\\\",en,ee(a.value)+\\\"°\\\",1)]),F(X(C),{modelValue:a.value,\\\"onUpdate:modelValue\\\":[t[7]||(t[7]=e=\\u003ea.value=e),f],min:0,max:360,class:\\\"w-full\\\"},null,8,[\\\"modelValue\\\"])]),W(\\\"div\\\",tn,[W(\\\"div\\\",sn,[W(\\\"span\\\",nn,ee(X(Ne)(\\\"Vertical\\\")),1),W(\\\"span\\\",an,ee(o.value)+\\\"°\\\",1)]),F(X(C),{modelValue:o.value,\\\"onUpdate:modelValue\\\":[t[8]||(t[8]=e=\\u003eo.value=e),f],min:-90,max:90,class:\\\"w-full\\\"},null,8,[\\\"modelValue\\\"])]),W(\\\"div\\\",on,[W(\\\"div\\\",ln,[W(\\\"span\\\",rn,ee(X(Ne)(\\\"Zoom\\\")),1),W(\\\"span\\\",dn,ee(l.value),1)]),F(X(C),{modelValue:l.value,\\\"onUpdate:modelValue\\\":[t[9]||(t[9]=e=\\u003el.value=e),f],min:0,max:10,step:.1,class:\\\"w-full\\\"},null,8,[\\\"modelValue\\\"])])])])]))}},cn=(e,t)=\\u003e{const i=e.__vccOpts||e;for(const[s,n]of t)i[s]=n;return i},An={class:\\\"tew-toolbar\\\"},pn={class:\\\"tew-mode-tabs\\\"},hn={key:0,class:\\\"tew-actions\\\"},mn={key:1,class:\\\"tew-actions\\\"},fn={key:0,class:\\\"tew-table-wrapper\\\"},gn={class:\\\"tew-table\\\"},vn={class:\\\"tew-cell-inner\\\"},yn=[\\\"value\\\",\\\"onInput\\\",\\\"onKeydown\\\"],wn=[\\\"onClick\\\"],bn={class:\\\"tew-row-handle\\\"},_n=[\\\"onClick\\\"],Sn=[\\\"value\\\",\\\"onInput\\\",\\\"onKeydown\\\"],xn={key:1,class:\\\"tew-md-wrapper\\\"},Ln=cn({__name:\\\"tableEditorWidget\\\",props:[\\\"widget\\\",\\\"node\\\"],setup(e){const t=P(\\\"table\\\"),i=se({headers:[\\\"列1\\\",\\\"列2\\\",\\\"列3\\\"],rows:[[\\\"\\\",\\\"\\\",\\\"\\\"],[\\\"\\\",\\\"\\\",\\\"\\\"]]}),s=P(\\\"\\\");function n(e){const t=e.headers.map(((t,i)=\\u003e{let s=String(t).length;for(const n of e.rows)s=Math.max(s,String(n[i]??\\\"\\\").replace(/\\\\n/g,\\\"\\u003cbr\\u003e\\\").length);return Math.max(s,3)})),i=(e,t)=\\u003eString(e).padEnd(t,\\\" \\\");return[\\\"| \\\"+e.headers.map(((e,s)=\\u003ei(e,t[s]))).join(\\\" | \\\")+\\\" |\\\",\\\"| \\\"+t.map((e=\\u003e\\\"-\\\".repeat(e))).join(\\\" | \\\")+\\\" |\\\",...e.rows.map((s=\\u003e\\\"| \\\"+e.headers.map(((e,n)=\\u003ei(String(s[n]??\\\"\\\").replace(/\\\\n/g,\\\"\\u003cbr\\u003e\\\"),t[n]))).join(\\\" | \\\")+\\\" |\\\"))].join(\\\"\\\\n\\\")}function a(e){const t=e.split(\\\"\\\\n\\\").map((e=\\u003ee.trim())).filter(Boolean);if(t.length\\u003c2)return null;const i=e=\\u003ee.replace(/^\\\\||\\\\|$/g,\\\"\\\").split(\\\"|\\\").map((e=\\u003ee.trim().replace(/\\u003cbr\\\\s*\\\\/?\\u003e/gi,\\\"\\\\n\\\")));let s=-1;for(let r=0;r\\u003ct.length-1;r++)if(n=t[r+1],/^\\\\|?[\\\\s\\\\-|:]+\\\\|?$/.test(n)){s=r;break}var n;if(-1===s)return null;const a=i(t[s]),o=t.slice(s+2).map(i),l=a.length;return{headers:a,rows:o.map((e=\\u003e{for(;e.length\\u003cl;)e.push(\\\"\\\");return e.slice(0,l)}))}}function o(e){if(e!==t.value){if(\\\"markdown\\\"===e)s.value=n(i);else{const e=a(s.value);e\\u0026\\u0026(i.headers=e.headers,i.rows=e.rows)}t.value=e,y(),\\\"table\\\"===e\\u0026\\u0026oe((()=\\u003ev()))}}function l(e){let t=0;for(const i of String(e||\\\"\\\").replace(/\\\\*\\\\*/g,\\\"\\\"))t+=/[\\\\u4e00-\\\\u9fff\\\\u3000-\\\\u303f\\\\uff00-\\\\uffef]/.test(i)?14:8;return t}const r=Y((()=\\u003e{const e=Math.max(i.headers.length,...i.rows.map((e=\\u003ee.length)));return Array.from({length:e},((e,t)=\\u003e{let s=120;for(const n of i.rows){const e=String(n[t]??\\\"\\\");for(const t of e.split(\\\"\\\\n\\\"))s=Math.max(s,l(t)+28)}return Math.min(s,200)+\\\"px\\\"}))}));function d(e){if(!e)return;const t=Array.from(e.querySelectorAll(\\\".tew-cell-textarea\\\"));if(0===t.length)return;t.forEach((e=\\u003e{e.style.height=\\\"auto\\\"}));const i=Math.max(...t.map((e=\\u003ee.scrollHeight)));t.forEach((e=\\u003e{e.style.height=i+\\\"px\\\"}))}function u(){i.rows.push(Array(i.headers.length).fill(\\\"\\\")),y()}function c(){i.headers.push(`列${i.headers.length+1}`),i.rows.forEach((e=\\u003ee.push(\\\"\\\"))),y()}function A(e,t,s,n=!1){oe((()=\\u003e{const t=e.target.closest(\\\"table\\\");if(!t)return;const s=Array.from(t.querySelectorAll(\\\".tew-cell-input\\\")),a=s.indexOf(e.target);if(-1===a)return;const o=s[a+(n?i.headers.length:1)];o\\u0026\\u0026o.focus()}))}let p=null;function h(){clearTimeout(p),p=setTimeout((()=\\u003e{y()}),300)}function m(){const e=a(s.value);e\\u0026\\u0026(i.headers=e.headers,i.rows=e.rows,s.value=n(i)),y()}function f(){return JSON.stringify({mode:t.value,headers:i.headers,rows:i.rows,markdown:\\\"markdown\\\"===t.value?s.value:n(i)})}function g(e){try{const a=\\\"string\\\"==typeof e?JSON.parse(e):e;if(a\\u0026\\u0026a.headers)return i.headers=a.headers,i.rows=a.rows||[],t.value=a.mode||\\\"table\\\",s.value=a.markdown||n(i),void oe((()=\\u003ev()))}catch(o){}if(\\\"string\\\"==typeof e\\u0026\\u0026e.includes(\\\"|\\\")){const t=a(e);t\\u0026\\u0026(i.headers=t.headers,i.rows=t.rows,s.value=e,oe((()=\\u003ev())))}}function v(){const e=document.querySelector(\\\".tew-table\\\");if(!e)return;Array.from(e.querySelectorAll(\\\"tbody tr\\\")).forEach((e=\\u003ed(e)))}function y(){e.widget\\u0026\\u0026(e.widget.value=f())}return V((()=\\u003e{var a;(null==(a=e.widget)?void 0:a.value)\\u0026\\u0026g(e.widget.value),e.widget.serializeValue=async({node:e},a)=\\u003e{const o=\\\"markdown\\\"===t.value?s.value:n(i);return(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[a]=o,e.widgets[a].value=f()),o},z((()=\\u003ee.widget.value),(e=\\u003e{e!==f()\\u0026\\u0026g(e)}))})),(e,n)=\\u003e(j(),U(\\\"div\\\",{class:\\\"table-editor-widget\\\",onMousedown:n[3]||(n[3]=Q((()=\\u003e{}),[\\\"stop\\\"])),onWheel:n[4]||(n[4]=Q((()=\\u003e{}),[\\\"stop\\\"]))},[W(\\\"div\\\",An,[W(\\\"div\\\",pn,[W(\\\"button\\\",{class:B([\\\"tew-tab\\\",\\\"table\\\"===t.value?\\\"active\\\":\\\"\\\"]),onClick:n[0]||(n[0]=e=\\u003eo(\\\"table\\\"))},n[5]||(n[5]=[W(\\\"i\\\",{class:\\\"pi pi-table\\\"},null,-1),ne(\\\" 表格 \\\")]),2),W(\\\"button\\\",{class:B([\\\"tew-tab\\\",\\\"markdown\\\"===t.value?\\\"active\\\":\\\"\\\"]),onClick:n[1]||(n[1]=e=\\u003eo(\\\"markdown\\\"))},n[6]||(n[6]=[W(\\\"i\\\",{class:\\\"pi pi-code\\\"},null,-1),ne(\\\" Markdown \\\")]),2)]),\\\"table\\\"===t.value?(j(),U(\\\"div\\\",hn,[W(\\\"button\\\",{class:\\\"tew-btn\\\",onClick:u,title:\\\"添加行\\\"},n[7]||(n[7]=[W(\\\"i\\\",{class:\\\"pi pi-plus\\\"},null,-1),ne(\\\" 行 \\\")])),W(\\\"button\\\",{class:\\\"tew-btn\\\",onClick:c,title:\\\"添加列\\\"},n[8]||(n[8]=[W(\\\"i\\\",{class:\\\"pi pi-plus\\\"},null,-1),ne(\\\" 列 \\\")]))])):(j(),U(\\\"div\\\",mn,[W(\\\"button\\\",{class:\\\"tew-btn\\\",onClick:m,title:\\\"格式化\\\"},n[9]||(n[9]=[W(\\\"i\\\",{class:\\\"pi pi-align-left\\\"},null,-1),ne(\\\" 格式化 \\\")]))]))]),\\\"table\\\"===t.value?(j(),U(\\\"div\\\",fn,[W(\\\"table\\\",gn,[W(\\\"thead\\\",null,[W(\\\"tr\\\",null,[n[10]||(n[10]=W(\\\"th\\\",{class:\\\"tew-row-handle\\\"},null,-1)),(j(!0),U(K,null,J(i.headers,((e,t)=\\u003e(j(),U(\\\"th\\\",{key:\\\"h\\\"+t,class:\\\"tew-header-cell\\\",style:ie({width:r.value[t]})},[W(\\\"div\\\",vn,[W(\\\"input\\\",{class:\\\"tew-cell-input tew-header-input\\\",value:e,onInput:e=\\u003efunction(e,t){i.headers[e]=t,y()}(t,e.target.value),onKeydown:le(Q((e=\\u003eA(e)),[\\\"prevent\\\"]),[\\\"tab\\\"]),placeholder:\\\"列标题\\\"},null,40,yn),W(\\\"button\\\",{class:\\\"tew-col-del\\\",onClick:e=\\u003efunction(e){i.headers.length\\u003c=1||(i.headers.splice(e,1),i.rows.forEach((t=\\u003et.splice(e,1))),y())}(t),title:\\\"删除列\\\"},\\\"×\\\",8,wn)])],4)))),128))])]),W(\\\"tbody\\\",null,[(j(!0),U(K,null,J(i.rows,((e,t)=\\u003e(j(),U(\\\"tr\\\",{key:\\\"r\\\"+t},[W(\\\"td\\\",bn,[W(\\\"button\\\",{class:\\\"tew-row-del\\\",onClick:e=\\u003efunction(e){i.rows.length\\u003c=1||(i.rows.splice(e,1),y())}(t),title:\\\"删除行\\\"},\\\"×\\\",8,_n)]),(j(!0),U(K,null,J(e,((e,s)=\\u003e(j(),U(\\\"td\\\",{key:\\\"c\\\"+s,class:\\\"tew-body-cell\\\",style:ie({width:r.value[s]})},[W(\\\"textarea\\\",{class:\\\"tew-cell-input tew-cell-textarea\\\",value:e,onInput:e=\\u003e{var n;!function(e,t,s){i.rows[e][t]=s,y()}(t,s,e.target.value),(n=e.target)\\u0026\\u0026(n.style.height=\\\"auto\\\",n.style.height=n.scrollHeight+\\\"px\\\",d(n.closest(\\\"tr\\\")))},onKeydown:le(Q((e=\\u003eA(e)),[\\\"prevent\\\"]),[\\\"tab\\\"]),rows:\\\"1\\\"},null,40,Sn)],4)))),128))])))),128))])])])):(j(),U(\\\"div\\\",xn,[Z(W(\\\"textarea\\\",{class:\\\"tew-md-textarea\\\",\\\"onUpdate:modelValue\\\":n[2]||(n[2]=e=\\u003es.value=e),onInput:h,placeholder:\\\"| 列1 | 列2 | 列3 |\\\\n| --- | --- | --- |\\\\n| 值1 | 值2 | 值3 |\\\",spellcheck:\\\"false\\\"},null,544),[[ae,s.value]])]))],32))}},[[\\\"__scopeId\\\",\\\"data-v-7e0ef36e\\\"]]),kn={class:\\\"relative rounded-t-lg overflow-hidden select-none\\\"},En={key:1,class:\\\"w-full h-full flex items-center justify-center\\\"},Nn=cn({__name:\\\"baseThumbnail\\\",props:{hoverZoom:{type:\\\"number\\\",default:4},isHovered:{type:Boolean,default:!1}},setup(e){const t=P(!1),i=P(null);return V((()=\\u003e{var e;Array.from((null==(e=i.value)?void 0:e.getElementsByTagName(\\\"img\\\"))??[]).forEach((e=\\u003e{ce(e,\\\"error\\\",(()=\\u003e{t.value=!0}))}))})),(s,n)=\\u003e(j(),U(\\\"div\\\",kn,[t.value?(j(),U(\\\"div\\\",En,n[0]||(n[0]=[W(\\\"i\\\",{class:\\\"pi pi-file text-4xl\\\"},null,-1)]))):(j(),U(\\\"div\\\",{key:0,ref_key:\\\"contentRef\\\",ref:i,class:\\\"w-full h-full transform-gpu transition-transform duration-1000 ease-out\\\",style:ie(e.isHovered?{transform:`scale(${1+e.hoverZoom/100})`}:void 0)},[re(s.$slots,\\\"default\\\",{},void 0,!0)],4))]))}},[[\\\"__scopeId\\\",\\\"data-v-604a4248\\\"]]),Cn=[\\\"src\\\",\\\"alt\\\"],In=cn({__name:\\\"lazyImage\\\",props:{src:{type:String,required:!0},alt:{type:String,default:\\\"\\\"},imageClass:{type:[String,Array,Object],default:\\\"\\\"},imageStyle:{type:[String,Object],default:()=\\u003e({})},placeholderClass:{type:[String,Array,Object],default:\\\"\\\"},errorClass:{type:[String,Array,Object],default:\\\"\\\"},rootMargin:{type:String,default:\\\"50px\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\"load\\\",\\\"error\\\",\\\"visible\\\"],setup(e,{emit:t}){const i=e,s=t,n=P(null),a=P(i.immediate),o=P(!1),l=P(!1),r=Y((()=\\u003ei.src));z((()=\\u003ei.src),(()=\\u003e{o.value=!1,l.value=!1,i.immediate||(a.value=!1)}),{immediate:!0});const{stop:d}=Ae(n,(([e])=\\u003e{(null==e?void 0:e.isIntersecting)\\u0026\\u0026!a.value\\u0026\\u0026(a.value=!0,s(\\\"visible\\\"),d())}),{rootMargin:i.rootMargin,threshold:i.threshold}),u=e=\\u003e{o.value=!0,l.value=!1,s(\\\"load\\\",e)},c=e=\\u003e{l.value=!0,o.value=!1,s(\\\"error\\\",e)};return(t,i)=\\u003e(j(),U(\\\"div\\\",{ref_key:\\\"containerRef\\\",ref:n,class:\\\"lazy-image-container\\\"},[l.value?(j(),U(\\\"div\\\",{key:0,class:B([\\\"lazy-image-error\\\",\\\"w-full h-full flex items-center justify-center bg-surface-100 dark:bg-surface-800\\\",e.errorClass])},[re(t.$slots,\\\"error\\\",{},(()=\\u003e[i[0]||(i[0]=W(\\\"i\\\",{class:\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\"},null,-1))]),!0)],2)):a.value\\u0026\\u0026r.value?(j(),U(\\\"img\\\",{key:1,src:r.value,alt:e.alt,class:B(e.imageClass),style:ie(e.imageStyle),draggable:\\\"false\\\",onLoad:u,onError:c},null,46,Cn)):a.value?te(\\\"\\\",!0):(j(),U(\\\"div\\\",{key:2,class:B([\\\"lazy-image-placeholder\\\",\\\"w-full h-full flex items-center justify-center bg-surface-100 dark:bg-surface-800\\\",e.placeholderClass])},[re(t.$slots,\\\"placeholder\\\",{},(()=\\u003e[i[1]||(i[1]=W(\\\"i\\\",{class:\\\"pi pi-image text-2xl text-surface-400\\\"},null,-1))]),!0)],2))],512))}},[[\\\"__scopeId\\\",\\\"data-v-4bfc03bf\\\"]]),Tn={class:\\\"overflow-hidden w-full h-full flex items-center justify-center\\\"},On={__name:\\\"defaultThumbnail\\\",props:{src:{type:String,required:!0},alt:{type:String,required:!0},hoverZoom:{type:Number,required:!0},isHovered:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},rootMargin:{type:String,default:\\\"50px\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\"load\\\",\\\"error\\\",\\\"visible\\\"],setup(e,{emit:t}){const i=e,{src:s,isVideo:n}=i;return n??(null==s||s.toLowerCase().endsWith(\\\".webp\\\")),(t,i)=\\u003e(j(),H(Nn,{\\\"hover-zoom\\\":e.hoverZoom,\\\"is-hovered\\\":e.isHovered},{default:de((()=\\u003e[W(\\\"div\\\",Tn,[F(In,{src:X(s),\\\"image-class\\\":[\\\"transform-gpu transition-transform duration-300 ease-out\\\",\\\"w-full h-full object-cover\\\"],\\\"image-style\\\":e.isHovered?{transform:`scale(${1+e.hoverZoom/100})`}:void 0,\\\"root-margin\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate,onLoad:i[0]||(i[0]=e=\\u003et.$emit(\\\"load\\\",e)),onError:i[1]||(i[1]=e=\\u003et.$emit(\\\"error\\\",e)),onVisible:i[2]||(i[2]=e=\\u003et.$emit(\\\"visible\\\",e))},{placeholder:de((()=\\u003e[re(t.$slots,\\\"placeholder\\\",{},(()=\\u003e[i[3]||(i[3]=W(\\\"i\\\",{class:\\\"pi pi-image text-2xl text-surface-400\\\"},null,-1))]))])),error:de((()=\\u003e[re(t.$slots,\\\"error\\\",{},(()=\\u003e[i[4]||(i[4]=W(\\\"i\\\",{class:\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\"},null,-1))]))])),_:3},8,[\\\"src\\\",\\\"image-style\\\",\\\"root-margin\\\",\\\"threshold\\\",\\\"immediate\\\"])])])),_:3},8,[\\\"hover-zoom\\\",\\\"is-hovered\\\"]))}},Mn={class:\\\"overflow-hidden w-full h-full flex items-center justify-center relative\\\"},Dn={__name:\\\"compareSliderThumbnail\\\",props:{baseImageSrc:{type:String,required:!0},overlayImageSrc:{type:String,required:!0},alt:{type:String,required:!0},isHovered:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},rootMargin:{type:String,default:\\\"50px\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\"load\\\",\\\"error\\\",\\\"visible\\\"],setup(e,{emit:t}){var i,s;const n=e;n.isVideo||(null==(i=n.baseImageSrc)?void 0:i.toLowerCase().endsWith(\\\".webp\\\"))||null==(s=n.overlayImageSrc)||s.toLowerCase().endsWith(\\\".webp\\\");const a=P(50),o=P(null),{elementX:l,elementWidth:r,isOutside:d}=pe(o);return z([()=\\u003en.isHovered,l,r,d],(([e,t,i,s])=\\u003e{e\\u0026\\u0026(s||(a.value=t/i*100))})),(t,i)=\\u003e(j(),H(Nn,{\\\"is-hovered\\\":e.isHovered},{default:de((()=\\u003e[W(\\\"div\\\",Mn,[F(In,{src:e.baseImageSrc,\\\"image-class\\\":[\\\"transform-gpu transition-transform duration-300 ease-out\\\",\\\"w-full h-full object-cover block\\\"],\\\"root-margin\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate,onLoad:i[0]||(i[0]=e=\\u003et.$emit(\\\"load\\\",e)),onError:i[1]||(i[1]=e=\\u003et.$emit(\\\"error\\\",e)),onVisible:i[2]||(i[2]=e=\\u003et.$emit(\\\"visible\\\",e))},{placeholder:de((()=\\u003e[re(t.$slots,\\\"placeholder\\\",{},(()=\\u003e[i[3]||(i[3]=W(\\\"i\\\",{class:\\\"pi pi-image text-2xl text-surface-400\\\"},null,-1))]))])),error:de((()=\\u003e[re(t.$slots,\\\"error\\\",{},(()=\\u003e[i[4]||(i[4]=W(\\\"i\\\",{class:\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\"},null,-1))]))])),_:3},8,[\\\"src\\\",\\\"root-margin\\\",\\\"threshold\\\",\\\"immediate\\\"]),W(\\\"div\\\",{ref_key:\\\"containerRef\\\",ref:o,class:\\\"absolute inset-0\\\"},[F(In,{src:e.overlayImageSrc,\\\"image-class\\\":[\\\"transform-gpu transition-transform duration-300 ease-out\\\",\\\"w-full h-full object-cover block\\\"],\\\"image-style\\\":{clipPath:`inset(0 ${100-a.value}% 0 0)`},\\\"root-margin\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate},{placeholder:de((()=\\u003e[re(t.$slots,\\\"placeholder\\\",{},(()=\\u003e[i[5]||(i[5]=W(\\\"i\\\",{class:\\\"pi pi-image text-2xl text-surface-400\\\"},null,-1))]))])),error:de((()=\\u003e[re(t.$slots,\\\"error\\\",{},(()=\\u003e[i[6]||(i[6]=W(\\\"i\\\",{class:\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\"},null,-1))]))])),_:3},8,[\\\"src\\\",\\\"image-style\\\",\\\"root-margin\\\",\\\"threshold\\\",\\\"immediate\\\"]),W(\\\"div\\\",{class:\\\"absolute inset-y-0 bg-white/30 backdrop-blur-sm z-10 pointer-events-none\\\",style:ie({left:`${a.value}%`,width:\\\"1px\\\"})},null,4)],512)])])),_:3},8,[\\\"is-hovered\\\"]))}},Rn={class:\\\"selector-card-wrapper\\\"},Pn={class:\\\"card-image-container\\\"},Gn={key:2,class:\\\"selection-badge\\\"},zn={class:\\\"card-content\\\"},Vn={class:\\\"card-title\\\"},jn=cn({__name:\\\"selectorCard\\\",props:{item:{type:Object,required:!0},uniqueKey:{type:String,default:\\\"id\\\"},selectable:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!0},showMeta:{type:Boolean,default:!1},showActions:{type:Boolean,default:!1},actions:{type:Array,default:()=\\u003e[]},itemFields:{type:Object,default:()=\\u003e({id:\\\"id\\\",title:\\\"title\\\",description:\\\"description\\\",image:\\\"image\\\",meta:\\\"meta\\\"})},locale:{type:String,default:\\\"en\\\"}},emits:[\\\"select\\\",\\\"action\\\",\\\"item-hover\\\",\\\"item-leave\\\"],setup(e,{emit:t}){const i=e,s=t,n=P(null),a=he(n),o=()=\\u003e{i.selectable\\u0026\\u0026s(\\\"select\\\",i.item)},l=()=\\u003e{s(\\\"item-hover\\\",i.item)},r=()=\\u003e{s(\\\"item-leave\\\",i.item)};return(t,i)=\\u003e(j(),U(\\\"div\\\",Rn,[W(\\\"div\\\",{ref_key:\\\"cardRef\\\",ref:n,class:B([\\\"card-item\\\",{selected:e.isSelected,clickable:e.selectable}]),onClick:o,onMouseenter:l,onMouseleave:r},[W(\\\"div\\\",Pn,[\\\"compareSlider\\\"===e.item.thumbnailVariant?(j(),H(Dn,{key:0,\\\"base-image-src\\\":e.item.thumbnail[0],\\\"overlay-image-src\\\":e.item.thumbnail[1],alt:t.title,\\\"is-hovered\\\":X(a),\\\"is-video\\\":\\\"video\\\"===e.item.mediaType||\\\"webp\\\"===e.item.mediaSubtype,class:\\\"card-image\\\"},null,8,[\\\"base-image-src\\\",\\\"overlay-image-src\\\",\\\"alt\\\",\\\"is-hovered\\\",\\\"is-video\\\"])):(j(),H(On,{key:1,src:e.item.thumbnail||\\\"\\\",alt:\\\"zh\\\"==e.locale?e.item.name_cn:e.item.name,\\\"hover-zoom\\\":4,\\\"is-hovered\\\":!1,class:\\\"card-image\\\"},null,8,[\\\"src\\\",\\\"alt\\\"])),e.selectable\\u0026\\u0026e.isSelected?(j(),U(\\\"div\\\",Gn,i[0]||(i[0]=[W(\\\"i\\\",{class:\\\"pi pi-check text-white\\\"},null,-1)]))):te(\\\"\\\",!0)]),W(\\\"div\\\",zn,[W(\\\"div\\\",Vn,ee(\\\"zh\\\"==e.locale?e.item.name_cn:e.item.name),1)])],34)]))}},[[\\\"__scopeId\\\",\\\"data-v-88af28b0\\\"]]),Un={class:\\\"list-item\\\"},Wn=[\\\"name\\\",\\\"checked\\\"],Fn={class:\\\"list-item-content\\\"},Xn={class:\\\"list-title\\\"},Zn=cn({__name:\\\"selectorList\\\",props:{item:{type:Object,required:!0},uniqueKey:{type:String,default:\\\"id\\\"},selectable:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!0},showActions:{type:Boolean,default:!1},actions:{type:Array,default:()=\\u003e[]},itemFields:{type:Object,default:()=\\u003e({id:\\\"id\\\",title:\\\"title\\\",description:\\\"description\\\"})},locale:{type:String,default:\\\"en\\\"}},emits:[\\\"select\\\",\\\"action\\\",\\\"item-hover\\\",\\\"item-leave\\\"],setup(e,{emit:t}){const i=e,s=t,n=()=\\u003e{i.selectable\\u0026\\u0026s(\\\"select\\\",i.item)},a=()=\\u003e{s(\\\"item-hover\\\",i.item)},o=()=\\u003e{s(\\\"item-leave\\\",i.item)};return(t,i)=\\u003e(j(),U(\\\"div\\\",Un,[W(\\\"span\\\",{class:B([\\\"list-item__tag\\\",{selected:e.isSelected}]),onClick:n,onMouseenter:a,onMouseleave:o},[e.selectable?(j(),U(\\\"input\\\",{key:0,type:\\\"checkbox\\\",name:e.item.name,checked:e.isSelected,onClick:i[0]||(i[0]=Q((()=\\u003e{}),[\\\"stop\\\"]))},null,8,Wn)):te(\\\"\\\",!0),W(\\\"span\\\",Fn,[W(\\\"div\\\",Xn,ee(\\\"zh\\\"==e.locale?e.item.name_cn:e.item.name),1)])],34)]))}},[[\\\"__scopeId\\\",\\\"data-v-c93b1734\\\"]]),Hn=S(\\\"graphStore\\\",{state:e=\\u003e({selectors:[],selectors_styles:{},seg_selectors:[],slider_controls:[]}),actions:{setSelectors(e){this.selectors=R(e)},setStyles(e,t){this.selectors_styles[e]||(this.selectors_styles[e]=t)},setSegSelectors(e){this.seg_selectors=R(e)},setSliderControls(e){this.slider_controls=R(e)}}}),qn={class:\\\"easyuse-styles-selector\\\"},Yn={class:\\\"easyuse-styles-selector-header flex justify-between gap-2\\\"},Kn={class:\\\"flex align-center gap-1\\\"},Jn={class:\\\"flex-1\\\"},Bn={key:0,class:\\\"grid-container gap-2\\\"},Qn={key:1,class:\\\"list-container\\\"},$n={key:0,class:\\\"easyuse-styles-selector-previewer\\\"},ea={class:\\\"easyuse-styles-selector-previewer__text\\\"},ta=[\\\"src\\\"],ia={class:\\\"title\\\"},sa={class:\\\"easyuse-styles-selector-previewer__prompt\\\"},na={key:0},aa={class:\\\"comfyui-easyuse-success\\\"},oa={key:1},la={class:\\\"comfyui-easyuse-error\\\"},ra={__name:\\\"stylesSelector\\\",props:[\\\"widget\\\"],setup(e){const t=Hn(),{selectors_styles:i}=I(t),s=P(\\\"\\\"),n=P([]),a=Y((e=\\u003exe(\\\"Comfy.Locale\\\")||\\\"en\\\")),o=P(xe(\\\"EasyUse.StylesSelector.DisplayType\\\")||\\\"Grid\\\");\\\"Gird\\\"==o.value\\u0026\\u0026(o.value=\\\"Grid\\\",ke(\\\"EasyUse.StylesSelector.DisplayType\\\",\\\"Grid\\\"));const l=P([]),r=P(\\\"\\\");z((e=\\u003eo.value),(e=\\u003e{ke(\\\"EasyUse.StylesSelector.DisplayType\\\",e)})),z((t=\\u003ee.widget.value),(e=\\u003e{n.value=e.split(\\\",\\\").map((e=\\u003ee.trim()))}));const d=Y((()=\\u003e{if(!r.value.trim())return l.value;const e=n.value||[],t=r.value.toLowerCase(),i=[],s=[];return l.value.forEach((n=\\u003e{if(e.includes(n.name))i.push(n);else{const e=\\\"zh\\\"===a.value\\u0026\\u0026n.name_cn?n.name_cn:n.name,i=n.prompt||\\\"\\\",o=n.negative_prompt||\\\"\\\";(e.toLowerCase().includes(t)||i.toLowerCase().includes(t)||o.toLowerCase().includes(t))\\u0026\\u0026s.push(n)}})),[...i,...s]})),u=se({name:\\\"\\\",positive:\\\"\\\",negative:\\\"\\\",src:\\\"\\\"}),c=async e=\\u003e{if(i.value[e])return!0;const s=await ge.fetchApi(`/easyuse/prompt/styles?name=${e}`);if(200===s.status){let i=(await s.json()).map(((e,t)=\\u003e(e.index=t,e)));return await t.setStyles(e,i),!0}return Ye.error(Ne(\\\"Get styles list Failed\\\")),!1},A=e=\\u003e{var t,i;u.name=\\\"zh\\\"==a.value\\u0026\\u0026e.name_cn?e.name_cn:e.name,u.src=e.thumbnailVariant\\u0026\\u0026\\\"default\\\"!=e.thumbnailVariant?(null==(t=e.thumbnail)?void 0:t[1])||(null==(i=e.thumbnail)?void 0:i[0]):e.thumbnail,u.positive=e.prompt,u.negative=e.negative_prompt},p=()=\\u003e{u.name=\\\"\\\",u.src=\\\"\\\",u.positive=\\\"\\\",u.negative=\\\"\\\"},h=e=\\u003e{const t=n.value||[],a=R(i.value[s.value]);l.value=[...a.sort(((e,t)=\\u003ee.index-t.index)).sort(((e,i)=\\u003et.includes(i.name)-t.includes(e.name)))]},m=e=\\u003e(n.value||[]).includes(e.name),f=e=\\u003e{let t=[...n.value||[]];const i=e.name,s=t.findIndex((e=\\u003ee===i));s\\u003e-1?t.splice(s,1):t.push(i),n.value=t},g=()=\\u003e{n.value=[]};return V((t=\\u003e{setTimeout((t=\\u003e{const i=wt(e.widget.node,\\\"styles\\\");let n=i.value;s.value=n,c(n).then((e=\\u003ee\\u0026\\u0026h())),i.callback=e=\\u003e{s.value=e,g(),c(e).then((e=\\u003ee\\u0026\\u0026h()))}}),1),e.widget.serializeValue=async({node:e},t)=\\u003e{try{let i=n.value||[];return i=i.join(\\\",\\\"),(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[t]=i,e.widgets[t].value=i),i}catch(i){return[]}}})),(t,i)=\\u003e(j(),U(\\\"div\\\",qn,[W(\\\"div\\\",Yn,[W(\\\"div\\\",Kn,[Z(F(X(L),{icon:\\\"pi pi-trash\\\",severity:\\\"secondary\\\",outlined:\\\"\\\",size:\\\"small\\\",onClick:g},null,512),[[X(E),X(Ne)(\\\"Reset\\\")]])]),W(\\\"div\\\",Jn,[F(X(M),null,{default:de((()=\\u003e[F(X(T),{class:\\\"pi pi-search\\\"}),F(X(O),{modelValue:r.value,\\\"onUpdate:modelValue\\\":i[0]||(i[0]=e=\\u003er.value=e),placeholder:X(Ne)(\\\"Search styles...\\\"),class:\\\"w-full\\\"},null,8,[\\\"modelValue\\\",\\\"placeholder\\\"])])),_:1})]),F(X(D),{modelValue:o.value,\\\"onUpdate:modelValue\\\":i[1]||(i[1]=e=\\u003eo.value=e),options:[\\\"Grid\\\",\\\"List\\\"],\\\"allow-empty\\\":!1},{option:de((({option:e})=\\u003e[W(\\\"i\\\",{class:B([\\\"List\\\"===e?\\\"pi pi-bars\\\":\\\"pi pi-table\\\"])},null,2)])),_:1},8,[\\\"modelValue\\\"])]),W(\\\"div\\\",{class:\\\"easyuse-styles-selector-content\\\",onMouseleave:i[2]||(i[2]=t=\\u003eh(e.widget.node.name))},[\\\"Grid\\\"===o.value?(j(),U(\\\"div\\\",Bn,[(j(!0),U(K,null,J(d.value,((e,t)=\\u003e(j(),H(jn,{key:`${e.name}-${t}`,item:e,\\\"unique-key\\\":\\\"name\\\",locale:a.value,selectable:!0,\\\"is-selected\\\":m(e),\\\"show-description\\\":!0,\\\"preview-enabled\\\":!0,onSelect:f,onItemHover:A,onItemLeave:p},null,8,[\\\"item\\\",\\\"locale\\\",\\\"is-selected\\\"])))),128))])):(j(),U(\\\"div\\\",Qn,[(j(!0),U(K,null,J(d.value,((e,t)=\\u003e(j(),H(Zn,{key:`${e.name}-${t}`,item:e,\\\"unique-key\\\":\\\"name\\\",locale:a.value,selectable:!0,\\\"is-selected\\\":m(e),\\\"show-description\\\":!0,onSelect:f,onItemHover:A,onItemLeave:p},null,8,[\\\"item\\\",\\\"locale\\\",\\\"is-selected\\\"])))),128))]))],32),(null==u?void 0:u.positive)||(null==u?void 0:u.negative)?(j(),U(\\\"div\\\",$n,[W(\\\"div\\\",ea,[W(\\\"img\\\",{src:u.src,alt:\\\"\\\",style:{width:\\\"100%\\\",height:\\\"auto\\\",\\\"object-fit\\\":\\\"contain\\\",\\\"border-radius\\\":\\\"6px\\\"}},null,8,ta),W(\\\"span\\\",ia,ee(u.name),1),W(\\\"div\\\",sa,[u.positive?(j(),U(\\\"h6\\\",na,[W(\\\"span\\\",aa,ee(X(Ne)(\\\"Positive\\\"))+\\\":\\\",1),W(\\\"span\\\",null,ee(u.positive),1)])):te(\\\"\\\",!0),u.negative?(j(),U(\\\"h6\\\",oa,[W(\\\"span\\\",la,ee(X(Ne)(\\\"Negative\\\"))+\\\":\\\",1),W(\\\"span\\\",null,ee(u.negative),1)])):te(\\\"\\\",!0)])])])):te(\\\"\\\",!0)]))}},da=new Map,ua={width:\\\"100%\\\",height:\\\"100%\\\",display:\\\"flex\\\",flexDirection:\\\"column\\\",overflow:\\\"hidden\\\"},ca=(e,t)=\\u003e{const i=document.createElement(\\\"div\\\"),s=e.node,n=e.options||{getMinHeight:()=\\u003e100,hideOnZoom:!0,serialize:!0},a=e.styles||null;i.id=`easyuse-vue-widget-${s.id}`,Object.assign(i.style,ua,a||{});const o=s.addDOMWidget(e.name||\\\"ustom_vue_component_basic\\\",\\\"vue-basic\\\",i,n);e.inputSpec\\u0026\\u0026(o.inputSpec=e.inputSpec);const l=ue(t,{widget:o,node:s});return l.use(me),l.mount(i),da.set(s.id,l),o.onRemove=()=\\u003e{const e=da.get(s.id);e\\u0026\\u0026(e.unmount(),da.delete(s.id))},{widget:o}};fe.registerExtension({name:\\\"Comfy.EasyUse.CustomWidget\\\",getCustomWidgets:e=\\u003e({EASY_PROMPT_AWAIT_BAR:e=\\u003e{const t=P(JSON.stringify({select:\\\"now\\\",unlock:!0,last_seed:0,seed:0})),i=!![\\\"obsidian\\\",\\\"obsidian_dark\\\",\\\"milk_white\\\"].includes(xe(\\\"Comfy.ColorPalette\\\"))?48:54;return ca({name:\\\"toolbar\\\",node:e,options:{getMinHeight:()=\\u003ei,getMaxHeight:()=\\u003ei,getValue:()=\\u003et.value,setValue:e=\\u003e{try{t.value=\\\"object\\\"==typeof e?JSON.stringify(e):e}catch(i){}}}},Es)},EASY_PROMPT_STYLES:e=\\u003e{const t=P(\\\"\\\");return ca({name:\\\"select_styles\\\",node:e,options:{getMinHeight:()=\\u003e180,getMaxHeight:()=\\u003ee.size[1]-75,getValue:()=\\u003et.value,setValue:e=\\u003e{t.value=Array.isArray(e)?e.join(\\\",\\\"):e}},styles:{overflow:\\\"visible\\\"}},ra)},EASY_COMBO:(e,t,i)=\\u003e{const s=P(\\\"\\\"),n=!![\\\"obsidian\\\",\\\"obsidian_dark\\\",\\\"milk_white\\\"].includes(xe(\\\"Comfy.ColorPalette\\\"))?22:26;return ca({name:\\\"mask_components\\\",node:e,options:{margin:0,getMinHeight:()=\\u003en,getMaxHeight:()=\\u003en,getValue:()=\\u003es.value,setValue:e=\\u003e{s.value=Array.isArray(e)?e.join(\\\",\\\"):e}},inputSpec:null==i?void 0:i[1],styles:{overflow:\\\"visible\\\"}},Cs)},EASY_MULTI_ANGLE:e=\\u003e{const t=P(JSON.stringify([{rotate:0,vertical:0,zoom:5,add_angle_prompt:!0}]));return ca({name:\\\"multi_angle\\\",node:e,options:{getMinHeight:()=\\u003e350,getMaxHeight:()=\\u003ee.size[1]-80,getValue:()=\\u003et.value,setValue:e=\\u003e{try{t.value=Array.isArray(e)?JSON.stringify(e):e}catch(i){}}},styles:{overflow:\\\"visible\\\"}},un)},EASY_TABLE_EDITOR:(e,t,i,s)=\\u003e{const n=P(JSON.stringify({mode:\\\"table\\\",headers:[\\\"列1\\\",\\\"列2\\\",\\\"列3\\\"],rows:[[\\\"\\\",\\\"\\\",\\\"\\\"],[\\\"\\\",\\\"\\\",\\\"\\\"]],markdown:\\\"| 列1 | 列2 | 列3 |\\\\n| --- | --- | --- |\\\\n|     |     |     |\\\\n|     |     |     |\\\"}));return ca({name:\\\"table_data\\\",node:e,options:{getMinHeight:()=\\u003e200,getMaxHeight:()=\\u003ee.size[1],getValue:()=\\u003en.value,setValue:e=\\u003e{n.value=\\\"object\\\"==typeof e?JSON.stringify(e):e}},styles:{overflow:\\\"hidden\\\"}},Ln)}})});export{Ne as $,Re as N,fe as a,Ke as b,xe as c,vi as d,Pe as e,ge as f,wt as g,Le as h,Nt as j,Xe as s,Ye as t,Hn as u};\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web_version/v2/assets/extensions-DcWKQGos.js\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 1,\n        \"line_snippet\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i)=\\u003e(y(e,t,\\\"read from private field\\\"),i?i.call(e):t.get(e)),b=(e,t,i)=\\u003et.has(e)?g(\\\"Cannot add the same private member more than once\\\"):t instanceof WeakSet?t.add(e):t.set(e,i),_=(e,t,i,s)=\\u003e(y(e,t,\\\"write to private field\\\"),s?s.call(e,i):t.set(e,i),i);import{d as S,h as x,s as L,a as k,T as E,b as N,c as C,e as I,f as T,g as O,i as M,j as D}from\\\"./vendor-DrOEdrAG.js\\\";import{c as R}from\\\"./lodash-DkvwM0Z9.js\\\";import{r as P,m as G,w as z,o as V,a as j,c as U,b as W,d as F,u as X,e as Z,f as H,g as q,h as Y,F as K,i as J,n as B,j as Q,v as $,t as ee,k as te,l as ie,p as se,q as ne,s as ae,x as oe,y as le,z as re,A as de,B as ue}from\\\"./vue-DfGw76ex.js\\\";import{u as ce,a as Ae,b as pe,c as he}from\\\"./vueuse-Bf7Wy5dB.js\\\";import{P as me}from\\\"./primevue-keNb8gkp.js\\\";let fe=(null==(t=null==(e=window.comfyAPI)?void 0:e.app)?void 0:t.app)||null,ge=(null==(s=null==(i=window.comfyAPI)?void 0:i.api)?void 0:s.api)||null,ve=(null==(a=null==(n=window.comfyAPI)?void 0:n.ui)?void 0:a.$el)||null,ye=(null==(l=null==(o=window.comfyAPI)?void 0:o.dialog)?void 0:l.ComfyDialog)||null,we=(null==(d=null==(r=window.comfyAPI)?void 0:r.widgets)?void 0:d.ComfyWidgets)||null,be=(null==(c=null==(u=window.comfyAPI)?void 0:u.utils)?void 0:c.applyTextReplacements)||null,_e=(null==(p=null==(A=window.comfyAPI)?void 0:A.groupNode)?void 0:p.GroupNodeConfig)||null;const Se=e=\\u003e{var t,i;return e?null==(i=null==(t=null==fe?void 0:fe.ui)?void 0:t.settings)?void 0:i.getSettingValue(e):null};function xe(e,t=null){try{let i=e?Se(e):null;return null==i\\u0026\\u0026(i=t?localStorage[t]:localStorage[e]||null),i}catch(i){return null}}function Le(e,t=e=\\u003e{}){var i;const s=null==(i=fe.ui.settings.settingsLookup)?void 0:i[e];s\\u0026\\u0026(s.onChange=e=\\u003et(e))}async function ke(e,t,i=null){var s,n;if(!e)throw new Error(\\\"Invalid arguments\\\");try{(null==(n=null==(s=null==fe?void 0:fe.ui)?void 0:s.settings)?void 0:n.setSettingValue)?fe.ui.settings.setSettingValue(e,t):await ge.storeSetting(e,t),i\\u0026\\u0026(localStorage[i]=\\\"object\\\"==typeof t?JSON.stringify(t):t)}catch(a){}}const Ee={\\\"Workflow created by\\\":\\\"工作流创建者\\\",\\\"Watch more video content\\\":\\\"观看更多视频内容\\\",\\\"Workflow Guide\\\":\\\"工作流指南\\\",\\\"💎 View Checkpoint Info...\\\":\\\"💎 查看 Checkpoint 信息...\\\",\\\"💎 View Lora Info...\\\":\\\"💎 查看 Lora 信息...\\\",\\\"🔃 Reload Node\\\":\\\"🔃 刷新节点\\\",\\\"Updated At:\\\":\\\"最近更新：\\\",\\\"Created At:\\\":\\\"首次发布：\\\",\\\"✏️ Edit\\\":\\\"✏️ 编辑\\\",\\\"💾 Save\\\":\\\"💾 保存\\\",\\\"No notes\\\":\\\"当前还没有备注内容\\\",\\\"Saving Notes...\\\":\\\"正在保存备注...\\\",\\\"Type your notes here\\\":\\\"在这里输入备注内容\\\",ModelName:\\\"模型名称\\\",\\\"Models Required\\\":\\\"所需模型\\\",\\\"Download Model\\\":\\\"下载模型\\\",\\\"Source Url\\\":\\\"模型源地址\\\",Notes:\\\"备注\\\",Type:\\\"类型\\\",\\\"Trained Words\\\":\\\"训练词\\\",BaseModel:\\\"基础算法\\\",Details:\\\"详情\\\",Description:\\\"描述\\\",Download:\\\"下载量\\\",Source:\\\"来源\\\",\\\"Saving Preview...\\\":\\\"正在保存预览图...\\\",\\\"Saving Succeed\\\":\\\"保存成功\\\",\\\"Clean SuccessFully\\\":\\\"清理成功\\\",\\\"Clean Failed\\\":\\\"清理失败\\\",\\\"Saving Failed\\\":\\\"保存失败\\\",\\\"No COMBO link\\\":\\\"沒有找到COMBO连接\\\",\\\"Reboot ComfyUI\\\":\\\"重启ComfyUI\\\",\\\"Are you sure you'd like to reboot the server?\\\":\\\"是否要重启ComfyUI？\\\",\\\"NODES MAP\\\":\\\"管理节点与组\\\",NodesMap:\\\"节点与组\\\",\\\"Nodes map sorting mode\\\":\\\"管理节点组排序模式\\\",\\\"Search by Node ID/Name...\\\":\\\"通过节点ID/名称搜索...\\\",\\\"No Nodes\\\":\\\"未找到节点\\\",\\\"No nodes found in the map\\\":\\\"在工作流程中没有找到节点\\\",\\\"No nodes found in the search\\\":\\\"未找到与搜索匹配的节点\\\",\\\"Jump to this node\\\":\\\"跳转到该节点\\\",\\\"Rename node\\\":\\\"重命名节点\\\",\\\"Delete node\\\":\\\"删除节点\\\",\\\"Rename group\\\":\\\"重命名组\\\",\\\"Delete group\\\":\\\"删除组\\\",\\\"Expand All\\\":\\\"展开所有组\\\",\\\"Collapse All\\\":\\\"折叠所有组\\\",Close:\\\"关闭\\\",\\\"Default automatic sorting, if set to manual, groups can be dragged and dropped and the sorting results saved.\\\":\\\"默认自动排序，如果设置为手动，组可以拖放并保存排序结果。\\\",\\\"For drag and drop sorting, please find Nodes map sorting mode in Settings-\\u003eEasyUse and change it to manual\\\":\\\"如需拖拽排序请在设置-\\u003eEasyUse节点中找到管理节点组排序模式并修改成 manual\\\",Queue:\\\"队列\\\",\\\"Cleanup Of VRAM Usage\\\":\\\"清理显存占用\\\",\\\"Please stop all running tasks before cleaning GPU\\\":\\\"请在清理GPU之前停止所有运行中的任务\\\",Always:\\\"启用中\\\",Bypass:\\\"已忽略\\\",Never:\\\"已停用\\\",\\\"Auto Sorting\\\":\\\"自动排序\\\",\\\"Toggle `Show/Hide` can set mode of group, LongPress can set group nodes to never\\\":\\\"点击`启用中/已忽略`可设置组模式, 长按可停用该组节点\\\",\\\"Enable Shift+Up/Down/Left/Right key and Shift+Ctrl+Alt+Left/Right to align selected nodes\\\":\\\"启用 Shift+上/下/左/右 和 Shift+Ctrl+Alt+左/右 键对齐选中的节点\\\",\\\"Enable Shift+Ctrl+Left/Right key to normalize selected nodes\\\":\\\"启用 Shift+Ctrl+左/右 键规范化选中的节点\\\",\\\"Enable Shift+g to add selected nodes to a group\\\":\\\"启用 Shift+g 键将选中的节点添加一个组\\\",\\\"Enable Shift+r to unload models and node cache\\\":\\\"启用 Shift+r 键卸载模型和节点缓存\\\",\\\"Enable Shift+m to toggle nodes map\\\":\\\"启用 Shift+m 键显隐管理节点组\\\",\\\"Enable Up/Down/Left/Right key to jump nearest nodes\\\":\\\"启用 上/下/左/右 键跳转到最近的前后节点\\\",\\\"Enable Alt+1~9 to paste nodes from nodes template\\\":\\\"启用 Alt+1~9 从节点模板粘贴到工作流中\\\",\\\"Enable contextMenu auto nest subdirectories\\\":\\\"启用上下文菜单自动嵌套子目录\\\",\\\"Enable right-click menu to add node A~Z sorting\\\":\\\"启用右键菜单中新建节点A~Z排序\\\",\\\"Enable model thumbnails display\\\":\\\"启动模型预览图显示\\\",\\\"Enable nodes runtime display\\\":\\\"启动节点运行时间显示\\\",\\\"Enable chain get node and set node with parent nodes\\\":\\\"启用将获取点和设置点与父节点链在一起\\\",\\\"Maximum number of model thumbnails displayed\\\":\\\"显示的模型缩略图的最大数量\\\",\\\"Too many thumbnails will affect the first loading time, set the maximum value to not load the thumbnail function when there are too many models's thumbnail\\\":\\\"太多的缩略图会影响首次加载时间，当模型缩略图太多时，设置最大值以不加载缩略图功能\\\",\\\"Too many thumbnails, have closed the display\\\":\\\"模型缩略图太多啦，为您关闭了显示\\\",\\\"Shift+Up/Down/Left/Right can align selected nodes, Shift+Ctrl+Alt+Left/Right can distribute horizontal/vertical nodes\\\":\\\"Shift+上/下/左/右 可以对齐选中的节点, Shift+Ctrl+Alt+左/右 可以水平/垂直分布节点\\\",\\\"Enable Shift+Ctrl+Left key to normalize width and Shift+Ctrl+Right key to normalize height\\\":\\\"启用 Shift+Ctrl+左 键规范化宽度和 Shift+Ctrl+右 键规范化高度\\\",\\\"After v1.2.39, Ctrl+g can be used instead of it\\\":\\\"从v1.2.39开始，可以使用Ctrl+g代替\\\",\\\"Styles Selector Display Type\\\":\\\"样式选择器显示类型\\\",\\\"Styles Selector Display Type, if set to 'Grid', it will display as a Grid, if set to 'List', it will display as a list\\\":\\\"样式选择器显示类型，如果设置为“网格”，则显示为网格，如果设置为“列表”，则显示为列表\\\",\\\"Use three shortcut buttons in the right-click menu\\\":\\\"在右键菜单中使用三个快捷按钮\\\",\\\"Enable Nodes Map\\\":\\\"启用节点组管理\\\",\\\"Display Groups Only\\\":\\\"仅显示组\\\",\\\"Display Node ID\\\":\\\"显示节点ID\\\",\\\"You need to refresh the page to update successfully\\\":\\\"您需要刷新页面以成功更新\\\",\\\"Get styles list Failed\\\":\\\"获取样式列表失败\\\",\\\"Get style image Failed\\\":\\\"获取样式图片失败\\\",\\\"Empty All\\\":\\\"清空所有\\\",\\\"Type here to search styles ...\\\":\\\"在此处输入以搜索样式 ...\\\",\\\"Loading UserInfo...\\\":\\\"正在获取用户信息...\\\",\\\"Please set the APIKEY first\\\":\\\"请先设置APIKEY\\\",\\\"Setting APIKEY\\\":\\\"设置APIKEY\\\",\\\"Save Account Info\\\":\\\"保存账号信息\\\",Choose:\\\"选择\\\",Delete:\\\"删除\\\",Edit:\\\"编辑\\\",\\\"At least one account is required\\\":\\\"删除失败: 至少需要一个账户\\\",\\\"APIKEY is not Empty\\\":\\\"APIKEY 不能为空\\\",\\\"Add Account\\\":\\\"添加账号\\\",\\\"Getting Your APIKEY\\\":\\\"获取您的APIKEY\\\",Canceling:\\\"正在取消\\\",\\\"Cancel current run\\\":\\\"取消当前运行\\\",\\\"Waiting for selection...\\\":\\\"等待选择中...\\\",\\\"Using last selection\\\":\\\"使用上次选择\\\",\\\"Pass Through\\\":\\\"跳过选择\\\",\\\"Unknown Mode\\\":\\\"未知模式\\\",\\\"Choose Selected Images\\\":\\\"选择选中的图片\\\",\\\"Choose images to continue\\\":\\\"选择图片以继续\\\",\\\"Please run first\\\":\\\"请先运行队列\\\",\\\"Progress selected\\\":\\\"处理选中的图片\\\",\\\"Progress selected image\\\":\\\"处理选中的图片\\\",\\\"Please select images to continue\\\":\\\"请选择图片以继续\\\",Background:\\\"背景\\\",Hat:\\\"帽子\\\",Hair:\\\"头发\\\",Body:\\\"身体\\\",Face:\\\"脸部\\\",Clothes:\\\"衣服\\\",Others:\\\"其他\\\",Glove:\\\"手套\\\",Glasses:\\\"眼镜\\\",Sunglasses:\\\"太阳镜\\\",\\\"Upper-clothes\\\":\\\"上衣\\\",\\\"Top-clothes\\\":\\\"上衣\\\",\\\"Bottom-clothes\\\":\\\"下身装\\\",\\\"Torso-skin\\\":\\\"皮肤\\\",Dress:\\\"连衣裙\\\",Belt:\\\"腰带\\\",Coat:\\\"外套\\\",Socks:\\\"袜子\\\",Pants:\\\"裤子\\\",Jumpsuits:\\\"连体衣\\\",Bag:\\\"包\\\",Scarf:\\\"围巾\\\",Skirt:\\\"裙子\\\",\\\"Left-arm\\\":\\\"左臂\\\",\\\"Right-arm\\\":\\\"右臂\\\",\\\"Left-leg\\\":\\\"左腿\\\",\\\"Right-leg\\\":\\\"右腿\\\",\\\"Left-foot\\\":\\\"左脚\\\",\\\"Right-foot\\\":\\\"右脚\\\",\\\"Left-shoe\\\":\\\"左鞋\\\",\\\"Right-shoe\\\":\\\"右鞋\\\",\\\"select mask components\\\":\\\"选择分割部位\\\",\\\"select items\\\":\\\"选择项\\\",Unlabelled:\\\"未标记\\\",\\\"shirt, blouse\\\":\\\"衬衫，女式衬衫\\\",\\\"top, t-shirt, sweatshirt\\\":\\\"上衣，T恤，运动衫\\\",sweater:\\\"毛衣\\\",cardigan:\\\"开襟毛衣\\\",jacket:\\\"夹克\\\",vest:\\\"背心\\\",pants:\\\"长裤\\\",shorts:\\\"短裤\\\",skirt:\\\"裙子\\\",coat:\\\"外套\\\",dress:\\\"连衣裙\\\",jumpsuit:\\\"连体衣\\\",cape:\\\"斗篷\\\",glasses:\\\"眼镜\\\",hat:\\\"帽子\\\",\\\"headband, head covering, hair accessory\\\":\\\"头带，头饰，发饰\\\",tie:\\\"领带\\\",glove:\\\"手套\\\",watch:\\\"手表\\\",belt:\\\"腰带\\\",\\\"leg warmer\\\":\\\"护腿\\\",\\\"tights, stockings\\\":\\\"紧身袜，丝袜\\\",sock:\\\"袜子\\\",shoe:\\\"鞋子\\\",\\\"bag, wallet\\\":\\\"包，钱包\\\",scarf:\\\"围巾\\\",umbrella:\\\"雨伞\\\",hood:\\\"帽兜\\\",collar:\\\"领子\\\",lapel:\\\"翻领\\\",epaulette:\\\"肩章\\\",sleeve:\\\"袖子\\\",pocket:\\\"口袋\\\",neckline:\\\"领口\\\",buckle:\\\"扣环\\\",zipper:\\\"拉链\\\",applique:\\\"贴花\\\",bead:\\\"珠子\\\",bow:\\\"蝴蝶结\\\",flower:\\\"花朵装饰\\\",fringe:\\\"流苏\\\",ribbon:\\\"丝带\\\",rivet:\\\"铆钉\\\",ruffle:\\\"褶边\\\",sequin:\\\"亮片\\\",tassel:\\\"流苏穗\\\",background:\\\"背景\\\",skin:\\\"皮肤\\\",nose:\\\"鼻子\\\",eyeglasses:\\\"眼镜\\\",left_eye:\\\"左眼\\\",right_eye:\\\"右眼\\\",left_eyebrow:\\\"左眉毛\\\",right_eyebrow:\\\"右眉毛\\\",left_ear:\\\"左耳\\\",right_ear:\\\"右耳\\\",mouth:\\\"嘴巴\\\",upper_lip:\\\"上唇\\\",lower_lip:\\\"下唇\\\",hair:\\\"头发\\\",earring:\\\"耳环\\\",necklace:\\\"项链\\\",neck:\\\"脖子\\\",clothing:\\\"服装\\\",s:\\\"秒\\\",\\\"No Node Templates Found\\\":\\\"未找到节点模板预设\\\",\\\"Get Node Templates File Failed\\\":\\\"获取节点模板文件失败\\\",\\\"Node template with {key} not set\\\":\\\"未设置快捷键为{key}的节点预设\\\",\\\"ComfyUI Basic\\\":\\\"ComfyUI 基础节点\\\",\\\"Recommend Nodes\\\":\\\"推荐节点\\\",\\\"Others A~Z\\\":\\\"其他节点 A~Z\\\",\\\"The maximum number of inputs is 20\\\":\\\"输入数量最大20个\\\",\\\"The maximum number of outputs is 20\\\":\\\"输出数量最大20个\\\",\\\"Stop recording\\\":\\\"停止录音\\\",\\\"Voice input\\\":\\\"语音输入\\\",Continue:\\\"继续\\\",Stop:\\\"停止\\\",now:\\\"当前\\\",prev:\\\"上一步\\\",\\\"Add New Tab\\\":\\\"添加新标签\\\",\\\"Add Angle Prompt\\\":\\\"添加角度提示词\\\",\\\"Invert Rotate Mode\\\":\\\"反转旋转\\\",Hollow:\\\"镂空展示\\\",Reset:\\\"重置\\\",\\\"Angle Prompt\\\":\\\"角度词\\\",Image:\\\"图像\\\",F:\\\"前\\\",B:\\\"后\\\",U:\\\"顶\\\",D:\\\"底\\\",L:\\\"左\\\",R:\\\"右\\\",Rotate:\\\"旋转\\\",Vertical:\\\"垂直\\\",Zoom:\\\"缩放\\\"},Ne=(e,t=!1)=\\u003e{switch(xe(\\\"Comfy.Locale\\\")){case\\\"zh-CN\\\":case\\\"zh\\\":return Ee[e]||e;default:return e}};const Ce=\\\"comfyui-easyuse-\\\",Ie=\\\"dark-theme\\\",Te={PIPE_LINE:\\\"#7737AA\\\",PIPE_LINE_SDXL:\\\"#7737AA\\\",INT:\\\"#29699C\\\",X_Y:\\\"#38291f\\\",XYPLOT:\\\"#74DA5D\\\",LORA_STACK:\\\"#94dccd\\\",CONTROL_NET_STACK:\\\"#94dccd\\\",FLOW_CONTROL:\\\"#373780\\\"},Oe=0x4000000000000,Me=[\\\"loaders\\\",\\\"latent\\\",\\\"image\\\",\\\"mask\\\",\\\"sampling\\\",\\\"_for_testing\\\",\\\"advanced\\\",\\\"utils\\\",\\\"api\\\",\\\"api node\\\",\\\"加载器\\\",\\\"Latent\\\",\\\"图像\\\",\\\"遮罩\\\",\\\"采样\\\",\\\"_用于测试\\\",\\\"高级\\\",\\\"工具\\\",\\\"API\\\",\\\"api 节点\\\",\\\"chargeurs\\\",\\\"latent\\\",\\\"image\\\",\\\"masque\\\",\\\"échantillonnage\\\",\\\"_pour_test\\\",\\\"avancé\\\",\\\"outils\\\",\\\"nœud api\\\",\\\"загрузчики\\\",\\\"латентный\\\",\\\"изображение\\\",\\\"маска\\\",\\\"выборка\\\",\\\"_для_тестирования\\\",\\\"расширенный\\\",\\\"инструменты\\\",\\\"api\\\",\\\"api узел\\\",\\\"로더\\\",\\\"잠재\\\",\\\"이미지\\\",\\\"마스크\\\",\\\"샘플링\\\",\\\"_테스트용\\\",\\\"고급\\\",\\\"도구\\\",\\\"api\\\",\\\"api 노드\\\",\\\"ローダー\\\",\\\"潜在\\\",\\\"画像\\\",\\\"マスク\\\",\\\"サンプリング\\\",\\\"_テスト用\\\",\\\"高度な\\\",\\\"ツール\\\",\\\"api\\\",\\\"apiノード\\\",\\\"cargadores\\\",\\\"latente\\\",\\\"imagen\\\",\\\"máscara\\\",\\\"muestreo\\\",\\\"_para_pruebas\\\",\\\"avanzado\\\",\\\"herramientas\\\",\\\"api\\\",\\\"nodo api\\\"],De={selfie_multiclass_256x256:[\\\"Background\\\",\\\"Hair\\\",\\\"Body\\\",\\\"Face\\\",\\\"Clothes\\\",\\\"Others\\\"],human_parsing_lip:[\\\"Background\\\",\\\"Hat\\\",\\\"Hair\\\",\\\"Glove\\\",\\\"Sunglasses\\\",\\\"Upper-clothes\\\",\\\"Dress\\\",\\\"Coat\\\",\\\"Socks\\\",\\\"Pants\\\",\\\"Jumpsuits\\\",\\\"Scarf\\\",\\\"Skirt\\\",\\\"Face\\\",\\\"Left-arm\\\",\\\"Right-arm\\\",\\\"Left-leg\\\",\\\"Right-leg\\\",\\\"Left-shoe\\\",\\\"Right-shoe\\\"],\\\"human_parts (deeplabv3p)\\\":[\\\"Background\\\",\\\"Face\\\",\\\"Hair\\\",\\\"Glasses\\\",\\\"Top-clothes\\\",\\\"Bottom-clothes\\\",\\\"Torso-skin\\\",\\\"Left-arm\\\",\\\"Right-arm\\\",\\\"Left-leg\\\",\\\"Right-leg\\\",\\\"Left-foot\\\",\\\"Right-foot\\\"],segformer_b3_clothes:{Background:0,Hat:1,Hair:2,Sunglasses:3,\\\"Upper-clothes\\\":4,Skirt:5,Pants:6,Dress:7,Belt:8,\\\"Left-shoe\\\":9,\\\"Right-shoe\\\":10,Face:11,\\\"Left-leg\\\":12,\\\"Right-leg\\\":13,\\\"Left-arm\\\":14,\\\"Right-arm\\\":15,Bag:16,Scarf:17},segformer_b3_fashion:{Unlabelled:0,\\\"shirt, blouse\\\":1,\\\"top, t-shirt, sweatshirt\\\":2,sweater:3,cardigan:4,jacket:5,vest:6,pants:7,shorts:8,skirt:9,coat:10,dress:11,jumpsuit:12,cape:13,glasses:14,hat:15,\\\"headband, head covering, hair accessory\\\":16,tie:17,glove:18,watch:19,belt:20,\\\"leg warmer\\\":21,\\\"tights, stockings\\\":22,sock:23,shoe:24,\\\"bag, wallet\\\":25,scarf:26,umbrella:27,hood:28,collar:29,lapel:30,epaulette:31,sleeve:32,pocket:33,neckline:34,buckle:35,zipper:36,applique:37,bead:38,bow:39,flower:40,fringe:41,ribbon:42,rivet:43,ruffle:44,sequin:45,tassel:46},face_parsing:[\\\"background\\\",\\\"skin\\\",\\\"nose\\\",\\\"eyeglasses\\\",\\\"left_eye\\\",\\\"right_eye\\\",\\\"left_eyebrow\\\",\\\"right_eyebrow\\\",\\\"left_ear\\\",\\\"right_ear\\\",\\\"mouth\\\",\\\"upper_lip\\\",\\\"lower_lip\\\",\\\"hair\\\",\\\"hat\\\",\\\"earring\\\",\\\"necklace\\\",\\\"neck\\\",\\\"clothing\\\"]},Re={ALWAYS:0,NEVER:2,BYPASS:4},Pe=\\\"easyuse_nodes_map\\\",Ge=\\\"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMyaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA5LjEtYzAwMSA3OS4xNDYyODk5Nzc3LCAyMDIzLzA2LzI1LTIzOjU3OjE0ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjUuMyAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2RkFERDc2MUNDRkIxMUVGQjFENkE0NzFCNTUzRkQ0MCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2RkFERDc2MkNDRkIxMUVGQjFENkE0NzFCNTUzRkQ0MCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjUyMkMxRkIyQ0M0QzExRUZCMUQ2QTQ3MUI1NTNGRDQwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjZGQURENzYwQ0NGQjExRUZCMUQ2QTQ3MUI1NTNGRDQwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgICAwMDAwMDAwMDAwEBAQEBAQECAQECAgIBAgIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD/8AAEQgBgAGAAwERAAIRAQMRAf/EAMoAAQADAQEBAQEBAQAAAAAAAAAICQoHBgUEAwECAQEAAwEBAQEAAAAAAAAAAAAABQYHBAMCARAAAAYCAQIDBAQJBwoGAwAAAAECAwQFBgcIERITFAkhFRZXIpYXGTEy1bbWd5cYOEEjM9Q2djdRsbMktHWVtbd4QlIlJ9dYNJQ5EQACAQICBQYJCQYFAwUBAAAAAQIRAwQFITFREgZBYXGBkROhsdEiMpJTFBbBQlJy0nNUFTXworIjMzThYoKDJMLidPFDk7MmNv/aAAwDAQACEQMRAD8AxHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+lZU1vSrht3FVZVLljWwbmvRZQZUFc6otGEya21hplNNHJrbGMonGH0dzTyDJSFGXtH1KE4UU002k1VUqnqa5nyM+YyjKu606Omjata6T5o+T6LYfT19PfAOY+B59lmXZ7mGJTMQy6Hj0WJjkOlfiyosmmYsjkyHLOPId8cnXTT0T2pJKSP2mfst3DnDmHzrD3L165OEoTUfNS2V5Sv5xnF7LbsLduEZKUa6a7acg9Qr098A4cYHgOWYjnuYZbMy/LpmPSomRw6ViLFixqZ+yKTHcrI8d3xzdaJPRXck0qM/YZe1xHw5h8lw9u9ZuTnKc3HzktleQZPnF7Mrs7dyEYqMa6K7acpU8KiWA/fAqrS1OYVXWz7I6+BKtZ5QIciYcGrgoJybZTCjtuHGgQ0GSnXl9rbZH1UZD6jCc67iboquirRLW+jnPxyjGm80qunXsPwD5P0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC1T0sOKGpeR20re72pk1HZRNblDuYWmnnTTa5wvxEdlzbsvEhEzCKaUptEqOwbipEhxtuR4bCuyTbOE8oweZ4uU8XOLVqjVvllzvbFcqWt0TotcBn+YYjBWFDDxac9G/yR5l/mfJ4NOq/Dmtwc19y616zWeFXYls3Eq9xrXGcMQ0oRXIQk1oxW+ZiN+LMw6a57DbQlTkBxXjxyM/FZf0HPMhw+cYbd0QxUF5kqav8AK9sX4Na5U6jlea3suvb2mViT86Pyrn8ep82P3amq880rnd/rfZWPTMZy3HJao0+vlp6tvNH1VFsq2WjrHsqixY6OxpTKlsvtKJSVGQxvF4TEYHESw2Ki43ovSvlW1Pka0M0fD4izirSv2JKVuX7UexrlRog9DH/Bvdv6zaj81Yo0fgP+yv8A3q/hRTeK/wC5tfUfjHrnf4N6S/Wbb/mrKDjz+ysfev8AhY4U/ubv1F4zO/qvVeebqzug1vrXHpmTZbkctMaBXxE9G2Wi6KlWVlLX0j1tRXMdXZMp5SGWGkmpSiIZxhMJiMdiI4bCxcr0noXyvYlyt6EXLEYizhbTv35KNuP7UW1vkRr/AOF3BfXXEzXEulejVeZ7HzOsKLs3MpkBt+PbR32/5/EaWNNaUqNhUVSjSbLiSXYLLxpKf6JljZMkyHDZRhnBpTxM158mtf8AlVfm+PW+RLOMzzW9mF9SVY2IvzY7Od/5vFqXPQD6oXErWPGbalVY6vymkj02xW5l2rUvm1O5FgR+MolS4jCScMsItJCXEQDfWh1p1pxlHiob7kZ5xVk+FyvFqWFnHcuVfd8sP+18ledaaFvyHMb+Ow7jfi96Gjf5Jf8AcuXtKvBVSeAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPY6+2BmOq8yx/YGAX87GMvxee3ZUtzXOEh+NIQSm3G3G1pWxLhS47i2ZEd1K2JDDi23EqQpST9sPiL2EvxxGHk43oOqa/bVyNamtDPK9ZtYi07N5KVuSo0/2/9DTFr71i9OzuONnsDP4XkN34yzHppWqapTrSc1yKQysq+6xee+mSiDiM1bSnZy3zcfqe1bRpkqOKqVqGH4zwUsseIxCpj46O7XznyOL5Ivlrpjq06K0e9w3iVjVZsuuFlp3381bHz7NvNppnS33vnY3JDZVztHZ1sVlfWZJiwocdKmajHKKO8+7XY5QQ1LcOFT1pyVmhJqW4444t51bjzjjis2zDMMTmeKli8U63HqXJFckUuRL/ABelsumEwlnBWFYsKkF2t7Xzv/DUNZ8iN5aarLKm1VtTNMAqreeizs4GMXUmrjTrBuOmKiXIbYUROPpjISjr/wCVJf5CDC5lj8FBwwl2duEnVqLpVn5fwWExMlLEW4zklRVVRszkRvLctZW021dqZpn9VUT12dZAye6k2kaDYOR1RVy47b6jJt9UZakdf/Ko/wDKYYrMsfjYKGLuzuQi6pSdaMWMFhMNJyw9uMJNUdFQaE3zsbjfsqm2jrG2KtvqwlRZsOQlT1RkdFIeYdsccv4aVtnNp7I4yDWklIcbcbQ80tt5ttxLL8wxOWYqOLwrpcWtcklyxa5U/wDFaUj9xeEs42w7F9Vg+1Paudf4ajRbsH1i9OweONZsDAIXn935MzIpouqbVTrqcKyKOygrC6yiewmMidiMJbqXYK2Dbftu5DRJjKKUqLpOI4zwUcsWIw6rj5aO7fzXyuT5Yrkpplq0aaUuzw3iXjXZvOmFjp3185bFz7dnPormd2DsDMdqZlkGwM/v52T5flE9yyurmxcJb8mQsktttttoShiJCiR20Mx47SUMR2G0NtpShKUll+IxF7F35YjEScr03Vt/tq5EtSWhF4s2bWHtKzZSjbiqJL9v/U8cPE9QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACWfG3hNyE5UrlStW4kynF6+ScKyzrKJxUOHw5pIStUJuwWzJm201pC0m6zAjS3WErSbqUJUkzl8syPMc2q8JD+UnRzk6RT2V1t8yTpykfjc0weX6MRL+Y9UVpf8Ah1tE5vuQeTvs/wDcXSH4C6/+t5x+H+Uv7B/yGJ74FzX2ljtl9givinAfQu9kftD7kHk78xdH/wDGs4/QMPgXNfaWO2X2B8U4D6F3sj9ofcg8nfmLo/8A41nH6Bh8C5r7Sx2y+wPinAfQu9kftD7kHk78xdH/APGs4/QMPgXNfaWO2X2B8U4D6F3sj9ofcg8nfmLo/wD41nH6Bh8C5r7Sx2y+wPinAfQu9kftD7kHk77f/cXSH4D6f+t5x+H+Qv7B/wAph8C5r7Sx2y+wPinAfQu9kftEHOSvCPkFxS8jN2ljEN3F7SV7vrc4xWx9+4nKsTQ66mudmHHhWFXPdZYWtpqbFjKfQlRtd/YvtgszyLMcppLFwXdN0Uousa7ORp9KVeQlMDmmDzCqsSfeLXFqjpt2PqbIkiHJEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOxaB0plfIfbuFagw0kN3GX2hRnbF9px2FR1EVl2dd39glr6Zw6eqjOvqSRkp1SSbT9NaSPty/A3syxkMHY9Ob18iWtt8yWnwHNjMVbweGlibvoxXa+RdbNxWrdaYjp3XuJaywStRVYrhtNFpqqMXap5xEdPWRPnPJSjzVpZy1rkSnjLuekOrWftUN2wmFs4LDQwuHVLMI0XlfO9bfKzLMRfuYm9K/ddbknV/tsXIRcu/Ui4S47dW+P2u+6Buzo7KZU2KIeP5vaw0ToD640pEW0qcYm1diwh5tRJejvOsudOqFqT0MRVzibI7c3bniI70W06KTVVzqLT6U6HdDJM0nFTjZe61VaUvA3VdZ8z7zrgt8/aj6obG/Q4fHxTkP4iPqz+yfX5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8p9Ok9SPhNkV1UY/U74o37W9s4NPWMv43ndew7PsZLcSG09PscWi18JpyQ6lJuvutst9eq1JSRmPuHE2R3JxtwxEd+TSXmyWl6tLjRdeg/J5JmkIucrT3UqvTHUusk/tbWOI7m11l+r86rm7PF8zpZdNZMqQ0p+N46O6JaV63m3URranmoblQ3ySamJLKHC9qSEpi8LZxuGnhcQq2pxo/KudPSnyM4MPfuYa9G/adLkXVeToep8xh75AaUyrjxt7N9RZg0s7PEbd6NEsfBNiNf0UgilUORwEmtwih3dS81ISnuUplS1NL6OIWRYVmOBu5bjLmDvelCWvauSS5mtPgNTweKt4zDQxNv0ZLVsfKupnGxxHSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABqS9H/iYnVmrZHIPMa5TWebfr22cXjTYqW5WN62ZlKeiOsqWgn2pGcSmm5zntNKoLEI09qjcI9W4Nyj3TCPMby/5F5ebX5sP+7X0KPOULiPMPeMR7nbf8m29PPL/t1dNTuPqd8sS416GlUOL2hwtsbbasMYwxUcz83SU7aI7eXZclZJ7Y7lXXzkR4i+5LhTpbTiCUllzt7+Kc3/ACzL3btOmLvVjHmXzpdSdFztPkZy5Fl/v2L37irh7dHLnfIut6+Zc5j8GNGjgAAAAAAABsB9MLli3yR0JBx3JrEn9q6iYrsTy1MqV41jkFK1GJrFs1X4i1yH1WkKOqNMdWpS12MR5xXal5sj2ThbN/zPL1buv/l2aRlta+bLrWh86b5UZxnuX+5Ytzgv+Pcq1sT5Y9WtczWw4h6wHExG09WNchcPrvFz3T9YtvKm2CPxr3VqH5M2etSSIyck4VNlu2CD6oIoLswzNSktJHDxllHveE/MbK/5Fledz29b9V6eje5jq4czD3fEe53H/JuPRzT/AO7V00MtoykvoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABN7gDxWlcrN+0eM2cN9zWuInHyzaE1txyOg8eiPl5XHm5LS2nW52WT0Jho8JaXm45vvo/oDE7w9lLzbMI2pp+6w86b5tnTJ6NtKvkIvN8wWX4N3Iv+fLRHp29WvsXKbLbi4xvBsZsby7nVWMYlilNIsLKwlLYraaioqaGp6Q+6v+bjQoFfCYM+hESUIT0Iv5BtU52rFp3JtQswjVvUkl4kkZpGM7s1CKcrknRLW22YneZfJS05U76yzZ75TYmM97VBgFFNcJSqLDaglNVrK2kqW2zOtX1Oz5aUqWRS5biUqNCUdMOzrM55tmE8U6q1qgnyRWrret87NPyzAxy/CRsKjnrk9snr7NS5kRWESSAAAAAAAAASr4Y8lLXitv3EtnRzffxl1w8a2HUsEa1W+C3MiMVy200SkeLYVTkdmwhp7kEqZDaSo/DUsjlskzOeU5hDFKvdejNbYPX1rQ1zpchH5ngY5hhJWH6euL2SWrqep8zNr1Pb4znuK1t5Ty6zJ8PzGhi2VbMaJqfT3+PX0BEiM+lDqFMy6+yr5RH2rSaVtr6KL2mQ3GE7WItK5Bqdmcap60014U0ZhKM7NxwlWNyLo9qa8jMa3qA8WZHFXkDe4zWRn/ALOcwJ7MdaTlNOeCigsJbpSsbVIPvbcnYjYd0RZd5urjeXfWSfMJIYrxDlLynMZWor/jT86D5m/R6YvR0UfKaVk+PWYYNTl/Wj5sunb16+mq5CD4giVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADXh6SeoqPXPELFMtix4qsk29Y22Z5FZIjNImORYdnPx/HKhyWk1PSINZW1xvNNqMktPzZBpSRrUati4QwdvDZNC8ku9vNyk+XQ2kuhJV6WzOuIsTO9mMrb9C2lFLqq31t+BFkt3R0uS1M+hyOorL+jtY64lpTXUCLaVVlEc6eJFn105p+JMjOdPpNuIUhX8pCzXLcLsHbuxUrbWlNVT6U9ZCRlKElODamtTWhrrOYfu6cfPkVpv9mOE/kMcv5bl34ex6kfIe/vuM9rd9aXlH7unHz5Fab/ZjhP5DD8ty78PY9SPkHvuM9rd9aXlH7unHz5Fab/ZjhP5DD8ty78PY9SPkHvuM9rd9aXlKDfVm4QXtHnNHu/R+sULwG4x2HS5xRa7xhCGsYyankPMxr+VRUEJtEWpyCokx2TfbZNCJUNw31JU+13Z9xfkVy3fjjsBa/48o0koR9GS5aJamqKtNa060W7h7NYTtPC4q5/OUqxcnrT5KvlTr1PRqZ/vpL8I7y8zfId27w1iprBKfHpFHg1HsTFm1xMryC7eNiwvYlLfxlFKrcdq4jrJPOR/CckzUmytS2HOxwhkVy5fljsfa/48Y0gpx9JvW6PkitFaa3o1McQ5pCNqOFwtz+a5Vk4vUlyVXK34Fp1l+P7unHz5Fab/AGY4T+QxoP5bl34ex6kfIVH33Ge1u+tLyj93Tj58itN/sxwn8hh+W5d+HsepHyD33Ge1u+tLyj93Tj58itN/sxwn8hh+W5d+HsepHyD33Ge1u+tLynUKWjpcaqoFDjtRWUNHVx0RKympoEWrqq6I318OLAr4TTESHGb6/RbbQlCf5CHVC3C1BW7aUbaWhJUS6EtR4SnKcnObbm9belvrK2/Vp1Dj+xuIWW5dPYJOSagnVWaYvYIS2TzaJlrXY/kNY64ror3fY1Nkbq2yMu6REYV7ewiFZ4vwdvE5NO9L+rZalF9LSa6Gn2pE1w9iZ2MxjbXoXE4vsbT6muxsyGjHTRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2oenH/BHx6/udM/Oa+G38NfoWG+o/4mZjnX6pe+t8iKzvVF5qcmOPnI2lwbUOy3sQxaTqvGsifq2saxC2J24sMhy6FLmKlX1BaTSU5Gq2E9hOE2kkdSSRmZnV+Ks8zTLsyjYwd3ctO1F03YvS3JV0pvkROZDlmBxmCd3Ew3riuNVq1oSWxraVw/ekc6vnpK+o2tf0OFa+K8+9v+5D7JNfkGU+y/el9ofekc6vnpK+o2tf0OD4rz72/7kPsj8gyn2X70vtErOIPq5bYx7Z7VZyny9/NtY5M2zWvXrON0FfZ4BYm8go2QojYvSVz9xSdqlInxux2Qls0vMdy2zYflsm4wxdvF7ubT38LPRXdScHt81Kq2rXyrVRx+Y8O4edjewEd2/HTSraktmluj2Pqe1aWMQzLE8/x6tyzCMkpcsxm3YRJrb3H7GLaVkxpaSV1alxHHWvER3dFoMyW2rqlREZGQ06zfs4i2r1iUZ2pamnVPsKRctXLM3buxcZrWmqMZfmWJ4Bj1llmcZJS4njNQwuTZXuQWMWqrIbSEmr+dlzHGmvEX29EIIzW4r6KSMzIgvX7OHtu9flGFpa23ReEW7Vy9NW7UXKb1JKrM0/L71ctr5DtByt4sZdIwnWWMtSaxm9exygsLLYFgb5ePkTkXKKSxep6ZCWiRAj9jUhTZqekElbqWGMxznjDF3MXu5TPcwsNFd1Nze3zk6LYtfK9dFd8u4dw8LFcfHevy00q6RWzQ1V7fBtcU/vSOdXz0lfUbWv6HCJ+K8+9v+5D7JIfkGU+y/el9ofekc6vnpK+o2tf0OD4rz72/7kPsj8gyn2X70vtFj3pdc1OTHIPkbdYNt7Zb2X4tG1XkuRMVbuNYhUk1cV+Q4jCiTEyqGgq5pqbjWj6ew3DbUS+ppMyIysvCueZpmOZSsYy7v2lak6bsVpTiq6Enyshc+yzA4PBK7hobtx3Eq1b0NPa3sLMfUc/gj5C/3Oh/nNQi0cS/oWJ+ov4kQeS/qln63yMxXjEDTgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2oenH/BHx6/udM/Oa+G38NfoWG+o/wCJmY51+qXvrfIiij1rP4use/Uhhv51Z8KDxx+sR+4j/FMtfC/6dL72XiiVDCnFjAAAD2mI7I2Hr9x57A88zPCXZCiVIcxLKLvHFyFERJI31U86GbxkkiL6XX2D3s4nE4d1w9ydtv6MnHxNHlcsWb2i9CMlzpPxjL9kbE2C6y/nueZnmz0bp5d3Lcnu8jcjmSCaI2F3E6YpoybLt+j09nsC9icTiXXEXJza+lJvxti3Ys2dFmEYrmSXiPFjwPUAAALefRT/AIush/UhmX51YCLjwP8ArEvuJfxQK5xR+nR+9j4pF6/qOfwR8hf7nQ/zmoRfuJf0LE/UX8SKpkv6pZ+t8jMV4xA04AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANiHpV7Ix3POGWtKmolMKt9cqvMJymtS8lcmuso13YWsF15v2OIZtKWzjyG1dO0zWpJGZoV02bhPE28RklqEH59qsZLY6trtTTM3z+xOzmc5S9GdJJ7VSngaaOr744IcbOSeax9g7cxG3vsoi0EDGWJkLLslo2G6itl2M6LH8nT2UOMpaJNq+o1mk1q7iIz6EQ7MwyDLMzvrEYyDldUVGqlJaFV6k1tZz4TNsdgbXc4eSVtuupPS6bVzHFvuj+Dfy1yH9o+dfl0cPwfkPspevPynT8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIPuj+Dfy1yH9o+dfl0Pg/IfZS9eflHxFmv04+rHyD7o/g38tch/aPnX5dD4PyH2UvXn5R8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIPuj+Dfy1yH9o+dfl0Pg/IfZS9eflHxFmv04+rHyD7o/g38tch/aPnX5dD4PyH2UvXn5R8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIdq0NwS418a80lbA1Jh1rRZRMoJuMvTp2XZNete6LCZXT5bCIdvZy4iXHZNUwfidnekkmRGRKPr3ZfkGWZZfeIwcHG64uNXKT0Np6m+ZHNi82x2OtdziJJ2066ktKrsXOcm9VTZOOYFwz2TT3EpgrnZCqXCsVrDfbRKsLB+7rrWwfaaNXirj1VNWvvuqSk0kokIUZG4nrx8WYq1h8kuwm/Pu0jFbXVN9iTZ0ZBYnezOEorzYVk3s0NLtZjwGMmkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB3vj5yY3Fxhy9zMdRZS7SyZrbEe+pJjRWOMZRCjKdUxDyGkeWmPNTHN9zwHkm3KjeKs2HWzWozkMuzTG5Ve77Bz3W9aemMlsa5eZ61yNHJjMDhsfb7rExqlqeprof7J8pahC9c7cDcZpFho/W0qWSUk8/Du8ngx3FElJKU3FedsHGiNZGZEby+hGRdT6dTtkePMal51i03zOS8pAPhTDV0XZ06Efq+/R2n8h8A+s+Rf1cfvx7i/w9v1mfnwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7Efmmeuft9yM6iv0fraLLNKiZfl3mTzo7azQokKcisu17jqUrMjMidR1IjLqXXqX5LjzGNebYtJ87k/Ifq4Uw1dN2dOhFWfInk7uHlHmDWY7byT3o9AZdiY/QVrCq3FsXhPm0qTGoKYnXkRTlrYQp99xb0qQbaPFdWTaCTVMyzTG5re77GSq1qS0RiuZc/K9b5WT2CwOGwFrusPGietvS30v8AZIj+I47AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmTwx4dX/MrMcvw/H81p8JfxHGmMlfm3FXNtGZjL9pGqyistQpEdbTiVyCX3GZl0Lp0E3kmS3M6vTs27ituEa1abrppyEZmeZRyy3G5KDmpSpodOSp7Dmb6fmzeG8PEr+8va3O8Nyp6RV/FVDWza+JTZGylySzRWseY9IcZesa5pb8Vzu7XiZeSREbR93tnfDuKyWMLk5K5Yno3kmqPY+laV0M8sszixmTlCKcLsdNG61W1dD19RAYV4mD2OvMQe2DsDBsBjTWq2Rm+Y4ziDFi+yuQzXvZLdQqZqa8w2ttb7UVc0nFISpJqJPQjLr1HvhrLxOJt4dOjuTjGuzeaVfCeV64rNmd5qqhFunQqlh/Lb0xcx4m6lVti82pjOYQU5LS417nqsftK2X41yiatuV5mZMfZ8NjyR9ye3qfcXQxZM44WvZRg/fJ3ozjvJUUWtfWQ2XZ7bzDE+7xtuL3W6tp6uoq/FUJ4AAAAAAAAAAu3wv0UNiZnh2J5hH3phcFjK8aoslYhPYpeOvQ2b2ri2jcV11FilDjkdEokKURERmXUiF6s8DYi9ZheWIglOKdN18qrtKtd4otW7krbsybjJr0lyOmw9N9xZsn5+4P9UL78pD1+AsT+Ih6r8p5/Fdn2MvWXkPMZR6HW96+CuRiW29W5LMbLuOBbMZPjBukXf3IjymqzIWVPH0T2k54SDMz6qT09vld4Ex8Y1s3rUpbGpR8NJHpb4qwrdLtu5Fc1H5CrbevHTcXG3KmsQ3Dhk7FbGa1Jk0003YtjR5DBiv8Al3Z1Dd1z0musGUKUg3GyWUiOTqCebbUokiqZhluNyy73ONg4Sep61JbU1ofjXKkT+ExuGx1vvMNJSS18jXSv2T5DiQ4DqAAAAAAAAAAAAAAALAeD/ADMeaLmX2cTNa3XWFYZIr62xyOXSuZNPnXVkw9KarKqgZt6PxiixGUuSHXpbCEE82SPEM1kixZFw7ezvfmritWINJypvNt8iVVqWurWvlIfNc4t5ZuxcXO7LTStNG1uj8RzrmTw+zThxsauwrJb2sy2kySoO9xHLauM5Wpt4LEg4U9iwpX5Mx+ntK+WkicaJ+SyppxtaHlGpaW+bOsmv5LiVYuyU7clWMloqtTqtNGulrVp2e2WZlazKy7sE4zi6NPTTZp5U+oiGIYkgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwvQz/xt3R+qyB+dtYL3wH/e3/ul/EVXir+1tfePxGgTcut9c7/wbO9E5wuLPjX+MwZFrXsOx1XdAxbS7RrFssgtupd8pMiXmOyHYLykKbVIgrSZKSS0nomNw2GzCxcwF+jjKKquVVruyXOmnR7UVDDX72DuwxdrQ1LRsdKVXY9PSYn+QOjsx457ay/Umbx1ptMZsFIg2ZRnI0HJKGSZvUmS1RLU4S6+4gmlwiJazZd72Vn4jSyLDsxwF7LcZPB3/Si9D5JLkkuZrsdVrRp+DxdvG4eOItejJaVsfKn0f4n9eNf8Rmgf116r/PqiDK/1PD/f2/40Md/ZXvup/wALNMPrL/wbOfrTwb/QXw1DjT9Ef3sPlKPw1+p/7cvkMmYyE0I6RrzTu2Nty3IOsNbZxn8hl1DMr4Sxi4vWIK3CSaTsZdfEfiVrfaojNb620ER9TMiHVhsFjMY93CWrlx/5Yt06WtC6zwvYnD4ZVvzhDpaXZtOg5lxH5P6/rFXWYaD2vS0zTUh6TbO4VeSqyCzFShbztlPgRJUWsaShfUlSFtEskqNPXsV06b+TZrh4797D3lDbutpdLVadZ42sxwF6W7bvW3LZvKvVXX1EdhGHaAAAAAbb7zJ73CeBdvmeL2C6nJsR4i2GT47atNR5DlZe0OmnrWosG2JjMiI8uHYRG3CQ62ttRp6KSpPUj3S7duWMglftOl2GDck9jVuqenYzLoW4Xc2Vq4qwliEmtqc6MzAfebc6Pn/dfVPXn6IDK/inPvxEvVh9kvf5FlXsV2y8p0rWHq4cxsGyGLYZbmVVtbHfMNKssXyrGsaqykxiUkpCa+9xelp7atmOMkZNrWqSw2v6SmF+0j6cJxhnWHuKV6avW+WMoxXY4pNeFcx4Yjh3LbsKW4u3Pkabfam2n4Okvv5c4ZhPMDgpkeV10BM0p+qmt46xlyW4zVpV3ddiy8tqo7b8okogSrOvU7Vy+5SCJqU6lRp6dydBzixYznIZXYqtbPew2pqO8teqq819LKjl127luaxtydKXNyWxqtH001roRj7xzC8xzA5acSxPJcpVXkwc9OOUVpdnCKUbpRjllWRZRxikHHc7O/t7+xXTr0PpjVqxfv17mE5017qbp00NHuXbVqneyjGu1peM+tXau2Xb5ZHwKr17m9hnEpKHI+Hw8VvH8neacSlxDyKJuCqzNlTayV3+F29p9evT2j7jhMXO8sPC1cd9/N3XvdlKny8RYjb76U4K19Kqp26j2myuNW/9O1Ma/wBoaf2BhFDLlJgs3l9jdhFpvPOEamYTtqTS4EeZISlRtNOOJcdJCjQSiSrp74rK8xwUFcxdm5C23SrTpXZXUeVjHYPEy3LFyEp7E9PYcerKuzurCHU01dOtrWwfRFgVlZEkT7CdJdPtbjw4cVt2TJfcP2JQhKlGf4CHFCE7klC2nKb1JKrfQjqlKMIuU2lFcr0IktH4R8vZdSm6Y43biXBXEcmoJWDXbc9yO2lazNuodiot3HnEo6ttJYN13qXYlXcnrKLIc5cO8WGvbtK+i69mvqpU4XmuWqW479utfpKnbqI85Ji2T4bbP0OX45fYpeRSSqTTZJUWFHbR0r6khT9daR4sxol9p9DUguvQRt2zdsT7u/GULi5JJp9j0nZbuW7sd+1JShtTTXaj+2O4bl+YLlt4limSZQ5ASyucjHaK0u1w0SDcSwuWmsiyVR0vqaWSDX0JRpPp16GP21Yv369zCc6a91N06aH5cu2rVO9lGNdrS8Z+e/xjJMTmorcpx68xqxcjImNwL+pn001yI64603KRFsY8Z9cZx1haUrJPaakKIj6kY/Llq7ZluXoyhKlaNNOnWfsLlu4t63JSjtTT8R8MeZ9nv06n2mutTco1rn66hcErNNqnDciVWqrVMeaTYJnFXHFOCcU/EJ0leH4f0uvT2jp9zxm7v91d3KVruypTbWmo8PecNvbveQ3q0pvKtdmsm5wC5k7n4vzc3qcA1TO3Rh+THW2mQ4nXR7pqwqbeIl6JBuod1SU18uuTMiqWy82/Eebf8Js0GhSFd07w9nWOyt3IYey79mVG4qtU9SdUnSq0Oq06CLzjLcLjlCV64rVyNUm6Ua2UbVe05nzi5M7Y5ObVgZJtHCH9Zox7H2ajE8BkRLWM9T08mS9MkT5ci5iV820n201SjXJKOw0ptltCGy8MzVy59mmMzTFq5i7btKMaRhR6Ft0pNtvlotS2HvlWBw+Bw7hh595vOrlo0vZorSmwhgIMlCReHcROUGwKlu9xDQe1bqlfQy5FtmsNuY1dOafR4rT1dLnRYrFiwpvofewpxBEZdTLqXWTs5Nm2Ih3lnD3XDbutJ9FaV6jiuZlgLMty5etqWyq8NNRznYGoNraolphbN1tnOASHJDsaOWX4tdY+zNdZNXf7vk2cOPGsWjSg1JcYW42tH0kqNJkY5cTgsZg3TFWrlt1p50Wq9Dao+o9rOJw+IVbE4T6Gn201Hi6mntr+xjVFFV2N1bTVLRDq6mFJsbGWttpbziI0KG09JfUhltSzJCTMkpM/wEY8IQnckoW05TepJVfYj1lKMI702lFcr0I+9kOvs+xKIzYZXhGX4zAkSUw2JuQ41c0sR6Wtp15MVmTZQozLklTLC1kglGo0oUfToRj1u4bE2Y7163OEW6VlFpV60fEL9m6923OMnzNPxHkB4Hqe4stY7Kpqp29t9e5xVUbDTL79zZYnfwapliQttth52xlV7URtp9x5CUKNZEo1kRdTMh0SwmKhDvJ2ritrlcWl20oeMcRh5S3Izg57FJV7Knhxznse9qtVbQvK+LbUmt89uKqa2bsKzqsPyGwr5bRLU2bkWZErno0hsnEGnqhRl1Iy/kHTDB4u5FTt2rkoPU1GTT66HjLE4eEt2dyCkuRySfjPDOtOsOuMvNuMvMuLadadQpt1p1tRocbcbWRLQ4hZGRkZEZGXQxztNOj1nsmmqrUfzH4AAAAAAAAAAAAAAAC8L0M/8bd0fqsgfnbWC98B/wB7f+6X8RVeKv7W194/ESB538psk4meozqLYFeubOw+x4+YdRbIxeO6Xh5FiUnZ+1zkKaYcUlg7ujcPzle4ZoMn2zaNaWXniVI5/m1zKOJbOIjV2Hhoqcdsd+54VrXZqbOPKcvhmOS3LLorqvNxex7sPA9T7daRIr1C+LuM819AUG6dOOR8m2BimMnlOu7OlUTidgYRZtNWlhihpNKXH5jjRHJrW1kTrM4nI/ag5LvSS4jyq1nmXRxuDpLEQjvQa+fF6XH5Y7Ho5WcWT4+eV4x4bE+bZlKkk/myWivyPm08iMz/ABuQtvkdoRtxKkLRu3VqFoWk0rQtOd0RKSpJkRpUky6GR+0jGYZYqZnh09ff2/40XnG/2V77qf8ACzS/6y/8Gzn608G/0F8NP40/RH97D5Sj8Nfqf+3L5CiD0+uIv73W7Cx2+dnQtaYVAayfYc+vcJiXIhKlJjVWMwZRko4s/I5aVp8UkmpqKw+tJktKOtA4dyf84x3d3KrC21vTa8EVzy8SZbM4zH8uwu/CjvzdI18L6vHQ0DcqOamjvTyxjFNT4FryutspeqPPY5rLF3oWMUOO0JvOx27rJbFqJPfinZzGXTaSmM/KnONOrcWj+kVombZ5gOHLUMJYtp3d2sYRpFJbZPTSr1aG3pKfl+V4vObksRdm1brpk9Lb2Lo6aIipov1tMdyzNarF92ati6+oLucxBbzrHcmft66gdkqSyy/kNPZVkR9NSl9RG/LZlKVHb6qNhZEZlE4Djm1evq1jrSt25Om8pVS+smlo2uujYSGL4XuW7TuYW5vzS9FqjfQ6vTzeE/l6rPBPC7PX9nyj01j9dTZDjhMWezajHmo8WmynFJaiS7mkWDEQUVN5TvPNuy3WSQmXBU4851cZI3Pzi3ILE8O81wUVG7DTNLVKP0qbVrb5VV8g4fza7G8sBiW3bloi3rT+j0Pk2PpM3gzMuwAAAbW84hTbP08cvrq6JKsLCw4YZBCgQIUd2VNmzZWj5bEWJEisIcfkypL7iUNtoSpa1qIiIzMbjiIynw7cjFNyeCkklrb7p6EZfZajnEZSdIrEqr/1mPH7FNy/KTZv1Cyr8lDGfcMd7G76kvIaR73hfa2/WXlOk6x4d8mtuZFBxzENLbB8SZKbjP3V9jFzjeL1KVLaJ6TcZHdQodVBZjNvE4pBuKfWj+jbWoySfThclzXGXVas2Lml63FxiultJfLsR438zwGHg53LsNHImm30JaTVXut+j4m+n7k+Oz7WJI+z3j63q+mmTlLJq/yyTiLeE0hFHStmQ8VrfykOrabNCksmsyNCUmpOtY128o4enbbX8rD7ib5Zbu6u1lAwqnmGbxmk/PvbzpyKu8+xFXHoR/2i5K/7l1b/ALdngqfAP9TFfVt+OZPcWehY6Z/9Javv/dHGfhdZZRvDY5KLYm2Cr4MWHTQIltn2VV+HU9bWR6LH2X3oDUPHqk1JkPuSJDEZMqZ1ccNSmUFbsxx2V5JKWOxP9xdotCrOSikqLVoWt1aVXpeor+DwuOzNRwtn+jb26IqrrV877aLpKbec3qRai5e6GVqDX+DbRpsxlZ5iNxWNX9Tjz0KzahHZRnoUZdDklvPOzdentEy0UcydMzIlEroR0rPeJsHnOXvBYe3djfdyLVUtNK6NEm66dhZcqyTE5bi/eb07btKDTo3o7UtBZNxh426Z9OjjtZbg2w3U/aJAxor/AGZnZwkWFnWOzksoYwDC1OEb6IyJclqAhLJtKtJqvEd7UG22zZ8qyzBcN5a8Zi6e8KNbk6Va/wAsebk0ek9L5oTH43E5zjVh8PXuXKkY8n1n4+ZEG7n117lORSFY9x3rHcTbfNMVq5z+UxkUuKnuInpEiDjUmtrn3/Yo2ktykte1PiOfjCBnx9PvH3eGXc889Pgi0vCSseFI7nn3n3nNHR46+In4hnjV6r3HCfZs0yqy+gLm00SwsokIs91PmjMcpMXtmw3VefpJiX23vCJw4lhGWZLQ2+gyZsNMr4tyxySpNVVXTfty6uTl2Nc+qIrjuH8ao1rF6dHozj5fCnza6SfTxzzIOJnO5rWOePFUMZDe3+h89jKlPJrGb47XyuOWLPipYYktpzGsitR5TiE9IM11aDJLhkqjcOX7mUZ/7piPNUpO1PTorXzXz+ckk9je0tGc2oZjlPvFnS4pXI7aU0rsbqtqJ4euFpMp+Naq5A1cM1S6Ce/rLLZDMdtTh09uU2+xSTLkJ6PNxK22Ynsp7u5Hi2KSI0qV0XP8dYHes2sxgvOi9yXQ6uNeh1X+oieFsVu3LmDk9ElvLpWh9qp2FFHH/Vc3d+7NYangk53ZzmVNSznmVpbchUi5KZGQ2SVqSsi910MeTJ/FUZk17CM+hHQcuwjx+PtYRf8AuTSfR859Sqy2YzELC4W5iH8yLfXydroakPVN29B0Xw4vcNx426202gmBqHG4TCVKRExqRDUrKiSg+vSGjD4D0DqauqVzGz9o1bivGRwGSys29E7tLcVzP0v3U11ooWQ4Z4vMo3J6Y2/PfTyfvUfUV2ehZ/iTv3+4+If8+shW+Av7nEfUj42TPFf9Gz9aXiRHn1kv4zJv6ssE/wA1uI3jX9a/2o/KdvDP6b/uS+QmX6THBTFJuJQ+U24aGvvpVvJlfZNjd7CJ+tp62pmPQ5Od2EKc35eVZTbCK4mt70Kbjx2fNIUpbzSmZvhDIbTsrNsZFSlJ/wAtNaElo3mnyt+jsWnl0RnEOa3FceAwzaS9Nrlb+b0Ll59HJp9Vvv1r6DC88ucR0tq6HsGix+wk1sjOchySTUV19JiLNiQ7j1RAq5Mg6lMhCvBlvSCVJR0UTKEmSle2YccWrGIlZwVpXIRdN5yonTYkno529Ow88JwxO7ZVzE3NyclXdSq10uuvm5CSPFrm7o71D6TKNL7K1nApcpXSSLC119kcqNk+OZNSNvKiSLPGLhcOsmJsqkpDTjiDjxpcQ3ScjuuE2txuTynPcBxHbngsTaUbu7Vwl5yktVYui0rl0Jquius4swyvFZNOOJszbt10SWhp7GtOvpafKUY8ldQ3Xp5czsbsMSenS8boL/Gds6ylvSF+bn4qi5cVJxuzmKZNpyTElVsysk9e/wAeKaHXEkT/AGFQszwc+G87hOzV2oyjchzxrpi31OL2qjestWBxMc5yyUblO8acJdNNa8D6egv+9RPEqXkLwKzfKsWejW0SrxfHN64bZoJEplypo47OQTrGO5HU8j/WsCnWCUuIUaCJ3qauzqY0PiOzDMeH7l2004qCuxevQvOb64V7SoZNclg82hbuaG5O21zvRT1qGVTj3rF7c+8dU6sabWtrN86x6jsjQ4ppTFG/YMuZBMJxBktPkaNqQ99H6X837Pb0GS5bhXjsfZwnJO4k+ivndiqaBjb/ALrhLmI5YwbXTyeGhte3prmp25pbaumGlRG38o1vb0cOG0tpK6p+0rbGLith5YjLwo8a5rCWyaiJClRVJLr2q6bjj8NDGYK7gtFZ2muiqai+1aOgy/C3pYfE28T9GafTR6fB4zCazV2MizapWYMpdu/ORVtVpMOFOXYuSCiIglGUknSlKkqJvwzIld/s6dRgahNz7tJ77dKctdVDV3KKjvtrdpWvMbMtoZBF4P8AAeX5CVHZuNUaco8KxySpLi0Ttgzq2Di9TPU1E8J1/wA1l1iU1/wzb6N+IrubSRqTteLuLIuH3utb9myox550UU9G2Tq/kM0sQeaZsq+jcuuT+rWr8CojGCta3FqccUpa1qUta1qNS1rUZmpSlGZmpSjPqZn7TMYk3XS9Zpp/yAAAAAAAAAAAAAAAALwvQz/xt3R+qyB+dtYL3wH/AHt/7pfxFV4q/tbX3j8R431vv4rtff8Ab1in/UjbI8OOv1e3/wCNH+O4evC36fP75/wwOnekDzTPFb1vivsq57cayaY7I09YzT/mqXKZbr0mzwx2UtXRqvydxZvwEq6JRYktpPcuWgk9fBued1P8pxUv5cn/AC2+SXLHoetc9Vyo5+I8s34/mFhefFefzrkl1cvN0HsObnC8tU8xNCcjdd1TiNe7J5BauTnVbBiF5PD8/m51RvLsi8AukamzZwlvdVp7GbMnUd5FIjtJ989yT3TOsPmeGX/Hu4m3vpL0Zua09Ev4ulI88rzP3jLb2CvP+dCzPdb5Y7r0dMfF0Ml96y/8Gzn608G/0F8JjjT9Ef3sPlI7hr9T/wBuXyHHfQ0pYDGkNz5E2yhNpabVhUsyQSEEt2BQ4jUzq1lThJ8RSGJGSSlJIzMkm4ZkRGZ9eLgOEVgL9xek71OpRTXjZ08VSbxdqHzVbr2t18SKavUVyOzybmpyBl2kh19ddmqschJcdU4iNWY1WV9JXx2Eq6JZaKPBJXakiLvWo/aZmZ0viW7K7nmIc3qnuroSSRZclhG3ldlR5Y1622yFQgiUNm/Fd09p+ndrqDmDiLFjItBW+H3Dln/rzcqph1FziHWeTy2zlIXVQk+IS1kai69Vf+IbZlT974dtRvaVLDuLrpqqOOnqRmWPXu+cTdvQ43k1TbVPxmMgYmaaAAAG6HFc5rtYcTcc2VcRJs+o15x3p85tYNYlhVjNrsS1rHv50SvTKfjRlTZEavUhonHG2zcMu5SS6mW9W78cLlMcVNNwt4dSaWtqMKunPoMpnalfzB2I0Up3nFV1VcqFb334vHP5U7r/AP08F/TQVn47yz2V/sh9om/hXG+0tfvfZPIZL66OsI8OWeH6Jz24nl0KC3kuSY9jcNzqj6Tkt6rayp5nw1/gQhtzvIvxk9fZ43ePMIovucPclLk3nGK8G8ekOFMQ3/MuwUeZN+OhTzyz5y7q5e2kNGczIOP4NSS3JmO66xkn2MfgS1k40m1s35Djs7IL0ojnheYkK8NpJr8uywTrpLpmcZ9js5klfajh4uqhHUud8rfO9XIlVlky7KsLl0X3VZXnrk9fQti/Ztll/oR/2i5K/wC5dW/7dngs/AP9TFfVt+OZB8WehY6Z/wDSRa9Y6+tLXmXZ1c6Ut6BjGvMHqqaOal+FEiTYkq/lEhBqNBOPWVu8tSiIjUXaR/ikIrjS5OedOEn5sbUUuur8bO/hqEY5apLXKcm/F8hErhRR12R8t+OdTatG/Ad27hUt5jqRJfVV3Ma1YZdJSVEuO7IhIS4np9JszLqXXqIjIrcbucYaE9Me+i+x1+Qkc0nKGXXpR193Lwqhrl5e6a1LvnVDGvN07JttZYTLyuotHrSnynEMSfurGqi2b0ChkWOZ0t7XPxFuLOYbLTSJCnYaFEsm0OJXsGcYLCZhhPdsbdlasOadVKMatVoqyTVOXRp0dJneXYnEYTEd9hoKd1Rao03StNNItPm2aSsH7rT05P8A7R5l+23RX/x6Kt8J8N/irn/y2vsE7+f517CPqXPtExuJmlOIPDdWclrHkXHvWNgFj3vmHnm29XWkSK9jZ3HkZNW1j9RjHl5DyLt1LynDe70pQREnt9s1lGAyfJe891xO8rlKqdyDXm1pSijt09RG5hisxzLc7+zRwrTdhJa6a6t7Cg31PpGNwObOaZprfJ6q0j5BX4FmMe5xS7g2kSBkMSgrquQ5Dn1SltR5qJ1CUpZeK44l5019xdxITn3FTtwz2d/DTT3lCVYtOjSS0Ncvm16S25CpyyuNq/Frdco0apVVry9NDQLbLgc/PTwlSYrMSVf7L1QcxiOkvGRXbaw9Xj+UbNlKH2kR8/x02SNKUrXGV+IaV9h6HPd4h4dbVHO7Z7LkfJNdhUI72UZxR13Ldztg/wDtZU96JmknMh3DsLd1tEWmDrDH04pj5vxkkR5dmhPtWD8d5wjW3Ip8YgSGHkJIldtojqoi6pVUeBsC7mMu46a821HdX1pa+yKo/rFg4oxW5h4YWL03HV9C1dr8Ry/1j93Fsjk1D1rWyEvUGj8eRRK7O5SV5hlSIN7lLyFmrtNLMJushrSSSNL8NzqZ+wi5ONMd7zmiwsf6diNP9UqOXg3V0pnRw1he5wLvy9O7Kv8ApWheGr6zt3oWf4k79/uPiH/PrId/AX9ziPqR8bOTiv8Ao2frS8SI8+sl/GZN/Vlgn+a3Ebxr+tf7UflO3hn9N/3JfIaPNVYjjcPiBr7CHbuXhuLr4743QTMnhz6ytscdrJ2u4kSwyRi0tocunh2cBuQ5MKTKjux0Pp73G1I7knpeEs245Pbsbzha93it5NJxW5StWmqrXVqldaKViLk3mM7tFKffN000b3tVFpo9VFpKs/utPTk/+0eZftt0V/8AHoqnwnw3+Kuf/La+wT/5/nXsI+pc+0di0Fwk4K8cdsYtuLA+TlzMybEjtvJQMi3NpyVQzmbqksaGbGtYlTiVLOkxzh2a1pSiS10eQhRmfb0Pty7IsiyzFwxuHxUndhXQ7lujqmnWkU+XbrObGZrmuNw8sNesJQlTVCddDT0Vb2bCLnrY2+tM4xzQuXYdm2H5Pd0d3muOT2MZyeku5JVV3Ao7OM7OjVj8x5DESXRrJpaltpSqQsuizURoiuOZYa/aw96zOEpxlKL3ZJ6Gk9NOjwnfwvG/auXrdyMoxai9Ka0ptcvT4CZPpR7Nhbv4YlrbJlKspWtpmQ6qvI8lLJKm4jbRV2WP9Cb7kKhIorpda2akpWfkFdxK/HXNcJYpY7JPdrul2m7b54vSuqj3eojOILDwuZ99DQppTXTqfhVesrr9LLjjPoOdm2mr+IbzfGiPnFCUqYx0d+KrC7l4NSyUN9PCIrDHm7WQ26RqSaUpNHUlEoq3wplkrWf3lcWjC7y0/Sb3U+uO8yZz7GqeU2tx6b+6+pLefY6E9OP3Kj409TzlBq5yeh7HJmJVOGYklDpqbReaNffauoSEKcNC3pNnlORPqW2RfzcdKTJXTuFgy/Nu/wCKcVhG62txRj02ta7ZT7CJxmA7rIrGIp5+82+ierwKPaV9VXFbt9YV/XqqhfwfX7Jk786Gskwm8b93FsyvQgjNtb1ajMJDFR4aSX9LqhXVBLWK7DKf/wBn7vu/yFc77mpTfXVv0j/gTEsw/wDzfe1/muHd9dd3t3dJIX1xdzeUodRaCrJna/cTZu0MsjMzPDdTXVaZWO4gxLiN/TkQrGwlWjxeIZNk9XoUSVKSRtyHHeN3bdnL4PTJuctPItEarY3vPpj2cfCuGrO5jJLQlurpel9ip2mdAZsXQAAAAAAAAAAAAAAAAC8L0M/8bd0fqsgfnbWC98B/3t/7pfxFV4q/tbX3j8R431vv4rtff9vWKf8AUjbI8OOv1e3/AONH+O4evC36fP75/wAMCnmFNm1k2JY10uVX2FfKjzYE+FIdizYU2K6h+LLiSmFtvxpUZ9tK23EKStC0kZGRkKZGUoSUotqSdU1rT2osjSknGSrF60bA+AfKrHeaGimqXPk11ltHATo67Y9LLQylVxIq5UewxbYcGM0TSW0Wk2rbkKUylvydtGc7CQgmFK2bh7Nred4Dcv0eKt0U1tppjNdNK80k+YzfN8vnlmL3rVVYnVxeyuuPVWnOn0nPvWX/AINnP1p4N/oL4c3Gn6I/vYfKe/DX6n/ty+Qgb6JW+qbGc02NoDIZ0WC7sJuBmOCqkLaY89kWPRJMTIqRpxayVJnWFCpmUw0RexuufPr1MiFf4GzCFq9dy640ncpKHO0qSXS1RroZLcUYSU7cMZBN7nmy5k9T7arrR8T1ZeFWx6/cVxyK1xid1l2C5/Er5eaFj8J+1m4fltbCi1EmRPrYbTs1uhvYUNiQiWlLjTcvx0PG0RseL8cX5HiVjXmWFhKdi4lvUVXGSVNKWmjVHXbWtNFfrh7NLDwywV+Sjdg/Nroqnp17U+TZTnKvdD8ZNz8jcwrcR1nhdxYlLnph2mTya+fHxHF2EOITNn5Jf+WXCr2ILa+5TXVUl1XRtptx1SUKquX5VjsyvKzhoSabo5NPdjtbepU2a9iqT2Lx+FwVt3L8ktGhV0voX7I1Pcnc0wzg/wAE5mI1tk2mdVazj6b1szJUhNlkGVWGPOUaLfy3iEbrsVJyLeZ29EJS0si6dySPWM0v2MiyF2ovzo2u7htcmqV8cmUHA2rua5qrkloc9+WxKtafIjHIMWNKAAADajsX/wDnJnf/AGT5P/0KnDcMV/8Azdz/AMGX/wBTMwsfrUP/ACl/9hiuGHmngAABf16Ef9ouSv8AuXVv+3Z4NC4B/qYr6tvxzKhxZ6Fjpn/0kQfV9/jbzP8Aubr382owh+Mv1yf3cPESPDn6XH60vGQE1Nn03Ve0ddbLr0uuzMAzfF8wZjsu+CqX8PXUK1cgqX+L4U9qKplxKuqFIWaVEaTMhXsHiJYTF2sVHXbuRl00adOvUTGJsrEYedh6pwa7VTwGubmjqODzj4cOFqedAyKwsI+Obb1RKN1DUe4sYMKSpquJ155hqBYXGPXE6AkpBoTGlvkl7s7VmnYc7wcc9yamEalJqNy29rXJzNptadTekzrLMS8qzL/kJqKrCfMv8GkzIneau2VjOUJwnIdf5pS5i5Ifis4vZYzcxL+TIjGvx24lU9DTNlm2SDMzbQsu0uvXp7RjtzCYq1d7i5buRvV9FxdXTYqaeo0WGIsXLfewnB2tqap2l4XCf0lMczfVk3PeV1Tm+J3d/Nak4liMO3Ti9tRYvFjLNyxyuFLrJEmBZW8l01JivdjkaOwhTiUrdUhF7yPhC1fwjxGbxnC5J+bGu61HbJU0N7HqS2sq2acRTtYhWcvcZQitLpVN82nUtvKymPkBB1TVbm2JU6PesZeqqjIX6fDrC1sW7eVawKphivlXSbJpphEuDdWcZ+XFUSE/6q82Rl1IUnMY4OGOuQwFXhIypFt1qlobrypurXNQs2DeIlhYSxdFiHGrSVKV00pzLQ+cvL9D/efm6faPHa3mGp+ofb2hhjLz3eo62eqFQ5jCjNqaLwWINiVdISgnFEpya8skJ6LUq+cC4/et3ctm9MXvx6Hokup0fWyqcU4Sk7eNitD82XStK7VVdRabQ4XrbhPpve+cQmyaoTyja2+chQRJbcem3Lj9nCx+EajJS/Agw4dbDQZ9VLJJfhUZnbLdnC5Jg79+Oi3vXLsul6aLqSSICd2/meJtWn6e7C2urRXxtmKvM8sus9y/Kc4yN8pV/mGQ3OT3UhPidjtpe2EiznrbJ5151LRyZKuxKlqNKehdT6DD796eIvTxF3TcnJyfS3Vmn2rcbNqNqHoRikuhKhdx6Fn+JO/f7j4h/wA+sheuAv7nEfUj42Vbiv8Ao2frS8SI8+sl/GZN/Vlgn+a3Ebxr+tf7UflO3hn9N/3JfIXc8E9iYnyr4L4/hFrOTPl1mup+g9l1jjpvWEZELHHMTZfmdykPPlkGIvR5aXuvRxbziDWbjbnS9ZBibObZDGzN1atu1NcuhbunpjR9ZVs2s3MvzWVyKonPvIvrr4HoMuPIHjHuDjbmd7iexsQu4UGssX41TmKKqb8JZRXeOtuvuKS7Jtde+xYsklfg+L47CzNp1KHUqSWVZjlWNyy/K1iYSUU9EqPdkuRp6tOzWtT0l9wePw2OtK5Zkt5rTGulPlTWsm36f3pwZPyIyublO7cVzTDNK09ZLJqU+1KxS6zPIJTRNVsTHDtK5b8inriWuRKmttmz4jSGEqUpbhNznDvDN3Mbzu4+E4YGK54uT5KVWpa29XJtpFZxndvB21bwsoyxTfSorlrR63qS69hzT1HtHcdOOe18d1PoqRkky6p6B202Y5e5Cxfor7K6VDfxujb8GHDVBsYtQ0uXIQoj7mZ8c+vsMhzcTYDLMtxccJgN7vIxrOrrRum6uZ00vmaPfJMVjcbh5YjF03G6RoqVprfRXR1M7T6Mu5kYDyXt9ZWUtqNTbqxR6sjJc8VJOZjhpS8gx0jdI/AbJymdt2Ek4RG48+2lCiUZIc7eCcasPmcsLJ0hfhT/AFRq14N7rp18vE2G77Aq/H0rUv3ZaH4d00E2GI4PxmRyx5KmiO29mkKLsnJ0JjEg/A1trpmthVhONJKRJXYWkabJSgjPrIsF9v0lmNElZw+WLF5norNb8v8ARCiXam+llPVy7jvd8FyRe6v9Uq18S6jIrxk3XY615Was3Xf2aVvx9nRbXM7eWpMcnajLpsiqzqe8pjwGWVvUd7NWfQiaJR+1PZ1SMeyrHSw2b2sddenvayb2SdJPsbNFx+Fjfy+5hYLR3dIrnjpiu1I2Sx9J4w1yDn8iENM/FM/UlfqjvQnqaqqNlczKXpRn+J4z61x2u8uq1NspSZ9qUkNpWBtLMHmK/rOyrfVvOXk7DNXirnuawf8A7aub/XShkG587qXvjldtrMWJXmcfqr53BsP7DbVHLGMKUujiSoq2+prj3c2NIsiNSlK7ppl7CIkpxviHHe/5vevJ1txluR+rHR4XWXWaNk+F90y+3bfptbz6ZafAqLqIciFJMAAAAAAAAAAAAAAAACcPBnmZ+5fm2aZj9m/2k/F+Kx8Z93fGHwd7u8C3i2nnfOfC2Veb7vLeH4fhNdO7u7/Z0OeyHO/yS/cvd13u/DdpvbtNNa+jKpFZrln5najb39zdlWtN6uim1Hxub/LX98ra+P7P+z/7OPcWvKnA/cfxV8X+a915JlmQ+9fefw3i/geP8UeD4Hl19vgd/iH39qPPPc4/OsXHFd33W7bUKb29qlJ1rux+lqpyaz7yrLvyzDuxv79ZuVaU1pKlKvYQ3EKSRILjFyNzbi1t3HtrYUZTFQFHX5Ljb8lUWvy/FJjrKrjHJz6WZPlfNIZS5Hk+E6cSW008SF9nYqRyrM7+U4yOLsaaaJR5JR5U/kfI6PTqOPH4K1j8M8Pd0V0p8qfI/KuVaCcnMv1RP3uNNK1J9hv2fd2VUWTfEH2mfFfT3KiejyXur7Psa/8AyfPdfE8z9Dt/EV19k9nXFf5xgvc+47vz1Ku/vauSm5HxkVlmQ/l2J9473f8ANapu018+8/EVV01zbY7bVt9Q2U6mu6adFs6m2rJT0GxrbGC8iRDnQZkdbb8WVFfbStC0KJSVERkYqdu5O1NXLbcbkXVNaGmuVE/KMZxcJpODVGnqaL0dC+tvleO0ldj3ILWys9kwY6WHM/wqfAo7+xJrw0oeuMUlxWaGXYPJNRuPxJVeyZkRFHLqaivuX8c3bcFbzG13jS9OLSb6Y6q86aXMVTF8LQnNzwc9xP5stKXQ9fan0ncMw9c/V0aqeVgGj8+ubs0EmO1mF3j2M1Ta1K7TdekUr2Wy3kNIPu7EtNm4Zdvejr3l3XuPMIof8exclc/zOMV4N5+A5bfCmIcv512ChzJt+GhR3yW5U7e5WZqWYbRum3Y8An2MYxKpQ7DxXEoMg2jejUtc48+4b8s2UKkSn3HpUhSUktzsQ2hFEzTN8Zm9/vsVLzV6MV6MVzLxt6X2FpwOX4bL7Xd2FpetvW+n5FqI4CMO4AAALqcj9YH3/wAcr3j/APu8eU996TtNO/Fv2teP5b3lgj+FfEXuH7MmfG8HxvM+T86ju6eH45f0gvF3jPvctll/u1N6w7e93m2O7Wm510rzVKxDhvcxqxnfVpdU6bmyW9Su91Vp1FKwo5ZwAAAn7wR5y/uUWOyrD7LvtM+0OFi0Pwvjb4M9z/DT9894nifCOV+8PO+++nTtY8PwuvVXd9Gw5Bn35HK7Luu97xR+du03a/5ZVrXmIjNsq/NIwXebm4383erWnOthyDl9yP8A3rN3XO4/g34C9702PVHw58RfFHl/cNa1XeY97+4sd8Xzfh9/Z5VPh9encr8I485zP83xzxu53dYpUrvalTXSPiOjLcF+X4VYbe36NutKa+ar8ZGERR3lg/Df1FtvcQ40jFYtfE2PqyZLdsFYDfWcmsXTT5BqXLl4lftRrFyg94PGS5LKosqK651cJpDq3HFWPJeJcZk6dlJXcI3XcbpR/wCV6aV5VRrlpWpDZnkuHzF943uYhfOSrXpWitOTSn1FtEX1ytErgE5O07tuPaeEozhxX8OmQPHJHVDZWT17BkG0pz2GvynUk+3tM/oi3rjzL92srN7e/wBNO2q8RXnwri66Llvd/wBXk+Ur/wCWPq27a33jtpr3WuPp03gVw1Ig3smNcLuc4ySqfbNl2uk3bcOti0NZOaUfmGIbSnlpPwzkqaNaHK9m/GGLzC28NhY9zh5aG61m1sroST5UtPPQmMv4dw+Emr1997dWrRSKfRyvp7CpAU4sRILi5yBu+MG7sO3LS1asgPG12ce1xo7RVMzklJcVcursKiRZFAtSipWiUl5tw4z5NSGW19hmkhI5TmM8qx0MbBb27Wsa03k1RqtH06npRx4/Bxx+FlhpOm9SjpWjTrWlV4yeHMH1W7zlNpex03U6eLWEK+vKOfkdz9ozuXrtKWkkLtG6JFe3hOJJjeYu48OQp5bzySRGNHhGaycbsGc8XXM1wLwULPdRlJOT396qWmlN2PLR1q9VKETlvD8MBiliZXe8cU6LdpRvRX0nyV7dZUaKcWIndwV5sfuV5Ln+Q/Zn9pXxzR09N5P4z+DfdfuqfJneZ8x8KZV53zHmO3s7Gezp17j69Cn8gzz8juXLndd73kUvS3aUbf0ZV8BE5tlf5pCEO83Nxt+jvVr1o57zJ5Ofvbbmf278EfZ/42MUWOfD3xL8V9vuQpZec97e4Mb6+Z81/R+WLs7fxldfZz51mv5xjffO77vzFGm9vaq6a0jt2HtlmA/LsN7vv7/nN1pTXzVfjPN8auT+1uKufJzzV1s00qWwiBkuMWqHpeMZbVIWpxuDeV7T8da3Ijq1LjSWltSYy1K8NZIcdQ55ZXmuLynEe8YV69Eov0ZLY1zcj1rrdfvHYDD5hZ7q+tWprWnzfKtT7C8vD/XP1dJqmVZ/o/Pqa7JBpkNYfd49k1U4tKu0nWZF09iUtlDqC7uxTThtmfb3r6d53yzx5hHD/kWLkbn+VxkvDuvwFVucKYhS/k3YOHOmn4KnHd6et5fXdJYUXH/V7uHz50d6OznWe2EG2tKsnTNspNXiVay9UIsWmvptuSpsthLh9FMOJT9Ljx/HU523by61uSfzptNroitFeltczOnCcLRjNTxlzeS+bHQn0t6exLpKKMjyO+y++t8oyi3sL/Ir+wk2t1dWsl2ZY2djMdU9Jly5LylOOvOuKMzMz9n4C6EREKDdu3L1yV27JyuydW3rbLXCELUFbtpRhFUSWpI+1rfObjWOwcJ2Nj6zTd4LlVDllYXirZQ7LobONZNRnlt9VeWlnH8J0uhkptakmRkZkf3hcRPCYm3ibfp25qS6nWnXqPm/ajfszsT9GcWn1qha5yn9XO15H6OzHTFVpE9cfGnueNZZOjZ6sodbqq26gXMyuaq06+xrqVt7vTHcWckiJha0mlXd7LdmvGM8ywE8FCx3XeUTlv72hNNqm5HXSmvUV/AcOxwWKjiZXd/dro3aaaUrXeerXqKbxSiyl4kf1rcui6YY1y1pJBZzH1o1hbezT2es0lkzOMpo0ZueKlr4lGv3ikp3kfef43834/T6Yvi45vLBe7qx/PVrd39/527Te3dzbppvc1Sqvhe28T33e/yt/e3d3krXdrvbNFadRR2KGWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/9k=\\\",ze=\\\"rgba(24,24,27,.9)\\\",Ve={ColorPalette:{version:112,id:\\\"obsidian\\\",name:\\\"Obsidian\\\",colors:{node_slot:{CLIP:\\\"#FFD500\\\",CLIP_VISION:\\\"#A8DADC\\\",CLIP_VISION_OUTPUT:\\\"#ad7452\\\",CONDITIONING:\\\"#FFA931\\\",CONTROL_NET:\\\"#6EE7B7\\\",IMAGE:\\\"#64B5F6\\\",LATENT:\\\"#FF9CF9\\\",MASK:\\\"#81C784\\\",MODEL:\\\"#B39DDB\\\",STYLE_MODEL:\\\"#C2FFAE\\\",VAE:\\\"#FF6E6E\\\",TAESD:\\\"#DCC274\\\",PIPE_LINE:\\\"#7737AA\\\",PIPE_LINE_SDXL:\\\"#7737AA\\\",INT:\\\"#29699C\\\",X_Y:\\\"#38291f\\\",XYPLOT:\\\"#74DA5D\\\",LORA_STACK:\\\"#94dccd\\\",CONTROL_NET_STACK:\\\"#94dccd\\\",FAST_MODEL_LOADER:\\\"#ffd399\\\",SAMPLING:\\\"#60a5fa\\\"},litegraph_base:{BACKGROUND_IMAGE:\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQBJREFUeNrs1rEKwjAUhlETUkj3vP9rdmr1Ysammk2w5wdxuLgcMHyptfawuZX4pJSWZTnfnu/lnIe/jNNxHHGNn//HNbbv+4dr6V+11uF527arU7+u63qfa/bnmh8sWLBgwYJlqRf8MEptXPBXJXa37BSl3ixYsGDBMliwFLyCV/DeLIMFCxYsWLBMwSt4Be/NggXLYMGCBUvBK3iNruC9WbBgwYJlsGApeAWv4L1ZBgsWLFiwYJmCV/AK3psFC5bBggULloJX8BpdwXuzYMGCBctgwVLwCl7Be7MMFixYsGDBsu8FH1FaSmExVfAxBa/gvVmwYMGCZbBg/W4vAQYA5tRF9QYlv/QAAAAASUVORK5CYII=\\\",CLEAR_BACKGROUND_COLOR:\\\"#222222\\\",NODE_TITLE_COLOR:\\\"#d4d4d8\\\",NODE_SELECTED_TITLE_COLOR:\\\"#ffffff\\\",NODE_TEXT_SIZE:14,NODE_TEXT_COLOR:\\\"#ffffff\\\",NODE_SUBTEXT_SIZE:12,NODE_DEFAULT_COLOR:\\\"#09090b\\\",NODE_DEFAULT_BGCOLOR:\\\"rgba(24,24,27,.9)\\\",NODE_DEFAULT_BOXCOLOR:\\\"rgba(255,255,255,.75)\\\",NODE_DEFAULT_SHAPE:2,NODE_BOX_OUTLINE_COLOR:\\\"#60a5fa\\\",NODE_BYPASS_BGCOLOR:\\\"#FF00FF\\\",NODE_ERROR_COLOUR:\\\"#E00\\\",DEFAULT_SHADOW_COLOR:\\\"rgba(0,0,0,0)\\\",DEFAULT_GROUP_FONT:24,WIDGET_BGCOLOR:\\\"#242427\\\",WIDGET_OUTLINE_COLOR:\\\"#3f3f46\\\",WIDGET_TEXT_COLOR:\\\"#d4d4d8\\\",WIDGET_SECONDARY_TEXT_COLOR:\\\"#d4d4d8\\\",LINK_COLOR:\\\"#9A9\\\",EVENT_LINK_COLOR:\\\"#A86\\\",CONNECTING_LINK_COLOR:\\\"#AFA\\\"},comfy_base:{\\\"fg-color\\\":\\\"#fff\\\",\\\"bg-color\\\":\\\"#09090b\\\",\\\"comfy-menu-bg\\\":\\\"rgba(24,24,24,.9)\\\",\\\"comfy-input-bg\\\":\\\"#262626\\\",\\\"input-text\\\":\\\"#ddd\\\",\\\"descrip-text\\\":\\\"#999\\\",\\\"drag-text\\\":\\\"#ccc\\\",\\\"error-text\\\":\\\"#ff4444\\\",\\\"border-color\\\":\\\"#29292c\\\",\\\"tr-even-bg-color\\\":\\\"rgba(28,28,28,.9)\\\",\\\"tr-odd-bg-color\\\":\\\"rgba(19,19,19,.9)\\\"}}},NODE_COLORS:{red:{color:\\\"#af3535\\\",bgcolor:ze,groupcolor:\\\"#A88\\\"},brown:{color:\\\"#38291f\\\",bgcolor:ze,groupcolor:\\\"#b06634\\\"},green:{color:\\\"#346434\\\",bgcolor:ze,groupcolor:\\\"#8A8\\\"},blue:{color:\\\"#1f1f48\\\",bgcolor:ze,groupcolor:\\\"#88A\\\"},pale_blue:{color:\\\"#006691\\\",bgcolor:ze,groupcolor:\\\"#3f789e\\\"},cyan:{color:\\\"#008181\\\",bgcolor:ze,groupcolor:\\\"#8AA\\\"},purple:{color:\\\"#422342\\\",bgcolor:ze,groupcolor:\\\"#a1309b\\\"},yellow:{color:\\\"#c09430\\\",bgcolor:ze,groupcolor:\\\"#b58b2a\\\"},black:{color:\\\"rgba(0,0,0,.8)\\\",bgcolor:ze,groupcolor:\\\"#444\\\"}}};let je=JSON.parse(JSON.stringify(Ve));delete je.NODE_COLORS,je.ColorPalette.id=\\\"obsidian_dark\\\",je.ColorPalette.name=\\\"Obsidian Dark\\\",je.ColorPalette.colors.litegraph_base.BACKGROUND_IMAGE=\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGlmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4xLWMwMDEgNzkuMTQ2Mjg5OSwgMjAyMy8wNi8yNS0yMDowMTo1NSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDI1LjEgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAyMy0xMS0xM1QwMDoxODowMiswMTowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmIyYzRhNjA5LWJmYTctYTg0MC1iOGFlLTk3MzE2ZjM1ZGIyNyIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjk0ZmNlZGU4LTE1MTctZmQ0MC04ZGU3LWYzOTgxM2E3ODk5ZiIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjIzMWIxMGIwLWI0ZmItMDI0ZS1iMTJlLTMwNTMwM2NkMDdjOCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjMxYjEwYjAtYjRmYi0wMjRlLWIxMmUtMzA1MzAzY2QwN2M4IiBzdEV2dDp3aGVuPSIyMDIzLTExLTEzVDAwOjE4OjAyKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoV2luZG93cykiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjQ4OWY1NzlmLTJkNjUtZWQ0Zi04OTg0LTA4NGE2MGE1ZTMzNSIgc3RFdnQ6d2hlbj0iMjAyMy0xMS0xNVQwMjowNDo1OSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDI1LjEgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpiMmM0YTYwOS1iZmE3LWE4NDAtYjhhZS05NzMxNmYzNWRiMjciIHN0RXZ0OndoZW49IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyNS4xIChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4OTe6GAAAAx0lEQVR42u3WMQoAIQxFwRzJys77X8vSLiRgITif7bYbgrwYc/mKXyBoY4VVBgsWLFiwYFmOlTv+9jfDOjHmr8u6eVkGCxYsWLBgmc5S8ApewXvgYRksWLBgKXidpeBdloL3wMOCBctgwVLwCl7BuyyDBQsWLFiwTGcpeAWv4D3wsAwWLFiwFLzOUvAuS8F74GHBgmWwYCl4Ba/gXZbBggULFixYprMUvIJX8B54WAYLFixYCl5nKXiXpeA98LBgwTJYsGC9tg1o8f4TTtqzNQAAAABJRU5ErkJggg==\\\",je.ColorPalette.colors.litegraph_base.CLEAR_BACKGROUND_COLOR=\\\"#09090b\\\";const Ue=\\\"#FFFFFF\\\",We={ColorPalette:{id:\\\"milk_white\\\",name:\\\"Milk White\\\",colors:{node_slot:{CLIP:\\\"#FFA726\\\",CLIP_VISION:\\\"#5C6BC0\\\",CLIP_VISION_OUTPUT:\\\"#8D6E63\\\",CONDITIONING:\\\"#EF5350\\\",CONTROL_NET:\\\"#66BB6A\\\",IMAGE:\\\"#42A5F5\\\",LATENT:\\\"#AB47BC\\\",MASK:\\\"#9CCC65\\\",MODEL:\\\"#7E57C2\\\",STYLE_MODEL:\\\"#D4E157\\\",VAE:\\\"#FF7043\\\",PIPE_LINE:\\\"#7737AA\\\",PIPE_LINE_SDXL:\\\"#7737AA\\\",INT:\\\"#29699C\\\",X_Y:\\\"#38291f\\\",XYPLOT:\\\"#74DA5D\\\",LORA_STACK:\\\"#94dccd\\\",CONTROL_NET_STACK:\\\"#94dccd\\\",FAST_MODEL_LOADER:\\\"#ffd399\\\",SAMPLING:\\\"#60a5fa\\\"},litegraph_base:{BACKGROUND_IMAGE:\\\"data:image/gif;base64,R0lGODlhZABkALMAAAAAAP///+vr6+rq6ujo6Ofn5+bm5uXl5d3d3f///wAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAkALAAAAABkAGQAAAT/UMhJq7046827HkcoHkYxjgZhnGG6si5LqnIM0/fL4qwwIMAg0CAsEovBIxKhRDaNy2GUOX0KfVFrssrNdpdaqTeKBX+dZ+jYvEaTf+y4W66mC8PUdrE879f9d2mBeoNLfH+IhYBbhIx2jkiHiomQlGKPl4uZe3CaeZifnnijgkESBqipqqusra6vsLGys62SlZO4t7qbuby7CLa+wqGWxL3Gv3jByMOkjc2lw8vOoNSi0czAncXW3Njdx9Pf48/Z4Kbbx+fQ5evZ4u3k1fKR6cn03vHlp7T9/v8A/8Gbp4+gwXoFryXMB2qgwoMMHyKEqA5fxX322FG8tzBcRnMW/zlulPbRncmQGidKjMjyYsOSKEF2FBlJQMCbOHP6c9iSZs+UnGYCdbnSo1CZI5F64kn0p1KnTH02nSoV3dGTV7FFHVqVq1dtWcMmVQZTbNGu72zqXMuW7danVL+6e4t1bEy6MeueBYLXrNO5Ze36jQtWsOG97wIj1vt3St/DjTEORss4nNq2mDP3e7w4r1bFkSET5hy6s2TRlD2/mSxXtSHQhCunXo26NevCpmvD/UU6tuullzULH76q92zdZG/Ltv1a+W+osI/nRmyc+fRi1Xdbh+68+0vv10dH3+77KD/i6IdnX669/frn5Zsjh4/2PXju8+8bzc9/6fj27LFnX11/+IUnXWl7BJfegm79FyB9JOl3oHgSklefgxAC+FmFGpqHIYcCfkhgfCohSKKJVo044YUMttggiBkmp6KFXw1oII24oYhjiDByaKOOHcp3Y5BD/njikSkO+eBREQAAOw==\\\",CLEAR_BACKGROUND_COLOR:\\\"lightgray\\\",NODE_TITLE_COLOR:\\\"#222\\\",NODE_SELECTED_TITLE_COLOR:\\\"#000\\\",NODE_TEXT_SIZE:14,NODE_TEXT_COLOR:\\\"#444\\\",NODE_SUBTEXT_SIZE:12,NODE_DEFAULT_COLOR:\\\"#F7F7F7\\\",NODE_DEFAULT_BGCOLOR:\\\"#F5F5F5\\\",NODE_DEFAULT_BOXCOLOR:\\\"#555\\\",NODE_DEFAULT_SHAPE:2,NODE_BOX_OUTLINE_COLOR:\\\"#000\\\",DEFAULT_SHADOW_COLOR:\\\"rgba(0,0,0,0.1)\\\",DEFAULT_GROUP_FONT:24,WIDGET_BGCOLOR:\\\"#D4D4D4\\\",WIDGET_OUTLINE_COLOR:\\\"#999\\\",WIDGET_TEXT_COLOR:\\\"#222\\\",WIDGET_SECONDARY_TEXT_COLOR:\\\"#555\\\",LINK_COLOR:\\\"#9A9\\\",EVENT_LINK_COLOR:\\\"#FF9800\\\",CONNECTING_LINK_COLOR:\\\"#222\\\"},comfy_base:{\\\"fg-color\\\":\\\"#222\\\",\\\"bg-color\\\":\\\"#DDD\\\",\\\"comfy-menu-bg\\\":\\\"#F5F5F5\\\",\\\"comfy-input-bg\\\":\\\"#C9C9C9\\\",\\\"input-text\\\":\\\"#222\\\",\\\"descrip-text\\\":\\\"#444\\\",\\\"drag-text\\\":\\\"#555\\\",\\\"error-text\\\":\\\"#F44336\\\",\\\"border-color\\\":\\\"#bbb\\\",\\\"tr-even-bg-color\\\":\\\"#f9f9f9\\\",\\\"tr-odd-bg-color\\\":\\\"#fff\\\",\\\"content-bg\\\":\\\"#e0e0e0\\\",\\\"content-fg\\\":\\\"#222\\\",\\\"content-hover-bg\\\":\\\"#adadad\\\",\\\"content-hover-fg\\\":\\\"#222\\\"}}},NODE_COLORS:{red:{color:\\\"#af3535\\\",bgcolor:Ue,groupcolor:\\\"#A88\\\"},brown:{color:\\\"#38291f\\\",bgcolor:Ue,groupcolor:\\\"#b06634\\\"},green:{color:\\\"#346434\\\",bgcolor:Ue,groupcolor:\\\"#8A8\\\"},blue:{color:\\\"#1f1f48\\\",bgcolor:Ue,groupcolor:\\\"#88A\\\"},pale_blue:{color:\\\"#006691\\\",bgcolor:Ue,groupcolor:\\\"#3f789e\\\"},cyan:{color:\\\"#008181\\\",bgcolor:Ue,groupcolor:\\\"#8AA\\\"},purple:{color:\\\"#422342\\\",bgcolor:Ue,groupcolor:\\\"#a1309b\\\"},yellow:{color:\\\"#c09430\\\",bgcolor:Ue,groupcolor:\\\"#b58b2a\\\"},black:{color:\\\"rgba(0,0,0,.8)\\\",bgcolor:Ue,groupcolor:\\\"#444\\\"}}},Fe={addGroup:{id:\\\"EasyUse.Hotkeys.AddGroup\\\",name:\\\"Enable Shift+g to add selected nodes to a group\\\",tooltip:\\\"After v1.2.39, Ctrl+g can be used instead of it\\\",type:\\\"boolean\\\",defaultValue:!0},cleanVRAMUsed:{id:\\\"EasyUse.Hotkeys.cleanVRAMUsed\\\",name:\\\"Enable Shift+r to unload models and node cache\\\",type:\\\"boolean\\\",defaultValue:!0},toggleSiteMap:{id:\\\"EasyUse.Hotkeys.toggleNodesMap\\\",name:\\\"Enable Shift+m to toggle nodes map\\\",type:\\\"boolean\\\",defaultValue:!0},alignSelectedNodes:{id:\\\"EasyUse.Hotkeys.AlignSelectedNodes\\\",name:\\\"Enable Shift+Up/Down/Left/Right key and Shift+Ctrl+Alt+Left/Right to align selected nodes\\\",tooltip:\\\"Shift+Up/Down/Left/Right can align selected nodes, Shift+Ctrl+Alt+Left/Right can distribute horizontal/vertical nodes\\\",type:\\\"boolean\\\",defaultValue:!0},NormalizeSelectedNodes:{id:\\\"EasyUse.Hotkeys.NormalizeSelectedNodes\\\",name:\\\"Enable Shift+Ctrl+Left/Right key to normalize selected nodes\\\",tooltip:\\\"Enable Shift+Ctrl+Left key to normalize width and Shift+Ctrl+Right key to normalize height\\\",type:\\\"boolean\\\",defaultValue:!0},nodesTemplate:{id:\\\"EasyUse.Hotkeys.NodesTemplate\\\",name:\\\"Enable Alt+1~9 to paste nodes from nodes template\\\",type:\\\"boolean\\\",defaultValue:!0},jumpNearestNodes:{id:\\\"EasyUse.Hotkeys.JumpNearestNodes\\\",name:\\\"Enable Up/Down/Left/Right key to jump nearest nodes\\\",type:\\\"boolean\\\",defaultValue:!0},subDirectories:{id:\\\"EasyUse.ContextMenu.SubDirectories\\\",name:\\\"Enable contextMenu auto nest subdirectories\\\",type:\\\"boolean\\\",defaultValue:!1},modelsThumbnails:{id:\\\"EasyUse.ContextMenu.ModelsThumbnails\\\",name:\\\"Enable model thumbnails display\\\",type:\\\"boolean\\\",defaultValue:!1},rightMenuNodesSort:{id:\\\"EasyUse.ContextMenu.NodesSort\\\",name:\\\"Enable right-click menu to add node A~Z sorting\\\",type:\\\"boolean\\\",defaultValue:!0},quickOptions:{id:\\\"EasyUse.ContextMenu.QuickOptions\\\",name:\\\"Use three shortcut buttons in the right-click menu\\\",type:\\\"combo\\\",options:[\\\"At the forefront\\\",\\\"At the end\\\",\\\"Disable\\\"],defaultValue:\\\"At the forefront\\\"},nodesRuntime:{id:\\\"EasyUse.Nodes.Runtime\\\",name:\\\"Enable nodes runtime display\\\",type:\\\"boolean\\\",defaultValue:!0},chainGetSet:{id:\\\"EasyUse.Nodes.ChainGetSet\\\",name:\\\"Enable chain get node and set node with parent nodes\\\",type:\\\"boolean\\\",defaultValue:!0},nodesMap:{id:\\\"EasyUse.NodesMap.Sorting\\\",name:\\\"Nodes map sorting mode\\\",tooltip:\\\"Default automatic sorting, if set to manual, groups can be dragged and dropped and the sorting results saved.\\\",type:\\\"combo\\\",options:[\\\"Auto sorting\\\",\\\"Manual drag\\u0026drop sorting\\\"],defaultValue:\\\"Auto sorting\\\"},displayNodesID:{id:\\\"EasyUse.NodesMap.DisplayNodeID\\\",name:\\\"Display Node ID\\\",type:\\\"boolean\\\",defaultValue:!0},onlyDisplayGroup:{id:\\\"EasyUse.NodesMap.DisplayGroupOnly\\\",name:\\\"Display Groups Only\\\",type:\\\"boolean\\\",defaultValue:!1},enableNodesMap:{id:\\\"EasyUse.NodesMap.Enable\\\",name:\\\"Enable Nodes Map\\\",tooltip:\\\"You need to refresh the page to update successfully\\\",type:\\\"boolean\\\",defaultValue:!0},stylesSelectorDisplay:{id:\\\"EasyUse.StylesSelector.DisplayType\\\",name:\\\"Styles Selector Display Type\\\",tooltip:\\\"Styles Selector Display Type, if set to 'Grid', it will display as a Grid, if set to 'List', it will display as a list\\\",type:\\\"combo\\\",options:[\\\"Grid\\\",\\\"List\\\"],defaultValue:\\\"Grid\\\"},enableAddAnglePrompt:{id:\\\"EasyUse.MultiAngle.AddAnglePrompt\\\",name:\\\"Add angle prompt in easy multiAngle\\\",type:\\\"boolean\\\",defaultValue:!1},enableHollowMode:{id:\\\"EasyUse.MultiAngle.HollowMode\\\",name:\\\"Enable hollow display mode in easy multiAngle\\\",type:\\\"boolean\\\",defaultValue:!1},enableInvertRotate:{id:\\\"EasyUse.MultiAngle.InvertRotate\\\",name:\\\"Invert rotate mode in easy multiAngle\\\",tooltip:\\\"Enable invert rotate mode in easy multiAngle to match the rotation direction of most 3D software\\\",type:\\\"boolean\\\",defaultValue:!1}};function Xe(e=100,t){return new Promise((i=\\u003e{setTimeout((()=\\u003e{i(t)}),e)}))}function Ze(e,t){if(e=\\\"number\\\"==typeof e?e:e instanceof Date?e.getTime():parseInt(e),isNaN(e))return null;let i=new Date(e);(e=i.toString().split(/[\\\\s\\\\:]/g).slice(0,-2))[1]=[\\\"01\\\",\\\"02\\\",\\\"03\\\",\\\"04\\\",\\\"05\\\",\\\"06\\\",\\\"07\\\",\\\"08\\\",\\\"09\\\",\\\"10\\\",\\\"11\\\",\\\"12\\\"][i.getMonth()];let s={MM:1,dd:2,yyyy:3,hh:4,mm:5,ss:6};return t.replace(/([Mmdhs]|y{2})\\\\1/g,(t=\\u003ee[s[t]]))}const He=/Mac|iPod|iPhone|iPad/.test(navigator.platform),qe=e=\\u003eHe?e.replace(/Ctrl/g,\\\"⌘\\\").replace(/Alt/g,\\\"⌥\\\").replace(/Shift/g,\\\"⇧\\\"):e;const Ye=new class{constructor(){v(this,\\\"element\\\",ve(`div.${Ce}toast`)),v(this,\\\"children\\\",HTMLElement),v(this,\\\"container\\\",document.body),v(this,\\\"info_icon\\\",`mdi mdi-information ${Ce}theme`),v(this,\\\"success_icon\\\",`mdi mdi-check-circle ${Ce}success`),v(this,\\\"error_icon\\\",`mdi mdi-close-circle ${Ce}error`),v(this,\\\"warn_icon\\\",`mdi mdi-alert-circle ${Ce}warning`),v(this,\\\"loading_icon\\\",\\\"mdi mdi-rotate-right loading\\\"),this.container.appendChild(this.element)}async show(e){let t=ve(`div.${Ce}toast-container`,[ve(\\\"div\\\",[ve(\\\"span\\\",[...e.icon?[ve(\\\"i\\\",{className:e.icon})]:[],ve(\\\"span\\\",e.content)])])]);t.setAttribute(\\\"toast-id\\\",e.id),this.element.replaceChildren(t),this.container.appendChild(this.element),await Xe(64),t.style.marginTop=`-${t.offsetHeight}px`,await Xe(64),t.classList.add(\\\"show\\\"),e.duration\\u0026\\u0026(await Xe(e.duration),this.hide(e.id))}async hide(e){const t=document.querySelector(`.${Ce}toast \\u003e [toast-id=\\\"${e}\\\"]`);(null==t?void 0:t.classList.contains(\\\"show\\\"))\\u0026\\u0026(t.classList.remove(\\\"show\\\"),await Xe(750)),t\\u0026\\u0026t.remove()}async clearAllMessages(){let e=document.querySelector(`.${Ce}container`);e\\u0026\\u0026(e.innerHTML=\\\"\\\")}async info(e,t=3e3,i=[]){this.show({id:\\\"toast-info\\\",icon:this.info_icon,content:e,duration:t})}async success(e,t=3e3){this.show({id:\\\"toast-success\\\",icon:this.success_icon,content:e,duration:t})}async error(e,t=3e3){this.show({id:\\\"toast-error\\\",icon:this.error_icon,content:e,duration:t})}async warn(e,t=3e3){this.show({id:\\\"toast-warn\\\",icon:this.warn_icon,content:e,duration:t})}async showLoading(e,t=0){this.show({id:\\\"toast-loading\\\",icon:this.loading_icon,content:e,duration:t})}async hideLoading(){this.hide(\\\"toast-loading\\\")}},Ke=S(\\\"groups\\\",{state:e=\\u003e({groups:[],nodes:[],isWatching:!1}),getters:{groups_nodes(){var e;let t=[],i=[];const s=e=\\u003e{var t;return{info:e,children:(null==(t=e.sub_groups)?void 0:t.length)\\u003e0?e.sub_groups.map(s):[],bounds:{x1:e.pos[0],y1:e.pos[1],x2:e.pos[0]+e.size[0],y2:e.pos[1]+e.size[1]}}};if(t=this.groups.map(s),(null==(e=this.nodes)?void 0:e.length)\\u003e0){const e=(e,t)=\\u003ee[0]\\u003e=t.x1\\u0026\\u0026e[0]\\u003c=t.x2\\u0026\\u0026e[1]\\u003e=t.y1\\u0026\\u0026e[1]\\u003c=t.y2,s=(t,i)=\\u003e{let s=null,n=-1;const a=(i,o)=\\u003e{i.bounds\\u0026\\u0026e(t.pos,i.bounds)\\u0026\\u0026(o\\u003en\\u0026\\u0026(n=o,s=i),i.children.forEach((e=\\u003ea(e,o+1))))};return i.forEach((e=\\u003ea(e,0))),s};this.nodes.forEach((e=\\u003e{const n=s(e,t);n?(n.children||(n.children=[]),n.children.push(e)):i.push({info:e})}))}return[...t,...i]}},actions:{setGroups(e){let t=R(e.map((e=\\u003enew Object({id:e.id,pos:Array.isArray(e.pos)?[...e.pos]:e.pos,size:Array.isArray(e.size)?[...e.size]:e.size,title:e.title,pinned:e.pinned,show_nodes:e.show_nodes}))));t.forEach((e=\\u003e{e.sub_groups=[],t.forEach((t=\\u003e{t!==e\\u0026\\u0026t.pos[0]\\u003ee.pos[0]\\u0026\\u0026t.pos[0]\\u003ce.pos[0]+e.size[0]\\u0026\\u0026t.pos[1]\\u003ee.pos[1]\\u0026\\u0026t.pos[1]\\u003ce.pos[1]+e.size[1]\\u0026\\u0026e.sub_groups.push(t)})),e.sub_groups.forEach((e=\\u003e{t=t.filter((t=\\u003et!==e))}))})),this.groups=\\\"Manual drag\\u0026drop sorting\\\"==xe(\\\"EasyUse.NodesMap.Sorting\\\")?R(t):R(t.sort(((e,t)=\\u003ee.pos[0]-t.pos[0])).sort(((e,t)=\\u003ee.pos[1]-t.pos[1])))},setNodes(e){this.nodes=R(e.map((e=\\u003enew Object({id:e.id,pos:e.pos,size:e.size,type:e.type,is_edit:e.is_edit,title:e.title,mode:e.mode}))))},update(){var e,t,i;(((null==(e=fe.extensionManager)?void 0:e.activeSidebarTab)||(null==(i=null==(t=fe.extensionManager.sidebarTab)?void 0:t.activeSidebarTab)?void 0:i.id))===Pe||this.isWatching)\\u0026\\u0026setTimeout((e=\\u003e{this.setGroups(fe.canvas.graph._groups),this.setNodes(fe.canvas.graph._nodes)}),1)},watchGraph(e=!1){e\\u0026\\u0026(this.isWatching=!0);let t=this;this.update();const i=fe.graph.onNodeAdded;fe.graph.onNodeAdded=function(e){t.update();const s=e.onRemoved;return e.onRemoved=function(){return t.update(),null==s?void 0:s.apply(this,arguments)},null==i?void 0:i.apply(this,arguments)},fe.canvas.onNodeMoved=function(e){t.update()};const s=LGraphCanvas.onNodeAlign;LGraphCanvas.onNodeAlign=function(e){return t.update(),null==s?void 0:s.apply(this,arguments)};const n=LGraphCanvas.onGroupAdd;LGraphCanvas.onGroupAdd=function(){return t.update(),null==n?void 0:n.apply(this,arguments)};const a=LGraphCanvas.onGroupAlign;LGraphCanvas.onGroupAlign=function(e){return t.update(),null==a?void 0:a.apply(this,arguments)};const o=LGraphCanvas.onMenuNodeRemove;LGraphCanvas.onMenuNodeRemove=function(e){return t.update(),null==o?void 0:o.apply(this,arguments)}},unwatchGraph(){this.isWatching=!1}}});const Je={BOX:1,ROUND:2,CIRCLE:3,CARD:4,ARROW:5,GRID:6,HollowCircle:7};function Be(e,t,i={}){const{shape:s=Je.BOX,round_radius:n=LiteGraph.ROUND_RADIUS,title_height:a=LiteGraph.NODE_TITLE_HEIGHT,title_mode:o=LiteGraph.NORMAL_TITLE,color:l=LiteGraph.NODE_BOX_OUTLINE_COLOR,padding:r=6,collapsed:d=!1,thickness:u=1}=i;o===LiteGraph.TRANSPARENT_TITLE\\u0026\\u0026(t[1]-=a,t[3]+=a);const{lineWidth:c,strokeStyle:A}=e;e.lineWidth=u,e.globalAlpha=.8,e.strokeStyle=l,e.beginPath();const[p,h,m,f]=t;switch(s){case Je.BOX:e.rect(p-r,h-r,m+2*r,f+2*r);break;case Je.ROUND:case Je.CARD:{const t=n+r,i=s===Je.CARD\\u0026\\u0026d||s===Je.ROUND?[t]:[t,2,t,2];e.roundRect(p-r,h-r,m+2*r,f+2*r,i);break}case Je.CIRCLE:{const t=p+m/2,i=h+f/2,s=Math.max(m,f)/2+r;e.arc(t,i,s,0,2*Math.PI);break}}e.stroke(),e.lineWidth=c,e.strokeStyle=A,e.globalAlpha=1}function Qe(e,t,i){var s,n;let a=0,o=null==(s=e[0])?void 0:s.naturalWidth,l=null==(n=e[0])?void 0:n.naturalHeight;const r=e.length;let d,u,c,A,p;for(let h=1;h\\u003c=r;h++){const e=Math.ceil(r/h),s=t/h,n=s/o,m=i/e/l,f=Math.min(n,m,1),g=o*f,v=l*f,y=g*v*r;y\\u003ea\\u0026\\u0026(a=y,d=g,u=v,c=h,A=e,p=h*((s-g)/2))}return{cellWidth:d,cellHeight:u,cols:c,rows:A,shiftX:p}}class $e{constructor(e,t){this.type=\\\"custom\\\",this.name=e,this.options=t,this.value=\\\"\\\"}draw(e,t,i,s,n){((e,t,i)=\\u003e{const s=fe.canvas,n=s.graph_mouse;!s.pointer_is_down\\u0026\\u0026t.pointerDown\\u0026\\u0026(n[0]===t.pointerDown.pos[0]\\u0026\\u0026n[1]===t.pointerDown.pos[1]\\u0026\\u0026(t.imageIndex=t.pointerDown.index),t.pointerDown=null);const a=t.imgs??[];let{imageIndex:o}=t;const l=a.length;1!==l||o||(t.imageIndex=o=0);const r=t.size[0],d=t.size[1]-i-15;if(null==o){let o,u,c,A,p;const h=(e=\\u003e{if(!e.length||1===e.length)return!0;const t=e[0].naturalWidth/e[0].naturalHeight;for(let i=1;i\\u003ce.length;i++)if(t!=e[i].naturalWidth/e[i].naturalHeight)return!1;return!0})(a);if(h)A=0,({cellWidth:o,cellHeight:u,cols:p,shiftX:c}=Qe(a,r,d));else{A=2;const e=a.reduce(((e,t)=\\u003eMath.max(e,t.naturalWidth,t.naturalHeight)),0),t=[];t.length=a.length,t[0]={naturalWidth:e,naturalHeight:e},({cellWidth:o,cellHeight:u,cols:p,shiftX:c}=Qe(t,r,d))}let m=!1;t.imageRects=[];for(let r=0;r\\u003cl;r++){const l=a[r],d=Math.floor(r/p),f=r%p,g=f*o+c,v=d*u+i;if(!m\\u0026\\u0026(m=LiteGraph.isInsideRectangle(n[0],n[1],g+t.pos[0],v+t.pos[1],o,u),m)){t.overIndex=r;let i=110;s.pointer_is_down\\u0026\\u0026(t.pointerDown\\u0026\\u0026t.pointerDown.index===r||(t.pointerDown={index:r,pos:[...n]}),i=125),e.filter=`contrast(${i}%) brightness(${i}%)`,s.canvas.style.cursor=\\\"pointer\\\"}t.imageRects.push([g,v,o,u]);const y=o/l.width,w=u/l.height,b=Math.min(y,w),_=b*l.height,S=d*u+i+(u-_)/2,x=b*l.width,L=f*o+c+(o-x)/2;e.drawImage(l,L+A,S+A,x-2*A,_-2*A),h||(e.strokeStyle=\\\"#8F8F8F\\\",e.lineWidth=1,e.strokeRect(g+A,v+A,o-2*A,u-2*A)),e.filter=\\\"none\\\"}return void(m||(t.pointerDown=null,t.overIndex=null))}const u=a[o];if(!u)return;let c=null==u?void 0:u.naturalWidth,A=null==u?void 0:u.naturalHeight;const p=r/c,h=d/A,m=Math.min(p,h,1);c*=m,A*=m;const f=(r-c)/2,g=(d-A)/2+i;e.drawImage(u,f,g,c,A),e.fillStyle=LiteGraph.NODE_TEXT_COLOR,e.textAlign=\\\"center\\\",e.font=\\\"10px sans-serif\\\";const v=`${Math.round(u.naturalWidth)} × ${Math.round(u.naturalHeight)}`,y=g+A+10;e.fillText(v,f+c/2,y);const w=(i,a,o,l)=\\u003e{let r=\\\"#333\\\",d=\\\"#fff\\\",u=!1;return LiteGraph.isInsideRectangle(n[0],n[1],i+t.pos[0],a+t.pos[1],o,o)\\u0026\\u0026(s.canvas.style.cursor=\\\"pointer\\\",s.pointer_is_down?(r=\\\"#1e90ff\\\",u=!0):(r=\\\"#eee\\\",d=\\\"#000\\\")),e.fillStyle=r,e.beginPath(),e.roundRect(i,a,o,o,[4]),e.fill(),e.fillStyle=d,e.font=\\\"12px Arial\\\",e.textAlign=\\\"center\\\",e.fillText(l,i+15,a+20),u};if(!(l\\u003e1))return;const b=(t.imageIndex??0)+1;if(w(r-40,d+i-40,30,`${b}/${l}`)){const e=b\\u003e=l?0:b;t.pointerDown\\u0026\\u0026t.pointerDown.index===e||(t.pointerDown={index:e,pos:[...n]})}w(r-40,i+10,30,\\\"x\\\")\\u0026\\u0026(t.pointerDown\\u0026\\u0026null===t.pointerDown.index||(t.pointerDown={index:null,pos:[...n]}))})(e,t,s)}computeLayoutSize(e,t){return{minHeight:220,minWidth:1}}}const et=()=\\u003e(e,t)=\\u003ee.addCustomWidget(new $e(t.name,{serialize:!1}));function tt(e,t,i,s,n,a){return e\\u003e=i\\u0026\\u0026e\\u003ci+n\\u0026\\u0026t\\u003e=s\\u0026\\u0026t\\u003cs+a}class it extends Float64Array{constructor(e=0,t=0,i=0,s=0){super(4),b(this,h),b(this,m),this[0]=e,this[1]=t,this[2]=i,this[3]=s}subarray(e=0,t){const i=e\\u003c\\u003c3,s=void 0===t?t:t-e;return new Float64Array(this.buffer,i,s)}get pos(){return w(this,h)??_(this,h,this.subarray(0,2)),w(this,h)}set pos(e){this[0]=e[0],this[1]=e[1]}get size(){return w(this,m)??_(this,m,this.subarray(2,4)),w(this,m)}set size(e){this[2]=e[0],this[3]=e[1]}get x(){return this[0]}set x(e){this[0]=e}get y(){return this[1]}set y(e){this[1]=e}get width(){return this[2]}set width(e){this[2]=e}get height(){return this[3]}set height(e){this[3]=e}get left(){return this[0]}set left(e){this[0]=e}get top(){return this[1]}set top(e){this[1]=e}get right(){return this[0]+this[2]}set right(e){this[0]=e-this[2]}get bottom(){return this[1]+this[3]}set bottom(e){this[1]=e-this[3]}get centreX(){return this[0]+.5*this[2]}get centreY(){return this[1]+.5*this[3]}updateTo(e){this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3]}containsXy(e,t){const{x:i,y:s,width:n,height:a}=this;return e\\u003e=i\\u0026\\u0026e\\u003ci+n\\u0026\\u0026t\\u003e=s\\u0026\\u0026t\\u003cs+a}containsPoint(e){return this.x\\u003c=e[0]\\u0026\\u0026this.y\\u003c=e[1]\\u0026\\u0026this.x+this.width\\u003e=e[0]\\u0026\\u0026this.y+this.height\\u003e=e[1]}containsRect(e){return this.x\\u003c=e[0]\\u0026\\u0026this.y\\u003c=e[1]\\u0026\\u0026this.x+this.width\\u003e=e[0]+e[2]\\u0026\\u0026this.y+this.height\\u003e=e[1]+e[3]}overlaps(e){return this.x\\u003ce[0]+e[2]\\u0026\\u0026this.y\\u003ce[1]+e[3]\\u0026\\u0026this.x+this.width\\u003ee[0]\\u0026\\u0026this.y+this.height\\u003ee[1]}findContainingCorner(e,t,i){return this.isInTopLeftCorner(e,t,i)?\\\"NW\\\":this.isInTopRightCorner(e,t,i)?\\\"NE\\\":this.isInBottomLeftCorner(e,t,i)?\\\"SW\\\":this.isInBottomRightCorner(e,t,i)?\\\"SE\\\":void 0}isInTopLeftCorner(e,t,i){return tt(e,t,this.x,this.y,i,i)}isInTopRightCorner(e,t,i){return tt(e,t,this.right-i,this.y,i,i)}isInBottomLeftCorner(e,t,i){return tt(e,t,this.x,this.bottom-i,i,i)}isInBottomRightCorner(e,t,i){return tt(e,t,this.right-i,this.bottom-i,i,i)}isInTopEdge(e,t,i){return tt(e,t,this.x,this.y,this.width,i)}isInBottomEdge(e,t,i){return tt(e,t,this.x,this.bottom-i,this.width,i)}isInLeftEdge(e,t,i){return tt(e,t,this.x,this.y,i,this.height)}isInRightEdge(e,t,i){return tt(e,t,this.right-i,this.y,i,this.height)}getCentre(){return[this.centreX,this.centreY]}getArea(){return this.width*this.height}getPerimeter(){return 2*(this.width+this.height)}getTopLeft(){return[this[0],this[1]]}getBottomRight(){return[this.right,this.bottom]}getSize(){return[this[2],this[3]]}getOffsetTo([e,t]){return[e-this[0],t-this[1]]}getOffsetFrom([e,t]){return[this[0]-e,this[1]-t]}resizeTopLeft(e,t){this[2]+=this[0]-e,this[3]+=this[1]-t,this[0]=e,this[1]=t}resizeBottomLeft(e,t){this[2]+=this[0]-e,this[3]=t-this[1],this[0]=e}resizeTopRight(e,t){this[2]=e-this[0],this[3]+=this[1]-t,this[1]=t}resizeBottomRight(e,t){this[2]=e-this[0],this[3]=t-this[1]}setWidthRightAnchored(e){const t=this[2];this[2]=e,this[0]+=t-e}setHeightBottomAnchored(e){const t=this[3];this[3]=e,this[1]+=t-e}toArray(){return this.export()}export(){return[this[0],this[1],this[2],this[3]]}_drawDebug(e,t=\\\"red\\\"){const{strokeStyle:i,lineWidth:s}=e;try{e.strokeStyle=t,e.lineWidth=.5,e.beginPath(),e.strokeRect(this[0],this[1],this[2],this[3])}finally{e.strokeStyle=i,e.lineWidth=s}}}h=new WeakMap,m=new WeakMap;const st=(e,...t)=\\u003efunction(...i){try{t.forEach((e=\\u003enull==e?void 0:e.call(this,...i)))}catch(s){null==e||e.call(this,...i,s)}};let nt=null;const at=new Image;at.src=\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-width='1.3' d='M9.18613 3.09999H6.81377M9.18613 12.9H7.55288c-3.08678 0-5.35171-2.99581-4.60305-6.08843l.3054-1.26158M14.7486 2.1721l-.5931 2.45c-.132.54533-.6065.92789-1.1508.92789h-2.2993c-.77173 0-1.33797-.74895-1.1508-1.5221l.5931-2.45c.132-.54533.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.74896 1.1508 1.52211Zm-8.3033 0-.59309 2.45c-.13201.54533-.60646.92789-1.15076.92789H2.4021c-.7717 0-1.33793-.74895-1.15077-1.5221l.59309-2.45c.13201-.54533.60647-.9279 1.15077-.9279h2.29935c.77169 0 1.33792.74896 1.15076 1.52211Zm8.3033 9.8-.5931 2.45c-.132.5453-.6065.9279-1.1508.9279h-2.2993c-.77173 0-1.33797-.749-1.1508-1.5221l.5931-2.45c.132-.5453.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.7489 1.1508 1.5221Z'/%3E%3C/svg%3E %3C/svg%3E\\\";const ot=[\\\"custom_obsidian\\\",\\\"custom_obsidian_dark\\\",\\\"custom_milk_white\\\",\\\"obsidian_dark\\\",\\\"obsidian\\\",\\\"milk_white\\\"],lt={\\\"easy positive\\\":\\\"green\\\",\\\"easy negative\\\":\\\"red\\\",\\\"easy promptList\\\":\\\"cyan\\\",\\\"easy promptLine\\\":\\\"cyan\\\",\\\"easy promptConcat\\\":\\\"cyan\\\",\\\"easy promptReplace\\\":\\\"cyan\\\",\\\"easy forLoopStart\\\":\\\"blue\\\",\\\"easy forLoopEnd\\\":\\\"blue\\\",\\\"easy whileLoopStart\\\":\\\"blue\\\",\\\"easy whileLoopEnd\\\":\\\"blue\\\",\\\"easy loadImagesForLoop\\\":\\\"blue\\\"};let rt=LGraphCanvas.node_colors,dt=null,ut=null,ct=null,At=new it;for(let Aa in Fe)pt=Fe[Aa],fe.ui.settings.settingsLookup[pt.id]||fe.ui.settings.addSetting(pt);var pt;function ht(e,t,i,s,n,a){var o,l,r;t.strokeStyle=s,t.fillStyle=n;const d=LiteGraph.NODE_TITLE_HEIGHT,{low_quality:u}=this,{collapsed:c}=e.flags,A=e.renderingShape,{title_mode:p}=e.constructor,h=p!=LiteGraph.TRANSPARENT_TITLE\\u0026\\u0026p!=LiteGraph.NO_TITLE,m=At;m.set(e.boundingRect),m[0]-=e.pos[0],m[1]-=e.pos[1];let f=t.globalAlpha;if(t.lineWidth=1,t.beginPath(),A==LiteGraph.BOX_SHAPE||u?t.fillRect(m[0],m[1],m[2],m[3]):A==LiteGraph.ROUND_SHAPE||A==LiteGraph.CARD_SHAPE?t.roundRect(m[0],m[1],m[2],m[3],A==LiteGraph.CARD_SHAPE?[this.round_radius,this.round_radius,0,0]:[this.round_radius]):A==LiteGraph.CIRCLE_SHAPE\\u0026\\u0026t.arc(.5*i[0],.5*i[1],.5*i[0],0,2*Math.PI),t.strokeStyle=LiteGraph.WIDGET_OUTLINE_COLOR,t.stroke(),t.strokeStyle=s,t.fill(),e.has_errors\\u0026\\u0026!LiteGraph.use_legacy_node_error_indicator\\u0026\\u0026Be(t,m,{shape:A,title_mode:p,title_height:d,padding:12,color:LiteGraph.NODE_ERROR_COLOUR,collapsed:c,thickness:10}),!c\\u0026\\u0026h\\u0026\\u0026(t.shadowColor=\\\"transparent\\\",t.fillStyle=\\\"rgba(0,0,0,0.2)\\\",t.fillRect(0,-1,m[2],2)),t.shadowColor=\\\"transparent\\\",e.onDrawBackground\\u0026\\u0026e.onDrawBackground(t,this,this.canvas,this.graph_mouse),h||p==LiteGraph.TRANSPARENT_TITLE){const s=\\\"dark\\\"==function(e){let t=e.replace(\\\"#\\\",\\\"\\\");return i=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16),.299*i+.587*s+.114*n\\u003e127.5?\\\"light\\\":\\\"dark\\\";var i,s,n}((null==e?void 0:e.color)||\\\"#ffffff\\\");e.drawTitleBarBackground(t,{scale:this.ds.scale,low_quality:u});let n=!1;LiteGraph.node_box_coloured_by_mode\\u0026\\u0026LiteGraph.NODE_MODES_COLORS[e.mode]\\u0026\\u0026(n=LiteGraph.NODE_MODES_COLORS[e.mode]),LiteGraph.node_box_coloured_when_on\\u0026\\u0026(n=e.action_triggered?\\\"#FFF\\\":e.execute_triggered?\\\"#AAA\\\":n);let l=10;if(e.onDrawTitleBox)e.onDrawTitleBox(t,d,i,this.ds.scale);else if([LiteGraph.ROUND_SHAPE,LiteGraph.CIRCLE_SHAPE,LiteGraph.CARD_SHAPE].includes(A))if(u\\u0026\\u0026(t.fillStyle=\\\"black\\\",t.beginPath(),t.arc(.5*d,-.5*d,.5*l+1,0,2*Math.PI),t.fill()),e.subgraph\\u0026\\u0026!e.skip_subgraph_button)t.save(),t.fillStyle=\\\"#3b82f6\\\",t.beginPath(),t.roundRect(6,-24.5,22,20,5),t.fill(),u||(t.translate(25,23),t.scale(-1.5,1.5),t.drawImage(at,0,-d,l,l)),t.restore();else{const i=s?\\\"#ffffff\\\":LiteGraph.NODE_SELECTED_TITLE_COLOR,o=s?\\\"#eeeeee\\\":e.boxcolor||n||LiteGraph.NODE_DEFAULT_BOXCOLOR;t.fillStyle=a?i:o,t.beginPath(),t.fillRect(10,0-1.05*l-1,1.1*l,.125*l),t.fillRect(10,0-1.45*l-1,1.1*l,.125*l),t.fillRect(10,0-1.85*l-1,1.1*l,.125*l)}else u\\u0026\\u0026(t.fillStyle=\\\"black\\\",t.fillRect(.5*(d-l)-1,-.5*(d+l)-1,l+2,l+2)),t.fillStyle=e.renderingBoxColor,t.fillRect(.5*(d-l),-.5*(d+l),l,l);if(t.globalAlpha=f,e.onDrawTitleText\\u0026\\u0026e.onDrawTitleText(t,d,i,this.ds.scale,this.title_text_font,a),!u){t.font=this.title_text_font;const i=e.getTitle()??`❌ ${e.type}`,n=String(i)+(e.pinned?\\\"📌\\\":\\\"\\\");n\\u0026\\u0026(t.fillStyle=a?s?\\\"#ffffff\\\":LiteGraph.NODE_SELECTED_TITLE_COLOR:s?\\\"#ffffff\\\":e.constructor.title_text_color||this.node_title_color,e.flags.collapsed?(t.textAlign=\\\"left\\\",t.measureText(n),t.fillText(n.substr(0,20),d,LiteGraph.NODE_TITLE_TEXT_Y-d),t.textAlign=\\\"left\\\"):(t.textAlign=\\\"left\\\",t.fillText(n,d,LiteGraph.NODE_TITLE_TEXT_Y-d)))}null==(o=e.onDrawTitle)||o.call(e,t)}if(null==e?void 0:e.strokeStyles){for(const i of Object.values(e.strokeStyles)){const s=i.call(e);s\\u0026\\u0026Be(t,m,{shape:A,title_height:d,title_mode:p,collapsed:c,...s})}null==e||e.drawProgressBar(t)}else if(a){null==(l=e.onBounding)||l.call(e,m),p==LiteGraph.TRANSPARENT_TITLE\\u0026\\u0026(m[1]-=d,m[3]+=d),t.lineWidth=2,t.globalAlpha=.8,t.beginPath();let n=0,a=0,o=1;A==LiteGraph.BOX_SHAPE?t.rect(n+m[0],n+m[1],a+m[2],a+m[3]):A==LiteGraph.ROUND_SHAPE||A==LiteGraph.CARD_SHAPE\\u0026\\u0026e.flags.collapsed?t.roundRect(n+m[0],n+m[1],a+m[2],a+m[3],[this.round_radius*o]):A==LiteGraph.CARD_SHAPE?t.roundRect(n+m[0],n+m[1],a+m[2],a+m[3],[this.round_radius*o,o,this.round_radius*o,o]):A==LiteGraph.CIRCLE_SHAPE\\u0026\\u0026t.arc(.5*i[0],.5*i[1],.5*i[0]+6,0,2*Math.PI),t.strokeStyle=LiteGraph.NODE_BOX_OUTLINE_COLOR,t.stroke(),t.strokeStyle=s,t.globalAlpha=1}null==(r=e.drawProgressBar)||r.call(e,t),e.execute_triggered\\u003e0\\u0026\\u0026e.execute_triggered--,e.action_triggered\\u003e0\\u0026\\u0026e.action_triggered--}function mt(e,t,i,s,n){return new LiteGraph.ContextMenu(LiteGraph.NODE_MODES,{event:i,callback:function(e){if(!n)return;var t=Object.values(LiteGraph.NODE_MODES).indexOf(e),i=function(e){t\\u003e=0\\u0026\\u0026LiteGraph.NODE_MODES[t]?e.changeMode(t):e.changeMode(LiteGraph.ALWAYS),nt||(nt=Ke()),nt.update()},s=LGraphCanvas.active_canvas;if(!s.selected_nodes||Object.keys(s.selected_nodes).length\\u003c=1)i(n);else for(var a in s.selected_nodes)i(s.selected_nodes[a])},parentMenu:s,node:n}),!1}function ft(e,t,i,s,n){if(!n)throw\\\"no node for color\\\";var a=[];for(var o in a.push({value:null,content:\\\"\\u003cspan style='display: block; padding-left: 4px;'\\u003eNo color\\u003c/span\\u003e\\\"}),LGraphCanvas.node_colors){var l=LGraphCanvas.node_colors[o];e={value:o,content:\\\"\\u003cspan style='display: block; color: #999; padding-left: 4px; border-left: 8px solid \\\"+l.color+\\\"; background-color:\\\"+l.bgcolor+\\\"'\\u003e\\\"+o+\\\"\\u003c/span\\u003e\\\"};a.push(e)}return new LiteGraph.ContextMenu(a,{event:i,callback:function(e){if(!n)return;var t=e.value?LGraphCanvas.node_colors[e.value]:null,i=function(e){t?e.constructor===LiteGraph.LGraphGroup?e.color=t.groupcolor:(e.color=t.color,e.bgcolor=t.bgcolor):(delete e.color,delete e.bgcolor),nt||(nt=Ke()),nt.update()},s=LGraphCanvas.active_canvas;if(!s.selected_nodes||Object.keys(s.selected_nodes).length\\u003c=1)i(n);else for(var a in s.selected_nodes)i(s.selected_nodes[a]);n.setDirtyCanvas(!0,!0)},parentMenu:s,node:n}),!1}function gt(e,t,i,s,n){var a=e.property||\\\"title\\\",o=n[a],l=document.createElement(\\\"div\\\");l.is_modified=!1,l.className=\\\"graphdialog\\\",l.innerHTML=\\\"\\u003cspan class='name'\\u003e\\u003c/span\\u003e\\u003cinput autofocus type='text' class='value'/\\u003e\\u003cbutton\\u003eOK\\u003c/button\\u003e\\\",l.close=function(){l.parentNode\\u0026\\u0026l.parentNode.removeChild(l)},l.querySelector(\\\".name\\\").innerText=a;var r=l.querySelector(\\\".value\\\");r\\u0026\\u0026(r.value=o,r.addEventListener(\\\"blur\\\",(function(e){this.focus()})),r.addEventListener(\\\"keydown\\\",(function(e){if(l.is_modified=!0,27==e.keyCode)l.close();else if(13==e.keyCode)h();else if(13!=e.keyCode\\u0026\\u0026\\\"textarea\\\"!=e.target.localName)return;e.preventDefault(),e.stopPropagation()})));var d=LGraphCanvas.active_canvas.canvas,u=d.getBoundingClientRect(),c=-20,A=-20;u\\u0026\\u0026(c-=u.left,A-=u.top),event?(l.style.left=event.clientX+c+\\\"px\\\",l.style.top=event.clientY+A+\\\"px\\\"):(l.style.left=.5*d.width+c+\\\"px\\\",l.style.top=.5*d.height+A+\\\"px\\\"),l.querySelector(\\\"button\\\").addEventListener(\\\"click\\\",h),d.parentNode.appendChild(l),r\\u0026\\u0026r.focus();var p=null;function h(){r\\u0026\\u0026function(t){\\\"Number\\\"==e.type?t=Number(t):\\\"Boolean\\\"==e.type\\u0026\\u0026(t=Boolean(t));n[a]=t,l.parentNode\\u0026\\u0026l.parentNode.removeChild(l);n.setDirtyCanvas(!0,!0),nt||(nt=Ke());nt.update()}(r.value)}l.addEventListener(\\\"mouseleave\\\",(function(e){LiteGraph.dialog_close_on_mouse_leave\\u0026\\u0026!l.is_modified\\u0026\\u0026LiteGraph.dialog_close_on_mouse_leave\\u0026\\u0026(p=setTimeout(l.close,LiteGraph.dialog_close_on_mouse_leave_delay))})),l.addEventListener(\\\"mouseenter\\\",(function(e){LiteGraph.dialog_close_on_mouse_leave\\u0026\\u0026p\\u0026\\u0026clearTimeout(p)}))}(e=\\u003e{try{fe.registerExtension(e)}catch(t){}})({name:\\\"Comfy.EasyUse.UI\\\",init(){var e,t;const i=\\\"Comfy.CustomColorPalettes\\\",s=\\\"Comfy.Settings.Comfy.CustomColorPalettes\\\";if(dt||(dt=xe(i,s)),ut||(ut=xe(\\\"Comfy.ColorPalette\\\",\\\"Comfy.Settings.Comfy.ColorPalette\\\")||\\\"dark\\\"),(!(null==(e=null==dt?void 0:dt.obsidian)?void 0:e.version)||dt.obsidian.version\\u003cVe.ColorPalette.version)\\u0026\\u0026(dt.obsidian=Ve.ColorPalette,dt.obsidian_dark=je.ColorPalette,ke(i,dt,s)),(!dt||!(null==(t=null==dt?void 0:dt.milk_white)?void 0:t.version)||dt.milk_white.version\\u003cWe.ColorPalette.version)\\u0026\\u0026(dt.milk_white=We.ColorPalette,ke(i,dt,s)),ot.includes(ut)){switch(document.body.classList+=\\\" comfyui-easyuse\\\",function(e,t=!1){const i=document.createElement(\\\"link\\\");i.rel=\\\"preconnect\\\",i.href=e,t\\u0026\\u0026(i.crossorigin=\\\"\\\"),document.head.appendChild(i)}(\\\"https://fonts.googleapis.com\\\",!0),function(e,t=!0,i=\\\"ComfyUI-Easy-Use\\\"){const s=document.createElement(\\\"link\\\");s.rel=\\\"stylesheet\\\",s.type=\\\"text/css\\\",s.href=t?`extensions/${i}/${e}`:e,document.head.appendChild(s)}(\\\"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700\\u0026amp;family=JetBrains+Mono\\u0026amp;display=swap\\\",!1),ut){case\\\"obsidian\\\":case\\\"obsidian_dark\\\":case\\\"custom_obsidian\\\":case\\\"custom_obsidian_dark\\\":case\\\"dark\\\":LGraphCanvas.node_colors=Ve.NODE_COLORS;break;case\\\"custom_milk_white\\\":case\\\"milk_white\\\":case\\\"light\\\":LGraphCanvas.node_colors=We.NODE_COLORS}rt=LGraphCanvas.node_colors,LiteGraph.NODE_TEXT_SIZE=13,LGraphCanvas.prototype.drawNodeShape=st(LGraphCanvas.prototype.drawNodeShape,ht)}else document.body.classList.remove(\\\"comfyui-easyuse\\\");LGraphCanvas.onMenuNodeMode=st(LGraphCanvas.onMenuNodeMode,mt),LGraphCanvas.onMenuNodeColors=st(LGraphCanvas.onMenuNodeColors,ft),LGraphCanvas.onShowPropertyEditor=st(LGraphCanvas.onShowPropertyEditor,gt)},async setup(){var e;Object.assign(fe.canvas.default_connection_color_byType,Te),Object.assign(LGraphCanvas.link_type_colors,Te),\\\"custom_milk_white\\\"==ut\\u0026\\u0026document.body.classList.remove(Ie),fe.ui.settings.addEventListener(\\\"Comfy.ColorPalette.change\\\",(async({detail:e})=\\u003e{(null==e?void 0:e.value)\\u0026\\u0026(null==e?void 0:e.oldValue)\\u0026\\u0026(await Xe(1),Object.assign(fe.canvas.default_connection_color_byType,Te),Object.assign(LGraphCanvas.link_type_colors,Te)),\\\"custom_milk_white\\\"==e.value\\u0026\\u0026document.body.classList.remove(Ie)})),setTimeout((e=\\u003evt(xe(\\\"Comfy.UseNewMenu\\\")||\\\"Disabled\\\")),1);const t=null==(e=fe.ui.settings.settingsLookup)?void 0:e[\\\"Comfy.UseNewMenu\\\"];t\\u0026\\u0026(t.onChange=e=\\u003evt(e)),ge.addEventListener(\\\"easyuse-toast\\\",(e=\\u003e{const t=e.detail.content,i=e.detail.type,s=e.detail.duration;i?Ye.show({id:`toast-${i}`,icon:Ye[i+\\\"_icon\\\"],content:`${t}`,duration:s||3e3}):Ye.info(t,s)}))},async nodeCreated(e){if(lt.hasOwnProperty(e.comfyClass)){const t=lt[e.comfyClass],i=rt[t];if(!i)return;!e.bgcolor\\u0026\\u0026i.bgcolor\\u0026\\u0026(e.bgcolor=i.bgcolor),!e.color\\u0026\\u0026i.color\\u0026\\u0026(e.color=i.color)}}});const vt=e=\\u003e{var t;const i=(null==(t=document.getElementById(\\\"crystools-root\\\"))?void 0:t.children)||null,s=xe(\\\"Comfy.Workflow.WorkflowTabsPosition\\\",null);if((null==i?void 0:i.length)\\u003e0\\u0026\\u0026s)if(ct||(ct=document.getElementById(\\\"MonitorUI\\\")),\\\"Disabled\\\"==e){document.getElementById(\\\"crystools-root\\\").appendChild(ct)}else{let e=document.getElementById(\\\"crystools-root-easyuse\\\");if(e)e.appendChild(ct);else{const e=document.getElementsByClassName(\\\"comfyui-menu-right\\\");e.length\\u003e0\\u0026\\u0026e[0].before(ve(\\\"div\\\",{id:\\\"crystools-root-easyuse\\\"},ct))}}};let yt={};const wt=(e,t)=\\u003ee.widgets.find((e=\\u003ee.name===t)),bt=(e,t,i=!1,s=\\\"\\\")=\\u003e{var n;if(!t||((e,t,i)=\\u003e!!e.inputs\\u0026\\u0026e.inputs.some((e=\\u003ee.name===t\\u0026\\u0026e.link\\u0026\\u0026!i)))(e,t.name,i))return;yt[t.name]||(yt[t.name]={origType:t.type,origComputeSize:t.computeSize});const a=e.size;t.hidden=!i,t.type=i?yt[t.name].origType:\\\"easyHidden\\\"+s,t.computeSize=i?yt[t.name].origComputeSize:()=\\u003e[0,-4],null==(n=t.linkedWidgets)||n.forEach((s=\\u003ebt(e,s,\\\":\\\"+t.name,i)));const o=i?Math.max(e.computeSize()[1],a[1]):e.size[1];e.setSize([e.size[0],o])},_t=(e,t=0)=\\u003e{var i,s;if(e)return(null==(i=e.widgets)?void 0:i[t])?e.widgets[t].value:e.widgets_values?null==(s=e.widgets_values)?void 0:s[t]:void 0},St=e=\\u003ee.setSize([e.size[0],e.computeSize()[1]]),xt=(e,t)=\\u003egraph.getNodeById(e),Lt=e=\\u003e{var t;try{return Object.values(null==(t=null==graph?void 0:graph.list_of_graphcanvas[0])?void 0:t.selected_nodes)}catch(i){return[]}};function kt(e,t,i){return e+(s=i,(.5-.5*Math.cos(Math.PI*s))*(t-e));var s}const Et=(e,t=!0)=\\u003e{var i,s;const n=(null==(s=null==(i=e.graph)?void 0:i.list_of_graphcanvas)?void 0:s[0])||null;if(!n)return;const[a,o]=e.pos,[l,r]=e.size;(([e,t],i)=\\u003e{const s=i.ds,n=document.body.clientWidth,a=document.body.clientHeight,o=s.scale,l=.5*n/o-e,r=.5*a/o-t,d=Date.now()+250,u=s.offset[0],c=s.offset[1],A=()=\\u003e{const e=d-Date.now();if(!(Date.now()\\u003cd))return s.offset[0]=l,s.offset[1]=r,void i.setDirty(!0,!0);requestAnimationFrame(A);const t=1-e/250;s.offset[0]=kt(u,l,t),s.offset[1]=kt(c,r,t),i.setDirty(!0,!0)};requestAnimationFrame(A)})([a+l/2,o+r/2],n),t\\u0026\\u0026n.selectNode(e)},Nt=e=\\u003e{const t=xt(e);t\\u0026\\u0026Et(t)},Ct=(e,t=(()=\\u003egraph.links??[])())=\\u003et[e],It=e=\\u003ee.toLowerCase().replace(/_./g,(e=\\u003ee.replace(\\\"_\\\",\\\"\\\").toUpperCase())),Tt=e=\\u003e\\\"easy getNode\\\"===e.type,Ot=e=\\u003e\\\"easy setNode\\\"===e.type,Mt=e=\\u003eTt(e)||Ot(e),Dt=(e=(()=\\u003egraph._nodes??[])())=\\u003ee.filter((e=\\u003eMt(e)));let Rt={},Pt={};const Gt=(e,t,i=0)=\\u003e{e.widgets_values||(e.widgets_values=[]),e.widgets_values[i]=t,e.widgets[i].value=t},zt=e=\\u003egraph.add(e),Vt=e=\\u003egraph.remove(e),jt=(e,t=0)=\\u003e{var i,s;if(\\\"Reroute\\\"!==e.type)return[e,t];const n=e,a=null==(s=null==(i=n.inputs)?void 0:i[0])?void 0:s.link;if(!a)return[n,t];const o=Ct(a);if(!o)return[n,t];const l=xt(o.origin_id);return l?(setTimeout((()=\\u003e{Vt(n)})),jt(l,o.origin_slot)):[n,t]},Ut=e=\\u003e{var t,i,s;if(\\\"Reroute\\\"!==e.type)return e;const n=e,a=null==(i=null==(t=n.outputs)?void 0:t[0])?void 0:i.links;if(!a)return n;const o=a[0];if(!o)return n;const l=Ct(o);if(!l)return n;const r=xt(l.target_id);return r?(1===(null==(s=n.outputs[0].links)?void 0:s.length)\\u0026\\u0026setTimeout((()=\\u003e{Vt(n)})),Ut(r)):n},Wt=(e,t=\\\"width\\\")=\\u003e{var i;const s=e[0],n=\\\"width\\\"==t?0:1,a=null==(i=s.size)?void 0:i[n];a\\u0026\\u0026(e.forEach((e=\\u003e{e.size[n]=a})),LGraphCanvas.active_canvas.setDirty(!0,!0))},Ft=(e,t=\\\"horizontal\\\")=\\u003e{if(e.length\\u003c3)return;const i=\\\"horizontal\\\"===t?0:1;e.sort(((e,t)=\\u003ee.pos[i]-t.pos[i]));const s=Math.min(...e.map((e=\\u003ee.pos[i]))),n=(Math.max(...e.map((e=\\u003ee.pos[i]+e.size[i])))-s-e.reduce(((e,t)=\\u003ee+t.size[i]),0))/(e.length-1);let a=s;e.forEach((e=\\u003e{e.pos[i]=a,a+=e.size[i]+n})),LGraphCanvas.active_canvas.setDirty(!0,!0)},Xt=\\\"$$canvas-image-preview\\\";const Zt=\\\"$$comfy_animation_preview\\\";const Ht=\\\"video_upload\\\",qt=(e,t)=\\u003e{if(!e)return!1;const i=(e=\\u003e{var t;return null==(t=e.constructor)?void 0:t.nodeData})(e);if(!(null==i?void 0:i.input))return!1;return(e=\\u003e{if(!e)return[];const{required:t,optional:i}=e,s=[];if(t)for(const n of Object.values(t))s.push(n);if(i)for(const n of Object.values(i))s.push(n);return s})(i.input).some((e=\\u003e{var i;return null==(i=null==e?void 0:e[1])?void 0:i[t]}))};const Yt=e=\\u003enull==e?void 0:e.id.toString(),Kt=e=\\u003efe.nodeOutputs[Yt(e)],Jt=e=\\u003efe.nodePreviewImages[Yt(e)];function Bt(e){var t;const i=Jt(e),s=Kt(e);if((null==i?void 0:i.length)\\u0026\\u0026!e.isOutputFinal)return i;if(!(null==(t=null==s?void 0:s.images)?void 0:t.length))return(null==i?void 0:i.length)?i:void 0;const n=fe.getRandParam(),a=(e=\\u003ee.animatedImages?\\\"\\\":fe.getPreviewFormatParam())(e);return s.images.map((e=\\u003e{const t=new URLSearchParams(e);return ge.apiURL(`/view?${t}${a}${n}`)}))}const Qt=\\\"video-preview\\\",$t={playsInline:!0,controls:!0,loop:!0},ei=(e,t)=\\u003e{const{loadElement:i,onLoaded:s,onFailedLoading:n}=t,a=async(e,t=0)=\\u003e{const s=await Promise.race([i(e),(n=8192,new Promise((e=\\u003esetTimeout((()=\\u003ee(null)),n))))]);var n;return null===s\\u0026\\u0026t\\u003c1?a(e,t+1):s};return{showPreview:function(){var i;if(e.isLoading)return;const o=(null==(i=e.videos)?void 0:i.length)\\u003e0?e.videos.map((e=\\u003e{return t=e,ge.apiURL(`/view?filename=${encodeURIComponent(t.filename)}\\u0026type=${t.type}\\u0026subfolder=${t.subfolder}\\u0026rand=${Math.random()}`);var t})):Bt(e);(null==o?void 0:o.length)\\u0026\\u0026((null==t?void 0:t.block)\\u0026\\u0026(e.isLoading=!0),(async e=\\u003ePromise.all(e.map((e=\\u003ea(e)))))(o).then((e=\\u003e{const t=e.filter((e=\\u003enull!==e));t.length\\u0026\\u0026(null==s||s(t))})).catch((()=\\u003e{null==n||n()})).finally((()=\\u003e{e.isLoading=!1})))}}},ti=e=\\u003e{e.previewMediaType=\\\"image\\\";return ei(e,{loadElement:e=\\u003enew Promise((t=\\u003e{const i=new Image;i.onload=()=\\u003et(i),i.onerror=()=\\u003et(null),i.src=e})),onLoaded:t=\\u003e{e.imageIndex=null,e.imgs=t},onFailedLoading:()=\\u003e{e.imgs=void 0}})},ii=e=\\u003e{e.previewMediaType=\\\"video\\\";return ei(e,{loadElement:e=\\u003enew Promise((t=\\u003e{const i=document.createElement(\\\"video\\\");Object.assign(i,$t),i.onloadeddata=()=\\u003et(i),i.onerror=()=\\u003et(null),i.src=e})),onLoaded:t=\\u003e{const i=t[0];var s,n;i\\u0026\\u0026(e.videoContainer||(e.imgs\\u0026\\u0026(e.imgs=void 0),e.videoContainer=(()=\\u003e{const e=document.createElement(\\\"div\\\");return e.classList.add(\\\"comfy-img-preview\\\"),e})(),e.videoContainer.style.pointerEvents=\\\"auto\\\",s=e.videoContainer,(null==(n=e.widgets)?void 0:n.some((e=\\u003ee.name===Qt)))||e.addDOMWidget(Qt,\\\"video\\\",s,{hideOnZoom:!1,serialize:!1})),e.videoContainer.replaceChildren(i),e.imageOffset=64)},onFailedLoading:()=\\u003e{e.videoContainer=void 0}})};function si(e,t){var i;if(e.flags.collapsed)return;const{showCanvasImagePreview:s,removeCanvasImagePreview:n}=function(){const e=et();return{showCanvasImagePreview:function(t){var i;(null==(i=t.imgs)?void 0:i.length)\\u0026\\u0026t.widgets\\u0026\\u0026(t.widgets.find((e=\\u003ee.name===Xt))||e(t,{type:\\\"IMAGE_PREVIEW\\\",name:Xt}))},removeCanvasImagePreview:function(e){var t,i;if(!e.widgets)return;const s=e.widgets.findIndex((e=\\u003ee.name===Xt));s\\u003e-1\\u0026\\u0026(null==(i=(t=e.widgets[s]).onRemove)||i.call(t),e.widgets.splice(s,1))}}}(),{showVideoPreview:a,removeVideoPreview:o}={showVideoPreview:function(e){var t;(null==(t=e.video)?void 0:t.length)\\u0026\\u0026e.widgets\\u0026\\u0026e.widgets.findIndex((e=\\u003ee.name===Zt))},removeVideoPreview:function(e){var t,i;if(!e.widgets)return;const s=e.widgets.findIndex((e=\\u003e\\\"video-preview\\\"===e.name));s\\u003e-1\\u0026\\u0026(null==(i=(t=e.widgets[s]).onRemove)||i.call(t),e.widgets.splice(s,1))}},l=Kt(e),r=Jt(e),d=l\\u0026\\u0026(e.images!==l.images||e.videos!==l.videos),u=r\\u0026\\u0026e.preview!==r;if(u\\u0026\\u0026(e.isOutputFinal=!1,e.isTwiceRendered\\u0026\\u0026(e.isTwiceRendered=!1),e.preview=r),d\\u0026\\u0026(e.isOutputFinal=!0,l.images\\u0026\\u0026(e.images=l.images),l.videos\\u0026\\u0026(e.videos=l.videos)),d||u){e.animatedImages=null==l?void 0:l.animated;const t=e.animatedImages\\u0026\\u0026l.images.some((e=\\u003e{var t;return null==(t=e.filename)?void 0:t.includes(\\\"webp\\\")})),i=e.animatedImages\\u0026\\u0026!t||!!(c=this)\\u0026\\u0026(!!c.videoContainer||!!c.widgets\\u0026\\u0026qt(c,Ht));d\\u0026\\u0026(null==l?void 0:l.videos)||i?ii(e).showPreview():ti(e).showPreview()}var c;e.id!=fe.runningNodeId\\u0026\\u0026!e.isTwiceRendered\\u0026\\u0026e.isOutputFinal\\u0026\\u0026(e.videos?ii(e.videos):ti(e).showPreview(),e.isTwiceRendered=!0),(null==(i=e.imgs)?void 0:i.length)\\u0026\\u0026(e.animatedImages||d\\u0026\\u0026(null==l?void 0:l.videos)?(n(e),a(e)):(o(e),s(e)))}const ni=[\\\"rescale_after_model\\\",\\\"rescale\\\",\\\"lora_name\\\",\\\"upscale_method\\\",\\\"image_output\\\",\\\"add_noise\\\",\\\"info\\\",\\\"sampler_name\\\",\\\"ckpt_B_name\\\",\\\"ckpt_C_name\\\",\\\"save_model\\\",\\\"refiner_ckpt_name\\\",\\\"num_loras\\\",\\\"num_controlnet\\\",\\\"mode\\\",\\\"toggle\\\",\\\"resolution\\\",\\\"ratio\\\",\\\"target_parameter\\\",\\\"input_count\\\",\\\"replace_count\\\",\\\"downscale_mode\\\",\\\"range_mode\\\",\\\"text_combine_mode\\\",\\\"input_mode\\\",\\\"lora_count\\\",\\\"ckpt_count\\\",\\\"conditioning_mode\\\",\\\"preset\\\",\\\"use_tiled\\\",\\\"use_batch\\\",\\\"num_embeds\\\",\\\"easing_mode\\\",\\\"guider\\\",\\\"scheduler\\\",\\\"inpaint_mode\\\",\\\"t5_type\\\",\\\"rem_mode\\\",\\\"encode\\\",\\\"method\\\"],ai=[\\\"LIGHT - SD1.5 only (low strength)\\\",\\\"STANDARD (medium strength)\\\",\\\"VIT-G (medium strength)\\\",\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\",\\\"PLUS (high strength)\\\",\\\"PLUS (kolors genernal)\\\",\\\"PLUS FACE (portraits)\\\",\\\"FULL FACE - SD1.5 only (portraits stronger)\\\",\\\"COMPOSITION\\\"],oi=[\\\"FACEID\\\",\\\"FACEID PLUS - SD1.5 only\\\",\\\"FACEID PLUS V2\\\",\\\"FACEID PLUS KOLORS\\\",\\\"FACEID PORTRAIT (style transfer)\\\",\\\"FACEID PORTRAIT UNNORM - SDXL only (strong)\\\"],li=[\\\"easy seed\\\",\\\"easy latentNoisy\\\",\\\"easy wildcards\\\",\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingNoiseIn\\\",\\\"easy preSamplingSdTurbo\\\",\\\"easy preSamplingCascade\\\",\\\"easy preSamplingDynamicCFG\\\",\\\"easy preSamplingLayerDiffusion\\\",\\\"easy fullkSampler\\\",\\\"easy fullCascadeKSampler\\\"],ri=[\\\"easy fullLoader\\\",\\\"easy a1111Loader\\\",\\\"easy comfyLoader\\\",\\\"easy hyditLoader\\\",\\\"easy pixArtLoader\\\"],di=[\\\"easy fullkSampler\\\",\\\"easy kSampler\\\",\\\"easy kSamplerCustom\\\",\\\"easy kSamplerTiled\\\",\\\"easy kSamplerLayerDiffusion\\\",\\\"easy kSamplerInpainting\\\",\\\"easy kSamplerDownscaleUnet\\\",\\\"easy kSamplerSDTurbo\\\",\\\"easy fullCascadeKSampler\\\",\\\"easy cascadeKSampler\\\"],ui=[\\\"easy imageSize\\\",\\\"easy imageSizeBySide\\\",\\\"easy imageSizeByLongerSide\\\",\\\"easy imageSizeShow\\\",\\\"easy imageRatio\\\",\\\"easy imagePixelPerfect\\\"],ci=[\\\"easy forLoopStart\\\",\\\"easy forLoopEnd\\\",\\\"easy whileLoopStart\\\",\\\"easy whileLoopEnd\\\"],Ai=[\\\"easy anythingIndexSwitch\\\",\\\"easy imageIndexSwitch\\\",\\\"easy textIndexSwitch\\\",\\\"easy conditioningIndexSwitch\\\"],pi=[\\\"easy anythingInversedSwitch\\\"],hi=[\\\"easy loadImagesForLoop\\\",...ci,...Ai,...pi],mi={\\\"easy anythingInversedSwitch\\\":\\\"out\\\",\\\"easy anythingIndexSwitch\\\":\\\"value\\\",\\\"easy imageIndexSwitch\\\":\\\"image\\\",\\\"easy textIndexSwitch\\\":\\\"text\\\",\\\"easy conditioningIndexSwitch\\\":\\\"cond\\\"};function fi(e,t){var i;const s=e.comfyClass;let n=t.value;switch(t.name){case\\\"range_mode\\\":bt(e,wt(e,\\\"step\\\"),\\\"step\\\"==n),bt(e,wt(e,\\\"num_steps\\\"),\\\"num_steps\\\"==n),St(e);break;case\\\"text_combine_mode\\\":bt(e,wt(e,\\\"replace_text\\\"),\\\"replace\\\"==n);break;case\\\"lora_name\\\":[\\\"lora_model_strength\\\",\\\"lora_clip_strength\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"None\\\"!==n)));break;case\\\"resolution\\\":\\\"自定义 x 自定义\\\"===n\\u0026\\u0026(t.value=\\\"width x height (custom)\\\"),[\\\"empty_latent_width\\\",\\\"empty_latent_height\\\",\\\"width\\\",\\\"height\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"width x height (custom)\\\"===n)));break;case\\\"ratio\\\":[\\\"empty_latent_width\\\",\\\"empty_latent_height\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"custom\\\"===n)));break;case\\\"num_loras\\\":var a=n+1,o=null==(i=wt(e,\\\"mode\\\"))?void 0:i.value;requestAnimationFrame((t=\\u003e{for(let i=0;i\\u003ca;i++)bt(e,wt(e,\\\"lora_\\\"+i+\\\"_name\\\"),!0),bt(e,wt(e,\\\"lora_\\\"+i+\\\"_strength\\\"),\\\"simple\\\"===o),[\\\"lora_\\\"+i+\\\"_model_strength\\\",\\\"lora_\\\"+i+\\\"_clip_strength\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"simple\\\"!==o)));for(let i=a;i\\u003c99;i++)[\\\"lora_\\\"+i+\\\"_name\\\",\\\"lora_\\\"+i+\\\"_strength\\\",\\\"lora_\\\"+i+\\\"_model_strength\\\",\\\"lora_\\\"+i+\\\"_clip_strength\\\"].map((t=\\u003ebt(e,wt(e,t),!1)));St(e)}));break;case\\\"num_controlnet\\\":a=n+1,o=wt(e,\\\"mode\\\").value;for(let t=0;t\\u003ca;t++)[\\\"controlnet_\\\"+t,\\\"controlnet_\\\"+t+\\\"_strength\\\",\\\"scale_soft_weight_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!0))),[\\\"start_percent_\\\"+t,\\\"end_percent_\\\"+t].map((t=\\u003ebt(e,wt(e,t),\\\"simple\\\"!==o)));for(let t=a;t\\u003c21;t++)[\\\"controlnet_\\\"+t,\\\"controlnet_\\\"+t+\\\"_strength\\\",\\\"scale_soft_weight_\\\"+t,\\\"start_percent_\\\"+t,\\\"end_percent_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\"mode\\\":switch(null==e?void 0:e.comfyClass){case\\\"easy loraStack\\\":a=wt(e,\\\"num_loras\\\").value+1,o=n;for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"lora_\\\"+t+\\\"_strength\\\"),\\\"simple\\\"===o),[\\\"lora_\\\"+t+\\\"_model_strength\\\",\\\"lora_\\\"+t+\\\"_clip_strength\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"simple\\\"!==o)));St(e);break;case\\\"easy controlnetStack\\\":a=wt(e,\\\"num_controlnet\\\").value+1,o=n;for(let t=0;t\\u003ca;t++)[\\\"start_percent_\\\"+t,\\\"end_percent_\\\"+t].map((t=\\u003ebt(e,wt(e,t),\\\"simple\\\"!==o)));St(e);break;case\\\"easy icLightApply\\\":o=n;[\\\"lighting\\\",\\\"remove_bg\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"Foreground\\\"===o))),bt(e,wt(e,\\\"source\\\"),\\\"Foreground\\\"!==o),St(e)}break;case\\\"toggle\\\":t.type=\\\"toggle\\\",t.options={on:\\\"Enabled\\\",off:\\\"Disabled\\\"};break;case\\\"t5_type\\\":[\\\"clip_name\\\",\\\"padding\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"sd3\\\"==n))),[\\\"t5_name\\\",\\\"device\\\",\\\"dtype\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"t5v11\\\"==n))),St(e);break;case\\\"preset\\\":if(\\\"FLUX.1-dev\\\"==n\\u0026\\u0026(t.value=\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\"),ai.includes(n)){let t=wt(e,\\\"use_tiled\\\");bt(e,wt(e,\\\"lora_strength\\\")),bt(e,wt(e,\\\"provider\\\"),!![\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\"].includes(n)),bt(e,wt(e,\\\"weight_faceidv2\\\")),bt(e,wt(e,\\\"weight_kolors\\\")),bt(e,wt(e,\\\"use_tiled\\\"),!0),bt(e,wt(e,\\\"sharpening\\\"),t\\u0026\\u0026t.value)}else oi.includes(n)\\u0026\\u0026(bt(e,wt(e,\\\"weight_faceidv2\\\"),!![\\\"FACEID PLUS V2\\\",\\\"FACEID PLUS KOLORS\\\"].includes(n)),bt(e,wt(e,\\\"weight_kolors\\\"),!![\\\"FACEID PLUS KOLORS\\\"].includes(t.value)),[\\\"FACEID PLUS KOLORS\\\",\\\"FACEID PORTRAIT (style transfer)\\\",\\\"FACEID PORTRAIT UNNORM - SDXL only (strong)\\\"].includes(n)?bt(e,wt(e,\\\"lora_strength\\\"),!1):bt(e,wt(e,\\\"lora_strength\\\"),!0),bt(e,wt(e,\\\"provider\\\"),!0),bt(e,wt(e,\\\"use_tiled\\\")),bt(e,wt(e,\\\"sharpening\\\")));St(e);break;case\\\"use_tiled\\\":bt(e,wt(e,\\\"sharpening\\\"),!!n),St(e);break;case\\\"num_embeds\\\":a=n+1;for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"weight\\\"+t),!0);for(let t=a;t\\u003c6;t++)bt(e,wt(e,\\\"weight\\\"+t));St(e);break;case\\\"inpaint_mode\\\":switch(n){case\\\"normal\\\":case\\\"fooocus_inpaint\\\":[\\\"dtype\\\",\\\"fitting\\\",\\\"function\\\",\\\"scale\\\",\\\"start_at\\\",\\\"end_at\\\"].map((t=\\u003ebt(e,wt(e,t),!1)));break;case\\\"brushnet_random\\\":case\\\"brushnet_segmentation\\\":[\\\"dtype\\\",\\\"scale\\\",\\\"start_at\\\",\\\"end_at\\\"].map((t=\\u003ebt(e,wt(e,t),!0))),[\\\"fitting\\\",\\\"function\\\"].map((t=\\u003ebt(e,wt(e,t),!1)));break;case\\\"powerpaint\\\":[\\\"dtype\\\",\\\"fitting\\\",\\\"function\\\",\\\"scale\\\",\\\"start_at\\\",\\\"end_at\\\"].map((t=\\u003ebt(e,wt(e,t),!0)))}St(e);break;case\\\"encode\\\":bt(e,wt(e,\\\"noise_mask\\\"),!![\\\"inpaint_model_conditioning\\\",\\\"different_diffusion\\\"].includes(n)),St(e);break;case\\\"image_output\\\":bt(e,wt(e,\\\"link_id\\\"),!![\\\"Sender\\\",\\\"Sender\\u0026Save\\\"].includes(n)),bt(e,wt(e,\\\"decode_vae_name\\\"),!![\\\"Hide\\\",\\\"Hide\\u0026Save\\\"].includes(n)),[\\\"save_prefix\\\",\\\"output_path\\\",\\\"embed_workflow\\\",\\\"number_padding\\\",\\\"overwrite_existing\\\"].map((t=\\u003ebt(e,wt(e,t),!![\\\"Save\\\",\\\"Hide\\u0026Save\\\",\\\"Sender\\u0026Save\\\"].includes(n))));break;case\\\"add_noise\\\":var l=wt(e,\\\"control_before_generate\\\"),r=wt(e,\\\"control_after_generate\\\")||l;\\\"disable\\\"===n?(bt(e,wt(e,\\\"seed\\\")),r\\u0026\\u0026(r.last_value=r.value,r.value=\\\"fixed\\\",bt(e,r))):(\\\"enable\\\"===n\\u0026\\u0026(t.value=\\\"enable (CPU)\\\"),bt(e,wt(e,\\\"seed\\\"),!0),r\\u0026\\u0026((null==r?void 0:r.last_value)\\u0026\\u0026(r.value=r.last_value),bt(e,r,!0))),St(e);break;case\\\"guider\\\":switch(n){case\\\"Basic\\\":case\\\"IP2P+Basic\\\":[\\\"cfg_negative\\\"].map((t=\\u003ebt(e,wt(e,t))));break;case\\\"CFG\\\":case\\\"IP2P+CFG\\\":bt(e,wt(e,\\\"cfg\\\"),!0),bt(e,wt(e,\\\"cfg_negative\\\"));break;case\\\"DualCFG\\\":case\\\"IP2P+DualCFG\\\":[\\\"cfg\\\",\\\"cfg_negative\\\"].map((t=\\u003ebt(e,wt(e,t),!0)))}St(e);break;case\\\"scheduler\\\":\\\"easy preSamplingCustom\\\"==s\\u0026\\u0026([\\\"karrasADV\\\",\\\"exponentialADV\\\",\\\"polyExponential\\\"].includes(n)?([\\\"sigma_max\\\",\\\"sigma_min\\\"].map((t=\\u003ebt(e,wt(e,t),!0))),[\\\"denoise\\\",\\\"beta_d\\\",\\\"beta_min\\\",\\\"eps_s\\\",\\\"coeff\\\"].map((t=\\u003ebt(e,wt(e,t))),!1),bt(e,wt(e,\\\"rho\\\"),\\\"exponentialADV\\\"!=n)):\\\"vp\\\"==n?([\\\"sigma_max\\\",\\\"sigma_min\\\",\\\"denoise\\\",\\\"rho\\\",\\\"coeff\\\"].map((t=\\u003ebt(e,wt(e,t)))),[\\\"beta_d\\\",\\\"beta_min\\\",\\\"eps_s\\\"].map((t=\\u003ebt(e,wt(e,t),!0)))):([\\\"sigma_max\\\",\\\"sigma_min\\\",\\\"beta_d\\\",\\\"beta_min\\\",\\\"eps_s\\\",\\\"rho\\\"].map((t=\\u003ebt(e,wt(e,t)))),bt(e,wt(e,\\\"coeff\\\"),\\\"gits\\\"==n),bt(e,wt(e,\\\"denoise\\\"),!0)),St(e));break;case\\\"conditioning_mode\\\":[\\\"replace\\\",\\\"concat\\\",\\\"combine\\\"].includes(n)?[\\\"average_strength\\\",\\\"old_cond_start\\\",\\\"old_cond_end\\\",\\\"new_cond_start\\\",\\\"new_cond_end\\\"].map((t=\\u003ebt(e,wt(e,t)))):\\\"average\\\"==n?(bt(e,wt(e,\\\"average_strength\\\"),!0),[\\\"old_cond_start\\\",\\\"old_cond_end\\\",\\\"new_cond_start\\\",\\\"new_cond_end\\\"].map((t=\\u003ebt(e,wt(e,t),!1)))):\\\"timestep\\\"==n\\u0026\\u0026([\\\"average_strength\\\"].map((t=\\u003ebt(e,wt(e,t),!1))),[\\\"old_cond_start\\\",\\\"old_cond_end\\\",\\\"new_cond_start\\\",\\\"new_cond_end\\\"].map((t=\\u003ebt(e,wt(e,t),!0))));break;case\\\"rescale\\\":wt(e,\\\"rescale_after_model\\\").value,bt(e,wt(e,\\\"width\\\"),\\\"to Width/Height\\\"===n),bt(e,wt(e,\\\"height\\\"),\\\"to Width/Height\\\"===n),bt(e,wt(e,\\\"percent\\\"),\\\"by percentage\\\"===n),bt(e,wt(e,\\\"longer_side\\\"),\\\"to longer side - maintain aspect\\\"===n),St(e);break;case\\\"upscale_method\\\":[\\\"factor\\\",\\\"crop\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"None\\\"!==n)));break;case\\\"target_parameter\\\":switch(s){case\\\"easy XYInputs: Steps\\\":[\\\"first_step\\\",\\\"last_step\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"steps\\\"==n))),[\\\"first_start_step\\\",\\\"last_start_step\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"start_at_step\\\"==n))),[\\\"first_end_step\\\",\\\"last_end_step\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"end_at_step\\\"==n)));break;case\\\"easy XYInputs: Sampler/Scheduler\\\":let t=wt(e,\\\"input_count\\\").value+1;for(let i=0;i\\u003ct;i++)bt(e,wt(e,\\\"sampler_\\\"+i),\\\"scheduler\\\"!==n),bt(e,wt(e,\\\"scheduler_\\\"+i),\\\"sampler\\\"!==n);St(e);break;case\\\"easy XYInputs: ControlNet\\\":[\\\"first_strength\\\",\\\"last_strength\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"strength\\\"==n))),[\\\"first_start_percent\\\",\\\"last_start_percent\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"start_percent\\\"==n))),[\\\"first_end_percent\\\",\\\"last_end_percent\\\"].map((t=\\u003ebt(e,wt(e,t),\\\"end_percent\\\"==n))),[\\\"strength\\\",\\\"start_percent\\\",\\\"end_percent\\\"].map((t=\\u003ebt(e,wt(e,t),n!=t))),St(e)}case\\\"replace_count\\\":a=n+1;for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"replace_\\\"+t),!0);for(let t=a;t\\u003c31;t++)bt(e,wt(e,\\\"replace_\\\"+t));St(e);break;case\\\"lora_count\\\":a=n+1;var d=-1==wt(e,\\\"input_mode\\\").value.indexOf(\\\"Weights\\\");for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"lora_name_\\\"+t),!0),[\\\"model_str_\\\"+t,\\\"clip_str_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!d)));for(let t=a;t\\u003c11;t++)[\\\"lora_name_\\\"+t,\\\"model_str_\\\"+t,\\\"clip_str_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\"ckpt_count\\\":a=n+1;var u=-1!=wt(e,\\\"input_mode\\\").value.indexOf(\\\"ClipSkip\\\"),c=-1!=wt(e,\\\"input_mode\\\").value.indexOf(\\\"VAE\\\");for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"ckpt_name_\\\"+t),!0),bt(e,wt(e,\\\"clip_skip_\\\"+t),!!u),bt(e,wt(e,\\\"vae_name_\\\"+t),!!c);for(let t=a;t\\u003c11;t++)[\\\"ckpt_name_\\\"+t,\\\"clip_skip_\\\"+t,\\\"vae_name_\\\"+t].map((t=\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\"input_count\\\":a=n+1;var A=wt(e,\\\"target_parameter\\\").value;for(let t=0;t\\u003ca;t++)bt(e,wt(e,\\\"sampler_\\\"+t),\\\"scheduler\\\"!==A),bt(e,wt(e,\\\"scheduler_\\\"+t),\\\"sampler\\\"!==A);for(let t=a;t\\u003c31;t++)bt(e,wt(e,\\\"sampler_\\\"+t)),bt(e,wt(e,\\\"scheduler_\\\"+t));St(e);break;case\\\"input_mode\\\":switch(s){case\\\"easy XYInputs: Lora\\\":a=wt(e,\\\"lora_count\\\").value+1;const t=-1!=n.indexOf(\\\"Weights\\\");for(let i=0;i\\u003ca;i++)bt(e,wt(e,\\\"lora_name_\\\"+i),!0),[\\\"model_str_\\\"+i,\\\"clip_str_\\\"+i].map((i=\\u003ebt(e,wt(e,i),!!t)));[\\\"model_strength\\\",\\\"clip_strength\\\"].map((i=\\u003ebt(e,wt(e,i),!t)));break;case\\\"easy XYInputs: Checkpoint\\\":a=wt(e,\\\"ckpt_count\\\").value+1,u=-1!=wt(e,\\\"input_mode\\\").value.indexOf(\\\"ClipSkip\\\"),c=-1!=wt(e,\\\"input_mode\\\").value.indexOf(\\\"VAE\\\");for(let i=0;i\\u003ca;i++)bt(e,wt(e,\\\"ckpt_name_\\\"+i),!0),bt(e,wt(e,\\\"clip_skip_\\\"+i),!!u),bt(e,wt(e,\\\"vae_name_\\\"+i),!!c)}St(e);break;case\\\"rem_mode\\\":bt(e,wt(e,\\\"torchscript_jit\\\"),\\\"Inspyrenet\\\"===n),bt(e,wt(e,\\\"refine_foreground\\\"),\\\"BEN2\\\"===n),St(e)}}fe.registerExtension({name:\\\"Comfy.EasyUse.Widget\\\",async beforeRegisterNodeDef(e,t,i){var s;const n=t.name,a=e.prototype.onAdded,o=e.prototype.onNodeCreated,l=e.prototype.onConfigure,r=e.prototype.onExecuted,d=e.prototype.onConnectionsChange;if([\\\"easy showAnything\\\",\\\"easy showAnythingLazy\\\",\\\"easy showTensorShape\\\",\\\"easy showSpentTime\\\",\\\"easy imageInterrogator\\\",\\\"easy showLoaderSettingsNames\\\"].includes(n)){let s=function(e,t=\\\"text\\\"){var s,n;if(this.widgets){const e=this.widgets.findIndex((e=\\u003ee.name===t));if(-1!==e){for(let t=e;t\\u003cthis.widgets.length;t++)null==(n=(s=this.widgets[t]).onRemove)||n.call(s);this.widgets.length=e}}for(const a of e){const e=we.STRING(this,\\\"text\\\",[\\\"STRING\\\",{multiline:!0}],i).widget;e.element\\u0026\\u0026(e.element.readOnly=!0,e.element.style.opacity=.6),e.value=a}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments),s.call(this,e.text,\\\"text\\\")},[\\\"easy imageInterrogator\\\"].includes(t.name)||(e.prototype.onConfigure=function(){var e;null==l||l.apply(this,arguments);let t=\\\"text\\\";switch(n){case\\\"easy showLoaderSettingsNames\\\":t=\\\"names\\\";break;case\\\"easy showSpentTime\\\":t=\\\"spent_time\\\";break;default:t=\\\"text\\\"}(null==(e=this.widgets_values)?void 0:e.length)\\u0026\\u0026s.call(this,this.widgets_values,t)})}if(ui.includes(n)){let t=function(e){if(this.widgets){const t=this.widgets.findIndex((e=\\u003e\\\"info\\\"===e.name));if(-1!==t\\u0026\\u0026this.widgets[t]){this.widgets[t].value=e}}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments);var i=\\\"\\\";for(let t=0;t\\u003ce.text.length;t++)i+=e.text[t];t.call(this,i)}}if(\\\"easy promptLine\\\"==n\\u0026\\u0026(e.prototype.onAdded=async function(){a\\u0026\\u0026a.apply(this,[]);let e=this.widgets.find((e=\\u003e\\\"prompt\\\"==e.name));this.addWidget(\\\"button\\\",\\\"get values from COMBO link\\\",\\\"\\\",(()=\\u003e{var t,s;const n=(null==(s=null==(t=this.outputs[1])?void 0:t.links)?void 0:s.length)\\u003e0?this.outputs[1].links[0]:null,a=i.graph._nodes.find((e=\\u003e{var t;return null==(t=e.inputs)?void 0:t.find((e=\\u003ee.link==n))}));if(n\\u0026\\u0026a){const t=a.inputs.find((e=\\u003ee.link==n)).widget.name,i=a.widgets.find((e=\\u003ee.name==t));let s=(null==i?void 0:i.options.values)||null;s\\u0026\\u0026(s=s.join(\\\"\\\\n\\\"),e.value=s)}else Ye.error(Ne(\\\"No COMBO link\\\"),3e3)}),{serialize:!1})}),ri.includes(t.name)){let t=function(e){var t=\\\"\\\";for(let i=0;i\\u003ce.length;i++)t+=e[i];return t},i=function(e,t=\\\"positive\\\"){if(this.widgets){const i=this.widgets.findIndex((e=\\u003ee.name===t+\\\"_prompt\\\")),s=\\\"comfy-multiline-input wildcard_\\\"+t+\\\"_\\\"+this.id.toString();if(-1==i\\u0026\\u0026e){const i=document.createElement(\\\"textarea\\\");i.className=s,i.placeholder=\\\"Wildcard Prompt (\\\"+t+\\\")\\\";const n=this.addDOMWidget(t+\\\"_prompt\\\",\\\"customtext\\\",i,{getValue:e=\\u003ei.value,setValue(e){i.value=e},serialize:!1});n.inputEl=i,n.inputEl.readOnly=!0,i.addEventListener(\\\"input\\\",(()=\\u003e{var e;null==(e=n.callback)||e.call(n,n.value)})),n.value=e}else if(this.widgets[i])if(e){this.widgets[i].value=e}else{this.widgets.splice(i,1);const e=document.getElementsByClassName(s);e\\u0026\\u0026e[0]\\u0026\\u0026e[0].remove()}}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments);const s=t(e.positive),n=t(e.negative);i.call(this,s,\\\"positive\\\"),i.call(this,n,\\\"negative\\\")}}if([\\\"easy sv3dLoader\\\"].includes(t.name)){let t=function(e,t,i){switch(e){case\\\"azimuth\\\":return i.readOnly=!0,i.style.opacity=.6,\\\"0:(0.0,0.0)\\\"+(t\\u003e1?`\\\\n${t-1}:(360.0,0.0)`:\\\"\\\");case\\\"elevation\\\":return i.readOnly=!0,i.style.opacity=.6,\\\"0:(-90.0,0.0)\\\"+(t\\u003e1?`\\\\n${t-1}:(90.0,0.0)`:\\\"\\\");case\\\"custom\\\":return i.readOnly=!1,i.style.opacity=1,\\\"0:(0.0,0.0)\\\\n9:(180.0,0.0)\\\\n20:(360.0,0.0)\\\"}};e.prototype.onNodeCreated=async function(){o\\u0026\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\u003e\\\"easing_mode\\\"==e.name)),i=this.widgets.find((e=\\u003e\\\"batch_size\\\"==e.name)),s=this.widgets.find((e=\\u003e\\\"scheduler\\\"==e.name));setTimeout((n=\\u003e{s.value||(s.value=t(e.value,i.value,s.inputEl))}),1),e.callback=e=\\u003e{s.value=t(e,i.value,s.inputEl)},i.callback=i=\\u003e{s.value=t(e.value,i,s.inputEl)}}}if(li.includes(n)\\u0026\\u0026(e.prototype.onNodeCreated=async function(){o\\u0026\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\u003e[\\\"seed_num\\\",\\\"seed\\\"].includes(e.name))),s=this.widgets.find((e=\\u003e[\\\"control before generate\\\",\\\"control after generate\\\",\\\"control_before_generate\\\",\\\"control_after_generate\\\"].includes(e.name)));if(\\\"easy seed\\\"==t.name\\u0026\\u0026s){const t=this.addWidget(\\\"button\\\",\\\"🎲 Manual Random Seed\\\",null,(t=\\u003e{\\\"fixed\\\"!=s.value\\u0026\\u0026(s.value=\\\"fixed\\\"),e.value=Math.floor(Math.random()*Oe),i.queuePrompt(0,1)}),{serialize:!1});e.linkedWidgets=[t,s]}},e.prototype.onAdded=async function(){a\\u0026\\u0026a.apply(this,[]);const e=this.widgets.find((e=\\u003e[\\\"seed_num\\\",\\\"seed\\\"].includes(e.name))),t=this.widgets.find((e=\\u003e[\\\"control before generate\\\",\\\"control after generate\\\",\\\"control_before_generate\\\",\\\"control_after_generate\\\"].includes(e.name)));t\\u0026\\u0026setTimeout((i=\\u003e{[\\\"control before generate\\\",\\\"control_before_generate\\\"].includes(t.name)\\u0026\\u00260===e.value\\u0026\\u0026(e.value=Math.floor(Math.random()*Oe))}),1)}),\\\"easy convertAnything\\\"==n\\u0026\\u0026(e.prototype.onNodeCreated=async function(){o\\u0026\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\u003e\\\"output_type\\\"==e.name)),t=t=\\u003e{this.outputs[0].type=e.value.toUpperCase(),this.outputs[0].name=e.value,this.outputs[0].label=e.value};setTimeout((e=\\u003et()),10),e.callback=e=\\u003et()}),\\\"easy imageInsetCrop\\\"==n){let t=function(e){const t=e.widgets[0];for(let i=1;i\\u003c=4;i++)\\\"Pixels\\\"===t.value?(e.widgets[i].options.step=80,void 0!==e.widgets[i].options.step2\\u0026\\u0026(e.widgets[i].options.step2=8),e.widgets[i].options.max=8192):(e.widgets[i].options.step=10,void 0!==e.widgets[i].options.step2\\u0026\\u0026(e.widgets[i].options.step2=1),e.widgets[i].options.max=99)};e.prototype.onAdded=async function(e){const i=this.widgets[0];let s=i.callback;i.callback=(...e)=\\u003e{t(this),s\\u0026\\u0026s.apply(i,[...e])},setTimeout((e=\\u003e{t(this)}),1)}}if(hi.includes(n)){const t=e=\\u003e{switch(n){case\\\"easy forLoopStart\\\":case\\\"easy whileLoopStart\\\":return 0;case\\\"easy forLoopEnd\\\":case\\\"easy whileLoopEnd\\\":return 1}},i=e=\\u003e{switch(n){case\\\"easy forLoopStart\\\":return 2;case\\\"easy forLoopEnd\\\":case\\\"easy whileLoopEnd\\\":return 0;case\\\"easy whileLoopStart\\\":return 1}};e.prototype.onNodeCreated=async function(){if(\\\"easy loadImagesForLoop\\\"==n\\u0026\\u0026(this.outputs[0].shape=5),ci.includes(n)){const e=this.inputs.findIndex((e=\\u003e\\\"flow\\\"===e.name)),s=this.outputs.findIndex((e=\\u003e\\\"flow\\\"===e.name));-1!==e\\u0026\\u0026(this.inputs[e].shape=5),-1!==s\\u0026\\u0026(this.outputs[s].shape=5),this.inputs=this.inputs.filter(((e,i)=\\u003ei\\u003c=t()||e.widget)),this.outputs=this.outputs.filter(((e,t)=\\u003et\\u003c=i())),St(this)}return Ai.includes(n)\\u0026\\u0026(\\\"easy textIndexSwitch\\\"==n\\u0026\\u0026(this.widgets=this.widgets.filter(((e,t)=\\u003et\\u003c=2))),this.inputs=this.inputs.filter(((e,t)=\\u003et\\u003c=1||e.widget)),St(this)),null==o?void 0:o.apply(this,arguments)},e.prototype.onConnectionsChange=function(e,s,a,o){var l,r;if(o)if(1==e){let e=this.inputs.every((e=\\u003enull!==e.link||e.widget)),i=this.inputs.filter((e=\\u003e![\\\"condition\\\",\\\"index\\\",\\\"total\\\"].includes(e.name)));if(ci.includes(n)){if(e){if(i.length\\u003e=20)return void Ye.warn(Ne(\\\"The maximum number of inputs is 20\\\"));let e=i[i.length-1],t=parseInt(e.name.split(\\\"initial_value\\\")[1])+1;if(this.inputs.find((e=\\u003ee.name===\\\"initial_value\\\"+t)))return;let s=\\\"initial_value\\\"+t,n=\\\"value\\\"+t;this.addInput(s,\\\"*\\\"),this.addOutput(n,\\\"*\\\")}else if(!a){const e=t();let i=this.inputs.findLastIndex((e=\\u003ee.link));if(s\\u003e=e\\u0026\\u0026(-1===i||s\\u003e=i)){let e=this.inputs[s];if(!e.name||[\\\"condition\\\",\\\"total\\\"].includes(e.name))return;let t=parseInt(e.name.split(\\\"initial_value\\\")[1])+1,i=this.inputs.findIndex((e=\\u003ee.name===\\\"initial_value\\\"+t)),n=this.outputs.findIndex((e=\\u003ee.name===\\\"value\\\"+t));-1!==i\\u0026\\u0026this.removeInput(i),-1!==n\\u0026\\u0026this.removeOutput(n)}}}else if(Ai.includes(n))if(e){if(i.length\\u003e=20)return void Ye.warn(Ne(\\\"The maximum number of inputs is 20\\\"));let e=mi[n]+i.length;this.addInput(e,\\\"*\\\")}else a||s==this.inputs.length-2\\u0026\\u0026this.removeInput(s+1)}else if(2==e){let e=this.outputs.filter((e=\\u003e![\\\"flow\\\",\\\"index\\\"].includes(e.name))),t=e.every((e=\\u003e{var t;return(null==(t=e.links)?void 0:t.length)\\u003e0}));if(ci.includes(n)){if(t){if(e.length\\u003e=20)return void Ye.warn(Ne(\\\"The maximum number of outputs is 20\\\"));let t=e[e.length-1],i=parseInt(t.name.split(\\\"value\\\")[1])+1;if(this.inputs.find((e=\\u003ee.name===\\\"initial_value\\\"+i)))return;if(this.outputs.find((e=\\u003ee.name===\\\"value\\\"+i)))return;let s=\\\"initial_value\\\"+i,n=\\\"value\\\"+i;this.addInput(s,\\\"*\\\"),this.addOutput(n,\\\"*\\\")}else if(!a){const e=i();let t=o.origin_slot,s=this.outputs.findLastIndex((e=\\u003e{var t;return(null==(t=e.links)?void 0:t.length)\\u003e0}));if(t\\u003e=e\\u0026\\u0026(-1===s||t\\u003e=s)){let e=this.outputs[t];if(!e.name||[\\\"flow\\\",\\\"index\\\"].includes(e.name))return;let i=parseInt(e.name.split(\\\"value\\\")[1])+1,s=this.inputs.findIndex((e=\\u003ee.name===\\\"initial_value\\\"+i)),n=this.outputs.findIndex((e=\\u003ee.name===\\\"value\\\"+i));if(-1!==s\\u0026\\u0026(null==(l=this.inputs[s])?void 0:l.link))return;-1!==s\\u0026\\u0026this.removeInput(s),-1!==n\\u0026\\u0026this.removeOutput(n)}}}else if(pi.includes(n))if(t){if(e.length\\u003e=20)return void Ye.warn(Ne(\\\"The maximum number of outputs is 20\\\"));let t=mi[n]+e.length;this.addOutput(t,\\\"*\\\")}else if(!a){let t=o.origin_slot;t==this.outputs.length-2\\u0026\\u00260==(null==(r=e[t].links)?void 0:r.length)\\u0026\\u0026this.removeOutput(t+1)}}}}if([\\\"easy fluxLoader\\\",\\\"easy fullLoader\\\"].includes(n)\\u0026\\u0026(e.prototype.onConnectionsChange=async function(e,t){d\\u0026\\u0026d.apply(this,[]);const i=this.inputs.find((e=\\u003e\\\"model_override\\\"===e.name)),s=this.inputs.find((e=\\u003e\\\"vae_override\\\"===e.name));let n=wt(this,\\\"ckpt_name\\\"),a=wt(this,\\\"vae_name\\\");if((null==i?void 0:i.link)\\u0026\\u00260==t){const e=(null==n?void 0:n.options.values)||[];setTimeout((t=\\u003e{this.widgets[0].value=(null==e?void 0:e[0])||\\\"None\\\",bt(this,n,!(null==i?void 0:i.link))}),1)}else bt(this,n,!(null==i?void 0:i.link));if(!(null==s?void 0:s.link)||1!=t\\u0026\\u00262!=t)bt(this,a,!(null==s?void 0:s.link));else{let e=this.widgets.findIndex((e=\\u003e\\\"vae_name\\\"==e.name));setTimeout((t=\\u003e{this.widgets[e].value=\\\"Baked VAE\\\",bt(this,a,!(null==s?void 0:s.link))}),1)}}),di.includes(n)||-1!==n.indexOf(\\\"workflow\\\")){const i=(null==(s=null==t?void 0:t.input)?void 0:s.required)||{};if(!i.image_output\\u0026\\u0026!i[\\\"图像输出\\\"]\\u0026\\u0026!i[\\\"视频输出\\\"])return;e.prototype.onDrawBackground=function(e){try{si(this)}catch(t){}}}},nodeCreated(e){if(e.comfyClass.startsWith(\\\"easy \\\")){if(e.widgets)for(const i of e.widgets){if(!ni.includes(i.name))continue;let t=i.value;fi(e,i),Object.defineProperty(i,\\\"value\\\",{get:e=\\u003et,set(s){s!==t\\u0026\\u0026(t=s,requestAnimationFrame((t=\\u003e{fi(e,i)})))}})}const t=e.comfyClass;if(\\\"easy preDetailerFix\\\"==t){const t=e.widgets.find((e=\\u003e\\\"customtext\\\"===e.type));if(!t)return;t.dynamicPrompts=!1,t.inputEl.placeholder=\\\"wildcard spec: if kept empty, this option will be ignored\\\",t.serializeValue=()=\\u003et.value}if([\\\"easy wildcards\\\",\\\"easy wildcardsMatrix\\\"].includes(t)){const t=e.widgets.find((e=\\u003e\\\"text\\\"==e.name));let i=1;Object.defineProperty(e.widgets[i],\\\"value\\\",{set:e=\\u003e{if(\\\"Select the LoRA to add to the text\\\"!=e){let i=e;i.endsWith(\\\".safetensors\\\")\\u0026\\u0026(i=i.slice(0,-12)),t.value+=`\\u003clora:${i}\\u003e`}},get:e=\\u003e\\\"Select the LoRA to add to the text\\\"}),Object.defineProperty(e.widgets[i+1],\\\"value\\\",{set:e=\\u003e{\\\"Select the Wildcard to add to the text\\\"!=e\\u0026\\u0026(\\\"\\\"!=t.value\\u0026\\u0026(t.value+=\\\", \\\"),t.value+=e)},get:e=\\u003e\\\"Select the Wildcard to add to the text\\\"}),e.widgets[i].serializeValue=e=\\u003e\\\"Select the LoRA to add to the text\\\",e.widgets[i+1].serializeValue=e=\\u003e\\\"Select the Wildcard to add to the text\\\"}if(\\\"easy prompt\\\"==t){const t=e.widgets.find((e=\\u003e\\\"text\\\"==e.name));let i=1;Object.defineProperty(e.widgets[i],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"Select the prefix to add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\" \\\"+s)},get:e=\\u003e\\\"Select the prefix to add to the text\\\"}),Object.defineProperty(e.widgets[i+1],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"👤Select the subject add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+1])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\" \\\"+s)},get:e=\\u003e\\\"👤Select the subject add to the text\\\"}),Object.defineProperty(e.widgets[i+2],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"🎬Select the action add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+2])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\",\\\"+s)},get:e=\\u003e\\\"🎬Select the action add to the text\\\"}),Object.defineProperty(e.widgets[i+3],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"👚Select the clothes add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+3])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\",\\\"+s)},get:e=\\u003e\\\"👚Select the clothes add to the text\\\"}),Object.defineProperty(e.widgets[i+4],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"☀️Select the illumination environment add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+4])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\",\\\"+s)},get:e=\\u003e\\\"☀️Select the illumination environment add to the text\\\"}),Object.defineProperty(e.widgets[i+5],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"🎞️Select the background add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+5])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\" \\\"+s)},get:e=\\u003e\\\"🎞️Select the background add to the text\\\"}),Object.defineProperty(e.widgets[i+6],\\\"value\\\",{set:s=\\u003e{var n,a;\\\"🔞Select the nsfw add to the text\\\"!=s\\u0026\\u0026(null==(a=null==(n=e.widgets[i+6])?void 0:n.options)?void 0:a.values.includes(s))\\u0026\\u0026(\\\"\\\"==t.value?t.value+=s:t.value+=\\\",\\\"+s)},get:e=\\u003e\\\"🔞Select the nsfw add to the text\\\"}),e.widgets[i].serializeValue=e=\\u003e\\\"Select the prefix add to the text\\\",e.widgets[i+1].serializeValue=e=\\u003e\\\"👤Select the subject add to the text\\\",e.widgets[i+2].serializeValue=e=\\u003e\\\"🎬Select the action add to the text\\\",e.widgets[i+3].serializeValue=e=\\u003e\\\"👚Select the clothes add to the text\\\",e.widgets[i+4].serializeValue=e=\\u003e\\\"☀️Select the illumination environment add to the text\\\",e.widgets[i+5].serializeValue=e=\\u003e\\\"🎞️Select the background add to the text\\\",e.widgets[i+6].serializeValue=e=\\u003e\\\"🔞Select the nsfw add to the text\\\"}if(ui.includes(t)){const t=document.createElement(\\\"textarea\\\");t.className=\\\"comfy-multiline-input\\\",t.readOnly=!0;const i=e.addDOMWidget(\\\"info\\\",\\\"customtext\\\",t,{getValue:e=\\u003et.value,setValue:e=\\u003et.value=e,serialize:!1});i.inputEl=t,t.addEventListener(\\\"input\\\",(()=\\u003e{var e;null==(e=i.callback)||e.call(i,i.value)}))}}}});const gi=LiteGraph.LGraphNode;fe.registerExtension({name:\\\"easy bookmark\\\",registerCustomNodes(){class e extends gi{constructor(){super(\\\"🔖\\\"),v(this,\\\"type\\\",\\\"easy bookmark\\\"),v(this,\\\"title\\\",\\\"🔖\\\"),v(this,\\\"slot_start_y\\\",-20),v(this,\\\"___collapsed_width\\\",0),v(this,\\\"isVirtualNode\\\",!0),v(this,\\\"serialize_widgets\\\",!0),v(this,\\\"keypressBound\\\",null),this.addWidget(\\\"text\\\",\\\"shortcut_key\\\",\\\"1\\\",(e=\\u003e{\\\"\\\"!==(e=e.trim()[0]||\\\"1\\\")\\u0026\\u0026(this.title=\\\"🔖 \\\"+e)}),{y:8}),this.addWidget(\\\"number\\\",\\\"zoom\\\",1,(e=\\u003e{}),{y:8+LiteGraph.NODE_WIDGET_HEIGHT+4,max:2,min:.5,precision:2}),this.keypressBound=this.onKeypress.bind(this)}get _collapsed_width(){return this.___collapsed_width}set _collapsed_width(e){const t=fe.canvas,i=t.canvas.getContext(\\\"2d\\\");if(i){const e=i.font;i.font=t.title_text_font,this.___collapsed_width=40+i.measureText(this.title).width,i.font=e}}onAdded(){setTimeout((e=\\u003e{const t=this.widgets[0].value;t\\u0026\\u0026(this.title=\\\"🔖 \\\"+t)}),1),window.addEventListener(\\\"keydown\\\",this.keypressBound)}onRemoved(){window.removeEventListener(\\\"keydown\\\",this.keypressBound)}onKeypress(e){const t=e.target;[\\\"input\\\",\\\"textarea\\\"].includes(t.localName)||this.widgets[0]\\u0026\\u0026e.key.toLocaleLowerCase()===this.widgets[0].value.toLocaleLowerCase()\\u0026\\u0026this.canvasToBookmark()}canvasToBookmark(){var e,t;const i=fe.canvas;(null==(e=null==i?void 0:i.ds)?void 0:e.offset)\\u0026\\u0026(i.ds.offset[0]=16-this.pos[0],i.ds.offset[1]=40-this.pos[1]),null!=(null==(t=null==i?void 0:i.ds)?void 0:t.scale)\\u0026\\u0026(i.ds.scale=Number(this.widgets[1].value||1)),i.setDirty(!0,!0)}}LiteGraph.registerNodeType(\\\"easy bookmark\\\",Object.assign(e,{title:\\\"Bookmark 🔖\\\"})),e.category=\\\"EasyUse/Util\\\"}}),fe.registerExtension({name:\\\"Comfy.EasyUse.ChainNode\\\",init(){fe.canvas._mousemove_callback=e=\\u003e{xe(\\\"EasyUse.Nodes.ChainGetSet\\\",null)\\u0026\\u0026((e=!1,t={})=\\u003e{var i,s,n,a,o;const l=Dt();if(!l||l.length\\u003c1)return;const r=Lt();if(0===r.length)return;let d=t.inputX||160,u=t.ouputX||60;if(r.filter((e=\\u003eMt(e))).length\\u003e1)return;for(const A of r){let a=t.inputY||10,o=t.outputY||30;const l=[],c=A.id;if(A.graph){Rt[c]||(Rt[c]=[]);for(const e of A.inputs??[]){const t=e.link;if(!t)continue;const{origin_id:i,target_slot:s}=Ct(t),n=xt(i);if(!n)continue;if(!Mt(n))continue;let o=A.getConnectionPos(!0,s);Rt[c][s]||(Rt[c][s]=o),!Rt[c]||Rt[c][s][1]===o[1]\\u0026\\u0026Rt[c][s][0]===o[0]||(d=o[0]-Rt[c][s][0],a=o[1]-Rt[c][s][1],n.pos=[n.pos[0]+d,n.pos[1]+a]),Rt[c][s]=o,l.push(n)}Pt[c]||(Pt[c]=[]);for(const e of A.outputs??[])if(e.links\\u0026\\u0026A.graph)for(const t of e.links){const{target_id:e,target_slot:s,origin_slot:n}=Ct(t),a=xt(e);if(!a)continue;if(!Mt(a))continue;const r=null==(i=a.outputs)?void 0:i.links;if((null==r?void 0:r.length)\\u003e1)return;const d=A.getConnectionPos(!1,n);Pt[c][n]||(Pt[c][n]=d),!Pt[c]||Pt[c][n][0]===d[0]\\u0026\\u0026Pt[c][n][1]===d[1]||(u=d[0]-Pt[c][n][0],o=d[1]-Pt[c][n][1],a.pos=[a.pos[0]+u,a.pos[1]+o]),Pt[c][n]=d,l.push(a)}if(e\\u0026\\u00261===r.length){const e=[A,...l];(null==(n=null==(s=A.graph)?void 0:s.list_of_graphcanvas)?void 0:n[0]).selectNodes(e)}}}const c=r[0];if(!c)return;(null==(o=null==(a=c.graph)?void 0:a.list_of_graphcanvas)?void 0:o[0]).setDirty(!0,!0)})()};const e=LGraphCanvas.prototype.showLinkMenu;LGraphCanvas.prototype.showLinkMenu=st(e,(function(t,i){return i.shiftKey?(((e,t=!1)=\\u003e{var i,s,n,a,o,l,r,d,u,c;const{type:A}=e;if(\\\"*\\\"===A)return;let{origin_id:p,target_id:h,origin_slot:m,target_slot:f}=e,g=xt(p),v=xt(h);if(!g||!v)return!1;if(\\\"Reroute\\\"===g.type){let e=0;[g,e]=jt(g),p=null==g?void 0:g.id,m=e,void 0!==m\\u0026\\u0026-1!==m||(m=0)}if(\\\"Reroute\\\"===v.type\\u0026\\u0026(v=Ut(v),h=null==v?void 0:v.id,f=null==v?void 0:v.inputs.findIndex((e=\\u003ee.type===A)),void 0!==f\\u0026\\u0026-1!==f||(f=0)),void 0===p||void 0===h||!g||!v)return!1;if(t\\u0026\\u0026(Mt(g)||Mt(v)))return!1;let y=It((null==(i=v.getInputInfo(f))?void 0:i.name)??A.toLowerCase());y||(y=It((null==(n=null==(s=null==g?void 0:g.outputs)?void 0:s[m])?void 0:n.name)??(null==(o=null==(a=null==g?void 0:g.outputs)?void 0:a[m])?void 0:o.type.toString())??y+`_from_${p}_to_${h}`));let w,b=!1,_=!1;if(Mt(g))y=_t(g),_=!0;else{const e=null==(r=null==(l=g.outputs)?void 0:l[m])?void 0:r.links;if(e)for(const t of e){const e=xt((null==(d=Ct(t))?void 0:d.target_id)??-1);e\\u0026\\u0026Mt(e)\\u0026\\u0026Ot(e)\\u0026\\u0026(y=_t(e),_=!0)}if(!_){for(const e of Dt()){if(y!==_t(e)||!Ot(e))continue;const t=null==(u=e.inputs[0])?void 0:u.link;(null==(c=Ct(t))?void 0:c.origin_id)===g.id?_=!0:b=!0}b\\u0026\\u0026(y+=`_from_${p}_to_${h}`)}}if(!_){w=LiteGraph.createNode(\\\"easy setNode\\\"),w.is_auto_link=!0;const e=g.getConnectionPos(!1,m);w.pos=[e[0]+20,e[1]],w.inputs[0].name=y,w.inputs[0].type=A,w.inputs[0].widget=v.inputs[f].widget,Gt(w,y),zt(w),w.flags.collapsed=!0;let t=[];g.widgets?t=Object.values(g.widgets).map((e=\\u003ee.value)):g.widgets_values\\u0026\\u0026(t=JSON.parse(JSON.stringify(g.widgets_values))),g.connect(m,w,0),g.widgets_values=t,\\\"PrimitiveNode\\\"===g.type\\u0026\\u0026setTimeout((()=\\u003e{if(g){g.connect(m,w,0);for(const[e,i]of t.entries())Gt(g,i,e);null!==w\\u0026\\u0026w.setSize(w.computeSize())}}))}const S=LiteGraph.createNode(\\\"easy getNode\\\"),x=v.getConnectionPos(!0,f);S.pos=[x[0]-150,x[1]],S.outputs[0].name=y,S.outputs[0].type=A,S.outputs[0].widget=v.inputs[f].widget,zt(S),Gt(S,y),null===S||(S.flags.collapsed=!0,S.setSize(S.computeSize()),S.connect(0,v,f))})(t),!1):(e.apply(this,[t,i]),!1)}))}});const vi=async()=\\u003e{try{const{Running:e,Pending:t}=await ge.getQueue();if(e.length\\u003e0||t.length\\u003e0)return void Ye.error(Ne(\\\"Clean Failed\\\")+\\\":\\\"+Ne(\\\"Please stop all running tasks before cleaning GPU\\\"));200==(await ge.fetchApi(\\\"/easyuse/cleangpu\\\",{method:\\\"POST\\\"})).status?Ye.success(Ne(\\\"Clean SuccessFully\\\")):Ye.error(Ne(\\\"Clean Failed\\\"))}catch(e){}};let yi={},wi=!1;function bi(e,t,i,s,n){var a=LGraphCanvas.active_canvas,o=a.getCanvasWindow(),l=a.graph;if(l)return function e(t,s){var r=LiteGraph.getNodeTypesCategories(a.filter||l.filter).filter((function(e){return e.startsWith(t)})),d=[];r.map((function(i){if(i){var s=new RegExp(\\\"^(\\\"+t+\\\")\\\"),n=i.replace(s,\\\"\\\").split(\\\"/\\\")[0],a=\\\"\\\"===t?n+\\\"/\\\":t+n+\\\"/\\\",o=n;-1!=o.indexOf(\\\"::\\\")\\u0026\\u0026(o=o.split(\\\"::\\\")[1]),-1===d.findIndex((function(e){return e.value===a}))\\u0026\\u0026d.push({value:a,content:o,has_submenu:!0,callback:function(t,i,s,n){e(t.value,n)}})}})),LiteGraph.getNodeTypesInCategory(t.slice(0,-1),a.filter||l.filter).map((function(e){if(!e.skip_list){var t={value:e.type,content:e.title,has_submenu:!1,callback:function(e,t,i,s){var o=s.getFirstEvent();a.graph.beforeChange();var l=LiteGraph.createNode(e.value);l\\u0026\\u0026(l.pos=a.convertEventToCanvasOffset(o),a.graph.add(l)),n\\u0026\\u0026n(l),a.graph.afterChange()}};d.push(t)}}));const u=xe(\\\"EasyUse.ContextMenu.NodesSort\\\",null);\\\"\\\"===t\\u0026\\u0026u\\u0026\\u0026(d=function(e){let t=[],i=[];return e.forEach((e=\\u003e{(null==e?void 0:e.value)\\u0026\\u0026Me.includes(e.value.split(\\\"/\\\")[0])?t.push(e):i.push(e)})),[{title:Ne(\\\"ComfyUI Basic\\\"),is_category_title:!0},...t,{title:Ne(\\\"Others A~Z\\\"),is_category_title:!0},...i.sort(((e,t)=\\u003ee.content.localeCompare(t.content)))]}(d)),new LiteGraph.ContextMenu(d,{event:i,parentMenu:s},o)}(\\\"\\\",s),!1}function _i(e){try{return encodeURIComponent(e).replace(/[!'()*]/g,(e=\\u003e`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}catch(t){return e}}function Si(e,t,i){var s=this;i=i||{};var n=document.createElement(\\\"div\\\");n.className=\\\"litemenu-entry submenu\\\";var a=!1;function o(e){var t=this.value,n=!0;(s.current_submenu\\u0026\\u0026s.current_submenu.close(e),i.callback)\\u0026\\u0026(!0===i.callback.call(this,t,i,e,s,i.node)\\u0026\\u0026(n=!1));if(t){if(t.callback\\u0026\\u0026!i.ignore_item_callbacks\\u0026\\u0026!0!==t.disabled)!0===t.callback.call(this,t,i,e,s,i.extra)\\u0026\\u0026(n=!1);if(t.submenu){if(!t.submenu.options)throw\\\"ContextMenu submenu needs options\\\";new s.constructor(t.submenu.options,{callback:t.submenu.callback,event:e,parentMenu:s,ignore_item_callbacks:t.submenu.ignore_item_callbacks,title:t.submenu.title,extra:t.submenu.extra,autoopen:i.autoopen}),n=!1}}n\\u0026\\u0026!s.lock\\u0026\\u0026s.close()}return null===t?n.classList.add(\\\"separator\\\"):t.is_category_title?(n.classList.remove(\\\"litemenu-entry\\\"),n.classList.remove(\\\"submenu\\\"),n.classList.add(\\\"litemenu-title\\\"),n.innerHTML=t.title):(n.innerHTML=t\\u0026\\u0026t.title?t.title:e,n.value=t,t\\u0026\\u0026(t.disabled\\u0026\\u0026(a=!0,n.classList.add(\\\"disabled\\\")),(t.submenu||t.has_submenu)\\u0026\\u0026n.classList.add(\\\"has_submenu\\\")),\\\"function\\\"==typeof t?(n.dataset.value=e,n.onclick_callback=t):n.dataset.value=t,t.className\\u0026\\u0026(n.className+=\\\" \\\"+t.className)),n\\u0026\\u0026(null==t?void 0:t.thumbnail)\\u0026\\u0026(n.addEventListener(\\\"mouseenter\\\",Li(n,t,this.root),{passive:!0}),n.addEventListener(\\\"mouseleave\\\",ki(),{passive:!0}),n.addEventListener(\\\"click\\\",ki(),{passive:!0})),this.root.appendChild(n),a||n.addEventListener(\\\"click\\\",o),!a\\u0026\\u0026i.autoopen\\u0026\\u0026LiteGraph.pointerListenerAdd(n,\\\"enter\\\",(function(e){var t=this.value;if(!t||!t.has_submenu)return;o.call(this,e)})),n}fe.registerExtension({name:\\\"Comfy.EasyUse.ContextMenu\\\",async setup(){LGraphCanvas.onMenuAdd=bi,xi();const e=LiteGraph.ContextMenu;LiteGraph.ContextMenu=function(t,i){if(!(null==i?void 0:i.callback)||t.some((e=\\u003e\\\"string\\\"!=typeof e))){if(i.parentMenu);else if(i.extra);else if(i.scale);else{const e=xe(\\\"EasyUse.ContextMenu.QuickOptions\\\",null);if(i.hasOwnProperty(\\\"extra\\\")\\u0026\\u0026\\\"Disable\\\"!==e){if(\\\"At the forefront\\\"==e?t.unshift(null):t.push(null),s=window.location.host,[\\\"192.168.\\\",\\\"10.\\\",\\\"127.\\\",/^172\\\\.((1[6-9]|2[0-9]|3[0-1])\\\\.)/].some((e=\\u003e\\\"string\\\"==typeof e?s.startsWith(e):e.test(s)))){const i={content:`\\u003ci class=\\\"mdi mdi-refresh-circle comfyui-easyuse-error\\\" style=\\\"margin-right:2px;font-size:16px\\\"\\u003e\\u003c/i\\u003e${Ne(\\\"Reboot ComfyUI\\\")}`,callback:e=\\u003e(async()=\\u003e{if(confirm(Ne(\\\"Are you sure you'd like to reboot the server?\\\")))try{ge.fetchApi(\\\"/easyuse/reboot\\\")}catch(e){}})()};\\\"At the forefront\\\"==e?t.unshift(i):t.push(i)}const i=xe(\\\"EasyUse.Hotkeys.cleanVRAMUsed\\\",null)?\\\"(\\\"+qe(\\\"Shift+r\\\")+\\\")\\\":\\\"\\\",n={content:`\\u003ci class=\\\"mdi mdi-rocket comfyui-easyuse-theme\\\" style=\\\"margin-right:2px;font-size:16px\\\"\\u003e\\u003c/i\\u003e${Ne(\\\"Cleanup Of VRAM Usage\\\")} ${i}`,callback:e=\\u003evi()};\\\"At the forefront\\\"==e?t.unshift(n):t.push(n);const a=xe(\\\"EasyUse.Hotkeys.toggleNodesMap\\\",null)?\\\"(\\\"+qe(\\\"Shift+m\\\")+\\\")\\\":\\\"\\\",o={content:`\\u003ci class=\\\"mdi mdi-sitemap comfyui-easyuse-warning\\\" style=\\\"margin-right:2px;font-size:14px\\\"\\u003e\\u003c/i\\u003e${Ne(\\\"Nodes Map\\\")} ${a}`,callback:e=\\u003e{var t,i,s;const n=(null==(t=fe.extensionManager)?void 0:t.sidebarTab)||fe.extensionManager,a=(null==(i=fe.extensionManager.sidebarTab)?void 0:i.activeSidebarTabId)||(null==(s=fe.extensionManager)?void 0:s.activeSidebarTab);n.activeSidebarTabId=a==Pe?null:Pe}};\\\"At the forefront\\\"==e?t.unshift(o):t.push(o)}}return e.apply(this,[...arguments])}{const s=function(e,t){const i=xe(\\\"EasyUse.ContextMenu.ModelsThumbnails\\\",null),s=xe(\\\"EasyUse.ContextMenu.SubDirectories\\\",null);if(!i\\u0026\\u0026!s)return null;if(wi)return null;const n=[\\\"ckpt\\\",\\\"pt\\\",\\\"bin\\\",\\\"pth\\\",\\\"safetensors\\\",\\\"gguf\\\"];if((null==e?void 0:e.length)\\u003e0){const t=null==(a=e[e.length-1])?void 0:a.substring(a.lastIndexOf(\\\".\\\")+1);if(!n.includes(t))return null}var a;const o=t.callback,l=[...e];t.callback=null;const r=(e,t)=\\u003e{[\\\"None\\\",\\\"无\\\",\\\"無\\\",\\\"なし\\\"].includes(e.content)?o(\\\"None\\\",t):o(l.find((t=\\u003et.endsWith(e.content)),t))};if(i\\u0026\\u0026!s)return e.map((e=\\u003e{var t,i;let s=null==(t=yi[e])?void 0:t.folder,n=null==(i=yi[e])?void 0:i.pathIndex;const a=window.location.protocol,o=window.location.host;let l=s?`${`${a}//${o}`}/api/experiment/models/preview/${s}/${n}/${_i(e)}`:\\\"\\\";return{folder:s,content:e,fullName:e,title:ve(\\\"div.comfyui-easyuse-contextmenu-model\\\",{},[ve(\\\"span\\\",{},e)]).outerHTML,thumbnail:l,callback:r}}));const d=e,u={},c=[],A=[];for(const f of d){const e=f.indexOf(\\\"/\\\")\\u003e-1?\\\"/\\\":\\\"\\\\\\\\\\\",t=f.split(e);if(t.length\\u003e1){const i=t.shift();u[i]=u[i]||[],u[i].push({value:t.join(e),fullValue:f})}else\\\"CHOOSE\\\"===f||f.startsWith(\\\"DISABLE \\\")?c.push({value:f,fullValue:f}):A.push({value:f,fullValue:f})}const p=Object.values(u).length,h=[],m=(e,t=\\\"\\\",s)=\\u003e{var n,a;let o;o=ve(\\\"div.comfyui-easyuse-contextmenu-model\\\",{},[ve(\\\"span\\\",{},e)]);let l=null==(n=yi[s])?void 0:n.folder,d=null==(a=yi[s])?void 0:a.pathIndex;const u=window.location.protocol,c=window.location.host;let A=l?`${`${u}//${c}`}/api/experiment/models/preview/${l}/${d}/${_i(s)}`:\\\"\\\";return{folder:l,content:e,fullName:s,thumbnail:i?A:null,title:o.outerHTML,callback:r}};if(p\\u003e0){const e=(t,i)=\\u003e{let s=[],n=[];const a=t.map((({value:e,fullValue:t})=\\u003e{const a={},o=e.indexOf(\\\"/\\\")\\u003e-1?\\\"/\\\":\\\"\\\\\\\\\\\",l=e.split(o);if(l.length\\u003e1){const e=l.shift();a[e]=a[e]||[],a[e].push({value:l.join(o),fullValue:t})}if(Object.values(u).length\\u003e0){let i=Object.keys(a)[0];i\\u0026\\u0026a[i]?s.push({key:i,value:a[i][0]}):n.push(m(e,i,t))}return m(e,i,t)}));if(s.length\\u003e0){let t={};return s.forEach((e=\\u003e{t[e.key]=t[e.key]||[],t[e.key].push(e.value)})),[...Object.entries(t).map((t=\\u003e({content:t[0],has_submenu:!0,callback:()=\\u003e{},submenu:{options:e(t[1],t[0])}}))),...n]}return a};for(const[t,i]of Object.entries(u))h.push({content:t,has_submenu:!0,callback:()=\\u003e{},submenu:{options:e(i,t)}})}h.push(...A.map((e=\\u003em(e.value,\\\"\\\",e.fullValue)))),c.length\\u003e0\\u0026\\u0026h.push(...c.map((e=\\u003em(e.value,\\\"\\\",e.fullValue))));return h}(t,i);return s?e.call(this,s,i):e.apply(this,[...arguments])}var s},LiteGraph.ContextMenu.prototype=e.prototype,xe(\\\"EasyUse.ContextMenu.NodesSort\\\")\\u0026\\u0026(LiteGraph.ContextMenu.prototype.addItem=Si),document.getElementById(\\\"graph-canvas\\\").addEventListener(\\\"mouseenter\\\",(e=\\u003e{setTimeout((e=\\u003e{const t=document.getElementById(\\\"easyuse-model-thumbnail\\\");t\\u0026\\u00260!=t.style.opacity\\u0026\\u0026(t.style.display=\\\"none\\\",t.style.opacity=0,t.style.left=\\\"0px\\\",t.style.top=\\\"0px\\\")}),100)}))},async beforeRegisterNodeDef(e,t,i){const s=e.prototype.onNodeCreated;[\\\"CheckpointLoader|pysssss\\\",\\\"LoraLoader|pysssss\\\"].includes(t.name)\\u0026\\u0026(e.prototype.onNodeCreated=async function(){s\\u0026\\u0026s.apply(this,[]);let e=wt(this,\\\"lora_name\\\")||wt(this,\\\"ckpt_name\\\");if(e){let t=e.onClick;e.onClick=function(e){return wi=!0,setTimeout((e=\\u003e{wi=!1}),500),t.call(this,e)}}})}});const xi=async()=\\u003e{[\\\"checkpoints\\\",\\\"loras\\\",\\\"diffusion_models\\\"].map((async e=\\u003e{const t=await ge.getModels(e);(null==t?void 0:t.length)\\u003e0\\u0026\\u0026t.map((t=\\u003e{yi[t.name]={folder:e,pathIndex:t.pathIndex}}))}))},Li=(e,t,i)=\\u003es=\\u003e{var n;const a=t=\\u003e{setTimeout((s=\\u003e{const n=i.getBoundingClientRect();if(!n)return;const a=document.body.getBoundingClientRect();if(!a)return;const{left:o,top:l}=((e,t,i)=\\u003e{const{x:s}=e.getBoundingClientRect();let{top:n,left:a}=t;const{width:o,height:l}=i;return s\\u003c=o\\u0026\\u0026(a+=t.width),t.top\\u003c=l||(n=l),{left:a,top:n}})(e,n,a),r=document.getElementById(\\\"easyuse-model-thumbnail\\\");r.src=t,r.style.left=`${o}px`,r.style.top=`${l}px`,r.style.display=\\\"block\\\",r.style.opacity=1,r.onerror=e=\\u003e{r.src=Ge}}),10)};if(null==(n=null==yi?void 0:yi[t.fullName])?void 0:n.img){let e=yi[t.fullName].img;a(\\\"no_preview_image\\\"==e?Ge:e.src)}else{let e=new Image;e.src=t.thumbnail,e.onload=i=\\u003e{yi[t.fullName].img=e,a(t.thumbnail)},e.onerror=i=\\u003e{e=null,yi[t.fullName].img=\\\"no_preview_image\\\",a(Ge)}}},ki=()=\\u003ee=\\u003e{const t=document.getElementById(\\\"easyuse-model-thumbnail\\\");t\\u0026\\u00260!=t.style.opacity\\u0026\\u0026(t.style.display=\\\"none\\\",t.style.opacity=0,t.style.left=\\\"0px\\\",t.style.top=\\\"0px\\\")};class Ei extends ye{constructor(){super(),this.element.classList.add(\\\"easyuse-model-metadata\\\")}show(e){super.show(ve(\\\"div\\\",Object.keys(e).map((t=\\u003eve(\\\"div\\\",[ve(\\\"label\\\",{textContent:t}),ve(\\\"span\\\",{textContent:e[t]})])))))}}class Ni extends ye{constructor(e){super(),this.name=e,this.element.classList.add(\\\"easyuse-model-info\\\")}get customNotes(){return this.metadata[\\\"easyuse.notes\\\"]}set customNotes(e){this.metadata[\\\"easyuse.notes\\\"]=e}get hash(){return this.metadata[\\\"easyuse.sha256\\\"]}async show(e,t){this.type=e;const i=ge.fetchApi(\\\"/easyuse/metadata/\\\"+encodeURIComponent(`${e}/${t}`));this.info=ve(\\\"div\\\",{style:{flex:\\\"auto\\\"}}),this.imgCurrent=0,this.imgList=ve(\\\"div.easyuse-preview-list\\\",{style:{display:\\\"none\\\"}}),this.imgWrapper=ve(\\\"div.easyuse-preview\\\",[ve(\\\"div.easyuse-preview-group\\\",[this.imgList])]),this.main=ve(\\\"main\\\",{style:{display:\\\"flex\\\"}},[this.imgWrapper,this.info]),this.content=ve(\\\"div.easyuse-model-content\\\",[ve(\\\"div.easyuse-model-header\\\",[ve(\\\"h2\\\",{textContent:this.name})]),this.main]);const s=ve(\\\"div\\\",{textContent:\\\"ℹ️ Loading...\\\",parent:this.content});super.show(this.content),this.metadata=await(await i).json(),this.viewMetadata.style.cursor=this.viewMetadata.style.opacity=\\\"\\\",this.viewMetadata.removeAttribute(\\\"disabled\\\"),s.remove(),this.addInfo()}createButtons(){const e=super.createButtons();return this.viewMetadata=ve(\\\"button\\\",{type:\\\"button\\\",textContent:\\\"View raw metadata\\\",disabled:\\\"disabled\\\",style:{opacity:.5,cursor:\\\"not-allowed\\\"},onclick:e=\\u003e{this.metadata\\u0026\\u0026(new Ei).show(this.metadata)}}),e.unshift(this.viewMetadata),e}parseNote(){if(!this.customNotes)return[];let e=[];const t=new RegExp(\\\"(\\\\\\\\bhttps?:\\\\\\\\/\\\\\\\\/[^\\\\\\\\s]+)\\\",\\\"g\\\");let i,s=0;do{let n;i=t.exec(this.customNotes);let a=0;i?(n=i.index,a=i.index+i[0].length):n=this.customNotes.length;let o=this.customNotes.substring(s,n);o\\u0026\\u0026(o=o.replaceAll(\\\"\\\\n\\\",\\\"\\u003cbr\\u003e\\\"),e.push(ve(\\\"span\\\",{innerHTML:o}))),i\\u0026\\u0026e.push(ve(\\\"a\\\",{href:i[0],textContent:i[0],target:\\\"_blank\\\"})),s=a}while(i);return e}addInfoEntry(e,t){return ve(\\\"p\\\",{parent:this.info},[\\\"string\\\"==typeof e?ve(\\\"label\\\",{textContent:e+\\\": \\\"}):e,\\\"string\\\"==typeof t?ve(\\\"span\\\",{textContent:t}):t])}async getCivitaiDetails(){const e=await fetch(\\\"https://civitai.com/api/v1/model-versions/by-hash/\\\"+this.hash);if(200===e.status)return await e.json();throw 404===e.status?new Error(\\\"Model not found\\\"):new Error(`Error loading info (${e.status}) ${e.statusText}`)}addCivitaiInfo(){const e=this.getCivitaiDetails(),t=ve(\\\"span\\\",{textContent:\\\"ℹ️ Loading...\\\"});return this.addInfoEntry(ve(\\\"label\\\",[ve(\\\"img\\\",{style:{width:\\\"18px\\\",position:\\\"relative\\\",top:\\\"3px\\\",margin:\\\"0 5px 0 0\\\"},src:\\\"https://civitai.com/favicon.ico\\\"}),ve(\\\"span\\\",{textContent:\\\"Civitai: \\\"})]),t),e.then((e=\\u003e{var t,i;this.imgWrapper.style.display=\\\"block\\\";let s=this.element.querySelector(\\\".easyuse-model-header\\\");s\\u0026\\u0026s.replaceChildren(ve(\\\"h2\\\",{textContent:this.name}),ve(\\\"div.easyuse-model-header-remark\\\",[ve(\\\"h5\\\",{textContent:Ne(\\\"Updated At:\\\")+Ze(new Date(e.updatedAt),\\\"yyyy/MM/dd\\\")}),ve(\\\"h5\\\",{textContent:Ne(\\\"Created At:\\\")+Ze(new Date(e.updatedAt),\\\"yyyy/MM/dd\\\")})]));let n=null,a=this.parseNote.call(this),o=Ne(\\\"✏️ Edit\\\"),l=ve(\\\"div.easyuse-model-detail-textarea\\\",[ve(\\\"p\\\",(null==a?void 0:a.length)\\u003e0?a:{textContent:Ne(\\\"No notes\\\")})]);if(a\\u0026\\u00260!=a.length?l.classList.remove(\\\"empty\\\"):l.classList.add(\\\"empty\\\"),this.info.replaceChildren(ve(\\\"div.easyuse-model-detail\\\",[ve(\\\"div.easyuse-model-detail-head.flex-b\\\",[ve(\\\"span\\\",Ne(\\\"Notes\\\")),ve(\\\"a\\\",{textContent:o,href:\\\"#\\\",style:{fontSize:\\\"12px\\\",float:\\\"right\\\",color:\\\"var(--warning-color)\\\",textDecoration:\\\"none\\\"},onclick:async e=\\u003e{if(e.preventDefault(),n){if(n.value!=this.customNotes){Ye.showLoading(Ne(\\\"Saving Notes...\\\")),this.customNotes=n.value;const e=await ge.fetchApi(\\\"/easyuse/metadata/notes/\\\"+encodeURIComponent(`${this.type}/${this.name}`),{method:\\\"POST\\\",body:this.customNotes});if(Ye.hideLoading(),200!==e.status)return Ye.error(Ne(\\\"Saving Failed\\\")),void alert(`Error saving notes (${e.status}) ${e.statusText}`);Ye.success(Ne(\\\"Saving Succeed\\\")),a=this.parseNote.call(this),l.replaceChildren(ve(\\\"p\\\",(null==a?void 0:a.length)\\u003e0?a:{textContent:Ne(\\\"No notes\\\")})),n.value?l.classList.remove(\\\"empty\\\"):l.classList.add(\\\"empty\\\")}else l.replaceChildren(ve(\\\"p\\\",{textContent:Ne(\\\"No notes\\\")})),l.classList.add(\\\"empty\\\");e.target.textContent=o,n.remove(),n=null}else e.target.textContent=\\\"💾 Save\\\",n=ve(\\\"textarea\\\",{placeholder:Ne(\\\"Type your notes here\\\"),style:{width:\\\"100%\\\",minWidth:\\\"200px\\\",minHeight:\\\"50px\\\",height:\\\"100px\\\"},textContent:this.customNotes}),l.replaceChildren(n),n.focus()}})]),l]),ve(\\\"div.easyuse-model-detail\\\",[ve(\\\"div.easyuse-model-detail-head\\\",{textContent:Ne(\\\"Details\\\")}),ve(\\\"div.easyuse-model-detail-body\\\",[ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"Type\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",{textContent:e.model.type})]),ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"BaseModel\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",{textContent:e.baseModel})]),ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"Download\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",{textContent:(null==(t=e.stats)?void 0:t.downloadCount)||0})]),ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"Trained Words\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",{textContent:(null==e?void 0:e.trainedWords.join(\\\",\\\"))||\\\"-\\\"})]),ve(\\\"div.easyuse-model-detail-item\\\",[ve(\\\"div.easyuse-model-detail-item-label\\\",{textContent:Ne(\\\"Source\\\")}),ve(\\\"div.easyuse-model-detail-item-value\\\",[ve(\\\"label\\\",[ve(\\\"img\\\",{style:{width:\\\"14px\\\",position:\\\"relative\\\",top:\\\"3px\\\",margin:\\\"0 5px 0 0\\\"},src:\\\"https://civitai.com/favicon.ico\\\"}),ve(\\\"a\\\",{href:\\\"https://civitai.com/models/\\\"+e.modelId,textContent:\\\"View \\\"+e.model.name,target:\\\"_blank\\\"})])])])])])),null==(i=e.images)?void 0:i.length){this.imgCurrent=0,this.isSaving=!1,e.images.map((e=\\u003ee.url\\u0026\\u0026this.imgList.appendChild(ve(\\\"div.easyuse-preview-slide\\\",[ve(\\\"div.easyuse-preview-slide-content\\\",[ve(\\\"img\\\",{src:e.url}),ve(\\\"div.save\\\",{textContent:\\\"Save as preview\\\",onclick:async()=\\u003e{if(this.isSaving)return;this.isSaving=!0,Ye.showLoading(Ne(\\\"Saving Preview...\\\"));const t=await(await fetch(e.url)).blob(),i=\\\"temp_preview.\\\"+new URL(e.url).pathname.split(\\\".\\\")[1],s=new FormData;s.append(\\\"image\\\",new File([t],i)),s.append(\\\"overwrite\\\",\\\"true\\\"),s.append(\\\"type\\\",\\\"temp\\\");if(200!==(await ge.fetchApi(\\\"/upload/image\\\",{method:\\\"POST\\\",body:s})).status)return this.isSaving=!1,Ye.error(Ne(\\\"Saving Failed\\\")),Ye.hideLoading(),void alert(`Error saving preview (${req.status}) ${req.statusText}`);await ge.fetchApi(\\\"/easyuse/save/\\\"+encodeURIComponent(`${this.type}/${this.name}`),{method:\\\"POST\\\",body:JSON.stringify({filename:i,type:\\\"temp\\\"}),headers:{\\\"content-type\\\":\\\"application/json\\\"}}).then((e=\\u003e{Ye.success(Ne(\\\"Saving Succeed\\\")),Ye.hideLoading()})),this.isSaving=!1,app.refreshComboInNodes()}})])]))));let t=this;this.imgDistance=(-660*this.imgCurrent).toString(),this.imgList.style.display=\\\"\\\",this.imgList.style.transform=\\\"translate3d(\\\"+this.imgDistance+\\\"px, 0px, 0px)\\\",this.slides=this.imgList.querySelectorAll(\\\".easyuse-preview-slide\\\"),this.slideLeftButton=ve(\\\"button.left\\\",{parent:this.imgWrapper,style:{display:e.images.length\\u003c=2?\\\"none\\\":\\\"block\\\"},innerHTML:'\\u003csvg viewBox=\\\"0 0 15 15\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"16\\\" style=\\\"transform: rotate(90deg);\\\"\\u003e\\u003cpath d=\\\"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z\\\" fill=\\\"currentColor\\\" fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\"\\u003e\\u003c/path\\u003e\\u003c/svg\\u003e',onclick:()=\\u003e{e.images.length\\u003c=2||(t.imgList.classList.remove(\\\"no-transition\\\"),0==t.imgCurrent?(t.imgCurrent=e.images.length/2-1,this.slides[this.slides.length-1].style.transform=\\\"translate3d(\\\"+(-660*(this.imgCurrent+1)).toString()+\\\"px, 0px, 0px)\\\",this.slides[this.slides.length-2].style.transform=\\\"translate3d(\\\"+(-660*(this.imgCurrent+1)).toString()+\\\"px, 0px, 0px)\\\",t.imgList.style.transform=\\\"translate3d(660px, 0px, 0px)\\\",setTimeout((e=\\u003e{this.slides[this.slides.length-1].style.transform=\\\"translate3d(0px, 0px, 0px)\\\",this.slides[this.slides.length-2].style.transform=\\\"translate3d(0px, 0px, 0px)\\\",t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\"translate3d(\\\"+t.imgDistance+\\\"px, 0px, 0px)\\\",t.imgList.classList.add(\\\"no-transition\\\")}),500)):(t.imgCurrent=t.imgCurrent-1,t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\"translate3d(\\\"+t.imgDistance+\\\"px, 0px, 0px)\\\"))}}),this.slideRightButton=ve(\\\"button.right\\\",{parent:this.imgWrapper,style:{display:e.images.length\\u003c=2?\\\"none\\\":\\\"block\\\"},innerHTML:'\\u003csvg viewBox=\\\"0 0 15 15\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"16\\\" height=\\\"16\\\" style=\\\"transform: rotate(-90deg);\\\"\\u003e\\u003cpath d=\\\"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z\\\" fill=\\\"currentColor\\\" fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\"\\u003e\\u003c/path\\u003e\\u003c/svg\\u003e',onclick:()=\\u003e{if(!(e.images.length\\u003c=2))if(t.imgList.classList.remove(\\\"no-transition\\\"),t.imgCurrent\\u003e=e.images.length/2-1){t.imgCurrent=0;const i=e.images.length/2;this.slides[0].style.transform=\\\"translate3d(\\\"+(660*i).toString()+\\\"px, 0px, 0px)\\\",this.slides[1].style.transform=\\\"translate3d(\\\"+(660*i).toString()+\\\"px, 0px, 0px)\\\",t.imgList.style.transform=\\\"translate3d(\\\"+(-660*i).toString()+\\\"px, 0px, 0px)\\\",setTimeout((e=\\u003e{this.slides[0].style.transform=\\\"translate3d(0px, 0px, 0px)\\\",this.slides[1].style.transform=\\\"translate3d(0px, 0px, 0px)\\\",t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\"translate3d(\\\"+t.imgDistance+\\\"px, 0px, 0px)\\\",t.imgList.classList.add(\\\"no-transition\\\")}),500)}else t.imgCurrent=t.imgCurrent+1,t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\"translate3d(\\\"+t.imgDistance+\\\"px, 0px, 0px)\\\"}})}return e.description\\u0026\\u0026ve(\\\"div\\\",{parent:this.content,innerHTML:e.description,style:{marginTop:\\\"10px\\\"}}),e})).catch((e=\\u003e{this.imgWrapper.style.display=\\\"none\\\",t.textContent=\\\"⚠️ \\\"+e.message})).finally((e=\\u003e{}))}}class Ci extends Ni{async addInfo(){await this.addCivitaiInfo()}}class Ii extends Ni{getTagFrequency(){if(!this.metadata.ss_tag_frequency)return[];const e=JSON.parse(this.metadata.ss_tag_frequency),t={};for(const i in e){const s=e[i];for(const e in s)e in t?t[e]+=s[e]:t[e]=s[e]}return Object.entries(t).sort(((e,t)=\\u003et[1]-e[1]))}getResolutions(){let e=[];if(this.metadata.ss_bucket_info){const t=JSON.parse(this.metadata.ss_bucket_info);if(null==t?void 0:t.buckets)for(const{resolution:i,count:s}of Object.values(t.buckets))e.push([s,`${i.join(\\\"x\\\")} * ${s}`])}e=e.sort(((e,t)=\\u003et[0]-e[0])).map((e=\\u003ee[1]));let t=this.metadata.ss_resolution;if(t){const i=t.split(\\\",\\\"),s=i[0].replace(\\\"(\\\",\\\"\\\"),n=i[1].replace(\\\")\\\",\\\"\\\");e.push(`${s.trim()}x${n.trim()} (Base res)`)}else(t=this.metadata[\\\"modelspec.resolution\\\"])\\u0026\\u0026e.push(t+\\\" (Base res\\\");return e.length||e.push(\\\"⚠️ Unknown\\\"),e}getTagList(e){return e.map((e=\\u003eve(\\\"li.easyuse-model-tag\\\",{dataset:{tag:e[0]},$:e=\\u003e{e.onclick=()=\\u003e{e.classList.toggle(\\\"easyuse-model-tag--selected\\\")}}},[ve(\\\"p\\\",{textContent:e[0]}),ve(\\\"span\\\",{textContent:e[1]})])))}addTags(){let e,t=this.getTagFrequency();if(null==t?void 0:t.length){const i=t.length;let s;i\\u003e500\\u0026\\u0026(t=t.slice(0,500),e=ve(\\\"p\\\",[ve(\\\"span\\\",{textContent:\\\"⚠️ Only showing first 500 tags \\\"}),ve(\\\"a\\\",{href:\\\"#\\\",textContent:`Show all ${i}`,onclick:()=\\u003e{s.replaceChildren(...this.getTagList(this.getTagFrequency())),e.remove()}})])),s=ve(\\\"ol.easyuse-model-tags-list\\\",this.getTagList(t)),this.tags=ve(\\\"div\\\",[s])}else this.tags=ve(\\\"p\\\",{textContent:\\\"⚠️ No tag frequency metadata found\\\"});this.content.append(this.tags),e\\u0026\\u0026this.content.append(e)}async addInfo(){const e=this.addCivitaiInfo();this.addTags();const t=await e;t\\u0026\\u0026ve(\\\"div\\\",{parent:this.content,innerHTML:t.description,style:{maxHeight:\\\"250px\\\",overflow:\\\"auto\\\"}})}createButtons(){const e=super.createButtons();function t(e,t){const i=ve(\\\"textarea\\\",{parent:document.body,style:{position:\\\"fixed\\\"},textContent:t.map((e=\\u003ee.dataset.tag)).join(\\\", \\\")});i.select();try{document.execCommand(\\\"copy\\\"),e.target.dataset.text||(e.target.dataset.text=e.target.textContent),e.target.textContent=\\\"Copied \\\"+t.length+\\\" tags\\\",setTimeout((()=\\u003e{e.target.textContent=e.target.dataset.text}),1e3)}catch(s){prompt(\\\"Copy to clipboard: Ctrl+C, Enter\\\",text)}finally{document.body.removeChild(i)}}return e.unshift(ve(\\\"button\\\",{type:\\\"button\\\",textContent:\\\"Copy Selected\\\",onclick:e=\\u003e{t(e,[...this.tags.querySelectorAll(\\\".easyuse-model-tag--selected\\\")])}}),ve(\\\"button\\\",{type:\\\"button\\\",textContent:\\\"Copy All\\\",onclick:e=\\u003e{t(e,[...this.tags.querySelectorAll(\\\".easyuse-model-tag\\\")])}})),e}}const Ti={pipe:{category:\\\"Easy Pipe\\\",nodes:[\\\"easy pipeIn\\\",\\\"easy pipeOut\\\",\\\"easy pipeEdit\\\",\\\"easy pipeEditPrompt\\\",\\\"easy pipeBatchIndex\\\"],input:{pipe:\\\"pipe\\\"},output:{pipe:\\\"pipe\\\"},widget:{optional_positive:\\\"optional_positive\\\",optional_negative:\\\"optional_negative\\\"}},loaders:{category:\\\"Easy Loaders\\\",nodes:[\\\"easy fullLoader\\\",\\\"easy a1111Loader\\\",\\\"easy comfyLoader\\\",\\\"easy kolorsLoader\\\",\\\"easy hunyuanDiTLoader\\\",\\\"easy pixArtLoader\\\",\\\"easy fluxLoader\\\"],input:{optional_lora_stack:\\\"optional_lora_stack\\\",optional_controlnet_stack:\\\"optional_controlnet_stack\\\",positive:\\\"positive\\\",negative:\\\"negative\\\"},output:{pipe:\\\"pipe\\\",model:\\\"model\\\",vae:\\\"vae\\\",clip:null,positive:null,negative:null,latent:null},widget:{ckpt_name:\\\"ckpt_name\\\",vae_name:\\\"vae_name\\\",clip_skip:\\\"clip_skip\\\",lora_name:\\\"lora_name\\\",resolution:\\\"resolution\\\",empty_latent_width:\\\"empty_latent_width\\\",empty_latent_height:\\\"empty_latent_height\\\",positive:\\\"positive\\\",negative:\\\"negative\\\",batch_size:\\\"batch_size\\\",a1111_prompt_style:\\\"a1111_prompt_style\\\"}},preSampling:{category:\\\"Easy PreSampling\\\",nodes:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingDynamicCFG\\\",\\\"easy preSamplingNoiseIn\\\",\\\"easy preSamplingCustom\\\",\\\"easy preSamplingLayerDiffusion\\\",\\\"easy fullkSampler\\\"],input:{pipe:\\\"pipe\\\",image_to_latent:\\\"image_to_latent\\\",latent:\\\"latent\\\"},output:{pipe:\\\"pipe\\\"},widget:{steps:\\\"steps\\\",cfg:\\\"cfg\\\",cfg_scale_min:\\\"cfg\\\",sampler_name:\\\"sampler_name\\\",scheduler:\\\"scheduler\\\",denoise:\\\"denoise\\\",seed_num:\\\"seed_num\\\",seed:\\\"seed\\\"}},samplers:{category:\\\"Custom Sampler\\\",nodes:[\\\"KSamplerSelect\\\",\\\"SamplerEulerAncestral\\\",\\\"SamplerEulerAncestralCFG++\\\",\\\"SamplerLMS\\\",\\\"SamplerDPMPP_3M_SDE\\\",\\\"SamplerDPMPP_2M_SDE\\\",\\\"SamplerDPMPP_SDE\\\",\\\"SamplerDPMAdaptative\\\",\\\"SamplerLCMUpscale\\\",\\\"SamplerTCD\\\",\\\"SamplerTCD EulerA\\\"],output:{SAMPLER:\\\"SAMPLER\\\"}},sigmas:{category:\\\"Custom Sigmas\\\",nodes:[\\\"BasicScheduler\\\",\\\"KarrasScheduler\\\",\\\"ExponentialScheduler\\\",\\\"PolyexponentialScheduler\\\",\\\"VPScheduler\\\",\\\"BetaSamplingScheduler\\\",\\\"SDTurboScheduler\\\",\\\"SplitSigmas\\\",\\\"SplitSigmasDenoise\\\",\\\"FlipSigmas\\\",\\\"AlignYourStepsScheduler\\\",\\\"GITSScheduler\\\"],output:{SIGMAS:\\\"SIGMAS\\\"}},kSampler:{category:\\\"Easy kSampler\\\",nodes:[\\\"easy kSampler\\\",\\\"easy kSamplerTiled\\\",\\\"easy kSamplerCustom\\\",\\\"easy kSamplerInpainting\\\",\\\"easy kSamplerDownscaleUnet\\\",\\\"easy kSamplerLayerDiffusion\\\"],input:{pipe:\\\"pipe\\\",model:\\\"model\\\"},output:{pipe:\\\"pipe\\\",image:\\\"image\\\"},widget:{image_output:\\\"image_output\\\",save_prefix:\\\"save_prefix\\\",link_id:\\\"link_id\\\"}},controlNet:{category:\\\"Easy ControlNet\\\",nodes:[\\\"easy controlnetLoader\\\",\\\"easy controlnetLoaderADV\\\",\\\"easy controlnetLoader++\\\",\\\"easy instantIDApply\\\",\\\"easy instantIDApplyADV\\\"],input:{pipe:\\\"pipe\\\",image:\\\"image\\\",image_kps:\\\"image_kps\\\",control_net:\\\"control_net\\\",positive:\\\"positive\\\",negative:\\\"negative\\\",mask:\\\"mask\\\"},output:{pipe:\\\"pipe\\\",positive:\\\"positive\\\",negative:\\\"negative\\\"},widget:{control_net_name:\\\"control_net_name\\\",strength:[\\\"strength\\\",\\\"cn_strength\\\"],scale_soft_weights:[\\\"scale_soft_weights\\\",\\\"cn_soft_weights\\\"],cn_strength:[\\\"strength\\\",\\\"cn_strength\\\"],cn_soft_weights:[\\\"scale_soft_weights\\\",\\\"cn_soft_weights\\\"]}},adapter:{category:\\\"Easy Adapter\\\",nodes:[\\\"easy ipadapterApply\\\",\\\"easy ipadapterApplyADV\\\",\\\"easy ipadapterApplyFaceIDKolors\\\",\\\"easy ipadapterStyleComposition\\\",\\\"easy ipadapterApplyFromParams\\\",\\\"easy pulIDApply\\\",\\\"easy pulIDApplyADV\\\"],input:{model:\\\"model\\\",image:\\\"image\\\",image_style:\\\"image\\\",attn_mask:\\\"attn_mask\\\",optional_ipadapter:\\\"optional_ipadapter\\\"},output:{model:\\\"model\\\",tiles:\\\"tiles\\\",masks:\\\"masks\\\",ipadapter:\\\"ipadapter\\\"},widget:{preset:\\\"preset\\\",lora_strength:\\\"lora_strength\\\",provider:\\\"provider\\\",weight:\\\"weight\\\",weight_faceidv2:\\\"weight_faceidv2\\\",start_at:\\\"start_at\\\",end_at:\\\"end_at\\\",cache_mode:\\\"cache_mode\\\",use_tiled:\\\"use_tiled\\\",insightface:\\\"insightface\\\",pulid_file:\\\"pulid_file\\\"}},positive:{category:\\\"Easy Positive\\\",nodes:[\\\"easy positive\\\",\\\"easy wildcards\\\"],input:{},output:{text:\\\"positive\\\",positive:\\\"text\\\"},widget:{text:\\\"positive\\\",positive:\\\"text\\\"}},loadImage:{category:\\\"Easy LoadImage\\\",nodes:[\\\"easy loadImageBase64\\\",\\\"LoadImage\\\",\\\"LoadImageMask\\\"],input:{pipe:\\\"pipe\\\",image:\\\"image\\\",mask:\\\"mask\\\"},output:{IMAGE:\\\"IMAGE\\\",MASK:\\\"MASK\\\"},widget:{image:\\\"image\\\",base64_data:\\\"base64_data\\\",channel:\\\"channel\\\"}},saveImage:{category:\\\"Save/Preview Image\\\",nodes:[\\\"SaveImage\\\",\\\"PreviewImage\\\"]},inPaint:{category:\\\"Easy Inpaint\\\",nodes:[\\\"easy applyBrushNet\\\",\\\"easy applyPowerPaint\\\",\\\"easy applyInpaint\\\"],input:{},output:{pipe:\\\"pipe\\\"},widget:{dtype:\\\"dtype\\\",fitting:\\\"fitting\\\",function:\\\"function\\\",scale:\\\"scale\\\",start_at:\\\"start_at\\\",end_at:\\\"end_at\\\"}},showAny:{category:\\\"Show Anything\\\",nodes:[\\\"easy showAnything\\\",\\\"Preview Any\\\"],input:{anything:\\\"anything\\\"},output:{output:\\\"output\\\"}},saveText:{category:\\\"Save Text\\\",nodes:[\\\"easy saveText\\\"],input:{image:\\\"image\\\",text:\\\"text\\\",output_file_path:\\\"output_file_path\\\",file_name:\\\"file_name\\\",file_extension:\\\"file_extension\\\",overwrite:\\\"overwrite\\\"},output:{text:\\\"text\\\",image:\\\"image\\\"},widget:{image:\\\"image\\\",text:\\\"text\\\",output_file_path:\\\"output_file_path\\\",file_name:\\\"file_name\\\",file_extension:\\\"file_extension\\\",overwrite:\\\"overwrite\\\"}},persona:{category:\\\"LLM Party Persona\\\",nodes:[\\\"load_persona\\\",\\\"classify_persona\\\",\\\"classify_persona_plus\\\",\\\"custom_persona\\\",\\\"translate_persona\\\",\\\"flux_persona\\\"],input:{file_content:\\\"file_content\\\"},output:{system_prompt:\\\"system_prompt\\\"},widget:{is_enable:\\\"is_enable\\\"}},llmModelLoader:{category:\\\"LLM Model Loader\\\",nodes:[\\\"LLM_api_loader\\\",\\\"genai_api_loader\\\",\\\"LLM_local_loader\\\"],output:{model:\\\"model\\\"}},llmModelChain:{category:\\\"LLM Model Chain\\\",nodes:[\\\"LLM\\\",\\\"LLM_local\\\"],input:{model:\\\"model\\\",image:\\\"images\\\",images:\\\"image\\\",extra_parameters:\\\"extra_parameters\\\",system_prompt_input:\\\"system_prompt_input\\\",user_prompt_input:\\\"user_prompt_input\\\",tools:\\\"tools\\\",file_content:\\\"file_content\\\"},output:{assistant_response:\\\"assistant_response\\\",history:\\\"history\\\",tool:\\\"tool\\\",image:\\\"image\\\"},widget:{system_prompt:\\\"system_prompt\\\",user_prompt:\\\"user_prompt\\\",temperature:\\\"temperature\\\",is_memory:\\\"is_memory\\\",is_tools_in_sys_prompt:\\\"is_tools_in_sys_prompt\\\",max_length:\\\"max_length\\\",main_brain:\\\"main_brain\\\",conversation_rounds:\\\"conversation_rounds\\\",history_record:\\\"history_record\\\",is_enable:\\\"is_enable\\\"}},maskModify:{category:\\\"Mask Modify\\\",nodes:[\\\"CropMask\\\",\\\"ThresholdMask\\\",\\\"GrowMask\\\",\\\"FeatherMask\\\",\\\"LayerMask: MaskGrain\\\",\\\"LayerMask: MaskEdgeUltraDetail\\\",\\\"LayerMask: MaskEdgeUltraDetail V2\\\"],input:{mask:\\\"mask\\\"},output:{MASK:\\\"MASK\\\",mask:\\\"mask\\\",image:\\\"image\\\"}},maskModifyWAS:{category:\\\"Mask Modify (WAS)\\\",nodes:[\\\"Mask Dilate Region\\\",\\\"Mask Gaussian Region\\\"],input:{masks:\\\"masks\\\"},output:{MASKS:\\\"MASKS\\\"}},indextts_emotions:{category:\\\"IndexTTS Emotions\\\",nodes:[\\\"easy indexTTSEmotionVector\\\",\\\"easy indexTTSEmotionText\\\",\\\"easy indexTTSEmotionAudio\\\"],input:{reference_audio:\\\"reference_audio\\\"},output:{emotions:\\\"emotions\\\"}},indextts_generate:{category:\\\"IndexTTS Generate\\\",nodes:[\\\"easy indexTTSGenerate\\\",\\\"easy indexTTSGenerateSimple\\\"],input:{indextts_model:\\\"indextts_model\\\",reference_audio:\\\"reference_audio\\\",reference_audios:\\\"reference_audios\\\",emotions:\\\"emotions\\\"},output:{audio:\\\"audio\\\",seed:\\\"seed\\\",subtitle:\\\"subtitle\\\"},widget:{text:\\\"text\\\",unload_model:\\\"unload_model\\\",seed:\\\"seed\\\"}},fast_loaders:{category:\\\"Fast Loaders\\\",nodes:[\\\"fast ckptLoader\\\",\\\"fast unetLoader\\\"],input:{\\\"开始加载\\\":\\\"开始加载\\\"},output:{\\\"模型加载器\\\":\\\"模型加载器\\\",MODEL:\\\"MODEL\\\",VAE:\\\"VAE\\\",CLIP:\\\"CLIP\\\"}},fast_inputs:{category:\\\"Fast Inputs\\\",nodes:[\\\"fast sdInput\\\",\\\"fast fluxInput\\\",\\\"fast hiDreamInput\\\",\\\"fast videoInput\\\",\\\"fast qwenImageInput\\\"],input:{\\\"模型加载器\\\":\\\"模型加载器\\\",\\\"更多Controlnet\\\":\\\"更多Controlnet\\\",\\\"图像\\\":\\\"图像\\\",\\\"遮罩\\\":\\\"遮罩\\\",\\\"功能节点\\\":\\\"功能节点\\\"},output:{\\\"采样\\\":\\\"采样\\\",\\\"正面条件\\\":\\\"正面条件\\\",\\\"负面条件\\\":\\\"负面条件\\\",\\\"潜空间\\\":\\\"潜空间\\\"},widget:{Sigmas:\\\"Sigmas\\\",\\\"分离Sigmas步数\\\":\\\"分离Sigmas步数\\\",\\\"分离降噪\\\":\\\"分离降噪\\\",\\\"降噪\\\":\\\"降噪\\\",\\\"添加噪声\\\":\\\"添加噪声\\\",seed:\\\"seed\\\",\\\"生成数量\\\":\\\"生成数量\\\"}},fast_outputResult:{category:\\\"Fast Outputs\\\",nodes:[\\\"fast outputResult\\\",\\\"fast outputResultVideo\\\",\\\"fast outputLatent\\\"],input:{\\\"采样\\\":\\\"采样\\\",\\\"噪声\\\":\\\"噪声\\\",\\\"模型加载器\\\":\\\"模型加载器\\\"},output:{\\\"图像\\\":\\\"图像序列\\\",\\\"图像序列\\\":\\\"图像\\\",\\\"输出\\\":\\\"输出\\\",\\\"降噪输出\\\":\\\"降噪输出\\\",VAE:\\\"VAE\\\"},widget:{\\\"采样预览\\\":\\\"采样预览\\\",\\\"VAE解码\\\":\\\"VAE解码\\\",\\\"图像输出\\\":\\\"视频输出\\\",\\\"视频输出\\\":\\\"图像输出\\\",\\\"保存路径\\\":\\\"保存路径\\\"}},fast_loadImage:{category:\\\"Fast LoadImage\\\",nodes:[\\\"fast loadImage\\\",\\\"fast loadImageList\\\"],output:{\\\"图像\\\":\\\"图像\\\",\\\"遮罩\\\":\\\"遮罩\\\",\\\"文件名\\\":\\\"文件名\\\"},widget:{\\\"模式\\\":\\\"模式\\\",\\\"图像\\\":\\\"图像\\\",\\\"路径\\\":\\\"路径\\\",\\\"最大张数\\\":\\\"最大张数\\\",\\\"开始索引\\\":\\\"开始索引\\\",Base64:\\\"Base64\\\",\\\"链接\\\":\\\"链接\\\"}}};function Oi(e,t,i){return function(){!function(e,t,i){var s;const n=LiteGraph.createNode(t);if(n){if(fe.graph.add(n),n.pos=e.pos.slice(),n.size=e.size.slice(),(null==(s=e.widgets)?void 0:s.length)\\u003e0\\u0026\\u0026e.widgets.forEach((e=\\u003e{var t,s,a;if(null==(s=null==(t=Ti[i])?void 0:t.widget)?void 0:s[e.name]){const t=Ti[i].widget[e.name];if(t\\u0026\\u0026n.widgets){const i=(a=t,n.widgets.find((e=\\u003e\\\"object\\\"==typeof a?a.includes(e.name):e.name===a)));i\\u0026\\u0026(i.value=e.value,\\\"seed_num\\\"==e.name\\u0026\\u0026(i.linkedWidgets[0].value=e.linkedWidgets[0].value),\\\"converted-widget\\\"==e.type\\u0026\\u0026Vi(n,i,e))}}})),e.inputs\\u0026\\u0026e.inputs.forEach(((t,s)=\\u003e{var a,o,l;if(t\\u0026\\u0026t.link\\u0026\\u0026(null==(o=null==(a=Ti[i])?void 0:a.input)?void 0:o[t.name])){const s=null==(l=Ti[i])?void 0:l.input[t.name];if(null===s)return;const a=n.findInputSlot(s);if(-1!==a){const i=e.graph.links[t.link];if(i){const t=e.graph.getNodeById(i.origin_id);t\\u0026\\u0026t.connect(i.origin_slot,n,a)}}}})),e.outputs\\u0026\\u0026e.outputs.forEach(((t,s)=\\u003e{var a,o;if(t\\u0026\\u0026t.links\\u0026\\u0026(null==(o=null==(a=Ti[i])?void 0:a.output)?void 0:o[t.name])){const s=Ti[i].output[t.name];if(null===s)return;const a=n.findOutputSlot(s);-1!==a\\u0026\\u0026t.links.forEach((t=\\u003e{const i=e.graph.links[t];if(i){const t=e.graph.getNodeById(i.target_id);t\\u0026\\u0026n.connect(a,t,i.target_slot)}}))}})),fe.graph.remove(e),\\\"easy fullkSampler\\\"==n.type){const e=n.outputs[0].links;if(e\\u0026\\u0026e[0]){const t=fe.graph._nodes.find((t=\\u003et.inputs\\u0026\\u0026t.inputs[0]\\u0026\\u0026t.inputs[0].link==e[0]));t\\u0026\\u0026fe.graph.remove(t)}}else if(Ti.preSampling.nodes.includes(n.type)){const e=n.outputs[0].links;if(!e||!e[0]){const e=LiteGraph.createNode(\\\"easy kSampler\\\");fe.graph.add(e),e.pos=n.pos.slice(),e.pos[0]=e.pos[0]+n.size[0]+20;const t=n.findInputSlot(\\\"pipe\\\");-1!==t\\u0026\\u0026n\\u0026\\u0026n.connect(0,e,t)}}n.setSize([n.size[0],n.computeSize()[1]])}}(e,t,i)}}const Mi=(e,t)=\\u003e{const i=e.prototype.getExtraMenuOptions;e.prototype.getExtraMenuOptions=function(){const e=i.apply(this,arguments);return t.apply(this,arguments),e}},Di=(e,t,i,s,n=!0)=\\u003e{Mi(s,(function(s,a){a.unshift({content:e,has_submenu:n,callback:(e,s,n,a,o)=\\u003eRi(e,s,n,a,o,t,i)}),\\\"loaders\\\"==t\\u0026\\u0026(a.unshift({content:Ne(\\\"💎 View Lora Info...\\\"),callback:(e,t,i,s,n)=\\u003e{let a=n.widgets.find((e=\\u003e\\\"lora_name\\\"==e.name)).value;a\\u0026\\u0026\\\"None\\\"!=a\\u0026\\u0026new Ii(a).show(\\\"loras\\\",a)}}),a.unshift({content:Ne(\\\"💎 View Checkpoint Info...\\\"),callback:(e,t,i,s,n)=\\u003e{let a=n.widgets[0].value;a\\u0026\\u0026\\\"None\\\"!=a\\u0026\\u0026new Ci(a).show(\\\"checkpoints\\\",a)}}))}))},Ri=(e,t,i,s,n,a,o)=\\u003e{const l=[];return o.map((e=\\u003e{n.type!==e\\u0026\\u0026l.push({content:`${e}`,callback:Oi(n,e,a)})})),new LiteGraph.ContextMenu(l,{event:i,callback:null,parentMenu:s,node:n}),!1},Pi=\\\"converted-widget\\\",Gi=Symbol();function zi(e,t,i=\\\"\\\"){if(t.origType=t.type,t.origComputeSize=t.computeSize,t.origSerializeValue=t.serializeValue,t.computeSize=()=\\u003e[0,-4],t.type=Pi+i,t.serializeValue=()=\\u003e{if(!e.inputs)return;let i=e.inputs.find((e=\\u003e{var i;return(null==(i=e.widget)?void 0:i.name)===t.name}));return i\\u0026\\u0026i.link?t.origSerializeValue?t.origSerializeValue():t.value:void 0},t.linkedWidgets)for(const s of t.linkedWidgets)zi(e,s,\\\":\\\"+t.name)}function Vi(e,t,i){zi(e,t);const{type:s}=function(e){let t=e[0];t instanceof Array\\u0026\\u0026(t=\\\"COMBO\\\");return{type:t}}(i),n=e.size;t.options\\u0026\\u0026t.options.forceInput||e.addInput(t.name,s,{widget:{name:t.name,[Gi]:()=\\u003ei}});for(const a of e.widgets)a.last_y+=LiteGraph.NODE_SLOT_HEIGHT;e.setSize([Math.max(n[0],e.size[0]),Math.max(n[1],e.size[1])])}const ji=function(e){var t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f,g,v,y,w;const b=e.constructor.type,_=(null==(t=e.properties)?void 0:t.origVals)||{},S=_.title||e.title,x=_.color||e.color,L=_.bgcolor||e.bgcolor,k=e.graph||fe.graph,E={size:[...e.size],color:x,bgcolor:L,pos:[...e.pos]},N=e=\\u003e{var t,i,s,n;return(null==(t=k.getLink)?void 0:t.call(k,e))||(null==(s=null==(i=k.links)?void 0:i.get)?void 0:s.call(i,e))||(null==(n=k.links)?void 0:n[e])},C=[],I=[],T=new Map((null==(i=e.inputs)?void 0:i.map((e=\\u003e[e.name,e.label])))||[]),O=new Map((null==(s=e.outputs)?void 0:s.map((e=\\u003e[e.name,e.label])))||[]),M=(null==(n=e.widgets)?void 0:n.map((e=\\u003e({name:e.name,type:e.origType||e.type,value:e.value}))))||[],D=[];null==(a=e.inputs)||a.forEach(((e,t)=\\u003e{var i,s;if(null==e.link)return;const n=N(e.link);if(!n)return;const a=k.getNodeById(n.origin_id);C.push({inputName:e.name,inputSlot:t,originId:n.origin_id,originName:null==(s=null==(i=null==a?void 0:a.outputs)?void 0:i[n.origin_slot])?void 0:s.name,originSlot:n.origin_slot})})),null==(o=e.outputs)||o.forEach(((e,t)=\\u003e{var i,s;for(const n of e.links||[]){const a=N(n);if(!a)continue;const o=k.getNodeById(a.target_id);I.push({outputName:e.name,outputSlot:t,targetId:a.target_id,targetName:null==(s=null==(i=null==o?void 0:o.inputs)?void 0:i[a.target_slot])?void 0:s.name,targetSlot:a.target_slot})}})),null==(l=e.widgets)||l.forEach((t=\\u003e{var i,s,n;if(t.type!==Pi)return;const a=null==(i=e.inputs)?void 0:i.find((e=\\u003e{var i;return(null==(i=e.widget)?void 0:i.name)===t.name||e.name===t.name})),o=null==(n=null==(s=null==a?void 0:a.widget)?void 0:s[Gi])?void 0:n.call(s);o\\u0026\\u0026D.push({name:t.name,config:o})}));const R=LiteGraph.createNode(b,S,E);if(!R)return;k.remove(e),k.add(R);const P=(e,t,i)=\\u003e{var s,n,a,o,l,r,d;const u=e.origType||e.type;if(u!==t||null==i)return!1;const c=null==(s=e.options)?void 0:s.values;if(null!=c){const t=\\\"function\\\"==typeof c?c(e,R):c;return Array.isArray(t)?t.includes(i):!(!t||\\\"object\\\"!=typeof t)\\u0026\\u0026(Object.prototype.hasOwnProperty.call(t,i)||Number.isInteger(i)\\u0026\\u0026i\\u003e=0\\u0026\\u0026i\\u003cObject.keys(t).length)}if(\\\"number\\\"===u||\\\"slider\\\"===u){if(\\\"number\\\"!=typeof i||!Number.isFinite(i))return!1;const t=(null==(n=e.options)?void 0:n.min)??-1/0,s=(null==(a=e.options)?void 0:a.max)??1/0;return t\\u003c=i\\u0026\\u0026i\\u003c=s}if(\\\"number\\\"==typeof i){const t=(null==(o=e.options)?void 0:o.min)??-1/0,s=(null==(l=e.options)?void 0:l.max)??1/0;return Number.isFinite(i)\\u0026\\u0026t\\u003c=i\\u0026\\u0026i\\u003c=s}return\\\"boolean\\\"!=typeof i||(\\\"toggle\\\"===e.type||!(!(null==(r=e.options)?void 0:r.on)||!(null==(d=e.options)?void 0:d.off)))};for(const{name:G,type:z,value:V}of M){const e=null==(r=R.widgets)?void 0:r.find((e=\\u003ee.name===G));e\\u0026\\u0026P(e,z,V)\\u0026\\u0026(e.value=V)}for(const{name:G,config:z}of D){const e=null==(d=R.widgets)?void 0:d.find((e=\\u003ee.name===G));e\\u0026\\u0026Vi(R,e,z)}null==(u=R.inputs)||u.forEach((e=\\u003e{T.has(e.name)\\u0026\\u0026(e.label=T.get(e.name))})),null==(c=R.outputs)||c.forEach((e=\\u003e{O.has(e.name)\\u0026\\u0026(e.label=O.get(e.name))}));for(const{inputName:G,inputSlot:z,originId:V,originName:j,originSlot:U}of C){const e=k.getNodeById(V);if(!e)continue;const t=(null==(p=null==(A=e.outputs)?void 0:A[U])?void 0:p.name)===j?U:e.findOutputSlot(j),i=(null==(m=null==(h=R.inputs)?void 0:h[z])?void 0:m.name)===G?z:R.findInputSlot(G);t\\u003e=0\\u0026\\u0026i\\u003e=0\\u0026\\u0026e.connect(t,R,i)}for(const{outputName:G,outputSlot:z,targetId:V,targetName:j,targetSlot:U}of I){const e=k.getNodeById(V);if(!e)continue;const t=(null==(g=null==(f=R.outputs)?void 0:f[z])?void 0:g.name)===G?z:R.findOutputSlot(G),i=(null==(y=null==(v=e.inputs)?void 0:v[U])?void 0:y.name)===j?U:e.findInputSlot(j);t\\u003e=0\\u0026\\u0026i\\u003e=0\\u0026\\u0026R.connect(t,e,i)}R.setSize(E.size),null==(w=R.setDirtyCanvas)||w.call(R,!0,!0)};fe.registerExtension({name:\\\"Comfy.EasyUse.ExtraMenu\\\",async beforeRegisterNodeDef(e,t,i){Mi(e,(function(e,i){i.unshift({content:Ne(\\\"🔃 Reload Node\\\"),callback:(e,t,i,s,n)=\\u003e{let a=LGraphCanvas.active_canvas;if(!a.selected_nodes||Object.keys(a.selected_nodes).length\\u003c=1)ji(n);else for(let o in a.selected_nodes)ji(a.selected_nodes[o])}}),\\\"easy ckptNames\\\"==t.name\\u0026\\u0026i.unshift({content:Ne(\\\"💎 View Checkpoint Info...\\\"),callback:(e,t,i,s,n)=\\u003e{n.widgets[0].value}})}));for(const s in Ti)Ti[s].nodes.includes(t.name)\\u0026\\u0026Di(`↪️ Swap ${Ti[s].category}`,s,Ti[s].nodes,e)}});const Ui=LiteGraph.LGraphNode,Wi=\\\"➡️\\\";fe.registerExtension({name:\\\"easy setNode\\\",registerCustomNodes(){class e extends Ui{constructor(t){super(\\\"Set\\\"),v(this,\\\"defaultVisibility\\\",!0),v(this,\\\"serialize_widgets\\\",!0),this.properties||(this.properties={previousName:\\\"\\\"}),this.properties.showOutputText=e.defaultVisibility;const i=this;i.color=LGraphCanvas.node_colors.blue.color,this.addWidget(\\\"text\\\",\\\"Constant\\\",\\\"\\\",((e,t,s,n,a)=\\u003e{i.validateName(i.graph),\\\"\\\"!==this.widgets[0].value\\u0026\\u0026(this.title=Wi+this.widgets[0].value),this.properties.previousName=this.widgets[0].value,this.update()}),{}),this.addInput(\\\"*\\\",\\\"*\\\"),this.onConnectionsChange=function(e,t,s,n,a){if(1!=e||s||(this.inputs[t].type=\\\"*\\\",this.inputs[t].name=\\\"*\\\",this.title=\\\"Set\\\"),n\\u0026\\u0026i.graph\\u0026\\u00261==e\\u0026\\u0026s){const e=i.graph._nodes.find((e=\\u003ee.id==n.origin_id)).outputs[n.origin_slot];if(!e)return;const t=e.type,s=i.is_auto_link?this.widgets[0].value:e.name;\\\"Set\\\"===this.title\\u0026\\u0026(this.title=Wi+s,this.widgets[0].value=s),\\\"*\\\"===this.widgets[0].value\\u0026\\u0026(this.widgets[0].value=s),this.validateName(i.graph),this.inputs[0]\\u0026\\u0026(this.inputs[0].type=t,this.inputs[0].name=s),setTimeout((e=\\u003e{this.title=Wi+this.widgets[0].value,this.properties.previousName=this.widgets[0].value}),1)}this.update()},this.validateName=function(e){let t=i.widgets[0].value;if(\\\"\\\"!=t){let s=0,n=[];do{n=e._nodes.filter((e=\\u003ee!=this\\u0026\\u0026(\\\"easy setNode\\\"==e.type\\u0026\\u0026e.widgets[0].value===t))),n.length\\u003e0\\u0026\\u0026(t=i.widgets[0].value+s),s++}while(n.length\\u003e0);i.widgets[0].value=t,this.update()}},this.clone=function(){const t=e.prototype.clone.apply(this);return t.inputs[0].name=\\\"*\\\",t.inputs[0].type=\\\"*\\\",t.properties.previousName=\\\"\\\",t.size=t.computeSize(),t},this.onAdded=function(e){this.validateName(e)},this.update=function(){if(i.graph){this.findGetters(i.graph).forEach((e=\\u003e{e.setType(this.inputs[0].type)})),this.widgets[0].value\\u0026\\u0026this.findGetters(i.graph,!0).forEach((e=\\u003e{e.setName(this.widgets[0].value)}));i.graph._nodes.filter((e=\\u003e\\\"easy getNode\\\"==e.type)).forEach((e=\\u003e{e.setComboValues\\u0026\\u0026e.setComboValues()}))}},this.findGetters=function(e,t){const i=t?this.properties.previousName:this.widgets[0].value;return e._nodes.filter((e=\\u003e\\\"easy getNode\\\"==e.type\\u0026\\u0026e.widgets[0].value===i\\u0026\\u0026\\\"\\\"!=i))},this.isVirtualNode=!0}onRemoved(){this.graph._nodes.filter((e=\\u003e\\\"easy getNode\\\"==e.type)).forEach((e=\\u003e{e.setComboValues\\u0026\\u0026e.setComboValues([this])}))}}LiteGraph.registerNodeType(\\\"easy setNode\\\",Object.assign(e,{title:\\\"Set\\\"})),e.category=\\\"EasyUse/Util\\\"}}),fe.registerExtension({name:\\\"easy getNode\\\",registerCustomNodes(){class e extends Ui{constructor(t){super(\\\"Get\\\"),v(this,\\\"defaultVisibility\\\",!0),v(this,\\\"serialize_widgets\\\",!0),this.properties||(this.properties={}),this.properties.showOutputText=e.defaultVisibility;const i=this;i.color=LGraphCanvas.node_colors.blue.color,this.addWidget(\\\"combo\\\",\\\"Constant\\\",\\\"\\\",(e=\\u003e{this.onRename()}),{values:()=\\u003ei.graph._nodes.filter((e=\\u003e\\\"easy setNode\\\"==e.type)).map((e=\\u003ee.widgets[0].value)).sort()}),this.addOutput(\\\"*\\\",\\\"*\\\"),this.onConnectionsChange=function(e,t,i,s,n){this.validateLinks(),2!=e||i?(this.onRename(),setTimeout((e=\\u003e{this.title=\\\"⬅️\\\"+this.widgets[0].value}),1)):(this.outputs[t].type=\\\"*\\\",this.outputs[t].name=\\\"*\\\",this.title=\\\"Get\\\")},this.setName=function(e){i.widgets[0].value=e,i.onRename(),i.serialize()},this.onRename=function(e=0){const t=this.findSetter(i.graph);if(t){const i=t.inputs[0].type,s=t.inputs[0].name;this.setType(i,s),this.outputs[e].type=i,this.outputs[e].name=s,this.title=\\\"⬅️\\\"+t.widgets[0].value}else this.setType(\\\"*\\\",\\\"*\\\"),this.outputs[e].type=\\\"*\\\",this.outputs[e].name=\\\"*\\\"},this.clone=function(){const t=e.prototype.clone.apply(this);return t.size=t.computeSize(),t},this.validateLinks=function(){\\\"*\\\"!=this.outputs[0].type\\u0026\\u0026this.outputs[0].links\\u0026\\u0026this.outputs[0].links.forEach((e=\\u003e{const t=i.graph.links[e];t\\u0026\\u0026t.type!=this.outputs[0].type\\u0026\\u0026\\\"*\\\"!=t.type\\u0026\\u0026i.graph.removeLink(e)}))},this.setType=function(e,t){this.outputs[0].name=t,this.outputs[0].type=e,this.validateLinks()},this.findSetter=function(e){const t=this.widgets[0].value;return e._nodes.find((e=\\u003e\\\"easy setNode\\\"==e.type\\u0026\\u0026e.widgets[0].value===t\\u0026\\u0026\\\"\\\"!=t))},this.isVirtualNode=!0}getInputLink(e){const t=this.findSetter(this.graph);if(t){const i=t.inputs[e];return this.graph.links[i.link]}throw new Error(\\\"No setter found for \\\"+this.widgets[0].value+\\\"(\\\"+this.type+\\\")\\\")}onAdded(e){}}LiteGraph.registerNodeType(\\\"easy getNode\\\",Object.assign(e,{title:\\\"Get\\\"})),e.category=\\\"EasyUse/Util\\\"}}),ge.addEventListener(\\\"easyuse-global-seed\\\",(function(e){let t=fe.graph._nodes_by_id;for(let i in t){let s=t[i];if(\\\"easy globalSeed\\\"==s.type){if(s.widgets){const t=s.widgets.find((e=\\u003e\\\"value\\\"==e.name));s.widgets.find((e=\\u003e\\\"last_seed\\\"==e.name)).value=t.value,t.value=e.detail.value}}else if(s.widgets){const t=s.widgets.find((e=\\u003e\\\"seed_num\\\"==e.name||\\\"seed\\\"==e.name||\\\"noise_seed\\\"==e.name));t\\u0026\\u0026null!=e.detail.seed_map[s.id]\\u0026\\u0026(t.value=e.detail.seed_map[s.id])}}}));const Fi=fe.graphToPrompt;fe.graphToPrompt=function(...e){const t=e[0]||fe.rootGraph||fe.graph;return Promise.resolve(Fi.apply(this,e)).then((e=\\u003efunction(e,t){const i=null==e?void 0:e.workflow;if(!i||\\\"object\\\"!=typeof i)return e;i.seed_widgets={};const s=(null==t?void 0:t._nodes_by_id)||{};for(let n in s){let e=s[n].widgets;if(e)for(let t in e)\\\"seed_num\\\"!=e[t].name\\u0026\\u0026\\\"seed\\\"!=e[t].name\\u0026\\u0026\\\"noise_seed\\\"!=e[t].name||\\\"converted-widget\\\"==e[t].type||(i.seed_widgets[n]=parseInt(t))}return e}(e,t)))};const Xi=[\\\"easy imageSave\\\",\\\"easy fullkSampler\\\",\\\"easy kSampler\\\",\\\"easy kSamplerTiled\\\",\\\"easy kSamplerInpainting\\\",\\\"easy kSamplerDownscaleUnet\\\",\\\"easy kSamplerSDTurbo\\\",\\\"easy detailerFix\\\"];fe.registerExtension({name:\\\"Comfy.EasyUse.SaveImageExtraOutput\\\",async beforeRegisterNodeDef(e,t,i){if(Xi.includes(t.name)){const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){const e=t?t.apply(this,arguments):void 0,s=this.widgets.find((e=\\u003e\\\"filename_prefix\\\"===e.name||\\\"save_prefix\\\"===e.name));return s.serializeValue=()=\\u003ebe(i,s.value),e}}else{const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){const e=t?t.apply(this,arguments):void 0;return this.properties\\u0026\\u0026\\\"Node name for S\\u0026R\\\"in this.properties||this.addProperty(\\\"Node name for S\\u0026R\\\",this.constructor.type,\\\"string\\\"),e}}}});const Zi=[\\\"easy wildcards\\\",\\\"easy positive\\\",\\\"easy negative\\\",\\\"easy stylesSelector\\\",\\\"easy promptConcat\\\",\\\"easy promptReplace\\\"],Hi=[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingNoiseIn\\\",\\\"easy preSamplingCustom\\\",\\\"easy preSamplingDynamicCFG\\\",\\\"easy preSamplingSdTurbo\\\",\\\"easy preSamplingLayerDiffusion\\\"],qi=[\\\"easy kSampler\\\",\\\"easy kSamplerTiled\\\",\\\"easy kSamplerInpainting\\\",\\\"easy kSamplerDownscaleUnet\\\",\\\"easy kSamplerSDTurbo\\\"],Yi=[\\\"easy controlnetLoader\\\",\\\"easy controlnetLoaderADV\\\"],Ki=[\\\"easy instantIDApply\\\",\\\"easy instantIDApplyADV\\\"],Ji=[\\\"easy ipadapterApply\\\",\\\"easy ipadapterApplyADV\\\",\\\"easy ipadapterApplyFaceIDKolors\\\",\\\"easy ipadapterStyleComposition\\\"],Bi=[\\\"easy pipeIn\\\",\\\"easy pipeOut\\\",\\\"easy pipeEdit\\\",\\\"easy pipeEditPrompt\\\"],Qi=[\\\"easy XYPlot\\\",\\\"easy XYPlotAdvanced\\\"],$i=[\\\"easy setNode\\\"],es=[\\\"RescaleCFG\\\",\\\"LoraLoaderModelOnly\\\",\\\"LoraLoader\\\",\\\"FreeU\\\",\\\"FreeU_v2\\\",...Ji,...$i],ts={\\\"easy seed\\\":{from:{INT:[...Hi,\\\"easy fullkSampler\\\"]}},\\\"easy positive\\\":{from:{STRING:[...Zi]}},\\\"easy negative\\\":{from:{STRING:[...Zi]}},\\\"easy wildcards\\\":{from:{STRING:[\\\"easy showAnything\\\",...Zi]}},\\\"easy stylesSelector\\\":{from:{STRING:[\\\"easy showAnything\\\",...Zi]}},\\\"easy promptConcat\\\":{from:{STRING:[\\\"easy showAnything\\\",...Zi]}},\\\"easy promptReplace\\\":{from:{STRING:[\\\"easy showAnything\\\",...Zi]}},\\\"easy fullLoader\\\":{from:{PIPE_LINE:[...Hi,\\\"easy fullkSampler\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy a1111Loader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy comfyLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy hunyuanDiTLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy kolorsLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy pixArtLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy fluxLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy svdLoader\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingDynamicCFG\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy zero123Loader\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingDynamicCFG\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy sv3dLoader\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",\\\"easy preSamplingDynamicCFG\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\"easy preSampling\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingAdvanced\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingDynamicCFG\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingCustom\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingLayerDiffusion\\\":{from:{PIPE_LINE:[\\\"easy kSamplerLayerDiffusion\\\",...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy preSamplingNoiseIn\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\"easy fullkSampler\\\":{from:{PIPE_LINE:[...Bi.reverse(),\\\"easy preDetailerFix\\\",\\\"easy preMaskDetailerFix\\\",...Hi,...$i]}},\\\"easy kSampler\\\":{from:{PIPE_LINE:[...Bi.reverse(),\\\"easy preDetailerFix\\\",\\\"easy preMaskDetailerFix\\\",\\\"easy hiresFix\\\",...Hi,...$i]}},\\\"easy controlnetLoader\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\"easy controlnetLoaderADV\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\"easy instantIDApply\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{COMBO:[\\\"easy promptLine\\\"]}},\\\"easy instantIDApplyADV\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{COMBO:[\\\"easy promptLine\\\"]}},\\\"easy ipadapterApply\\\":{to:{COMBO:[\\\"easy promptLine\\\"]}},\\\"easy ipadapterApplyADV\\\":{to:{STRING:[\\\"easy sliderControl\\\",...Zi],COMBO:[\\\"easy promptLine\\\"]}},\\\"easy ipadapterStyleComposition\\\":{to:{COMBO:[\\\"easy promptLine\\\"]}},\\\"easy preDetailerFix\\\":{from:{PIPE_LINE:[\\\"easy detailerFix\\\",...Bi,...$i]},to:{PIPE_LINE:[\\\"easy ultralyticsDetectorPipe\\\",\\\"easy samLoaderPipe\\\",\\\"easy kSampler\\\",\\\"easy fullkSampler\\\"]}},\\\"easy preMaskDetailerFix\\\":{from:{PIPE_LINE:[\\\"easy detailerFix\\\",...Bi,...$i]}},\\\"easy samLoaderPipe\\\":{from:{PIPE_LINE:[\\\"easy preDetailerFix\\\",...Bi,...$i]}},\\\"easy ultralyticsDetectorPipe\\\":{from:{PIPE_LINE:[\\\"easy preDetailerFix\\\",...Bi,...$i]}},\\\"easy cascadeLoader\\\":{from:{PIPE_LINE:[\\\"easy fullCascadeKSampler\\\",\\\"easy preSamplingCascade\\\",...Yi,...Bi,...$i],MODEL:es.filter((e=\\u003e!Ji.includes(e)))}},\\\"easy fullCascadeKSampler\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",...Bi,...$i]}},\\\"easy preSamplingCascade\\\":{from:{PIPE_LINE:[\\\"easy cascadeKSampler\\\",...Bi,...$i]}},\\\"easy cascadeKSampler\\\":{from:{PIPE_LINE:[\\\"easy preSampling\\\",\\\"easy preSamplingAdvanced\\\",...Bi,...$i]}},\\\"easy pipeEdit\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...$i]},to:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\"easy pipeEditPrompt\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...$i]},to:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}}};class is extends Error{constructor(e=\\\"Attempted to access LGraph reference that was null or undefined.\\\",t){super(e,{cause:t}),this.name=\\\"NullGraphError\\\"}}fe.registerExtension({name:\\\"Comfy.EasyUse.Suggestions\\\",async setup(e){const t=LGraphCanvas.prototype.createDefaultNodeForSlot;LGraphCanvas.prototype.createDefaultNodeForSlot=function(e){var i;const s=Object.assign({nodeFrom:null,slotFrom:null,nodeTo:null,slotTo:null,position:[],nodeType:null,posAdd:[0,0],posSizeFix:[0,0]},e||{}),n=this,a=s.nodeFrom\\u0026\\u0026null!==s.slotFrom,o=!a\\u0026\\u0026s.nodeTo\\u0026\\u0026null!==s.slotTo,l=a?s.nodeFrom:s.nodeTo;if(!l||!Object.keys(ts).includes(l.type))return t.call(this,e);if(!a\\u0026\\u0026!o)return!1;if(!s.nodeType)return!1;const r=a?s.nodeFrom:s.nodeTo;if(!r)throw new TypeError(\\\"nodeX was null when creating default node for slot.\\\");const d=r.type;let u=a?s.slotFrom:s.slotTo,c=!1;switch(typeof u){case\\\"string\\\":c=a?r.findOutputSlot(u,!1):r.findInputSlot(u,!1),u=a?r.outputs[u]:r.inputs[u];break;case\\\"object\\\":if(null===u)return!1;c=a?r.findOutputSlot(u.name):r.findInputSlot(u.name);break;case\\\"number\\\":c=u,u=a?r.outputs[u]:r.inputs[u];break;default:return!1}var A=u.type==LiteGraph.EVENT?\\\"_event_\\\":u.type,p=a?LiteGraph.slot_types_default_out:LiteGraph.slot_types_default_in;if(null==p?void 0:p[A]){let e=!1;const t=a?\\\"from\\\":\\\"to\\\";if(ts[d]\\u0026\\u0026ts[d][t]\\u0026\\u0026(null==(i=ts[d][t][A])?void 0:i.length)\\u003e0){for(var h in ts[d][t][A])if(s.nodeType==ts[d][t][A][h]||\\\"AUTO\\\"==s.nodeType){e=ts[d][t][A][h];break}}else if(\\\"object\\\"==typeof p[A]||\\\"array\\\"==typeof p[A]){for(var h in p[A])if(s.nodeType==p[A][h]||\\\"AUTO\\\"==s.nodeType){e=p[A][h];break}}else s.nodeType!=p[A]\\u0026\\u0026\\\"AUTO\\\"!=s.nodeType||(e=p[A]);if(e){var m=!1;\\\"object\\\"==typeof e\\u0026\\u0026e.node\\u0026\\u0026(m=e,e=e.node);var f=LiteGraph.createNode(e);if(f){if(m){if(m.properties)for(var g in m.properties)f.addProperty(g,m.properties[g]);if(m.inputs)for(var g in f.inputs=[],m.inputs)f.addOutput(m.inputs[g][0],m.inputs[g][1]);if(m.outputs)for(var g in f.outputs=[],m.outputs)f.addOutput(m.outputs[g][0],m.outputs[g][1]);m.title\\u0026\\u0026(f.title=m.title),m.json\\u0026\\u0026f.configure(m.json)}n.graph.add(f),f.pos=[s.position[0]+s.posAdd[0]+(s.posSizeFix[0]?s.posSizeFix[0]*f.size[0]:0),s.position[1]+s.posAdd[1]+(s.posSizeFix[1]?s.posSizeFix[1]*f.size[1]:0)];const e={node:f,opts:s};if(!this.canvas.dispatchEvent(new CustomEvent(\\\"connect-new-default-node\\\",{detail:e,cancelable:!0})))return!0;if(a){if(!s.nodeFrom)throw new TypeError(\\\"createDefaultNodeForSlot - nodeFrom was null\\\");s.nodeFrom.connectByType(c,f,A)}else{if(!s.nodeTo)throw new TypeError(\\\"createDefaultNodeForSlot - nodeTo was null\\\");s.nodeTo.connectByTypeOutput(c,f,A)}return!0}}}return!1};let i=LGraphCanvas.prototype.showConnectionMenu;LGraphCanvas.prototype.showConnectionMenu=function(e){var t;const s=Object.assign({nodeFrom:null,slotFrom:null,nodeTo:null,slotTo:null,e:void 0,allow_searchbox:this.allow_searchbox,showSearchBox:this.showSearchBox},e||{}),n=this,{graph:a}=this,{afterRerouteId:o}=s,l=s.nodeFrom\\u0026\\u0026s.slotFrom,r=!l\\u0026\\u0026s.nodeTo\\u0026\\u0026s.slotTo,d=l?s.nodeFrom:s.nodeTo;if(!d||!Object.keys(ts).includes(d.type))return i.call(this,e);if(!l\\u0026\\u0026!r)return!1;const u=l?s.nodeFrom:s.nodeTo;if(!u)throw new TypeError(\\\"nodeX was null when creating default node for slot.\\\");let c=l?s.slotFrom:s.slotTo,A=!1;switch(typeof c){case\\\"string\\\":A=l?u.findOutputSlot(c,!1):u.findInputSlot(c,!1),c=l?u.outputs[c]:u.inputs[c];break;case\\\"object\\\":if(null===c)return;A=l?u.findOutputSlot(c.name):u.findInputSlot(c.name);break;case\\\"number\\\":A=c,c=l?u.outputs[c]:u.inputs[c];break;default:return!1}const p=[\\\"Add Node\\\",\\\"Add Reroute\\\",null];s.allow_searchbox\\u0026\\u0026p.push(\\\"Search\\\",null);var h=c.type==LiteGraph.EVENT?\\\"_event_\\\":c.type,m=l?LiteGraph.slot_types_default_out:LiteGraph.slot_types_default_in,f=u.type;if(m\\u0026\\u0026m[h]){const e=l?\\\"from\\\":\\\"to\\\";if(ts[f]\\u0026\\u0026ts[f][e]\\u0026\\u0026(null==(t=ts[f][e][h])?void 0:t.length)\\u003e0)for(var g in ts[f][e][h])p.push(ts[f][e][h][g]);else if(\\\"object\\\"==typeof m[h]||\\\"array\\\"==typeof m[h])for(var g in m[h])p.push(m[h][g]);else p.push(m[h])}var v=new LiteGraph.ContextMenu(p,{event:s.e,extra:c,title:(c\\u0026\\u0026\\\"\\\"!=c.name?c.name+(h?\\\" | \\\":\\\"\\\"):\\\"\\\")+(c\\u0026\\u0026h?h:\\\"\\\"),callback:function(e,t,i){var r,d;switch(e){case\\\"Add Node\\\":LGraphCanvas.onMenuAdd(null,null,i,v,(function(e){var t,i;e\\u0026\\u0026(l?null==(t=s.nodeFrom)||t.connectByType(A,e,h,{afterRerouteId:o}):null==(i=s.nodeTo)||i.connectByTypeOutput(A,e,h,{afterRerouteId:o}))}));break;case\\\"Add Reroute\\\":const u=l?s.nodeFrom:s.nodeTo,p=t.extra;if(!a)throw new is;if(!u)throw new TypeError(\\\"Cannot add reroute: node was null\\\");if(!p)throw new TypeError(\\\"Cannot add reroute: slot was null\\\");if(!s.e)throw new TypeError(\\\"Cannot add reroute: CanvasPointerEvent was null\\\");if(!u.connectFloatingReroute([s.e.canvasX,s.e.canvasY],p,o))throw new Error(\\\"Failed to create reroute\\\");n.dirty_canvas=!0,n.dirty_bgcanvas=!0;break;case\\\"Search\\\":l?s.showSearchBox(i,{node_from:s.nodeFrom,slot_from:c,type_filter_in:h}):s.showSearchBox(i,{node_to:s.nodeTo,slot_from:c,type_filter_out:h});break;default:const m={position:[(null==(r=s.e)?void 0:r.canvasX)??0,(null==(d=s.e)?void 0:d.canvasY)??0],nodeType:e,afterRerouteId:o};n.createDefaultNodeForSlot(Object.assign(s,m))}}});return v}}}),fe.registerExtension({name:\\\"Comfy.EasyUse.TimeTaken\\\",setup(){let e=new Map,t=0;ge.addEventListener(\\\"execution_start\\\",(e=\\u003e{graph\\u0026\\u0026graph._nodes.forEach((e=\\u003e{e.executionDuration\\u0026\\u0026delete e.executionDuration}))})),ge.addEventListener(\\\"executing\\\",(i=\\u003e{if(!xe(\\\"EasyUse.Nodes.Runtime\\\",null))return;const s=(null==i?void 0:i.node)||(null==i?void 0:i.detail)||null,n=e.get(t);if(e.delete(t),t\\u0026\\u0026n){const e=Date.now()-n,i=xt(t);i\\u0026\\u0026(i.executionDuration||(i.executionDuration=0),i.executionDuration=i.executionDuration+e/1e3)}t=s,e.set(s,Date.now())}))},beforeRegisterNodeDef(e,t){const i=e.prototype.onDrawForeground;e.prototype.onDrawForeground=function(...e){const[t]=e;return function(e,t){if(!t)return;t=parseFloat(t).toFixed(3)+Ne(\\\"s\\\"),e.save(),e.fillStyle=LiteGraph.NODE_DEFAULT_BGCOLOR,function(e,t,i,s,n,a){e.beginPath(),e.moveTo(t+a,i),e.lineTo(t+s-a,i),e.arcTo(t+s,i,t+s,i+a,a),e.lineTo(t+s,i+n-a),e.arcTo(t+s,i+n,t+s-a,i+n,a),e.lineTo(t+a,i+n),e.arcTo(t,i+n,t,i+n-a,a),e.lineTo(t,i+a),e.arcTo(t,i,t+a,i,a),e.closePath()}(e,0,-LiteGraph.NODE_TITLE_HEIGHT-20,e.measureText(t).width+10,LiteGraph.NODE_TITLE_HEIGHT-10,4),e.fill(),function(e,t,i,s,n=\\\"#000\\\",a=12,o=\\\"Inter\\\"){e.font=`${a}px ${o}`,e.fillStyle=n,e.fillText(t,i,s)}(e,t,8,-LiteGraph.NODE_TITLE_HEIGHT-6,LiteGraph.NODE_TITLE_COLOR),e.restore()}(t,this.executionDuration),null==i?void 0:i.apply(this,e)}}});let ss=null;fe.registerExtension({name:\\\"Comfy.EasyUse.HotKeys\\\",setup(){if(void 0!==x){x(\\\"up,down,left,right\\\",(function(e,t){var i,s,n,a,o,l,r,d,u,c,A,p,h,m,f;e.preventDefault();if(!xe(\\\"EasyUse.Hotkeys.JumpNearestNodes\\\",null))return;const g=Lt();if(0===g.length)return;const v=g[0];switch(t.key){case\\\"up\\\":case\\\"left\\\":let e=null;if(Tt(v)){const e=null==(i=v.widgets_values)?void 0:i[0],t=null==(s=v.graph)?void 0:s._nodes,n=null==t?void 0:t.find((t=\\u003e{var i;if(Ot(t)){if((null==(i=t.widgets_values)?void 0:i[0])===e)return t}return null}));n\\u0026\\u0026Et(n)}else if((null==(n=v.inputs)?void 0:n.length)\\u003e0){for(let t=0;t\\u003cv.inputs.length;t++)if(v.inputs[t].link){e=v.inputs[t].link;break}if(e){const t=null==(a=v.graph)?void 0:a.links;if(t[e]){const i=null==(o=t[e])?void 0:o.origin_id,s=null==(r=null==(l=v.graph)?void 0:l._nodes_by_id)?void 0:r[i];s\\u0026\\u0026Et(s)}}}break;case\\\"down\\\":case\\\"right\\\":let t=null;if(Ot(v)){const e=null==(d=v.widgets_values)?void 0:d[0],t=null==(u=v.graph)?void 0:u._nodes,i=null==t?void 0:t.find((t=\\u003e{var i;if(Tt(t)){if((null==(i=t.widgets_values)?void 0:i[0])===e)return t}return null}));i\\u0026\\u0026Et(i)}else if((null==(c=v.outputs)?void 0:c.length)\\u003e0){for(let e=0;e\\u003cv.outputs.length;e++)if((null==(A=v.outputs[e].links)?void 0:A.length)\\u003e0\\u0026\\u0026v.outputs[e].links[0]){t=v.outputs[e].links[0];break}if(t){const e=null==(p=v.graph)?void 0:p.links;if(e[t]){const i=null==(h=e[t])?void 0:h.target_id,s=null==(f=null==(m=v.graph)?void 0:m._nodes_by_id)?void 0:f[i];s\\u0026\\u0026Et(s)}}}}})),x(\\\"shift+up,shift+down,shift+left,shift+right,shift+alt+⌘+left,shift+alt+⌘+right,shift+alt+ctrl+left,shift+alt+ctrl+right\\\",(function(e,t){e.preventDefault();if(!xe(\\\"EasyUse.Hotkeys.AlignSelectedNodes\\\",null))return;const i=Lt();if(i.length\\u003c=1)return;const s=i;switch(t.key){case\\\"shift+up\\\":LGraphCanvas.alignNodes(s,\\\"top\\\",s[0]);break;case\\\"shift+down\\\":LGraphCanvas.alignNodes(s,\\\"bottom\\\",s[0]);break;case\\\"shift+left\\\":LGraphCanvas.alignNodes(s,\\\"left\\\",s[0]);break;case\\\"shift+right\\\":LGraphCanvas.alignNodes(s,\\\"right\\\",s[0]);break;case\\\"shift+alt+ctrl+left\\\":case\\\"shift+alt+⌘+left\\\":Ft(s,\\\"horizontal\\\");break;case\\\"shift+alt+ctrl+right\\\":case\\\"shift+alt+⌘+right\\\":Ft(s,\\\"vertical\\\")}ss||(ss=Ke()),ss\\u0026\\u0026ss.update()})),x(\\\"shift+⌘+left,shift+⌘+right,shift+ctrl+left,shift+ctrl+right\\\",(function(e,t){e.preventDefault();if(!xe(\\\"EasyUse.Hotkeys.NormalizeSelectedNodes\\\",null))return;const i=Lt();if(i.length\\u003c=1)return;const s=i;switch(t.key){case\\\"shift+ctrl+left\\\":case\\\"shift+⌘+left\\\":Wt(s,\\\"width\\\");break;case\\\"shift+ctrl+right\\\":case\\\"shift+⌘+right\\\":Wt(s,\\\"height\\\")}ss||(ss=Ke()),ss\\u0026\\u0026ss.update()})),x(\\\"shift+g\\\",(function(e,t){e.preventDefault();xe(\\\"EasyUse.Hotkeys.AddGroup\\\",null)\\u0026\\u0026(as(),ss||(ss=Ke()),ss\\u0026\\u0026ss.update())})),x(\\\"shift+r\\\",(function(e,t){e.preventDefault();xe(\\\"EasyUse.Hotkeys.cleanVRAMused\\\",null)\\u0026\\u0026vi()})),x(\\\"shift+m\\\",(function(e,t){var i,s,n;if(!xe(\\\"EasyUse.Hotkeys.toggleNodesMap\\\",null))return;let a=(null==(i=fe.extensionManager)?void 0:i.sidebarTab)||fe.extensionManager,o=(null==(s=fe.extensionManager.sidebarTab)?void 0:s.activeSidebarTabId)||(null==(n=fe.extensionManager)?void 0:n.activeSidebarTab);a.activeSidebarTabId=o==Pe?null:Pe}));const e=[];Array.from(Array(10).keys()).forEach((t=\\u003ee.push(`alt+${t}`))),x(e.join(\\\",\\\"),(async function(e,t){e.preventDefault();if(!xe(\\\"EasyUse.Hotkeys.NodesTemplate\\\",null))return;const i=t.key;let s=parseInt(i.split(\\\"+\\\")[1]);const n=await ge.getUserData(\\\"comfy.templates.json\\\");let a=null;if(200==n.status)try{a=await n.json()}catch(l){Ye.error(Ne(\\\"Get Node Templates File Failed\\\"))}else localStorage[\\\"Comfy.NodeTemplates\\\"]?a=JSON.parse(localStorage[\\\"Comfy.NodeTemplates\\\"]):Ye.warn(Ne(\\\"No Node Templates Found\\\"));if(!a)return void Ye.warn(Ne(\\\"No Node Templates Found\\\"));s=0===s?9:s-1;const o=a[s];if(o)try{const e=(null==o?void 0:o.name)||\\\"Group\\\",t=(null==o?void 0:o.data)?JSON.parse(o.data):[];ns((async()=\\u003e{await _e.registerFromWorkflow(t.groupNodes,{}),localStorage.litegrapheditor_clipboard=o.data,fe.canvas.pasteFromClipboard(),t.groupNodes||as(e)}))}catch(l){Ye.error(l)}else Ye.warn(Ne(\\\"Node template with {key} not set\\\").replace(\\\"{key}\\\",i))}));const t=async function(e){if((\\\"b\\\"===e.key||\\\"m\\\"==e.key)\\u0026\\u0026(e.metaKey||e.ctrlKey)){if(0===Lt().length)return;ss||(ss=Ke()),ss\\u0026\\u0026ss.update()}};window.addEventListener(\\\"keydown\\\",t,!0)}}});const ns=async e=\\u003e{const t=localStorage.litegrapheditor_clipboard;await e(),localStorage.litegrapheditor_clipboard=t},as=e=\\u003e{const t=Lt();if(0===t.length)return;const i=t;let s=new LiteGraph.LGraphGroup;s.title=e||\\\"Group\\\",((e,t=[],i=20)=\\u003e{var s,n,a,o,l,r,d,u,c,A;for(var p of(n=a=o=l=-1,r=d=u=c=-1,[e._nodes,t]))for(var h in p)r=(A=p[h]).pos[0],d=A.pos[1],u=A.pos[0]+A.size[0],c=A.pos[1]+A.size[1],\\\"Reroute\\\"!=A.type\\u0026\\u0026(d-=LiteGraph.NODE_TITLE_HEIGHT),(null==(s=A.flags)?void 0:s.collapsed)\\u0026\\u0026(c=d+LiteGraph.NODE_TITLE_HEIGHT,(null==A?void 0:A._collapsed_width)\\u0026\\u0026(u=r+Math.round(A._collapsed_width))),(-1==n||r\\u003cn)\\u0026\\u0026(n=r),(-1==a||d\\u003ca)\\u0026\\u0026(a=d),(-1==o||u\\u003eo)\\u0026\\u0026(o=u),(-1==l||c\\u003el)\\u0026\\u0026(l=c);a-=Math.round(1.4*e.font_size),e.pos=[n-i,a-i],e.size=[o-n+2*i,l-a+2*i]})(s,i),fe.canvas.graph.add(s)},os=\\\"easy imageChooser\\\",ls=e=\\u003e(null==e?void 0:e.comfyClass)===os;fe.registerExtension({name:\\\"Comfy.EasyUse.imageChooser\\\",setup(){const e=ge.interrupt;ge.interrupt=function(){var t;(null==(t=fe.graph)?void 0:t._nodes_by_id)\\u0026\\u0026(()=\\u003e{var e;Object.values(null==(e=fe.graph)?void 0:e._nodes_by_id).forEach((e=\\u003e{ls(e)\\u0026\\u0026e.cancelSelection(\\\"interrupt\\\")}))})(),e.apply(this,arguments)},ge.addEventListener(\\\"easyuse-image-choose\\\",(e=\\u003e{var t;const i=e.detail,s=fe.graph._nodes_by_id[i.id];if(!s||!ls(s))return;s.setExecutingState(!1),s.selected_images.clear(),s.anti_selected.clear(),s.isWaitingSelection=[\\\"Always Pause\\\",\\\"Keep Last Selection\\\"].includes(s.currentMode),s.isCanceling=!1,s.overIndex=null;const n=(null==(t=i.urls)?void 0:t.map(((e,t)=\\u003e({index:t,filename:e.filename,subfolder:e.subfolder,type:e.type}))))||[];s.imageData=n,s.imgs=[],n.forEach((e=\\u003e{const t=new Image;t.onload=()=\\u003e{fe.graph.setDirtyCanvas(!0)},t.src=`/view?filename=${encodeURIComponent(e.filename)}${(e=\\u003e`\\u0026type=${e.type}\\u0026subfolder=${e.subfolder}\\u0026rand=${e.random}`)(e)}`,s.imgs.push(t)})),s.update(),\\\"Always Pause\\\"===s.currentMode\\u0026\\u0026s.setExecutingState(!0)})),ge.addEventListener(\\\"easyuse-image-keep-selection\\\",(e=\\u003e{const t=e.detail,i=fe.graph._nodes_by_id[t.id];i\\u0026\\u0026ls(i)\\u0026\\u0026(i.isWaitingSelection=!1,i.isCancelling=!1,t.selected\\u0026\\u0026Array.isArray(t.selected)\\u0026\\u0026(i.selected_images.clear(),t.selected.forEach((e=\\u003e{i.selected_images.add(e)}))),i.update())}))},beforeRegisterNodeDef(e,t){if(t.name==os){e.prototype.confirmSelection=function(){ge.fetchApi(\\\"/easyuse/image_chooser_message\\\",{method:\\\"POST\\\",body:JSON.stringify({node_id:this.id.toString(),action:\\\"select\\\",selected:Array.from(this.selected_images)})}).catch((e=\\u003e{})).finally((e=\\u003e{this.isWaitingSelection=!1,this.update(),this.setExecutingState(!1)}))},e.prototype.cancelSelection=function(e){ge.fetchApi(\\\"/easyuse/image_chooser_message\\\",{method:\\\"POST\\\",body:JSON.stringify({node_id:this.id.toString(),action:\\\"cancel\\\",selected:[]})}).catch((e=\\u003e{})).finally((e=\\u003e{this.isCanceling=!1,this.isWaitingSelection=!1,this.update(),this.setExecutingState(!1)}))},e.prototype.updateWidgets=function(){var e;if(!this.confirm_button_widget||!this.cancel_button_widget)return;const t=this.selected_images.size,i=(null==(e=this.imgs)?void 0:e.length)||0;if(this.isCanceling)this.confirm_button_widget.name=Ne(\\\"Canceling\\\"),this.cancel_button_widget.name=\\\"\\\",this.confirm_button_widget.disabled=!0,this.cancel_button_widget.disabled=!0;else if(this.isWaitingSelection)t\\u003e0?(this.confirm_button_widget.name=t\\u003e1?`${Ne(\\\"Progress selected\\\")} (${t}/${i})`:`${Ne(\\\"Progress selected image\\\")}`,this.confirm_button_widget.disabled=!1):(this.confirm_button_widget.name=Ne(\\\"Please select images to continue\\\"),this.confirm_button_widget.disabled=!0),this.cancel_button_widget.name=Ne(\\\"Cancel current run\\\"),this.cancel_button_widget.disabled=!1;else{const e={\\\"Always Pause\\\":Ne(\\\"Waiting for selection...\\\"),\\\"Keep Last Selection\\\":Ne(\\\"Using last selection\\\")};this.confirm_button_widget.name=(t\\u003e0\\u0026\\u0026\\\"Always Pause\\\"==this.currentMode?Ne(\\\"Please run first\\\"):null==e?void 0:e[this.currentMode])||Ne(\\\"Unknown Mode\\\"),this.cancel_button_widget.name=\\\"\\\",this.confirm_button_widget.disabled=!0,this.cancel_button_widget.disabled=!0}this.setDirtyCanvas(!0,!0)},e.prototype.serialize=function(){const e=LiteGraph.LGraphNode.prototype.serialize.call(this);return e.isWaitingSelection=this.isWaitingSelection,e.currentMode=this.currentMode,this.imageData\\u0026\\u0026this.imageData.length\\u003e0\\u0026\\u0026(e.imageData=this.imageData),this.selected_images\\u0026\\u0026this.selected_images.size\\u003e0\\u0026\\u0026(e.selected_images=Array.from(this.selected_images)),e.isExecuting=this.isExecuting||!1,e},e.prototype.configure=function(e){LiteGraph.LGraphNode.prototype.configure.call(this,e),this.isWaitingSelection=e.isWaitingSelection||!1,this.currentMode=e.currentMode||\\\"Always Pause\\\",this.imgs=[],this.updateWidgets()},e.prototype.setExecutingState=function(e){this.isExecuting=e,fe.graph\\u0026\\u0026fe.graph.setDirtyCanvas(!0,!1)};const t=e.prototype.update;e.prototype.update=function(){null==t||t.call(this,arguments),this.updateWidgets()};const i=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){null==i||i.call(this,arguments),this.selected_images=new Set,this.anti_selected=new Set,this.currentMode=\\\"Always Pause\\\",this.isWaitingSelection=!1,this.isCanceling=!1,this.imageData=[],this.imgs,this.confirm_button_widget=this.addWidget(\\\"button\\\",\\\"\\\",\\\"\\\",(()=\\u003e{this.confirmSelection()})),this.cancel_button_widget=this.addWidget(\\\"button\\\",\\\"\\\",\\\"\\\",(()=\\u003e{this.cancelSelection()})),this.confirm_button_widget.serialize=!1,this.cancel_button_widget.serialize=!1,setTimeout((e=\\u003e{const t=wt(this,\\\"mode\\\");t.callback=e=\\u003e{requestAnimationFrame((t=\\u003e{this.currentMode=e,this.updateWidgets(),this.setDirtyCanvas(!0,!0)}))},this.currentMode=t.value||\\\"Always Pause\\\",this.updateWidgets()}),1),Object.defineProperty(this.confirm_button_widget,\\\"clicked\\\",{get:function(){return this._clicked},set:function(e){this._clicked=e\\u0026\\u0026\\\"\\\"!=this.name}}),Object.defineProperty(this.cancel_button_widget,\\\"clicked\\\",{get:function(){return this._clicked},set:function(e){this._clicked=e\\u0026\\u0026\\\"\\\"!=this.name}}),Object.defineProperty(this,\\\"imageIndex\\\",{get:function(){return null},set:function(e){this.overIndex=e}}),Object.defineProperty(this,\\\"imagey\\\",{get:function(){var e,t;return(null==(t=null==(e=this.widgets)?void 0:e[this.widgets.length-1])?void 0:t.last_y)+LiteGraph.NODE_WIDGET_HEIGHT},set:function(e){this.imagey=e}});const e=this.onMouseDown;this.onMouseDown=function(t,i,s){if(t.isPrimary){const e=rs(this,i);e\\u003e=0\\u0026\\u0026this.toggleImageSelection(e)}return e\\u0026\\u0026e.apply(this,arguments)},this.update()},e.prototype.onDrawBackground,e.prototype.onDrawBackground=function(e){!function(e,t,i=0){var s,n;if(!e.imgs||!e.imgs.length)return;const a=fe.canvas,o=a.graph_mouse,l=15,r=e.size[0];let d=e.size[1]-i-l;d\\u003c200\\u0026\\u0026(d=200,requestAnimationFrame((t=\\u003e{e.size[1]=i+l+200})));if(null==e.imageIndex){let n,l,u,c;if(us(e.imgs))({cellWidth:n,cellHeight:l,cols:c,shiftX:u}=cs(e.imgs,r,d));else{const t=e.imgs.reduce(((e,t)=\\u003eMath.max(e,t.naturalWidth,t.naturalHeight)),0),i=[];i.length=null==(s=e.imgs)?void 0:s.length,i[0]={naturalWidth:t,naturalHeight:t},({cellWidth:n,cellHeight:l,cols:c,shiftX:u}=cs(i,r,d))}let A=!1,p=e.imgs.length;e.imageRects=[];for(let s=0;s\\u003cp;s++){e.imgs[s];const r=s%c*n+u,d=Math.floor(s/c)*l+i;if(!A\\u0026\\u0026(A=LiteGraph.isInsideRectangle(o[0],o[1],r+e.pos[0],d+e.pos[1],n,l),A)){e.overIndex=s;let i=110;a.pointer_is_down\\u0026\\u0026(e.pointerDown\\u0026\\u0026e.pointerDown.index===s||(e.pointerDown={index:s,pos:[...o]}),i=125),t.filter=`contrast(${i}%) brightness(${i}%)`,a.canvas.style.cursor=\\\"pointer\\\"}e.imageRects.push([r,d,n,l])}}if(e.imageRects)for(let c=0;c\\u003ce.imgs.length;c++){t.fillStyle=\\\"#000\\\",t.fillRect(...e.imageRects[c]);const i=e.imgs[c],s=e.imageRects[c][2],n=e.imageRects[c][3];let a=s/i.width,o=n/i.height;var u=Math.min(a,o);let l=u*i.height,r=u*i.width;const d=e.imageRects[c][0]+(s-r)/2,A=e.imageRects[c][1]+(n-l)/2,p=2;t.drawImage(i,d+p,A+p,r-2*p,l-2*p)}t.lineWidth=2,t.strokeStyle=\\\"green\\\",e\\u0026\\u0026e.selected_images\\u0026\\u0026e.selected_images.forEach((i=\\u003e{ds(e,i,t)}));t.strokeStyle=\\\"#F88\\\",null==(n=null==e?void 0:e.anti_selected)||n.forEach((i=\\u003e{ds(e,i,t)}))}(this,e,this.imagey||0)},e.prototype.toggleImageSelection=function(e){this.selected_images.has(e)?this.selected_images.delete(e):this.selected_images.add(e),this.update()}}}});const rs=(e,t)=\\u003e{var i,s;if((null==(i=e.imgs)?void 0:i.length)\\u003e1)for(var n=0;n\\u003ce.imageRects.length;n++){const i=t[0]-e.imageRects[n][0],s=t[1]-e.imageRects[n][1];if(i\\u003e0\\u0026\\u0026i\\u003ce.imageRects[n][2]\\u0026\\u0026s\\u003e0\\u0026\\u0026s\\u003ce.imageRects[n][3])return n}else if(1==(null==(s=e.imgs)?void 0:s.length)\\u0026\\u0026t[1]\\u003ee.imagey)return 0;return-1};function ds(e,t,i){var s;if(e.imageRects)s=e.imageRects[t];else{const t=e.imagey;s=[1,t+1,e.size[0]-2,e.size[1]-t-2]}i.strokeRect(s[0]+1,s[1]+1,s[2]-2,s[3]-2)}const us=e=\\u003e{if(!e.length||1===e.length)return!0;const t=e[0].naturalWidth/e[0].naturalHeight;for(let i=1;i\\u003ce.length;i++){if(t!=e[i].naturalWidth/e[i].naturalHeight)return!1}return!0};function cs(e,t,i){let s=0,n=e[0].naturalWidth,a=e[0].naturalHeight;const o=e.length;let l,r,d,u,c;for(let A=1;A\\u003c=o;A++){const e=Math.ceil(o/A),p=t/A,h=p/n,m=i/e/a,f=Math.min(h,m,1),g=n*f,v=a*f,y=g*v*o;y\\u003es\\u0026\\u0026(s=y,l=g,r=v,d=A,u=e,c=A*((p-g)/2))}return{cellWidth:l,cellHeight:r,cols:d,rows:u,shiftX:c}}Number.prototype.div=function(e){return function(e,t){let i,s,n=0,a=0,o=\\\"string\\\"==typeof e?e:e.toString(),l=\\\"string\\\"==typeof t?t:t.toString();try{n=o.toString().split(\\\".\\\")[1].length}catch(r){}try{a=l.toString().split(\\\".\\\")[1].length}catch(r){}return i=Number(o.toString().replace(\\\".\\\",\\\"\\\")),s=Number(l.toString().replace(\\\".\\\",\\\"\\\")),i/s*Math.pow(10,a-n)}(this,e)};let As=[],ps=0;const hs={sd3:6.5,\\\"sd3-turbo\\\":4};class ms extends ye{constructor(){super(),this.lists=[],this.dialog_div=null,this.user_div=null}addItem(e,t){return ve(\\\"div.easyuse-account-dialog-item\\\",[ve(\\\"input\\\",{type:\\\"text\\\",placeholder:\\\"Enter name\\\",oninput:e=\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\".easyuse-account-dialog-item\\\"),e.target.parentNode);As[t].name=e.target.value},value:As[e].name}),ve(\\\"input.key\\\",{type:\\\"text\\\",oninput:e=\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\".easyuse-account-dialog-item\\\"),e.target.parentNode);As[t].key=e.target.value},placeholder:\\\"Enter APIKEY\\\",value:As[e].key}),ve(\\\"button.choose\\\",{textContent:Ne(\\\"Choose\\\"),onclick:async e=\\u003e{var i,s,n;const a=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\".easyuse-account-dialog-item\\\"),e.target.parentNode);let o=As[a].name,l=As[a].key;if(!o)return void Ye.error(Ne(\\\"Please enter the account name\\\"));if(!l)return void Ye.error(Ne(\\\"Please enter the APIKEY\\\"));let r=!0;for(let t=0;t\\u003cAs.length;t++)if(!As[t].key){r=!1;break}if(!r)return void Ye.error(Ne(\\\"APIKEY is not Empty\\\"));ps=a;const d=new FormData;d.append(\\\"api_keys\\\",JSON.stringify(As)),d.append(\\\"current\\\",ps);const u=await ge.fetchApi(\\\"/easyuse/stability/set_api_keys\\\",{method:\\\"POST\\\",body:d});if(200==u.status){const e=await u.json();if((null==e?void 0:e.account)\\u0026\\u0026(null==e?void 0:e.balance)){const a=(null==(i=e.account)?void 0:i.profile_picture)||null,o=(null==(s=e.account)?void 0:s.email)||null,l=(null==(n=e.balance)?void 0:n.credits)||0;t.replaceChildren(ve(\\\"div.easyuse-account-user-info\\\",{onclick:e=\\u003e{(new ms).show(t)}},[ve(\\\"div.user\\\",[ve(\\\"div.avatar\\\",a?[ve(\\\"img\\\",{src:a})]:\\\"😀\\\"),ve(\\\"div.info\\\",[ve(\\\"h5.name\\\",o),ve(\\\"h6.remark\\\",\\\"Credits: \\\"+l)])]),ve(\\\"div.edit\\\",{textContent:Ne(\\\"Edit\\\")})])),Ye.success(Ne(\\\"Save Succeed\\\"))}else Ye.success(Ne(\\\"Save Succeed\\\"));this.close()}else Ye.error(Ne(\\\"Save Failed\\\"))}}),ve(\\\"button.delete\\\",{textContent:Ne(\\\"Delete\\\"),onclick:e=\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\".easyuse-account-dialog-item\\\"),e.target.parentNode);As.length\\u003c=1?Ye.error(Ne(\\\"At least one account is required\\\")):(As.splice(t,1),this.dialog_div.removeChild(e.target.parentNode))}})])}show(e){As.forEach(((t,i)=\\u003e{this.lists.push(this.addItem(i,e))})),this.dialog_div=ve(\\\"div.easyuse-account-dialog\\\",this.lists),super.show(ve(\\\"div.easyuse-account-dialog-main\\\",[ve(\\\"div\\\",[ve(\\\"a\\\",{href:\\\"https://platform.stability.ai/account/keys\\\",target:\\\"_blank\\\",textContent:Ne(\\\"Getting Your APIKEY\\\")})]),this.dialog_div]))}createButtons(){const e=super.createButtons();return e.unshift(ve(\\\"button\\\",{type:\\\"button\\\",textContent:Ne(\\\"Save Account Info\\\"),onclick:e=\\u003e{let t=!0;for(let i=0;i\\u003cAs.length;i++)if(!As[i].key){t=!1;break}if(t){const e=new FormData;e.append(\\\"api_keys\\\",JSON.stringify(As)),ge.fetchApi(\\\"/easyuse/stability/set_api_keys\\\",{method:\\\"POST\\\",body:e}).then((e=\\u003e{200==e.status?Ye.success(Ne(\\\"Save Succeed\\\")):Ye.error(Ne(\\\"Save Failed\\\"))}))}else Ye.error(Ne(\\\"APIKEY is not Empty\\\"))}})),e.unshift(ve(\\\"button\\\",{type:\\\"button\\\",textContent:Ne(\\\"Add Account\\\"),onclick:e=\\u003e{const t=\\\"Account \\\"+As.length.toString();As.push({name:t,key:\\\"\\\"});const i=this.addItem(As.length-1);this.lists.push(i),this.dialog_div.appendChild(i)}})),e}}fe.registerExtension({name:\\\"Comfy.EasyUse.API.SD3\\\",async beforeRegisterNodeDef(e,t,i){if(\\\"easy stableDiffusion3API\\\"==t.name){const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=async function(){var e,i,s;t\\u0026\\u0026(null==t||t.apply(this,arguments));const n=this.widgets.find((e=\\u003e[\\\"seed_num\\\",\\\"seed\\\"].includes(e.name))),a=this.widgets.find((e=\\u003e[\\\"control_before_generate\\\",\\\"control_after_generate\\\"].includes(e.name)));let o=this.widgets.find((e=\\u003e\\\"model\\\"==e.name));o.callback=e=\\u003e{l.value=\\\"-\\\"+hs[e]};const l=this.addWidget(\\\"text\\\",\\\"cost_credit\\\",\\\"0\\\",(e=\\u003e{}),{serialize:!1});l.disabled=!0,a\\u0026\\u0026setTimeout((e=\\u003e{\\\"control before generate\\\"==a.name\\u0026\\u00260===n.value\\u0026\\u0026(n.value=Math.floor(4294967294*Math.random())),l.value=\\\"-\\\"+hs[o.value]}),100);let r=ve(\\\"div.easyuse-account-user\\\",[Ne(\\\"Loading UserInfo...\\\")]);this.addDOMWidget(\\\"account\\\",\\\"btn\\\",ve(\\\"div.easyuse-account\\\",r)),ge.addEventListener(\\\"stable-diffusion-api-generate-succeed\\\",(async({detail:e})=\\u003e{var t;let i=r.querySelectorAll(\\\".remark\\\");if(i\\u0026\\u0026i[0]){const t=(null==e?void 0:e.model)?hs[e.model]:0;if(t){let e=function(e,t){let i,s,n,a,o,l;o=\\\"string\\\"==typeof e?e:e.toString(),l=\\\"string\\\"==typeof t?t:t.toString();try{i=o.split(\\\".\\\")[1].length}catch(r){i=0}try{s=l.split(\\\".\\\")[1].length}catch(r){s=0}return n=Math.pow(10,Math.max(i,s)),a=i\\u003e=s?i:s,((e*n-t*n)/n).toFixed(a)}(parseFloat(i[0].innerText.replace(/Credits: /g,\\\"\\\")),t);e\\u003e0\\u0026\\u0026(i[0].innerText=\\\"Credits: \\\"+e.toString())}}await Xe(1e4);const s=await ge.fetchApi(\\\"/easyuse/stability/balance\\\");if(200==s.status){const e=await s.json();if(null==e?void 0:e.balance){const s=(null==(t=e.balance)?void 0:t.credits)||0;i\\u0026\\u0026i[0]\\u0026\\u0026(i[0].innerText=\\\"Credits: \\\"+s)}}}));const d=await ge.fetchApi(\\\"/easyuse/stability/api_keys\\\");if(200==d.status){let t=await d.json();if(As=t.keys,ps=t.current,As.length\\u003e0\\u0026\\u0026void 0!==ps){const t=As[ps].key,n=As[ps].name;if(t){const t=await ge.fetchApi(\\\"/easyuse/stability/user_info\\\");if(200==t.status){const n=await t.json();if((null==n?void 0:n.account)\\u0026\\u0026(null==n?void 0:n.balance)){const t=(null==(e=n.account)?void 0:e.profile_picture)||null,a=(null==(i=n.account)?void 0:i.email)||null,o=(null==(s=n.balance)?void 0:s.credits)||0;r.replaceChildren(ve(\\\"div.easyuse-account-user-info\\\",{onclick:e=\\u003e{(new ms).show(r)}},[ve(\\\"div.user\\\",[ve(\\\"div.avatar\\\",t?[ve(\\\"img\\\",{src:t})]:\\\"😀\\\"),ve(\\\"div.info\\\",[ve(\\\"h5.name\\\",a),ve(\\\"h6.remark\\\",\\\"Credits: \\\"+o)])]),ve(\\\"div.edit\\\",{textContent:Ne(\\\"Edit\\\")})]))}}}else r.replaceChildren(ve(\\\"div.easyuse-account-user-info\\\",{onclick:e=\\u003e{(new ms).show(r)}},[ve(\\\"div.user\\\",[ve(\\\"div.avatar\\\",\\\"😀\\\"),ve(\\\"div.info\\\",[ve(\\\"h5.name\\\",n),ve(\\\"h6.remark\\\",Ne(\\\"Click to set the APIKEY first\\\"))])]),ve(\\\"div.edit\\\",{textContent:Ne(\\\"Edit\\\")})]))}}}}}});let fs=null;function gs(){fs\\u0026\\u0026(fs.removeEventListeners(),fs.dropdown.remove(),fs=null)}function vs(e,t,i,s=!1){gs(),new ys(e,t,i,s)}class ys{constructor(e,t,i,s=!1){this.dropdown=document.createElement(\\\"ul\\\"),this.dropdown.setAttribute(\\\"role\\\",\\\"listbox\\\"),this.dropdown.classList.add(\\\"easy-dropdown\\\"),this.selectedIndex=-1,this.inputEl=e,this.suggestions=t,this.onSelect=i,this.isDict=s,this.focusedDropdown=this.dropdown,this.buildDropdown(),this.onKeyDownBound=this.onKeyDown.bind(this),this.onWheelBound=this.onWheel.bind(this),this.onClickBound=this.onClick.bind(this),this.addEventListeners()}buildDropdown(){this.isDict?this.buildNestedDropdown(this.suggestions,this.dropdown):this.suggestions.forEach(((e,t)=\\u003e{this.addListItem(e,t,this.dropdown)}));const e=this.inputEl.getBoundingClientRect();this.dropdown.style.top=e.top+e.height-10+\\\"px\\\",this.dropdown.style.left=e.left+\\\"px\\\",document.body.appendChild(this.dropdown),fs=this}buildNestedDropdown(e,t){let i=0;Object.keys(e).forEach((s=\\u003e{const n=e[s];if(\\\"object\\\"==typeof n\\u0026\\u0026null!==n){const e=document.createElement(\\\"ul\\\");e.setAttribute(\\\"role\\\",\\\"listbox\\\"),e.classList.add(\\\"easy-nested-dropdown\\\");const a=document.createElement(\\\"li\\\");a.classList.add(\\\"folder\\\"),a.textContent=s,a.appendChild(e),a.addEventListener(\\\"mouseover\\\",this.onMouseOver.bind(this,i,t)),t.appendChild(a),this.buildNestedDropdown(n,e),i+=1}else{const e=document.createElement(\\\"li\\\");e.classList.add(\\\"item\\\"),e.setAttribute(\\\"role\\\",\\\"option\\\"),e.textContent=s,e.addEventListener(\\\"mouseover\\\",this.onMouseOver.bind(this,i,t)),e.addEventListener(\\\"mousedown\\\",this.onMouseDown.bind(this,s)),t.appendChild(e),i+=1}}))}addListItem(e,t,i){const s=document.createElement(\\\"li\\\");s.setAttribute(\\\"role\\\",\\\"option\\\"),s.textContent=e,s.addEventListener(\\\"mouseover\\\",this.onMouseOver.bind(this,t)),s.addEventListener(\\\"mousedown\\\",this.onMouseDown.bind(this,e)),i.appendChild(s)}addEventListeners(){document.addEventListener(\\\"keydown\\\",this.onKeyDownBound),this.dropdown.addEventListener(\\\"wheel\\\",this.onWheelBound),document.addEventListener(\\\"click\\\",this.onClickBound)}removeEventListeners(){document.removeEventListener(\\\"keydown\\\",this.onKeyDownBound),this.dropdown.removeEventListener(\\\"wheel\\\",this.onWheelBound),document.removeEventListener(\\\"click\\\",this.onClickBound)}onMouseOver(e,t){t\\u0026\\u0026(this.focusedDropdown=t),this.selectedIndex=e,this.updateSelection()}onMouseOut(){this.selectedIndex=-1,this.updateSelection()}onMouseDown(e,t){t.preventDefault(),this.onSelect(e),this.dropdown.remove(),this.removeEventListeners()}onKeyDown(e){const t=Array.from(this.focusedDropdown.children),i=t[this.selectedIndex];if(fs)if(38===e.keyCode)e.preventDefault(),this.selectedIndex=Math.max(0,this.selectedIndex-1),this.updateSelection();else if(40===e.keyCode)e.preventDefault(),this.selectedIndex=Math.min(t.length-1,this.selectedIndex+1),this.updateSelection();else if(39===e.keyCode){if(e.preventDefault(),i\\u0026\\u0026i.classList.contains(\\\"folder\\\")){const e=i.querySelector(\\\".easy-nested-dropdown\\\");e\\u0026\\u0026(this.focusedDropdown=e,this.selectedIndex=0,this.updateSelection())}}else if(37===e.keyCode\\u0026\\u0026this.focusedDropdown!==this.dropdown){const e=this.focusedDropdown.closest(\\\".easy-dropdown, .easy-nested-dropdown\\\").parentNode.closest(\\\".easy-dropdown, .easy-nested-dropdown\\\");e\\u0026\\u0026(this.focusedDropdown=e,this.selectedIndex=Array.from(e.children).indexOf(this.focusedDropdown.parentNode),this.updateSelection())}else if((13===e.keyCode||9===e.keyCode)\\u0026\\u0026this.selectedIndex\\u003e=0){e.preventDefault(),i.classList.contains(\\\"item\\\")\\u0026\\u0026(this.onSelect(t[this.selectedIndex].textContent),this.dropdown.remove(),this.removeEventListeners());const s=i.querySelector(\\\".easy-nested-dropdown\\\");s\\u0026\\u0026(this.focusedDropdown=s,this.selectedIndex=0,this.updateSelection())}else 27===e.keyCode\\u0026\\u0026(this.dropdown.remove(),this.removeEventListeners())}onWheel(e){const t=parseInt(this.dropdown.style.top);localStorage.getItem(\\\"Comfy.Settings.Comfy.InvertMenuScrolling\\\")?this.dropdown.style.top=t+(e.deltaY\\u003c0?10:-10)+\\\"px\\\":this.dropdown.style.top=t+(e.deltaY\\u003c0?-10:10)+\\\"px\\\"}onClick(e){this.dropdown.contains(e.target)||e.target===this.inputEl||(this.dropdown.remove(),this.removeEventListeners())}updateSelection(){Array.from(this.focusedDropdown.children).forEach(((e,t)=\\u003e{t===this.selectedIndex?e.classList.add(\\\"selected\\\"):e.classList.remove(\\\"selected\\\")}))}}function ws(e){const t=e.min||0,i=e.max||0,s=e.step||1;if(0===s)return[];const n=[];let a=t;for(;a\\u003c=i;){if(Number.isInteger(s))n.push(Math.round(a)+\\\"; \\\");else{let e=a.toFixed(3);-0==e\\u0026\\u0026(e=\\\"0.000\\\"),/\\\\.\\\\d{3}$/.test(e)||(e+=\\\"0\\\"),n.push(e+\\\"; \\\")}a+=s}return i\\u003e=0\\u0026\\u0026t\\u003e=0?n:n.reverse()}let bs={},_s={};function Ss(e,t){String(e.id);const i=t.name,s=t.value.replace(/^(loader|preSampling):\\\\s/,\\\"\\\");_s[i]?_s[i]!=bs[s]\\u0026\\u0026(_s[i]=bs[s]):_s={..._s,[i]:bs[s]}}fe.registerExtension({name:\\\"Comfy.EasyUse.XYPlot\\\",async beforeRegisterNodeDef(e,t,i){if(\\\"easy XYPlot\\\"===t.name){bs=t.input.hidden.plot_dict[0];for(const e in bs){const t=bs[e];if(Array.isArray(t)){let i=[];for(const e of t)i.push(e+\\\"; \\\");bs[e]=i}else bs[e]=\\\"object\\\"==typeof t?\\\"seed\\\"==e?t+\\\"; \\\":ws(t):t+\\\"; \\\"}bs.None=[],bs[\\\"---------------------\\\"]=[]}},nodeCreated(e){\\\"easy XYPlot\\\"===e.comfyClass\\u0026\\u0026(function(e){if(e.widgets)for(const t of e.widgets)if(\\\"x_axis\\\"===t.name||\\\"y_axis\\\"===t.name){let i=t.value;Object.defineProperty(t,\\\"value\\\",{get:()=\\u003ei,set(s){s!==i\\u0026\\u0026(i=s,Ss(e,t))}})}}(e),function(e){if(e.widgets){const t=e.widgets.filter((e=\\u003e\\\"customtext\\\"===e.type\\u0026\\u0026!1!==e.dynamicPrompts||e.dynamicPrompts));for(const e of t){let t=function(e,t,s,n){return e\\u0026\\u0026(t[s]=e),t.map((e=\\u003ei(e,n))).filter((e=\\u003e\\\"\\\"!==e)).join(\\\"\\\")},i=function(e,t){if(e=s(e),n(e,t))return e+\\\"; \\\";let i=a(e,t);return 1===i.length||2===i.length?i[0]:n(o(e),t)?o(e)+\\\"; \\\":\\\"\\\"},s=function(e){return e.replace(/(\\\\n|;| )/g,\\\"\\\")},n=function(e,t){return t.includes(e+\\\"; \\\")},a=function(e,t){return t.filter((t=\\u003et.toLowerCase().includes(e.toLowerCase())))},o=function(e){return Number(e)?Number(e).toFixed(3):[\\\"0\\\",\\\"0.\\\",\\\"0.0\\\",\\\"0.00\\\",\\\"00\\\"].includes(e)?\\\"0.000\\\":e};const l=function(){const i=e.name[0]+\\\"_axis\\\";let s=(null==_s?void 0:_s[i])||[];if(0===s.length)return;const n=e.inputEl.value,a=e.inputEl.selectionStart;let o=n.split(\\\"; \\\");const l=n.substring(0,a).split(\\\"; \\\").length-1,r=o[l].replace(/\\\\n/g,\\\"\\\").toLowerCase(),d=s.filter((e=\\u003ee.toLowerCase().includes(r))).map((e=\\u003ee.replace(/; /g,\\\"\\\")));if(d.length\\u003e0)vs(e.inputEl,d,(i=\\u003e{const n=t(i,o,l,s);e.inputEl.value=n}));else{gs();const i=t(null,o,l,s);e.inputEl.value=i}};e.inputEl.removeEventListener(\\\"input\\\",l),e.inputEl.addEventListener(\\\"input\\\",l),e.inputEl.removeEventListener(\\\"mouseup\\\",l),e.inputEl.addEventListener(\\\"mouseup\\\",l)}}}(e))}}),S(\\\"domWidget\\\",(()=\\u003e{const e=P(new Map);return{widgetStates:e,registerWidget:t=\\u003e{e.value.set(t.id,{widget:G(t),visible:!0,readonly:!1,zIndex:0,pos:[0,0],size:[0,0]})},unregisterWidget:t=\\u003e{e.value.delete(t)}}}));const xs={class:\\\"w-full flex justify-between items-center\\\"},Ls={class:\\\"flex justify-start items-center flex-1 gap-2\\\"},ks={class:\\\"flex justify-end items-center tool ml-2 position-relative\\\"},Es={__name:\\\"promptAwait\\\",props:[\\\"widget\\\"],setup(e){const t=P({select:\\\"now\\\",unlock:!0,last_seed:0,seed:0}),i=P(!1),s=P(!1);let n=null;const a=()=\\u003e{if(s.value)return;const t=window.SpeechRecognition||window.webkitSpeechRecognition;t\\u0026\\u0026(s.value=!0,n||(n=new t,n.interimResults=!1),n.start(),n.addEventListener(\\\"result\\\",(t=\\u003e{var i;const s=t.results[0][0].transcript;let n=null==(i=e.widget.value)?void 0:i.node,a=wt(n,\\\"prompt\\\");a\\u0026\\u0026(a.value+=s)})),n.addEventListener(\\\"end\\\",(()=\\u003e{s.value=!1,n=null})),n.addEventListener(\\\"error\\\",(e=\\u003e{})))},o=()=\\u003e{s.value\\u0026\\u0026n\\u0026\\u0026n.stop()};z((t=\\u003ee.widget.value),(e=\\u003e{t.value=\\\"object\\\"==typeof e?e:JSON.parse(e)}),{immediate:!0}),V((s=\\u003e{ge.addEventListener(\\\"easyuse_prompt_await\\\",(t=\\u003e{var s,n,a,o,l,d;const u=t.detail.id,c=-1!==(null==(s=e.widget.value)?void 0:s.node.id).toString().indexOf(\\\":\\\")?(null==(n=e.widget.value)?void 0:n.node.id).toString().split(\\\":\\\")[0]:null==(a=e.widget.value)?void 0:a.node.id;parseInt(u)===parseInt(c)\\u0026\\u0026(i.value=!0,r(\\\"last_seed\\\",(null==(o=e.widget.value.value)?void 0:o.seed)||0),(null==(l=e.widget.value.value)?void 0:l.unlock)?r(\\\"seed\\\",Math.floor(Math.random()*Oe)):r(\\\"seed\\\",(null==(d=e.widget.value.value)?void 0:d.last_seed)||0))}));const n=ge.interrupt;ge.interrupt=function(){!i.value\\u0026\\u0026fe.runningNodeId||(l(JSON.stringify({result:-1,prompt:\\\"\\\",select:\\\"now\\\"}),!0),i.value=!1),n.apply(this,arguments)},e.widget.serializeValue=async({node:e},i)=\\u003e{try{let s=JSON.stringify(t.value);return(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[i]=s,e.widgets[i].value=s),s}catch(s){return[]}}}));const l=(s,n)=\\u003e{var a,o,l,d,u,c,A,p,h;if(!i.value\\u0026\\u0026!n)return;const m=new FormData,f=null==(a=e.widget.value)?void 0:a.node,g=-1!==(null==(o=e.widget.value)?void 0:o.node.id).toString().indexOf(\\\":\\\")?(null==(l=e.widget.value)?void 0:l.node.id).toString().split(\\\":\\\")[0]:null==(d=e.widget.value)?void 0:d.node.id,v=(null==(u=wt(f,\\\"prompt\\\"))?void 0:u.value)||\\\"\\\";let y=null==(c=t.value)?void 0:c.select,w=(null==(A=t.value)?void 0:A.last_seed)||0,b=(null==(p=t.value)?void 0:p.seed)||0,_=(null==(h=t.value)?void 0:h.unlock)||!1;m.append(\\\"message\\\",JSON.stringify({result:s,prompt:v,select:y,last_seed:w,seed:b,unlock:_})),m.append(\\\"id\\\",g),i.value=!1,ge.fetchApi(\\\"/easyuse/message_callback\\\",{method:\\\"POST\\\",body:m}).then((e=\\u003e{r(\\\"select\\\",\\\"now\\\")}))},r=(e,i)=\\u003e{t.value.value||(t.value={}),t.value[e]=i};return(e,n)=\\u003e(j(),U(\\\"div\\\",xs,[W(\\\"div\\\",Ls,[F(X(L),{disabled:!Boolean(i.value),label:X(Ne)(\\\"Continue\\\"),size:\\\"small\\\",style:{height:\\\"20px\\\",\\\"font-size\\\":\\\"12px\\\",\\\"white-space\\\":\\\"nowrap\\\",padding:\\\"0 8px\\\"},onClick:n[0]||(n[0]=e=\\u003el(1))},null,8,[\\\"disabled\\\",\\\"label\\\"]),F(X(L),{disabled:!Boolean(i.value),label:X(Ne)(\\\"Stop\\\"),severity:\\\"danger\\\",size:\\\"small\\\",style:{height:\\\"20px\\\",\\\"font-size\\\":\\\"12px\\\",\\\"white-space\\\":\\\"nowrap\\\",padding:\\\"0 8px\\\"},onClick:n[1]||(n[1]=e=\\u003el(-1))},null,8,[\\\"disabled\\\",\\\"label\\\"]),F(X(k),{class:\\\"easyuse-prompt-await-select\\\",modelValue:t.value.select,\\\"onUpdate:modelValue\\\":n[2]||(n[2]=e=\\u003et.value.select=e),options:[{name:X(Ne)(\\\"now\\\"),value:\\\"now\\\"},{name:X(Ne)(\\\"prev\\\"),value:\\\"prev\\\"}],optionLabel:\\\"name\\\",optionValue:\\\"value\\\",size:\\\"small\\\",style:{flex:\\\"1\\\",height:\\\"24px\\\",\\\"line-height\\\":\\\"10px\\\",\\\"min-width\\\":\\\"70px\\\",\\\"max-width\\\":\\\"100px\\\"}},null,8,[\\\"modelValue\\\",\\\"options\\\"])]),W(\\\"div\\\",ks,[Z(F(X(L),{style:{\\\"--p-button-sm-font-size\\\":\\\"11px\\\"},size:\\\"small\\\",icon:t.value.unlock?\\\"pi pi-unlock\\\":\\\"pi pi-lock\\\",severity:t.value.unlock?\\\"contrast\\\":\\\"warn\\\",variant:\\\"text\\\",onClick:n[3]||(n[3]=e=\\u003et.value.unlock=!t.value.value.unlock),rounded:\\\"\\\"},null,8,[\\\"icon\\\",\\\"severity\\\"]),[[X(E),{value:t.value.unlock?\\\"随机种子\\\":\\\"锁定种子值\\\",class:\\\"jm-tooltip\\\"},\\\"top\\\"]]),s.value?Z((j(),H(X(L),{key:0,size:\\\"small\\\",icon:\\\"pi pi-pause-circle\\\",severity:\\\"info\\\",variant:\\\"outlined\\\",onClick:o,rounded:\\\"\\\"},null,512)),[[X(E),{value:X(Ne)(\\\"Stop Recording\\\"),class:\\\"jm-tooltip\\\"},\\\"top\\\"]]):Z((j(),H(X(L),{key:1,size:\\\"small\\\",icon:\\\"pi pi-microphone\\\",severity:\\\"contrast\\\",variant:\\\"text\\\",onClick:a,rounded:\\\"\\\"},null,512)),[[X(E),{value:X(Ne)(\\\"Voice input\\\"),class:\\\"jm-tooltip\\\"},\\\"top\\\"]])])]))}},Ns={class:\\\"easyuse-multiselect\\\"},Cs={__name:\\\"multiSelectWidget\\\",props:[\\\"widget\\\"],setup(e){var t,i,s,n;const a=Object.keys(De).reduce(((e,t)=\\u003e(Array.isArray(De[t])?e[t]=De[t].map(((e,t)=\\u003e({label:e,value:t}))):\\\"object\\\"==typeof De[t]?e[t]=Object.entries(De[t]).map((([e,t])=\\u003e({label:e,value:t}))):e[t]=[],e)),{}),o=P([]),l=e.widget.inputSpec,r=(null==(t=null==l?void 0:l.multi_select)?void 0:t.max_selected_labels)??3,d=(null==l?void 0:l.optionLabel)??\\\"label\\\",u=(null==l?void 0:l.optionValue)??\\\"value\\\",c=(null==(i=null==l?void 0:l.multi_select)?void 0:i.placeholder)?Ne(null==(s=l.multi_select)?void 0:s.placeholder):Ne(\\\"select items\\\"),A=(null==(n=null==l?void 0:l.multi_select)?void 0:n.chip)?\\\"chip\\\":\\\"comma\\\",p=P((null==l?void 0:l.options)??[]),h=e=\\u003e{e\\u0026\\u0026a[e]?p.value=a[e].map(((e,t)=\\u003e({label:Ne(e.label),value:e.value}))):p.value=[]};return z((t=\\u003ee.widget.value),(e=\\u003e{o.value=e.split(\\\",\\\").map((e=\\u003ee\\u0026\\u0026parseInt(e.trim())))})),V((t=\\u003e{setTimeout((t=\\u003e{const i=wt(e.widget.node,\\\"method\\\");h(i.value),i.callback=e=\\u003e{o.value=[],h(e)}}),1),e.widget.serializeValue=async({node:e},t)=\\u003e{try{let i=o.value||[];return i=i.join(\\\",\\\"),(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[t]=i,e.widgets[t].value=i),i}catch(i){return[]}}})),(e,t)=\\u003e(j(),U(\\\"div\\\",Ns,[F(X(N),{modelValue:o.value,\\\"onUpdate:modelValue\\\":t[0]||(t[0]=e=\\u003eo.value=e),options:p.value,optionLabel:X(d),optionValue:X(u),appendTo:\\\"self\\\",filter:\\\"\\\",placeholder:X(c),\\\"max-selected-labels\\\":X(r),display:X(A),class:\\\"w-full easyuse-multiselect-container\\\"},null,8,[\\\"modelValue\\\",\\\"options\\\",\\\"optionLabel\\\",\\\"optionValue\\\",\\\"placeholder\\\",\\\"max-selected-labels\\\",\\\"display\\\"])]))}},Is={class:\\\"flex flex-col easyuse-multiangle-widget\\\"},Ts={class:\\\"easyuse-multiangle-tabs flex items-center gap-1 px-1 relative z-10 overflow-x-auto no-scrollbar w-full min-w-0\\\"},Os=[\\\"onClick\\\"],Ms={class:\\\"tab-number\\\"},Ds=[\\\"onClick\\\"],Rs=[\\\"title\\\"],Ps={class:\\\"easyuse-multiangle-content flex flex-col gap-2\\\"},Gs=[\\\"title\\\"],zs={class:\\\"settings-item flex items-center\\\"},Vs={for:\\\"add-angle-prompt\\\",class:\\\"whitespace-nowrap\\\"},js={class:\\\"settings-item flex items-center\\\"},Us={for:\\\"hollow-mode\\\",class:\\\"whitespace-nowrap\\\"},Ws={class:\\\"settings-item flex items-center\\\"},Fs={for:\\\"rotate-3d-mode\\\",class:\\\"whitespace-nowrap\\\"},Xs=[\\\"title\\\"],Zs=[\\\"onDblclick\\\"],Hs={key:0},qs={key:0,style:{filter:\\\"grayscale(10)\\\"}},Ys={key:0,class:\\\"absolute inset-0 flex flex-col items-center justify-center\\\",style:{\\\"pointer-events\\\":\\\"none\\\"}},Ks={key:1,class:\\\"easyuse-cube-face-label\\\"},Js={class:\\\"flex flex-col gap-2 px-2 w-full easyuse-mulitangle-slider\\\"},Bs={class:\\\"flex flex-col gap-2 w-full\\\"},Qs={class:\\\"flex justify-between items-center\\\"},$s={class:\\\"font-semibold opacity-80\\\"},en={class:\\\"font-mono text-primary font-bold\\\"},tn={class:\\\"flex flex-col gap-2 w-full\\\"},sn={class:\\\"flex justify-between items-center\\\"},nn={class:\\\"font-semibold opacity-80\\\"},an={class:\\\"font-mono text-primary font-bold\\\"},on={class:\\\"flex flex-col gap-2 w-full\\\"},ln={class:\\\"flex justify-between items-center\\\"},rn={class:\\\"font-semibold opacity-80\\\"},dn={class:\\\"font-mono text-primary font-bold\\\"},un={__name:\\\"multiAngleWidget\\\",props:[\\\"widget\\\"],emits:[\\\"update:value\\\",\\\"change\\\"],setup(e,{emit:t}){const i=P([{rotate:0,vertical:0,zoom:5,add_angle_prompt:!1}]),s=P(0),n=i.value[s.value]||{rotate:0,vertical:0,zoom:5,add_angle_prompt:!1},a=P(n.rotate??0),o=P(n.vertical??0),l=P(n.zoom??5),r=P(n.add_angle_prompt??!1),d=P(xe(\\\"EasyUse.MultiAngle.HollowMode\\\")||!1),u=P(xe(\\\"EasyUse.MultiAngle.3DRotate\\\")||!1),c=P(!1),A=()=\\u003e{c.value=!c.value},p=()=\\u003e{c.value\\u0026\\u0026(c.value=!1)};V((()=\\u003e{window.addEventListener(\\\"click\\\",p)})),q((()=\\u003e{window.removeEventListener(\\\"click\\\",p),L()})),z((t=\\u003ee.widget.value),(e=\\u003e{Array.isArray(e)?i.value=e:i.value=JSON.parse(e)}),{immediate:!0}),z((()=\\u003e{var e;return null==(e=i.value)?void 0:e[s.value]}),(e=\\u003e{if(e){let t=xe(\\\"EasyUse.MultiAngle.AddAnglePrompt\\\")??!1;void 0!==e.rotate\\u0026\\u0026(a.value=e.rotate),void 0!==e.vertical\\u0026\\u0026(o.value=e.vertical),void 0!==e.zoom\\u0026\\u0026(l.value=e.zoom),null!=r\\u0026\\u0026(r.value=t)}}),{deep:!0}),z(d,(e=\\u003e{ke(\\\"EasyUse.MultiAngle.HollowMode\\\",e)})),z(u,(e=\\u003e{ke(\\\"EasyUse.MultiAngle.InvertRotate\\\",e)})),z(r,(e=\\u003e{ke(\\\"EasyUse.MultiAngle.AddAnglePrompt\\\",e),i.value.forEach((t=\\u003e{t.add_angle_prompt=e}))}));const h=e=\\u003e{s.value=e;const t=i.value[e];t\\u0026\\u0026(a.value=t.rotate??0,o.value=t.vertical??0,l.value=t.zoom??5,r.value=t.add_angle_prompt??!0)},m=()=\\u003e{i.value[s.value];const e={rotate:a.value,vertical:o.value,zoom:l.value,add_angle_prompt:r.value};i.value.push(JSON.parse(JSON.stringify(e))),s.value=i.value.length-1,h(s.value)},f=(e=!1)=\\u003e{e\\u0026\\u0026(c.value=!1);const t={rotate:a.value,vertical:o.value,zoom:l.value,add_angle_prompt:r.value};Array.isArray(i.value)||(i.value=[]),i.value[s.value]=JSON.parse(JSON.stringify(t))},g=()=\\u003e{a.value=0,o.value=0,l.value=5,f()},v=Y((()=\\u003e[{name:\\\"front\\\",text:\\\"\\\",style:{transform:\\\"translateZ(40px)\\\"}},{name:\\\"back\\\",text:Ne(\\\"B\\\"),style:{transform:\\\"rotateY(180deg) translateZ(40px)\\\"}},{name:\\\"up\\\",text:Ne(\\\"U\\\"),style:{transform:\\\"rotateX(90deg) translateZ(40px)\\\"}},{name:\\\"down\\\",text:Ne(\\\"D\\\"),style:{transform:\\\"rotateX(-90deg) translateZ(40px)\\\"}},{name:\\\"left\\\",text:Ne(\\\"L\\\"),style:{transform:\\\"rotateY(-90deg) translateZ(40px)\\\"}},{name:\\\"right\\\",text:Ne(\\\"R\\\"),style:{transform:\\\"rotateY(90deg) translateZ(40px)\\\"}},{name:\\\"center\\\",style:{transform:\\\"translateZ(0.1px)\\\",border:\\\"none\\\",background:\\\"transparent\\\",backfaceVisibility:\\\"hidden\\\"}},{name:\\\"center-back\\\",style:{transform:\\\"rotateY(180deg) translateZ(0.1px)\\\",border:\\\"none\\\",backfaceVisibility:\\\"hidden\\\",background:\\\"transparent\\\"}}])),y=P(!1),w={x:0,y:0},b={rotate:0,vertical:0},_=e=\\u003e{const t=e.deltaY;let i=l.value-.05*t;i=Math.max(0,Math.min(10,i)),l.value=Math.round(10*i)/10,f()},S=e=\\u003e{y.value=!0,w.x=e.clientX??e.touches[0].clientX,w.y=e.clientY??e.touches[0].clientY,b.rotate=a.value,b.vertical=o.value,window.addEventListener(\\\"mousemove\\\",x),window.addEventListener(\\\"mouseup\\\",L),window.addEventListener(\\\"touchmove\\\",x),window.addEventListener(\\\"touchend\\\",L)},x=e=\\u003e{if(!y.value)return;const t=e.clientX??e.touches[0].clientX,i=e.clientY??e.touches[0].clientY;let s=t-w.x,n=i-w.y;u.value\\u0026\\u0026(s=-s,n=-n);let l=b.rotate+.5*s,r=b.vertical+.5*n;l=(l%360+360)%360,r=Math.max(-90,Math.min(90,r)),a.value=Math.round(l),o.value=Math.round(r),f()},L=()=\\u003e{y.value=!1,window.removeEventListener(\\\"mousemove\\\",x),window.removeEventListener(\\\"mouseup\\\",L),window.removeEventListener(\\\"touchmove\\\",x),window.removeEventListener(\\\"touchend\\\",L)},k=Y((()=\\u003e({transform:`scale(${1+.1*l.value}) rotateX(${-o.value}deg) rotateY(${-a.value}deg)`})));return V((t=\\u003e{d.value=xe(\\\"EasyUse.MultiAngle.HollowMode\\\"),u.value=xe(\\\"EasyUse.MultiAngle.InvertRotate\\\"),r.value=xe(\\\"EasyUse.MultiAngle.AddAnglePrompt\\\")||!1,e.widget.serializeValue=async({node:e},t)=\\u003e{try{let s=JSON.stringify(i.value);return(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[t]=s,e.widgets[t].value=s),s}catch(s){return[]}}})),(e,t)=\\u003e(j(),U(\\\"div\\\",Is,[W(\\\"div\\\",Ts,[(j(!0),U(K,null,J(i.value,((e,t)=\\u003e(j(),U(\\\"div\\\",{key:t,class:B([\\\"tab-item whitespace-nowrap flex-shrink-0\\\",{active:s.value===t}]),onClick:e=\\u003eh(t)},[W(\\\"span\\\",Ms,ee(t+1),1),i.value.length\\u003e1\\u0026\\u00260!==t?(j(),U(\\\"i\\\",{key:0,class:\\\"pi pi-times tab-close\\\",onClick:Q((e=\\u003e(e=\\u003e{i.value.length\\u003c=1||(i.value.splice(e,1),s.value\\u003e=i.value.length\\u0026\\u0026(s.value=i.value.length-1),h(s.value))})(t)),[\\\"stop\\\"])},null,8,Ds)):te(\\\"\\\",!0)],10,Os)))),128)),W(\\\"button\\\",{class:\\\"tab-add-btn flex-shrink-0\\\",onClick:m,title:X(Ne)(\\\"Add New Tab\\\")},t[10]||(t[10]=[W(\\\"i\\\",{class:\\\"pi pi-plus\\\"},null,-1)]),8,Rs)]),W(\\\"div\\\",Ps,[W(\\\"div\\\",{class:B([\\\"easyuse-multiangle-cube w-full flex items-center justify-center bg-black overflow-hidden select-none\\\",{\\\"is-hollow\\\":d.value}]),onMousedown:S,onTouchstart:S,onWheel:Q(_,[\\\"prevent\\\"])},[W(\\\"div\\\",{class:\\\"settings-icon\\\",onMousedown:t[5]||(t[5]=Q((()=\\u003e{}),[\\\"stop\\\"])),onClick:Q(A,[\\\"stop\\\"]),title:X(Ne)(\\\"Settings\\\")},[t[11]||(t[11]=W(\\\"i\\\",{class:\\\"pi pi-cog\\\"},null,-1)),c.value?(j(),U(\\\"div\\\",{key:0,class:\\\"settings-dropdown\\\",onClick:t[4]||(t[4]=Q((()=\\u003e{}),[\\\"stop\\\"]))},[W(\\\"div\\\",zs,[Z(W(\\\"input\\\",{type:\\\"checkbox\\\",\\\"onUpdate:modelValue\\\":t[0]||(t[0]=e=\\u003er.value=e),onChange:t[1]||(t[1]=e=\\u003ef(!1)),id:\\\"add-angle-prompt\\\"},null,544),[[$,r.value]]),W(\\\"label\\\",Vs,ee(X(Ne)(\\\"Angle Prompt\\\")),1)]),W(\\\"div\\\",js,[Z(W(\\\"input\\\",{type:\\\"checkbox\\\",\\\"onUpdate:modelValue\\\":t[2]||(t[2]=e=\\u003ed.value=e),id:\\\"hollow-mode\\\"},null,512),[[$,d.value]]),W(\\\"label\\\",Us,ee(X(Ne)(\\\"Hollow\\\")),1)]),W(\\\"div\\\",Ws,[Z(W(\\\"input\\\",{type:\\\"checkbox\\\",\\\"onUpdate:modelValue\\\":t[3]||(t[3]=e=\\u003eu.value=e),id:\\\"rotate-3d-mode\\\"},null,512),[[$,u.value]]),W(\\\"label\\\",Fs,ee(X(Ne)(\\\"Invert Rotate Mode\\\")),1)])])):te(\\\"\\\",!0)],40,Gs),W(\\\"div\\\",{class:\\\"reset-icon\\\",onMousedown:t[6]||(t[6]=Q((()=\\u003e{}),[\\\"stop\\\"])),onClick:Q(g,[\\\"stop\\\"]),title:X(Ne)(\\\"Reset\\\")},t[12]||(t[12]=[W(\\\"i\\\",{class:\\\"pi pi-refresh\\\"},null,-1)]),40,Xs),W(\\\"div\\\",{class:\\\"relative transition-transform duration-75 ease-out\\\",style:ie([{\\\"transform-style\\\":\\\"preserve-3d\\\",width:\\\"80px\\\",height:\\\"80px\\\"},k.value])},[(j(!0),U(K,null,J(v.value,(e=\\u003e(j(),U(\\\"div\\\",{key:e.name,class:\\\"absolute flex items-center justify-center font-bold text-xs easyuse-multiangle-cube-face\\\",style:ie([{width:\\\"80px\\\",height:\\\"80px\\\",\\\"backface-visibility\\\":\\\"visible\\\"},e.style]),onDblclick:Q((t=\\u003e(e=\\u003e{switch(e){case\\\"front\\\":a.value=0;break;case\\\"back\\\":a.value=180;break;case\\\"left\\\":a.value=270;break;case\\\"right\\\":a.value=90;break;case\\\"up\\\":o.value=90;break;case\\\"down\\\":o.value=-90}f()})(e.name)),[\\\"stop\\\"])},[\\\"center\\\"===e.name?(j(),U(K,{key:0},[d.value?(j(),U(\\\"div\\\",Hs,t[13]||(t[13]=[W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"20px\\\",\\\"text-align\\\":\\\"center\\\"}},\\\"🤓\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👕\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👖\\\",-1)]))):te(\\\"\\\",!0)],64)):\\\"center-back\\\"===e.name?(j(),U(K,{key:1},[d.value?(j(),U(\\\"div\\\",qs,t[14]||(t[14]=[W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"20px\\\",\\\"text-align\\\":\\\"center\\\"}},\\\"🌕\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👕\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👖\\\",-1)]))):te(\\\"\\\",!0)],64)):(j(),U(K,{key:2},[\\\"front\\\"!==e.name||d.value?te(\\\"\\\",!0):(j(),U(\\\"div\\\",Ys,t[15]||(t[15]=[W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"20px\\\",\\\"text-align\\\":\\\"center\\\"}},\\\"🤓\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👕\\\",-1),W(\\\"div\\\",{style:{\\\"font-size\\\":\\\"12px\\\",\\\"text-align\\\":\\\"center\\\",\\\"margin-top\\\":\\\"-6px\\\"}},\\\"👖\\\",-1)]))),e.text?(j(),U(\\\"div\\\",Ks,ee(e.text),1)):te(\\\"\\\",!0)],64))],44,Zs)))),128))],4)],34),W(\\\"div\\\",Js,[W(\\\"div\\\",Bs,[W(\\\"div\\\",Qs,[W(\\\"span\\\",$s,ee(X(Ne)(\\\"Rotate\\\")),1),W(\\\"span\\\",en,ee(a.value)+\\\"°\\\",1)]),F(X(C),{modelValue:a.value,\\\"onUpdate:modelValue\\\":[t[7]||(t[7]=e=\\u003ea.value=e),f],min:0,max:360,class:\\\"w-full\\\"},null,8,[\\\"modelValue\\\"])]),W(\\\"div\\\",tn,[W(\\\"div\\\",sn,[W(\\\"span\\\",nn,ee(X(Ne)(\\\"Vertical\\\")),1),W(\\\"span\\\",an,ee(o.value)+\\\"°\\\",1)]),F(X(C),{modelValue:o.value,\\\"onUpdate:modelValue\\\":[t[8]||(t[8]=e=\\u003eo.value=e),f],min:-90,max:90,class:\\\"w-full\\\"},null,8,[\\\"modelValue\\\"])]),W(\\\"div\\\",on,[W(\\\"div\\\",ln,[W(\\\"span\\\",rn,ee(X(Ne)(\\\"Zoom\\\")),1),W(\\\"span\\\",dn,ee(l.value),1)]),F(X(C),{modelValue:l.value,\\\"onUpdate:modelValue\\\":[t[9]||(t[9]=e=\\u003el.value=e),f],min:0,max:10,step:.1,class:\\\"w-full\\\"},null,8,[\\\"modelValue\\\"])])])])]))}},cn=(e,t)=\\u003e{const i=e.__vccOpts||e;for(const[s,n]of t)i[s]=n;return i},An={class:\\\"tew-toolbar\\\"},pn={class:\\\"tew-mode-tabs\\\"},hn={key:0,class:\\\"tew-actions\\\"},mn={key:1,class:\\\"tew-actions\\\"},fn={key:0,class:\\\"tew-table-wrapper\\\"},gn={class:\\\"tew-table\\\"},vn={class:\\\"tew-cell-inner\\\"},yn=[\\\"value\\\",\\\"onInput\\\",\\\"onKeydown\\\"],wn=[\\\"onClick\\\"],bn={class:\\\"tew-row-handle\\\"},_n=[\\\"onClick\\\"],Sn=[\\\"value\\\",\\\"onInput\\\",\\\"onKeydown\\\"],xn={key:1,class:\\\"tew-md-wrapper\\\"},Ln=cn({__name:\\\"tableEditorWidget\\\",props:[\\\"widget\\\",\\\"node\\\"],setup(e){const t=P(\\\"table\\\"),i=se({headers:[\\\"列1\\\",\\\"列2\\\",\\\"列3\\\"],rows:[[\\\"\\\",\\\"\\\",\\\"\\\"],[\\\"\\\",\\\"\\\",\\\"\\\"]]}),s=P(\\\"\\\");function n(e){const t=e.headers.map(((t,i)=\\u003e{let s=String(t).length;for(const n of e.rows)s=Math.max(s,String(n[i]??\\\"\\\").replace(/\\\\n/g,\\\"\\u003cbr\\u003e\\\").length);return Math.max(s,3)})),i=(e,t)=\\u003eString(e).padEnd(t,\\\" \\\");return[\\\"| \\\"+e.headers.map(((e,s)=\\u003ei(e,t[s]))).join(\\\" | \\\")+\\\" |\\\",\\\"| \\\"+t.map((e=\\u003e\\\"-\\\".repeat(e))).join(\\\" | \\\")+\\\" |\\\",...e.rows.map((s=\\u003e\\\"| \\\"+e.headers.map(((e,n)=\\u003ei(String(s[n]??\\\"\\\").replace(/\\\\n/g,\\\"\\u003cbr\\u003e\\\"),t[n]))).join(\\\" | \\\")+\\\" |\\\"))].join(\\\"\\\\n\\\")}function a(e){const t=e.split(\\\"\\\\n\\\").map((e=\\u003ee.trim())).filter(Boolean);if(t.length\\u003c2)return null;const i=e=\\u003ee.replace(/^\\\\||\\\\|$/g,\\\"\\\").split(\\\"|\\\").map((e=\\u003ee.trim().replace(/\\u003cbr\\\\s*\\\\/?\\u003e/gi,\\\"\\\\n\\\")));let s=-1;for(let r=0;r\\u003ct.length-1;r++)if(n=t[r+1],/^\\\\|?[\\\\s\\\\-|:]+\\\\|?$/.test(n)){s=r;break}var n;if(-1===s)return null;const a=i(t[s]),o=t.slice(s+2).map(i),l=a.length;return{headers:a,rows:o.map((e=\\u003e{for(;e.length\\u003cl;)e.push(\\\"\\\");return e.slice(0,l)}))}}function o(e){if(e!==t.value){if(\\\"markdown\\\"===e)s.value=n(i);else{const e=a(s.value);e\\u0026\\u0026(i.headers=e.headers,i.rows=e.rows)}t.value=e,y(),\\\"table\\\"===e\\u0026\\u0026oe((()=\\u003ev()))}}function l(e){let t=0;for(const i of String(e||\\\"\\\").replace(/\\\\*\\\\*/g,\\\"\\\"))t+=/[\\\\u4e00-\\\\u9fff\\\\u3000-\\\\u303f\\\\uff00-\\\\uffef]/.test(i)?14:8;return t}const r=Y((()=\\u003e{const e=Math.max(i.headers.length,...i.rows.map((e=\\u003ee.length)));return Array.from({length:e},((e,t)=\\u003e{let s=120;for(const n of i.rows){const e=String(n[t]??\\\"\\\");for(const t of e.split(\\\"\\\\n\\\"))s=Math.max(s,l(t)+28)}return Math.min(s,200)+\\\"px\\\"}))}));function d(e){if(!e)return;const t=Array.from(e.querySelectorAll(\\\".tew-cell-textarea\\\"));if(0===t.length)return;t.forEach((e=\\u003e{e.style.height=\\\"auto\\\"}));const i=Math.max(...t.map((e=\\u003ee.scrollHeight)));t.forEach((e=\\u003e{e.style.height=i+\\\"px\\\"}))}function u(){i.rows.push(Array(i.headers.length).fill(\\\"\\\")),y()}function c(){i.headers.push(`列${i.headers.length+1}`),i.rows.forEach((e=\\u003ee.push(\\\"\\\"))),y()}function A(e,t,s,n=!1){oe((()=\\u003e{const t=e.target.closest(\\\"table\\\");if(!t)return;const s=Array.from(t.querySelectorAll(\\\".tew-cell-input\\\")),a=s.indexOf(e.target);if(-1===a)return;const o=s[a+(n?i.headers.length:1)];o\\u0026\\u0026o.focus()}))}let p=null;function h(){clearTimeout(p),p=setTimeout((()=\\u003e{y()}),300)}function m(){const e=a(s.value);e\\u0026\\u0026(i.headers=e.headers,i.rows=e.rows,s.value=n(i)),y()}function f(){return JSON.stringify({mode:t.value,headers:i.headers,rows:i.rows,markdown:\\\"markdown\\\"===t.value?s.value:n(i)})}function g(e){try{const a=\\\"string\\\"==typeof e?JSON.parse(e):e;if(a\\u0026\\u0026a.headers)return i.headers=a.headers,i.rows=a.rows||[],t.value=a.mode||\\\"table\\\",s.value=a.markdown||n(i),void oe((()=\\u003ev()))}catch(o){}if(\\\"string\\\"==typeof e\\u0026\\u0026e.includes(\\\"|\\\")){const t=a(e);t\\u0026\\u0026(i.headers=t.headers,i.rows=t.rows,s.value=e,oe((()=\\u003ev())))}}function v(){const e=document.querySelector(\\\".tew-table\\\");if(!e)return;Array.from(e.querySelectorAll(\\\"tbody tr\\\")).forEach((e=\\u003ed(e)))}function y(){e.widget\\u0026\\u0026(e.widget.value=f())}return V((()=\\u003e{var a;(null==(a=e.widget)?void 0:a.value)\\u0026\\u0026g(e.widget.value),e.widget.serializeValue=async({node:e},a)=\\u003e{const o=\\\"markdown\\\"===t.value?s.value:n(i);return(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[a]=o,e.widgets[a].value=f()),o},z((()=\\u003ee.widget.value),(e=\\u003e{e!==f()\\u0026\\u0026g(e)}))})),(e,n)=\\u003e(j(),U(\\\"div\\\",{class:\\\"table-editor-widget\\\",onMousedown:n[3]||(n[3]=Q((()=\\u003e{}),[\\\"stop\\\"])),onWheel:n[4]||(n[4]=Q((()=\\u003e{}),[\\\"stop\\\"]))},[W(\\\"div\\\",An,[W(\\\"div\\\",pn,[W(\\\"button\\\",{class:B([\\\"tew-tab\\\",\\\"table\\\"===t.value?\\\"active\\\":\\\"\\\"]),onClick:n[0]||(n[0]=e=\\u003eo(\\\"table\\\"))},n[5]||(n[5]=[W(\\\"i\\\",{class:\\\"pi pi-table\\\"},null,-1),ne(\\\" 表格 \\\")]),2),W(\\\"button\\\",{class:B([\\\"tew-tab\\\",\\\"markdown\\\"===t.value?\\\"active\\\":\\\"\\\"]),onClick:n[1]||(n[1]=e=\\u003eo(\\\"markdown\\\"))},n[6]||(n[6]=[W(\\\"i\\\",{class:\\\"pi pi-code\\\"},null,-1),ne(\\\" Markdown \\\")]),2)]),\\\"table\\\"===t.value?(j(),U(\\\"div\\\",hn,[W(\\\"button\\\",{class:\\\"tew-btn\\\",onClick:u,title:\\\"添加行\\\"},n[7]||(n[7]=[W(\\\"i\\\",{class:\\\"pi pi-plus\\\"},null,-1),ne(\\\" 行 \\\")])),W(\\\"button\\\",{class:\\\"tew-btn\\\",onClick:c,title:\\\"添加列\\\"},n[8]||(n[8]=[W(\\\"i\\\",{class:\\\"pi pi-plus\\\"},null,-1),ne(\\\" 列 \\\")]))])):(j(),U(\\\"div\\\",mn,[W(\\\"button\\\",{class:\\\"tew-btn\\\",onClick:m,title:\\\"格式化\\\"},n[9]||(n[9]=[W(\\\"i\\\",{class:\\\"pi pi-align-left\\\"},null,-1),ne(\\\" 格式化 \\\")]))]))]),\\\"table\\\"===t.value?(j(),U(\\\"div\\\",fn,[W(\\\"table\\\",gn,[W(\\\"thead\\\",null,[W(\\\"tr\\\",null,[n[10]||(n[10]=W(\\\"th\\\",{class:\\\"tew-row-handle\\\"},null,-1)),(j(!0),U(K,null,J(i.headers,((e,t)=\\u003e(j(),U(\\\"th\\\",{key:\\\"h\\\"+t,class:\\\"tew-header-cell\\\",style:ie({width:r.value[t]})},[W(\\\"div\\\",vn,[W(\\\"input\\\",{class:\\\"tew-cell-input tew-header-input\\\",value:e,onInput:e=\\u003efunction(e,t){i.headers[e]=t,y()}(t,e.target.value),onKeydown:le(Q((e=\\u003eA(e)),[\\\"prevent\\\"]),[\\\"tab\\\"]),placeholder:\\\"列标题\\\"},null,40,yn),W(\\\"button\\\",{class:\\\"tew-col-del\\\",onClick:e=\\u003efunction(e){i.headers.length\\u003c=1||(i.headers.splice(e,1),i.rows.forEach((t=\\u003et.splice(e,1))),y())}(t),title:\\\"删除列\\\"},\\\"×\\\",8,wn)])],4)))),128))])]),W(\\\"tbody\\\",null,[(j(!0),U(K,null,J(i.rows,((e,t)=\\u003e(j(),U(\\\"tr\\\",{key:\\\"r\\\"+t},[W(\\\"td\\\",bn,[W(\\\"button\\\",{class:\\\"tew-row-del\\\",onClick:e=\\u003efunction(e){i.rows.length\\u003c=1||(i.rows.splice(e,1),y())}(t),title:\\\"删除行\\\"},\\\"×\\\",8,_n)]),(j(!0),U(K,null,J(e,((e,s)=\\u003e(j(),U(\\\"td\\\",{key:\\\"c\\\"+s,class:\\\"tew-body-cell\\\",style:ie({width:r.value[s]})},[W(\\\"textarea\\\",{class:\\\"tew-cell-input tew-cell-textarea\\\",value:e,onInput:e=\\u003e{var n;!function(e,t,s){i.rows[e][t]=s,y()}(t,s,e.target.value),(n=e.target)\\u0026\\u0026(n.style.height=\\\"auto\\\",n.style.height=n.scrollHeight+\\\"px\\\",d(n.closest(\\\"tr\\\")))},onKeydown:le(Q((e=\\u003eA(e)),[\\\"prevent\\\"]),[\\\"tab\\\"]),rows:\\\"1\\\"},null,40,Sn)],4)))),128))])))),128))])])])):(j(),U(\\\"div\\\",xn,[Z(W(\\\"textarea\\\",{class:\\\"tew-md-textarea\\\",\\\"onUpdate:modelValue\\\":n[2]||(n[2]=e=\\u003es.value=e),onInput:h,placeholder:\\\"| 列1 | 列2 | 列3 |\\\\n| --- | --- | --- |\\\\n| 值1 | 值2 | 值3 |\\\",spellcheck:\\\"false\\\"},null,544),[[ae,s.value]])]))],32))}},[[\\\"__scopeId\\\",\\\"data-v-7e0ef36e\\\"]]),kn={class:\\\"relative rounded-t-lg overflow-hidden select-none\\\"},En={key:1,class:\\\"w-full h-full flex items-center justify-center\\\"},Nn=cn({__name:\\\"baseThumbnail\\\",props:{hoverZoom:{type:\\\"number\\\",default:4},isHovered:{type:Boolean,default:!1}},setup(e){const t=P(!1),i=P(null);return V((()=\\u003e{var e;Array.from((null==(e=i.value)?void 0:e.getElementsByTagName(\\\"img\\\"))??[]).forEach((e=\\u003e{ce(e,\\\"error\\\",(()=\\u003e{t.value=!0}))}))})),(s,n)=\\u003e(j(),U(\\\"div\\\",kn,[t.value?(j(),U(\\\"div\\\",En,n[0]||(n[0]=[W(\\\"i\\\",{class:\\\"pi pi-file text-4xl\\\"},null,-1)]))):(j(),U(\\\"div\\\",{key:0,ref_key:\\\"contentRef\\\",ref:i,class:\\\"w-full h-full transform-gpu transition-transform duration-1000 ease-out\\\",style:ie(e.isHovered?{transform:`scale(${1+e.hoverZoom/100})`}:void 0)},[re(s.$slots,\\\"default\\\",{},void 0,!0)],4))]))}},[[\\\"__scopeId\\\",\\\"data-v-604a4248\\\"]]),Cn=[\\\"src\\\",\\\"alt\\\"],In=cn({__name:\\\"lazyImage\\\",props:{src:{type:String,required:!0},alt:{type:String,default:\\\"\\\"},imageClass:{type:[String,Array,Object],default:\\\"\\\"},imageStyle:{type:[String,Object],default:()=\\u003e({})},placeholderClass:{type:[String,Array,Object],default:\\\"\\\"},errorClass:{type:[String,Array,Object],default:\\\"\\\"},rootMargin:{type:String,default:\\\"50px\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\"load\\\",\\\"error\\\",\\\"visible\\\"],setup(e,{emit:t}){const i=e,s=t,n=P(null),a=P(i.immediate),o=P(!1),l=P(!1),r=Y((()=\\u003ei.src));z((()=\\u003ei.src),(()=\\u003e{o.value=!1,l.value=!1,i.immediate||(a.value=!1)}),{immediate:!0});const{stop:d}=Ae(n,(([e])=\\u003e{(null==e?void 0:e.isIntersecting)\\u0026\\u0026!a.value\\u0026\\u0026(a.value=!0,s(\\\"visible\\\"),d())}),{rootMargin:i.rootMargin,threshold:i.threshold}),u=e=\\u003e{o.value=!0,l.value=!1,s(\\\"load\\\",e)},c=e=\\u003e{l.value=!0,o.value=!1,s(\\\"error\\\",e)};return(t,i)=\\u003e(j(),U(\\\"div\\\",{ref_key:\\\"containerRef\\\",ref:n,class:\\\"lazy-image-container\\\"},[l.value?(j(),U(\\\"div\\\",{key:0,class:B([\\\"lazy-image-error\\\",\\\"w-full h-full flex items-center justify-center bg-surface-100 dark:bg-surface-800\\\",e.errorClass])},[re(t.$slots,\\\"error\\\",{},(()=\\u003e[i[0]||(i[0]=W(\\\"i\\\",{class:\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\"},null,-1))]),!0)],2)):a.value\\u0026\\u0026r.value?(j(),U(\\\"img\\\",{key:1,src:r.value,alt:e.alt,class:B(e.imageClass),style:ie(e.imageStyle),draggable:\\\"false\\\",onLoad:u,onError:c},null,46,Cn)):a.value?te(\\\"\\\",!0):(j(),U(\\\"div\\\",{key:2,class:B([\\\"lazy-image-placeholder\\\",\\\"w-full h-full flex items-center justify-center bg-surface-100 dark:bg-surface-800\\\",e.placeholderClass])},[re(t.$slots,\\\"placeholder\\\",{},(()=\\u003e[i[1]||(i[1]=W(\\\"i\\\",{class:\\\"pi pi-image text-2xl text-surface-400\\\"},null,-1))]),!0)],2))],512))}},[[\\\"__scopeId\\\",\\\"data-v-4bfc03bf\\\"]]),Tn={class:\\\"overflow-hidden w-full h-full flex items-center justify-center\\\"},On={__name:\\\"defaultThumbnail\\\",props:{src:{type:String,required:!0},alt:{type:String,required:!0},hoverZoom:{type:Number,required:!0},isHovered:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},rootMargin:{type:String,default:\\\"50px\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\"load\\\",\\\"error\\\",\\\"visible\\\"],setup(e,{emit:t}){const i=e,{src:s,isVideo:n}=i;return n??(null==s||s.toLowerCase().endsWith(\\\".webp\\\")),(t,i)=\\u003e(j(),H(Nn,{\\\"hover-zoom\\\":e.hoverZoom,\\\"is-hovered\\\":e.isHovered},{default:de((()=\\u003e[W(\\\"div\\\",Tn,[F(In,{src:X(s),\\\"image-class\\\":[\\\"transform-gpu transition-transform duration-300 ease-out\\\",\\\"w-full h-full object-cover\\\"],\\\"image-style\\\":e.isHovered?{transform:`scale(${1+e.hoverZoom/100})`}:void 0,\\\"root-margin\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate,onLoad:i[0]||(i[0]=e=\\u003et.$emit(\\\"load\\\",e)),onError:i[1]||(i[1]=e=\\u003et.$emit(\\\"error\\\",e)),onVisible:i[2]||(i[2]=e=\\u003et.$emit(\\\"visible\\\",e))},{placeholder:de((()=\\u003e[re(t.$slots,\\\"placeholder\\\",{},(()=\\u003e[i[3]||(i[3]=W(\\\"i\\\",{class:\\\"pi pi-image text-2xl text-surface-400\\\"},null,-1))]))])),error:de((()=\\u003e[re(t.$slots,\\\"error\\\",{},(()=\\u003e[i[4]||(i[4]=W(\\\"i\\\",{class:\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\"},null,-1))]))])),_:3},8,[\\\"src\\\",\\\"image-style\\\",\\\"root-margin\\\",\\\"threshold\\\",\\\"immediate\\\"])])])),_:3},8,[\\\"hover-zoom\\\",\\\"is-hovered\\\"]))}},Mn={class:\\\"overflow-hidden w-full h-full flex items-center justify-center relative\\\"},Dn={__name:\\\"compareSliderThumbnail\\\",props:{baseImageSrc:{type:String,required:!0},overlayImageSrc:{type:String,required:!0},alt:{type:String,required:!0},isHovered:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},rootMargin:{type:String,default:\\\"50px\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\"load\\\",\\\"error\\\",\\\"visible\\\"],setup(e,{emit:t}){var i,s;const n=e;n.isVideo||(null==(i=n.baseImageSrc)?void 0:i.toLowerCase().endsWith(\\\".webp\\\"))||null==(s=n.overlayImageSrc)||s.toLowerCase().endsWith(\\\".webp\\\");const a=P(50),o=P(null),{elementX:l,elementWidth:r,isOutside:d}=pe(o);return z([()=\\u003en.isHovered,l,r,d],(([e,t,i,s])=\\u003e{e\\u0026\\u0026(s||(a.value=t/i*100))})),(t,i)=\\u003e(j(),H(Nn,{\\\"is-hovered\\\":e.isHovered},{default:de((()=\\u003e[W(\\\"div\\\",Mn,[F(In,{src:e.baseImageSrc,\\\"image-class\\\":[\\\"transform-gpu transition-transform duration-300 ease-out\\\",\\\"w-full h-full object-cover block\\\"],\\\"root-margin\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate,onLoad:i[0]||(i[0]=e=\\u003et.$emit(\\\"load\\\",e)),onError:i[1]||(i[1]=e=\\u003et.$emit(\\\"error\\\",e)),onVisible:i[2]||(i[2]=e=\\u003et.$emit(\\\"visible\\\",e))},{placeholder:de((()=\\u003e[re(t.$slots,\\\"placeholder\\\",{},(()=\\u003e[i[3]||(i[3]=W(\\\"i\\\",{class:\\\"pi pi-image text-2xl text-surface-400\\\"},null,-1))]))])),error:de((()=\\u003e[re(t.$slots,\\\"error\\\",{},(()=\\u003e[i[4]||(i[4]=W(\\\"i\\\",{class:\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\"},null,-1))]))])),_:3},8,[\\\"src\\\",\\\"root-margin\\\",\\\"threshold\\\",\\\"immediate\\\"]),W(\\\"div\\\",{ref_key:\\\"containerRef\\\",ref:o,class:\\\"absolute inset-0\\\"},[F(In,{src:e.overlayImageSrc,\\\"image-class\\\":[\\\"transform-gpu transition-transform duration-300 ease-out\\\",\\\"w-full h-full object-cover block\\\"],\\\"image-style\\\":{clipPath:`inset(0 ${100-a.value}% 0 0)`},\\\"root-margin\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate},{placeholder:de((()=\\u003e[re(t.$slots,\\\"placeholder\\\",{},(()=\\u003e[i[5]||(i[5]=W(\\\"i\\\",{class:\\\"pi pi-image text-2xl text-surface-400\\\"},null,-1))]))])),error:de((()=\\u003e[re(t.$slots,\\\"error\\\",{},(()=\\u003e[i[6]||(i[6]=W(\\\"i\\\",{class:\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\"},null,-1))]))])),_:3},8,[\\\"src\\\",\\\"image-style\\\",\\\"root-margin\\\",\\\"threshold\\\",\\\"immediate\\\"]),W(\\\"div\\\",{class:\\\"absolute inset-y-0 bg-white/30 backdrop-blur-sm z-10 pointer-events-none\\\",style:ie({left:`${a.value}%`,width:\\\"1px\\\"})},null,4)],512)])])),_:3},8,[\\\"is-hovered\\\"]))}},Rn={class:\\\"selector-card-wrapper\\\"},Pn={class:\\\"card-image-container\\\"},Gn={key:2,class:\\\"selection-badge\\\"},zn={class:\\\"card-content\\\"},Vn={class:\\\"card-title\\\"},jn=cn({__name:\\\"selectorCard\\\",props:{item:{type:Object,required:!0},uniqueKey:{type:String,default:\\\"id\\\"},selectable:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!0},showMeta:{type:Boolean,default:!1},showActions:{type:Boolean,default:!1},actions:{type:Array,default:()=\\u003e[]},itemFields:{type:Object,default:()=\\u003e({id:\\\"id\\\",title:\\\"title\\\",description:\\\"description\\\",image:\\\"image\\\",meta:\\\"meta\\\"})},locale:{type:String,default:\\\"en\\\"}},emits:[\\\"select\\\",\\\"action\\\",\\\"item-hover\\\",\\\"item-leave\\\"],setup(e,{emit:t}){const i=e,s=t,n=P(null),a=he(n),o=()=\\u003e{i.selectable\\u0026\\u0026s(\\\"select\\\",i.item)},l=()=\\u003e{s(\\\"item-hover\\\",i.item)},r=()=\\u003e{s(\\\"item-leave\\\",i.item)};return(t,i)=\\u003e(j(),U(\\\"div\\\",Rn,[W(\\\"div\\\",{ref_key:\\\"cardRef\\\",ref:n,class:B([\\\"card-item\\\",{selected:e.isSelected,clickable:e.selectable}]),onClick:o,onMouseenter:l,onMouseleave:r},[W(\\\"div\\\",Pn,[\\\"compareSlider\\\"===e.item.thumbnailVariant?(j(),H(Dn,{key:0,\\\"base-image-src\\\":e.item.thumbnail[0],\\\"overlay-image-src\\\":e.item.thumbnail[1],alt:t.title,\\\"is-hovered\\\":X(a),\\\"is-video\\\":\\\"video\\\"===e.item.mediaType||\\\"webp\\\"===e.item.mediaSubtype,class:\\\"card-image\\\"},null,8,[\\\"base-image-src\\\",\\\"overlay-image-src\\\",\\\"alt\\\",\\\"is-hovered\\\",\\\"is-video\\\"])):(j(),H(On,{key:1,src:e.item.thumbnail||\\\"\\\",alt:\\\"zh\\\"==e.locale?e.item.name_cn:e.item.name,\\\"hover-zoom\\\":4,\\\"is-hovered\\\":!1,class:\\\"card-image\\\"},null,8,[\\\"src\\\",\\\"alt\\\"])),e.selectable\\u0026\\u0026e.isSelected?(j(),U(\\\"div\\\",Gn,i[0]||(i[0]=[W(\\\"i\\\",{class:\\\"pi pi-check text-white\\\"},null,-1)]))):te(\\\"\\\",!0)]),W(\\\"div\\\",zn,[W(\\\"div\\\",Vn,ee(\\\"zh\\\"==e.locale?e.item.name_cn:e.item.name),1)])],34)]))}},[[\\\"__scopeId\\\",\\\"data-v-88af28b0\\\"]]),Un={class:\\\"list-item\\\"},Wn=[\\\"name\\\",\\\"checked\\\"],Fn={class:\\\"list-item-content\\\"},Xn={class:\\\"list-title\\\"},Zn=cn({__name:\\\"selectorList\\\",props:{item:{type:Object,required:!0},uniqueKey:{type:String,default:\\\"id\\\"},selectable:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!0},showActions:{type:Boolean,default:!1},actions:{type:Array,default:()=\\u003e[]},itemFields:{type:Object,default:()=\\u003e({id:\\\"id\\\",title:\\\"title\\\",description:\\\"description\\\"})},locale:{type:String,default:\\\"en\\\"}},emits:[\\\"select\\\",\\\"action\\\",\\\"item-hover\\\",\\\"item-leave\\\"],setup(e,{emit:t}){const i=e,s=t,n=()=\\u003e{i.selectable\\u0026\\u0026s(\\\"select\\\",i.item)},a=()=\\u003e{s(\\\"item-hover\\\",i.item)},o=()=\\u003e{s(\\\"item-leave\\\",i.item)};return(t,i)=\\u003e(j(),U(\\\"div\\\",Un,[W(\\\"span\\\",{class:B([\\\"list-item__tag\\\",{selected:e.isSelected}]),onClick:n,onMouseenter:a,onMouseleave:o},[e.selectable?(j(),U(\\\"input\\\",{key:0,type:\\\"checkbox\\\",name:e.item.name,checked:e.isSelected,onClick:i[0]||(i[0]=Q((()=\\u003e{}),[\\\"stop\\\"]))},null,8,Wn)):te(\\\"\\\",!0),W(\\\"span\\\",Fn,[W(\\\"div\\\",Xn,ee(\\\"zh\\\"==e.locale?e.item.name_cn:e.item.name),1)])],34)]))}},[[\\\"__scopeId\\\",\\\"data-v-c93b1734\\\"]]),Hn=S(\\\"graphStore\\\",{state:e=\\u003e({selectors:[],selectors_styles:{},seg_selectors:[],slider_controls:[]}),actions:{setSelectors(e){this.selectors=R(e)},setStyles(e,t){this.selectors_styles[e]||(this.selectors_styles[e]=t)},setSegSelectors(e){this.seg_selectors=R(e)},setSliderControls(e){this.slider_controls=R(e)}}}),qn={class:\\\"easyuse-styles-selector\\\"},Yn={class:\\\"easyuse-styles-selector-header flex justify-between gap-2\\\"},Kn={class:\\\"flex align-center gap-1\\\"},Jn={class:\\\"flex-1\\\"},Bn={key:0,class:\\\"grid-container gap-2\\\"},Qn={key:1,class:\\\"list-container\\\"},$n={key:0,class:\\\"easyuse-styles-selector-previewer\\\"},ea={class:\\\"easyuse-styles-selector-previewer__text\\\"},ta=[\\\"src\\\"],ia={class:\\\"title\\\"},sa={class:\\\"easyuse-styles-selector-previewer__prompt\\\"},na={key:0},aa={class:\\\"comfyui-easyuse-success\\\"},oa={key:1},la={class:\\\"comfyui-easyuse-error\\\"},ra={__name:\\\"stylesSelector\\\",props:[\\\"widget\\\"],setup(e){const t=Hn(),{selectors_styles:i}=I(t),s=P(\\\"\\\"),n=P([]),a=Y((e=\\u003exe(\\\"Comfy.Locale\\\")||\\\"en\\\")),o=P(xe(\\\"EasyUse.StylesSelector.DisplayType\\\")||\\\"Grid\\\");\\\"Gird\\\"==o.value\\u0026\\u0026(o.value=\\\"Grid\\\",ke(\\\"EasyUse.StylesSelector.DisplayType\\\",\\\"Grid\\\"));const l=P([]),r=P(\\\"\\\");z((e=\\u003eo.value),(e=\\u003e{ke(\\\"EasyUse.StylesSelector.DisplayType\\\",e)})),z((t=\\u003ee.widget.value),(e=\\u003e{n.value=e.split(\\\",\\\").map((e=\\u003ee.trim()))}));const d=Y((()=\\u003e{if(!r.value.trim())return l.value;const e=n.value||[],t=r.value.toLowerCase(),i=[],s=[];return l.value.forEach((n=\\u003e{if(e.includes(n.name))i.push(n);else{const e=\\\"zh\\\"===a.value\\u0026\\u0026n.name_cn?n.name_cn:n.name,i=n.prompt||\\\"\\\",o=n.negative_prompt||\\\"\\\";(e.toLowerCase().includes(t)||i.toLowerCase().includes(t)||o.toLowerCase().includes(t))\\u0026\\u0026s.push(n)}})),[...i,...s]})),u=se({name:\\\"\\\",positive:\\\"\\\",negative:\\\"\\\",src:\\\"\\\"}),c=async e=\\u003e{if(i.value[e])return!0;const s=await ge.fetchApi(`/easyuse/prompt/styles?name=${e}`);if(200===s.status){let i=(await s.json()).map(((e,t)=\\u003e(e.index=t,e)));return await t.setStyles(e,i),!0}return Ye.error(Ne(\\\"Get styles list Failed\\\")),!1},A=e=\\u003e{var t,i;u.name=\\\"zh\\\"==a.value\\u0026\\u0026e.name_cn?e.name_cn:e.name,u.src=e.thumbnailVariant\\u0026\\u0026\\\"default\\\"!=e.thumbnailVariant?(null==(t=e.thumbnail)?void 0:t[1])||(null==(i=e.thumbnail)?void 0:i[0]):e.thumbnail,u.positive=e.prompt,u.negative=e.negative_prompt},p=()=\\u003e{u.name=\\\"\\\",u.src=\\\"\\\",u.positive=\\\"\\\",u.negative=\\\"\\\"},h=e=\\u003e{const t=n.value||[],a=R(i.value[s.value]);l.value=[...a.sort(((e,t)=\\u003ee.index-t.index)).sort(((e,i)=\\u003et.includes(i.name)-t.includes(e.name)))]},m=e=\\u003e(n.value||[]).includes(e.name),f=e=\\u003e{let t=[...n.value||[]];const i=e.name,s=t.findIndex((e=\\u003ee===i));s\\u003e-1?t.splice(s,1):t.push(i),n.value=t},g=()=\\u003e{n.value=[]};return V((t=\\u003e{setTimeout((t=\\u003e{const i=wt(e.widget.node,\\\"styles\\\");let n=i.value;s.value=n,c(n).then((e=\\u003ee\\u0026\\u0026h())),i.callback=e=\\u003e{s.value=e,g(),c(e).then((e=\\u003ee\\u0026\\u0026h()))}}),1),e.widget.serializeValue=async({node:e},t)=\\u003e{try{let i=n.value||[];return i=i.join(\\\",\\\"),(null==e?void 0:e.widgets_values)\\u0026\\u0026(e.widgets_values[t]=i,e.widgets[t].value=i),i}catch(i){return[]}}})),(t,i)=\\u003e(j(),U(\\\"div\\\",qn,[W(\\\"div\\\",Yn,[W(\\\"div\\\",Kn,[Z(F(X(L),{icon:\\\"pi pi-trash\\\",severity:\\\"secondary\\\",outlined:\\\"\\\",size:\\\"small\\\",onClick:g},null,512),[[X(E),X(Ne)(\\\"Reset\\\")]])]),W(\\\"div\\\",Jn,[F(X(M),null,{default:de((()=\\u003e[F(X(T),{class:\\\"pi pi-search\\\"}),F(X(O),{modelValue:r.value,\\\"onUpdate:modelValue\\\":i[0]||(i[0]=e=\\u003er.value=e),placeholder:X(Ne)(\\\"Search styles...\\\"),class:\\\"w-full\\\"},null,8,[\\\"modelValue\\\",\\\"placeholder\\\"])])),_:1})]),F(X(D),{modelValue:o.value,\\\"onUpdate:modelValue\\\":i[1]||(i[1]=e=\\u003eo.value=e),options:[\\\"Grid\\\",\\\"List\\\"],\\\"allow-empty\\\":!1},{option:de((({option:e})=\\u003e[W(\\\"i\\\",{class:B([\\\"List\\\"===e?\\\"pi pi-bars\\\":\\\"pi pi-table\\\"])},null,2)])),_:1},8,[\\\"modelValue\\\"])]),W(\\\"div\\\",{class:\\\"easyuse-styles-selector-content\\\",onMouseleave:i[2]||(i[2]=t=\\u003eh(e.widget.node.name))},[\\\"Grid\\\"===o.value?(j(),U(\\\"div\\\",Bn,[(j(!0),U(K,null,J(d.value,((e,t)=\\u003e(j(),H(jn,{key:`${e.name}-${t}`,item:e,\\\"unique-key\\\":\\\"name\\\",locale:a.value,selectable:!0,\\\"is-selected\\\":m(e),\\\"show-description\\\":!0,\\\"preview-enabled\\\":!0,onSelect:f,onItemHover:A,onItemLeave:p},null,8,[\\\"item\\\",\\\"locale\\\",\\\"is-selected\\\"])))),128))])):(j(),U(\\\"div\\\",Qn,[(j(!0),U(K,null,J(d.value,((e,t)=\\u003e(j(),H(Zn,{key:`${e.name}-${t}`,item:e,\\\"unique-key\\\":\\\"name\\\",locale:a.value,selectable:!0,\\\"is-selected\\\":m(e),\\\"show-description\\\":!0,onSelect:f,onItemHover:A,onItemLeave:p},null,8,[\\\"item\\\",\\\"locale\\\",\\\"is-selected\\\"])))),128))]))],32),(null==u?void 0:u.positive)||(null==u?void 0:u.negative)?(j(),U(\\\"div\\\",$n,[W(\\\"div\\\",ea,[W(\\\"img\\\",{src:u.src,alt:\\\"\\\",style:{width:\\\"100%\\\",height:\\\"auto\\\",\\\"object-fit\\\":\\\"contain\\\",\\\"border-radius\\\":\\\"6px\\\"}},null,8,ta),W(\\\"span\\\",ia,ee(u.name),1),W(\\\"div\\\",sa,[u.positive?(j(),U(\\\"h6\\\",na,[W(\\\"span\\\",aa,ee(X(Ne)(\\\"Positive\\\"))+\\\":\\\",1),W(\\\"span\\\",null,ee(u.positive),1)])):te(\\\"\\\",!0),u.negative?(j(),U(\\\"h6\\\",oa,[W(\\\"span\\\",la,ee(X(Ne)(\\\"Negative\\\"))+\\\":\\\",1),W(\\\"span\\\",null,ee(u.negative),1)])):te(\\\"\\\",!0)])])])):te(\\\"\\\",!0)]))}},da=new Map,ua={width:\\\"100%\\\",height:\\\"100%\\\",display:\\\"flex\\\",flexDirection:\\\"column\\\",overflow:\\\"hidden\\\"},ca=(e,t)=\\u003e{const i=document.createElement(\\\"div\\\"),s=e.node,n=e.options||{getMinHeight:()=\\u003e100,hideOnZoom:!0,serialize:!0},a=e.styles||null;i.id=`easyuse-vue-widget-${s.id}`,Object.assign(i.style,ua,a||{});const o=s.addDOMWidget(e.name||\\\"ustom_vue_component_basic\\\",\\\"vue-basic\\\",i,n);e.inputSpec\\u0026\\u0026(o.inputSpec=e.inputSpec);const l=ue(t,{widget:o,node:s});return l.use(me),l.mount(i),da.set(s.id,l),o.onRemove=()=\\u003e{const e=da.get(s.id);e\\u0026\\u0026(e.unmount(),da.delete(s.id))},{widget:o}};fe.registerExtension({name:\\\"Comfy.EasyUse.CustomWidget\\\",getCustomWidgets:e=\\u003e({EASY_PROMPT_AWAIT_BAR:e=\\u003e{const t=P(JSON.stringify({select:\\\"now\\\",unlock:!0,last_seed:0,seed:0})),i=!![\\\"obsidian\\\",\\\"obsidian_dark\\\",\\\"milk_white\\\"].includes(xe(\\\"Comfy.ColorPalette\\\"))?48:54;return ca({name:\\\"toolbar\\\",node:e,options:{getMinHeight:()=\\u003ei,getMaxHeight:()=\\u003ei,getValue:()=\\u003et.value,setValue:e=\\u003e{try{t.value=\\\"object\\\"==typeof e?JSON.stringify(e):e}catch(i){}}}},Es)},EASY_PROMPT_STYLES:e=\\u003e{const t=P(\\\"\\\");return ca({name:\\\"select_styles\\\",node:e,options:{getMinHeight:()=\\u003e180,getMaxHeight:()=\\u003ee.size[1]-75,getValue:()=\\u003et.value,setValue:e=\\u003e{t.value=Array.isArray(e)?e.join(\\\",\\\"):e}},styles:{overflow:\\\"visible\\\"}},ra)},EASY_COMBO:(e,t,i)=\\u003e{const s=P(\\\"\\\"),n=!![\\\"obsidian\\\",\\\"obsidian_dark\\\",\\\"milk_white\\\"].includes(xe(\\\"Comfy.ColorPalette\\\"))?22:26;return ca({name:\\\"mask_components\\\",node:e,options:{margin:0,getMinHeight:()=\\u003en,getMaxHeight:()=\\u003en,getValue:()=\\u003es.value,setValue:e=\\u003e{s.value=Array.isArray(e)?e.join(\\\",\\\"):e}},inputSpec:null==i?void 0:i[1],styles:{overflow:\\\"visible\\\"}},Cs)},EASY_MULTI_ANGLE:e=\\u003e{const t=P(JSON.stringify([{rotate:0,vertical:0,zoom:5,add_angle_prompt:!0}]));return ca({name:\\\"multi_angle\\\",node:e,options:{getMinHeight:()=\\u003e350,getMaxHeight:()=\\u003ee.size[1]-80,getValue:()=\\u003et.value,setValue:e=\\u003e{try{t.value=Array.isArray(e)?JSON.stringify(e):e}catch(i){}}},styles:{overflow:\\\"visible\\\"}},un)},EASY_TABLE_EDITOR:(e,t,i,s)=\\u003e{const n=P(JSON.stringify({mode:\\\"table\\\",headers:[\\\"列1\\\",\\\"列2\\\",\\\"列3\\\"],rows:[[\\\"\\\",\\\"\\\",\\\"\\\"],[\\\"\\\",\\\"\\\",\\\"\\\"]],markdown:\\\"| 列1 | 列2 | 列3 |\\\\n| --- | --- | --- |\\\\n|     |     |     |\\\\n|     |     |     |\\\"}));return ca({name:\\\"table_data\\\",node:e,options:{getMinHeight:()=\\u003e200,getMaxHeight:()=\\u003ee.size[1],getValue:()=\\u003en.value,setValue:e=\\u003e{n.value=\\\"object\\\"==typeof e?JSON.stringify(e):e}},styles:{overflow:\\\"hidden\\\"}},Ln)}})});export{Ne as $,Re as N,fe as a,Ke as b,xe as c,vi as d,Pe as e,ge as f,wt as g,Le as h,Nt as j,Xe as s,Ye as t,Hn as u};\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket3\",\n                \"$socket4\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v2/assets/extensions-DcWKQGos.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket3\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 118639\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 118724\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 119067\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 151035\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 151373\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 151845\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 156725\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".connect(\",\n                                    \"matched_length\": 9,\n                                    \"offset\": 157049\n                                }\n                            ]\n                        },\n                        {\n                            \"identifier\": \"$socket4\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 114544\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 195224\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 195266\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 195308\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 196041\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 196271\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 196335\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 196527\n                                },\n                                {\n                                    \"line\": \"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\u003e{throw TypeError(e)},v=(e,t,i)=\\u003e((e,t,i)=\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\"symbol\\\"!=typeof t?t+\\\"\\\":t,i),y=(e,t,i)=\\u003et.has(e)||g(\\\"Cannot \\\"+i),w=(e,t,i\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 196589\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\",\n            \"credential-access\"\n        ],\n        \"code_snippet\": \"1 | var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\"\\\"===e||Array.isArray(e)\\u0026\\u00260===e.length||!(e instanceof Date)\\u0026\\u0026\\\"object\\\"==typeof e\\u0026\\u00260===Object.keys(e).length}function i(e,t,n=new WeakSet){if(e===t)return!0;if(!e||!t||\\\"object\\\"!=typeof e||\\\"object\\\"!=typeof t)return!1;if(n.has(e)||n.has(t))return!1;n.add(e).add(t);let r,s,o,a=Array.isArray(e),l=Array.isArray(t);if(a\\u0026\\u0026l){if(s=e.length,s!=t.length)return!1;for(r=s;0!=r--;)if(!i(e[r],t[r],n))return!1;return!0}if(a!=l)return!1;let u=e instanceof Date,c=t instanceof Date;if(u!=c)return!1;if(u\\u0026\\u0026c)return e.getTime()==t.getTime();let d=e instanceof RegExp,h=t instanceof RegExp;if(d!=h)return!1;if(d\\u0026\\u0026h)return e.toString()==t.toString();let f=Object.keys(e);if(s=f.length,s!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,f[r]))return!1;for(r=s;0!=r--;)if(o=f[r],!i(e[o],t[o],n))return!1;return!0}function a(e,t){return i(e,t)}function l(e){return!!(e\\u0026\\u0026e.constructor\\u0026\\u0026e.call\\u0026\\u0026e.apply)}function u(e){return!o(e)}function c(e,t){if(!e||!t)return null;try{const n=e[t];if(u(n))return n}catch(n){}if(Object.keys(e).length){if(l(t))return t(e);if(-1===t.indexOf(\\\".\\\"))return e[t];{let n=t.split(\\\".\\\"),r=e;for(let e=0,t=n.length;e\\u003ct;++e){if(null==r)return null;r=r[n[e]]}return r}}return null}function d(e,t,n){return n?c(e,n)===c(t,n):a(e,t)}function h(e,t){if(null!=e\\u0026\\u0026t\\u0026\\u0026t.length)for(let n of t)if(d(e,n))return!0;return!1}function f(e,t){let n=-1;if(u(e))try{n=e.findLastIndex(t)}catch(r){n=e.lastIndexOf([...e].reverse().find(t))}return n}function p(e,t=!0){return e instanceof Object\\u0026\\u0026e.constructor===Object\\u0026\\u0026(t||0!==Object.keys(e).length)}function m(e,...t){return l(e)?e(...t):e}function g(e,t=!0){return\\\"string\\\"==typeof e\\u0026\\u0026(t||\\\"\\\"!==e)}function y(e){return g(e)?e.replace(/(-|_)/g,\\\"\\\").toLowerCase():e}function v(e,t=\\\"\\\",n={}){const r=y(t).split(\\\".\\\"),s=r.shift();return s?p(e)?v(m(e[Object.keys(e).find((e=\\u003ey(e)===s))||\\\"\\\"],n),r.join(\\\".\\\"),n):void 0:m(e,n)}function b(e,t=!0){return Array.isArray(e)\\u0026\\u0026(t||0!==e.length)}function S(e=\\\"\\\"){return u(e)\\u0026\\u00261===e.length\\u0026\\u0026!!e.match(/\\\\S| /)}function x(e,t){if(t){const n=t.test(e);return t.lastIndex=0,n}return!1}function $(...e){const o=(e={},i={})=\\u003e{const a=((e,o)=\\u003e{for(var i in o||(o={}))n.call(o,i)\\u0026\\u0026s(e,i,o[i]);if(t)for(var i of t(o))r.call(o,i)\\u0026\\u0026s(e,i,o[i]);return e})({},e);return Object.keys(i).forEach((t=\\u003e{p(i[t])\\u0026\\u0026t in e\\u0026\\u0026p(e[t])?a[t]=o(e[t],i[t]):a[t]=i[t]})),a};return e.reduce(((e,t,n)=\\u003e0===n?t:o(e,t)),{})}function k(e){return e?e.replace(/\\\\/\\\\*(?:(?!\\\\*\\\\/)[\\\\s\\\\S])*\\\\*\\\\/|[\\\\r\\\\n\\\\t]+/g,\\\"\\\").replace(/ {2,}/g,\\\" \\\").replace(/ ([{:}]) /g,\\\"$1\\\").replace(/([;,]) /g,\\\"$1\\\").replace(/ !/g,\\\"!\\\").replace(/: /g,\\\":\\\"):e}function w(e){if(e\\u0026\\u0026/[\\\\xC0-\\\\xFF\\\\u0100-\\\\u017E]/.test(e)){const t={A:/[\\\\xC0-\\\\xC5\\\\u0100\\\\u0102\\\\u0104]/g,AE:/[\\\\xC6]/g,C:/[\\\\xC7\\\\u0106\\\\u0108\\\\u010A\\\\u010C]/g,D:/[\\\\xD0\\\\u010E\\\\u0110]/g,E:/[\\\\xC8-\\\\xCB\\\\u0112\\\\u0114\\\\u0116\\\\u0118\\\\u011A]/g,G:/[\\\\u011C\\\\u011E\\\\u0120\\\\u0122]/g,H:/[\\\\u0124\\\\u0126]/g,I:/[\\\\xCC-\\\\xCF\\\\u0128\\\\u012A\\\\u012C\\\\u012E\\\\u0130]/g,IJ:/[\\\\u0132]/g,J:/[\\\\u0134]/g,K:/[\\\\u0136]/g,L:/[\\\\u0139\\\\u013B\\\\u013D\\\\u013F\\\\u0141]/g,N:/[\\\\xD1\\\\u0143\\\\u0145\\\\u0147\\\\u014A]/g,O:/[\\\\xD2-\\\\xD6\\\\xD8\\\\u014C\\\\u014E\\\\u0150]/g,OE:/[\\\\u0152]/g,R:/[\\\\u0154\\\\u0156\\\\u0158]/g,S:/[\\\\u015A\\\\u015C\\\\u015E\\\\u0160]/g,T:/[\\\\u0162\\\\u0164\\\\u0166]/g,U:/[\\\\xD9-\\\\xDC\\\\u0168\\\\u016A\\\\u016C\\\\u016E\\\\u0170\\\\u0172]/g,W:/[\\\\u0174]/g,Y:/[\\\\xDD\\\\u0176\\\\u0178]/g,Z:/[\\\\u0179\\\\u017B\\\\u017D]/g,a:/[\\\\xE0-\\\\xE5\\\\u0101\\\\u0103\\\\u0105]/g,ae:/[\\\\xE6]/g,c:/[\\\\xE7\\\\u0107\\\\u0109\\\\u010B\\\\u010D]/g,d:/[\\\\u010F\\\\u0111]/g,e:/[\\\\xE8-\\\\xEB\\\\u0113\\\\u0115\\\\u0117\\\\u0119\\\\u011B]/g,g:/[\\\\u011D\\\\u011F\\\\u0121\\\\u0123]/g,i:/[\\\\xEC-\\\\xEF\\\\u0129\\\\u012B\\\\u012D\\\\u012F\\\\u0131]/g,ij:/[\\\\u0133]/g,j:/[\\\\u0135]/g,k:/[\\\\u0137,\\\\u0138]/g,l:/[\\\\u013A\\\\u013C\\\\u013E\\\\u0140\\\\u0142]/g,n:/[\\\\xF1\\\\u0144\\\\u0146\\\\u0148\\\\u014B]/g,p:/[\\\\xFE]/g,o:/[\\\\xF2-\\\\xF6\\\\xF8\\\\u014D\\\\u014F\\\\u0151]/g,oe:/[\\\\u0153]/g,r:/[\\\\u0155\\\\u0157\\\\u0159]/g,s:/[\\\\u015B\\\\u015D\\\\u015F\\\\u0161]/g,t:/[\\\\u0163\\\\u0165\\\\u0167]/g,u:/[\\\\xF9-\\\\xFC\\\\u0169\\\\u016B\\\\u016D\\\\u016F\\\\u0171\\\\u0173]/g,w:/[\\\\u0175]/g,y:/[\\\\xFD\\\\xFF\\\\u0177]/g,z:/[\\\\u017A\\\\u017C\\\\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function C(e){return g(e,!1)?e[0].toUpperCase()+e.slice(1):e}function O(e){return g(e)?e.replace(/(_)/g,\\\"-\\\").replace(/[A-Z]/g,((e,t)=\\u003e0===t?e:\\\"-\\\"+e.toLowerCase())).toLowerCase():e}function L(e){return g(e)?e.replace(/[A-Z]/g,((e,t)=\\u003e0===t?e:\\\".\\\"+e.toLowerCase())).toLowerCase():e}function E(){const e=new Map;return{on(t,n){let r=e.get(t);return r?r.push(n):r=[n],e.set(t,r),this},off(t,n){let r=e.get(t);return r\\u0026\\u0026r.splice(r.indexOf(n)\\u003e\\u003e\\u003e0,1),this},emit(t,n){let r=e.get(t);r\\u0026\\u0026r.slice().map((e=\\u003e{e(n)}))},clear(){e.clear()}}}var j=Object.defineProperty,N=Object.defineProperties,_=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,D=(e,t,n)=\\u003et in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=\\u003e{for(var n in t||(t={}))P.call(t,n)\\u0026\\u0026D(e,n,t[n]);if(A)for(var n of A(t))T.call(t,n)\\u0026\\u0026D(e,n,t[n]);return e},R=(e,t)=\\u003eN(e,_(t)),B=(e,t)=\\u003e{var n={};for(var r in e)P.call(e,r)\\u0026\\u0026t.indexOf(r)\\u003c0\\u0026\\u0026(n[r]=e[r]);if(null!=e\\u0026\\u0026A)for(var r of A(e))t.indexOf(r)\\u003c0\\u0026\\u0026T.call(e,r)\\u0026\\u0026(n[r]=e[r]);return n},W=E();function V(e,t){b(e)?e.push(...t||[]):p(e)\\u0026\\u0026Object.assign(e,t)}function H(e=\\\"\\\",t=\\\"\\\"){return function(e){return e.replaceAll(/ /g,\\\"\\\").replace(/[^\\\\w]/g,\\\"-\\\")}(`${g(e,!1)\\u0026\\u0026g(t,!1)?`${e}-`:e}${t}`)}function I(e=\\\"\\\",t=\\\"\\\"){return`--${H(e,t)}`}function M(e,t=\\\"\\\",n=\\\"\\\",r=[],s){if(g(e)){const t=/{([^}]*)}/g,o=e.trim();if(function(e=\\\"\\\"){return((e.match(/{/g)||[]).length+(e.match(/}/g)||[]).length)%2!=0}(o))return;if(x(o,t)){const e=o.replaceAll(t,(e=\\u003e{const t=e.replace(/{|}/g,\\\"\\\").split(\\\".\\\").filter((e=\\u003e!r.some((t=\\u003ex(e,t)))));return`var(${I(n,O(t.join(\\\"-\\\")))}${u(s)?`, ${s}`:\\\"\\\"})`})),i=/(\\\\d+\\\\s+[\\\\+\\\\-\\\\*\\\\/]\\\\s+\\\\d+)/g,a=/var\\\\([^)]+\\\\)/g;return x(e.replace(a,\\\"0\\\"),i)?`calc(${e})`:e}return o}if(function(e){return u(e)\\u0026\\u0026!isNaN(e)}(e))return e}function z(e,t){return e?`${e}{${t}}`:\\\"\\\"}var K=(...e)=\\u003eZ(U.getTheme(),...e),Z=(e={},t,n,r)=\\u003e{if(t){const{variable:s,options:i}=U.defaults||{},{prefix:a,transform:l}=(null==e?void 0:e.options)||i||{},u=x(t,/{([^}]*)}/g)?t:`{${t}}`;return\\\"value\\\"===r||o(r)\\u0026\\u0026\\\"strict\\\"===l?U.getTokenValue(t):M(u,void 0,a,[s.excludedKeyRegex],n)}return\\\"\\\"};function q(e,t={}){const n=U.defaults.variable,{prefix:r=n.prefix,selector:s=n.selector,excludedKeyRegex:o=n.excludedKeyRegex}=t,i=(e,t=\\\"\\\")=\\u003eObject.entries(e).reduce(((e,[n,s])=\\u003e{const a=x(n,o)?H(t):H(t,O(n)),l=function(e){return p(e)\\u0026\\u0026e.hasOwnProperty(\\\"value\\\")\\u0026\\u0026e.hasOwnProperty(\\\"type\\\")?e.value:e}(s);if(p(l)){const{variables:t,tokens:n}=i(l,a);V(e.tokens,n),V(e.variables,t)}else e.tokens.push((r?a.replace(`${r}-`,\\\"\\\"):a).replaceAll(\\\"-\\\",\\\".\\\")),function(e,t,n){g(t,!1)\\u0026\\u0026e.push(`${t}:${n};`)}(e.variables,I(a),M(l,a,r,[o]));return e}),{variables:[],tokens:[]}),{variables:a,tokens:l}=i(e,r);return{value:a,tokens:l,declarations:a.join(\\\"\\\"),css:z(s,a.join(\\\"\\\"))}}var Y={regex:{rules:{class:{pattern:/^\\\\.([a-zA-Z][\\\\w-]*)$/,resolve(e){return{type:\\\"class\\\",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\\\\[(.*)\\\\]$/,resolve(e){return{type:\\\"attr\\\",selector:`:root${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:\\\"media\\\",selector:`${e}{:root{[CSS]}}`,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:\\\"system\\\",selector:\\\"@media (prefers-color-scheme: dark){:root{[CSS]}}\\\",matched:this.pattern.test(e.trim())}}},custom:{resolve:e=\\u003e({type:\\\"custom\\\",selector:e,matched:!0})}},resolve(e){const t=Object.keys(this.rules).filter((e=\\u003e\\\"custom\\\"!==e)).map((e=\\u003ethis.rules[e]));return[e].flat().map((e=\\u003e{var n;return null!=(n=t.map((t=\\u003et.resolve(e))).find((e=\\u003ee.matched)))?n:this.rules.custom.resolve(e)}))}},_toVariables:(e,t)=\\u003eq(e,{prefix:null==t?void 0:t.prefix}),getCommon({name:e=\\\"\\\",theme:t={},params:n,set:r,defaults:s}){var o,i,a,l,c,d,h;const{preset:f,options:p}=t;let g,y,v,b,S,x,$;if(u(f)\\u0026\\u0026\\\"strict\\\"!==p.transform){const{primitive:t,semantic:n,extend:k}=f,w=n||{},{colorScheme:C}=w,O=B(w,[\\\"colorScheme\\\"]),L=k||{},{colorScheme:E}=L,j=B(L,[\\\"colorScheme\\\"]),N=C||{},{dark:_}=N,A=B(N,[\\\"dark\\\"]),P=E||{},{dark:T}=P,D=B(P,[\\\"dark\\\"]),F=u(t)?this._toVariables({primitive:t},p):{},R=u(O)?this._toVariables({semantic:O},p):{},W=u(A)?this._toVariables({light:A},p):{},V=u(_)?this._toVariables({dark:_},p):{},H=u(j)?this._toVariables({semantic:j},p):{},I=u(D)?this._toVariables({light:D},p):{},M=u(T)?this._toVariables({dark:T},p):{},[z,Z]=[null!=(o=F.declarations)?o:\\\"\\\",F.tokens],[q,Y]=[null!=(i=R.declarations)?i:\\\"\\\",R.tokens||[]],[U,X]=[null!=(a=W.declarations)?a:\\\"\\\",W.tokens||[]],[J,G]=[null!=(l=V.declarations)?l:\\\"\\\",V.tokens||[]],[Q,ee]=[null!=(c=H.declarations)?c:\\\"\\\",H.tokens||[]],[te,ne]=[null!=(d=I.declarations)?d:\\\"\\\",I.tokens||[]],[re,se]=[null!=(h=M.declarations)?h:\\\"\\\",M.tokens||[]];g=this.transformCSS(e,z,\\\"light\\\",\\\"variable\\\",p,r,s),y=Z;v=`${this.transformCSS(e,`${q}${U}`,\\\"light\\\",\\\"variable\\\",p,r,s)}${this.transformCSS(e,`${J}`,\\\"dark\\\",\\\"variable\\\",p,r,s)}`,b=[...new Set([...Y,...X,...G])];S=`${this.transformCSS(e,`${Q}${te}color-scheme:light`,\\\"light\\\",\\\"variable\\\",p,r,s)}${this.transformCSS(e,`${re}color-scheme:dark`,\\\"dark\\\",\\\"variable\\\",p,r,s)}`,x=[...new Set([...ee,...ne,...se])],$=m(f.css,{dt:K})}return{primitive:{css:g,tokens:y},semantic:{css:v,tokens:b},global:{css:S,tokens:x},style:$}},getPreset({name:e=\\\"\\\",preset:t={},options:n,params:r,set:s,defaults:o,selector:i}){var a,l,c;let d,h,f;if(u(t)\\u0026\\u0026\\\"strict\\\"!==n.transform){const r=e.replace(\\\"-directive\\\",\\\"\\\"),p=t,{colorScheme:g,extend:y,css:v}=p,b=B(p,[\\\"colorScheme\\\",\\\"extend\\\",\\\"css\\\"]),S=y||{},{colorScheme:x}=S,$=B(S,[\\\"colorScheme\\\"]),k=g||{},{dark:w}=k,C=B(k,[\\\"dark\\\"]),O=x||{},{dark:L}=O,E=B(O,[\\\"dark\\\"]),j=u(b)?this._toVariables({[r]:F(F({},b),$)},n):{},N=u(C)?this._toVariables({[r]:F(F({},C),E)},n):{},_=u(w)?this._toVariables({[r]:F(F({},w),L)},n):{},[A,P]=[null!=(a=j.declarations)?a:\\\"\\\",j.tokens||[]],[T,D]=[null!=(l=N.declarations)?l:\\\"\\\",N.tokens||[]],[R,W]=[null!=(c=_.declarations)?c:\\\"\\\",_.tokens||[]];d=`${this.transformCSS(r,`${A}${T}`,\\\"light\\\",\\\"variable\\\",n,s,o,i)}${this.transformCSS(r,R,\\\"dark\\\",\\\"variable\\\",n,s,o,i)}`,h=[...new Set([...P,...D,...W])],f=m(v,{dt:K})}return{css:d,tokens:h,style:f}},getPresetC({name:e=\\\"\\\",theme:t={},params:n,set:r,defaults:s}){var o;const{preset:i,options:a}=t,l=null==(o=null==i?void 0:i.components)?void 0:o[e];return this.getPreset({name:e,preset:l,options:a,params:n,set:r,defaults:s})},getPresetD({name:e=\\\"\\\",theme:t={},params:n,set:r,defaults:s}){var o;const i=e.replace(\\\"-directive\\\",\\\"\\\"),{preset:a,options:l}=t,u=null==(o=null==a?void 0:a.directives)?void 0:o[i];return this.getPreset({name:i,preset:u,options:l,params:n,set:r,defaults:s})},applyDarkColorScheme:e=\\u003e!(\\\"none\\\"===e.darkModeSelector||!1===e.darkModeSelector),getColorSchemeOption(e,t){var n;return this.applyDarkColorScheme(e)?this.regex.resolve(!0===e.darkModeSelector?t.options.darkModeSelector:null!=(n=e.darkModeSelector)?n:t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,r){const{cssLayer:s}=t;if(s){return`@layer ${m(s.order||\\\"primeui\\\",n)}`}return\\\"\\\"},getCommonStyleSheet({name:e=\\\"\\\",theme:t={},params:n,props:r={},set:s,defaults:o}){const i=this.getCommon({name:e,theme:t,params:n,set:s,defaults:o}),a=Object.entries(r).reduce(((e,[t,n])=\\u003ee.push(`${t}=\\\"${n}\\\"`)\\u0026\\u0026e),[]).join(\\\" \\\");return Object.entries(i||{}).reduce(((e,[t,n])=\\u003e{if(null==n?void 0:n.css){const r=k(null==n?void 0:n.css),s=`${t}-variables`;e.push(`\\u003cstyle type=\\\"text/css\\\" data-primevue-style-id=\\\"${s}\\\" ${a}\\u003e${r}\\u003c/style\\u003e`)}return e}),[]).join(\\\"\\\")},getStyleSheet({name:e=\\\"\\\",theme:t={},params:n,props:r={},set:s,defaults:o}){var i;const a={name:e,theme:t,params:n,set:s,defaults:o},l=null==(i=e.includes(\\\"-directive\\\")?this.getPresetD(a):this.getPresetC(a))?void 0:i.css,u=Object.entries(r).reduce(((e,[t,n])=\\u003ee.push(`${t}=\\\"${n}\\\"`)\\u0026\\u0026e),[]).join(\\\" \\\");return l?`\\u003cstyle type=\\\"text/css\\\" data-primevue-style-id=\\\"${e}-variables\\\" ${u}\\u003e${k(l)}\\u003c/style\\u003e`:\\\"\\\"},createTokens(e={},t,n=\\\"\\\",r=\\\"\\\",s={}){return Object.entries(e).forEach((([e,i])=\\u003e{const a=x(e,t.variable.excludedKeyRegex)?n:n?`${n}.${L(e)}`:L(e),l=r?`${r}.${e}`:e;p(i)?this.createTokens(i,t,a,l,s):(s[a]||(s[a]={paths:[],computed(e,t={}){var n,r;return 1===this.paths.length?null==(n=this.paths[0])?void 0:n.computed(this.paths[0].scheme,t.binding):e\\u0026\\u0026\\\"none\\\"!==e?null==(r=this.paths.find((t=\\u003et.scheme===e)))?void 0:r.computed(e,t.binding):this.paths.map((e=\\u003ee.computed(e.scheme,t[e.scheme])))}}),s[a].paths.push({path:l,value:i,scheme:l.includes(\\\"colorScheme.light\\\")?\\\"light\\\":l.includes(\\\"colorScheme.dark\\\")?\\\"dark\\\":\\\"none\\\",computed(e,t={}){const n=/{([^}]*)}/g;let r=i;if(t.name=this.path,t.binding||(t.binding={}),x(i,n)){const o=i.trim().replaceAll(n,(n=\\u003e{var r;const o=n.replace(/{|}/g,\\\"\\\"),i=null==(r=s[o])?void 0:r.computed(e,t);return b(i)\\u0026\\u00262===i.length?`light-dark(${i[0].value},${i[1].value})`:null==i?void 0:i.value})),a=/(\\\\d+\\\\w*\\\\s+[\\\\+\\\\-\\\\*\\\\/]\\\\s+\\\\d+\\\\w*)/g,l=/var\\\\([^)]+\\\\)/g;r=x(o.replace(l,\\\"0\\\"),a)?`calc(${o})`:o}return o(t.binding)\\u0026\\u0026delete t.binding,{colorScheme:e,path:this.path,paths:t,value:r.includes(\\\"undefined\\\")?void 0:r}}}))})),s},getTokenValue(e,t,n){var r;const s=t.split(\\\".\\\").filter((e=\\u003e!x(e.toLowerCase(),n.variable.excludedKeyRegex))).join(\\\".\\\");const o=t.includes(\\\"colorScheme.light\\\")?\\\"light\\\":t.includes(\\\"colorScheme.dark\\\")?\\\"dark\\\":void 0,i=[null==(r=e[s])?void 0:r.computed(o)].flat().filter((e=\\u003ee));return 1===i.length?i[0].value:i.reduce(((e={},t)=\\u003e{const n=t,{colorScheme:r}=n,s=B(n,[\\\"colorScheme\\\"]);return e[r]=s,e}),void 0)},getSelectorRule:(e,t,n,r)=\\u003e\\\"class\\\"===n||\\\"attr\\\"===n?z(u(t)?`${e}${t},${e} ${t}`:e,r):z(e,u(t)?z(t,r):r),transformCSS(e,t,n,r,s={},o,i,a){if(u(t)){const{cssLayer:l}=s;if(\\\"style\\\"!==r){const e=this.getColorSchemeOption(s,i);t=\\\"dark\\\"===n?e.reduce(((e,{type:n,selector:r})=\\u003e(u(r)\\u0026\\u0026(e+=r.includes(\\\"[CSS]\\\")?r.replace(\\\"[CSS]\\\",t):this.getSelectorRule(r,a,n,t)),e)),\\\"\\\"):z(null!=a?a:\\\":root\\\",t)}if(l){const n={name:\\\"primeui\\\",order:\\\"primeui\\\"};p(l)\\u0026\\u0026(n.name=m(l.name,{name:e,type:r})),u(n.name)\\u0026\\u0026(t=z(`@layer ${n.name}`,t),null==o||o.layerNames(n.name))}return t}return\\\"\\\"}},U={defaults:{variable:{prefix:\\\"p\\\",selector:\\\":root\\\",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:\\\"p\\\",darkModeSelector:\\\"system\\\",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){const{theme:t}=e;t\\u0026\\u0026(this._theme=R(F({},t),{options:F(F({},this.defaults.options),t.options)}),this._tokens=Y.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return(null==(e=this.theme)?void 0:e.preset)||{}},get options(){var e;return(null==(e=this.theme)?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),W.emit(\\\"theme:change\\\",e)},getPreset(){return this.preset},setPreset(e){this._theme=R(F({},this.theme),{preset:e}),this._tokens=Y.createTokens(e,this.defaults),this.clearLoadedStyleNames(),W.emit(\\\"preset:change\\\",e),W.emit(\\\"theme:change\\\",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=R(F({},this.theme),{options:e}),this.clearLoadedStyleNames(),W.emit(\\\"options:change\\\",e),W.emit(\\\"theme:change\\\",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return Y.getTokenValue(this.tokens,e,this.defaults)},getCommon(e=\\\"\\\",t){return Y.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e=\\\"\\\",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPresetC(n)},getDirective(e=\\\"\\\",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPresetD(n)},getCustomPreset(e=\\\"\\\",t,n,r){const s={name:e,preset:t,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPreset(s)},getLayerOrderCSS(e=\\\"\\\"){return Y.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e=\\\"\\\",t,n=\\\"style\\\",r){return Y.transformCSS(e,t,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e=\\\"\\\",t,n={}){return Y.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return Y.getStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:t}){this._loadingStyles.size\\u0026\\u0026(this._loadingStyles.delete(t),W.emit(`theme:${t}:load`,e),!this._loadingStyles.size\\u0026\\u0026W.emit(\\\"theme:load\\\"))}};function X(e,t){return!!e\\u0026\\u0026(e.classList?e.classList.contains(t):new RegExp(\\\"(^| )\\\"+t+\\\"( |$)\\\",\\\"gi\\\").test(e.className))}function J(e,t){if(e\\u0026\\u0026t){const n=t=\\u003e{X(e,t)||(e.classList?e.classList.add(t):e.className+=\\\" \\\"+t)};[t].flat().filter(Boolean).forEach((e=\\u003ee.split(\\\" \\\").forEach(n)))}}function G(e){for(const n of null==document?void 0:document.styleSheets)try{for(const t of null==n?void 0:n.cssRules)for(const n of null==t?void 0:t.style)if(e.test(n))return{name:n,value:t.style.getPropertyValue(n).trim()}}catch(t){}return null}function Q(e,t){if(e\\u0026\\u0026t){const n=t=\\u003e{e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(\\\"(^|\\\\\\\\b)\\\"+t.split(\\\" \\\").join(\\\"|\\\")+\\\"(\\\\\\\\b|$)\\\",\\\"gi\\\"),\\\" \\\")};[t].flat().filter(Boolean).forEach((e=\\u003ee.split(\\\" \\\").forEach(n)))}}function ee(e){let t={width:0,height:0};return e\\u0026\\u0026(e.style.visibility=\\\"hidden\\\",e.style.display=\\\"block\\\",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display=\\\"none\\\",e.style.visibility=\\\"visible\\\"),t}function te(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName(\\\"body\\\")[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}function ne(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}function re(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function se(e,t,n=!0){var r,s,o,i;if(e){const a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ee(e),l=a.height,u=a.width,c=t.offsetHeight,d=t.offsetWidth,h=t.getBoundingClientRect(),f=re(),p=ne(),m=te();let g,y,v=\\\"top\\\";h.top+c+l\\u003em.height?(g=h.top+f-l,v=\\\"bottom\\\",g\\u003c0\\u0026\\u0026(g=f)):g=c+h.top+f,y=h.left+u\\u003em.width?Math.max(0,h.left+p+d-u):h.left+p,e.style.top=g+\\\"px\\\",e.style.left=y+\\\"px\\\",e.style.transformOrigin=v,n\\u0026\\u0026(e.style.marginTop=\\\"bottom\\\"===v?`calc(${null!=(s=null==(r=G(/-anchor-gutter$/))?void 0:r.value)?s:\\\"2px\\\"} * -1)`:null!=(i=null==(o=G(/-anchor-gutter$/))?void 0:o.value)?i:\\\"\\\")}}function oe(e,t){e\\u0026\\u0026(\\\"string\\\"==typeof t?e.style.cssText=t:Object.entries(t||{}).forEach((([t,n])=\\u003ee.style[t]=n)))}function ie(e,t){if(e instanceof HTMLElement){return e.offsetWidth}return 0}function ae(e,t,n=!0){var r,s,o,i;if(e){const a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ee(e),l=t.offsetHeight,u=t.getBoundingClientRect(),c=te();let d,h,f=\\\"top\\\";u.top+l+a.height\\u003ec.height?(d=-1*a.height,f=\\\"bottom\\\",u.top+d\\u003c0\\u0026\\u0026(d=-1*u.top)):d=l,h=a.width\\u003ec.width?-1*u.left:u.left+a.width\\u003ec.width?-1*(u.left+a.width-c.width):0,e.style.top=d+\\\"px\\\",e.style.left=h+\\\"px\\\",e.style.transformOrigin=f,n\\u0026\\u0026(e.style.marginTop=\\\"bottom\\\"===f?`calc(${null!=(s=null==(r=G(/-anchor-gutter$/))?void 0:r.value)?s:\\\"2px\\\"} * -1)`:null!=(i=null==(o=G(/-anchor-gutter$/))?void 0:o.value)?i:\\\"\\\")}}function le(e){return\\\"object\\\"==typeof HTMLElement?e instanceof HTMLElement:e\\u0026\\u0026\\\"object\\\"==typeof e\\u0026\\u0026null!==e\\u0026\\u00261===e.nodeType\\u0026\\u0026\\\"string\\\"==typeof e.nodeName}var ue=void 0;function ce(e){{if(null!=ue)return ue;let e=document.createElement(\\\"div\\\");oe(e,{width:\\\"100px\\\",height:\\\"100px\\\",overflow:\\\"scroll\\\",position:\\\"absolute\\\",top:\\\"-9999px\\\"}),document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),ue=t,t}}function de(e,t={}){if(le(e)){const n=(t,r)=\\u003e{var s,o;const i=(null==(s=null==e?void 0:e.$attrs)?void 0:s[t])?[null==(o=null==e?void 0:e.$attrs)?void 0:o[t]]:[];return[r].flat().reduce(((e,r)=\\u003e{if(null!=r){const s=typeof r;if(\\\"string\\\"===s||\\\"number\\\"===s)e.push(r);else if(\\\"object\\\"===s){const s=Array.isArray(r)?n(t,r):Object.entries(r).map((([e,n])=\\u003e\\\"style\\\"!==t||!n\\u0026\\u00260!==n?n?e:void 0:`${e.replace(/([a-z])([A-Z])/g,\\\"$1-$2\\\").toLowerCase()}:${n}`));e=s.length?e.concat(s.filter((e=\\u003e!!e))):e}}return e}),i)};Object.entries(t).forEach((([t,r])=\\u003e{if(null!=r){const s=t.match(/^on(.+)/);s?e.addEventListener(s[1].toLowerCase(),r):\\\"p-bind\\\"===t||\\\"pBind\\\"===t?de(e,r):(r=\\\"class\\\"===t?[...new Set(n(\\\"class\\\",r))].join(\\\" \\\").trim():\\\"style\\\"===t?n(\\\"style\\\",r).join(\\\";\\\").trim():r,(e.$attrs=e.$attrs||{})\\u0026\\u0026(e.$attrs[t]=r),e.setAttribute(t,r))}}))}}function he(e,t={},...n){if(e){const r=document.createElement(e);return de(r,t),r.append(...n),r}}function fe(e,t){if(e){e.style.opacity=\\\"0\\\";let n=+new Date,r=\\\"0\\\",s=function(){r=\\\"\\\"+(+e.style.opacity+((new Date).getTime()-n)/t),e.style.opacity=r,n=+new Date,+r\\u003c1\\u0026\\u0026(window.requestAnimationFrame\\u0026\\u0026requestAnimationFrame(s)||setTimeout(s,16))};s()}}function pe(e,t){return le(e)?e.matches(t)?e:e.querySelector(t):null}function me(e,t){e\\u0026\\u0026document.activeElement!==e\\u0026\\u0026e.focus(t)}function ge(e,t){if(le(e)){const n=e.getAttribute(t);return isNaN(n)?\\\"true\\\"===n||\\\"false\\\"===n?\\\"true\\\"===n:n:+n}}function ye(e,t=\\\"\\\"){let n=function(e,t){return le(e)?Array.from(e.querySelectorAll(t)):[]}(e,`button:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            [href][clientHeight][clientWidth]:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            input:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            select:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            textarea:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            [tabIndex]:not([tabIndex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            [contenteditable]:not([tabIndex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t}`),r=[];for(let s of n)\\\"none\\\"!=getComputedStyle(s).display\\u0026\\u0026\\\"hidden\\\"!=getComputedStyle(s).visibility\\u0026\\u0026r.push(s);return r}function ve(e,t){const n=ye(e,t);return n.length\\u003e0?n[0]:null}function be(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0}function Se(e){if(e){e.style.visibility=\\\"hidden\\\",e.style.display=\\\"block\\\";let t=e.offsetHeight;return e.style.display=\\\"none\\\",e.style.visibility=\\\"visible\\\",t}return 0}function xe(e){if(e){e.style.visibility=\\\"hidden\\\",e.style.display=\\\"block\\\";let t=e.offsetWidth;return e.style.display=\\\"none\\\",e.style.visibility=\\\"visible\\\",t}return 0}function $e(e){if(e){let t=e.parentNode;return t\\u0026\\u0026t instanceof ShadowRoot\\u0026\\u0026t.host\\u0026\\u0026(t=t.host),t}return null}function ke(e,t){const n=ye(e,t);return n.length\\u003e0?n[n.length-1]:null}function we(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:\\\"auto\\\",left:\\\"auto\\\"}}function Ce(e,t){if(e){return e.offsetHeight}return 0}function Oe(e,t=[]){const n=$e(e);return null===n?t:Oe(n,t.concat([n]))}function Le(e){let t=[];if(e){let n=Oe(e);const r=/(auto|scroll)/,s=e=\\u003e{try{let t=window.getComputedStyle(e,null);return r.test(t.getPropertyValue(\\\"overflow\\\"))||r.test(t.getPropertyValue(\\\"overflowX\\\"))||r.test(t.getPropertyValue(\\\"overflowY\\\"))}catch(t){return!1}};for(let e of n){let n=1===e.nodeType\\u0026\\u0026e.dataset.scrollselectors;if(n){let r=n.split(\\\",\\\");for(let n of r){let r=pe(e,n);r\\u0026\\u0026s(r)\\u0026\\u0026t.push(r)}}9!==e.nodeType\\u0026\\u0026s(e)\\u0026\\u0026t.push(e)}}return t}function Ee(e){return!(null==e||!e.nodeName||!$e(e))}function je(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0}function Ne(){return/(android)/i.test(navigator.userAgent)}function _e(){return!(\\\"undefined\\\"==typeof window||!window.document||!window.document.createElement)}function Ae(e){return!(!e||null==e.offsetParent)}function Pe(e){return!!e\\u0026\\u0026\\\"rtl\\\"===getComputedStyle(e).direction}function Te(){return\\\"ontouchstart\\\"in window||navigator.maxTouchPoints\\u003e0||navigator.msMaxTouchPoints\\u003e0}function De(e,t){var n,r;if(e){const s=e.parentElement,o=we(s),i=te(),a=e.offsetParent?e.offsetWidth:xe(e),l=e.offsetParent?e.offsetHeight:Se(e),u=ie(null==(n=null==s?void 0:s.children)?void 0:n[0]),c=Ce(null==(r=null==s?void 0:s.children)?void 0:r[0]);let d=\\\"\\\",h=\\\"\\\";o.left+u+a\\u003ei.width-ce()?o.left\\u003ca?t%2==1?d=o.left?\\\"-\\\"+o.left+\\\"px\\\":\\\"100%\\\":t%2==0\\u0026\\u0026(d=i.width-a-ce()+\\\"px\\\"):d=\\\"-100%\\\":d=\\\"100%\\\",h=e.getBoundingClientRect().top+c+l\\u003ei.height?`-${l-c}px`:\\\"0px\\\",e.style.top=h,e.style.left=d}}function Fe(e,t=\\\"\\\",n){le(e)\\u0026\\u0026null!=n\\u0026\\u0026e.setAttribute(t,n)}var Re={};function Be(e=\\\"pui_id_\\\"){return Re.hasOwnProperty(e)||(Re[e]=0),Re[e]++,`${e}${Re[e]}`}var We=function(){let e=[];const t=(t,n,r=0)=\\u003e[...e].reverse().find((e=\\u003e!0))||{key:t,value:r},n=e=\\u003ee\\u0026\\u0026parseInt(e.style.zIndex,10)||0;return{get:n,set:(n,r,s)=\\u003e{r\\u0026\\u0026(r.style.zIndex=String(((n,r,s=999)=\\u003e{const o=t(n,r,s),i=o.value+(o.key===n?0:s)+1;return e.push({key:n,value:i}),i})(n,!0,s)))},clear:t=\\u003e{var r;t\\u0026\\u0026(r=n(t),e=e.filter((e=\\u003ee.value!==r)),t.style.zIndex=\\\"\\\")},getCurrent:e=\\u003e(e=\\u003et(e).value)(e)}}();export{h as $,Q as A,be as B,je as C,ie as D,E,Ce as F,we as G,J as H,ge as I,Ae as J,me as K,Ne as L,S as M,ve as N,ke as O,oe as P,ae as Q,se as R,Te as S,ye as T,f as U,fe as V,ne as W,re as X,te as Y,We as Z,X as _,w as a,Pe as a0,xe as a1,Se as a2,De as a3,Fe as b,_e as c,m as d,d as e,u as f,U as g,K as h,Ee as i,$ as j,W as k,pe as l,k as m,l as n,v as o,g as p,b as q,c as r,de as s,y as t,Be as u,o as v,p as w,C as x,Le as y,he as z};\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web_version/v2/assets/primeuix-CNMLIuxO.js\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 1,\n        \"line_snippet\": \"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\"\\\"===e||Array.isArray(e)\\u0026\\u00260===e.length||!(e instanceof Date)\\u0026\\u0026\\\"object\\\"==typeof e\\u0026\\u00260===Object.keys(e).length}function i(e,t,n=new WeakSet){if(e===t)return!0;if(!e||!t||\\\"object\\\"!=typeof e||\\\"object\\\"!=typeof t)return!1;if(n.has(e)||n.has(t))return!1;n.add(e).add(t);let r,s,o,a=Array.isArray(e),l=Array.isArray(t);if(a\\u0026\\u0026l){if(s=e.length,s!=t.length)return!1;for(r=s;0!=r--;)if(!i(e[r],t[r],n))return!1;return!0}if(a!=l)return!1;let u=e instanceof Date,c=t instanceof Date;if(u!=c)return!1;if(u\\u0026\\u0026c)return e.getTime()==t.getTime();let d=e instanceof RegExp,h=t instanceof RegExp;if(d!=h)return!1;if(d\\u0026\\u0026h)return e.toString()==t.toString();let f=Object.keys(e);if(s=f.length,s!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,f[r]))return!1;for(r=s;0!=r--;)if(o=f[r],!i(e[o],t[o],n))return!1;return!0}function a(e,t){return i(e,t)}function l(e){return!!(e\\u0026\\u0026e.constructor\\u0026\\u0026e.call\\u0026\\u0026e.apply)}function u(e){return!o(e)}function c(e,t){if(!e||!t)return null;try{const n=e[t];if(u(n))return n}catch(n){}if(Object.keys(e).length){if(l(t))return t(e);if(-1===t.indexOf(\\\".\\\"))return e[t];{let n=t.split(\\\".\\\"),r=e;for(let e=0,t=n.length;e\\u003ct;++e){if(null==r)return null;r=r[n[e]]}return r}}return null}function d(e,t,n){return n?c(e,n)===c(t,n):a(e,t)}function h(e,t){if(null!=e\\u0026\\u0026t\\u0026\\u0026t.length)for(let n of t)if(d(e,n))return!0;return!1}function f(e,t){let n=-1;if(u(e))try{n=e.findLastIndex(t)}catch(r){n=e.lastIndexOf([...e].reverse().find(t))}return n}function p(e,t=!0){return e instanceof Object\\u0026\\u0026e.constructor===Object\\u0026\\u0026(t||0!==Object.keys(e).length)}function m(e,...t){return l(e)?e(...t):e}function g(e,t=!0){return\\\"string\\\"==typeof e\\u0026\\u0026(t||\\\"\\\"!==e)}function y(e){return g(e)?e.replace(/(-|_)/g,\\\"\\\").toLowerCase():e}function v(e,t=\\\"\\\",n={}){const r=y(t).split(\\\".\\\"),s=r.shift();return s?p(e)?v(m(e[Object.keys(e).find((e=\\u003ey(e)===s))||\\\"\\\"],n),r.join(\\\".\\\"),n):void 0:m(e,n)}function b(e,t=!0){return Array.isArray(e)\\u0026\\u0026(t||0!==e.length)}function S(e=\\\"\\\"){return u(e)\\u0026\\u00261===e.length\\u0026\\u0026!!e.match(/\\\\S| /)}function x(e,t){if(t){const n=t.test(e);return t.lastIndex=0,n}return!1}function $(...e){const o=(e={},i={})=\\u003e{const a=((e,o)=\\u003e{for(var i in o||(o={}))n.call(o,i)\\u0026\\u0026s(e,i,o[i]);if(t)for(var i of t(o))r.call(o,i)\\u0026\\u0026s(e,i,o[i]);return e})({},e);return Object.keys(i).forEach((t=\\u003e{p(i[t])\\u0026\\u0026t in e\\u0026\\u0026p(e[t])?a[t]=o(e[t],i[t]):a[t]=i[t]})),a};return e.reduce(((e,t,n)=\\u003e0===n?t:o(e,t)),{})}function k(e){return e?e.replace(/\\\\/\\\\*(?:(?!\\\\*\\\\/)[\\\\s\\\\S])*\\\\*\\\\/|[\\\\r\\\\n\\\\t]+/g,\\\"\\\").replace(/ {2,}/g,\\\" \\\").replace(/ ([{:}]) /g,\\\"$1\\\").replace(/([;,]) /g,\\\"$1\\\").replace(/ !/g,\\\"!\\\").replace(/: /g,\\\":\\\"):e}function w(e){if(e\\u0026\\u0026/[\\\\xC0-\\\\xFF\\\\u0100-\\\\u017E]/.test(e)){const t={A:/[\\\\xC0-\\\\xC5\\\\u0100\\\\u0102\\\\u0104]/g,AE:/[\\\\xC6]/g,C:/[\\\\xC7\\\\u0106\\\\u0108\\\\u010A\\\\u010C]/g,D:/[\\\\xD0\\\\u010E\\\\u0110]/g,E:/[\\\\xC8-\\\\xCB\\\\u0112\\\\u0114\\\\u0116\\\\u0118\\\\u011A]/g,G:/[\\\\u011C\\\\u011E\\\\u0120\\\\u0122]/g,H:/[\\\\u0124\\\\u0126]/g,I:/[\\\\xCC-\\\\xCF\\\\u0128\\\\u012A\\\\u012C\\\\u012E\\\\u0130]/g,IJ:/[\\\\u0132]/g,J:/[\\\\u0134]/g,K:/[\\\\u0136]/g,L:/[\\\\u0139\\\\u013B\\\\u013D\\\\u013F\\\\u0141]/g,N:/[\\\\xD1\\\\u0143\\\\u0145\\\\u0147\\\\u014A]/g,O:/[\\\\xD2-\\\\xD6\\\\xD8\\\\u014C\\\\u014E\\\\u0150]/g,OE:/[\\\\u0152]/g,R:/[\\\\u0154\\\\u0156\\\\u0158]/g,S:/[\\\\u015A\\\\u015C\\\\u015E\\\\u0160]/g,T:/[\\\\u0162\\\\u0164\\\\u0166]/g,U:/[\\\\xD9-\\\\xDC\\\\u0168\\\\u016A\\\\u016C\\\\u016E\\\\u0170\\\\u0172]/g,W:/[\\\\u0174]/g,Y:/[\\\\xDD\\\\u0176\\\\u0178]/g,Z:/[\\\\u0179\\\\u017B\\\\u017D]/g,a:/[\\\\xE0-\\\\xE5\\\\u0101\\\\u0103\\\\u0105]/g,ae:/[\\\\xE6]/g,c:/[\\\\xE7\\\\u0107\\\\u0109\\\\u010B\\\\u010D]/g,d:/[\\\\u010F\\\\u0111]/g,e:/[\\\\xE8-\\\\xEB\\\\u0113\\\\u0115\\\\u0117\\\\u0119\\\\u011B]/g,g:/[\\\\u011D\\\\u011F\\\\u0121\\\\u0123]/g,i:/[\\\\xEC-\\\\xEF\\\\u0129\\\\u012B\\\\u012D\\\\u012F\\\\u0131]/g,ij:/[\\\\u0133]/g,j:/[\\\\u0135]/g,k:/[\\\\u0137,\\\\u0138]/g,l:/[\\\\u013A\\\\u013C\\\\u013E\\\\u0140\\\\u0142]/g,n:/[\\\\xF1\\\\u0144\\\\u0146\\\\u0148\\\\u014B]/g,p:/[\\\\xFE]/g,o:/[\\\\xF2-\\\\xF6\\\\xF8\\\\u014D\\\\u014F\\\\u0151]/g,oe:/[\\\\u0153]/g,r:/[\\\\u0155\\\\u0157\\\\u0159]/g,s:/[\\\\u015B\\\\u015D\\\\u015F\\\\u0161]/g,t:/[\\\\u0163\\\\u0165\\\\u0167]/g,u:/[\\\\xF9-\\\\xFC\\\\u0169\\\\u016B\\\\u016D\\\\u016F\\\\u0171\\\\u0173]/g,w:/[\\\\u0175]/g,y:/[\\\\xFD\\\\xFF\\\\u0177]/g,z:/[\\\\u017A\\\\u017C\\\\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function C(e){return g(e,!1)?e[0].toUpperCase()+e.slice(1):e}function O(e){return g(e)?e.replace(/(_)/g,\\\"-\\\").replace(/[A-Z]/g,((e,t)=\\u003e0===t?e:\\\"-\\\"+e.toLowerCase())).toLowerCase():e}function L(e){return g(e)?e.replace(/[A-Z]/g,((e,t)=\\u003e0===t?e:\\\".\\\"+e.toLowerCase())).toLowerCase():e}function E(){const e=new Map;return{on(t,n){let r=e.get(t);return r?r.push(n):r=[n],e.set(t,r),this},off(t,n){let r=e.get(t);return r\\u0026\\u0026r.splice(r.indexOf(n)\\u003e\\u003e\\u003e0,1),this},emit(t,n){let r=e.get(t);r\\u0026\\u0026r.slice().map((e=\\u003e{e(n)}))},clear(){e.clear()}}}var j=Object.defineProperty,N=Object.defineProperties,_=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,D=(e,t,n)=\\u003et in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=\\u003e{for(var n in t||(t={}))P.call(t,n)\\u0026\\u0026D(e,n,t[n]);if(A)for(var n of A(t))T.call(t,n)\\u0026\\u0026D(e,n,t[n]);return e},R=(e,t)=\\u003eN(e,_(t)),B=(e,t)=\\u003e{var n={};for(var r in e)P.call(e,r)\\u0026\\u0026t.indexOf(r)\\u003c0\\u0026\\u0026(n[r]=e[r]);if(null!=e\\u0026\\u0026A)for(var r of A(e))t.indexOf(r)\\u003c0\\u0026\\u0026T.call(e,r)\\u0026\\u0026(n[r]=e[r]);return n},W=E();function V(e,t){b(e)?e.push(...t||[]):p(e)\\u0026\\u0026Object.assign(e,t)}function H(e=\\\"\\\",t=\\\"\\\"){return function(e){return e.replaceAll(/ /g,\\\"\\\").replace(/[^\\\\w]/g,\\\"-\\\")}(`${g(e,!1)\\u0026\\u0026g(t,!1)?`${e}-`:e}${t}`)}function I(e=\\\"\\\",t=\\\"\\\"){return`--${H(e,t)}`}function M(e,t=\\\"\\\",n=\\\"\\\",r=[],s){if(g(e)){const t=/{([^}]*)}/g,o=e.trim();if(function(e=\\\"\\\"){return((e.match(/{/g)||[]).length+(e.match(/}/g)||[]).length)%2!=0}(o))return;if(x(o,t)){const e=o.replaceAll(t,(e=\\u003e{const t=e.replace(/{|}/g,\\\"\\\").split(\\\".\\\").filter((e=\\u003e!r.some((t=\\u003ex(e,t)))));return`var(${I(n,O(t.join(\\\"-\\\")))}${u(s)?`, ${s}`:\\\"\\\"})`})),i=/(\\\\d+\\\\s+[\\\\+\\\\-\\\\*\\\\/]\\\\s+\\\\d+)/g,a=/var\\\\([^)]+\\\\)/g;return x(e.replace(a,\\\"0\\\"),i)?`calc(${e})`:e}return o}if(function(e){return u(e)\\u0026\\u0026!isNaN(e)}(e))return e}function z(e,t){return e?`${e}{${t}}`:\\\"\\\"}var K=(...e)=\\u003eZ(U.getTheme(),...e),Z=(e={},t,n,r)=\\u003e{if(t){const{variable:s,options:i}=U.defaults||{},{prefix:a,transform:l}=(null==e?void 0:e.options)||i||{},u=x(t,/{([^}]*)}/g)?t:`{${t}}`;return\\\"value\\\"===r||o(r)\\u0026\\u0026\\\"strict\\\"===l?U.getTokenValue(t):M(u,void 0,a,[s.excludedKeyRegex],n)}return\\\"\\\"};function q(e,t={}){const n=U.defaults.variable,{prefix:r=n.prefix,selector:s=n.selector,excludedKeyRegex:o=n.excludedKeyRegex}=t,i=(e,t=\\\"\\\")=\\u003eObject.entries(e).reduce(((e,[n,s])=\\u003e{const a=x(n,o)?H(t):H(t,O(n)),l=function(e){return p(e)\\u0026\\u0026e.hasOwnProperty(\\\"value\\\")\\u0026\\u0026e.hasOwnProperty(\\\"type\\\")?e.value:e}(s);if(p(l)){const{variables:t,tokens:n}=i(l,a);V(e.tokens,n),V(e.variables,t)}else e.tokens.push((r?a.replace(`${r}-`,\\\"\\\"):a).replaceAll(\\\"-\\\",\\\".\\\")),function(e,t,n){g(t,!1)\\u0026\\u0026e.push(`${t}:${n};`)}(e.variables,I(a),M(l,a,r,[o]));return e}),{variables:[],tokens:[]}),{variables:a,tokens:l}=i(e,r);return{value:a,tokens:l,declarations:a.join(\\\"\\\"),css:z(s,a.join(\\\"\\\"))}}var Y={regex:{rules:{class:{pattern:/^\\\\.([a-zA-Z][\\\\w-]*)$/,resolve(e){return{type:\\\"class\\\",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\\\\[(.*)\\\\]$/,resolve(e){return{type:\\\"attr\\\",selector:`:root${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:\\\"media\\\",selector:`${e}{:root{[CSS]}}`,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:\\\"system\\\",selector:\\\"@media (prefers-color-scheme: dark){:root{[CSS]}}\\\",matched:this.pattern.test(e.trim())}}},custom:{resolve:e=\\u003e({type:\\\"custom\\\",selector:e,matched:!0})}},resolve(e){const t=Object.keys(this.rules).filter((e=\\u003e\\\"custom\\\"!==e)).map((e=\\u003ethis.rules[e]));return[e].flat().map((e=\\u003e{var n;return null!=(n=t.map((t=\\u003et.resolve(e))).find((e=\\u003ee.matched)))?n:this.rules.custom.resolve(e)}))}},_toVariables:(e,t)=\\u003eq(e,{prefix:null==t?void 0:t.prefix}),getCommon({name:e=\\\"\\\",theme:t={},params:n,set:r,defaults:s}){var o,i,a,l,c,d,h;const{preset:f,options:p}=t;let g,y,v,b,S,x,$;if(u(f)\\u0026\\u0026\\\"strict\\\"!==p.transform){const{primitive:t,semantic:n,extend:k}=f,w=n||{},{colorScheme:C}=w,O=B(w,[\\\"colorScheme\\\"]),L=k||{},{colorScheme:E}=L,j=B(L,[\\\"colorScheme\\\"]),N=C||{},{dark:_}=N,A=B(N,[\\\"dark\\\"]),P=E||{},{dark:T}=P,D=B(P,[\\\"dark\\\"]),F=u(t)?this._toVariables({primitive:t},p):{},R=u(O)?this._toVariables({semantic:O},p):{},W=u(A)?this._toVariables({light:A},p):{},V=u(_)?this._toVariables({dark:_},p):{},H=u(j)?this._toVariables({semantic:j},p):{},I=u(D)?this._toVariables({light:D},p):{},M=u(T)?this._toVariables({dark:T},p):{},[z,Z]=[null!=(o=F.declarations)?o:\\\"\\\",F.tokens],[q,Y]=[null!=(i=R.declarations)?i:\\\"\\\",R.tokens||[]],[U,X]=[null!=(a=W.declarations)?a:\\\"\\\",W.tokens||[]],[J,G]=[null!=(l=V.declarations)?l:\\\"\\\",V.tokens||[]],[Q,ee]=[null!=(c=H.declarations)?c:\\\"\\\",H.tokens||[]],[te,ne]=[null!=(d=I.declarations)?d:\\\"\\\",I.tokens||[]],[re,se]=[null!=(h=M.declarations)?h:\\\"\\\",M.tokens||[]];g=this.transformCSS(e,z,\\\"light\\\",\\\"variable\\\",p,r,s),y=Z;v=`${this.transformCSS(e,`${q}${U}`,\\\"light\\\",\\\"variable\\\",p,r,s)}${this.transformCSS(e,`${J}`,\\\"dark\\\",\\\"variable\\\",p,r,s)}`,b=[...new Set([...Y,...X,...G])];S=`${this.transformCSS(e,`${Q}${te}color-scheme:light`,\\\"light\\\",\\\"variable\\\",p,r,s)}${this.transformCSS(e,`${re}color-scheme:dark`,\\\"dark\\\",\\\"variable\\\",p,r,s)}`,x=[...new Set([...ee,...ne,...se])],$=m(f.css,{dt:K})}return{primitive:{css:g,tokens:y},semantic:{css:v,tokens:b},global:{css:S,tokens:x},style:$}},getPreset({name:e=\\\"\\\",preset:t={},options:n,params:r,set:s,defaults:o,selector:i}){var a,l,c;let d,h,f;if(u(t)\\u0026\\u0026\\\"strict\\\"!==n.transform){const r=e.replace(\\\"-directive\\\",\\\"\\\"),p=t,{colorScheme:g,extend:y,css:v}=p,b=B(p,[\\\"colorScheme\\\",\\\"extend\\\",\\\"css\\\"]),S=y||{},{colorScheme:x}=S,$=B(S,[\\\"colorScheme\\\"]),k=g||{},{dark:w}=k,C=B(k,[\\\"dark\\\"]),O=x||{},{dark:L}=O,E=B(O,[\\\"dark\\\"]),j=u(b)?this._toVariables({[r]:F(F({},b),$)},n):{},N=u(C)?this._toVariables({[r]:F(F({},C),E)},n):{},_=u(w)?this._toVariables({[r]:F(F({},w),L)},n):{},[A,P]=[null!=(a=j.declarations)?a:\\\"\\\",j.tokens||[]],[T,D]=[null!=(l=N.declarations)?l:\\\"\\\",N.tokens||[]],[R,W]=[null!=(c=_.declarations)?c:\\\"\\\",_.tokens||[]];d=`${this.transformCSS(r,`${A}${T}`,\\\"light\\\",\\\"variable\\\",n,s,o,i)}${this.transformCSS(r,R,\\\"dark\\\",\\\"variable\\\",n,s,o,i)}`,h=[...new Set([...P,...D,...W])],f=m(v,{dt:K})}return{css:d,tokens:h,style:f}},getPresetC({name:e=\\\"\\\",theme:t={},params:n,set:r,defaults:s}){var o;const{preset:i,options:a}=t,l=null==(o=null==i?void 0:i.components)?void 0:o[e];return this.getPreset({name:e,preset:l,options:a,params:n,set:r,defaults:s})},getPresetD({name:e=\\\"\\\",theme:t={},params:n,set:r,defaults:s}){var o;const i=e.replace(\\\"-directive\\\",\\\"\\\"),{preset:a,options:l}=t,u=null==(o=null==a?void 0:a.directives)?void 0:o[i];return this.getPreset({name:i,preset:u,options:l,params:n,set:r,defaults:s})},applyDarkColorScheme:e=\\u003e!(\\\"none\\\"===e.darkModeSelector||!1===e.darkModeSelector),getColorSchemeOption(e,t){var n;return this.applyDarkColorScheme(e)?this.regex.resolve(!0===e.darkModeSelector?t.options.darkModeSelector:null!=(n=e.darkModeSelector)?n:t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,r){const{cssLayer:s}=t;if(s){return`@layer ${m(s.order||\\\"primeui\\\",n)}`}return\\\"\\\"},getCommonStyleSheet({name:e=\\\"\\\",theme:t={},params:n,props:r={},set:s,defaults:o}){const i=this.getCommon({name:e,theme:t,params:n,set:s,defaults:o}),a=Object.entries(r).reduce(((e,[t,n])=\\u003ee.push(`${t}=\\\"${n}\\\"`)\\u0026\\u0026e),[]).join(\\\" \\\");return Object.entries(i||{}).reduce(((e,[t,n])=\\u003e{if(null==n?void 0:n.css){const r=k(null==n?void 0:n.css),s=`${t}-variables`;e.push(`\\u003cstyle type=\\\"text/css\\\" data-primevue-style-id=\\\"${s}\\\" ${a}\\u003e${r}\\u003c/style\\u003e`)}return e}),[]).join(\\\"\\\")},getStyleSheet({name:e=\\\"\\\",theme:t={},params:n,props:r={},set:s,defaults:o}){var i;const a={name:e,theme:t,params:n,set:s,defaults:o},l=null==(i=e.includes(\\\"-directive\\\")?this.getPresetD(a):this.getPresetC(a))?void 0:i.css,u=Object.entries(r).reduce(((e,[t,n])=\\u003ee.push(`${t}=\\\"${n}\\\"`)\\u0026\\u0026e),[]).join(\\\" \\\");return l?`\\u003cstyle type=\\\"text/css\\\" data-primevue-style-id=\\\"${e}-variables\\\" ${u}\\u003e${k(l)}\\u003c/style\\u003e`:\\\"\\\"},createTokens(e={},t,n=\\\"\\\",r=\\\"\\\",s={}){return Object.entries(e).forEach((([e,i])=\\u003e{const a=x(e,t.variable.excludedKeyRegex)?n:n?`${n}.${L(e)}`:L(e),l=r?`${r}.${e}`:e;p(i)?this.createTokens(i,t,a,l,s):(s[a]||(s[a]={paths:[],computed(e,t={}){var n,r;return 1===this.paths.length?null==(n=this.paths[0])?void 0:n.computed(this.paths[0].scheme,t.binding):e\\u0026\\u0026\\\"none\\\"!==e?null==(r=this.paths.find((t=\\u003et.scheme===e)))?void 0:r.computed(e,t.binding):this.paths.map((e=\\u003ee.computed(e.scheme,t[e.scheme])))}}),s[a].paths.push({path:l,value:i,scheme:l.includes(\\\"colorScheme.light\\\")?\\\"light\\\":l.includes(\\\"colorScheme.dark\\\")?\\\"dark\\\":\\\"none\\\",computed(e,t={}){const n=/{([^}]*)}/g;let r=i;if(t.name=this.path,t.binding||(t.binding={}),x(i,n)){const o=i.trim().replaceAll(n,(n=\\u003e{var r;const o=n.replace(/{|}/g,\\\"\\\"),i=null==(r=s[o])?void 0:r.computed(e,t);return b(i)\\u0026\\u00262===i.length?`light-dark(${i[0].value},${i[1].value})`:null==i?void 0:i.value})),a=/(\\\\d+\\\\w*\\\\s+[\\\\+\\\\-\\\\*\\\\/]\\\\s+\\\\d+\\\\w*)/g,l=/var\\\\([^)]+\\\\)/g;r=x(o.replace(l,\\\"0\\\"),a)?`calc(${o})`:o}return o(t.binding)\\u0026\\u0026delete t.binding,{colorScheme:e,path:this.path,paths:t,value:r.includes(\\\"undefined\\\")?void 0:r}}}))})),s},getTokenValue(e,t,n){var r;const s=t.split(\\\".\\\").filter((e=\\u003e!x(e.toLowerCase(),n.variable.excludedKeyRegex))).join(\\\".\\\");const o=t.includes(\\\"colorScheme.light\\\")?\\\"light\\\":t.includes(\\\"colorScheme.dark\\\")?\\\"dark\\\":void 0,i=[null==(r=e[s])?void 0:r.computed(o)].flat().filter((e=\\u003ee));return 1===i.length?i[0].value:i.reduce(((e={},t)=\\u003e{const n=t,{colorScheme:r}=n,s=B(n,[\\\"colorScheme\\\"]);return e[r]=s,e}),void 0)},getSelectorRule:(e,t,n,r)=\\u003e\\\"class\\\"===n||\\\"attr\\\"===n?z(u(t)?`${e}${t},${e} ${t}`:e,r):z(e,u(t)?z(t,r):r),transformCSS(e,t,n,r,s={},o,i,a){if(u(t)){const{cssLayer:l}=s;if(\\\"style\\\"!==r){const e=this.getColorSchemeOption(s,i);t=\\\"dark\\\"===n?e.reduce(((e,{type:n,selector:r})=\\u003e(u(r)\\u0026\\u0026(e+=r.includes(\\\"[CSS]\\\")?r.replace(\\\"[CSS]\\\",t):this.getSelectorRule(r,a,n,t)),e)),\\\"\\\"):z(null!=a?a:\\\":root\\\",t)}if(l){const n={name:\\\"primeui\\\",order:\\\"primeui\\\"};p(l)\\u0026\\u0026(n.name=m(l.name,{name:e,type:r})),u(n.name)\\u0026\\u0026(t=z(`@layer ${n.name}`,t),null==o||o.layerNames(n.name))}return t}return\\\"\\\"}},U={defaults:{variable:{prefix:\\\"p\\\",selector:\\\":root\\\",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:\\\"p\\\",darkModeSelector:\\\"system\\\",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){const{theme:t}=e;t\\u0026\\u0026(this._theme=R(F({},t),{options:F(F({},this.defaults.options),t.options)}),this._tokens=Y.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return(null==(e=this.theme)?void 0:e.preset)||{}},get options(){var e;return(null==(e=this.theme)?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),W.emit(\\\"theme:change\\\",e)},getPreset(){return this.preset},setPreset(e){this._theme=R(F({},this.theme),{preset:e}),this._tokens=Y.createTokens(e,this.defaults),this.clearLoadedStyleNames(),W.emit(\\\"preset:change\\\",e),W.emit(\\\"theme:change\\\",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=R(F({},this.theme),{options:e}),this.clearLoadedStyleNames(),W.emit(\\\"options:change\\\",e),W.emit(\\\"theme:change\\\",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return Y.getTokenValue(this.tokens,e,this.defaults)},getCommon(e=\\\"\\\",t){return Y.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e=\\\"\\\",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPresetC(n)},getDirective(e=\\\"\\\",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPresetD(n)},getCustomPreset(e=\\\"\\\",t,n,r){const s={name:e,preset:t,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPreset(s)},getLayerOrderCSS(e=\\\"\\\"){return Y.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e=\\\"\\\",t,n=\\\"style\\\",r){return Y.transformCSS(e,t,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e=\\\"\\\",t,n={}){return Y.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return Y.getStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:t}){this._loadingStyles.size\\u0026\\u0026(this._loadingStyles.delete(t),W.emit(`theme:${t}:load`,e),!this._loadingStyles.size\\u0026\\u0026W.emit(\\\"theme:load\\\"))}};function X(e,t){return!!e\\u0026\\u0026(e.classList?e.classList.contains(t):new RegExp(\\\"(^| )\\\"+t+\\\"( |$)\\\",\\\"gi\\\").test(e.className))}function J(e,t){if(e\\u0026\\u0026t){const n=t=\\u003e{X(e,t)||(e.classList?e.classList.add(t):e.className+=\\\" \\\"+t)};[t].flat().filter(Boolean).forEach((e=\\u003ee.split(\\\" \\\").forEach(n)))}}function G(e){for(const n of null==document?void 0:document.styleSheets)try{for(const t of null==n?void 0:n.cssRules)for(const n of null==t?void 0:t.style)if(e.test(n))return{name:n,value:t.style.getPropertyValue(n).trim()}}catch(t){}return null}function Q(e,t){if(e\\u0026\\u0026t){const n=t=\\u003e{e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(\\\"(^|\\\\\\\\b)\\\"+t.split(\\\" \\\").join(\\\"|\\\")+\\\"(\\\\\\\\b|$)\\\",\\\"gi\\\"),\\\" \\\")};[t].flat().filter(Boolean).forEach((e=\\u003ee.split(\\\" \\\").forEach(n)))}}function ee(e){let t={width:0,height:0};return e\\u0026\\u0026(e.style.visibility=\\\"hidden\\\",e.style.display=\\\"block\\\",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display=\\\"none\\\",e.style.visibility=\\\"visible\\\"),t}function te(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName(\\\"body\\\")[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}function ne(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}function re(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function se(e,t,n=!0){var r,s,o,i;if(e){const a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ee(e),l=a.height,u=a.width,c=t.offsetHeight,d=t.offsetWidth,h=t.getBoundingClientRect(),f=re(),p=ne(),m=te();let g,y,v=\\\"top\\\";h.top+c+l\\u003em.height?(g=h.top+f-l,v=\\\"bottom\\\",g\\u003c0\\u0026\\u0026(g=f)):g=c+h.top+f,y=h.left+u\\u003em.width?Math.max(0,h.left+p+d-u):h.left+p,e.style.top=g+\\\"px\\\",e.style.left=y+\\\"px\\\",e.style.transformOrigin=v,n\\u0026\\u0026(e.style.marginTop=\\\"bottom\\\"===v?`calc(${null!=(s=null==(r=G(/-anchor-gutter$/))?void 0:r.value)?s:\\\"2px\\\"} * -1)`:null!=(i=null==(o=G(/-anchor-gutter$/))?void 0:o.value)?i:\\\"\\\")}}function oe(e,t){e\\u0026\\u0026(\\\"string\\\"==typeof t?e.style.cssText=t:Object.entries(t||{}).forEach((([t,n])=\\u003ee.style[t]=n)))}function ie(e,t){if(e instanceof HTMLElement){return e.offsetWidth}return 0}function ae(e,t,n=!0){var r,s,o,i;if(e){const a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ee(e),l=t.offsetHeight,u=t.getBoundingClientRect(),c=te();let d,h,f=\\\"top\\\";u.top+l+a.height\\u003ec.height?(d=-1*a.height,f=\\\"bottom\\\",u.top+d\\u003c0\\u0026\\u0026(d=-1*u.top)):d=l,h=a.width\\u003ec.width?-1*u.left:u.left+a.width\\u003ec.width?-1*(u.left+a.width-c.width):0,e.style.top=d+\\\"px\\\",e.style.left=h+\\\"px\\\",e.style.transformOrigin=f,n\\u0026\\u0026(e.style.marginTop=\\\"bottom\\\"===f?`calc(${null!=(s=null==(r=G(/-anchor-gutter$/))?void 0:r.value)?s:\\\"2px\\\"} * -1)`:null!=(i=null==(o=G(/-anchor-gutter$/))?void 0:o.value)?i:\\\"\\\")}}function le(e){return\\\"object\\\"==typeof HTMLElement?e instanceof HTMLElement:e\\u0026\\u0026\\\"object\\\"==typeof e\\u0026\\u0026null!==e\\u0026\\u00261===e.nodeType\\u0026\\u0026\\\"string\\\"==typeof e.nodeName}var ue=void 0;function ce(e){{if(null!=ue)return ue;let e=document.createElement(\\\"div\\\");oe(e,{width:\\\"100px\\\",height:\\\"100px\\\",overflow:\\\"scroll\\\",position:\\\"absolute\\\",top:\\\"-9999px\\\"}),document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),ue=t,t}}function de(e,t={}){if(le(e)){const n=(t,r)=\\u003e{var s,o;const i=(null==(s=null==e?void 0:e.$attrs)?void 0:s[t])?[null==(o=null==e?void 0:e.$attrs)?void 0:o[t]]:[];return[r].flat().reduce(((e,r)=\\u003e{if(null!=r){const s=typeof r;if(\\\"string\\\"===s||\\\"number\\\"===s)e.push(r);else if(\\\"object\\\"===s){const s=Array.isArray(r)?n(t,r):Object.entries(r).map((([e,n])=\\u003e\\\"style\\\"!==t||!n\\u0026\\u00260!==n?n?e:void 0:`${e.replace(/([a-z])([A-Z])/g,\\\"$1-$2\\\").toLowerCase()}:${n}`));e=s.length?e.concat(s.filter((e=\\u003e!!e))):e}}return e}),i)};Object.entries(t).forEach((([t,r])=\\u003e{if(null!=r){const s=t.match(/^on(.+)/);s?e.addEventListener(s[1].toLowerCase(),r):\\\"p-bind\\\"===t||\\\"pBind\\\"===t?de(e,r):(r=\\\"class\\\"===t?[...new Set(n(\\\"class\\\",r))].join(\\\" \\\").trim():\\\"style\\\"===t?n(\\\"style\\\",r).join(\\\";\\\").trim():r,(e.$attrs=e.$attrs||{})\\u0026\\u0026(e.$attrs[t]=r),e.setAttribute(t,r))}}))}}function he(e,t={},...n){if(e){const r=document.createElement(e);return de(r,t),r.append(...n),r}}function fe(e,t){if(e){e.style.opacity=\\\"0\\\";let n=+new Date,r=\\\"0\\\",s=function(){r=\\\"\\\"+(+e.style.opacity+((new Date).getTime()-n)/t),e.style.opacity=r,n=+new Date,+r\\u003c1\\u0026\\u0026(window.requestAnimationFrame\\u0026\\u0026requestAnimationFrame(s)||setTimeout(s,16))};s()}}function pe(e,t){return le(e)?e.matches(t)?e:e.querySelector(t):null}function me(e,t){e\\u0026\\u0026document.activeElement!==e\\u0026\\u0026e.focus(t)}function ge(e,t){if(le(e)){const n=e.getAttribute(t);return isNaN(n)?\\\"true\\\"===n||\\\"false\\\"===n?\\\"true\\\"===n:n:+n}}function ye(e,t=\\\"\\\"){let n=function(e,t){return le(e)?Array.from(e.querySelectorAll(t)):[]}(e,`button:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            [href][clientHeight][clientWidth]:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            input:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            select:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            textarea:not([tabindex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            [tabIndex]:not([tabIndex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t},\\\\n            [contenteditable]:not([tabIndex = \\\"-1\\\"]):not([disabled]):not([style*=\\\"display:none\\\"]):not([hidden])${t}`),r=[];for(let s of n)\\\"none\\\"!=getComputedStyle(s).display\\u0026\\u0026\\\"hidden\\\"!=getComputedStyle(s).visibility\\u0026\\u0026r.push(s);return r}function ve(e,t){const n=ye(e,t);return n.length\\u003e0?n[0]:null}function be(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0}function Se(e){if(e){e.style.visibility=\\\"hidden\\\",e.style.display=\\\"block\\\";let t=e.offsetHeight;return e.style.display=\\\"none\\\",e.style.visibility=\\\"visible\\\",t}return 0}function xe(e){if(e){e.style.visibility=\\\"hidden\\\",e.style.display=\\\"block\\\";let t=e.offsetWidth;return e.style.display=\\\"none\\\",e.style.visibility=\\\"visible\\\",t}return 0}function $e(e){if(e){let t=e.parentNode;return t\\u0026\\u0026t instanceof ShadowRoot\\u0026\\u0026t.host\\u0026\\u0026(t=t.host),t}return null}function ke(e,t){const n=ye(e,t);return n.length\\u003e0?n[n.length-1]:null}function we(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:\\\"auto\\\",left:\\\"auto\\\"}}function Ce(e,t){if(e){return e.offsetHeight}return 0}function Oe(e,t=[]){const n=$e(e);return null===n?t:Oe(n,t.concat([n]))}function Le(e){let t=[];if(e){let n=Oe(e);const r=/(auto|scroll)/,s=e=\\u003e{try{let t=window.getComputedStyle(e,null);return r.test(t.getPropertyValue(\\\"overflow\\\"))||r.test(t.getPropertyValue(\\\"overflowX\\\"))||r.test(t.getPropertyValue(\\\"overflowY\\\"))}catch(t){return!1}};for(let e of n){let n=1===e.nodeType\\u0026\\u0026e.dataset.scrollselectors;if(n){let r=n.split(\\\",\\\");for(let n of r){let r=pe(e,n);r\\u0026\\u0026s(r)\\u0026\\u0026t.push(r)}}9!==e.nodeType\\u0026\\u0026s(e)\\u0026\\u0026t.push(e)}}return t}function Ee(e){return!(null==e||!e.nodeName||!$e(e))}function je(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0}function Ne(){return/(android)/i.test(navigator.userAgent)}function _e(){return!(\\\"undefined\\\"==typeof window||!window.document||!window.document.createElement)}function Ae(e){return!(!e||null==e.offsetParent)}function Pe(e){return!!e\\u0026\\u0026\\\"rtl\\\"===getComputedStyle(e).direction}function Te(){return\\\"ontouchstart\\\"in window||navigator.maxTouchPoints\\u003e0||navigator.msMaxTouchPoints\\u003e0}function De(e,t){var n,r;if(e){const s=e.parentElement,o=we(s),i=te(),a=e.offsetParent?e.offsetWidth:xe(e),l=e.offsetParent?e.offsetHeight:Se(e),u=ie(null==(n=null==s?void 0:s.children)?void 0:n[0]),c=Ce(null==(r=null==s?void 0:s.children)?void 0:r[0]);let d=\\\"\\\",h=\\\"\\\";o.left+u+a\\u003ei.width-ce()?o.left\\u003ca?t%2==1?d=o.left?\\\"-\\\"+o.left+\\\"px\\\":\\\"100%\\\":t%2==0\\u0026\\u0026(d=i.width-a-ce()+\\\"px\\\"):d=\\\"-100%\\\":d=\\\"100%\\\",h=e.getBoundingClientRect().top+c+l\\u003ei.height?`-${l-c}px`:\\\"0px\\\",e.style.top=h,e.style.left=d}}function Fe(e,t=\\\"\\\",n){le(e)\\u0026\\u0026null!=n\\u0026\\u0026e.setAttribute(t,n)}var Re={};function Be(e=\\\"pui_id_\\\"){return Re.hasOwnProperty(e)||(Re[e]=0),Re[e]++,`${e}${Re[e]}`}var We=function(){let e=[];const t=(t,n,r=0)=\\u003e[...e].reverse().find((e=\\u003e!0))||{key:t,value:r},n=e=\\u003ee\\u0026\\u0026parseInt(e.style.zIndex,10)||0;return{get:n,set:(n,r,s)=\\u003e{r\\u0026\\u0026(r.style.zIndex=String(((n,r,s=999)=\\u003e{const o=t(n,r,s),i=o.value+(o.key===n?0:s)+1;return e.push({key:n,value:i}),i})(n,!0,s)))},clear:t=\\u003e{var r;t\\u0026\\u0026(r=n(t),e=e.filter((e=\\u003ee.value!==r)),t.style.zIndex=\\\"\\\")},getCurrent:e=\\u003e(e=\\u003et(e).value)(e)}}();export{h as $,Q as A,be as B,je as C,ie as D,E,Ce as F,we as G,J as H,ge as I,Ae as J,me as K,Ne as L,S as M,ve as N,ke as O,oe as P,ae as Q,se as R,Te as S,ye as T,f as U,fe as V,ne as W,re as X,te as Y,We as Z,X as _,w as a,Pe as a0,xe as a1,Se as a2,De as a3,Fe as b,_e as c,m as d,d as e,u as f,U as g,K as h,Ee as i,$ as j,W as k,pe as l,k as m,l as n,v as o,g as p,b as q,c as r,de as s,y as t,Be as u,o as v,p as w,C as x,Le as y,he as z};\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket4\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v2/assets/primeuix-CNMLIuxO.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket4\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\"\\\"===e||A\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 15915\n                                },\n                                {\n                                    \"line\": \"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\"\\\"===e||A\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 16051\n                                },\n                                {\n                                    \"line\": \"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\"\\\"===e||A\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 16209\n                                },\n                                {\n                                    \"line\": \"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\"\\\"===e||A\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 16398\n                                },\n                                {\n                                    \"line\": \"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\"\\\"===e||A\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 16647\n                                },\n                                {\n                                    \"line\": \"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\"\\\"===e||A\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 16837\n                                },\n                                {\n                                    \"line\": \"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\"\\\"===e||A\",\n                                    \"line_number\": 1,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 16999\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\",\n            \"credential-access\"\n        ],\n        \"code_snippet\": \" 4 |  * (c) 2024 Eduardo San Martin Morote\\n 5 |  * @license MIT\\n 6 |  */\\n 7 | let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(t){Rt(l),l._a=t,t.provide(Gt,l),t.config.globalProperties.$pinia=l,s.forEach((t=\\u003er.push(t))),s=[]},use(t){return this._a?r.push(t):s.push(t),this},_p:r,_a:null,_e:o,_s:new Map,state:i});return l}(Wt=Nt||(Nt={})).direct=\\\"direct\\\",Wt.patchObject=\\\"patch object\\\",Wt.patchFunction=\\\"patch function\\\";const Xt=()=\\u003e{};function Yt(t,e,n,o=Xt){t.push(e);const i=()=\\u003e{const n=t.indexOf(e);n\\u003e-1\\u0026\\u0026(t.splice(n,1),o())};return!n\\u0026\\u0026c()\\u0026\\u0026u(i),i}function Zt(t,...e){t.slice().forEach((t=\\u003e{t(...e)}))}const Jt=t=\\u003et(),Qt=Symbol(),te=Symbol();function ee(t,e){t instanceof Map\\u0026\\u0026e instanceof Map?e.forEach(((e,n)=\\u003et.set(n,e))):t instanceof Set\\u0026\\u0026e instanceof Set\\u0026\\u0026e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],i=t[n];Ut(i)\\u0026\\u0026Ut(o)\\u0026\\u0026t.hasOwnProperty(n)\\u0026\\u0026!r(o)\\u0026\\u0026!s(o)?t[n]=ee(i,o):t[n]=o}return t}const ne=Symbol();const{assign:oe}=Object;function ie(n,a,c={},u,p,h){let f;const b=oe({actions:{}},c),m={deep:!0};let g,v,y,x=[],I=[];const k=u.state.value[n];let w;function O(t){let e;g=v=!1,\\\"function\\\"==typeof t?(t(u.state.value[n]),e={type:Nt.patchFunction,storeId:n,events:y}):(ee(u.state.value[n],t),e={type:Nt.patchObject,payload:t,storeId:n,events:y});const o=w=Symbol();d().then((()=\\u003e{w===o\\u0026\\u0026(g=!0)})),v=!0,Zt(x,e,u.state.value[n])}h||k||(u.state.value[n]={}),e({});const S=h?function(){const{state:t}=c,e=t?t():{};this.$patch((t=\\u003e{oe(t,e)}))}:Xt;const L=(t,e=\\\"\\\")=\\u003e{if(Qt in t)return t[te]=e,t;const o=function(){Rt(u);const e=Array.from(arguments),i=[],r=[];let s;Zt(I,{args:e,name:o[te],store:C,after:function(t){i.push(t)},onError:function(t){r.push(t)}});try{s=t.apply(this\\u0026\\u0026this.$id===n?this:C,e)}catch(l){throw Zt(r,l),l}return s instanceof Promise?s.then((t=\\u003e(Zt(i,t),t))).catch((t=\\u003e(Zt(r,t),Promise.reject(t)))):(Zt(i,s),s)};return o[Qt]=!0,o[te]=e,o},$={_p:u,$id:n,$onAction:Yt.bind(null,I),$patch:O,$reset:S,$subscribe(t,e={}){const i=Yt(x,t,e.detached,(()=\\u003er())),r=f.run((()=\\u003eo((()=\\u003eu.state.value[n]),(o=\\u003e{(\\\"sync\\\"===e.flush?v:g)\\u0026\\u0026t({storeId:n,type:Nt.direct,events:y},o)}),oe({},m,e))));return i},$dispose:function(){f.stop(),x=[],I=[],u._s.delete(n)}},C=i($);u._s.set(n,C);const z=(u._a\\u0026\\u0026u._a.runWithContext||Jt)((()=\\u003eu._e.run((()=\\u003e(f=t()).run((()=\\u003ea({action:L})))))));for(const t in z){const e=z[t];if(r(e)\\u0026\\u0026(!r(T=e)||!T.effect)||s(e))h||(!k||Ut(E=e)\\u0026\\u0026E.hasOwnProperty(ne)||(r(e)?e.value=k[t]:ee(e,k[t])),u.state.value[n][t]=e);else if(\\\"function\\\"==typeof e){const n=L(e,t);z[t]=n,b.actions[t]=e}}var E,T;return oe(C,z),oe(l(C),z),Object.defineProperty(C,\\\"$state\\\",{get:()=\\u003eu.state.value[n],set:t=\\u003e{O((e=\\u003e{oe(e,t)}))}}),u._p.forEach((t=\\u003e{oe(C,f.run((()=\\u003et({store:C,app:u._a,pinia:u,options:b}))))})),k\\u0026\\u0026h\\u0026\\u0026c.hydrate\\u0026\\u0026c.hydrate(C.$state,k),g=!0,v=!0,C}function re(t,e,o){let i,r;const s=\\\"function\\\"==typeof e;function l(t,o){const l=b();(t=t||(l?p(Gt,null):null))\\u0026\\u0026Rt(t),(t=jt)._s.has(i)||(s?ie(i,e,r,t):function(t,e,o){const{state:i,actions:r,getters:s}=e,l=o.state.value[t];let a;a=ie(t,(function(){l||(o.state.value[t]=i?i():{});const e=h(o.state.value[t]);return oe(e,r,Object.keys(s||{}).reduce(((e,i)=\\u003e(e[i]=n(f((()=\\u003e{Rt(o);const e=o._s.get(t);return s[i].call(e,e)}))),e)),{}))}),e,o,0,!0)}(i,r,t));return t._s.get(i)}return\\\"string\\\"==typeof t?(i=t,r=s?o:e):(r=t,i=t.id),l.$id=i,l}function se(t){{t=l(t);const e={};for(const n in t){const o=t[n];(r(o)||s(o))\\u0026\\u0026(e[n]=a(t,n))}return e}}const le=\\\"undefined\\\"!=typeof navigator\\u0026\\u0026navigator.userAgent.toLowerCase().indexOf(\\\"firefox\\\")\\u003e0;function ae(t,e,n,o){t.addEventListener?t.addEventListener(e,n,o):t.attachEvent\\u0026\\u0026t.attachEvent(\\\"on\\\".concat(e),n)}function ce(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent\\u0026\\u0026t.detachEvent(\\\"on\\\".concat(e),n)}function ue(t,e){const n=e.slice(0,e.length-1);for(let o=0;o\\u003cn.length;o++)n[o]=t[n[o].toLowerCase()];return n}function de(t){\\\"string\\\"!=typeof t\\u0026\\u0026(t=\\\"\\\");const e=(t=t.replace(/\\\\s/g,\\\"\\\")).split(\\\",\\\");let n=e.lastIndexOf(\\\"\\\");for(;n\\u003e=0;)e[n-1]+=\\\",\\\",e.splice(n,1),n=e.lastIndexOf(\\\"\\\");return e}const pe={backspace:8,\\\"⌫\\\":8,tab:9,clear:12,enter:13,\\\"↩\\\":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,\\\"⇪\\\":20,\\\",\\\":188,\\\".\\\":190,\\\"/\\\":191,\\\"`\\\":192,\\\"-\\\":le?173:189,\\\"=\\\":le?61:187,\\\";\\\":le?59:186,\\\"'\\\":222,\\\"[\\\":219,\\\"]\\\":221,\\\"\\\\\\\\\\\":220},he={\\\"⇧\\\":16,shift:16,\\\"⌥\\\":18,alt:18,option:18,\\\"⌃\\\":17,ctrl:17,control:17,\\\"⌘\\\":91,cmd:91,command:91},fe={16:\\\"shiftKey\\\",18:\\\"altKey\\\",17:\\\"ctrlKey\\\",91:\\\"metaKey\\\",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},be={16:!1,18:!1,17:!1,91:!1},me={};for(let Oo=1;Oo\\u003c20;Oo++)pe[\\\"f\\\".concat(Oo)]=111+Oo;let ge=[],ve=null,ye=\\\"all\\\";const xe=new Map,Ie=t=\\u003epe[t.toLowerCase()]||he[t.toLowerCase()]||t.toUpperCase().charCodeAt(0);function ke(t){ye=t||\\\"all\\\"}function we(){return ye||\\\"all\\\"}function Oe(t){if(void 0===t)Object.keys(me).forEach((t=\\u003e{Array.isArray(me[t])\\u0026\\u0026me[t].forEach((t=\\u003eSe(t))),delete me[t]})),ze(null);else if(Array.isArray(t))t.forEach((t=\\u003e{t.key\\u0026\\u0026Se(t)}));else if(\\\"object\\\"==typeof t)t.key\\u0026\\u0026Se(t);else if(\\\"string\\\"==typeof t){for(var e=arguments.length,n=new Array(e\\u003e1?e-1:0),o=1;o\\u003ce;o++)n[o-1]=arguments[o];let[i,r]=n;\\\"function\\\"==typeof i\\u0026\\u0026(r=i,i=\\\"\\\"),Se({key:t,scope:i,method:r,splitKey:\\\"+\\\"})}}const Se=t=\\u003e{let{key:e,scope:n,method:o,splitKey:i=\\\"+\\\"}=t;de(e).forEach((t=\\u003e{const e=t.split(i),r=e.length,s=e[r-1],l=\\\"*\\\"===s?\\\"*\\\":Ie(s);if(!me[l])return;n||(n=we());const a=r\\u003e1?ue(he,e):[],c=[];me[l]=me[l].filter((t=\\u003e{const e=(!o||t.method===o)\\u0026\\u0026t.scope===n\\u0026\\u0026function(t,e){const n=t.length\\u003e=e.length?t:e,o=t.length\\u003e=e.length?e:t;let i=!0;for(let r=0;r\\u003cn.length;r++)-1===o.indexOf(n[r])\\u0026\\u0026(i=!1);return i}(t.mods,a);return e\\u0026\\u0026c.push(t.element),!e})),c.forEach((t=\\u003eze(t)))}))};function Le(t,e,n,o){if(e.element!==o)return;let i;if(e.scope===n||\\\"all\\\"===e.scope){i=e.mods.length\\u003e0;for(const t in be)Object.prototype.hasOwnProperty.call(be,t)\\u0026\\u0026(!be[t]\\u0026\\u0026e.mods.indexOf(+t)\\u003e-1||be[t]\\u0026\\u0026-1===e.mods.indexOf(+t))\\u0026\\u0026(i=!1);(0!==e.mods.length||be[16]||be[18]||be[17]||be[91])\\u0026\\u0026!i\\u0026\\u0026\\\"*\\\"!==e.shortcut||(e.keys=[],e.keys=e.keys.concat(ge),!1===e.method(t,e)\\u0026\\u0026(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation\\u0026\\u0026t.stopPropagation(),t.cancelBubble\\u0026\\u0026(t.cancelBubble=!0)))}}function $e(t,e){const n=me[\\\"*\\\"];let o=t.keyCode||t.which||t.charCode;if(!Ce.filter.call(this,t))return;if(93!==o\\u0026\\u0026224!==o||(o=91),-1===ge.indexOf(o)\\u0026\\u0026229!==o\\u0026\\u0026ge.push(o),[\\\"ctrlKey\\\",\\\"altKey\\\",\\\"shiftKey\\\",\\\"metaKey\\\"].forEach((e=\\u003e{const n=fe[e];t[e]\\u0026\\u0026-1===ge.indexOf(n)?ge.push(n):!t[e]\\u0026\\u0026ge.indexOf(n)\\u003e-1?ge.splice(ge.indexOf(n),1):\\\"metaKey\\\"===e\\u0026\\u0026t[e]\\u0026\\u00263===ge.length\\u0026\\u0026(t.ctrlKey||t.shiftKey||t.altKey||(ge=ge.slice(ge.indexOf(n))))})),o in be){be[o]=!0;for(const t in he)he[t]===o\\u0026\\u0026(Ce[t]=!0);if(!n)return}for(const l in be)Object.prototype.hasOwnProperty.call(be,l)\\u0026\\u0026(be[l]=t[fe[l]]);t.getModifierState\\u0026\\u0026(!t.altKey||t.ctrlKey)\\u0026\\u0026t.getModifierState(\\\"AltGraph\\\")\\u0026\\u0026(-1===ge.indexOf(17)\\u0026\\u0026ge.push(17),-1===ge.indexOf(18)\\u0026\\u0026ge.push(18),be[17]=!0,be[18]=!0);const i=we();if(n)for(let l=0;l\\u003cn.length;l++)n[l].scope===i\\u0026\\u0026(\\\"keydown\\\"===t.type\\u0026\\u0026n[l].keydown||\\\"keyup\\\"===t.type\\u0026\\u0026n[l].keyup)\\u0026\\u0026Le(t,n[l],i,e);if(!(o in me))return;const r=me[o],s=r.length;for(let l=0;l\\u003cs;l++)if((\\\"keydown\\\"===t.type\\u0026\\u0026r[l].keydown||\\\"keyup\\\"===t.type\\u0026\\u0026r[l].keyup)\\u0026\\u0026r[l].key){const n=r[l],{splitKey:o}=n,s=n.key.split(o),a=[];for(let t=0;t\\u003cs.length;t++)a.push(Ie(s[t]));a.sort().join(\\\"\\\")===ge.sort().join(\\\"\\\")\\u0026\\u0026Le(t,n,i,e)}}function Ce(t,e,n){ge=[];const o=de(t);let i=[],r=\\\"all\\\",s=document,l=0,a=!1,c=!0,u=\\\"+\\\",d=!1,p=!1;for(void 0===n\\u0026\\u0026\\\"function\\\"==typeof e\\u0026\\u0026(n=e),\\\"[object Object]\\\"===Object.prototype.toString.call(e)\\u0026\\u0026(e.scope\\u0026\\u0026(r=e.scope),e.element\\u0026\\u0026(s=e.element),e.keyup\\u0026\\u0026(a=e.keyup),void 0!==e.keydown\\u0026\\u0026(c=e.keydown),void 0!==e.capture\\u0026\\u0026(d=e.capture),\\\"string\\\"==typeof e.splitKey\\u0026\\u0026(u=e.splitKey),!0===e.single\\u0026\\u0026(p=!0)),\\\"string\\\"==typeof e\\u0026\\u0026(r=e),p\\u0026\\u0026Oe(t,r);l\\u003co.length;l++)i=[],(t=o[l].split(u)).length\\u003e1\\u0026\\u0026(i=ue(he,t)),(t=\\\"*\\\"===(t=t[t.length-1])?\\\"*\\\":Ie(t))in me||(me[t]=[]),me[t].push({keyup:a,keydown:c,scope:r,mods:i,shortcut:o[l],method:n,key:o[l],splitKey:u,element:s});if(void 0!==s\\u0026\\u0026window){if(!xe.has(s)){const t=function(){return $e(arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:window.event,s)},e=function(){let t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:window.event;$e(t,s),function(t){let e=t.keyCode||t.which||t.charCode;const n=ge.indexOf(e);if(n\\u003e=0\\u0026\\u0026ge.splice(n,1),t.key\\u0026\\u0026\\\"meta\\\"===t.key.toLowerCase()\\u0026\\u0026ge.splice(0,ge.length),93!==e\\u0026\\u0026224!==e||(e=91),e in be){be[e]=!1;for(const t in he)he[t]===e\\u0026\\u0026(Ce[t]=!1)}}(t)};xe.set(s,{keydownListener:t,keyupListenr:e,capture:d}),ae(s,\\\"keydown\\\",t,d),ae(s,\\\"keyup\\\",e,d)}if(!ve){const t=()=\\u003e{ge=[]};ve={listener:t,capture:d},ae(window,\\\"focus\\\",t,d)}}}function ze(t){const e=Object.values(me).flat();if(e.findIndex((e=\\u003e{let{element:n}=e;return n===t}))\\u003c0){const{keydownListener:e,keyupListenr:n,capture:o}=xe.get(t)||{};e\\u0026\\u0026n\\u0026\\u0026(ce(t,\\\"keyup\\\",n,o),ce(t,\\\"keydown\\\",e,o),xe.delete(t))}if(e.length\\u003c=0||xe.size\\u003c=0){if(Object.keys(xe).forEach((t=\\u003e{const{keydownListener:e,keyupListenr:n,capture:o}=xe.get(t)||{};e\\u0026\\u0026n\\u0026\\u0026(ce(t,\\\"keyup\\\",n,o),ce(t,\\\"keydown\\\",e,o),xe.delete(t))})),xe.clear(),Object.keys(me).forEach((t=\\u003edelete me[t])),ve){const{listener:t,capture:e}=ve;ce(window,\\\"focus\\\",t,e),ve=null}}}const Ee={getPressedKeyString:function(){return ge.map((t=\\u003e{return e=t,Object.keys(pe).find((t=\\u003epe[t]===e))||(t=\\u003eObject.keys(he).find((e=\\u003ehe[e]===t)))(t)||String.fromCharCode(t);var e}))},setScope:ke,getScope:we,deleteScope:function(t,e){let n,o;t||(t=we());for(const i in me)if(Object.prototype.hasOwnProperty.call(me,i))for(n=me[i],o=0;o\\u003cn.length;)if(n[o].scope===t){n.splice(o,1).forEach((t=\\u003e{let{element:e}=t;return ze(e)}))}else o++;we()===t\\u0026\\u0026ke(e||\\\"all\\\")},getPressedKeyCodes:function(){return ge.slice(0)},getAllKeyCodes:function(){const t=[];return Object.keys(me).forEach((e=\\u003e{me[e].forEach((e=\\u003e{let{key:n,scope:o,mods:i,shortcut:r}=e;t.push({scope:o,shortcut:r,mods:i,keys:n.split(\\\"+\\\").map((t=\\u003eIe(t)))})}))})),t},isPressed:function(t){return\\\"string\\\"==typeof t\\u0026\\u0026(t=Ie(t)),-1!==ge.indexOf(t)},filter:function(t){const e=t.target||t.srcElement,{tagName:n}=e;let o=!0;const i=\\\"INPUT\\\"===n\\u0026\\u0026![\\\"checkbox\\\",\\\"radio\\\",\\\"range\\\",\\\"button\\\",\\\"file\\\",\\\"reset\\\",\\\"submit\\\",\\\"color\\\"].includes(e.type);return(e.isContentEditable||(i||\\\"TEXTAREA\\\"===n||\\\"SELECT\\\"===n)\\u0026\\u0026!e.readOnly)\\u0026\\u0026(o=!1),o},trigger:function(t){let e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:\\\"all\\\";Object.keys(me).forEach((n=\\u003e{me[n].filter((n=\\u003en.scope===e\\u0026\\u0026n.shortcut===t)).forEach((t=\\u003e{t\\u0026\\u0026t.method\\u0026\\u0026t.method()}))}))},unbind:Oe,keyMap:pe,modifier:he,modifierMap:fe};for(const Oo in Ee)Object.prototype.hasOwnProperty.call(Ee,Oo)\\u0026\\u0026(Ce[Oo]=Ee[Oo]);if(\\\"undefined\\\"!=typeof window){const t=window.hotkeys;Ce.noConflict=e=\\u003e(e\\u0026\\u0026window.hotkeys===Ce\\u0026\\u0026(window.hotkeys=t),Ce),window.hotkeys=Ce}var Te={root:function(t){var e=t.props,n=t.instance;return[\\\"p-badge p-component\\\",{\\\"p-badge-circle\\\":K(e.value)\\u0026\\u00261===String(e.value).length,\\\"p-badge-dot\\\":D(e.value)\\u0026\\u0026!n.$slots.default,\\\"p-badge-sm\\\":\\\"small\\\"===e.size,\\\"p-badge-lg\\\":\\\"large\\\"===e.size,\\\"p-badge-xl\\\":\\\"xlarge\\\"===e.size,\\\"p-badge-info\\\":\\\"info\\\"===e.severity,\\\"p-badge-success\\\":\\\"success\\\"===e.severity,\\\"p-badge-warn\\\":\\\"warn\\\"===e.severity,\\\"p-badge-danger\\\":\\\"danger\\\"===e.severity,\\\"p-badge-secondary\\\":\\\"secondary\\\"===e.severity,\\\"p-badge-contrast\\\":\\\"contrast\\\"===e.severity}]}},_e=St.extend({name:\\\"badge\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-badge {\\\\n    display: inline-flex;\\\\n    border-radius: \\\".concat(e(\\\"badge.border.radius\\\"),\\\";\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    padding: \\\").concat(e(\\\"badge.padding\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"badge.primary.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.primary.color\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"badge.font.size\\\"),\\\";\\\\n    font-weight: \\\").concat(e(\\\"badge.font.weight\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.min.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-dot {\\\\n    width: \\\").concat(e(\\\"badge.dot.size\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.dot.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.dot.size\\\"),\\\";\\\\n    border-radius: 50%;\\\\n    padding: 0;\\\\n}\\\\n\\\\n.p-badge-circle {\\\\n    padding: 0;\\\\n    border-radius: 50%;\\\\n}\\\\n\\\\n.p-badge-secondary {\\\\n    background: \\\").concat(e(\\\"badge.secondary.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-success {\\\\n    background: \\\").concat(e(\\\"badge.success.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-info {\\\\n    background: \\\").concat(e(\\\"badge.info.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-warn {\\\\n    background: \\\").concat(e(\\\"badge.warn.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-danger {\\\\n    background: \\\").concat(e(\\\"badge.danger.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-contrast {\\\\n    background: \\\").concat(e(\\\"badge.contrast.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-sm {\\\\n    font-size: \\\").concat(e(\\\"badge.sm.font.size\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.sm.min.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.sm.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-lg {\\\\n    font-size: \\\").concat(e(\\\"badge.lg.font.size\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.lg.min.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.lg.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-xl {\\\\n    font-size: \\\").concat(e(\\\"badge.xl.font.size\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.xl.min.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.xl.height\\\"),\\\";\\\\n}\\\\n\\\")},classes:Te}),Me={name:\\\"Badge\\\",extends:{name:\\\"BaseBadge\\\",extends:Lt,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:_e,provide:function(){return{$pcBadge:this,$parentInstance:this}}},inheritAttrs:!1};Me.render=function(t,e,n,o,i,r){return m(),g(\\\"span\\\",I({class:t.cx(\\\"root\\\")},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"default\\\",{},(function(){return[y(x(t.value),1)]}))],16)};var Ve=St.extend({name:\\\"ripple-directive\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-ink {\\\\n    display: block;\\\\n    position: absolute;\\\\n    background: \\\".concat(e(\\\"ripple.background\\\"),\\\";\\\\n    border-radius: 100%;\\\\n    transform: scale(0);\\\\n    pointer-events: none;\\\\n}\\\\n\\\\n.p-ink-active {\\\\n    animation: ripple 0.4s linear;\\\\n}\\\\n\\\\n@keyframes ripple {\\\\n    100% {\\\\n        opacity: 0;\\\\n        transform: scale(2.5);\\\\n    }\\\\n}\\\\n\\\")},classes:{root:\\\"p-ink\\\"}});function Pe(t){return(Pe=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function Fe(t){return function(t){if(Array.isArray(t))return Ae(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return Ae(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function Ae(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}function Ke(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Pe(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Pe(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De=$t.extend({style:Ve}).extend(\\\"ripple\\\",{watch:{\\\"config.ripple\\\":function(t){t?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute(\\\"data-pd-ripple\\\",!0),this.$host.style.overflow=\\\"hidden\\\",this.$host.style.position=\\\"relative\\\"):(this.remove(this.$host),this.$host.removeAttribute(\\\"data-pd-ripple\\\"))}},unmounted:function(t){this.remove(t)},timeout:void 0,methods:{bindEvents:function(t){t.addEventListener(\\\"mousedown\\\",this.onMouseDown.bind(this))},unbindEvents:function(t){t.removeEventListener(\\\"mousedown\\\",this.onMouseDown.bind(this))},createRipple:function(t){var e=B(\\\"span\\\",Ke(Ke({role:\\\"presentation\\\",\\\"aria-hidden\\\":!0,\\\"data-p-ink\\\":!0,\\\"data-p-ink-active\\\":!1,class:!this.isUnstyled()\\u0026\\u0026this.cx(\\\"root\\\"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,\\\"\\\"),\\\"p-bind\\\",this.ptm(\\\"root\\\")));t.appendChild(e),this.$el=e},remove:function(t){var e=this.getInk(t);e\\u0026\\u0026(this.$host.style.overflow=\\\"\\\",this.$host.style.position=\\\"\\\",this.unbindEvents(t),e.removeEventListener(\\\"animationend\\\",this.onAnimationEnd),e.remove())},onMouseDown:function(t){var e=this,n=t.currentTarget,o=this.getInk(n);if(o\\u0026\\u0026\\\"none\\\"!==getComputedStyle(o,null).display){if(!this.isUnstyled()\\u0026\\u0026H(o,\\\"p-ink-active\\\"),o.setAttribute(\\\"data-p-ink-active\\\",\\\"false\\\"),!j(o)\\u0026\\u0026!R(o)){var i=Math.max(G(n),U(n));o.style.height=i+\\\"px\\\",o.style.width=i+\\\"px\\\"}var r=N(n),s=t.pageX-r.left+document.body.scrollTop-R(o)/2,l=t.pageY-r.top+document.body.scrollLeft-j(o)/2;o.style.top=l+\\\"px\\\",o.style.left=s+\\\"px\\\",!this.isUnstyled()\\u0026\\u0026W(o,\\\"p-ink-active\\\"),o.setAttribute(\\\"data-p-ink-active\\\",\\\"true\\\"),this.timeout=setTimeout((function(){o\\u0026\\u0026(!e.isUnstyled()\\u0026\\u0026H(o,\\\"p-ink-active\\\"),o.setAttribute(\\\"data-p-ink-active\\\",\\\"false\\\"))}),401)}},onAnimationEnd:function(t){this.timeout\\u0026\\u0026clearTimeout(this.timeout),!this.isUnstyled()\\u0026\\u0026H(t.currentTarget,\\\"p-ink-active\\\"),t.currentTarget.setAttribute(\\\"data-p-ink-active\\\",\\\"false\\\")},getInk:function(t){return t\\u0026\\u0026t.children?Fe(t.children).find((function(t){return\\\"ripple\\\"===q(t,\\\"data-pc-name\\\")})):void 0}}});function Be(t){return(Be=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function He(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Be(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Be(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Be(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var je={root:function(t){var e=t.instance,n=t.props;return[\\\"p-button p-component\\\",He(He(He(He(He(He(He(He(He({\\\"p-button-icon-only\\\":e.hasIcon\\u0026\\u0026!n.label\\u0026\\u0026!n.badge,\\\"p-button-vertical\\\":(\\\"top\\\"===n.iconPos||\\\"bottom\\\"===n.iconPos)\\u0026\\u0026n.label,\\\"p-button-loading\\\":n.loading,\\\"p-button-link\\\":n.link||\\\"link\\\"===n.variant},\\\"p-button-\\\".concat(n.severity),n.severity),\\\"p-button-raised\\\",n.raised),\\\"p-button-rounded\\\",n.rounded),\\\"p-button-text\\\",n.text||\\\"text\\\"===n.variant),\\\"p-button-outlined\\\",n.outlined||\\\"outlined\\\"===n.variant),\\\"p-button-sm\\\",\\\"small\\\"===n.size),\\\"p-button-lg\\\",\\\"large\\\"===n.size),\\\"p-button-plain\\\",n.plain),\\\"p-button-fluid\\\",e.hasFluid)]},loadingIcon:\\\"p-button-loading-icon\\\",icon:function(t){var e=t.props;return[\\\"p-button-icon\\\",He({},\\\"p-button-icon-\\\".concat(e.iconPos),e.label)]},label:\\\"p-button-label\\\"},Re=St.extend({name:\\\"button\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-button {\\\\n    display: inline-flex;\\\\n    cursor: pointer;\\\\n    user-select: none;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    overflow: hidden;\\\\n    position: relative;\\\\n    color: \\\".concat(e(\\\"button.primary.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"button.primary.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.primary.border.color\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"button.padding.y\\\"),\\\" \\\").concat(e(\\\"button.padding.x\\\"),\\\";\\\\n    font-size: 1rem;\\\\n    font-family: inherit;\\\\n    font-feature-settings: inherit;\\\\n    transition: background \\\").concat(e(\\\"button.transition.duration\\\"),\\\", color \\\").concat(e(\\\"button.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"button.transition.duration\\\"),\\\",\\\\n            outline-color \\\").concat(e(\\\"button.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"button.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"button.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    gap: \\\").concat(e(\\\"button.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-button:disabled {\\\\n    cursor: default;\\\\n}\\\\n\\\\n.p-button-icon-right {\\\\n    order: 1;\\\\n}\\\\n\\\\n.p-button-icon-right:dir(rtl) {\\\\n    order: -1;\\\\n}\\\\n\\\\n.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {\\\\n    order: 1;\\\\n}\\\\n\\\\n.p-button-icon-bottom {\\\\n    order: 2;\\\\n}\\\\n\\\\n.p-button-icon-only {\\\\n    width: \\\").concat(e(\\\"button.icon.only.width\\\"),\\\";\\\\n    padding-inline-start: 0;\\\\n    padding-inline-end: 0;\\\\n    gap: 0;\\\\n}\\\\n\\\\n.p-button-icon-only.p-button-rounded {\\\\n    border-radius: 50%;\\\\n    height: \\\").concat(e(\\\"button.icon.only.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-icon-only .p-button-label {\\\\n    visibility: hidden;\\\\n    width: 0;\\\\n}\\\\n\\\\n.p-button-sm {\\\\n    font-size: \\\").concat(e(\\\"button.sm.font.size\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"button.sm.padding.y\\\"),\\\" \\\").concat(e(\\\"button.sm.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-sm .p-button-icon {\\\\n    font-size: \\\").concat(e(\\\"button.sm.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-lg {\\\\n    font-size: \\\").concat(e(\\\"button.lg.font.size\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"button.lg.padding.y\\\"),\\\" \\\").concat(e(\\\"button.lg.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-lg .p-button-icon {\\\\n    font-size: \\\").concat(e(\\\"button.lg.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-vertical {\\\\n    flex-direction: column;\\\\n}\\\\n\\\\n.p-button-label {\\\\n    font-weight: \\\").concat(e(\\\"button.label.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-fluid {\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-button-fluid.p-button-icon-only {\\\\n    width: \\\").concat(e(\\\"button.icon.only.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-button:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.primary.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.primary.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.primary.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.primary.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.primary.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.primary.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button:focus-visible {\\\\n    box-shadow: \\\").concat(e(\\\"button.primary.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"button.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"button.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"button.primary.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"button.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-button .p-badge {\\\\n    min-width: \\\").concat(e(\\\"button.badge.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"button.badge.size\\\"),\\\";\\\\n    line-height: \\\").concat(e(\\\"button.badge.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-raised {\\\\n    box-shadow: \\\").concat(e(\\\"button.raised.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-rounded {\\\\n    border-radius: \\\").concat(e(\\\"button.rounded.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-secondary {\\\\n    background: \\\").concat(e(\\\"button.secondary.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.secondary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-secondary:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.secondary.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.secondary.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.secondary.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-secondary:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.secondary.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.secondary.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.secondary.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-secondary:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.secondary.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.secondary.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-success {\\\\n    background: \\\").concat(e(\\\"button.success.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.success.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-success:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.success.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.success.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.success.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-success:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.success.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.success.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.success.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-success:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.success.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.success.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-info {\\\\n    background: \\\").concat(e(\\\"button.info.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.info.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-info:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.info.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.info.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.info.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-info:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.info.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.info.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.info.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-info:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.info.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.info.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-warn {\\\\n    background: \\\").concat(e(\\\"button.warn.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.warn.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-warn:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.warn.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.warn.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.warn.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-warn:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.warn.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.warn.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.warn.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-warn:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.warn.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.warn.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-help {\\\\n    background: \\\").concat(e(\\\"button.help.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.help.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-help:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.help.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.help.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.help.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-help:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.help.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.help.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.help.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-help:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.help.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.help.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-danger {\\\\n    background: \\\").concat(e(\\\"button.danger.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.danger.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-danger:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.danger.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.danger.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.danger.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-danger:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.danger.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.danger.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.danger.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-danger:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.danger.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.danger.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-contrast {\\\\n    background: \\\").concat(e(\\\"button.contrast.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.contrast.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-contrast:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.contrast.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.contrast.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.contrast.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-contrast:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.contrast.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.contrast.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.contrast.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-contrast:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.contrast.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.contrast.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined {\\\\n    background: transparent;\\\\n    border-color: \\\").concat(e(\\\"button.outlined.primary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.primary.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.primary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.primary.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.primary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-secondary {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.secondary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-secondary:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.secondary.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.secondary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-secondary:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.secondary.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.secondary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-success {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.success.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-success:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.success.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.success.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-success:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.success.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.success.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-info {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.info.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-info:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.info.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.info.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-info:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.info.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.info.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-warn {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.warn.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-warn:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.warn.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.warn.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-warn:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.warn.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.warn.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-help {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.help.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-help:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.help.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.help.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-help:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.help.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.help.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-danger {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.danger.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-danger:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.danger.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.danger.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-danger:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.danger.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.danger.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-contrast {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.contrast.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-contrast:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.contrast.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.contrast.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-contrast:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.contrast.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.contrast.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-plain {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.plain.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-plain:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.plain.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.plain.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-plain:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.plain.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.plain.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.primary.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.primary.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-secondary {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-secondary:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.secondary.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-secondary:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.secondary.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-success {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-success:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.success.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-success:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.success.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-info {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-info:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.info.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-info:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.info.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-warn {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-warn:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.warn.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-warn:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.warn.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-help {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-help:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.help.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-help:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.help.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-danger {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-danger:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.danger.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-danger:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.danger.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-contrast {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-contrast:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.contrast.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-contrast:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.contrast.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-plain {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-plain:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.plain.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-plain:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.plain.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-link {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.link.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-link:not(:disabled):hover {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.link.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-link:not(:disabled):hover .p-button-label {\\\\n    text-decoration: underline;\\\\n}\\\\n\\\\n.p-button-link:not(:disabled):active {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.link.active.color\\\"),\\\";\\\\n}\\\\n\\\")},classes:je}),Ge={name:\\\"Button\\\",extends:{name:\\\"BaseButton\\\",extends:Lt,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:\\\"left\\\"},iconClass:{type:[String,Object],default:null},badge:{type:String,default:null},badgeClass:{type:[String,Object],default:null},badgeSeverity:{type:String,default:\\\"secondary\\\"},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},as:{type:[String,Object],default:\\\"BUTTON\\\"},asChild:{type:Boolean,default:!1},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},variant:{type:String,default:null},plain:{type:Boolean,default:!1},fluid:{type:Boolean,default:null}},style:Re,provide:function(){return{$pcButton:this,$parentInstance:this}}},inheritAttrs:!1,inject:{$pcFluid:{default:null}},methods:{getPTOptions:function(t){return(\\\"root\\\"===t?this.ptmi:this.ptm)(t,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||\\\"\\\"===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?\\\" \\\"+this.badge:\\\"\\\"):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon},attrs:function(){return I(this.asAttrs,this.a11yAttrs,this.getPTOptions(\\\"root\\\"))},asAttrs:function(){return\\\"BUTTON\\\"===this.as?{type:\\\"button\\\",disabled:this.disabled}:void 0},a11yAttrs:function(){return{\\\"aria-label\\\":this.defaultAriaLabel,\\\"data-pc-name\\\":\\\"button\\\",\\\"data-p-disabled\\\":this.disabled,\\\"data-p-severity\\\":this.severity}},hasFluid:function(){return D(this.fluid)?!!this.$pcFluid:this.fluid}},components:{SpinnerIcon:Ct,Badge:Me},directives:{ripple:De}};Ge.render=function(t,e,n,o,i,r){var s=k(\\\"SpinnerIcon\\\"),l=k(\\\"Badge\\\"),a=w(\\\"ripple\\\");return t.asChild?v(t.$slots,\\\"default\\\",{key:1,class:z(t.cx(\\\"root\\\")),a11yAttrs:r.a11yAttrs}):O((m(),S(E(t.as),I({key:0,class:t.cx(\\\"root\\\")},r.attrs),{default:L((function(){return[v(t.$slots,\\\"default\\\",{},(function(){return[t.loading?v(t.$slots,\\\"loadingicon\\\",I({key:0,class:[t.cx(\\\"loadingIcon\\\"),t.cx(\\\"icon\\\")]},t.ptm(\\\"loadingIcon\\\")),(function(){return[t.loadingIcon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"loadingIcon\\\"),t.cx(\\\"icon\\\"),t.loadingIcon]},t.ptm(\\\"loadingIcon\\\")),null,16)):(m(),S(s,I({key:1,class:[t.cx(\\\"loadingIcon\\\"),t.cx(\\\"icon\\\")],spin:\\\"\\\"},t.ptm(\\\"loadingIcon\\\")),null,16,[\\\"class\\\"]))]})):v(t.$slots,\\\"icon\\\",I({key:1,class:[t.cx(\\\"icon\\\")]},t.ptm(\\\"icon\\\")),(function(){return[t.icon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"icon\\\"),t.icon,t.iconClass]},t.ptm(\\\"icon\\\")),null,16)):$(\\\"\\\",!0)]})),C(\\\"span\\\",I({class:t.cx(\\\"label\\\")},t.ptm(\\\"label\\\")),x(t.label||\\\" \\\"),17),t.badge?(m(),S(l,{key:2,value:t.badge,class:z(t.badgeClass),severity:t.badgeSeverity,unstyled:t.unstyled,pt:t.ptm(\\\"pcBadge\\\")},null,8,[\\\"value\\\",\\\"class\\\",\\\"severity\\\",\\\"unstyled\\\",\\\"pt\\\"])):$(\\\"\\\",!0)]}))]})),_:3},16,[\\\"class\\\"])),[[a]])};var Ue={name:\\\"IconField\\\",extends:{name:\\\"BaseIconField\\\",extends:Lt,style:St.extend({name:\\\"iconfield\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-iconfield {\\\\n    position: relative;\\\\n}\\\\n\\\\n.p-inputicon {\\\\n    position: absolute;\\\\n    top: 50%;\\\\n    margin-top: calc(-1 * (\\\".concat(e(\\\"icon.size\\\"),\\\" / 2));\\\\n    color: \\\").concat(e(\\\"iconfield.icon.color\\\"),\\\";\\\\n    line-height: 1;\\\\n}\\\\n\\\\n.p-iconfield .p-inputicon:first-child {\\\\n    inset-inline-start: \\\").concat(e(\\\"form.field.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-iconfield .p-inputicon:last-child {\\\\n    inset-inline-end: \\\").concat(e(\\\"form.field.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-iconfield .p-inputtext:not(:first-child) {\\\\n    padding-inline-start: calc((\\\").concat(e(\\\"form.field.padding.x\\\"),\\\" * 2) + \\\").concat(e(\\\"icon.size\\\"),\\\");\\\\n}\\\\n\\\\n.p-iconfield .p-inputtext:not(:last-child) {\\\\n    padding-inline-end: calc((\\\").concat(e(\\\"form.field.padding.x\\\"),\\\" * 2) + \\\").concat(e(\\\"icon.size\\\"),\\\");\\\\n}\\\\n\\\\n.p-iconfield:has(.p-inputfield-sm) .p-inputicon {\\\\n    font-size: \\\").concat(e(\\\"form.field.sm.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"form.field.sm.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"form.field.sm.font.size\\\"),\\\";\\\\n    margin-top: calc(-1 * (\\\").concat(e(\\\"form.field.sm.font.size\\\"),\\\" / 2));\\\\n}\\\\n\\\\n.p-iconfield:has(.p-inputfield-lg) .p-inputicon {\\\\n    font-size: \\\").concat(e(\\\"form.field.lg.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"form.field.lg.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"form.field.lg.font.size\\\"),\\\";\\\\n    margin-top: calc(-1 * (\\\").concat(e(\\\"form.field.lg.font.size\\\"),\\\" / 2));\\\\n}\\\\n\\\")},classes:{root:\\\"p-iconfield\\\"}}),provide:function(){return{$pcIconField:this,$parentInstance:this}}},inheritAttrs:!1};Ue.render=function(t,e,n,o,i,r){return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\")},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"default\\\")],16)};var Ne={name:\\\"InputIcon\\\",extends:{name:\\\"BaseInputIcon\\\",extends:Lt,style:St.extend({name:\\\"inputicon\\\",classes:{root:\\\"p-inputicon\\\"}}),props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},inheritAttrs:!1,computed:{containerClass:function(){return[this.cx(\\\"root\\\"),this.class]}}};Ne.render=function(t,e,n,o,i,r){return m(),g(\\\"span\\\",I({class:r.containerClass},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"default\\\")],16)};var We={name:\\\"InputText\\\",extends:{name:\\\"BaseInputText\\\",extends:zt,style:St.extend({name:\\\"inputtext\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-inputtext {\\\\n    font-family: inherit;\\\\n    font-feature-settings: inherit;\\\\n    font-size: 1rem;\\\\n    color: \\\".concat(e(\\\"inputtext.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"inputtext.background\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"inputtext.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"inputtext.padding.x\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"inputtext.border.color\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\", color \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\";\\\\n    appearance: none;\\\\n    border-radius: \\\").concat(e(\\\"inputtext.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    box-shadow: \\\").concat(e(\\\"inputtext.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext:enabled:hover {\\\\n    border-color: \\\").concat(e(\\\"inputtext.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext:enabled:focus {\\\\n    border-color: \\\").concat(e(\\\"inputtext.focus.border.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"inputtext.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"inputtext.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"inputtext.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"inputtext.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"inputtext.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-invalid {\\\\n    border-color: \\\").concat(e(\\\"inputtext.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-variant-filled {\\\\n    background: \\\").concat(e(\\\"inputtext.filled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-variant-filled:enabled:hover {\\\\n    background: \\\").concat(e(\\\"inputtext.filled.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-variant-filled:enabled:focus {\\\\n    background: \\\").concat(e(\\\"inputtext.filled.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext:disabled {\\\\n    opacity: 1;\\\\n    background: \\\").concat(e(\\\"inputtext.disabled.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"inputtext.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext::placeholder {\\\\n    color: \\\").concat(e(\\\"inputtext.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-invalid::placeholder {\\\\n    color: \\\").concat(e(\\\"inputtext.invalid.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext-sm {\\\\n    font-size: \\\").concat(e(\\\"inputtext.sm.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"inputtext.sm.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"inputtext.sm.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext-lg {\\\\n    font-size: \\\").concat(e(\\\"inputtext.lg.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"inputtext.lg.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"inputtext.lg.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext-fluid {\\\\n    width: 100%;\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-inputtext p-component\\\",{\\\"p-filled\\\":e.$filled,\\\"p-inputtext-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-inputtext-lg p-inputfield-lg\\\":\\\"large\\\"===n.size,\\\"p-invalid\\\":e.$invalid,\\\"p-variant-filled\\\":\\\"filled\\\"===e.$variant,\\\"p-inputtext-fluid\\\":e.$fluid}]}}}),provide:function(){return{$pcInputText:this,$parentInstance:this}}},inheritAttrs:!1,methods:{onInput:function(t){this.writeValue(t.target.value,t)}},computed:{attrs:function(){return I(this.ptmi(\\\"root\\\",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}}},qe=[\\\"value\\\",\\\"disabled\\\",\\\"aria-invalid\\\"];We.render=function(t,e,n,o,i,r){return m(),g(\\\"input\\\",I({type:\\\"text\\\",class:t.cx(\\\"root\\\"),value:t.d_value,disabled:t.disabled,\\\"aria-invalid\\\":t.$invalid||void 0,onInput:e[0]||(e[0]=function(){return r.onInput\\u0026\\u0026r.onInput.apply(r,arguments)})},r.attrs),null,16,qe)};var Xe=X(),Ye={name:\\\"Portal\\\",props:{appendTo:{type:[String,Object],default:\\\"body\\\"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=Y()},computed:{inline:function(){return this.disabled||\\\"self\\\"===this.appendTo}}};Ye.render=function(t,e,n,o,i,r){return r.inline?v(t.$slots,\\\"default\\\",{key:0}):i.mounted?(m(),S(T,{key:1,to:n.appendTo},[v(t.$slots,\\\"default\\\")],8,[\\\"to\\\"])):$(\\\"\\\",!0)};var Ze=St.extend({name:\\\"virtualscroller\\\",css:\\\"\\\\n.p-virtualscroller {\\\\n    position: relative;\\\\n    overflow: auto;\\\\n    contain: strict;\\\\n    transform: translateZ(0);\\\\n    will-change: scroll-position;\\\\n    outline: 0 none;\\\\n}\\\\n\\\\n.p-virtualscroller-content {\\\\n    position: absolute;\\\\n    top: 0;\\\\n    left: 0;\\\\n    min-height: 100%;\\\\n    min-width: 100%;\\\\n    will-change: transform;\\\\n}\\\\n\\\\n.p-virtualscroller-spacer {\\\\n    position: absolute;\\\\n    top: 0;\\\\n    left: 0;\\\\n    height: 1px;\\\\n    width: 1px;\\\\n    transform-origin: 0 0;\\\\n    pointer-events: none;\\\\n}\\\\n\\\\n.p-virtualscroller-loader {\\\\n    position: sticky;\\\\n    top: 0;\\\\n    left: 0;\\\\n    width: 100%;\\\\n    height: 100%;\\\\n}\\\\n\\\\n.p-virtualscroller-loader-mask {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n}\\\\n\\\\n.p-virtualscroller-horizontal \\u003e .p-virtualscroller-content {\\\\n    display: flex;\\\\n}\\\\n\\\\n.p-virtualscroller-inline .p-virtualscroller-content {\\\\n    position: static;\\\\n}\\\\n\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-virtualscroller-loader {\\\\n    background: \\\".concat(e(\\\"virtualscroller.loader.mask.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"virtualscroller.loader.mask.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-virtualscroller-loading-icon {\\\\n    font-size: \\\").concat(e(\\\"virtualscroller.loader.icon.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"virtualscroller.loader.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"virtualscroller.loader.icon.size\\\"),\\\";\\\\n}\\\\n\\\")}});function Je(t){return(Je=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\u0026\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function tn(t){for(var e=1;e\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach((function(e){en(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function en(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Je(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Je(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nn={name:\\\"VirtualScroller\\\",extends:{name:\\\"BaseVirtualScroller\\\",extends:Lt,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:\\\"vertical\\\"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Ze,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var t;Ze.loadCSS({nonce:null===(t=this.$primevueConfig)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})}},inheritAttrs:!1,emits:[\\\"update:numToleratedItems\\\",\\\"scroll\\\",\\\"scroll-index-change\\\",\\\"lazy-load\\\"],data:function(){var t=this.isBoth();return{first:t?{rows:0,cols:0}:0,last:t?{rows:0,cols:0}:0,page:t?{rows:0,cols:0}:0,numItemsInViewport:t?{rows:0,cols:0}:0,lastScrollPos:t?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(t){this.d_numToleratedItems=t},loading:function(t,e){this.lazy\\u0026\\u0026t!==e\\u0026\\u0026t!==this.d_loading\\u0026\\u0026(this.d_loading=t)},items:function(t,e){e\\u0026\\u0026e.length===(t||[]).length||(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized\\u0026\\u0026this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){Z(this.element)\\u0026\\u0026(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=R(this.element),this.defaultHeight=j(this.element),this.defaultContentWidth=R(this.content),this.defaultContentHeight=j(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return\\\"vertical\\\"===this.orientation},isHorizontal:function(){return\\\"horizontal\\\"===this.orientation},isBoth:function(){return\\\"both\\\"===this.orientation},scrollTo:function(t){this.element\\u0026\\u0026this.element.scrollTo(t)},scrollToIndex:function(t){var e=this,n=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:\\\"auto\\\",o=this.isBoth(),i=this.isHorizontal();if(o?t.every((function(t){return t\\u003e-1})):t\\u003e-1){var r=this.first,s=this.element,l=s.scrollTop,a=void 0===l?0:l,c=s.scrollLeft,u=void 0===c?0:c,d=this.calculateNumItems().numToleratedItems,p=this.getContentPosition(),h=this.itemSize,f=function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0;return t\\u003c=(arguments.length\\u003e1?arguments[1]:void 0)?0:t},b=function(t,e,n){return t*e+n},m=function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0,o=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:0;return e.scrollTo({left:t,top:o,behavior:n})},g=o?{rows:0,cols:0}:0,v=!1,y=!1;o?(m(b((g={rows:f(t[0],d[0]),cols:f(t[1],d[1])}).cols,h[1],p.left),b(g.rows,h[0],p.top)),y=this.lastScrollPos.top!==a||this.lastScrollPos.left!==u,v=g.rows!==r.rows||g.cols!==r.cols):(g=f(t,d),i?m(b(g,h,p.left),a):m(u,b(g,h,p.top)),y=this.lastScrollPos!==(i?u:a),v=g!==r),this.isRangeChanged=v,y\\u0026\\u0026(this.first=g)}},scrollInView:function(t,e){var n=this,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]?arguments[2]:\\\"auto\\\";if(e){var i=this.isBoth(),r=this.isHorizontal();if(i?t.every((function(t){return t\\u003e-1})):t\\u003e-1){var s=this.getRenderedRange(),l=s.first,a=s.viewport,c=function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0,e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:0;return n.scrollTo({left:t,top:e,behavior:o})},u=\\\"to-end\\\"===e;if(\\\"to-start\\\"===e){if(i)a.first.rows-l.rows\\u003et[0]?c(a.first.cols*this.itemSize[1],(a.first.rows-1)*this.itemSize[0]):a.first.cols-l.cols\\u003et[1]\\u0026\\u0026c((a.first.cols-1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.first-l\\u003et){var d=(a.first-1)*this.itemSize;r?c(d,0):c(0,d)}}else if(u)if(i)a.last.rows-l.rows\\u003c=t[0]+1?c(a.first.cols*this.itemSize[1],(a.first.rows+1)*this.itemSize[0]):a.last.cols-l.cols\\u003c=t[1]+1\\u0026\\u0026c((a.first.cols+1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.last-l\\u003c=t+1){var p=(a.first+1)*this.itemSize;r?c(p,0):c(0,p)}}}else this.scrollToIndex(t,o)},getRenderedRange:function(){var t=function(t,e){return Math.floor(t/(e||t))},e=this.first,n=0;if(this.element){var o=this.isBoth(),i=this.isHorizontal(),r=this.element,s=r.scrollTop,l=r.scrollLeft;if(o)n={rows:(e={rows:t(s,this.itemSize[0]),cols:t(l,this.itemSize[1])}).rows+this.numItemsInViewport.rows,cols:e.cols+this.numItemsInViewport.cols};else n=(e=t(i?l:s,this.itemSize))+this.numItemsInViewport}return{first:this.first,last:this.last,viewport:{first:e,last:n}}},calculateNumItems:function(){var t=this.isBoth(),e=this.isHorizontal(),n=this.itemSize,o=this.getContentPosition(),i=this.element?this.element.offsetWidth-o.left:0,r=this.element?this.element.offsetHeight-o.top:0,s=function(t,e){return Math.ceil(t/(e||t))},l=function(t){return Math.ceil(t/2)},a=t?{rows:s(r,n[0]),cols:s(i,n[1])}:s(e?i:r,n);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(t?[l(a.rows),l(a.cols)]:l(a))}},calculateOptions:function(){var t=this,e=this.isBoth(),n=this.first,o=this.calculateNumItems(),i=o.numItemsInViewport,r=o.numToleratedItems,s=function(e,n,o){var i=arguments.length\\u003e3\\u0026\\u0026void 0!==arguments[3]\\u0026\\u0026arguments[3];return t.getLast(e+n+(e\\u003co?2:3)*o,i)},l=e?{rows:s(n.rows,i.rows,r[0]),cols:s(n.cols,i.cols,r[1],!0)}:s(n,i,r);this.last=l,this.numItemsInViewport=i,this.d_numToleratedItems=r,this.$emit(\\\"update:numToleratedItems\\\",this.d_numToleratedItems),this.showLoader\\u0026\\u0026(this.loaderArr=e?Array.from({length:i.rows}).map((function(){return Array.from({length:i.cols})})):Array.from({length:i})),this.lazy\\u0026\\u0026Promise.resolve().then((function(){var o;t.lazyLoadState={first:t.step?e?{rows:0,cols:n.cols}:0:n,last:Math.min(t.step?t.step:l,(null===(o=t.items)||void 0===o?void 0:o.length)||0)},t.$emit(\\\"lazy-load\\\",t.lazyLoadState)}))},calculateAutoSize:function(){var t=this;this.autoSize\\u0026\\u0026!this.d_loading\\u0026\\u0026Promise.resolve().then((function(){if(t.content){var e=t.isBoth(),n=t.isHorizontal(),o=t.isVertical();t.content.style.minHeight=t.content.style.minWidth=\\\"auto\\\",t.content.style.position=\\\"relative\\\",t.element.style.contain=\\\"none\\\";var i=[R(t.element),j(t.element)],r=i[0],s=i[1];(e||n)\\u0026\\u0026(t.element.style.width=r\\u003ct.defaultWidth?r+\\\"px\\\":t.scrollWidth||t.defaultWidth+\\\"px\\\"),(e||o)\\u0026\\u0026(t.element.style.height=s\\u003ct.defaultHeight?s+\\\"px\\\":t.scrollHeight||t.defaultHeight+\\\"px\\\"),t.content.style.minHeight=t.content.style.minWidth=\\\"\\\",t.content.style.position=\\\"\\\",t.element.style.contain=\\\"\\\"}}))},getLast:function(){var t,e,n=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0,o=arguments.length\\u003e1?arguments[1]:void 0;return this.items?Math.min(o?(null===(t=this.columns||this.items[0])||void 0===t?void 0:t.length)||0:(null===(e=this.items)||void 0===e?void 0:e.length)||0,n):0},getContentPosition:function(){if(this.content){var t=getComputedStyle(this.content),e=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),n=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),o=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),i=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:e,right:n,top:o,bottom:i,x:e+n,y:o+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var t=this;if(this.element){var e=this.isBoth(),n=this.isHorizontal(),o=this.element.parentElement,i=this.scrollWidth||\\\"\\\".concat(this.element.offsetWidth||o.offsetWidth,\\\"px\\\"),r=this.scrollHeight||\\\"\\\".concat(this.element.offsetHeight||o.offsetHeight,\\\"px\\\"),s=function(e,n){return t.element.style[e]=n};e||n?(s(\\\"height\\\",r),s(\\\"width\\\",i)):s(\\\"height\\\",r)}},setSpacerSize:function(){var t=this,e=this.items;if(e){var n=this.isBoth(),o=this.isHorizontal(),i=this.getContentPosition(),r=function(e,n,o){var i=arguments.length\\u003e3\\u0026\\u0026void 0!==arguments[3]?arguments[3]:0;return t.spacerStyle=tn(tn({},t.spacerStyle),en({},\\\"\\\".concat(e),(n||[]).length*o+i+\\\"px\\\"))};n?(r(\\\"height\\\",e,this.itemSize[0],i.y),r(\\\"width\\\",this.columns||e[1],this.itemSize[1],i.x)):o?r(\\\"width\\\",this.columns||e,this.itemSize,i.x):r(\\\"height\\\",e,this.itemSize,i.y)}},setContentPosition:function(t){var e=this;if(this.content\\u0026\\u0026!this.appendOnly){var n=this.isBoth(),o=this.isHorizontal(),i=t?t.first:this.first,r=function(t,e){return t*e},s=function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0,n=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:0;return e.contentStyle=tn(tn({},e.contentStyle),{transform:\\\"translate3d(\\\".concat(t,\\\"px, \\\").concat(n,\\\"px, 0)\\\")})};if(n)s(r(i.cols,this.itemSize[1]),r(i.rows,this.itemSize[0]));else{var l=r(i,this.itemSize);o?s(l,0):s(0,l)}}},onScrollPositionChange:function(t){var e=this,n=t.target,o=this.isBoth(),i=this.isHorizontal(),r=this.getContentPosition(),s=function(t,e){return t?t\\u003ee?t-e:t:0},l=function(t,e){return Math.floor(t/(e||t))},a=function(t,e,n,o,i,r){return t\\u003c=i?i:r?n-o-i:e+i-1},c=function(t,e,n,o,i,r,s){return t\\u003c=r?0:Math.max(0,s?t\\u003ce?n:t-r:t\\u003ee?n:t-2*r)},u=function(t,n,o,i,r,s){var l=n+i+2*r;return t\\u003e=r\\u0026\\u0026(l+=r+1),e.getLast(l,s)},d=s(n.scrollTop,r.top),p=s(n.scrollLeft,r.left),h=o?{rows:0,cols:0}:0,f=this.last,b=!1,m=this.lastScrollPos;if(o){var g=this.lastScrollPos.top\\u003c=d,v=this.lastScrollPos.left\\u003c=p;if(!this.appendOnly||this.appendOnly\\u0026\\u0026(g||v)){var y={rows:l(d,this.itemSize[0]),cols:l(p,this.itemSize[1])},x={rows:a(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:a(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)};h={rows:c(y.rows,x.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:c(y.cols,x.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)},f={rows:u(y.rows,h.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:u(y.cols,h.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=h.rows!==this.first.rows||f.rows!==this.last.rows||h.cols!==this.first.cols||f.cols!==this.last.cols||this.isRangeChanged,m={top:d,left:p}}}else{var I=i?p:d,k=this.lastScrollPos\\u003c=I;if(!this.appendOnly||this.appendOnly\\u0026\\u0026k){var w=l(I,this.itemSize);f=u(w,h=c(w,a(w,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),this.last,this.numItemsInViewport,this.d_numToleratedItems),b=h!==this.first||f!==this.last||this.isRangeChanged,m=I}}return{first:h,last:f,isRangeChanged:b,scrollPos:m}},onScrollChange:function(t){var e=this.onScrollPositionChange(t),n=e.first,o=e.last,i=e.isRangeChanged,r=e.scrollPos;if(i){var s={first:n,last:o};if(this.setContentPosition(s),this.first=n,this.last=o,this.lastScrollPos=r,this.$emit(\\\"scroll-index-change\\\",s),this.lazy\\u0026\\u0026this.isPageChanged(n)){var l,a,c={first:this.step?Math.min(this.getPageByFirst(n)*this.step,((null===(l=this.items)||void 0===l?void 0:l.length)||0)-this.step):n,last:Math.min(this.step?(this.getPageByFirst(n)+1)*this.step:o,(null===(a=this.items)||void 0===a?void 0:a.length)||0)};(this.lazyLoadState.first!==c.first||this.lazyLoadState.last!==c.last)\\u0026\\u0026this.$emit(\\\"lazy-load\\\",c),this.lazyLoadState=c}}},onScroll:function(t){var e=this;if(this.$emit(\\\"scroll\\\",t),this.delay){if(this.scrollTimeout\\u0026\\u0026clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading\\u0026\\u0026this.showLoader)(this.onScrollPositionChange(t).isRangeChanged||!!this.step\\u0026\\u0026this.isPageChanged())\\u0026\\u0026(this.d_loading=!0);this.scrollTimeout=setTimeout((function(){e.onScrollChange(t),!e.d_loading||!e.showLoader||e.lazy\\u0026\\u0026void 0!==e.loading||(e.d_loading=!1,e.page=e.getPageByFirst())}),this.delay)}}else this.onScrollChange(t)},onResize:function(){var t=this;this.resizeTimeout\\u0026\\u0026clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){if(Z(t.element)){var e=t.isBoth(),n=t.isVertical(),o=t.isHorizontal(),i=[R(t.element),j(t.element)],r=i[0],s=i[1],l=r!==t.defaultWidth,a=s!==t.defaultHeight;(e?l||a:o?l:!!n\\u0026\\u0026a)\\u0026\\u0026(t.d_numToleratedItems=t.numToleratedItems,t.defaultWidth=r,t.defaultHeight=s,t.defaultContentWidth=R(t.content),t.defaultContentHeight=j(t.content),t.init())}}),this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener(\\\"resize\\\",this.resizeListener),window.addEventListener(\\\"orientationchange\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\u0026\\u0026(window.removeEventListener(\\\"resize\\\",this.resizeListener),window.removeEventListener(\\\"orientationchange\\\",this.resizeListener),this.resizeListener=null)},getOptions:function(t){var e=(this.items||[]).length,n=this.isBoth()?this.first.rows+t:this.first+t;return{index:n,count:e,first:0===n,last:n===e-1,even:n%2==0,odd:n%2!=0}},getLoaderOptions:function(t,e){var n=this.loaderArr.length;return tn({index:t,count:n,first:0===t,last:t===n-1,even:t%2==0,odd:t%2!=0},e)},getPageByFirst:function(t){return Math.floor(((null!=t?t:this.first)+4*this.d_numToleratedItems)/(this.step||1))},isPageChanged:function(t){return!(this.step\\u0026\\u0026!this.lazy)||this.page!==this.getPageByFirst(null!=t?t:this.first)},setContentEl:function(t){this.content=t||this.content||J(this.element,'[data-pc-section=\\\"content\\\"]')},elementRef:function(t){this.element=t},contentRef:function(t){this.content=t}},computed:{containerClass:function(){return[\\\"p-virtualscroller\\\",this.class,{\\\"p-virtualscroller-inline\\\":this.inline,\\\"p-virtualscroller-both p-both-scroll\\\":this.isBoth(),\\\"p-virtualscroller-horizontal p-horizontal-scroll\\\":this.isHorizontal()}]},contentClass:function(){return[\\\"p-virtualscroller-content\\\",{\\\"p-virtualscroller-loading\\\":this.d_loading}]},loaderClass:function(){return[\\\"p-virtualscroller-loader\\\",{\\\"p-virtualscroller-loader-mask\\\":!this.$slots.loader}]},loadedItems:function(){var t=this;return this.items\\u0026\\u0026!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map((function(e){return t.columns?e:e.slice(t.appendOnly?0:t.first.cols,t.last.cols)})):this.isHorizontal()\\u0026\\u0026this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var t=this.isBoth(),e=this.isHorizontal();if(t||e)return this.d_loading\\u0026\\u0026this.loaderDisabled?t?this.loaderArr[0]:this.loaderArr:this.columns.slice(t?this.first.cols:this.first,t?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:Ct}},on=[\\\"tabindex\\\"];nn.render=function(t,e,n,o,i,r){var s=k(\\\"SpinnerIcon\\\");return t.disabled?(m(),g(_,{key:1},[v(t.$slots,\\\"default\\\"),v(t.$slots,\\\"content\\\",{items:t.items,rows:t.items,columns:r.loadedColumns})],64)):(m(),g(\\\"div\\\",I({key:0,ref:r.elementRef,class:r.containerClass,tabindex:t.tabindex,style:t.style,onScroll:e[0]||(e[0]=function(){return r.onScroll\\u0026\\u0026r.onScroll.apply(r,arguments)})},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"content\\\",{styleClass:r.contentClass,items:r.loadedItems,getItemOptions:r.getOptions,loading:i.d_loading,getLoaderOptions:r.getLoaderOptions,itemSize:t.itemSize,rows:r.loadedRows,columns:r.loadedColumns,contentRef:r.contentRef,spacerStyle:i.spacerStyle,contentStyle:i.contentStyle,vertical:r.isVertical(),horizontal:r.isHorizontal(),both:r.isBoth()},(function(){return[C(\\\"div\\\",I({ref:r.contentRef,class:r.contentClass,style:i.contentStyle},t.ptm(\\\"content\\\")),[(m(!0),g(_,null,M(r.loadedItems,(function(e,n){return v(t.$slots,\\\"item\\\",{key:n,item:e,options:r.getOptions(n)})})),128))],16)]})),t.showSpacer?(m(),g(\\\"div\\\",I({key:0,class:\\\"p-virtualscroller-spacer\\\",style:i.spacerStyle},t.ptm(\\\"spacer\\\")),null,16)):$(\\\"\\\",!0),!t.loaderDisabled\\u0026\\u0026t.showLoader\\u0026\\u0026i.d_loading?(m(),g(\\\"div\\\",I({key:1,class:r.loaderClass},t.ptm(\\\"loader\\\")),[t.$slots\\u0026\\u0026t.$slots.loader?(m(!0),g(_,{key:0},M(i.loaderArr,(function(e,n){return v(t.$slots,\\\"loader\\\",{key:n,options:r.getLoaderOptions(n,r.isBoth()\\u0026\\u0026{numCols:t.d_numItemsInViewport.cols})})})),128)):$(\\\"\\\",!0),v(t.$slots,\\\"loadingicon\\\",{},(function(){return[V(s,I({spin:\\\"\\\",class:\\\"p-virtualscroller-loading-icon\\\"},t.ptm(\\\"loadingIcon\\\")),null,16)]}))],16)):$(\\\"\\\",!0)],16,on))};var rn=St.extend({name:\\\"select\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-select {\\\\n    display: inline-flex;\\\\n    cursor: pointer;\\\\n    position: relative;\\\\n    user-select: none;\\\\n    background: \\\".concat(e(\\\"select.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"select.border.color\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"select.transition.duration\\\"),\\\", color \\\").concat(e(\\\"select.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"select.transition.duration\\\"),\\\",\\\\n        outline-color \\\").concat(e(\\\"select.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"select.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"select.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    box-shadow: \\\").concat(e(\\\"select.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-select:not(.p-disabled):hover {\\\\n    border-color: \\\").concat(e(\\\"select.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select:not(.p-disabled).p-focus {\\\\n    border-color: \\\").concat(e(\\\"select.focus.border.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"select.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"select.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"select.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"select.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"select.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-variant-filled {\\\\n    background: \\\").concat(e(\\\"select.filled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-variant-filled:not(.p-disabled):hover {\\\\n    background: \\\").concat(e(\\\"select.filled.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-variant-filled:not(.p-disabled).p-focus {\\\\n    background: \\\").concat(e(\\\"select.filled.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-invalid {\\\\n    border-color: \\\").concat(e(\\\"select.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-disabled {\\\\n    opacity: 1;\\\\n    background: \\\").concat(e(\\\"select.disabled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-clear-icon {\\\\n    position: absolute;\\\\n    top: 50%;\\\\n    margin-top: -0.5rem;\\\\n    color: \\\").concat(e(\\\"select.clear.icon.color\\\"),\\\";\\\\n    inset-inline-end: \\\").concat(e(\\\"select.dropdown.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-dropdown {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    flex-shrink: 0;\\\\n    background: transparent;\\\\n    color: \\\").concat(e(\\\"select.dropdown.color\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"select.dropdown.width\\\"),\\\";\\\\n    border-start-end-radius: \\\").concat(e(\\\"select.border.radius\\\"),\\\";\\\\n    border-end-end-radius: \\\").concat(e(\\\"select.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-label {\\\\n    display: block;\\\\n    white-space: nowrap;\\\\n    overflow: hidden;\\\\n    flex: 1 1 auto;\\\\n    width: 1%;\\\\n    padding: \\\").concat(e(\\\"select.padding.y\\\"),\\\" \\\").concat(e(\\\"select.padding.x\\\"),\\\";\\\\n    text-overflow: ellipsis;\\\\n    cursor: pointer;\\\\n    color: \\\").concat(e(\\\"select.color\\\"),\\\";\\\\n    background: transparent;\\\\n    border: 0 none;\\\\n    outline: 0 none;\\\\n}\\\\n\\\\n.p-select-label.p-placeholder {\\\\n    color: \\\").concat(e(\\\"select.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-invalid .p-select-label.p-placeholder {\\\\n    color: \\\").concat(e(\\\"select.invalid.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select:has(.p-select-clear-icon) .p-select-label {\\\\n    padding-inline-end: calc(1rem + \\\").concat(e(\\\"select.padding.x\\\"),\\\");\\\\n}\\\\n\\\\n.p-select.p-disabled .p-select-label {\\\\n    color: \\\").concat(e(\\\"select.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-label-empty {\\\\n    overflow: hidden;\\\\n    opacity: 0;\\\\n}\\\\n\\\\ninput.p-select-label {\\\\n    cursor: default;\\\\n}\\\\n\\\\n.p-select .p-select-overlay {\\\\n    min-width: 100%;\\\\n}\\\\n\\\\n.p-select-overlay {\\\\n    position: absolute;\\\\n    top: 0;\\\\n    left: 0;\\\\n    background: \\\").concat(e(\\\"select.overlay.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.overlay.color\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"select.overlay.border.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"select.overlay.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"select.overlay.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-header {\\\\n    padding: \\\").concat(e(\\\"select.list.header.padding\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-filter {\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-select-list-container {\\\\n    overflow: auto;\\\\n}\\\\n\\\\n.p-select-option-group {\\\\n    cursor: auto;\\\\n    margin: 0;\\\\n    padding: \\\").concat(e(\\\"select.option.group.padding\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"select.option.group.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.option.group.color\\\"),\\\";\\\\n    font-weight: \\\").concat(e(\\\"select.option.group.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-list {\\\\n    margin: 0;\\\\n    padding: 0;\\\\n    list-style-type: none;\\\\n    padding: \\\").concat(e(\\\"select.list.padding\\\"),\\\";\\\\n    gap: \\\").concat(e(\\\"select.list.gap\\\"),\\\";\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n}\\\\n\\\\n.p-select-option {\\\\n    cursor: pointer;\\\\n    font-weight: normal;\\\\n    white-space: nowrap;\\\\n    position: relative;\\\\n    overflow: hidden;\\\\n    display: flex;\\\\n    align-items: center;\\\\n    padding: \\\").concat(e(\\\"select.option.padding\\\"),\\\";\\\\n    border: 0 none;\\\\n    color: \\\").concat(e(\\\"select.option.color\\\"),\\\";\\\\n    background: transparent;\\\\n    transition: background \\\").concat(e(\\\"select.transition.duration\\\"),\\\", color \\\").concat(e(\\\"select.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"select.transition.duration\\\"),\\\",\\\\n            box-shadow \\\").concat(e(\\\"select.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"select.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"select.option.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\\\\n    background: \\\").concat(e(\\\"select.option.focus.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.option.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-option.p-select-option-selected {\\\\n    background: \\\").concat(e(\\\"select.option.selected.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.option.selected.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-option.p-select-option-selected.p-focus {\\\\n    background: \\\").concat(e(\\\"select.option.selected.focus.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.option.selected.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-option-check-icon {\\\\n    position: relative;\\\\n    margin-inline-start: \\\").concat(e(\\\"select.checkmark.gutter.start\\\"),\\\";\\\\n    margin-inline-end: \\\").concat(e(\\\"select.checkmark.gutter.end\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.checkmark.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-empty-message {\\\\n    padding: \\\").concat(e(\\\"select.empty.message.padding\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-fluid {\\\\n    display: flex;\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-select-sm .p-select-label {\\\\n    font-size: \\\").concat(e(\\\"select.sm.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"select.sm.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"select.sm.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-sm .p-select-dropdown .p-icon {\\\\n    font-size: \\\").concat(e(\\\"select.sm.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"select.sm.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"select.sm.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-lg .p-select-label {\\\\n    font-size: \\\").concat(e(\\\"select.lg.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"select.lg.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"select.lg.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-lg .p-select-dropdown .p-icon {\\\\n    font-size: \\\").concat(e(\\\"select.lg.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"select.lg.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"select.lg.font.size\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props,o=t.state;return[\\\"p-select p-component p-inputwrapper\\\",{\\\"p-disabled\\\":n.disabled,\\\"p-invalid\\\":e.$invalid,\\\"p-variant-filled\\\":\\\"filled\\\"===e.$variant,\\\"p-focus\\\":o.focused,\\\"p-inputwrapper-filled\\\":e.$filled,\\\"p-inputwrapper-focus\\\":o.focused||o.overlayVisible,\\\"p-select-open\\\":o.overlayVisible,\\\"p-select-fluid\\\":e.$fluid,\\\"p-select-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-select-lg p-inputfield-lg\\\":\\\"large\\\"===n.size}]},label:function(t){var e=t.instance,n=t.props;return[\\\"p-select-label\\\",{\\\"p-placeholder\\\":!n.editable\\u0026\\u0026e.label===n.placeholder,\\\"p-select-label-empty\\\":!(n.editable||e.$slots.value||\\\"p-emptylabel\\\"!==e.label\\u0026\\u00260!==e.label.length)}]},clearIcon:\\\"p-select-clear-icon\\\",dropdown:\\\"p-select-dropdown\\\",loadingicon:\\\"p-select-loading-icon\\\",dropdownIcon:\\\"p-select-dropdown-icon\\\",overlay:\\\"p-select-overlay p-component\\\",header:\\\"p-select-header\\\",pcFilter:\\\"p-select-filter\\\",listContainer:\\\"p-select-list-container\\\",list:\\\"p-select-list\\\",optionGroup:\\\"p-select-option-group\\\",optionGroupLabel:\\\"p-select-option-group-label\\\",option:function(t){var e=t.instance,n=t.props,o=t.state,i=t.option,r=t.focusedOption;return[\\\"p-select-option\\\",{\\\"p-select-option-selected\\\":e.isSelected(i)\\u0026\\u0026n.highlightOnSelect,\\\"p-focus\\\":o.focusedOptionIndex===r,\\\"p-disabled\\\":e.isOptionDisabled(i)}]},optionLabel:\\\"p-select-option-label\\\",optionCheckIcon:\\\"p-select-option-check-icon\\\",optionBlankIcon:\\\"p-select-option-blank-icon\\\",emptyMessage:\\\"p-select-empty-message\\\"}});function sn(t){return(sn=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function ln(t){return function(t){if(Array.isArray(t))return an(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return an(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?an(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function an(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\u0026\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function un(t){for(var e=1;e\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(n),!0).forEach((function(e){dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=sn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=sn(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==sn(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pn={name:\\\"Select\\\",extends:{name:\\\"BaseSelect\\\",extends:zt,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:\\\"14rem\\\"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:\\\"contains\\\"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:\\\"body\\\"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:rn,provide:function(){return{$pcSelect:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\",\\\"focus\\\",\\\"blur\\\",\\\"before-show\\\",\\\"before-hide\\\",\\\"show\\\",\\\"hide\\\",\\\"filter\\\"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{\\\"$attrs.id\\\":function(t){this.id=t||Et()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Et(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible\\u0026\\u0026this.isModelValueChanged\\u0026\\u0026this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler\\u0026\\u0026(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay\\u0026\\u0026(Q.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,e){return this.virtualScrollerDisabled?t:e\\u0026\\u0026e(t).index},getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t,e){return(this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t))+\\\"_\\\"+e},getPTItemOptions:function(t,e,n,o){return this.ptm(o,{context:{option:t,index:n,selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(n,e),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return!!this.optionDisabled\\u0026\\u0026tt(t,this.optionDisabled)},isOptionGroup:function(t){return this.optionGroupLabel\\u0026\\u0026t.optionGroup\\u0026\\u0026t.group},getOptionGroupLabel:function(t){return tt(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return tt(t,this.optionGroupChildren)},getAriaPosInset:function(t){var e=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter((function(t){return e.isOptionGroup(t)})).length:t)+1},show:function(t){this.$emit(\\\"before-show\\\"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),t\\u0026\\u0026et(this.$refs.focusInput)},hide:function(t){var e=this;setTimeout((function(){e.$emit(\\\"before-hide\\\"),e.overlayVisible=!1,e.clicked=!1,e.focusedOptionIndex=-1,e.searchValue=\\\"\\\",e.resetFilterOnHide\\u0026\\u0026(e.filterValue=null),t\\u0026\\u0026et(e.$refs.focusInput)}),0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible\\u0026\\u0026(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit(\\\"focus\\\",t))},onBlur:function(t){var e,n;this.focused=!1,this.focusedOptionIndex=-1,this.searchValue=\\\"\\\",this.$emit(\\\"blur\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)},onKeyDown:function(t){if(this.disabled||nt())t.preventDefault();else{var e=t.metaKey||t.ctrlKey;switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t,this.editable);break;case\\\"ArrowLeft\\\":case\\\"ArrowRight\\\":this.onArrowLeftKey(t,this.editable);break;case\\\"Home\\\":this.onHomeKey(t,this.editable);break;case\\\"End\\\":this.onEndKey(t,this.editable);break;case\\\"PageDown\\\":this.onPageDownKey(t);break;case\\\"PageUp\\\":this.onPageUpKey(t);break;case\\\"Space\\\":this.onSpaceKey(t,this.editable);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t);break;case\\\"Backspace\\\":this.onBackspaceKey(t,this.editable);break;case\\\"ShiftLeft\\\":case\\\"ShiftRight\\\":break;default:!e\\u0026\\u0026ot(t.key)\\u0026\\u0026(!this.overlayVisible\\u0026\\u0026this.show(),!this.editable\\u0026\\u0026this.searchOptions(t,t.key))}this.clicked=!1}},onEditableInput:function(t){var e=t.target.value;this.searchValue=\\\"\\\",!this.searchOptions(t,e)\\u0026\\u0026(this.focusedOptionIndex=-1),this.updateModel(t,e),!this.overlayVisible\\u0026\\u0026K(e)\\u0026\\u0026this.show()},onContainerClick:function(t){this.disabled||this.loading||\\\"INPUT\\\"===t.target.tagName||\\\"clearicon\\\"===t.target.getAttribute(\\\"data-pc-section\\\")||t.target.closest('[data-pc-section=\\\"clearicon\\\"]')||(this.overlay\\u0026\\u0026this.overlay.contains(t.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear\\u0026\\u0026(this.filterValue=null)},onFirstHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?it(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])'):this.$refs.focusInput;et(e)},onLastHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?rt(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])'):this.$refs.focusInput;et(e)},onOptionSelect:function(t,e){var n=!(arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2])||arguments[2],o=this.getOptionValue(e);this.updateModel(t,o),n\\u0026\\u0026this.hide(!0)},onOptionMouseMove:function(t,e){this.focusOnHover\\u0026\\u0026this.changeFocusedOptionIndex(t,e)},onFilterChange:function(t){var e=t.target.value;this.filterValue=e,this.focusedOptionIndex=-1,this.$emit(\\\"filter\\\",{originalEvent:t,value:e}),!this.virtualScrollerDisabled\\u0026\\u0026this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){if(!t.isComposing)switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t,!0);break;case\\\"ArrowLeft\\\":case\\\"ArrowRight\\\":this.onArrowLeftKey(t,!0);break;case\\\"Home\\\":this.onHomeKey(t,!0);break;case\\\"End\\\":this.onEndKey(t,!0);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible\\u0026\\u0026this.alignOverlay()},onOverlayClick:function(t){Xe.emit(\\\"overlay-click\\\",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){if(\\\"Escape\\\"===t.code)this.onEscapeKey(t)},onArrowDownKey:function(t){if(this.overlayVisible){var e=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(t,e)}else this.show(),this.editable\\u0026\\u0026this.changeFocusedOptionIndex(t,this.findSelectedOptionIndex());t.preventDefault()},onArrowUpKey:function(t){var e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1];if(t.altKey\\u0026\\u0026!e)-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\u0026\\u0026this.hide(),t.preventDefault();else{var n=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(t,n),!this.overlayVisible\\u0026\\u0026this.show(),t.preventDefault()}},onArrowLeftKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]\\u0026\\u0026(this.focusedOptionIndex=-1)},onHomeKey:function(t){if(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]){var e=t.currentTarget;t.shiftKey?e.setSelectionRange(0,t.target.selectionStart):(e.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(t,this.findFirstOptionIndex()),!this.overlayVisible\\u0026\\u0026this.show();t.preventDefault()},onEndKey:function(t){if(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]){var e=t.currentTarget;if(t.shiftKey)e.setSelectionRange(t.target.selectionStart,e.value.length);else{var n=e.value.length;e.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(t,this.findLastOptionIndex()),!this.overlayVisible\\u0026\\u0026this.show();t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?(-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onSpaceKey:function(t){!(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1])\\u0026\\u0026this.onEnterKey(t)},onEscapeKey:function(t){this.overlayVisible\\u0026\\u0026this.hide(!0),t.preventDefault(),t.stopPropagation()},onTabKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]||(this.overlayVisible\\u0026\\u0026this.hasFocusableElements()?(et(this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\u0026\\u0026this.hide(this.filter)))},onBackspaceKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]\\u0026\\u0026!this.overlayVisible\\u0026\\u0026this.show()},onOverlayEnter:function(t){var e=this;Q.set(\\\"overlay\\\",t,this.$primevue.config.zIndex.overlay),st(t,{position:\\\"absolute\\\",top:\\\"0\\\",left:\\\"0\\\"}),this.alignOverlay(),this.scrollInView(),setTimeout((function(){e.autoFilterFocus\\u0026\\u0026e.filter\\u0026\\u0026et(e.$refs.filterInput.$el)}),1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(\\\"show\\\")},onOverlayLeave:function(){var t=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus\\u0026\\u0026this.filter\\u0026\\u0026!this.editable\\u0026\\u0026this.$nextTick((function(){et(t.$refs.filterInput.$el)})),this.$emit(\\\"hide\\\"),this.overlay=null},onOverlayAfterLeave:function(t){Q.clear(t)},alignOverlay:function(){\\\"self\\\"===this.appendTo?lt(this.overlay,this.$el):(this.overlay.style.minWidth=G(this.$el)+\\\"px\\\",at(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){t.overlayVisible\\u0026\\u0026t.overlay\\u0026\\u0026!t.$el.contains(e.target)\\u0026\\u0026!t.overlay.contains(e.target)\\u0026\\u0026t.hide()},document.addEventListener(\\\"click\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\u0026\\u0026(document.removeEventListener(\\\"click\\\",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Tt(this.$refs.container,(function(){t.overlayVisible\\u0026\\u0026t.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler\\u0026\\u0026this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible\\u0026\\u0026!ct()\\u0026\\u0026t.hide()},window.addEventListener(\\\"resize\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\u0026\\u0026(window.removeEventListener(\\\"resize\\\",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var t=this;if(!this.editable\\u0026\\u0026!this.labelClickListener){var e=document.querySelector('label[for=\\\"'.concat(this.labelId,'\\\"]'));e\\u0026\\u0026Z(e)\\u0026\\u0026(this.labelClickListener=function(){et(t.$refs.focusInput)},e.addEventListener(\\\"click\\\",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var t=document.querySelector('label[for=\\\"'.concat(this.labelId,'\\\"]'));t\\u0026\\u0026Z(t)\\u0026\\u0026t.removeEventListener(\\\"click\\\",this.labelClickListener)}},hasFocusableElements:function(){return ut(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])').length\\u003e0},isOptionMatched:function(t){var e;return this.isValidOption(t)\\u0026\\u0026\\\"string\\\"==typeof this.getOptionLabel(t)\\u0026\\u0026(null===(e=this.getOptionLabel(t))||void 0===e?void 0:e.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return K(t)\\u0026\\u0026!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)\\u0026\\u0026this.isSelected(t)},isSelected:function(t){return dt(this.d_value,this.getOptionValue(t),this.equalityKey)},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex((function(e){return t.isValidOption(e)}))},findLastOptionIndex:function(){var t=this;return pt(this.visibleOptions,(function(e){return t.isValidOption(e)}))},findNextOptionIndex:function(t){var e=this,n=t\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidOption(t)})):-1;return n\\u003e-1?n+t+1:t},findPrevOptionIndex:function(t){var e=this,n=t\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidOption(t)})):-1;return n\\u003e-1?n:t},findSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex((function(e){return t.isValidSelectedOption(e)})):-1},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\u003c0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\u003c0?this.findLastOptionIndex():t},searchOptions:function(t,e){var n=this;this.searchValue=(this.searchValue||\\\"\\\")+e;var o=-1,i=!1;return K(this.searchValue)\\u0026\\u0026(-1!==(o=-1!==this.focusedOptionIndex?-1===(o=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(t){return n.isOptionMatched(t)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(t){return n.isOptionMatched(t)})):o+this.focusedOptionIndex:this.visibleOptions.findIndex((function(t){return n.isOptionMatched(t)})))\\u0026\\u0026(i=!0),-1===o\\u0026\\u0026-1===this.focusedOptionIndex\\u0026\\u0026(o=this.findFirstFocusedOptionIndex()),-1!==o\\u0026\\u0026this.changeFocusedOptionIndex(t,o)),this.searchTimeout\\u0026\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){n.searchValue=\\\"\\\",n.searchTimeout=null}),500),i},changeFocusedOptionIndex:function(t,e){this.focusedOptionIndex!==e\\u0026\\u0026(this.focusedOptionIndex=e,this.scrollInView(),this.selectOnFocus\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[e],!1))},scrollInView:function(){var t=this,e=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var n=-1!==e?\\\"\\\".concat(t.id,\\\"_\\\").concat(e):t.focusedOptionId,o=J(t.list,'li[id=\\\"'.concat(n,'\\\"]'));o?o.scrollIntoView\\u0026\\u0026o.scrollIntoView({block:\\\"nearest\\\",inline:\\\"start\\\"}):t.virtualScrollerDisabled||t.virtualScroller\\u0026\\u0026t.virtualScroller.scrollToIndex(-1!==e?e:t.focusedOptionIndex)}))},autoUpdateModel:function(){this.selectOnFocus\\u0026\\u0026this.autoOptionFocus\\u0026\\u0026!this.$filled\\u0026\\u0026(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(t,e){this.writeValue(e,t),this.$emit(\\\"change\\\",{originalEvent:t,value:e})},flatOptions:function(t){var e=this;return(t||[]).reduce((function(t,n,o){t.push({optionGroup:n,group:!0,index:o});var i=e.getOptionGroupChildren(n);return i\\u0026\\u0026i.forEach((function(e){return t.push(e)})),t}),[])},overlayRef:function(t){this.overlay=t},listRef:function(t,e){this.list=t,e\\u0026\\u0026e(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=_t.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach((function(e){var o=t.getOptionGroupChildren(e).filter((function(t){return n.includes(t)}));o.length\\u003e0\\u0026\\u0026i.push(un(un({},e),{},dn({},\\\"string\\\"==typeof t.optionGroupChildren?t.optionGroupChildren:\\\"items\\\",ln(o))))})),this.flatOptions(i)}return n}return e},hasSelectedOption:function(){return this.$filled},label:function(){var t=this.findSelectedOptionIndex();return-1!==t?this.getOptionLabel(this.visibleOptions[t]):this.placeholder||\\\"p-emptylabel\\\"},editableInputValue:function(){var t=this.findSelectedOptionIndex();return-1!==t?this.getOptionLabel(this.visibleOptions[t]):this.d_value||\\\"\\\"},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return K(this.visibleOptions)?this.filterMessageText.replaceAll(\\\"{0}\\\",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||\\\"\\\"},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||\\\"\\\"},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||\\\"\\\"},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||\\\"\\\"},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||\\\"\\\"},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(\\\"{0}\\\",\\\"1\\\"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?\\\"\\\".concat(this.id,\\\"_\\\").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter((function(e){return!t.isOptionGroup(e)})).length},isClearIconVisible:function(){return this.showClear\\u0026\\u0026null!=this.d_value\\u0026\\u0026K(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:De},components:{InputText:We,VirtualScroller:nn,Portal:Ye,InputIcon:Ne,IconField:Ue,TimesIcon:Mt,ChevronDownIcon:Vt,SpinnerIcon:Ct,SearchIcon:Pt,CheckIcon:Ft,BlankIcon:At}},hn=[\\\"id\\\"],fn=[\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"tabindex\\\",\\\"disabled\\\",\\\"aria-label\\\",\\\"aria-labelledby\\\",\\\"aria-expanded\\\",\\\"aria-controls\\\",\\\"aria-activedescendant\\\",\\\"aria-invalid\\\"],bn=[\\\"id\\\",\\\"tabindex\\\",\\\"aria-label\\\",\\\"aria-labelledby\\\",\\\"aria-expanded\\\",\\\"aria-controls\\\",\\\"aria-activedescendant\\\",\\\"aria-disabled\\\"],mn=[\\\"id\\\"],gn=[\\\"id\\\"],vn=[\\\"id\\\",\\\"aria-label\\\",\\\"aria-selected\\\",\\\"aria-disabled\\\",\\\"aria-setsize\\\",\\\"aria-posinset\\\",\\\"onClick\\\",\\\"onMousemove\\\",\\\"data-p-selected\\\",\\\"data-p-focused\\\",\\\"data-p-disabled\\\"];pn.render=function(t,e,n,o,i,r){var s=k(\\\"SpinnerIcon\\\"),l=k(\\\"InputText\\\"),a=k(\\\"SearchIcon\\\"),c=k(\\\"InputIcon\\\"),u=k(\\\"IconField\\\"),d=k(\\\"CheckIcon\\\"),p=k(\\\"BlankIcon\\\"),h=k(\\\"VirtualScroller\\\"),f=k(\\\"Portal\\\"),b=w(\\\"ripple\\\");return m(),g(\\\"div\\\",I({ref:\\\"container\\\",id:i.id,class:t.cx(\\\"root\\\"),onClick:e[11]||(e[11]=function(){return r.onContainerClick\\u0026\\u0026r.onContainerClick.apply(r,arguments)})},t.ptmi(\\\"root\\\")),[t.editable?(m(),g(\\\"input\\\",I({key:0,ref:\\\"focusInput\\\",id:t.labelId||t.inputId,type:\\\"text\\\",class:[t.cx(\\\"label\\\"),t.inputClass,t.labelClass],style:[t.inputStyle,t.labelStyle],value:r.editableInputValue,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,disabled:t.disabled,autocomplete:\\\"off\\\",role:\\\"combobox\\\",\\\"aria-label\\\":t.ariaLabel,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-haspopup\\\":\\\"listbox\\\",\\\"aria-expanded\\\":i.overlayVisible,\\\"aria-controls\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":i.focused?r.focusedOptionId:void 0,\\\"aria-invalid\\\":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\u0026\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onKeyDown\\u0026\\u0026r.onKeyDown.apply(r,arguments)}),onInput:e[3]||(e[3]=function(){return r.onEditableInput\\u0026\\u0026r.onEditableInput.apply(r,arguments)})},t.ptm(\\\"label\\\")),null,16,fn)):(m(),g(\\\"span\\\",I({key:1,ref:\\\"focusInput\\\",id:t.labelId||t.inputId,class:[t.cx(\\\"label\\\"),t.inputClass,t.labelClass],style:[t.inputStyle,t.labelStyle],tabindex:t.disabled?-1:t.tabindex,role:\\\"combobox\\\",\\\"aria-label\\\":t.ariaLabel||(\\\"p-emptylabel\\\"===r.label?void 0:r.label),\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-haspopup\\\":\\\"listbox\\\",\\\"aria-expanded\\\":i.overlayVisible,\\\"aria-controls\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":i.focused?r.focusedOptionId:void 0,\\\"aria-disabled\\\":t.disabled,onFocus:e[4]||(e[4]=function(){return r.onFocus\\u0026\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[5]||(e[5]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[6]||(e[6]=function(){return r.onKeyDown\\u0026\\u0026r.onKeyDown.apply(r,arguments)})},t.ptm(\\\"label\\\")),[v(t.$slots,\\\"value\\\",{value:t.d_value,placeholder:t.placeholder},(function(){var t;return[y(x(\\\"p-emptylabel\\\"===r.label?\\\" \\\":null!==(t=r.label)\\u0026\\u0026void 0!==t?t:\\\"empty\\\"),1)]}))],16,bn)),r.isClearIconVisible?v(t.$slots,\\\"clearicon\\\",{key:2,class:z(t.cx(\\\"clearIcon\\\")),clearCallback:r.onClearClick},(function(){return[(m(),S(E(t.clearIcon?\\\"i\\\":\\\"TimesIcon\\\"),I({ref:\\\"clearIcon\\\",class:[t.cx(\\\"clearIcon\\\"),t.clearIcon],onClick:r.onClearClick},t.ptm(\\\"clearIcon\\\"),{\\\"data-pc-section\\\":\\\"clearicon\\\"}),null,16,[\\\"class\\\",\\\"onClick\\\"]))]})):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"dropdown\\\")},t.ptm(\\\"dropdown\\\")),[t.loading?v(t.$slots,\\\"loadingicon\\\",{key:0,class:z(t.cx(\\\"loadingIcon\\\"))},(function(){return[t.loadingIcon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"loadingIcon\\\"),\\\"pi-spin\\\",t.loadingIcon],\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"loadingIcon\\\")),null,16)):(m(),S(s,I({key:1,class:t.cx(\\\"loadingIcon\\\"),spin:\\\"\\\",\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"loadingIcon\\\")),null,16,[\\\"class\\\"]))]})):v(t.$slots,\\\"dropdownicon\\\",{key:1,class:z(t.cx(\\\"dropdownIcon\\\"))},(function(){return[(m(),S(E(t.dropdownIcon?\\\"span\\\":\\\"ChevronDownIcon\\\"),I({class:[t.cx(\\\"dropdownIcon\\\"),t.dropdownIcon],\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"dropdownIcon\\\")),null,16,[\\\"class\\\"]))]}))],16),V(f,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\"p-connected-overlay\\\",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},t.ptm(\\\"transition\\\")),{default:L((function(){return[i.overlayVisible?(m(),g(\\\"div\\\",I({key:0,ref:r.overlayRef,class:[t.cx(\\\"overlay\\\"),t.panelClass,t.overlayClass],style:[t.panelStyle,t.overlayStyle],onClick:e[9]||(e[9]=function(){return r.onOverlayClick\\u0026\\u0026r.onOverlayClick.apply(r,arguments)}),onKeydown:e[10]||(e[10]=function(){return r.onOverlayKeyDown\\u0026\\u0026r.onOverlayKeyDown.apply(r,arguments)})},t.ptm(\\\"overlay\\\")),[C(\\\"span\\\",I({ref:\\\"firstHiddenFocusableElementOnOverlay\\\",role:\\\"presentation\\\",\\\"aria-hidden\\\":\\\"true\\\",class:\\\"p-hidden-accessible p-hidden-focusable\\\",tabindex:0,onFocus:e[7]||(e[7]=function(){return r.onFirstHiddenFocus\\u0026\\u0026r.onFirstHiddenFocus.apply(r,arguments)})},t.ptm(\\\"hiddenFirstFocusableEl\\\"),{\\\"data-p-hidden-accessible\\\":!0,\\\"data-p-hidden-focusable\\\":!0}),null,16),v(t.$slots,\\\"header\\\",{value:t.d_value,options:r.visibleOptions}),t.filter?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"header\\\")},t.ptm(\\\"header\\\")),[V(u,{unstyled:t.unstyled,pt:t.ptm(\\\"pcFilterContainer\\\")},{default:L((function(){return[V(l,{ref:\\\"filterInput\\\",type:\\\"text\\\",value:i.filterValue,onVnodeMounted:r.onFilterUpdated,onVnodeUpdated:r.onFilterUpdated,class:z(t.cx(\\\"pcFilter\\\")),placeholder:t.filterPlaceholder,variant:t.variant,unstyled:t.unstyled,role:\\\"searchbox\\\",autocomplete:\\\"off\\\",\\\"aria-owns\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":r.focusedOptionId,onKeydown:r.onFilterKeyDown,onBlur:r.onFilterBlur,onInput:r.onFilterChange,pt:t.ptm(\\\"pcFilter\\\")},null,8,[\\\"value\\\",\\\"onVnodeMounted\\\",\\\"onVnodeUpdated\\\",\\\"class\\\",\\\"placeholder\\\",\\\"variant\\\",\\\"unstyled\\\",\\\"aria-owns\\\",\\\"aria-activedescendant\\\",\\\"onKeydown\\\",\\\"onBlur\\\",\\\"onInput\\\",\\\"pt\\\"]),V(c,{unstyled:t.unstyled,pt:t.ptm(\\\"pcFilterIconContainer\\\")},{default:L((function(){return[v(t.$slots,\\\"filtericon\\\",{},(function(){return[t.filterIcon?(m(),g(\\\"span\\\",I({key:0,class:t.filterIcon},t.ptm(\\\"filterIcon\\\")),null,16)):(m(),S(a,F(I({key:1},t.ptm(\\\"filterIcon\\\"))),null,16))]}))]})),_:3},8,[\\\"unstyled\\\",\\\"pt\\\"])]})),_:3},8,[\\\"unstyled\\\",\\\"pt\\\"]),C(\\\"span\\\",I({role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenFilterResult\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.filterResultMessageText),17)],16)):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"listContainer\\\"),style:{\\\"max-height\\\":r.virtualScrollerDisabled?t.scrollHeight:\\\"\\\"}},t.ptm(\\\"listContainer\\\")),[V(h,I({ref:r.virtualScrollerRef},t.virtualScrollerOptions,{items:r.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:t.ptm(\\\"virtualScroller\\\")}),A({content:L((function(e){var n=e.styleClass,o=e.contentRef,s=e.items,l=e.getItemOptions,a=e.contentStyle,c=e.itemSize;return[C(\\\"ul\\\",I({ref:function(t){return r.listRef(t,o)},id:i.id+\\\"_list\\\",class:[t.cx(\\\"list\\\"),n],style:a,role:\\\"listbox\\\"},t.ptm(\\\"list\\\")),[(m(!0),g(_,null,M(s,(function(e,n){return m(),g(_,{key:r.getOptionRenderKey(e,r.getOptionIndex(n,l))},[r.isOptionGroup(e)?(m(),g(\\\"li\\\",I({key:0,id:i.id+\\\"_\\\"+r.getOptionIndex(n,l),style:{height:c?c+\\\"px\\\":void 0},class:t.cx(\\\"optionGroup\\\"),role:\\\"option\\\",ref_for:!0},t.ptm(\\\"optionGroup\\\")),[v(t.$slots,\\\"optiongroup\\\",{option:e.optionGroup,index:r.getOptionIndex(n,l)},(function(){return[C(\\\"span\\\",I({class:t.cx(\\\"optionGroupLabel\\\"),ref_for:!0},t.ptm(\\\"optionGroupLabel\\\")),x(r.getOptionGroupLabel(e.optionGroup)),17)]}))],16,gn)):O((m(),g(\\\"li\\\",I({key:1,id:i.id+\\\"_\\\"+r.getOptionIndex(n,l),class:t.cx(\\\"option\\\",{option:e,focusedOption:r.getOptionIndex(n,l)}),style:{height:c?c+\\\"px\\\":void 0},role:\\\"option\\\",\\\"aria-label\\\":r.getOptionLabel(e),\\\"aria-selected\\\":r.isSelected(e),\\\"aria-disabled\\\":r.isOptionDisabled(e),\\\"aria-setsize\\\":r.ariaSetSize,\\\"aria-posinset\\\":r.getAriaPosInset(r.getOptionIndex(n,l)),onClick:function(t){return r.onOptionSelect(t,e)},onMousemove:function(t){return r.onOptionMouseMove(t,r.getOptionIndex(n,l))},\\\"data-p-selected\\\":r.isSelected(e),\\\"data-p-focused\\\":i.focusedOptionIndex===r.getOptionIndex(n,l),\\\"data-p-disabled\\\":r.isOptionDisabled(e),ref_for:!0},r.getPTItemOptions(e,l,n,\\\"option\\\")),[t.checkmark?(m(),g(_,{key:0},[r.isSelected(e)?(m(),S(d,I({key:0,class:t.cx(\\\"optionCheckIcon\\\"),ref_for:!0},t.ptm(\\\"optionCheckIcon\\\")),null,16,[\\\"class\\\"])):(m(),S(p,I({key:1,class:t.cx(\\\"optionBlankIcon\\\"),ref_for:!0},t.ptm(\\\"optionBlankIcon\\\")),null,16,[\\\"class\\\"]))],64)):$(\\\"\\\",!0),v(t.$slots,\\\"option\\\",{option:e,selected:r.isSelected(e),index:r.getOptionIndex(n,l)},(function(){return[C(\\\"span\\\",I({class:t.cx(\\\"optionLabel\\\"),ref_for:!0},t.ptm(\\\"optionLabel\\\")),x(r.getOptionLabel(e)),17)]}))],16,vn)),[[b]])],64)})),128)),i.filterValue\\u0026\\u0026(!s||s\\u0026\\u00260===s.length)?(m(),g(\\\"li\\\",I({key:0,class:t.cx(\\\"emptyMessage\\\"),role:\\\"option\\\"},t.ptm(\\\"emptyMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),[v(t.$slots,\\\"emptyfilter\\\",{},(function(){return[y(x(r.emptyFilterMessageText),1)]}))],16)):!t.options||t.options\\u0026\\u00260===t.options.length?(m(),g(\\\"li\\\",I({key:1,class:t.cx(\\\"emptyMessage\\\"),role:\\\"option\\\"},t.ptm(\\\"emptyMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),[v(t.$slots,\\\"empty\\\",{},(function(){return[y(x(r.emptyMessageText),1)]}))],16)):$(\\\"\\\",!0)],16,mn)]})),_:2},[t.$slots.loader?{name:\\\"loader\\\",fn:L((function(e){var n=e.options;return[v(t.$slots,\\\"loader\\\",{options:n})]})),key:\\\"0\\\"}:void 0]),1040,[\\\"items\\\",\\\"style\\\",\\\"disabled\\\",\\\"pt\\\"])],16),v(t.$slots,\\\"footer\\\",{value:t.d_value,options:r.visibleOptions}),!t.options||t.options\\u0026\\u00260===t.options.length?(m(),g(\\\"span\\\",I({key:1,role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenEmptyMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.emptyMessageText),17)):$(\\\"\\\",!0),C(\\\"span\\\",I({role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenSelectedMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.selectedMessageText),17),C(\\\"span\\\",I({ref:\\\"lastHiddenFocusableElementOnOverlay\\\",role:\\\"presentation\\\",\\\"aria-hidden\\\":\\\"true\\\",class:\\\"p-hidden-accessible p-hidden-focusable\\\",tabindex:0,onFocus:e[8]||(e[8]=function(){return r.onLastHiddenFocus\\u0026\\u0026r.onLastHiddenFocus.apply(r,arguments)})},t.ptm(\\\"hiddenLastFocusableEl\\\"),{\\\"data-p-hidden-accessible\\\":!0,\\\"data-p-hidden-focusable\\\":!0}),null,16)],16)):$(\\\"\\\",!0)]})),_:3},16,[\\\"onEnter\\\",\\\"onAfterEnter\\\",\\\"onLeave\\\",\\\"onAfterLeave\\\"])]})),_:3},8,[\\\"appendTo\\\"])],16,hn)};var yn=St.extend({name:\\\"tooltip-directive\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-tooltip {\\\\n    position: absolute;\\\\n    display: none;\\\\n    max-width: \\\".concat(e(\\\"tooltip.max.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-right,\\\\n.p-tooltip-left {\\\\n    padding: 0 \\\").concat(e(\\\"tooltip.gutter\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-top,\\\\n.p-tooltip-bottom {\\\\n    padding: \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" 0;\\\\n}\\\\n\\\\n.p-tooltip-text {\\\\n    white-space: pre-line;\\\\n    word-break: break-word;\\\\n    background: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"tooltip.color\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"tooltip.padding\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"tooltip.shadow\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"tooltip.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-arrow {\\\\n    position: absolute;\\\\n    width: 0;\\\\n    height: 0;\\\\n    border-color: transparent;\\\\n    border-style: solid;\\\\n}\\\\n\\\\n.p-tooltip-right .p-tooltip-arrow {\\\\n    margin-top: calc(-1 * \\\").concat(e(\\\"tooltip.gutter\\\"),\\\");\\\\n    border-width: \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" 0;\\\\n    border-right-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-left .p-tooltip-arrow {\\\\n    margin-top: calc(-1 * \\\").concat(e(\\\"tooltip.gutter\\\"),\\\");\\\\n    border-width: \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" 0 \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\";\\\\n    border-left-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-top .p-tooltip-arrow {\\\\n    margin-left: calc(-1 * \\\").concat(e(\\\"tooltip.gutter\\\"),\\\");\\\\n    border-width: \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" 0 \\\").concat(e(\\\"tooltip.gutter\\\"),\\\";\\\\n    border-top-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n    border-bottom-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-bottom .p-tooltip-arrow {\\\\n    margin-left: calc(-1 * \\\").concat(e(\\\"tooltip.gutter\\\"),\\\");\\\\n    border-width: 0 \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\";\\\\n    border-top-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n    border-bottom-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:\\\"p-tooltip p-component\\\",arrow:\\\"p-tooltip-arrow\\\",text:\\\"p-tooltip-text\\\"}});function xn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026t[Symbol.iterator]||t[\\\"@@iterator\\\"];if(null!=n){var o,i,r,s,l=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e);else for(;!(a=(o=r.call(n)).done)\\u0026\\u0026(l.push(o.value),l.length!==e);a=!0);}catch(u){c=!0,i=u}finally{try{if(!a\\u0026\\u0026null!=n.return\\u0026\\u0026(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return In(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(t,e):void 0}}(t,e)||function(){throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function In(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}function kn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=wn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=wn(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==wn(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wn(t){return(wn=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}var On=$t.extend({style:yn}).extend(\\\"tooltip\\\",{beforeMount:function(t,e){var n,o=this.getTarget(t);if(o.$_ptooltipModifiers=this.getModifiers(e),e.value){if(\\\"string\\\"==typeof e.value)o.$_ptooltipValue=e.value,o.$_ptooltipDisabled=!1,o.$_ptooltipEscape=!0,o.$_ptooltipClass=null,o.$_ptooltipFitContent=!0,o.$_ptooltipIdAttr=Et()+\\\"_tooltip\\\",o.$_ptooltipShowDelay=0,o.$_ptooltipHideDelay=0,o.$_ptooltipAutoHide=!0;else if(\\\"object\\\"===wn(e.value)\\u0026\\u0026e.value){if(D(e.value.value)||\\\"\\\"===e.value.value.trim())return;o.$_ptooltipValue=e.value.value,o.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled\\u0026\\u0026e.value.disabled,o.$_ptooltipEscape=!!e.value.escape!==e.value.escape||e.value.escape,o.$_ptooltipClass=e.value.class||\\\"\\\",o.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent,o.$_ptooltipIdAttr=e.value.id||Et()+\\\"_tooltip\\\",o.$_ptooltipShowDelay=e.value.showDelay||0,o.$_ptooltipHideDelay=e.value.hideDelay||0,o.$_ptooltipAutoHide=!!e.value.autoHide!==e.value.autoHide||e.value.autoHide}o.$_ptooltipZIndex=null===(n=e.instance.$primevue)||void 0===n||null===(n=n.config)||void 0===n||null===(n=n.zIndex)||void 0===n?void 0:n.tooltip,this.bindEvents(o,e),t.setAttribute(\\\"data-pd-tooltip\\\",!0)}},updated:function(t,e){var n=this.getTarget(t);if(n.$_ptooltipModifiers=this.getModifiers(e),this.unbindEvents(n),e.value)if(\\\"string\\\"==typeof e.value)n.$_ptooltipValue=e.value,n.$_ptooltipDisabled=!1,n.$_ptooltipEscape=!0,n.$_ptooltipClass=null,n.$_ptooltipIdAttr=n.$_ptooltipIdAttr||Et()+\\\"_tooltip\\\",n.$_ptooltipShowDelay=0,n.$_ptooltipHideDelay=0,n.$_ptooltipAutoHide=!0,this.bindEvents(n,e);else if(\\\"object\\\"===wn(e.value)\\u0026\\u0026e.value){if(D(e.value.value)||\\\"\\\"===e.value.value.trim())return void this.unbindEvents(n,e);n.$_ptooltipValue=e.value.value,n.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled\\u0026\\u0026e.value.disabled,n.$_ptooltipEscape=!!e.value.escape!==e.value.escape||e.value.escape,n.$_ptooltipClass=e.value.class||\\\"\\\",n.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent,n.$_ptooltipIdAttr=e.value.id||n.$_ptooltipIdAttr||Et()+\\\"_tooltip\\\",n.$_ptooltipShowDelay=e.value.showDelay||0,n.$_ptooltipHideDelay=e.value.hideDelay||0,n.$_ptooltipAutoHide=!!e.value.autoHide!==e.value.autoHide||e.value.autoHide,this.bindEvents(n,e)}},unmounted:function(t,e){var n=this.getTarget(t);this.remove(n),this.unbindEvents(n,e),n.$_ptooltipScrollHandler\\u0026\\u0026(n.$_ptooltipScrollHandler.destroy(),n.$_ptooltipScrollHandler=null)},timer:void 0,methods:{bindEvents:function(t,e){var n=this;t.$_ptooltipModifiers.focus?(t.$_focusevent=function(t){return n.onFocus(t,e)},t.addEventListener(\\\"focus\\\",t.$_focusevent),t.addEventListener(\\\"blur\\\",this.onBlur.bind(this))):(t.$_mouseenterevent=function(t){return n.onMouseEnter(t,e)},t.addEventListener(\\\"mouseenter\\\",t.$_mouseenterevent),t.addEventListener(\\\"mouseleave\\\",this.onMouseLeave.bind(this)),t.addEventListener(\\\"click\\\",this.onClick.bind(this))),t.addEventListener(\\\"keydown\\\",this.onKeydown.bind(this))},unbindEvents:function(t){t.$_ptooltipModifiers.focus?(t.removeEventListener(\\\"focus\\\",t.$_focusevent),t.$_focusevent=null,t.removeEventListener(\\\"blur\\\",this.onBlur.bind(this))):(t.removeEventListener(\\\"mouseenter\\\",t.$_mouseenterevent),t.$_mouseenterevent=null,t.removeEventListener(\\\"mouseleave\\\",this.onMouseLeave.bind(this)),t.removeEventListener(\\\"click\\\",this.onClick.bind(this))),t.removeEventListener(\\\"keydown\\\",this.onKeydown.bind(this))},bindScrollListener:function(t){var e=this;t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new Tt(t,(function(){e.hide(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()},unbindScrollListener:function(t){t.$_ptooltipScrollHandler\\u0026\\u0026t.$_ptooltipScrollHandler.unbindScrollListener()},onMouseEnter:function(t,e){var n=t.currentTarget,o=n.$_ptooltipShowDelay;this.show(n,e,o)},onMouseLeave:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;e.$_ptooltipAutoHide?this.hide(e,n):!(\\\"tooltip\\\"===q(t.target,\\\"data-pc-name\\\")||\\\"arrow\\\"===q(t.target,\\\"data-pc-section\\\")||\\\"text\\\"===q(t.target,\\\"data-pc-section\\\")||\\\"tooltip\\\"===q(t.relatedTarget,\\\"data-pc-name\\\")||\\\"arrow\\\"===q(t.relatedTarget,\\\"data-pc-section\\\")||\\\"text\\\"===q(t.relatedTarget,\\\"data-pc-section\\\"))\\u0026\\u0026this.hide(e,n)},onFocus:function(t,e){var n=t.currentTarget,o=n.$_ptooltipShowDelay;this.show(n,e,o)},onBlur:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;this.hide(e,n)},onClick:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;this.hide(e,n)},onKeydown:function(t){var e=t.currentTarget.$_ptooltipHideDelay;\\\"Escape\\\"===t.code\\u0026\\u0026this.hide(t.currentTarget,e)},tooltipActions:function(t,e){if(!t.$_ptooltipDisabled\\u0026\\u0026ht(t)){var n=this.create(t,e);this.align(t),!this.isUnstyled()\\u0026\\u0026ft(n,250);var o=this;window.addEventListener(\\\"resize\\\",(function e(){ct()||o.hide(t),window.removeEventListener(\\\"resize\\\",e)})),n.addEventListener(\\\"mouseleave\\\",(function e(){o.hide(t),n.removeEventListener(\\\"mouseleave\\\",e),t.removeEventListener(\\\"mouseenter\\\",t.$_mouseenterevent),setTimeout((function(){return t.addEventListener(\\\"mouseenter\\\",t.$_mouseenterevent)}),50)})),this.bindScrollListener(t),Q.set(\\\"tooltip\\\",n,t.$_ptooltipZIndex)}},show:function(t,e,n){var o=this;void 0!==n?this.timer=setTimeout((function(){return o.tooltipActions(t,e)}),n):this.tooltipActions(t,e)},tooltipRemoval:function(t){this.remove(t),this.unbindScrollListener(t)},hide:function(t,e){var n=this;clearTimeout(this.timer),void 0!==e?setTimeout((function(){return n.tooltipRemoval(t)}),e):this.tooltipRemoval(t)},getTooltipElement:function(t){return document.getElementById(t.$_ptooltipId)},create:function(t){var e=t.$_ptooltipModifiers,n=B(\\\"div\\\",{class:!this.isUnstyled()\\u0026\\u0026this.cx(\\\"arrow\\\"),\\\"p-bind\\\":this.ptm(\\\"arrow\\\",{context:e})}),o=B(\\\"div\\\",{class:!this.isUnstyled()\\u0026\\u0026this.cx(\\\"text\\\"),\\\"p-bind\\\":this.ptm(\\\"text\\\",{context:e})});t.$_ptooltipEscape?(o.innerHTML=\\\"\\\",o.appendChild(document.createTextNode(t.$_ptooltipValue))):o.innerHTML=t.$_ptooltipValue;var i=B(\\\"div\\\",kn(kn({id:t.$_ptooltipIdAttr,role:\\\"tooltip\\\",style:{display:\\\"inline-block\\\",width:t.$_ptooltipFitContent?\\\"fit-content\\\":void 0,pointerEvents:!this.isUnstyled()\\u0026\\u0026t.$_ptooltipAutoHide\\u0026\\u0026\\\"none\\\"},class:[!this.isUnstyled()\\u0026\\u0026this.cx(\\\"root\\\"),t.$_ptooltipClass]},this.$attrSelector,\\\"\\\"),\\\"p-bind\\\",this.ptm(\\\"root\\\",{context:e})),n,o);return document.body.appendChild(i),t.$_ptooltipId=i.id,this.$el=i,i},remove:function(t){if(t){var e=this.getTooltipElement(t);e\\u0026\\u0026e.parentElement\\u0026\\u0026(Q.clear(e),document.body.removeChild(e)),t.$_ptooltipId=null}},align:function(t){var e=t.$_ptooltipModifiers;e.top?(this.alignTop(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\u0026\\u0026this.alignTop(t))):e.left?(this.alignLeft(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignRight(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\u0026\\u0026this.alignLeft(t))))):e.bottom?(this.alignBottom(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\u0026\\u0026this.alignBottom(t))):(this.alignRight(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignLeft(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\u0026\\u0026this.alignRight(t)))))},getHostOffset:function(t){var e=t.getBoundingClientRect();return{left:e.left+bt(),top:e.top+mt()}},alignRight:function(t){this.preAlign(t,\\\"right\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+G(t),i=n.top+(U(t)-U(e))/2;e.style.left=o+\\\"px\\\",e.style.top=i+\\\"px\\\"},alignLeft:function(t){this.preAlign(t,\\\"left\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left-G(e),i=n.top+(U(t)-U(e))/2;e.style.left=o+\\\"px\\\",e.style.top=i+\\\"px\\\"},alignTop:function(t){this.preAlign(t,\\\"top\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+(G(t)-G(e))/2,i=n.top-U(e);e.style.left=o+\\\"px\\\",e.style.top=i+\\\"px\\\"},alignBottom:function(t){this.preAlign(t,\\\"bottom\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+(G(t)-G(e))/2,i=n.top+U(t);e.style.left=o+\\\"px\\\",e.style.top=i+\\\"px\\\"},preAlign:function(t,e){var n=this.getTooltipElement(t);n.style.left=\\\"-999px\\\",n.style.top=\\\"-999px\\\",H(n,\\\"p-tooltip-\\\".concat(n.$_ptooltipPosition)),!this.isUnstyled()\\u0026\\u0026W(n,\\\"p-tooltip-\\\".concat(e)),n.$_ptooltipPosition=e,n.setAttribute(\\\"data-p-position\\\",e);var o=J(n,'[data-pc-section=\\\"arrow\\\"]');o.style.top=\\\"bottom\\\"===e?\\\"0\\\":\\\"right\\\"===e||\\\"left\\\"===e||\\\"right\\\"!==e\\u0026\\u0026\\\"left\\\"!==e\\u0026\\u0026\\\"top\\\"!==e\\u0026\\u0026\\\"bottom\\\"!==e?\\\"50%\\\":null,o.style.bottom=\\\"top\\\"===e?\\\"0\\\":null,o.style.left=\\\"right\\\"===e||\\\"right\\\"!==e\\u0026\\u0026\\\"left\\\"!==e\\u0026\\u0026\\\"top\\\"!==e\\u0026\\u0026\\\"bottom\\\"!==e?\\\"0\\\":\\\"top\\\"===e||\\\"bottom\\\"===e?\\\"50%\\\":null,o.style.right=\\\"left\\\"===e?\\\"0\\\":null},isOutOfBounds:function(t){var e=this.getTooltipElement(t),n=e.getBoundingClientRect(),o=n.top,i=n.left,r=G(e),s=U(e),l=gt();return i+r\\u003el.width||i\\u003c0||o\\u003c0||o+s\\u003el.height},getTarget:function(t){var e;return vt(t,\\\"p-inputwrapper\\\")\\u0026\\u0026null!==(e=J(t,\\\"input\\\"))\\u0026\\u0026void 0!==e?e:t},getModifiers:function(t){return t.modifiers\\u0026\\u0026Object.keys(t.modifiers).length?t.modifiers:t.arg\\u0026\\u0026\\\"object\\\"===wn(t.arg)?Object.entries(t.arg).reduce((function(t,e){var n=xn(e,2),o=n[0],i=n[1];return\\\"event\\\"!==o\\u0026\\u0026\\\"position\\\"!==o||(t[i]=!0),t}),{}):{}}}}),Sn=St.extend({name:\\\"checkbox\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-checkbox {\\\\n    position: relative;\\\\n    display: inline-flex;\\\\n    user-select: none;\\\\n    vertical-align: bottom;\\\\n    width: \\\".concat(e(\\\"checkbox.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-input {\\\\n    cursor: pointer;\\\\n    appearance: none;\\\\n    position: absolute;\\\\n    inset-block-start: 0;\\\\n    inset-inline-start: 0;\\\\n    width: 100%;\\\\n    height: 100%;\\\\n    padding: 0;\\\\n    margin: 0;\\\\n    opacity: 0;\\\\n    z-index: 1;\\\\n    outline: 0 none;\\\\n    border: 1px solid transparent;\\\\n    border-radius: \\\").concat(e(\\\"checkbox.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-box {\\\\n    display: flex;\\\\n    justify-content: center;\\\\n    align-items: center;\\\\n    border-radius: \\\").concat(e(\\\"checkbox.border.radius\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"checkbox.border.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"checkbox.background\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"checkbox.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.height\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\", color \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    box-shadow: \\\").concat(e(\\\"checkbox.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-icon {\\\\n    transition-duration: \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"checkbox.icon.color\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"checkbox.icon.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"checkbox.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.icon.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.checked.border.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"checkbox.checked.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked .p-checkbox-icon {\\\\n    color: \\\").concat(e(\\\"checkbox.icon.checked.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.checked.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"checkbox.checked.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {\\\\n    color: \\\").concat(e(\\\"checkbox.icon.checked.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.focus.border.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"checkbox.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"checkbox.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"checkbox.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"checkbox.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"checkbox.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.checked.focus.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox.p-invalid \\u003e .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox.p-variant-filled .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.filled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked.p-variant-filled .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.checked.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.checked.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox.p-disabled {\\\\n    opacity: 1;\\\\n}\\\\n\\\\n.p-checkbox.p-disabled .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.disabled.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"checkbox.checked.disabled.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {\\\\n    color: \\\").concat(e(\\\"checkbox.icon.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-sm,\\\\n.p-checkbox-sm .p-checkbox-box {\\\\n    width: \\\").concat(e(\\\"checkbox.sm.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.sm.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-sm .p-checkbox-icon {\\\\n    font-size: \\\").concat(e(\\\"checkbox.icon.sm.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"checkbox.icon.sm.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.icon.sm.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-lg,\\\\n.p-checkbox-lg .p-checkbox-box {\\\\n    width: \\\").concat(e(\\\"checkbox.lg.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.lg.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-lg .p-checkbox-icon {\\\\n    font-size: \\\").concat(e(\\\"checkbox.icon.lg.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"checkbox.icon.lg.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.icon.lg.size\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-checkbox p-component\\\",{\\\"p-checkbox-checked\\\":e.checked,\\\"p-disabled\\\":n.disabled,\\\"p-invalid\\\":e.$pcCheckboxGroup?e.$pcCheckboxGroup.$invalid:e.$invalid,\\\"p-variant-filled\\\":\\\"filled\\\"===e.$variant,\\\"p-checkbox-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-checkbox-lg p-inputfield-lg\\\":\\\"large\\\"===n.size}]},box:\\\"p-checkbox-box\\\",input:\\\"p-checkbox-input\\\",icon:\\\"p-checkbox-icon\\\"}});function Ln(t){return function(t){if(Array.isArray(t))return $n(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return $n(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$n(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function $n(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}var Cn={name:\\\"Checkbox\\\",extends:{name:\\\"BaseCheckbox\\\",extends:zt,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Sn,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\",\\\"focus\\\",\\\"blur\\\",\\\"update:indeterminate\\\"],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(t){this.d_indeterminate=t}},methods:{getPTOptions:function(t){return(\\\"root\\\"===t?this.ptmi:this.ptm)(t,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(t){var e=this;if(!this.disabled\\u0026\\u0026!this.readonly){var n,o=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;n=this.binary?this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?o.filter((function(t){return!dt(t,e.value)})):o?[].concat(Ln(o),[this.value]):[this.value],this.d_indeterminate\\u0026\\u0026(this.d_indeterminate=!1,this.$emit(\\\"update:indeterminate\\\",this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(n,t):this.writeValue(n,t),this.$emit(\\\"change\\\",t)}},onFocus:function(t){this.$emit(\\\"focus\\\",t)},onBlur:function(t){var e,n;this.$emit(\\\"blur\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)}},computed:{groupName:function(){return this.$pcCheckboxGroup?this.$pcCheckboxGroup.groupName:this.$formName},checked:function(){var t=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return!this.d_indeterminate\\u0026\\u0026(this.binary?t===this.trueValue:yt(this.value,t))}},components:{CheckIcon:Ft,MinusIcon:Kt}},zn=[\\\"data-p-checked\\\",\\\"data-p-indeterminate\\\",\\\"data-p-disabled\\\"],En=[\\\"id\\\",\\\"value\\\",\\\"name\\\",\\\"checked\\\",\\\"tabindex\\\",\\\"disabled\\\",\\\"readonly\\\",\\\"required\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"aria-invalid\\\",\\\"aria-checked\\\"];Cn.render=function(t,e,n,o,i,r){var s=k(\\\"CheckIcon\\\"),l=k(\\\"MinusIcon\\\");return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\")},r.getPTOptions(\\\"root\\\"),{\\\"data-p-checked\\\":r.checked,\\\"data-p-indeterminate\\\":i.d_indeterminate||void 0,\\\"data-p-disabled\\\":t.disabled}),[C(\\\"input\\\",I({id:t.inputId,type:\\\"checkbox\\\",class:[t.cx(\\\"input\\\"),t.inputClass],style:t.inputStyle,value:t.value,name:r.groupName,checked:r.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,required:t.required,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,\\\"aria-invalid\\\":t.invalid||void 0,\\\"aria-checked\\\":i.d_indeterminate?\\\"mixed\\\":void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\u0026\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)}),onChange:e[2]||(e[2]=function(){return r.onChange\\u0026\\u0026r.onChange.apply(r,arguments)})},r.getPTOptions(\\\"input\\\")),null,16,En),C(\\\"div\\\",I({class:t.cx(\\\"box\\\")},r.getPTOptions(\\\"box\\\")),[v(t.$slots,\\\"icon\\\",{checked:r.checked,indeterminate:i.d_indeterminate,class:z(t.cx(\\\"icon\\\"))},(function(){return[r.checked?(m(),S(s,I({key:0,class:t.cx(\\\"icon\\\")},r.getPTOptions(\\\"icon\\\")),null,16,[\\\"class\\\"])):i.d_indeterminate?(m(),S(l,I({key:1,class:t.cx(\\\"icon\\\")},r.getPTOptions(\\\"icon\\\")),null,16,[\\\"class\\\"])):$(\\\"\\\",!0)]}))],16)],16,zn)};var Tn=St.extend({name:\\\"chip\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-chip {\\\\n    display: inline-flex;\\\\n    align-items: center;\\\\n    background: \\\".concat(e(\\\"chip.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"chip.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"chip.border.radius\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"chip.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"chip.padding.x\\\"),\\\";\\\\n    gap: \\\").concat(e(\\\"chip.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-chip-icon {\\\\n    color: \\\").concat(e(\\\"chip.icon.color\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"chip.icon.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"chip.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"chip.icon.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-chip-image {\\\\n    border-radius: 50%;\\\\n    width: \\\").concat(e(\\\"chip.image.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"chip.image.height\\\"),\\\";\\\\n    margin-inline-start: calc(-1 * \\\").concat(e(\\\"chip.padding.y\\\"),\\\");\\\\n}\\\\n\\\\n.p-chip:has(.p-chip-remove-icon) {\\\\n    padding-inline-end: \\\").concat(e(\\\"chip.padding.y\\\"),\\\";\\\\n}\\\\n\\\\n.p-chip:has(.p-chip-image) {\\\\n    padding-block-start: calc(\\\").concat(e(\\\"chip.padding.y\\\"),\\\" / 2);\\\\n    padding-block-end: calc(\\\").concat(e(\\\"chip.padding.y\\\"),\\\" / 2);\\\\n}\\\\n\\\\n.p-chip-remove-icon {\\\\n    cursor: pointer;\\\\n    font-size: \\\").concat(e(\\\"chip.remove.icon.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"chip.remove.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"chip.remove.icon.size\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"chip.remove.icon.color\\\"),\\\";\\\\n    border-radius: 50%;\\\\n    transition: outline-color \\\").concat(e(\\\"chip.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"chip.transition.duration\\\"),\\\";\\\\n    outline-color: transparent;\\\\n}\\\\n\\\\n.p-chip-remove-icon:focus-visible {\\\\n    box-shadow: \\\").concat(e(\\\"chip.remove.icon.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"chip.remove.icon.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"chip.remove.icon.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"chip.remove.icon.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"chip.remove.icon.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:\\\"p-chip p-component\\\",image:\\\"p-chip-image\\\",icon:\\\"p-chip-icon\\\",label:\\\"p-chip-label\\\",removeIcon:\\\"p-chip-remove-icon\\\"}}),_n={name:\\\"Chip\\\",extends:{name:\\\"BaseChip\\\",extends:Lt,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:Tn,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"remove\\\"],data:function(){return{visible:!0}},methods:{onKeydown:function(t){\\\"Enter\\\"!==t.key\\u0026\\u0026\\\"Backspace\\\"!==t.key||this.close(t)},close:function(t){this.visible=!1,this.$emit(\\\"remove\\\",t)}},components:{TimesCircleIcon:Dt}},Mn=[\\\"aria-label\\\"],Vn=[\\\"src\\\"];_n.render=function(t,e,n,o,i,r){return i.visible?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"root\\\"),\\\"aria-label\\\":t.label},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"default\\\",{},(function(){return[t.image?(m(),g(\\\"img\\\",I({key:0,src:t.image},t.ptm(\\\"image\\\"),{class:t.cx(\\\"image\\\")}),null,16,Vn)):t.$slots.icon?(m(),S(E(t.$slots.icon),I({key:1,class:t.cx(\\\"icon\\\")},t.ptm(\\\"icon\\\")),null,16,[\\\"class\\\"])):t.icon?(m(),g(\\\"span\\\",I({key:2,class:[t.cx(\\\"icon\\\"),t.icon]},t.ptm(\\\"icon\\\")),null,16)):$(\\\"\\\",!0),t.label?(m(),g(\\\"div\\\",I({key:3,class:t.cx(\\\"label\\\")},t.ptm(\\\"label\\\")),x(t.label),17)):$(\\\"\\\",!0)]})),t.removable?v(t.$slots,\\\"removeicon\\\",{key:0,removeCallback:r.close,keydownCallback:r.onKeydown},(function(){return[(m(),S(E(t.removeIcon?\\\"span\\\":\\\"TimesCircleIcon\\\"),I({class:[t.cx(\\\"removeIcon\\\"),t.removeIcon],onClick:r.close,onKeydown:r.onKeydown},t.ptm(\\\"removeIcon\\\")),null,16,[\\\"class\\\",\\\"onClick\\\",\\\"onKeydown\\\"]))]})):$(\\\"\\\",!0)],16,Mn)):$(\\\"\\\",!0)};var Pn=St.extend({name:\\\"multiselect\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-multiselect {\\\\n    display: inline-flex;\\\\n    cursor: pointer;\\\\n    position: relative;\\\\n    user-select: none;\\\\n    background: \\\".concat(e(\\\"multiselect.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"multiselect.border.color\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"multiselect.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    box-shadow: \\\").concat(e(\\\"multiselect.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect:not(.p-disabled):hover {\\\\n    border-color: \\\").concat(e(\\\"multiselect.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect:not(.p-disabled).p-focus {\\\\n    border-color: \\\").concat(e(\\\"multiselect.focus.border.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"multiselect.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"multiselect.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"multiselect.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"multiselect.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"multiselect.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-variant-filled {\\\\n    background: \\\").concat(e(\\\"multiselect.filled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-variant-filled:not(.p-disabled):hover {\\\\n    background: \\\").concat(e(\\\"multiselect.filled.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-variant-filled.p-focus {\\\\n    background: \\\").concat(e(\\\"multiselect.filled.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-invalid {\\\\n    border-color: \\\").concat(e(\\\"multiselect.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-disabled {\\\\n    opacity: 1;\\\\n    background: \\\").concat(e(\\\"multiselect.disabled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-dropdown {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    flex-shrink: 0;\\\\n    background: transparent;\\\\n    color: \\\").concat(e(\\\"multiselect.dropdown.color\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"multiselect.dropdown.width\\\"),\\\";\\\\n    border-start-end-radius: \\\").concat(e(\\\"multiselect.border.radius\\\"),\\\";\\\\n    border-end-end-radius: \\\").concat(e(\\\"multiselect.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-clear-icon {\\\\n    position: absolute;\\\\n    top: 50%;\\\\n    margin-top: -0.5rem;\\\\n    color: \\\").concat(e(\\\"multiselect.clear.icon.color\\\"),\\\";\\\\n    inset-inline-end: \\\").concat(e(\\\"multiselect.dropdown.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label-container {\\\\n    overflow: hidden;\\\\n    flex: 1 1 auto;\\\\n    cursor: pointer;\\\\n}\\\\n\\\\n.p-multiselect-label {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    gap: calc(\\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" / 2);\\\\n    white-space: nowrap;\\\\n    cursor: pointer;\\\\n    overflow: hidden;\\\\n    text-overflow: ellipsis;\\\\n    padding: \\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" \\\").concat(e(\\\"multiselect.padding.x\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label.p-placeholder {\\\\n    color: \\\").concat(e(\\\"multiselect.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-invalid .p-multiselect-label.p-placeholder {\\\\n    color: \\\").concat(e(\\\"multiselect.invalid.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-disabled .p-multiselect-label {\\\\n    color: \\\").concat(e(\\\"multiselect.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label-empty {\\\\n    overflow: hidden;\\\\n    visibility: hidden;\\\\n}\\\\n\\\\n.p-multiselect .p-multiselect-overlay {\\\\n    min-width: 100%;\\\\n}\\\\n\\\\n.p-multiselect-overlay {\\\\n    position: absolute;\\\\n    top: 0;\\\\n    left: 0;\\\\n    background: \\\").concat(e(\\\"multiselect.overlay.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.overlay.color\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"multiselect.overlay.border.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"multiselect.overlay.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"multiselect.overlay.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-header {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    padding: \\\").concat(e(\\\"multiselect.list.header.padding\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-header .p-checkbox {\\\\n    margin-inline-end: \\\").concat(e(\\\"multiselect.option.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-filter-container {\\\\n    flex: 1 1 auto;\\\\n}\\\\n\\\\n.p-multiselect-filter {\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-multiselect-list-container {\\\\n    overflow: auto;\\\\n}\\\\n\\\\n.p-multiselect-list {\\\\n    margin: 0;\\\\n    padding: 0;\\\\n    list-style-type: none;\\\\n    padding: \\\").concat(e(\\\"multiselect.list.padding\\\"),\\\";\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    gap: \\\").concat(e(\\\"multiselect.list.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option {\\\\n    cursor: pointer;\\\\n    font-weight: normal;\\\\n    white-space: nowrap;\\\\n    position: relative;\\\\n    overflow: hidden;\\\\n    display: flex;\\\\n    align-items: center;\\\\n    gap: \\\").concat(e(\\\"multiselect.option.gap\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"multiselect.option.padding\\\"),\\\";\\\\n    border: 0 none;\\\\n    color: \\\").concat(e(\\\"multiselect.option.color\\\"),\\\";\\\\n    background: transparent;\\\\n    transition: background \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"multiselect.option.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {\\\\n    background: \\\").concat(e(\\\"multiselect.option.focus.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.option.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option.p-multiselect-option-selected {\\\\n    background: \\\").concat(e(\\\"multiselect.option.selected.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.option.selected.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option.p-multiselect-option-selected.p-focus {\\\\n    background: \\\").concat(e(\\\"multiselect.option.selected.focus.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.option.selected.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option-group {\\\\n    cursor: auto;\\\\n    margin: 0;\\\\n    padding: \\\").concat(e(\\\"multiselect.option.group.padding\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"multiselect.option.group.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.option.group.color\\\"),\\\";\\\\n    font-weight: \\\").concat(e(\\\"multiselect.option.group.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-empty-message {\\\\n    padding: \\\").concat(e(\\\"multiselect.empty.message.padding\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label .p-chip {\\\\n    padding-block-start: calc(\\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" / 2);\\\\n    padding-block-end: calc(\\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" / 2);\\\\n    border-radius: \\\").concat(e(\\\"multiselect.chip.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label:has(.p-chip) {\\\\n    padding: calc(\\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" / 2) calc(\\\").concat(e(\\\"multiselect.padding.x\\\"),\\\" / 2);\\\\n}\\\\n\\\\n.p-multiselect-fluid {\\\\n    display: flex;\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-multiselect-sm .p-multiselect-label {\\\\n    font-size: \\\").concat(e(\\\"multiselect.sm.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"multiselect.sm.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"multiselect.sm.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-sm .p-multiselect-dropdown .p-icon {\\\\n    font-size: \\\").concat(e(\\\"multiselect.sm.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"multiselect.sm.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"multiselect.sm.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-lg .p-multiselect-label {\\\\n    font-size: \\\").concat(e(\\\"multiselect.lg.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"multiselect.lg.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"multiselect.lg.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-lg .p-multiselect-dropdown .p-icon {\\\\n    font-size: \\\").concat(e(\\\"multiselect.lg.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"multiselect.lg.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"multiselect.lg.font.size\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-multiselect p-component p-inputwrapper\\\",{\\\"p-multiselect-display-chip\\\":\\\"chip\\\"===n.display,\\\"p-disabled\\\":n.disabled,\\\"p-invalid\\\":e.$invalid,\\\"p-variant-filled\\\":\\\"filled\\\"===e.$variant,\\\"p-focus\\\":e.focused,\\\"p-inputwrapper-filled\\\":e.$filled,\\\"p-inputwrapper-focus\\\":e.focused||e.overlayVisible,\\\"p-multiselect-open\\\":e.overlayVisible,\\\"p-multiselect-fluid\\\":e.$fluid,\\\"p-multiselect-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-multiselect-lg p-inputfield-lg\\\":\\\"large\\\"===n.size}]},labelContainer:\\\"p-multiselect-label-container\\\",label:function(t){var e=t.instance,n=t.props;return[\\\"p-multiselect-label\\\",{\\\"p-placeholder\\\":e.label===n.placeholder,\\\"p-multiselect-label-empty\\\":!(n.placeholder||n.modelValue\\u0026\\u00260!==n.modelValue.length)}]},clearIcon:\\\"p-multiselect-clear-icon\\\",chipItem:\\\"p-multiselect-chip-item\\\",pcChip:\\\"p-multiselect-chip\\\",chipIcon:\\\"p-multiselect-chip-icon\\\",dropdown:\\\"p-multiselect-dropdown\\\",loadingIcon:\\\"p-multiselect-loading-icon\\\",dropdownIcon:\\\"p-multiselect-dropdown-icon\\\",overlay:\\\"p-multiselect-overlay p-component\\\",header:\\\"p-multiselect-header\\\",pcFilterContainer:\\\"p-multiselect-filter-container\\\",pcFilter:\\\"p-multiselect-filter\\\",listContainer:\\\"p-multiselect-list-container\\\",list:\\\"p-multiselect-list\\\",optionGroup:\\\"p-multiselect-option-group\\\",option:function(t){var e=t.instance,n=t.option,o=t.index,i=t.getItemOptions,r=t.props;return[\\\"p-multiselect-option\\\",{\\\"p-multiselect-option-selected\\\":e.isSelected(n)\\u0026\\u0026r.highlightOnSelect,\\\"p-focus\\\":e.focusedOptionIndex===e.getOptionIndex(o,i),\\\"p-disabled\\\":e.isOptionDisabled(n)}]},emptyMessage:\\\"p-multiselect-empty-message\\\"},inlineStyles:{root:function(t){return{position:\\\"self\\\"===t.props.appendTo?\\\"relative\\\":void 0}}}});function Fn(t){return(Fn=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\u0026\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function Kn(t){for(var e=1;e\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?An(Object(n),!0).forEach((function(e){Dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Fn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Fn(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Fn(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bn(t){return function(t){if(Array.isArray(t))return Hn(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return Hn(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hn(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function Hn(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}var jn={name:\\\"MultiSelect\\\",extends:{name:\\\"BaseMultiSelect\\\",extends:zt,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:\\\"14rem\\\"},placeholder:String,inputId:{type:String,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},overlayClass:{type:String,default:null},overlayStyle:{type:null,default:null},dataKey:null,showClear:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},resetFilterOnClear:{type:Boolean,default:!1},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:\\\"contains\\\"},filterFields:{type:Array,default:null},appendTo:{type:[String,Object],default:\\\"body\\\"},display:{type:String,default:\\\"comma\\\"},selectedItemsLabel:{type:String,default:null},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},checkboxIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},chipIcon:{type:String,default:void 0},selectAll:{type:Boolean,default:null},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:Pn,provide:function(){return{$pcMultiSelect:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\",\\\"focus\\\",\\\"blur\\\",\\\"before-show\\\",\\\"before-hide\\\",\\\"show\\\",\\\"hide\\\",\\\"filter\\\",\\\"selectall-change\\\"],inject:{$pcFluid:{default:null}},outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,startRangeIndex:-1,searchTimeout:null,searchValue:\\\"\\\",selectOnFocus:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{\\\"$attrs.id\\\":function(t){this.id=t||Et()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Et(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler\\u0026\\u0026(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay\\u0026\\u0026(Q.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,e){return this.virtualScrollerDisabled?t:e\\u0026\\u0026e(t).index},getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t,e){return this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t)+\\\"_\\\".concat(e)},getHeaderCheckboxPTOptions:function(t){return this.ptm(t,{context:{selected:this.allSelected}})},getCheckboxPTOptions:function(t,e,n,o){return this.ptm(o,{context:{selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(n,e),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return!(!this.maxSelectionLimitReached||this.isSelected(t))||!!this.optionDisabled\\u0026\\u0026tt(t,this.optionDisabled)},isOptionGroup:function(t){return this.optionGroupLabel\\u0026\\u0026t.optionGroup\\u0026\\u0026t.group},getOptionGroupLabel:function(t){return tt(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return tt(t,this.optionGroupChildren)},getAriaPosInset:function(t){var e=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter((function(t){return e.isOptionGroup(t)})).length:t)+1},show:function(t){this.$emit(\\\"before-show\\\"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),t\\u0026\\u0026et(this.$refs.focusInput)},hide:function(t){var e=this;setTimeout((function(){e.$emit(\\\"before-hide\\\"),e.overlayVisible=!1,e.clicked=!1,e.focusedOptionIndex=-1,e.searchValue=\\\"\\\",e.resetFilterOnHide\\u0026\\u0026(e.filterValue=null),t\\u0026\\u0026et(e.$refs.focusInput)}),0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible\\u0026\\u0026(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit(\\\"focus\\\",t))},onBlur:function(t){var e,n;this.clicked=!1,this.focused=!1,this.focusedOptionIndex=-1,this.searchValue=\\\"\\\",this.$emit(\\\"blur\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n)},onKeyDown:function(t){var e=this;if(this.disabled)t.preventDefault();else{var n=t.metaKey||t.ctrlKey;switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t);break;case\\\"Home\\\":this.onHomeKey(t);break;case\\\"End\\\":this.onEndKey(t);break;case\\\"PageDown\\\":this.onPageDownKey(t);break;case\\\"PageUp\\\":this.onPageUpKey(t);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":case\\\"Space\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t);break;case\\\"ShiftLeft\\\":case\\\"ShiftRight\\\":this.onShiftKey(t);break;default:if(\\\"KeyA\\\"===t.code\\u0026\\u0026n){var o=this.visibleOptions.filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,o),t.preventDefault();break}!n\\u0026\\u0026ot(t.key)\\u0026\\u0026(!this.overlayVisible\\u0026\\u0026this.show(),this.searchOptions(t),t.preventDefault())}this.clicked=!1}},onContainerClick:function(t){this.disabled||this.loading||\\\"INPUT\\\"===t.target.tagName||\\\"clearicon\\\"===t.target.getAttribute(\\\"data-pc-section\\\")||t.target.closest('[data-pc-section=\\\"clearicon\\\"]')||(this.overlay\\u0026\\u0026this.overlay.contains(t.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear\\u0026\\u0026(this.filterValue=null)},onFirstHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?it(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])'):this.$refs.focusInput;et(e)},onLastHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?rt(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])'):this.$refs.focusInput;et(e)},onOptionSelect:function(t,e){var n=this,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]?arguments[2]:-1,i=arguments.length\\u003e3\\u0026\\u0026void 0!==arguments[3]\\u0026\\u0026arguments[3];if(!this.disabled\\u0026\\u0026!this.isOptionDisabled(e)){var r=null;r=this.isSelected(e)?this.d_value.filter((function(t){return!dt(t,n.getOptionValue(e),n.equalityKey)})):[].concat(Bn(this.d_value||[]),[this.getOptionValue(e)]),this.updateModel(t,r),-1!==o\\u0026\\u0026(this.focusedOptionIndex=o),i\\u0026\\u0026et(this.$refs.focusInput)}},onOptionMouseMove:function(t,e){this.focusOnHover\\u0026\\u0026this.changeFocusedOptionIndex(t,e)},onOptionSelectRange:function(t){var e=this,n=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:-1,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]?arguments[2]:-1;if(-1===n\\u0026\\u0026(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o\\u0026\\u0026(o=this.findNearestSelectedOptionIndex(n)),-1!==n\\u0026\\u0026-1!==o){var i=Math.min(n,o),r=Math.max(n,o),s=this.visibleOptions.slice(i,r+1).filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,s)}},onFilterChange:function(t){var e=t.target.value;this.filterValue=e,this.focusedOptionIndex=-1,this.$emit(\\\"filter\\\",{originalEvent:t,value:e}),!this.virtualScrollerDisabled\\u0026\\u0026this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t,!0);break;case\\\"ArrowLeft\\\":case\\\"ArrowRight\\\":this.onArrowLeftKey(t,!0);break;case\\\"Home\\\":this.onHomeKey(t,!0);break;case\\\"End\\\":this.onEndKey(t,!0);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible\\u0026\\u0026this.alignOverlay()},onOverlayClick:function(t){Xe.emit(\\\"overlay-click\\\",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){if(\\\"Escape\\\"===t.code)this.onEscapeKey(t)},onArrowDownKey:function(t){if(this.overlayVisible){var e=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();t.shiftKey\\u0026\\u0026this.onOptionSelectRange(t,this.startRangeIndex,e),this.changeFocusedOptionIndex(t,e)}else this.show();t.preventDefault()},onArrowUpKey:function(t){var e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1];if(t.altKey\\u0026\\u0026!e)-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\u0026\\u0026this.hide(),t.preventDefault();else{var n=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();t.shiftKey\\u0026\\u0026this.onOptionSelectRange(t,n,this.startRangeIndex),this.changeFocusedOptionIndex(t,n),!this.overlayVisible\\u0026\\u0026this.show(),t.preventDefault()}},onArrowLeftKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]\\u0026\\u0026(this.focusedOptionIndex=-1)},onHomeKey:function(t){if(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]){var e=t.currentTarget;t.shiftKey?e.setSelectionRange(0,t.target.selectionStart):(e.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else{var n=t.metaKey||t.ctrlKey,o=this.findFirstOptionIndex();t.shiftKey\\u0026\\u0026n\\u0026\\u0026this.onOptionSelectRange(t,o,this.startRangeIndex),this.changeFocusedOptionIndex(t,o),!this.overlayVisible\\u0026\\u0026this.show()}t.preventDefault()},onEndKey:function(t){if(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]){var e=t.currentTarget;if(t.shiftKey)e.setSelectionRange(t.target.selectionStart,e.value.length);else{var n=e.value.length;e.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else{var o=t.metaKey||t.ctrlKey,i=this.findLastOptionIndex();t.shiftKey\\u0026\\u0026o\\u0026\\u0026this.onOptionSelectRange(t,this.startRangeIndex,i),this.changeFocusedOptionIndex(t,i),!this.overlayVisible\\u0026\\u0026this.show()}t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?-1!==this.focusedOptionIndex\\u0026\\u0026(t.shiftKey?this.onOptionSelectRange(t,this.focusedOptionIndex):this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex])):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onEscapeKey:function(t){this.overlayVisible\\u0026\\u0026this.hide(!0),t.preventDefault()},onTabKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]||(this.overlayVisible\\u0026\\u0026this.hasFocusableElements()?(et(t.shiftKey?this.$refs.lastHiddenFocusableElementOnOverlay:this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\u0026\\u0026this.hide(this.filter)))},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onOverlayEnter:function(t){Q.set(\\\"overlay\\\",t,this.$primevue.config.zIndex.overlay),st(t,{position:\\\"absolute\\\",top:\\\"0\\\",left:\\\"0\\\"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus\\u0026\\u0026et(this.$refs.filterInput.$el)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(\\\"show\\\")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit(\\\"hide\\\"),this.overlay=null},onOverlayAfterLeave:function(t){Q.clear(t)},alignOverlay:function(){\\\"self\\\"===this.appendTo?lt(this.overlay,this.$el):(this.overlay.style.minWidth=G(this.$el)+\\\"px\\\",at(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){t.overlayVisible\\u0026\\u0026t.isOutsideClicked(e)\\u0026\\u0026t.hide()},document.addEventListener(\\\"click\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\u0026\\u0026(document.removeEventListener(\\\"click\\\",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Tt(this.$refs.container,(function(){t.overlayVisible\\u0026\\u0026t.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler\\u0026\\u0026this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible\\u0026\\u0026!ct()\\u0026\\u0026t.hide()},window.addEventListener(\\\"resize\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\u0026\\u0026(window.removeEventListener(\\\"resize\\\",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(t){return!(this.$el.isSameNode(t.target)||this.$el.contains(t.target)||this.overlay\\u0026\\u0026this.overlay.contains(t.target))},getLabelByValue:function(t){var e=this,n=(this.optionGroupLabel?this.flatOptions(this.options):this.options||[]).find((function(n){return!e.isOptionGroup(n)\\u0026\\u0026dt(e.getOptionValue(n),t,e.equalityKey)}));return n?this.getOptionLabel(n):null},getSelectedItemsLabel:function(){var t=/{(.*?)}/,e=this.selectedItemsLabel||this.$primevue.config.locale.selectionMessage;return t.test(e)?e.replace(e.match(t)[0],this.d_value.length+\\\"\\\"):e},onToggleAll:function(t){var e=this;if(null!==this.selectAll)this.$emit(\\\"selectall-change\\\",{originalEvent:t,checked:!this.allSelected});else{var n=this.allSelected?[]:this.visibleOptions.filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,n)}},removeOption:function(t,e){var n=this;t.stopPropagation();var o=this.d_value.filter((function(t){return!dt(t,e,n.equalityKey)}));this.updateModel(t,o)},clearFilter:function(){this.filterValue=null},hasFocusableElements:function(){return ut(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])').length\\u003e0},isOptionMatched:function(t){var e;return this.isValidOption(t)\\u0026\\u0026\\\"string\\\"==typeof this.getOptionLabel(t)\\u0026\\u0026(null===(e=this.getOptionLabel(t))||void 0===e?void 0:e.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return K(t)\\u0026\\u0026!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)\\u0026\\u0026this.isSelected(t)},isEquals:function(t,e){return dt(t,e,this.equalityKey)},isSelected:function(t){var e=this,n=this.getOptionValue(t);return(this.d_value||[]).some((function(t){return e.isEquals(t,n)}))},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex((function(e){return t.isValidOption(e)}))},findLastOptionIndex:function(){var t=this;return pt(this.visibleOptions,(function(e){return t.isValidOption(e)}))},findNextOptionIndex:function(t){var e=this,n=t\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidOption(t)})):-1;return n\\u003e-1?n+t+1:t},findPrevOptionIndex:function(t){var e=this,n=t\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidOption(t)})):-1;return n\\u003e-1?n:t},findSelectedOptionIndex:function(){var t=this;if(this.$filled)for(var e,n=function(){var e=t.d_value[o],n=t.visibleOptions.findIndex((function(n){return t.isValidSelectedOption(n)\\u0026\\u0026t.isEquals(e,t.getOptionValue(n))}));if(n\\u003e-1)return{v:n}},o=this.d_value.length-1;o\\u003e=0;o--)if(e=n())return e.v;return-1},findFirstSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex((function(e){return t.isValidSelectedOption(e)})):-1},findLastSelectedOptionIndex:function(){var t=this;return this.$filled?pt(this.visibleOptions,(function(e){return t.isValidSelectedOption(e)})):-1},findNextSelectedOptionIndex:function(t){var e=this,n=this.$filled\\u0026\\u0026t\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidSelectedOption(t)})):-1;return n\\u003e-1?n+t+1:-1},findPrevSelectedOptionIndex:function(t){var e=this,n=this.$filled\\u0026\\u0026t\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidSelectedOption(t)})):-1;return n\\u003e-1?n:-1},findNearestSelectedOptionIndex:function(t){var e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1],n=-1;return this.$filled\\u0026\\u0026(n=e?-1===(n=this.findPrevSelectedOptionIndex(t))?this.findNextSelectedOptionIndex(t):n:-1===(n=this.findNextSelectedOptionIndex(t))?this.findPrevSelectedOptionIndex(t):n),n\\u003e-1?n:t},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\u003c0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\u003c0?this.findLastOptionIndex():t},searchOptions:function(t){var e=this;this.searchValue=(this.searchValue||\\\"\\\")+t.key;var n=-1;K(this.searchValue)\\u0026\\u0026(-1===(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(t){return e.isOptionMatched(t)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(t){return e.isOptionMatched(t)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(t){return e.isOptionMatched(t)})))\\u0026\\u0026-1===this.focusedOptionIndex\\u0026\\u0026(n=this.findFirstFocusedOptionIndex()),-1!==n\\u0026\\u0026this.changeFocusedOptionIndex(t,n)),this.searchTimeout\\u0026\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){e.searchValue=\\\"\\\",e.searchTimeout=null}),500)},changeFocusedOptionIndex:function(t,e){this.focusedOptionIndex!==e\\u0026\\u0026(this.focusedOptionIndex=e,this.scrollInView(),this.selectOnFocus\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[e]))},scrollInView:function(){var t=this,e=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var n=-1!==e?\\\"\\\".concat(t.id,\\\"_\\\").concat(e):t.focusedOptionId,o=J(t.list,'li[id=\\\"'.concat(n,'\\\"]'));o?o.scrollIntoView\\u0026\\u0026o.scrollIntoView({block:\\\"nearest\\\",inline:\\\"nearest\\\"}):t.virtualScrollerDisabled||t.virtualScroller\\u0026\\u0026t.virtualScroller.scrollToIndex(-1!==e?e:t.focusedOptionIndex)}))},autoUpdateModel:function(){if(this.selectOnFocus\\u0026\\u0026this.autoOptionFocus\\u0026\\u0026!this.$filled){this.focusedOptionIndex=this.findFirstFocusedOptionIndex();var t=this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);this.updateModel(null,[t])}},updateModel:function(t,e){this.writeValue(e,t),this.$emit(\\\"change\\\",{originalEvent:t,value:e})},flatOptions:function(t){var e=this;return(t||[]).reduce((function(t,n,o){t.push({optionGroup:n,group:!0,index:o});var i=e.getOptionGroupChildren(n);return i\\u0026\\u0026i.forEach((function(e){return t.push(e)})),t}),[])},overlayRef:function(t){this.overlay=t},listRef:function(t,e){this.list=t,e\\u0026\\u0026e(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=_t.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach((function(e){var o=t.getOptionGroupChildren(e).filter((function(t){return n.includes(t)}));o.length\\u003e0\\u0026\\u0026i.push(Kn(Kn({},e),{},Dn({},\\\"string\\\"==typeof t.optionGroupChildren?t.optionGroupChildren:\\\"items\\\",Bn(o))))})),this.flatOptions(i)}return n}return e},label:function(){var t;if(this.d_value\\u0026\\u0026this.d_value.length){if(K(this.maxSelectedLabels)\\u0026\\u0026this.d_value.length\\u003ethis.maxSelectedLabels)return this.getSelectedItemsLabel();t=\\\"\\\";for(var e=0;e\\u003cthis.d_value.length;e++)0!==e\\u0026\\u0026(t+=\\\", \\\"),t+=this.getLabelByValue(this.d_value[e])}else t=this.placeholder;return t},chipSelectedItems:function(){return K(this.maxSelectedLabels)\\u0026\\u0026this.d_value\\u0026\\u0026this.d_value.length\\u003ethis.maxSelectedLabels},allSelected:function(){var t=this;return null!==this.selectAll?this.selectAll:K(this.visibleOptions)\\u0026\\u0026this.visibleOptions.every((function(e){return t.isOptionGroup(e)||t.isOptionDisabled(e)||t.isSelected(e)}))},hasSelectedOption:function(){return this.$filled},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},maxSelectionLimitReached:function(){return this.selectionLimit\\u0026\\u0026this.d_value\\u0026\\u0026this.d_value.length===this.selectionLimit},filterResultMessageText:function(){return K(this.visibleOptions)?this.filterMessageText.replaceAll(\\\"{0}\\\",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||\\\"\\\"},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||\\\"\\\"},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||\\\"\\\"},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||\\\"\\\"},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||\\\"\\\"},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(\\\"{0}\\\",this.d_value.length):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?\\\"\\\".concat(this.id,\\\"_\\\").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter((function(e){return!t.isOptionGroup(e)})).length},toggleAllAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[this.allSelected?\\\"selectAll\\\":\\\"unselectAll\\\"]:void 0},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},hasFluid:function(){return D(this.fluid)?!!this.$pcFluid:this.fluid},isClearIconVisible:function(){return this.showClear\\u0026\\u0026null!=this.d_value\\u0026\\u0026K(this.options)}},directives:{ripple:De},components:{InputText:We,Checkbox:Cn,VirtualScroller:nn,Portal:Ye,Chip:_n,IconField:Ue,InputIcon:Ne,TimesIcon:Mt,SearchIcon:Pt,ChevronDownIcon:Vt,SpinnerIcon:Ct,CheckIcon:Ft}};function Rn(t){return(Rn=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function Gn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Rn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Rn(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Rn(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Un=[\\\"id\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"tabindex\\\",\\\"aria-label\\\",\\\"aria-labelledby\\\",\\\"aria-expanded\\\",\\\"aria-controls\\\",\\\"aria-activedescendant\\\",\\\"aria-invalid\\\"],Nn={key:0},Wn=[\\\"id\\\",\\\"aria-label\\\"],qn=[\\\"id\\\"],Xn=[\\\"id\\\",\\\"aria-label\\\",\\\"aria-selected\\\",\\\"aria-disabled\\\",\\\"aria-setsize\\\",\\\"aria-posinset\\\",\\\"onClick\\\",\\\"onMousemove\\\",\\\"data-p-selected\\\",\\\"data-p-focused\\\",\\\"data-p-disabled\\\"];jn.render=function(t,e,n,o,i,r){var s=k(\\\"Chip\\\"),l=k(\\\"SpinnerIcon\\\"),a=k(\\\"Checkbox\\\"),c=k(\\\"InputText\\\"),u=k(\\\"SearchIcon\\\"),d=k(\\\"InputIcon\\\"),p=k(\\\"IconField\\\"),h=k(\\\"VirtualScroller\\\"),f=k(\\\"Portal\\\"),b=w(\\\"ripple\\\");return m(),g(\\\"div\\\",I({ref:\\\"container\\\",class:t.cx(\\\"root\\\"),style:t.sx(\\\"root\\\"),onClick:e[7]||(e[7]=function(){return r.onContainerClick\\u0026\\u0026r.onContainerClick.apply(r,arguments)})},t.ptmi(\\\"root\\\")),[C(\\\"div\\\",I({class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenInputContainer\\\"),{\\\"data-p-hidden-accessible\\\":!0}),[C(\\\"input\\\",I({ref:\\\"focusInput\\\",id:t.inputId,type:\\\"text\\\",readonly:\\\"\\\",disabled:t.disabled,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,role:\\\"combobox\\\",\\\"aria-label\\\":t.ariaLabel,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-haspopup\\\":\\\"listbox\\\",\\\"aria-expanded\\\":i.overlayVisible,\\\"aria-controls\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":i.focused?r.focusedOptionId:void 0,\\\"aria-invalid\\\":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\u0026\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onKeyDown\\u0026\\u0026r.onKeyDown.apply(r,arguments)})},t.ptm(\\\"hiddenInput\\\")),null,16,Un)],16),C(\\\"div\\\",I({class:t.cx(\\\"labelContainer\\\")},t.ptm(\\\"labelContainer\\\")),[C(\\\"div\\\",I({class:t.cx(\\\"label\\\")},t.ptm(\\\"label\\\")),[v(t.$slots,\\\"value\\\",{value:t.d_value,placeholder:t.placeholder},(function(){return[\\\"comma\\\"===t.display?(m(),g(_,{key:0},[y(x(r.label||\\\"empty\\\"),1)],64)):\\\"chip\\\"===t.display?(m(),g(_,{key:1},[r.chipSelectedItems?(m(),g(\\\"span\\\",Nn,x(r.label),1)):(m(!0),g(_,{key:1},M(t.d_value,(function(e){return m(),g(\\\"span\\\",I({key:r.getLabelByValue(e),class:t.cx(\\\"chipItem\\\"),ref_for:!0},t.ptm(\\\"chipItem\\\")),[v(t.$slots,\\\"chip\\\",{value:e,removeCallback:function(t){return r.removeOption(t,e)}},(function(){return[V(s,{class:z(t.cx(\\\"pcChip\\\")),label:r.getLabelByValue(e),removeIcon:t.chipIcon||t.removeTokenIcon,removable:\\\"\\\",unstyled:t.unstyled,onRemove:function(t){return r.removeOption(t,e)},pt:t.ptm(\\\"pcChip\\\")},{removeicon:L((function(){return[v(t.$slots,t.$slots.chipicon?\\\"chipicon\\\":\\\"removetokenicon\\\",{class:z(t.cx(\\\"chipIcon\\\")),item:e,removeCallback:function(t){return r.removeOption(t,e)}})]})),_:2},1032,[\\\"class\\\",\\\"label\\\",\\\"removeIcon\\\",\\\"unstyled\\\",\\\"onRemove\\\",\\\"pt\\\"])]}))],16)})),128)),t.d_value\\u0026\\u00260!==t.d_value.length?$(\\\"\\\",!0):(m(),g(_,{key:2},[y(x(t.placeholder||\\\"empty\\\"),1)],64))],64)):$(\\\"\\\",!0)]}))],16)],16),r.isClearIconVisible?v(t.$slots,\\\"clearicon\\\",{key:0,class:z(t.cx(\\\"clearIcon\\\")),clearCallback:r.onClearClick},(function(){return[(m(),S(E(t.clearIcon?\\\"i\\\":\\\"TimesIcon\\\"),I({ref:\\\"clearIcon\\\",class:[t.cx(\\\"clearIcon\\\"),t.clearIcon],onClick:r.onClearClick},t.ptm(\\\"clearIcon\\\"),{\\\"data-pc-section\\\":\\\"clearicon\\\"}),null,16,[\\\"class\\\",\\\"onClick\\\"]))]})):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"dropdown\\\")},t.ptm(\\\"dropdown\\\")),[t.loading?v(t.$slots,\\\"loadingicon\\\",{key:0,class:z(t.cx(\\\"loadingIcon\\\"))},(function(){return[t.loadingIcon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"loadingIcon\\\"),\\\"pi-spin\\\",t.loadingIcon],\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"loadingIcon\\\")),null,16)):(m(),S(l,I({key:1,class:t.cx(\\\"loadingIcon\\\"),spin:\\\"\\\",\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"loadingIcon\\\")),null,16,[\\\"class\\\"]))]})):v(t.$slots,\\\"dropdownicon\\\",{key:1,class:z(t.cx(\\\"dropdownIcon\\\"))},(function(){return[(m(),S(E(t.dropdownIcon?\\\"span\\\":\\\"ChevronDownIcon\\\"),I({class:[t.cx(\\\"dropdownIcon\\\"),t.dropdownIcon],\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"dropdownIcon\\\")),null,16,[\\\"class\\\"]))]}))],16),V(f,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\"p-connected-overlay\\\",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},t.ptm(\\\"transition\\\")),{default:L((function(){return[i.overlayVisible?(m(),g(\\\"div\\\",I({key:0,ref:r.overlayRef,style:[t.panelStyle,t.overlayStyle],class:[t.cx(\\\"overlay\\\"),t.panelClass,t.overlayClass],onClick:e[5]||(e[5]=function(){return r.onOverlayClick\\u0026\\u0026r.onOverlayClick.apply(r,arguments)}),onKeydown:e[6]||(e[6]=function(){return r.onOverlayKeyDown\\u0026\\u0026r.onOverlayKeyDown.apply(r,arguments)})},t.ptm(\\\"overlay\\\")),[C(\\\"span\\\",I({ref:\\\"firstHiddenFocusableElementOnOverlay\\\",role:\\\"presentation\\\",\\\"aria-hidden\\\":\\\"true\\\",class:\\\"p-hidden-accessible p-hidden-focusable\\\",tabindex:0,onFocus:e[3]||(e[3]=function(){return r.onFirstHiddenFocus\\u0026\\u0026r.onFirstHiddenFocus.apply(r,arguments)})},t.ptm(\\\"hiddenFirstFocusableEl\\\"),{\\\"data-p-hidden-accessible\\\":!0,\\\"data-p-hidden-focusable\\\":!0}),null,16),v(t.$slots,\\\"header\\\",{value:t.d_value,options:r.visibleOptions}),t.showToggleAll\\u0026\\u0026null==t.selectionLimit||t.filter?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"header\\\")},t.ptm(\\\"header\\\")),[t.showToggleAll\\u0026\\u0026null==t.selectionLimit?(m(),S(a,{key:0,modelValue:r.allSelected,binary:!0,disabled:t.disabled,variant:t.variant,\\\"aria-label\\\":r.toggleAllAriaLabel,onChange:r.onToggleAll,unstyled:t.unstyled,pt:r.getHeaderCheckboxPTOptions(\\\"pcHeaderCheckbox\\\")},{icon:L((function(e){return[t.$slots.headercheckboxicon?(m(),S(E(t.$slots.headercheckboxicon),{key:0,checked:e.checked,class:z(e.class)},null,8,[\\\"checked\\\",\\\"class\\\"])):e.checked?(m(),S(E(t.checkboxIcon?\\\"span\\\":\\\"CheckIcon\\\"),I({key:1,class:[e.class,Gn({},t.checkboxIcon,e.checked)]},r.getHeaderCheckboxPTOptions(\\\"pcHeaderCheckbox.icon\\\")),null,16,[\\\"class\\\"])):$(\\\"\\\",!0)]})),_:1},8,[\\\"modelValue\\\",\\\"disabled\\\",\\\"variant\\\",\\\"aria-label\\\",\\\"onChange\\\",\\\"unstyled\\\",\\\"pt\\\"])):$(\\\"\\\",!0),t.filter?(m(),S(p,{key:1,class:z(t.cx(\\\"pcFilterContainer\\\")),unstyled:t.unstyled,pt:t.ptm(\\\"pcFilterContainer\\\")},{default:L((function(){return[V(c,{ref:\\\"filterInput\\\",value:i.filterValue,onVnodeMounted:r.onFilterUpdated,onVnodeUpdated:r.onFilterUpdated,class:z(t.cx(\\\"pcFilter\\\")),placeholder:t.filterPlaceholder,disabled:t.disabled,variant:t.variant,unstyled:t.unstyled,role:\\\"searchbox\\\",autocomplete:\\\"off\\\",\\\"aria-owns\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":r.focusedOptionId,onKeydown:r.onFilterKeyDown,onBlur:r.onFilterBlur,onInput:r.onFilterChange,pt:t.ptm(\\\"pcFilter\\\")},null,8,[\\\"value\\\",\\\"onVnodeMounted\\\",\\\"onVnodeUpdated\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"variant\\\",\\\"unstyled\\\",\\\"aria-owns\\\",\\\"aria-activedescendant\\\",\\\"onKeydown\\\",\\\"onBlur\\\",\\\"onInput\\\",\\\"pt\\\"]),V(d,{unstyled:t.unstyled,pt:t.ptm(\\\"pcFilterIconContainer\\\")},{default:L((function(){return[v(t.$slots,\\\"filtericon\\\",{},(function(){return[t.filterIcon?(m(),g(\\\"span\\\",I({key:0,class:t.filterIcon},t.ptm(\\\"filterIcon\\\")),null,16)):(m(),S(u,F(I({key:1},t.ptm(\\\"filterIcon\\\"))),null,16))]}))]})),_:3},8,[\\\"unstyled\\\",\\\"pt\\\"])]})),_:3},8,[\\\"class\\\",\\\"unstyled\\\",\\\"pt\\\"])):$(\\\"\\\",!0),t.filter?(m(),g(\\\"span\\\",I({key:2,role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenFilterResult\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.filterResultMessageText),17)):$(\\\"\\\",!0)],16)):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"listContainer\\\"),style:{\\\"max-height\\\":r.virtualScrollerDisabled?t.scrollHeight:\\\"\\\"}},t.ptm(\\\"listContainer\\\")),[V(h,I({ref:r.virtualScrollerRef},t.virtualScrollerOptions,{items:r.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:t.ptm(\\\"virtualScroller\\\")}),A({content:L((function(e){var n=e.styleClass,o=e.contentRef,s=e.items,l=e.getItemOptions,c=e.contentStyle,u=e.itemSize;return[C(\\\"ul\\\",I({ref:function(t){return r.listRef(t,o)},id:i.id+\\\"_list\\\",class:[t.cx(\\\"list\\\"),n],style:c,role:\\\"listbox\\\",\\\"aria-multiselectable\\\":\\\"true\\\",\\\"aria-label\\\":r.listAriaLabel},t.ptm(\\\"list\\\")),[(m(!0),g(_,null,M(s,(function(e,n){return m(),g(_,{key:r.getOptionRenderKey(e,r.getOptionIndex(n,l))},[r.isOptionGroup(e)?(m(),g(\\\"li\\\",I({key:0,id:i.id+\\\"_\\\"+r.getOptionIndex(n,l),style:{height:u?u+\\\"px\\\":void 0},class:t.cx(\\\"optionGroup\\\"),role:\\\"option\\\",ref_for:!0},t.ptm(\\\"optionGroup\\\")),[v(t.$slots,\\\"optiongroup\\\",{option:e.optionGroup,index:r.getOptionIndex(n,l)},(function(){return[y(x(r.getOptionGroupLabel(e.optionGroup)),1)]}))],16,qn)):O((m(),g(\\\"li\\\",I({key:1,id:i.id+\\\"_\\\"+r.getOptionIndex(n,l),style:{height:u?u+\\\"px\\\":void 0},class:t.cx(\\\"option\\\",{option:e,index:n,getItemOptions:l}),role:\\\"option\\\",\\\"aria-label\\\":r.getOptionLabel(e),\\\"aria-selected\\\":r.isSelected(e),\\\"aria-disabled\\\":r.isOptionDisabled(e),\\\"aria-setsize\\\":r.ariaSetSize,\\\"aria-posinset\\\":r.getAriaPosInset(r.getOptionIndex(n,l)),onClick:function(t){return r.onOptionSelect(t,e,r.getOptionIndex(n,l),!0)},onMousemove:function(t){return r.onOptionMouseMove(t,r.getOptionIndex(n,l))},ref_for:!0},r.getCheckboxPTOptions(e,l,n,\\\"option\\\"),{\\\"data-p-selected\\\":r.isSelected(e),\\\"data-p-focused\\\":i.focusedOptionIndex===r.getOptionIndex(n,l),\\\"data-p-disabled\\\":r.isOptionDisabled(e)}),[V(a,{defaultValue:r.isSelected(e),binary:!0,tabindex:-1,variant:t.variant,unstyled:t.unstyled,pt:r.getCheckboxPTOptions(e,l,n,\\\"pcOptionCheckbox\\\")},{icon:L((function(o){return[t.$slots.optioncheckboxicon||t.$slots.itemcheckboxicon?(m(),S(E(t.$slots.optioncheckboxicon||t.$slots.itemcheckboxicon),{key:0,checked:o.checked,class:z(o.class)},null,8,[\\\"checked\\\",\\\"class\\\"])):o.checked?(m(),S(E(t.checkboxIcon?\\\"span\\\":\\\"CheckIcon\\\"),I({key:1,class:[o.class,Gn({},t.checkboxIcon,o.checked)],ref_for:!0},r.getCheckboxPTOptions(e,l,n,\\\"pcOptionCheckbox.icon\\\")),null,16,[\\\"class\\\"])):$(\\\"\\\",!0)]})),_:2},1032,[\\\"defaultValue\\\",\\\"variant\\\",\\\"unstyled\\\",\\\"pt\\\"]),v(t.$slots,\\\"option\\\",{option:e,selected:r.isSelected(e),index:r.getOptionIndex(n,l)},(function(){return[C(\\\"span\\\",I({ref_for:!0},t.ptm(\\\"optionLabel\\\")),x(r.getOptionLabel(e)),17)]}))],16,Xn)),[[b]])],64)})),128)),i.filterValue\\u0026\\u0026(!s||s\\u0026\\u00260===s.length)?(m(),g(\\\"li\\\",I({key:0,class:t.cx(\\\"emptyMessage\\\"),role:\\\"option\\\"},t.ptm(\\\"emptyMessage\\\")),[v(t.$slots,\\\"emptyfilter\\\",{},(function(){return[y(x(r.emptyFilterMessageText),1)]}))],16)):!t.options||t.options\\u0026\\u00260===t.options.length?(m(),g(\\\"li\\\",I({key:1,class:t.cx(\\\"emptyMessage\\\"),role:\\\"option\\\"},t.ptm(\\\"emptyMessage\\\")),[v(t.$slots,\\\"empty\\\",{},(function(){return[y(x(r.emptyMessageText),1)]}))],16)):$(\\\"\\\",!0)],16,Wn)]})),_:2},[t.$slots.loader?{name:\\\"loader\\\",fn:L((function(e){var n=e.options;return[v(t.$slots,\\\"loader\\\",{options:n})]})),key:\\\"0\\\"}:void 0]),1040,[\\\"items\\\",\\\"style\\\",\\\"disabled\\\",\\\"pt\\\"])],16),v(t.$slots,\\\"footer\\\",{value:t.d_value,options:r.visibleOptions}),!t.options||t.options\\u0026\\u00260===t.options.length?(m(),g(\\\"span\\\",I({key:1,role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenEmptyMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.emptyMessageText),17)):$(\\\"\\\",!0),C(\\\"span\\\",I({role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenSelectedMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.selectedMessageText),17),C(\\\"span\\\",I({ref:\\\"lastHiddenFocusableElementOnOverlay\\\",role:\\\"presentation\\\",\\\"aria-hidden\\\":\\\"true\\\",class:\\\"p-hidden-accessible p-hidden-focusable\\\",tabindex:0,onFocus:e[4]||(e[4]=function(){return r.onLastHiddenFocus\\u0026\\u0026r.onLastHiddenFocus.apply(r,arguments)})},t.ptm(\\\"hiddenLastFocusableEl\\\"),{\\\"data-p-hidden-accessible\\\":!0,\\\"data-p-hidden-focusable\\\":!0}),null,16)],16)):$(\\\"\\\",!0)]})),_:3},16,[\\\"onEnter\\\",\\\"onAfterEnter\\\",\\\"onLeave\\\",\\\"onAfterLeave\\\"])]})),_:3},8,[\\\"appendTo\\\"])],16)};var Yn=St.extend({name:\\\"slider\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-slider {\\\\n    position: relative;\\\\n    background: \\\".concat(e(\\\"slider.track.background\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"slider.track.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-handle {\\\\n    cursor: grab;\\\\n    touch-action: none;\\\\n    user-select: none;\\\\n    display: flex;\\\\n    justify-content: center;\\\\n    align-items: center;\\\\n    height: \\\").concat(e(\\\"slider.handle.height\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"slider.handle.width\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"slider.handle.background\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"slider.handle.border.radius\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"slider.transition.duration\\\"),\\\", color \\\").concat(e(\\\"slider.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"slider.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"slider.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"slider.transition.duration\\\"),';\\\\n    outline-color: transparent;\\\\n}\\\\n\\\\n.p-slider-handle::before {\\\\n    content: \\\"\\\";\\\\n    width: ').concat(e(\\\"slider.handle.content.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"slider.handle.content.height\\\"),\\\";\\\\n    display: block;\\\\n    background: \\\").concat(e(\\\"slider.handle.content.background\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"slider.handle.content.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"slider.handle.content.shadow\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"slider.transition.duration\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\\\\n    background: \\\").concat(e(\\\"slider.handle.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider:not(.p-disabled) .p-slider-handle:hover::before {\\\\n    background: \\\").concat(e(\\\"slider.handle.content.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-handle:focus-visible {\\\\n    box-shadow: \\\").concat(e(\\\"slider.handle.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"slider.handle.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"slider.handle.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"slider.handle.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"slider.handle.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-range {\\\\n    display: block;\\\\n    background: \\\").concat(e(\\\"slider.range.background\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"slider.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider.p-slider-horizontal {\\\\n    height: \\\").concat(e(\\\"slider.track.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-horizontal .p-slider-range {\\\\n    inset-block-start: 0;\\\\n    inset-inline-start: 0;\\\\n    height: 100%;\\\\n}\\\\n\\\\n.p-slider-horizontal .p-slider-handle {\\\\n    inset-block-start: 50%;\\\\n    margin-block-start: calc(-1 * calc(\\\").concat(e(\\\"slider.handle.height\\\"),\\\" / 2));\\\\n    margin-inline-start: calc(-1 * calc(\\\").concat(e(\\\"slider.handle.width\\\"),\\\" / 2));\\\\n}\\\\n\\\\n.p-slider-vertical {\\\\n    min-height: 100px;\\\\n    width: \\\").concat(e(\\\"slider.track.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-vertical .p-slider-handle {\\\\n    inset-inline-start: 50%;\\\\n    margin-inline-start: calc(-1 * calc(\\\").concat(e(\\\"slider.handle.width\\\"),\\\" / 2));\\\\n    margin-block-end: calc(-1 * calc(\\\").concat(e(\\\"slider.handle.height\\\"),\\\" / 2));\\\\n}\\\\n\\\\n.p-slider-vertical .p-slider-range {\\\\n    inset-block-end: 0;\\\\n    inset-inline-start: 0;\\\\n    width: 100%;\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-slider p-component\\\",{\\\"p-disabled\\\":n.disabled,\\\"p-invalid\\\":e.$invalid,\\\"p-slider-horizontal\\\":\\\"horizontal\\\"===n.orientation,\\\"p-slider-vertical\\\":\\\"vertical\\\"===n.orientation}]},range:\\\"p-slider-range\\\",handle:\\\"p-slider-handle\\\"},inlineStyles:{handle:{position:\\\"absolute\\\"},range:{position:\\\"absolute\\\"}}});function Zn(t){return function(t){if(Array.isArray(t))return Jn(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return Jn(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jn(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function Jn(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}var Qn={name:\\\"Slider\\\",extends:{name:\\\"BaseSlider\\\",extends:Bt,props:{min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:\\\"horizontal\\\"},step:{type:Number,default:null},range:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Yn,provide:function(){return{$pcSlider:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\",\\\"slideend\\\"],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var t=this.$el.getBoundingClientRect();this.initX=t.left+bt(),this.initY=t.top+mt(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue:function(t){var e,n=t.touches?t.touches[0].pageX:t.pageX,o=t.touches?t.touches[0].pageY:t.pageY;e=\\\"horizontal\\\"===this.orientation?xt(this.$el)?100*(this.initX+this.barWidth-n)/this.barWidth:100*(n-this.initX)/this.barWidth:100*(this.initY+this.barHeight-o)/this.barHeight;var i=(this.max-this.min)*(e/100)+this.min;if(this.step){var r=this.range?this.value[this.handleIndex]:this.value,s=i-r;s\\u003c0?i=r+Math.ceil(i/this.step-r/this.step)*this.step:s\\u003e0\\u0026\\u0026(i=r+Math.floor(i/this.step-r/this.step)*this.step)}else i=Math.floor(i);this.updateModel(t,i)},updateModel:function(t,e){var n,o=parseFloat(e.toFixed(10));this.range?(n=this.value?Zn(this.value):[],0==this.handleIndex?(o\\u003cthis.min?o=this.min:o\\u003e=this.max\\u0026\\u0026(o=this.max),n[0]=o):(o\\u003ethis.max?o=this.max:o\\u003c=this.min\\u0026\\u0026(o=this.min),n[1]=o)):(o\\u003cthis.min?o=this.min:o\\u003ethis.max\\u0026\\u0026(o=this.max),n=o),this.writeValue(n,t),this.$emit(\\\"change\\\",n)},onDragStart:function(t,e){this.disabled||(this.$el.setAttribute(\\\"data-p-sliding\\\",!0),this.dragging=!0,this.updateDomData(),this.range\\u0026\\u0026this.value[0]===this.max?this.handleIndex=0:this.handleIndex=e,t.currentTarget.focus())},onDrag:function(t){this.dragging\\u0026\\u0026this.setValue(t)},onDragEnd:function(t){this.dragging\\u0026\\u0026(this.dragging=!1,this.$el.setAttribute(\\\"data-p-sliding\\\",!1),this.$emit(\\\"slideend\\\",{originalEvent:t,value:this.value}))},onBarClick:function(t){this.disabled||\\\"handle\\\"!==q(t.target,\\\"data-pc-section\\\")\\u0026\\u0026(this.updateDomData(),this.setValue(t))},onMouseDown:function(t,e){this.bindDragListeners(),this.onDragStart(t,e)},onKeyDown:function(t,e){switch(this.handleIndex=e,t.code){case\\\"ArrowDown\\\":case\\\"ArrowLeft\\\":this.decrementValue(t,e),t.preventDefault();break;case\\\"ArrowUp\\\":case\\\"ArrowRight\\\":this.incrementValue(t,e),t.preventDefault();break;case\\\"PageDown\\\":this.decrementValue(t,e,!0),t.preventDefault();break;case\\\"PageUp\\\":this.incrementValue(t,e,!0),t.preventDefault();break;case\\\"Home\\\":this.updateModel(t,this.min),t.preventDefault();break;case\\\"End\\\":this.updateModel(t,this.max),t.preventDefault()}},onBlur:function(t,e){var n,o;null===(n=(o=this.formField).onBlur)||void 0===n||n.call(o,t)},decrementValue:function(t,e){var n,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]\\u0026\\u0026arguments[2];n=this.range?this.step?this.value[e]-this.step:this.value[e]-1:this.step?this.value-this.step:!this.step\\u0026\\u0026o?this.value-10:this.value-1,this.updateModel(t,n),t.preventDefault()},incrementValue:function(t,e){var n,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]\\u0026\\u0026arguments[2];n=this.range?this.step?this.value[e]+this.step:this.value[e]+1:this.step?this.value+this.step:!this.step\\u0026\\u0026o?this.value+10:this.value+1,this.updateModel(t,n),t.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener(\\\"mousemove\\\",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener(\\\"mouseup\\\",this.dragEndListener))},unbindDragListeners:function(){this.dragListener\\u0026\\u0026(document.removeEventListener(\\\"mousemove\\\",this.dragListener),this.dragListener=null),this.dragEndListener\\u0026\\u0026(document.removeEventListener(\\\"mouseup\\\",this.dragEndListener),this.dragEndListener=null)},rangeStyle:function(){if(this.range){var t=this.rangeEndPosition\\u003ethis.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,e=this.rangeEndPosition\\u003ethis.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{\\\"inset-inline-start\\\":e+\\\"%\\\",width:t+\\\"%\\\"}:{bottom:e+\\\"%\\\",height:t+\\\"%\\\"}}return this.horizontal?{width:this.handlePosition+\\\"%\\\"}:{height:this.handlePosition+\\\"%\\\"}},handleStyle:function(){return this.horizontal?{\\\"inset-inline-start\\\":this.handlePosition+\\\"%\\\"}:{bottom:this.handlePosition+\\\"%\\\"}},rangeStartHandleStyle:function(){return this.horizontal?{\\\"inset-inline-start\\\":this.rangeStartPosition+\\\"%\\\"}:{bottom:this.rangeStartPosition+\\\"%\\\"}},rangeEndHandleStyle:function(){return this.horizontal?{\\\"inset-inline-start\\\":this.rangeEndPosition+\\\"%\\\"}:{bottom:this.rangeEndPosition+\\\"%\\\"}}},computed:{value:function(){var t,e,n,o,i;return this.range?[null!==(e=null===(n=this.d_value)||void 0===n?void 0:n[0])\\u0026\\u0026void 0!==e?e:this.min,null!==(o=null===(i=this.d_value)||void 0===i?void 0:i[1])\\u0026\\u0026void 0!==o?o:this.max]:null!==(t=this.d_value)\\u0026\\u0026void 0!==t?t:this.min},horizontal:function(){return\\\"horizontal\\\"===this.orientation},vertical:function(){return\\\"vertical\\\"===this.orientation},handlePosition:function(){return this.value\\u003cthis.min?0:this.value\\u003ethis.max?100:100*(this.value-this.min)/(this.max-this.min)},rangeStartPosition:function(){return this.value\\u0026\\u0026void 0!==this.value[0]?this.value[0]\\u003cthis.min?0:100*(this.value[0]-this.min)/(this.max-this.min):0},rangeEndPosition:function(){return this.value\\u0026\\u00262===this.value.length\\u0026\\u0026void 0!==this.value[1]?this.value[1]\\u003ethis.max?100:100*(this.value[1]-this.min)/(this.max-this.min):100}}},to=[\\\"tabindex\\\",\\\"aria-valuemin\\\",\\\"aria-valuenow\\\",\\\"aria-valuemax\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"aria-orientation\\\"],eo=[\\\"tabindex\\\",\\\"aria-valuemin\\\",\\\"aria-valuenow\\\",\\\"aria-valuemax\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"aria-orientation\\\"],no=[\\\"tabindex\\\",\\\"aria-valuemin\\\",\\\"aria-valuenow\\\",\\\"aria-valuemax\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"aria-orientation\\\"];Qn.render=function(t,e,n,o,i,r){return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\"),onClick:e[18]||(e[18]=function(){return r.onBarClick\\u0026\\u0026r.onBarClick.apply(r,arguments)})},t.ptmi(\\\"root\\\"),{\\\"data-p-sliding\\\":!1}),[C(\\\"span\\\",I({class:t.cx(\\\"range\\\"),style:[t.sx(\\\"range\\\"),r.rangeStyle()]},t.ptm(\\\"range\\\")),null,16),t.range?$(\\\"\\\",!0):(m(),g(\\\"span\\\",I({key:0,class:t.cx(\\\"handle\\\"),style:[t.sx(\\\"handle\\\"),r.handleStyle()],onTouchstartPassive:e[0]||(e[0]=function(t){return r.onDragStart(t)}),onTouchmovePassive:e[1]||(e[1]=function(t){return r.onDrag(t)}),onTouchend:e[2]||(e[2]=function(t){return r.onDragEnd(t)}),onMousedown:e[3]||(e[3]=function(t){return r.onMouseDown(t)}),onKeydown:e[4]||(e[4]=function(t){return r.onKeyDown(t)}),onBlur:e[5]||(e[5]=function(t){return r.onBlur(t)}),tabindex:t.tabindex,role:\\\"slider\\\",\\\"aria-valuemin\\\":t.min,\\\"aria-valuenow\\\":t.d_value,\\\"aria-valuemax\\\":t.max,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,\\\"aria-orientation\\\":t.orientation},t.ptm(\\\"handle\\\")),null,16,to)),t.range?(m(),g(\\\"span\\\",I({key:1,class:t.cx(\\\"handle\\\"),style:[t.sx(\\\"handle\\\"),r.rangeStartHandleStyle()],onTouchstartPassive:e[6]||(e[6]=function(t){return r.onDragStart(t,0)}),onTouchmovePassive:e[7]||(e[7]=function(t){return r.onDrag(t)}),onTouchend:e[8]||(e[8]=function(t){return r.onDragEnd(t)}),onMousedown:e[9]||(e[9]=function(t){return r.onMouseDown(t,0)}),onKeydown:e[10]||(e[10]=function(t){return r.onKeyDown(t,0)}),onBlur:e[11]||(e[11]=function(t){return r.onBlur(t,0)}),tabindex:t.tabindex,role:\\\"slider\\\",\\\"aria-valuemin\\\":t.min,\\\"aria-valuenow\\\":t.d_value?t.d_value[0]:null,\\\"aria-valuemax\\\":t.max,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,\\\"aria-orientation\\\":t.orientation},t.ptm(\\\"startHandler\\\")),null,16,eo)):$(\\\"\\\",!0),t.range?(m(),g(\\\"span\\\",I({key:2,class:t.cx(\\\"handle\\\"),style:[t.sx(\\\"handle\\\"),r.rangeEndHandleStyle()],onTouchstartPassive:e[12]||(e[12]=function(t){return r.onDragStart(t,1)}),onTouchmovePassive:e[13]||(e[13]=function(t){return r.onDrag(t)}),onTouchend:e[14]||(e[14]=function(t){return r.onDragEnd(t)}),onMousedown:e[15]||(e[15]=function(t){return r.onMouseDown(t,1)}),onKeydown:e[16]||(e[16]=function(t){return r.onKeyDown(t,1)}),onBlur:e[17]||(e[17]=function(t){return r.onBlur(t,1)}),tabindex:t.tabindex,role:\\\"slider\\\",\\\"aria-valuemin\\\":t.min,\\\"aria-valuenow\\\":t.d_value?t.d_value[1]:null,\\\"aria-valuemax\\\":t.max,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,\\\"aria-orientation\\\":t.orientation},t.ptm(\\\"endHandler\\\")),null,16,no)):$(\\\"\\\",!0)],16)};var oo={name:\\\"Card\\\",extends:{name:\\\"BaseCard\\\",extends:Lt,style:St.extend({name:\\\"card\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-card {\\\\n    background: \\\".concat(e(\\\"card.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"card.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"card.shadow\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"card.border.radius\\\"),\\\";\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n}\\\\n\\\\n.p-card-caption {\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    gap: \\\").concat(e(\\\"card.caption.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-card-body {\\\\n    padding: \\\").concat(e(\\\"card.body.padding\\\"),\\\";\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    gap: \\\").concat(e(\\\"card.body.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-card-title {\\\\n    font-size: \\\").concat(e(\\\"card.title.font.size\\\"),\\\";\\\\n    font-weight: \\\").concat(e(\\\"card.title.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-card-subtitle {\\\\n    color: \\\").concat(e(\\\"card.subtitle.color\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:\\\"p-card p-component\\\",header:\\\"p-card-header\\\",body:\\\"p-card-body\\\",caption:\\\"p-card-caption\\\",title:\\\"p-card-title\\\",subtitle:\\\"p-card-subtitle\\\",content:\\\"p-card-content\\\",footer:\\\"p-card-footer\\\"}}),provide:function(){return{$pcCard:this,$parentInstance:this}}},inheritAttrs:!1};oo.render=function(t,e,n,o,i,r){return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\")},t.ptmi(\\\"root\\\")),[t.$slots.header?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"header\\\")},t.ptm(\\\"header\\\")),[v(t.$slots,\\\"header\\\")],16)):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"body\\\")},t.ptm(\\\"body\\\")),[t.$slots.title||t.$slots.subtitle?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"caption\\\")},t.ptm(\\\"caption\\\")),[t.$slots.title?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"title\\\")},t.ptm(\\\"title\\\")),[v(t.$slots,\\\"title\\\")],16)):$(\\\"\\\",!0),t.$slots.subtitle?(m(),g(\\\"div\\\",I({key:1,class:t.cx(\\\"subtitle\\\")},t.ptm(\\\"subtitle\\\")),[v(t.$slots,\\\"subtitle\\\")],16)):$(\\\"\\\",!0)],16)):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"content\\\")},t.ptm(\\\"content\\\")),[v(t.$slots,\\\"content\\\")],16),t.$slots.footer?(m(),g(\\\"div\\\",I({key:1,class:t.cx(\\\"footer\\\")},t.ptm(\\\"footer\\\")),[v(t.$slots,\\\"footer\\\")],16)):$(\\\"\\\",!0)],16)],16)};var io=St.extend({name:\\\"contextmenu\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-contextmenu {\\\\n    background: \\\".concat(e(\\\"contextmenu.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"contextmenu.color\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"contextmenu.border.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"contextmenu.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"contextmenu.shadow\\\"),\\\";\\\\n    min-width: 12.5rem;\\\\n}\\\\n\\\\n.p-contextmenu-root-list,\\\\n.p-contextmenu-submenu {\\\\n    margin: 0;\\\\n    padding: \\\").concat(e(\\\"contextmenu.list.padding\\\"),\\\";\\\\n    list-style: none;\\\\n    outline: 0 none;\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    gap: \\\").concat(e(\\\"contextmenu.list.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-submenu {\\\\n    position: absolute;\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    min-width: 100%;\\\\n    z-index: 1;\\\\n    background: \\\").concat(e(\\\"contextmenu.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"contextmenu.color\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"contextmenu.border.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"contextmenu.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"contextmenu.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item {\\\\n    position: relative;\\\\n}\\\\n\\\\n.p-contextmenu-item-content {\\\\n    transition: background \\\").concat(e(\\\"contextmenu.transition.duration\\\"),\\\", color \\\").concat(e(\\\"contextmenu.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"contextmenu.item.border.radius\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"contextmenu.item.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item-link {\\\\n    cursor: pointer;\\\\n    display: flex;\\\\n    align-items: center;\\\\n    text-decoration: none;\\\\n    overflow: hidden;\\\\n    position: relative;\\\\n    color: inherit;\\\\n    padding: \\\").concat(e(\\\"contextmenu.item.padding\\\"),\\\";\\\\n    gap: \\\").concat(e(\\\"contextmenu.item.gap\\\"),\\\";\\\\n    user-select: none;\\\\n}\\\\n\\\\n.p-contextmenu-item-label {\\\\n    line-height: 1;\\\\n}\\\\n\\\\n.p-contextmenu-item-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.icon.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-submenu-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.submenu.icon.color\\\"),\\\";\\\\n    margin-left: auto;\\\\n    font-size: \\\").concat(e(\\\"contextmenu.submenu.icon.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"contextmenu.submenu.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"contextmenu.submenu.icon.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-submenu-icon:dir(rtl) {\\\\n    margin-left: 0;\\\\n    margin-right: auto;\\\\n}\\\\n\\\\n.p-contextmenu-item.p-focus \\u003e .p-contextmenu-item-content {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.focus.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"contextmenu.item.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item.p-focus \\u003e .p-contextmenu-item-content .p-contextmenu-item-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.icon.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item.p-focus \\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.submenu.icon.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item:not(.p-disabled) \\u003e .p-contextmenu-item-content:hover {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.focus.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"contextmenu.item.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item:not(.p-disabled) \\u003e .p-contextmenu-item-content:hover .p-contextmenu-item-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.icon.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item:not(.p-disabled) \\u003e .p-contextmenu-item-content:hover .p-contextmenu-submenu-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.submenu.icon.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item-active \\u003e .p-contextmenu-item-content {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.active.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"contextmenu.item.active.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item-active \\u003e .p-contextmenu-item-content .p-contextmenu-item-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.icon.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item-active \\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.submenu.icon.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-separator {\\\\n    border-block-start: 1px solid \\\").concat(e(\\\"contextmenu.separator.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-enter-from,\\\\n.p-contextmenu-leave-active {\\\\n    opacity: 0;\\\\n}\\\\n\\\\n.p-contextmenu-enter-active {\\\\n    transition: opacity 250ms;\\\\n}\\\\n\\\\n.p-contextmenu-mobile .p-contextmenu-submenu {\\\\n    position: static;\\\\n    box-shadow: none;\\\\n    border: 0 none;\\\\n    padding-inline-start: \\\").concat(e(\\\"tieredmenu.submenu.mobile.indent\\\"),\\\";\\\\n    padding-inline-end: 0;\\\\n}\\\\n\\\\n.p-contextmenu-mobile .p-contextmenu-submenu-icon {\\\\n    transition: transform 0.2s;\\\\n    transform: rotate(90deg);\\\\n}\\\\n\\\\n.p-contextmenu-mobile .p-contextmenu-item-active \\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\n    transform: rotate(-90deg);\\\\n}\\\\n\\\")},classes:{root:function(t){return[\\\"p-contextmenu p-component\\\",{\\\"p-contextmenu-mobile\\\":t.instance.queryMatches}]},rootList:\\\"p-contextmenu-root-list\\\",item:function(t){var e=t.instance,n=t.processedItem;return[\\\"p-contextmenu-item\\\",{\\\"p-contextmenu-item-active\\\":e.isItemActive(n),\\\"p-focus\\\":e.isItemFocused(n),\\\"p-disabled\\\":e.isItemDisabled(n)}]},itemContent:\\\"p-contextmenu-item-content\\\",itemLink:\\\"p-contextmenu-item-link\\\",itemIcon:\\\"p-contextmenu-item-icon\\\",itemLabel:\\\"p-contextmenu-item-label\\\",submenuIcon:\\\"p-contextmenu-submenu-icon\\\",submenu:\\\"p-contextmenu-submenu\\\",separator:\\\"p-contextmenu-separator\\\"}}),ro={name:\\\"BaseContextMenu\\\",extends:Lt,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:\\\"body\\\"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},breakpoint:{type:String,default:\\\"960px\\\"},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:io,provide:function(){return{$pcContextMenu:this,$parentInstance:this}}},so={name:\\\"ContextMenuSub\\\",hostName:\\\"ContextMenu\\\",extends:Lt,emits:[\\\"item-click\\\",\\\"item-mouseenter\\\",\\\"item-mousemove\\\"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(t){return\\\"\\\".concat(this.menuId,\\\"_\\\").concat(t.key)},getItemKey:function(t){return this.getItemId(t)},getItemProp:function(t,e,n){return t\\u0026\\u0026t.item?It(t.item[e],n):void 0},getItemLabel:function(t){return this.getItemProp(t,\\\"label\\\")},getItemLabelId:function(t){return\\\"\\\".concat(this.menuId,\\\"_\\\").concat(t.key,\\\"_label\\\")},getPTOptions:function(t,e,n){return this.ptm(t,{context:{item:e.item,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e),index:n}})},isItemActive:function(t){return this.activeItemPath.some((function(e){return e.key===t.key}))},isItemVisible:function(t){return!1!==this.getItemProp(t,\\\"visible\\\")},isItemDisabled:function(t){return this.getItemProp(t,\\\"disabled\\\")},isItemFocused:function(t){return this.focusedItemId===this.getItemId(t)},isItemGroup:function(t){return K(t.items)},onItemClick:function(t,e){this.getItemProp(e,\\\"command\\\",{originalEvent:t,item:e.item}),this.$emit(\\\"item-click\\\",{originalEvent:t,processedItem:e,isFocus:!0})},onItemMouseEnter:function(t,e){this.$emit(\\\"item-mouseenter\\\",{originalEvent:t,processedItem:e})},onItemMouseMove:function(t,e){this.$emit(\\\"item-mousemove\\\",{originalEvent:t,processedItem:e,isFocus:!0})},getAriaSetSize:function(){var t=this;return this.items.filter((function(e){return t.isItemVisible(e)\\u0026\\u0026!t.getItemProp(e,\\\"separator\\\")})).length},getAriaPosInset:function(t){var e=this;return t-this.items.slice(0,t).filter((function(t){return e.isItemVisible(t)\\u0026\\u0026e.getItemProp(t,\\\"separator\\\")})).length+1},onEnter:function(){Ot(this.$refs.container,this.level)},getMenuItemProps:function(t,e){return{action:I({class:this.cx(\\\"itemLink\\\"),tabindex:-1},this.getPTOptions(\\\"itemLink\\\",t,e)),icon:I({class:[this.cx(\\\"itemIcon\\\"),this.getItemProp(t,\\\"icon\\\")]},this.getPTOptions(\\\"itemIcon\\\",t,e)),label:I({class:this.cx(\\\"itemLabel\\\")},this.getPTOptions(\\\"itemLabel\\\",t,e)),submenuicon:I({class:this.cx(\\\"submenuIcon\\\")},this.getPTOptions(\\\"submenuicon\\\",t,e))}}},components:{AngleRightIcon:Ht},directives:{ripple:De}},lo=[\\\"tabindex\\\"],ao=[\\\"id\\\",\\\"aria-label\\\",\\\"aria-disabled\\\",\\\"aria-expanded\\\",\\\"aria-haspopup\\\",\\\"aria-level\\\",\\\"aria-setsize\\\",\\\"aria-posinset\\\",\\\"data-p-active\\\",\\\"data-p-focused\\\",\\\"data-p-disabled\\\"],co=[\\\"onClick\\\",\\\"onMouseenter\\\",\\\"onMousemove\\\"],uo=[\\\"href\\\",\\\"target\\\"],po=[\\\"id\\\"],ho=[\\\"id\\\"];so.render=function(t,e,n,o,i,r){var s=k(\\\"AngleRightIcon\\\"),l=k(\\\"ContextMenuSub\\\",!0),a=w(\\\"ripple\\\");return m(),S(P,I({name:\\\"p-contextmenusub\\\",onEnter:r.onEnter},t.ptm(\\\"menu.transition\\\")),{default:L((function(){return[n.root||n.visible?(m(),g(\\\"ul\\\",I({key:0,ref:\\\"container\\\",tabindex:n.tabindex},t.ptm(\\\"rootList\\\")),[(m(!0),g(_,null,M(n.items,(function(o,i){return m(),g(_,{key:r.getItemKey(o)},[r.isItemVisible(o)\\u0026\\u0026!r.getItemProp(o,\\\"separator\\\")?(m(),g(\\\"li\\\",I({key:0,id:r.getItemId(o),style:r.getItemProp(o,\\\"style\\\"),class:[t.cx(\\\"item\\\",{processedItem:o}),r.getItemProp(o,\\\"class\\\")],role:\\\"menuitem\\\",\\\"aria-label\\\":r.getItemLabel(o),\\\"aria-disabled\\\":r.isItemDisabled(o)||void 0,\\\"aria-expanded\\\":r.isItemGroup(o)?r.isItemActive(o):void 0,\\\"aria-haspopup\\\":r.isItemGroup(o)\\u0026\\u0026!r.getItemProp(o,\\\"to\\\")?\\\"menu\\\":void 0,\\\"aria-level\\\":n.level+1,\\\"aria-setsize\\\":r.getAriaSetSize(),\\\"aria-posinset\\\":r.getAriaPosInset(i),ref_for:!0},r.getPTOptions(\\\"item\\\",o,i),{\\\"data-p-active\\\":r.isItemActive(o),\\\"data-p-focused\\\":r.isItemFocused(o),\\\"data-p-disabled\\\":r.isItemDisabled(o)}),[C(\\\"div\\\",I({class:t.cx(\\\"itemContent\\\"),onClick:function(t){return r.onItemClick(t,o)},onMouseenter:function(t){return r.onItemMouseEnter(t,o)},onMousemove:function(t){return r.onItemMouseMove(t,o)},ref_for:!0},r.getPTOptions(\\\"itemContent\\\",o,i)),[n.templates.item?(m(),S(E(n.templates.item),{key:1,item:o.item,hasSubmenu:r.getItemProp(o,\\\"items\\\"),label:r.getItemLabel(o),props:r.getMenuItemProps(o,i)},null,8,[\\\"item\\\",\\\"hasSubmenu\\\",\\\"label\\\",\\\"props\\\"])):O((m(),g(\\\"a\\\",I({key:0,href:r.getItemProp(o,\\\"url\\\"),class:t.cx(\\\"itemLink\\\"),target:r.getItemProp(o,\\\"target\\\"),tabindex:\\\"-1\\\",ref_for:!0},r.getPTOptions(\\\"itemLink\\\",o,i)),[n.templates.itemicon?(m(),S(E(n.templates.itemicon),{key:0,item:o.item,class:z(t.cx(\\\"itemIcon\\\"))},null,8,[\\\"item\\\",\\\"class\\\"])):r.getItemProp(o,\\\"icon\\\")?(m(),g(\\\"span\\\",I({key:1,class:[t.cx(\\\"itemIcon\\\"),r.getItemProp(o,\\\"icon\\\")],ref_for:!0},r.getPTOptions(\\\"itemIcon\\\",o,i)),null,16)):$(\\\"\\\",!0),C(\\\"span\\\",I({id:r.getItemLabelId(o),class:t.cx(\\\"itemLabel\\\"),ref_for:!0},r.getPTOptions(\\\"itemLabel\\\",o,i)),x(r.getItemLabel(o)),17,po),r.getItemProp(o,\\\"items\\\")?(m(),g(_,{key:2},[n.templates.submenuicon?(m(),S(E(n.templates.submenuicon),{key:0,active:r.isItemActive(o),class:z(t.cx(\\\"submenuIcon\\\"))},null,8,[\\\"active\\\",\\\"class\\\"])):(m(),S(s,I({key:1,class:t.cx(\\\"submenuIcon\\\"),ref_for:!0},r.getPTOptions(\\\"submenuicon\\\",o,i)),null,16,[\\\"class\\\"]))],64)):$(\\\"\\\",!0)],16,uo)),[[a]])],16,co),r.isItemVisible(o)\\u0026\\u0026r.isItemGroup(o)?(m(),S(l,I({key:0,id:r.getItemId(o)+\\\"_list\\\",role:\\\"menu\\\",class:t.cx(\\\"submenu\\\"),menuId:n.menuId,focusedItemId:n.focusedItemId,items:o.items,templates:n.templates,activeItemPath:n.activeItemPath,level:n.level+1,visible:r.isItemActive(o)\\u0026\\u0026r.isItemGroup(o),pt:t.pt,unstyled:t.unstyled,onItemClick:e[0]||(e[0]=function(e){return t.$emit(\\\"item-click\\\",e)}),onItemMouseenter:e[1]||(e[1]=function(e){return t.$emit(\\\"item-mouseenter\\\",e)}),onItemMousemove:e[2]||(e[2]=function(e){return t.$emit(\\\"item-mousemove\\\",e)}),\\\"aria-labelledby\\\":r.getItemLabelId(o),ref_for:!0},t.ptm(\\\"submenu\\\")),null,16,[\\\"id\\\",\\\"class\\\",\\\"menuId\\\",\\\"focusedItemId\\\",\\\"items\\\",\\\"templates\\\",\\\"activeItemPath\\\",\\\"level\\\",\\\"visible\\\",\\\"pt\\\",\\\"unstyled\\\",\\\"aria-labelledby\\\"])):$(\\\"\\\",!0)],16,ao)):$(\\\"\\\",!0),r.isItemVisible(o)\\u0026\\u0026r.getItemProp(o,\\\"separator\\\")?(m(),g(\\\"li\\\",I({key:1,id:r.getItemId(o),style:r.getItemProp(o,\\\"style\\\"),class:[t.cx(\\\"separator\\\"),r.getItemProp(o,\\\"class\\\")],role:\\\"separator\\\",ref_for:!0},t.ptm(\\\"separator\\\")),null,16,ho)):$(\\\"\\\",!0)],64)})),128))],16,lo)):$(\\\"\\\",!0)]})),_:1},16,[\\\"onEnter\\\"])};var fo={name:\\\"ContextMenu\\\",extends:ro,inheritAttrs:!1,emits:[\\\"focus\\\",\\\"blur\\\",\\\"show\\\",\\\"hide\\\",\\\"before-show\\\",\\\"before-hide\\\"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,matchMediaListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:\\\"\\\"},activeItemPath:[],visible:!1,submenuVisible:!1,query:null,queryMatches:!1}},watch:{\\\"$attrs.id\\\":function(t){this.id=t||Et()},activeItemPath:function(t){K(t)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||Et(),this.bindMatchMediaListener(),this.global\\u0026\\u0026this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.unbindMatchMediaListener(),this.container\\u0026\\u0026this.autoZIndex\\u0026\\u0026Q.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(t,e){return t?It(t[e]):void 0},getItemLabel:function(t){return this.getItemProp(t,\\\"label\\\")},isItemDisabled:function(t){return this.getItemProp(t,\\\"disabled\\\")},isItemVisible:function(t){return!1!==this.getItemProp(t,\\\"visible\\\")},isItemGroup:function(t){return K(this.getItemProp(t,\\\"items\\\"))},isItemSeparator:function(t){return this.getItemProp(t,\\\"separator\\\")},getProccessedItemLabel:function(t){return t?this.getItemLabel(t.item):void 0},isProccessedItemGroup:function(t){return t\\u0026\\u0026K(t.items)},toggle:function(t){this.visible?this.hide():this.show(t)},show:function(t){this.$emit(\\\"before-show\\\"),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:\\\"\\\"},et(this.list),this.pageX=t.pageX,this.pageY=t.pageY,this.visible?this.position():this.visible=!0,t.stopPropagation(),t.preventDefault()},hide:function(){this.$emit(\\\"before-hide\\\"),this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:\\\"\\\"}},onFocus:function(t){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:\\\"\\\"},this.$emit(\\\"focus\\\",t)},onBlur:function(t){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:\\\"\\\"},this.searchValue=\\\"\\\",this.$emit(\\\"blur\\\",t)},onKeyDown:function(t){var e=t.metaKey||t.ctrlKey;switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t);break;case\\\"ArrowLeft\\\":this.onArrowLeftKey(t);break;case\\\"ArrowRight\\\":this.onArrowRightKey(t);break;case\\\"Home\\\":this.onHomeKey(t);break;case\\\"End\\\":this.onEndKey(t);break;case\\\"Space\\\":this.onSpaceKey(t);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t);break;case\\\"PageDown\\\":case\\\"PageUp\\\":case\\\"Backspace\\\":case\\\"ShiftLeft\\\":case\\\"ShiftRight\\\":break;default:!e\\u0026\\u0026ot(t.key)\\u0026\\u0026this.searchItems(t,t.key)}},onItemChange:function(t,e){var n=t.processedItem,o=t.isFocus;if(!D(n)){var i=n.index,r=n.key,s=n.level,l=n.parentKey,a=n.items,c=K(a),u=this.activeItemPath.filter((function(t){return t.parentKey!==l\\u0026\\u0026t.parentKey!==r}));c\\u0026\\u0026(u.push(n),this.submenuVisible=!0),this.focusedItemInfo={index:i,level:s,parentKey:l},o\\u0026\\u0026et(this.list),\\\"hover\\\"===e\\u0026\\u0026this.queryMatches||(this.activeItemPath=u)}},onItemClick:function(t){var e=t.processedItem,n=this.isProccessedItemGroup(e);if(this.isSelected(e)){var o=e.index,i=e.key,r=e.level,s=e.parentKey;this.activeItemPath=this.activeItemPath.filter((function(t){return i!==t.key\\u0026\\u0026i.startsWith(t.key)})),this.focusedItemInfo={index:o,level:r,parentKey:s},et(this.list)}else n?this.onItemChange(t):this.hide()},onItemMouseEnter:function(t){this.onItemChange(t,\\\"hover\\\")},onItemMouseMove:function(t){this.focused\\u0026\\u0026this.changeFocusedItemIndex(t,t.processedItem.index)},onArrowDownKey:function(t){var e=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(t,e),t.preventDefault()},onArrowUpKey:function(t){if(t.altKey){if(-1!==this.focusedItemInfo.index){var e=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(e)\\u0026\\u0026this.onItemChange({originalEvent:t,processedItem:e})}this.popup\\u0026\\u0026this.hide(),t.preventDefault()}else{var n=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(t,n),t.preventDefault()}},onArrowLeftKey:function(t){var e=this,n=this.visibleItems[this.focusedItemInfo.index],o=this.activeItemPath.find((function(t){return t.key===n.parentKey}));D(n.parent)||(this.focusedItemInfo={index:-1,parentKey:o?o.parentKey:\\\"\\\"},this.searchValue=\\\"\\\",this.onArrowDownKey(t)),this.activeItemPath=this.activeItemPath.filter((function(t){return t.parentKey!==e.focusedItemInfo.parentKey})),t.preventDefault()},onArrowRightKey:function(t){var e=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(e)\\u0026\\u0026(this.onItemChange({originalEvent:t,processedItem:e}),this.focusedItemInfo={index:-1,parentKey:e.key},this.searchValue=\\\"\\\",this.onArrowDownKey(t)),t.preventDefault()},onHomeKey:function(t){this.changeFocusedItemIndex(t,this.findFirstItemIndex()),t.preventDefault()},onEndKey:function(t){this.changeFocusedItemIndex(t,this.findLastItemIndex()),t.preventDefault()},onEnterKey:function(t){if(-1!==this.focusedItemInfo.index){var e=J(this.list,'li[id=\\\"'.concat(\\\"\\\".concat(this.focusedItemIdx),'\\\"]')),n=e\\u0026\\u0026J(e,'[data-pc-section=\\\"itemlink\\\"]');n?n.click():e\\u0026\\u0026e.click();var o=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(o)\\u0026\\u0026(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}t.preventDefault()},onSpaceKey:function(t){this.onEnterKey(t)},onEscapeKey:function(t){this.hide(),!this.popup\\u0026\\u0026(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),t.preventDefault()},onTabKey:function(t){if(-1!==this.focusedItemInfo.index){var e=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(e)\\u0026\\u0026this.onItemChange({originalEvent:t,processedItem:e})}this.hide()},onEnter:function(t){st(t,{position:\\\"absolute\\\"}),this.position(),this.autoZIndex\\u0026\\u0026Q.set(\\\"menu\\\",t,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit(\\\"show\\\"),et(this.list)},onLeave:function(){this.$emit(\\\"hide\\\"),this.container=null},onAfterLeave:function(t){this.autoZIndex\\u0026\\u0026Q.clear(t),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var t=this.pageX+1,e=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:kt(this.container),o=this.container.offsetParent?this.container.offsetHeight:wt(this.container),i=gt(),r=window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0,s=window.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft||0;t+n-s\\u003ei.width\\u0026\\u0026(t-=n),e+o-r\\u003ei.height\\u0026\\u0026(e-=o),t\\u003cs\\u0026\\u0026(t=s),e\\u003cr\\u0026\\u0026(e=r),this.container.style.left=t+\\\"px\\\",this.container.style.top=e+\\\"px\\\"},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){var n=t.container\\u0026\\u0026!t.container.contains(e.target),o=!t.visible||!(t.target\\u0026\\u0026(t.target===e.target||t.target.contains(e.target)));n\\u0026\\u0026o\\u0026\\u0026t.hide()},document.addEventListener(\\\"click\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\u0026\\u0026(document.removeEventListener(\\\"click\\\",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.visible\\u0026\\u0026!ct()\\u0026\\u0026t.hide()},window.addEventListener(\\\"resize\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\u0026\\u0026(window.removeEventListener(\\\"resize\\\",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var t=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(e){2===e.button\\u0026\\u0026t.show(e)},document.addEventListener(\\\"contextmenu\\\",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener\\u0026\\u0026(document.removeEventListener(\\\"contextmenu\\\",this.documentContextMenuListener),this.documentContextMenuListener=null)},bindMatchMediaListener:function(){var t=this;if(!this.matchMediaListener){var e=matchMedia(\\\"(max-width: \\\".concat(this.breakpoint,\\\")\\\"));this.query=e,this.queryMatches=e.matches,this.matchMediaListener=function(){t.queryMatches=e.matches},this.query.addEventListener(\\\"change\\\",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener\\u0026\\u0026(this.query.removeEventListener(\\\"change\\\",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(t){var e;return this.isValidItem(t)\\u0026\\u0026(null===(e=this.getProccessedItemLabel(t))||void 0===e?void 0:e.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(t){return!!t\\u0026\\u0026!this.isItemDisabled(t.item)\\u0026\\u0026!this.isItemSeparator(t.item)\\u0026\\u0026this.isItemVisible(t.item)},isValidSelectedItem:function(t){return this.isValidItem(t)\\u0026\\u0026this.isSelected(t)},isSelected:function(t){return this.activeItemPath.some((function(e){return e.key===t.key}))},findFirstItemIndex:function(){var t=this;return this.visibleItems.findIndex((function(e){return t.isValidItem(e)}))},findLastItemIndex:function(){var t=this;return pt(this.visibleItems,(function(e){return t.isValidItem(e)}))},findNextItemIndex:function(t){var e=this,n=t\\u003cthis.visibleItems.length-1?this.visibleItems.slice(t+1).findIndex((function(t){return e.isValidItem(t)})):-1;return n\\u003e-1?n+t+1:t},findPrevItemIndex:function(t){var e=this,n=t\\u003e0?pt(this.visibleItems.slice(0,t),(function(t){return e.isValidItem(t)})):-1;return n\\u003e-1?n:t},findSelectedItemIndex:function(){var t=this;return this.visibleItems.findIndex((function(e){return t.isValidSelectedItem(e)}))},findFirstFocusedItemIndex:function(){var t=this.findSelectedItemIndex();return t\\u003c0?this.findFirstItemIndex():t},findLastFocusedItemIndex:function(){var t=this.findSelectedItemIndex();return t\\u003c0?this.findLastItemIndex():t},searchItems:function(t,e){var n=this;this.searchValue=(this.searchValue||\\\"\\\")+e;var o=-1,i=!1;return-1!==(o=-1!==this.focusedItemInfo.index?-1===(o=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(t){return n.isItemMatched(t)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(t){return n.isItemMatched(t)})):o+this.focusedItemInfo.index:this.visibleItems.findIndex((function(t){return n.isItemMatched(t)})))\\u0026\\u0026(i=!0),-1===o\\u0026\\u0026-1===this.focusedItemInfo.index\\u0026\\u0026(o=this.findFirstFocusedItemIndex()),-1!==o\\u0026\\u0026this.changeFocusedItemIndex(t,o),this.searchTimeout\\u0026\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){n.searchValue=\\\"\\\",n.searchTimeout=null}),500),i},changeFocusedItemIndex:function(t,e){this.focusedItemInfo.index!==e\\u0026\\u0026(this.focusedItemInfo.index=e,this.scrollInView())},scrollInView:function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:-1,e=-1!==t?\\\"\\\".concat(this.id,\\\"_\\\").concat(t):this.focusedItemIdx,n=J(this.list,'li[id=\\\"'.concat(e,'\\\"]'));n\\u0026\\u0026n.scrollIntoView\\u0026\\u0026n.scrollIntoView({block:\\\"nearest\\\",inline:\\\"start\\\"})},createProcessedItems:function(t){var e=this,n=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:0,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]?arguments[2]:{},i=arguments.length\\u003e3\\u0026\\u0026void 0!==arguments[3]?arguments[3]:\\\"\\\",r=[];return t\\u0026\\u0026t.forEach((function(t,s){var l=(\\\"\\\"!==i?i+\\\"_\\\":\\\"\\\")+s,a={item:t,index:s,level:n,key:l,parent:o,parentKey:i};a.items=e.createProcessedItems(t.items,n+1,a,l),r.push(a)})),r},containerRef:function(t){this.container=t},listRef:function(t){this.list=t?t.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var t=this,e=this.activeItemPath.find((function(e){return e.key===t.focusedItemInfo.parentKey}));return e?e.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?\\\"\\\".concat(this.id).concat(K(this.focusedItemInfo.parentKey)?\\\"_\\\"+this.focusedItemInfo.parentKey:\\\"\\\",\\\"_\\\").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:so,Portal:Ye}};fo.render=function(t,e,n,o,i,r){var s=k(\\\"ContextMenuSub\\\"),l=k(\\\"Portal\\\");return m(),S(l,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\"p-contextmenu\\\",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},t.ptm(\\\"transition\\\")),{default:L((function(){return[i.visible?(m(),g(\\\"div\\\",I({key:0,ref:r.containerRef,class:t.cx(\\\"root\\\")},t.ptmi(\\\"root\\\")),[V(s,{ref:r.listRef,id:i.id+\\\"_list\\\",class:z(t.cx(\\\"rootList\\\")),role:\\\"menubar\\\",root:!0,tabindex:t.tabindex,\\\"aria-orientation\\\":\\\"vertical\\\",\\\"aria-activedescendant\\\":i.focused?r.focusedItemIdx:void 0,menuId:i.id,focusedItemId:i.focused?r.focusedItemIdx:void 0,items:r.processedItems,templates:t.$slots,activeItemPath:i.activeItemPath,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,level:0,visible:i.submenuVisible,pt:t.pt,unstyled:t.unstyled,onFocus:r.onFocus,onBlur:r.onBlur,onKeydown:r.onKeyDown,onItemClick:r.onItemClick,onItemMouseenter:r.onItemMouseEnter,onItemMousemove:r.onItemMouseMove},null,8,[\\\"id\\\",\\\"class\\\",\\\"tabindex\\\",\\\"aria-activedescendant\\\",\\\"menuId\\\",\\\"focusedItemId\\\",\\\"items\\\",\\\"templates\\\",\\\"activeItemPath\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"visible\\\",\\\"pt\\\",\\\"unstyled\\\",\\\"onFocus\\\",\\\"onBlur\\\",\\\"onKeydown\\\",\\\"onItemClick\\\",\\\"onItemMouseenter\\\",\\\"onItemMousemove\\\"])],16)):$(\\\"\\\",!0)]})),_:1},16,[\\\"onEnter\\\",\\\"onAfterEnter\\\",\\\"onLeave\\\",\\\"onAfterLeave\\\"])]})),_:1},8,[\\\"appendTo\\\"])};var bo=St.extend({name:\\\"togglebutton\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-togglebutton {\\\\n    display: inline-flex;\\\\n    cursor: pointer;\\\\n    user-select: none;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    overflow: hidden;\\\\n    position: relative;\\\\n    color: \\\".concat(e(\\\"togglebutton.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"togglebutton.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"togglebutton.border.color\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"togglebutton.padding\\\"),\\\";\\\\n    font-size: 1rem;\\\\n    font-family: inherit;\\\\n    font-feature-settings: inherit;\\\\n    transition: background \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\",\\\\n        outline-color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"togglebutton.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    font-weight: \\\").concat(e(\\\"togglebutton.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton-content {\\\\n    position: relative;\\\\n    display: inline-flex;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    gap: \\\").concat(e(\\\"togglebutton.gap\\\"),';\\\\n}\\\\n\\\\n.p-togglebutton-label,\\\\n.p-togglebutton-icon {\\\\n    position: relative;\\\\n    transition: none;\\\\n}\\\\n\\\\n.p-togglebutton::before {\\\\n    content: \\\"\\\";\\\\n    background: transparent;\\\\n    transition: background ').concat(e(\\\"togglebutton.transition.duration\\\"),\\\", color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\",\\\\n            outline-color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\";\\\\n    position: absolute;\\\\n    inset-inline-start: \\\").concat(e(\\\"togglebutton.content.left\\\"),\\\";\\\\n    inset-block-start: \\\").concat(e(\\\"togglebutton.content.top\\\"),\\\";\\\\n    width: calc(100% - calc(2 * \\\").concat(e(\\\"togglebutton.content.left\\\"),\\\"));\\\\n    height: calc(100% - calc(2 * \\\").concat(e(\\\"togglebutton.content.top\\\"),\\\"));\\\\n    border-radius: \\\").concat(e(\\\"togglebutton.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton.p-togglebutton-checked::before {\\\\n    background: \\\").concat(e(\\\"togglebutton.content.checked.background\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"togglebutton.content.checked.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {\\\\n    background: \\\").concat(e(\\\"togglebutton.hover.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"togglebutton.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton.p-togglebutton-checked {\\\\n    background: \\\").concat(e(\\\"togglebutton.checked.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"togglebutton.checked.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"togglebutton.checked.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:focus-visible {\\\\n    box-shadow: \\\").concat(e(\\\"togglebutton.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"togglebutton.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"togglebutton.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"togglebutton.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"togglebutton.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton.p-invalid {\\\\n    border-color: \\\").concat(e(\\\"togglebutton.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:disabled {\\\\n    opacity: 1;\\\\n    cursor: default;\\\\n    background: \\\").concat(e(\\\"togglebutton.disabled.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"togglebutton.disabled.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"togglebutton.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton-icon {\\\\n    color: \\\").concat(e(\\\"togglebutton.icon.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {\\\\n    color: \\\").concat(e(\\\"togglebutton.icon.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {\\\\n    color: \\\").concat(e(\\\"togglebutton.icon.checked.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:disabled .p-togglebutton-icon {\\\\n    color: \\\").concat(e(\\\"togglebutton.icon.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton-sm {\\\\n    padding: \\\").concat(e(\\\"togglebutton.sm.padding\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"togglebutton.sm.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton-lg {\\\\n    padding: \\\").concat(e(\\\"togglebutton.lg.padding\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"togglebutton.lg.font.size\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-togglebutton p-component\\\",{\\\"p-togglebutton-checked\\\":e.active,\\\"p-invalid\\\":e.$invalid,\\\"p-togglebutton-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-togglebutton-lg p-inputfield-lg\\\":\\\"large\\\"===n.size}]},content:\\\"p-togglebutton-content\\\",icon:\\\"p-togglebutton-icon\\\",label:\\\"p-togglebutton-label\\\"}}),mo={name:\\\"ToggleButton\\\",extends:{name:\\\"BaseToggleButton\\\",extends:Bt,props:{onIcon:String,offIcon:String,onLabel:{type:String,default:\\\"Yes\\\"},offLabel:{type:String,default:\\\"No\\\"},iconPos:{type:String,default:\\\"left\\\"},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},size:{type:String,default:null}},style:bo,provide:function(){return{$pcToggleButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\"],methods:{getPTOptions:function(t){return(\\\"root\\\"===t?this.ptmi:this.ptm)(t,{context:{active:this.active,disabled:this.disabled}})},onChange:function(t){this.disabled||this.readonly||(this.writeValue(!this.d_value,t),this.$emit(\\\"change\\\",t))},onBlur:function(t){var e,n;null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)}},computed:{active:function(){return!0===this.d_value},hasLabel:function(){return K(this.onLabel)\\u0026\\u0026K(this.offLabel)},label:function(){return this.hasLabel?this.d_value?this.onLabel:this.offLabel:\\\" \\\"}},directives:{ripple:De}},go=[\\\"tabindex\\\",\\\"disabled\\\",\\\"aria-pressed\\\",\\\"aria-labelledby\\\",\\\"data-p-checked\\\",\\\"data-p-disabled\\\"];mo.render=function(t,e,n,o,i,r){var s=w(\\\"ripple\\\");return O((m(),g(\\\"button\\\",I({type:\\\"button\\\",class:t.cx(\\\"root\\\"),tabindex:t.tabindex,disabled:t.disabled,\\\"aria-pressed\\\":t.d_value,onClick:e[0]||(e[0]=function(){return r.onChange\\u0026\\u0026r.onChange.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)})},r.getPTOptions(\\\"root\\\"),{\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"data-p-checked\\\":r.active,\\\"data-p-disabled\\\":t.disabled}),[C(\\\"span\\\",I({class:t.cx(\\\"content\\\")},r.getPTOptions(\\\"content\\\")),[v(t.$slots,\\\"default\\\",{},(function(){return[v(t.$slots,\\\"icon\\\",{value:t.d_value,class:z(t.cx(\\\"icon\\\"))},(function(){return[t.onIcon||t.offIcon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"icon\\\"),t.d_value?t.onIcon:t.offIcon]},r.getPTOptions(\\\"icon\\\")),null,16)):$(\\\"\\\",!0)]})),C(\\\"span\\\",I({class:t.cx(\\\"label\\\")},r.getPTOptions(\\\"label\\\")),x(r.label),17)]}))],16)],16,go)),[[s]])};var vo=St.extend({name:\\\"selectbutton\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-selectbutton {\\\\n    display: inline-flex;\\\\n    user-select: none;\\\\n    vertical-align: bottom;\\\\n    outline-color: transparent;\\\\n    border-radius: \\\".concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-selectbutton .p-togglebutton {\\\\n    border-radius: 0;\\\\n    border-width: 1px 1px 1px 0;\\\\n}\\\\n\\\\n.p-selectbutton .p-togglebutton:focus-visible {\\\\n    position: relative;\\\\n    z-index: 1;\\\\n}\\\\n\\\\n.p-selectbutton .p-togglebutton:first-child {\\\\n    border-inline-start-width: 1px;\\\\n    border-start-start-radius: \\\").concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n    border-end-start-radius: \\\").concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-selectbutton .p-togglebutton:last-child {\\\\n    border-start-end-radius: \\\").concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n    border-end-end-radius: \\\").concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-selectbutton.p-invalid {\\\\n    outline: 1px solid \\\").concat(e(\\\"selectbutton.invalid.border.color\\\"),\\\";\\\\n    outline-offset: 0;\\\\n}\\\\n\\\")},classes:{root:function(t){return[\\\"p-selectbutton p-component\\\",{\\\"p-invalid\\\":t.instance.$invalid}]}}});function yo(t){return function(t){if(Array.isArray(t))return Io(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||xo(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function xo(t,e){if(t){if(\\\"string\\\"==typeof t)return Io(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(t,e):void 0}}function Io(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}var ko={name:\\\"SelectButton\\\",extends:{name:\\\"BaseSelectButton\\\",extends:Bt,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,allowEmpty:{type:Boolean,default:!0},dataKey:null,ariaLabelledby:{type:String,default:null},size:{type:String,default:null}},style:vo,provide:function(){return{$pcSelectButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\"],methods:{getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t){return this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled:function(t){return!!this.optionDisabled\\u0026\\u0026tt(t,this.optionDisabled)},onOptionSelect:function(t,e,n){var o=this;if(!this.disabled\\u0026\\u0026!this.isOptionDisabled(e)){var i=this.isSelected(e);if(!i||this.allowEmpty){var r,s=this.getOptionValue(e);r=this.multiple?i?this.d_value.filter((function(t){return!dt(t,s,o.equalityKey)})):this.d_value?[].concat(yo(this.d_value),[s]):[s]:i?null:s,this.writeValue(r,t),this.$emit(\\\"change\\\",{event:t,value:r})}}},isSelected:function(t){var e=!1,n=this.getOptionValue(t);if(this.multiple){if(this.d_value){var o,i=function(t,e){var n=\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026t[Symbol.iterator]||t[\\\"@@iterator\\\"];if(!n){if(Array.isArray(t)||(n=xo(t))||e){n\\u0026\\u0026(t=n);var o=0,i=function(){};return{s:i,n:function(){return o\\u003e=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError(\\\"Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}var r,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw r}}}}(this.d_value);try{for(i.s();!(o=i.n()).done;){var r=o.value;if(dt(r,n,this.equalityKey)){e=!0;break}}}catch(s){i.e(s)}finally{i.f()}}}else e=dt(this.d_value,n,this.equalityKey);return e}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey}},directives:{ripple:De},components:{ToggleButton:mo}},wo=[\\\"aria-labelledby\\\"];ko.render=function(t,e,n,o,i,r){var s=k(\\\"ToggleButton\\\");return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\"),role:\\\"group\\\",\\\"aria-labelledby\\\":t.ariaLabelledby},t.ptmi(\\\"root\\\")),[(m(!0),g(_,null,M(t.options,(function(e,n){return m(),S(s,{key:r.getOptionRenderKey(e),modelValue:r.isSelected(e),onLabel:r.getOptionLabel(e),offLabel:r.getOptionLabel(e),disabled:t.disabled||r.isOptionDisabled(e),unstyled:t.unstyled,size:t.size,readonly:!t.allowEmpty\\u0026\\u0026r.isSelected(e),onChange:function(t){return r.onOptionSelect(t,e,n)},pt:t.ptm(\\\"pcToggleButton\\\")},A({_:2},[t.$slots.option?{name:\\\"default\\\",fn:L((function(){return[v(t.$slots,\\\"option\\\",{option:e,index:n},(function(){return[C(\\\"span\\\",I({ref_for:!0},t.ptm(\\\"pcToggleButton\\\").label),x(r.getOptionLabel(e)),17)]}))]})),key:\\\"0\\\"}:void 0]),1032,[\\\"modelValue\\\",\\\"onLabel\\\",\\\"offLabel\\\",\\\"disabled\\\",\\\"unstyled\\\",\\\"size\\\",\\\"readonly\\\",\\\"onChange\\\",\\\"pt\\\"])})),128))],16,wo)};export{On as T,pn as a,jn as b,Qn as c,re as d,se as e,Ne as f,We as g,Ce as h,Ue as i,ko as j,oo as k,fo as l,qt as m,Ge as s};\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web_version/v2/assets/vendor-DrOEdrAG.js\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 7,\n        \"line_snippet\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(t){Rt(l),l._a=t,t.provide(Gt,l),t.config.globalProperties.$pinia=l,s.forEach((t=\\u003er.push(t))),s=[]},use(t){return this._a?r.push(t):s.push(t),this},_p:r,_a:null,_e:o,_s:new Map,state:i});return l}(Wt=Nt||(Nt={})).direct=\\\"direct\\\",Wt.patchObject=\\\"patch object\\\",Wt.patchFunction=\\\"patch function\\\";const Xt=()=\\u003e{};function Yt(t,e,n,o=Xt){t.push(e);const i=()=\\u003e{const n=t.indexOf(e);n\\u003e-1\\u0026\\u0026(t.splice(n,1),o())};return!n\\u0026\\u0026c()\\u0026\\u0026u(i),i}function Zt(t,...e){t.slice().forEach((t=\\u003e{t(...e)}))}const Jt=t=\\u003et(),Qt=Symbol(),te=Symbol();function ee(t,e){t instanceof Map\\u0026\\u0026e instanceof Map?e.forEach(((e,n)=\\u003et.set(n,e))):t instanceof Set\\u0026\\u0026e instanceof Set\\u0026\\u0026e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],i=t[n];Ut(i)\\u0026\\u0026Ut(o)\\u0026\\u0026t.hasOwnProperty(n)\\u0026\\u0026!r(o)\\u0026\\u0026!s(o)?t[n]=ee(i,o):t[n]=o}return t}const ne=Symbol();const{assign:oe}=Object;function ie(n,a,c={},u,p,h){let f;const b=oe({actions:{}},c),m={deep:!0};let g,v,y,x=[],I=[];const k=u.state.value[n];let w;function O(t){let e;g=v=!1,\\\"function\\\"==typeof t?(t(u.state.value[n]),e={type:Nt.patchFunction,storeId:n,events:y}):(ee(u.state.value[n],t),e={type:Nt.patchObject,payload:t,storeId:n,events:y});const o=w=Symbol();d().then((()=\\u003e{w===o\\u0026\\u0026(g=!0)})),v=!0,Zt(x,e,u.state.value[n])}h||k||(u.state.value[n]={}),e({});const S=h?function(){const{state:t}=c,e=t?t():{};this.$patch((t=\\u003e{oe(t,e)}))}:Xt;const L=(t,e=\\\"\\\")=\\u003e{if(Qt in t)return t[te]=e,t;const o=function(){Rt(u);const e=Array.from(arguments),i=[],r=[];let s;Zt(I,{args:e,name:o[te],store:C,after:function(t){i.push(t)},onError:function(t){r.push(t)}});try{s=t.apply(this\\u0026\\u0026this.$id===n?this:C,e)}catch(l){throw Zt(r,l),l}return s instanceof Promise?s.then((t=\\u003e(Zt(i,t),t))).catch((t=\\u003e(Zt(r,t),Promise.reject(t)))):(Zt(i,s),s)};return o[Qt]=!0,o[te]=e,o},$={_p:u,$id:n,$onAction:Yt.bind(null,I),$patch:O,$reset:S,$subscribe(t,e={}){const i=Yt(x,t,e.detached,(()=\\u003er())),r=f.run((()=\\u003eo((()=\\u003eu.state.value[n]),(o=\\u003e{(\\\"sync\\\"===e.flush?v:g)\\u0026\\u0026t({storeId:n,type:Nt.direct,events:y},o)}),oe({},m,e))));return i},$dispose:function(){f.stop(),x=[],I=[],u._s.delete(n)}},C=i($);u._s.set(n,C);const z=(u._a\\u0026\\u0026u._a.runWithContext||Jt)((()=\\u003eu._e.run((()=\\u003e(f=t()).run((()=\\u003ea({action:L})))))));for(const t in z){const e=z[t];if(r(e)\\u0026\\u0026(!r(T=e)||!T.effect)||s(e))h||(!k||Ut(E=e)\\u0026\\u0026E.hasOwnProperty(ne)||(r(e)?e.value=k[t]:ee(e,k[t])),u.state.value[n][t]=e);else if(\\\"function\\\"==typeof e){const n=L(e,t);z[t]=n,b.actions[t]=e}}var E,T;return oe(C,z),oe(l(C),z),Object.defineProperty(C,\\\"$state\\\",{get:()=\\u003eu.state.value[n],set:t=\\u003e{O((e=\\u003e{oe(e,t)}))}}),u._p.forEach((t=\\u003e{oe(C,f.run((()=\\u003et({store:C,app:u._a,pinia:u,options:b}))))})),k\\u0026\\u0026h\\u0026\\u0026c.hydrate\\u0026\\u0026c.hydrate(C.$state,k),g=!0,v=!0,C}function re(t,e,o){let i,r;const s=\\\"function\\\"==typeof e;function l(t,o){const l=b();(t=t||(l?p(Gt,null):null))\\u0026\\u0026Rt(t),(t=jt)._s.has(i)||(s?ie(i,e,r,t):function(t,e,o){const{state:i,actions:r,getters:s}=e,l=o.state.value[t];let a;a=ie(t,(function(){l||(o.state.value[t]=i?i():{});const e=h(o.state.value[t]);return oe(e,r,Object.keys(s||{}).reduce(((e,i)=\\u003e(e[i]=n(f((()=\\u003e{Rt(o);const e=o._s.get(t);return s[i].call(e,e)}))),e)),{}))}),e,o,0,!0)}(i,r,t));return t._s.get(i)}return\\\"string\\\"==typeof t?(i=t,r=s?o:e):(r=t,i=t.id),l.$id=i,l}function se(t){{t=l(t);const e={};for(const n in t){const o=t[n];(r(o)||s(o))\\u0026\\u0026(e[n]=a(t,n))}return e}}const le=\\\"undefined\\\"!=typeof navigator\\u0026\\u0026navigator.userAgent.toLowerCase().indexOf(\\\"firefox\\\")\\u003e0;function ae(t,e,n,o){t.addEventListener?t.addEventListener(e,n,o):t.attachEvent\\u0026\\u0026t.attachEvent(\\\"on\\\".concat(e),n)}function ce(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent\\u0026\\u0026t.detachEvent(\\\"on\\\".concat(e),n)}function ue(t,e){const n=e.slice(0,e.length-1);for(let o=0;o\\u003cn.length;o++)n[o]=t[n[o].toLowerCase()];return n}function de(t){\\\"string\\\"!=typeof t\\u0026\\u0026(t=\\\"\\\");const e=(t=t.replace(/\\\\s/g,\\\"\\\")).split(\\\",\\\");let n=e.lastIndexOf(\\\"\\\");for(;n\\u003e=0;)e[n-1]+=\\\",\\\",e.splice(n,1),n=e.lastIndexOf(\\\"\\\");return e}const pe={backspace:8,\\\"⌫\\\":8,tab:9,clear:12,enter:13,\\\"↩\\\":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,\\\"⇪\\\":20,\\\",\\\":188,\\\".\\\":190,\\\"/\\\":191,\\\"`\\\":192,\\\"-\\\":le?173:189,\\\"=\\\":le?61:187,\\\";\\\":le?59:186,\\\"'\\\":222,\\\"[\\\":219,\\\"]\\\":221,\\\"\\\\\\\\\\\":220},he={\\\"⇧\\\":16,shift:16,\\\"⌥\\\":18,alt:18,option:18,\\\"⌃\\\":17,ctrl:17,control:17,\\\"⌘\\\":91,cmd:91,command:91},fe={16:\\\"shiftKey\\\",18:\\\"altKey\\\",17:\\\"ctrlKey\\\",91:\\\"metaKey\\\",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},be={16:!1,18:!1,17:!1,91:!1},me={};for(let Oo=1;Oo\\u003c20;Oo++)pe[\\\"f\\\".concat(Oo)]=111+Oo;let ge=[],ve=null,ye=\\\"all\\\";const xe=new Map,Ie=t=\\u003epe[t.toLowerCase()]||he[t.toLowerCase()]||t.toUpperCase().charCodeAt(0);function ke(t){ye=t||\\\"all\\\"}function we(){return ye||\\\"all\\\"}function Oe(t){if(void 0===t)Object.keys(me).forEach((t=\\u003e{Array.isArray(me[t])\\u0026\\u0026me[t].forEach((t=\\u003eSe(t))),delete me[t]})),ze(null);else if(Array.isArray(t))t.forEach((t=\\u003e{t.key\\u0026\\u0026Se(t)}));else if(\\\"object\\\"==typeof t)t.key\\u0026\\u0026Se(t);else if(\\\"string\\\"==typeof t){for(var e=arguments.length,n=new Array(e\\u003e1?e-1:0),o=1;o\\u003ce;o++)n[o-1]=arguments[o];let[i,r]=n;\\\"function\\\"==typeof i\\u0026\\u0026(r=i,i=\\\"\\\"),Se({key:t,scope:i,method:r,splitKey:\\\"+\\\"})}}const Se=t=\\u003e{let{key:e,scope:n,method:o,splitKey:i=\\\"+\\\"}=t;de(e).forEach((t=\\u003e{const e=t.split(i),r=e.length,s=e[r-1],l=\\\"*\\\"===s?\\\"*\\\":Ie(s);if(!me[l])return;n||(n=we());const a=r\\u003e1?ue(he,e):[],c=[];me[l]=me[l].filter((t=\\u003e{const e=(!o||t.method===o)\\u0026\\u0026t.scope===n\\u0026\\u0026function(t,e){const n=t.length\\u003e=e.length?t:e,o=t.length\\u003e=e.length?e:t;let i=!0;for(let r=0;r\\u003cn.length;r++)-1===o.indexOf(n[r])\\u0026\\u0026(i=!1);return i}(t.mods,a);return e\\u0026\\u0026c.push(t.element),!e})),c.forEach((t=\\u003eze(t)))}))};function Le(t,e,n,o){if(e.element!==o)return;let i;if(e.scope===n||\\\"all\\\"===e.scope){i=e.mods.length\\u003e0;for(const t in be)Object.prototype.hasOwnProperty.call(be,t)\\u0026\\u0026(!be[t]\\u0026\\u0026e.mods.indexOf(+t)\\u003e-1||be[t]\\u0026\\u0026-1===e.mods.indexOf(+t))\\u0026\\u0026(i=!1);(0!==e.mods.length||be[16]||be[18]||be[17]||be[91])\\u0026\\u0026!i\\u0026\\u0026\\\"*\\\"!==e.shortcut||(e.keys=[],e.keys=e.keys.concat(ge),!1===e.method(t,e)\\u0026\\u0026(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation\\u0026\\u0026t.stopPropagation(),t.cancelBubble\\u0026\\u0026(t.cancelBubble=!0)))}}function $e(t,e){const n=me[\\\"*\\\"];let o=t.keyCode||t.which||t.charCode;if(!Ce.filter.call(this,t))return;if(93!==o\\u0026\\u0026224!==o||(o=91),-1===ge.indexOf(o)\\u0026\\u0026229!==o\\u0026\\u0026ge.push(o),[\\\"ctrlKey\\\",\\\"altKey\\\",\\\"shiftKey\\\",\\\"metaKey\\\"].forEach((e=\\u003e{const n=fe[e];t[e]\\u0026\\u0026-1===ge.indexOf(n)?ge.push(n):!t[e]\\u0026\\u0026ge.indexOf(n)\\u003e-1?ge.splice(ge.indexOf(n),1):\\\"metaKey\\\"===e\\u0026\\u0026t[e]\\u0026\\u00263===ge.length\\u0026\\u0026(t.ctrlKey||t.shiftKey||t.altKey||(ge=ge.slice(ge.indexOf(n))))})),o in be){be[o]=!0;for(const t in he)he[t]===o\\u0026\\u0026(Ce[t]=!0);if(!n)return}for(const l in be)Object.prototype.hasOwnProperty.call(be,l)\\u0026\\u0026(be[l]=t[fe[l]]);t.getModifierState\\u0026\\u0026(!t.altKey||t.ctrlKey)\\u0026\\u0026t.getModifierState(\\\"AltGraph\\\")\\u0026\\u0026(-1===ge.indexOf(17)\\u0026\\u0026ge.push(17),-1===ge.indexOf(18)\\u0026\\u0026ge.push(18),be[17]=!0,be[18]=!0);const i=we();if(n)for(let l=0;l\\u003cn.length;l++)n[l].scope===i\\u0026\\u0026(\\\"keydown\\\"===t.type\\u0026\\u0026n[l].keydown||\\\"keyup\\\"===t.type\\u0026\\u0026n[l].keyup)\\u0026\\u0026Le(t,n[l],i,e);if(!(o in me))return;const r=me[o],s=r.length;for(let l=0;l\\u003cs;l++)if((\\\"keydown\\\"===t.type\\u0026\\u0026r[l].keydown||\\\"keyup\\\"===t.type\\u0026\\u0026r[l].keyup)\\u0026\\u0026r[l].key){const n=r[l],{splitKey:o}=n,s=n.key.split(o),a=[];for(let t=0;t\\u003cs.length;t++)a.push(Ie(s[t]));a.sort().join(\\\"\\\")===ge.sort().join(\\\"\\\")\\u0026\\u0026Le(t,n,i,e)}}function Ce(t,e,n){ge=[];const o=de(t);let i=[],r=\\\"all\\\",s=document,l=0,a=!1,c=!0,u=\\\"+\\\",d=!1,p=!1;for(void 0===n\\u0026\\u0026\\\"function\\\"==typeof e\\u0026\\u0026(n=e),\\\"[object Object]\\\"===Object.prototype.toString.call(e)\\u0026\\u0026(e.scope\\u0026\\u0026(r=e.scope),e.element\\u0026\\u0026(s=e.element),e.keyup\\u0026\\u0026(a=e.keyup),void 0!==e.keydown\\u0026\\u0026(c=e.keydown),void 0!==e.capture\\u0026\\u0026(d=e.capture),\\\"string\\\"==typeof e.splitKey\\u0026\\u0026(u=e.splitKey),!0===e.single\\u0026\\u0026(p=!0)),\\\"string\\\"==typeof e\\u0026\\u0026(r=e),p\\u0026\\u0026Oe(t,r);l\\u003co.length;l++)i=[],(t=o[l].split(u)).length\\u003e1\\u0026\\u0026(i=ue(he,t)),(t=\\\"*\\\"===(t=t[t.length-1])?\\\"*\\\":Ie(t))in me||(me[t]=[]),me[t].push({keyup:a,keydown:c,scope:r,mods:i,shortcut:o[l],method:n,key:o[l],splitKey:u,element:s});if(void 0!==s\\u0026\\u0026window){if(!xe.has(s)){const t=function(){return $e(arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:window.event,s)},e=function(){let t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:window.event;$e(t,s),function(t){let e=t.keyCode||t.which||t.charCode;const n=ge.indexOf(e);if(n\\u003e=0\\u0026\\u0026ge.splice(n,1),t.key\\u0026\\u0026\\\"meta\\\"===t.key.toLowerCase()\\u0026\\u0026ge.splice(0,ge.length),93!==e\\u0026\\u0026224!==e||(e=91),e in be){be[e]=!1;for(const t in he)he[t]===e\\u0026\\u0026(Ce[t]=!1)}}(t)};xe.set(s,{keydownListener:t,keyupListenr:e,capture:d}),ae(s,\\\"keydown\\\",t,d),ae(s,\\\"keyup\\\",e,d)}if(!ve){const t=()=\\u003e{ge=[]};ve={listener:t,capture:d},ae(window,\\\"focus\\\",t,d)}}}function ze(t){const e=Object.values(me).flat();if(e.findIndex((e=\\u003e{let{element:n}=e;return n===t}))\\u003c0){const{keydownListener:e,keyupListenr:n,capture:o}=xe.get(t)||{};e\\u0026\\u0026n\\u0026\\u0026(ce(t,\\\"keyup\\\",n,o),ce(t,\\\"keydown\\\",e,o),xe.delete(t))}if(e.length\\u003c=0||xe.size\\u003c=0){if(Object.keys(xe).forEach((t=\\u003e{const{keydownListener:e,keyupListenr:n,capture:o}=xe.get(t)||{};e\\u0026\\u0026n\\u0026\\u0026(ce(t,\\\"keyup\\\",n,o),ce(t,\\\"keydown\\\",e,o),xe.delete(t))})),xe.clear(),Object.keys(me).forEach((t=\\u003edelete me[t])),ve){const{listener:t,capture:e}=ve;ce(window,\\\"focus\\\",t,e),ve=null}}}const Ee={getPressedKeyString:function(){return ge.map((t=\\u003e{return e=t,Object.keys(pe).find((t=\\u003epe[t]===e))||(t=\\u003eObject.keys(he).find((e=\\u003ehe[e]===t)))(t)||String.fromCharCode(t);var e}))},setScope:ke,getScope:we,deleteScope:function(t,e){let n,o;t||(t=we());for(const i in me)if(Object.prototype.hasOwnProperty.call(me,i))for(n=me[i],o=0;o\\u003cn.length;)if(n[o].scope===t){n.splice(o,1).forEach((t=\\u003e{let{element:e}=t;return ze(e)}))}else o++;we()===t\\u0026\\u0026ke(e||\\\"all\\\")},getPressedKeyCodes:function(){return ge.slice(0)},getAllKeyCodes:function(){const t=[];return Object.keys(me).forEach((e=\\u003e{me[e].forEach((e=\\u003e{let{key:n,scope:o,mods:i,shortcut:r}=e;t.push({scope:o,shortcut:r,mods:i,keys:n.split(\\\"+\\\").map((t=\\u003eIe(t)))})}))})),t},isPressed:function(t){return\\\"string\\\"==typeof t\\u0026\\u0026(t=Ie(t)),-1!==ge.indexOf(t)},filter:function(t){const e=t.target||t.srcElement,{tagName:n}=e;let o=!0;const i=\\\"INPUT\\\"===n\\u0026\\u0026![\\\"checkbox\\\",\\\"radio\\\",\\\"range\\\",\\\"button\\\",\\\"file\\\",\\\"reset\\\",\\\"submit\\\",\\\"color\\\"].includes(e.type);return(e.isContentEditable||(i||\\\"TEXTAREA\\\"===n||\\\"SELECT\\\"===n)\\u0026\\u0026!e.readOnly)\\u0026\\u0026(o=!1),o},trigger:function(t){let e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:\\\"all\\\";Object.keys(me).forEach((n=\\u003e{me[n].filter((n=\\u003en.scope===e\\u0026\\u0026n.shortcut===t)).forEach((t=\\u003e{t\\u0026\\u0026t.method\\u0026\\u0026t.method()}))}))},unbind:Oe,keyMap:pe,modifier:he,modifierMap:fe};for(const Oo in Ee)Object.prototype.hasOwnProperty.call(Ee,Oo)\\u0026\\u0026(Ce[Oo]=Ee[Oo]);if(\\\"undefined\\\"!=typeof window){const t=window.hotkeys;Ce.noConflict=e=\\u003e(e\\u0026\\u0026window.hotkeys===Ce\\u0026\\u0026(window.hotkeys=t),Ce),window.hotkeys=Ce}var Te={root:function(t){var e=t.props,n=t.instance;return[\\\"p-badge p-component\\\",{\\\"p-badge-circle\\\":K(e.value)\\u0026\\u00261===String(e.value).length,\\\"p-badge-dot\\\":D(e.value)\\u0026\\u0026!n.$slots.default,\\\"p-badge-sm\\\":\\\"small\\\"===e.size,\\\"p-badge-lg\\\":\\\"large\\\"===e.size,\\\"p-badge-xl\\\":\\\"xlarge\\\"===e.size,\\\"p-badge-info\\\":\\\"info\\\"===e.severity,\\\"p-badge-success\\\":\\\"success\\\"===e.severity,\\\"p-badge-warn\\\":\\\"warn\\\"===e.severity,\\\"p-badge-danger\\\":\\\"danger\\\"===e.severity,\\\"p-badge-secondary\\\":\\\"secondary\\\"===e.severity,\\\"p-badge-contrast\\\":\\\"contrast\\\"===e.severity}]}},_e=St.extend({name:\\\"badge\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-badge {\\\\n    display: inline-flex;\\\\n    border-radius: \\\".concat(e(\\\"badge.border.radius\\\"),\\\";\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    padding: \\\").concat(e(\\\"badge.padding\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"badge.primary.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.primary.color\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"badge.font.size\\\"),\\\";\\\\n    font-weight: \\\").concat(e(\\\"badge.font.weight\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.min.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-dot {\\\\n    width: \\\").concat(e(\\\"badge.dot.size\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.dot.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.dot.size\\\"),\\\";\\\\n    border-radius: 50%;\\\\n    padding: 0;\\\\n}\\\\n\\\\n.p-badge-circle {\\\\n    padding: 0;\\\\n    border-radius: 50%;\\\\n}\\\\n\\\\n.p-badge-secondary {\\\\n    background: \\\").concat(e(\\\"badge.secondary.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-success {\\\\n    background: \\\").concat(e(\\\"badge.success.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-info {\\\\n    background: \\\").concat(e(\\\"badge.info.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-warn {\\\\n    background: \\\").concat(e(\\\"badge.warn.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-danger {\\\\n    background: \\\").concat(e(\\\"badge.danger.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-contrast {\\\\n    background: \\\").concat(e(\\\"badge.contrast.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"badge.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-sm {\\\\n    font-size: \\\").concat(e(\\\"badge.sm.font.size\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.sm.min.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.sm.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-lg {\\\\n    font-size: \\\").concat(e(\\\"badge.lg.font.size\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.lg.min.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.lg.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-badge-xl {\\\\n    font-size: \\\").concat(e(\\\"badge.xl.font.size\\\"),\\\";\\\\n    min-width: \\\").concat(e(\\\"badge.xl.min.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"badge.xl.height\\\"),\\\";\\\\n}\\\\n\\\")},classes:Te}),Me={name:\\\"Badge\\\",extends:{name:\\\"BaseBadge\\\",extends:Lt,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:_e,provide:function(){return{$pcBadge:this,$parentInstance:this}}},inheritAttrs:!1};Me.render=function(t,e,n,o,i,r){return m(),g(\\\"span\\\",I({class:t.cx(\\\"root\\\")},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"default\\\",{},(function(){return[y(x(t.value),1)]}))],16)};var Ve=St.extend({name:\\\"ripple-directive\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-ink {\\\\n    display: block;\\\\n    position: absolute;\\\\n    background: \\\".concat(e(\\\"ripple.background\\\"),\\\";\\\\n    border-radius: 100%;\\\\n    transform: scale(0);\\\\n    pointer-events: none;\\\\n}\\\\n\\\\n.p-ink-active {\\\\n    animation: ripple 0.4s linear;\\\\n}\\\\n\\\\n@keyframes ripple {\\\\n    100% {\\\\n        opacity: 0;\\\\n        transform: scale(2.5);\\\\n    }\\\\n}\\\\n\\\")},classes:{root:\\\"p-ink\\\"}});function Pe(t){return(Pe=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function Fe(t){return function(t){if(Array.isArray(t))return Ae(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return Ae(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function Ae(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}function Ke(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Pe(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Pe(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De=$t.extend({style:Ve}).extend(\\\"ripple\\\",{watch:{\\\"config.ripple\\\":function(t){t?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute(\\\"data-pd-ripple\\\",!0),this.$host.style.overflow=\\\"hidden\\\",this.$host.style.position=\\\"relative\\\"):(this.remove(this.$host),this.$host.removeAttribute(\\\"data-pd-ripple\\\"))}},unmounted:function(t){this.remove(t)},timeout:void 0,methods:{bindEvents:function(t){t.addEventListener(\\\"mousedown\\\",this.onMouseDown.bind(this))},unbindEvents:function(t){t.removeEventListener(\\\"mousedown\\\",this.onMouseDown.bind(this))},createRipple:function(t){var e=B(\\\"span\\\",Ke(Ke({role:\\\"presentation\\\",\\\"aria-hidden\\\":!0,\\\"data-p-ink\\\":!0,\\\"data-p-ink-active\\\":!1,class:!this.isUnstyled()\\u0026\\u0026this.cx(\\\"root\\\"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,\\\"\\\"),\\\"p-bind\\\",this.ptm(\\\"root\\\")));t.appendChild(e),this.$el=e},remove:function(t){var e=this.getInk(t);e\\u0026\\u0026(this.$host.style.overflow=\\\"\\\",this.$host.style.position=\\\"\\\",this.unbindEvents(t),e.removeEventListener(\\\"animationend\\\",this.onAnimationEnd),e.remove())},onMouseDown:function(t){var e=this,n=t.currentTarget,o=this.getInk(n);if(o\\u0026\\u0026\\\"none\\\"!==getComputedStyle(o,null).display){if(!this.isUnstyled()\\u0026\\u0026H(o,\\\"p-ink-active\\\"),o.setAttribute(\\\"data-p-ink-active\\\",\\\"false\\\"),!j(o)\\u0026\\u0026!R(o)){var i=Math.max(G(n),U(n));o.style.height=i+\\\"px\\\",o.style.width=i+\\\"px\\\"}var r=N(n),s=t.pageX-r.left+document.body.scrollTop-R(o)/2,l=t.pageY-r.top+document.body.scrollLeft-j(o)/2;o.style.top=l+\\\"px\\\",o.style.left=s+\\\"px\\\",!this.isUnstyled()\\u0026\\u0026W(o,\\\"p-ink-active\\\"),o.setAttribute(\\\"data-p-ink-active\\\",\\\"true\\\"),this.timeout=setTimeout((function(){o\\u0026\\u0026(!e.isUnstyled()\\u0026\\u0026H(o,\\\"p-ink-active\\\"),o.setAttribute(\\\"data-p-ink-active\\\",\\\"false\\\"))}),401)}},onAnimationEnd:function(t){this.timeout\\u0026\\u0026clearTimeout(this.timeout),!this.isUnstyled()\\u0026\\u0026H(t.currentTarget,\\\"p-ink-active\\\"),t.currentTarget.setAttribute(\\\"data-p-ink-active\\\",\\\"false\\\")},getInk:function(t){return t\\u0026\\u0026t.children?Fe(t.children).find((function(t){return\\\"ripple\\\"===q(t,\\\"data-pc-name\\\")})):void 0}}});function Be(t){return(Be=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function He(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Be(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Be(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Be(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var je={root:function(t){var e=t.instance,n=t.props;return[\\\"p-button p-component\\\",He(He(He(He(He(He(He(He(He({\\\"p-button-icon-only\\\":e.hasIcon\\u0026\\u0026!n.label\\u0026\\u0026!n.badge,\\\"p-button-vertical\\\":(\\\"top\\\"===n.iconPos||\\\"bottom\\\"===n.iconPos)\\u0026\\u0026n.label,\\\"p-button-loading\\\":n.loading,\\\"p-button-link\\\":n.link||\\\"link\\\"===n.variant},\\\"p-button-\\\".concat(n.severity),n.severity),\\\"p-button-raised\\\",n.raised),\\\"p-button-rounded\\\",n.rounded),\\\"p-button-text\\\",n.text||\\\"text\\\"===n.variant),\\\"p-button-outlined\\\",n.outlined||\\\"outlined\\\"===n.variant),\\\"p-button-sm\\\",\\\"small\\\"===n.size),\\\"p-button-lg\\\",\\\"large\\\"===n.size),\\\"p-button-plain\\\",n.plain),\\\"p-button-fluid\\\",e.hasFluid)]},loadingIcon:\\\"p-button-loading-icon\\\",icon:function(t){var e=t.props;return[\\\"p-button-icon\\\",He({},\\\"p-button-icon-\\\".concat(e.iconPos),e.label)]},label:\\\"p-button-label\\\"},Re=St.extend({name:\\\"button\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-button {\\\\n    display: inline-flex;\\\\n    cursor: pointer;\\\\n    user-select: none;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    overflow: hidden;\\\\n    position: relative;\\\\n    color: \\\".concat(e(\\\"button.primary.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"button.primary.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.primary.border.color\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"button.padding.y\\\"),\\\" \\\").concat(e(\\\"button.padding.x\\\"),\\\";\\\\n    font-size: 1rem;\\\\n    font-family: inherit;\\\\n    font-feature-settings: inherit;\\\\n    transition: background \\\").concat(e(\\\"button.transition.duration\\\"),\\\", color \\\").concat(e(\\\"button.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"button.transition.duration\\\"),\\\",\\\\n            outline-color \\\").concat(e(\\\"button.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"button.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"button.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    gap: \\\").concat(e(\\\"button.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-button:disabled {\\\\n    cursor: default;\\\\n}\\\\n\\\\n.p-button-icon-right {\\\\n    order: 1;\\\\n}\\\\n\\\\n.p-button-icon-right:dir(rtl) {\\\\n    order: -1;\\\\n}\\\\n\\\\n.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {\\\\n    order: 1;\\\\n}\\\\n\\\\n.p-button-icon-bottom {\\\\n    order: 2;\\\\n}\\\\n\\\\n.p-button-icon-only {\\\\n    width: \\\").concat(e(\\\"button.icon.only.width\\\"),\\\";\\\\n    padding-inline-start: 0;\\\\n    padding-inline-end: 0;\\\\n    gap: 0;\\\\n}\\\\n\\\\n.p-button-icon-only.p-button-rounded {\\\\n    border-radius: 50%;\\\\n    height: \\\").concat(e(\\\"button.icon.only.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-icon-only .p-button-label {\\\\n    visibility: hidden;\\\\n    width: 0;\\\\n}\\\\n\\\\n.p-button-sm {\\\\n    font-size: \\\").concat(e(\\\"button.sm.font.size\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"button.sm.padding.y\\\"),\\\" \\\").concat(e(\\\"button.sm.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-sm .p-button-icon {\\\\n    font-size: \\\").concat(e(\\\"button.sm.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-lg {\\\\n    font-size: \\\").concat(e(\\\"button.lg.font.size\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"button.lg.padding.y\\\"),\\\" \\\").concat(e(\\\"button.lg.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-lg .p-button-icon {\\\\n    font-size: \\\").concat(e(\\\"button.lg.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-vertical {\\\\n    flex-direction: column;\\\\n}\\\\n\\\\n.p-button-label {\\\\n    font-weight: \\\").concat(e(\\\"button.label.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-fluid {\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-button-fluid.p-button-icon-only {\\\\n    width: \\\").concat(e(\\\"button.icon.only.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-button:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.primary.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.primary.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.primary.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.primary.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.primary.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.primary.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button:focus-visible {\\\\n    box-shadow: \\\").concat(e(\\\"button.primary.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"button.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"button.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"button.primary.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"button.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-button .p-badge {\\\\n    min-width: \\\").concat(e(\\\"button.badge.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"button.badge.size\\\"),\\\";\\\\n    line-height: \\\").concat(e(\\\"button.badge.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-raised {\\\\n    box-shadow: \\\").concat(e(\\\"button.raised.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-rounded {\\\\n    border-radius: \\\").concat(e(\\\"button.rounded.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-secondary {\\\\n    background: \\\").concat(e(\\\"button.secondary.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.secondary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-secondary:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.secondary.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.secondary.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.secondary.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-secondary:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.secondary.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.secondary.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.secondary.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-secondary:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.secondary.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.secondary.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-success {\\\\n    background: \\\").concat(e(\\\"button.success.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.success.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-success:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.success.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.success.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.success.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-success:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.success.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.success.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.success.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-success:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.success.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.success.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-info {\\\\n    background: \\\").concat(e(\\\"button.info.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.info.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-info:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.info.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.info.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.info.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-info:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.info.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.info.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.info.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-info:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.info.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.info.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-warn {\\\\n    background: \\\").concat(e(\\\"button.warn.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.warn.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-warn:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.warn.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.warn.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.warn.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-warn:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.warn.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.warn.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.warn.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-warn:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.warn.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.warn.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-help {\\\\n    background: \\\").concat(e(\\\"button.help.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.help.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-help:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.help.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.help.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.help.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-help:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.help.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.help.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.help.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-help:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.help.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.help.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-danger {\\\\n    background: \\\").concat(e(\\\"button.danger.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.danger.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-danger:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.danger.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.danger.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.danger.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-danger:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.danger.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.danger.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.danger.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-danger:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.danger.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.danger.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-contrast {\\\\n    background: \\\").concat(e(\\\"button.contrast.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.contrast.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-contrast:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.contrast.hover.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.contrast.hover.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.contrast.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-contrast:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.contrast.active.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"button.contrast.active.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.contrast.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-contrast:focus-visible {\\\\n    outline-color: \\\").concat(e(\\\"button.contrast.focus.ring.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"button.contrast.focus.ring.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined {\\\\n    background: transparent;\\\\n    border-color: \\\").concat(e(\\\"button.outlined.primary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.primary.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.primary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.primary.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.primary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-secondary {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.secondary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-secondary:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.secondary.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.secondary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-secondary:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.secondary.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.secondary.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-success {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.success.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-success:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.success.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.success.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-success:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.success.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.success.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-info {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.info.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-info:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.info.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.info.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-info:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.info.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.info.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-warn {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.warn.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-warn:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.warn.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.warn.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-warn:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.warn.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.warn.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-help {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.help.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-help:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.help.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.help.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-help:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.help.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.help.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-danger {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.danger.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-danger:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.danger.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.danger.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-danger:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.danger.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.danger.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-contrast {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.contrast.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-contrast:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.contrast.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.contrast.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-contrast:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.contrast.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.contrast.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-plain {\\\\n    border-color: \\\").concat(e(\\\"button.outlined.plain.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-plain:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.outlined.plain.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.plain.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-outlined.p-button-plain:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.outlined.plain.active.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"button.outlined.plain.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"button.outlined.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.primary.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.primary.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.primary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-secondary {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-secondary:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.secondary.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-secondary:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.secondary.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.secondary.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-success {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-success:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.success.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-success:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.success.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.success.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-info {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-info:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.info.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-info:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.info.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.info.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-warn {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-warn:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.warn.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-warn:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.warn.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.warn.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-help {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-help:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.help.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-help:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.help.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.help.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-danger {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-danger:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.danger.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-danger:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.danger.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.danger.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-contrast {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-contrast:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.contrast.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-contrast:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.contrast.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.contrast.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-plain {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-plain:not(:disabled):hover {\\\\n    background: \\\").concat(e(\\\"button.text.plain.hover.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-text.p-button-plain:not(:disabled):active {\\\\n    background: \\\").concat(e(\\\"button.text.plain.active.background\\\"),\\\";\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.text.plain.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-link {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.link.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-link:not(:disabled):hover {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.link.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-button-link:not(:disabled):hover .p-button-label {\\\\n    text-decoration: underline;\\\\n}\\\\n\\\\n.p-button-link:not(:disabled):active {\\\\n    background: transparent;\\\\n    border-color: transparent;\\\\n    color: \\\").concat(e(\\\"button.link.active.color\\\"),\\\";\\\\n}\\\\n\\\")},classes:je}),Ge={name:\\\"Button\\\",extends:{name:\\\"BaseButton\\\",extends:Lt,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:\\\"left\\\"},iconClass:{type:[String,Object],default:null},badge:{type:String,default:null},badgeClass:{type:[String,Object],default:null},badgeSeverity:{type:String,default:\\\"secondary\\\"},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},as:{type:[String,Object],default:\\\"BUTTON\\\"},asChild:{type:Boolean,default:!1},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},variant:{type:String,default:null},plain:{type:Boolean,default:!1},fluid:{type:Boolean,default:null}},style:Re,provide:function(){return{$pcButton:this,$parentInstance:this}}},inheritAttrs:!1,inject:{$pcFluid:{default:null}},methods:{getPTOptions:function(t){return(\\\"root\\\"===t?this.ptmi:this.ptm)(t,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||\\\"\\\"===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?\\\" \\\"+this.badge:\\\"\\\"):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon},attrs:function(){return I(this.asAttrs,this.a11yAttrs,this.getPTOptions(\\\"root\\\"))},asAttrs:function(){return\\\"BUTTON\\\"===this.as?{type:\\\"button\\\",disabled:this.disabled}:void 0},a11yAttrs:function(){return{\\\"aria-label\\\":this.defaultAriaLabel,\\\"data-pc-name\\\":\\\"button\\\",\\\"data-p-disabled\\\":this.disabled,\\\"data-p-severity\\\":this.severity}},hasFluid:function(){return D(this.fluid)?!!this.$pcFluid:this.fluid}},components:{SpinnerIcon:Ct,Badge:Me},directives:{ripple:De}};Ge.render=function(t,e,n,o,i,r){var s=k(\\\"SpinnerIcon\\\"),l=k(\\\"Badge\\\"),a=w(\\\"ripple\\\");return t.asChild?v(t.$slots,\\\"default\\\",{key:1,class:z(t.cx(\\\"root\\\")),a11yAttrs:r.a11yAttrs}):O((m(),S(E(t.as),I({key:0,class:t.cx(\\\"root\\\")},r.attrs),{default:L((function(){return[v(t.$slots,\\\"default\\\",{},(function(){return[t.loading?v(t.$slots,\\\"loadingicon\\\",I({key:0,class:[t.cx(\\\"loadingIcon\\\"),t.cx(\\\"icon\\\")]},t.ptm(\\\"loadingIcon\\\")),(function(){return[t.loadingIcon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"loadingIcon\\\"),t.cx(\\\"icon\\\"),t.loadingIcon]},t.ptm(\\\"loadingIcon\\\")),null,16)):(m(),S(s,I({key:1,class:[t.cx(\\\"loadingIcon\\\"),t.cx(\\\"icon\\\")],spin:\\\"\\\"},t.ptm(\\\"loadingIcon\\\")),null,16,[\\\"class\\\"]))]})):v(t.$slots,\\\"icon\\\",I({key:1,class:[t.cx(\\\"icon\\\")]},t.ptm(\\\"icon\\\")),(function(){return[t.icon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"icon\\\"),t.icon,t.iconClass]},t.ptm(\\\"icon\\\")),null,16)):$(\\\"\\\",!0)]})),C(\\\"span\\\",I({class:t.cx(\\\"label\\\")},t.ptm(\\\"label\\\")),x(t.label||\\\" \\\"),17),t.badge?(m(),S(l,{key:2,value:t.badge,class:z(t.badgeClass),severity:t.badgeSeverity,unstyled:t.unstyled,pt:t.ptm(\\\"pcBadge\\\")},null,8,[\\\"value\\\",\\\"class\\\",\\\"severity\\\",\\\"unstyled\\\",\\\"pt\\\"])):$(\\\"\\\",!0)]}))]})),_:3},16,[\\\"class\\\"])),[[a]])};var Ue={name:\\\"IconField\\\",extends:{name:\\\"BaseIconField\\\",extends:Lt,style:St.extend({name:\\\"iconfield\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-iconfield {\\\\n    position: relative;\\\\n}\\\\n\\\\n.p-inputicon {\\\\n    position: absolute;\\\\n    top: 50%;\\\\n    margin-top: calc(-1 * (\\\".concat(e(\\\"icon.size\\\"),\\\" / 2));\\\\n    color: \\\").concat(e(\\\"iconfield.icon.color\\\"),\\\";\\\\n    line-height: 1;\\\\n}\\\\n\\\\n.p-iconfield .p-inputicon:first-child {\\\\n    inset-inline-start: \\\").concat(e(\\\"form.field.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-iconfield .p-inputicon:last-child {\\\\n    inset-inline-end: \\\").concat(e(\\\"form.field.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-iconfield .p-inputtext:not(:first-child) {\\\\n    padding-inline-start: calc((\\\").concat(e(\\\"form.field.padding.x\\\"),\\\" * 2) + \\\").concat(e(\\\"icon.size\\\"),\\\");\\\\n}\\\\n\\\\n.p-iconfield .p-inputtext:not(:last-child) {\\\\n    padding-inline-end: calc((\\\").concat(e(\\\"form.field.padding.x\\\"),\\\" * 2) + \\\").concat(e(\\\"icon.size\\\"),\\\");\\\\n}\\\\n\\\\n.p-iconfield:has(.p-inputfield-sm) .p-inputicon {\\\\n    font-size: \\\").concat(e(\\\"form.field.sm.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"form.field.sm.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"form.field.sm.font.size\\\"),\\\";\\\\n    margin-top: calc(-1 * (\\\").concat(e(\\\"form.field.sm.font.size\\\"),\\\" / 2));\\\\n}\\\\n\\\\n.p-iconfield:has(.p-inputfield-lg) .p-inputicon {\\\\n    font-size: \\\").concat(e(\\\"form.field.lg.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"form.field.lg.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"form.field.lg.font.size\\\"),\\\";\\\\n    margin-top: calc(-1 * (\\\").concat(e(\\\"form.field.lg.font.size\\\"),\\\" / 2));\\\\n}\\\\n\\\")},classes:{root:\\\"p-iconfield\\\"}}),provide:function(){return{$pcIconField:this,$parentInstance:this}}},inheritAttrs:!1};Ue.render=function(t,e,n,o,i,r){return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\")},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"default\\\")],16)};var Ne={name:\\\"InputIcon\\\",extends:{name:\\\"BaseInputIcon\\\",extends:Lt,style:St.extend({name:\\\"inputicon\\\",classes:{root:\\\"p-inputicon\\\"}}),props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},inheritAttrs:!1,computed:{containerClass:function(){return[this.cx(\\\"root\\\"),this.class]}}};Ne.render=function(t,e,n,o,i,r){return m(),g(\\\"span\\\",I({class:r.containerClass},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"default\\\")],16)};var We={name:\\\"InputText\\\",extends:{name:\\\"BaseInputText\\\",extends:zt,style:St.extend({name:\\\"inputtext\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-inputtext {\\\\n    font-family: inherit;\\\\n    font-feature-settings: inherit;\\\\n    font-size: 1rem;\\\\n    color: \\\".concat(e(\\\"inputtext.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"inputtext.background\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"inputtext.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"inputtext.padding.x\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"inputtext.border.color\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\", color \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"inputtext.transition.duration\\\"),\\\";\\\\n    appearance: none;\\\\n    border-radius: \\\").concat(e(\\\"inputtext.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    box-shadow: \\\").concat(e(\\\"inputtext.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext:enabled:hover {\\\\n    border-color: \\\").concat(e(\\\"inputtext.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext:enabled:focus {\\\\n    border-color: \\\").concat(e(\\\"inputtext.focus.border.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"inputtext.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"inputtext.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"inputtext.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"inputtext.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"inputtext.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-invalid {\\\\n    border-color: \\\").concat(e(\\\"inputtext.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-variant-filled {\\\\n    background: \\\").concat(e(\\\"inputtext.filled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-variant-filled:enabled:hover {\\\\n    background: \\\").concat(e(\\\"inputtext.filled.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-variant-filled:enabled:focus {\\\\n    background: \\\").concat(e(\\\"inputtext.filled.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext:disabled {\\\\n    opacity: 1;\\\\n    background: \\\").concat(e(\\\"inputtext.disabled.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"inputtext.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext::placeholder {\\\\n    color: \\\").concat(e(\\\"inputtext.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext.p-invalid::placeholder {\\\\n    color: \\\").concat(e(\\\"inputtext.invalid.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext-sm {\\\\n    font-size: \\\").concat(e(\\\"inputtext.sm.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"inputtext.sm.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"inputtext.sm.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext-lg {\\\\n    font-size: \\\").concat(e(\\\"inputtext.lg.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"inputtext.lg.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"inputtext.lg.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-inputtext-fluid {\\\\n    width: 100%;\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-inputtext p-component\\\",{\\\"p-filled\\\":e.$filled,\\\"p-inputtext-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-inputtext-lg p-inputfield-lg\\\":\\\"large\\\"===n.size,\\\"p-invalid\\\":e.$invalid,\\\"p-variant-filled\\\":\\\"filled\\\"===e.$variant,\\\"p-inputtext-fluid\\\":e.$fluid}]}}}),provide:function(){return{$pcInputText:this,$parentInstance:this}}},inheritAttrs:!1,methods:{onInput:function(t){this.writeValue(t.target.value,t)}},computed:{attrs:function(){return I(this.ptmi(\\\"root\\\",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}}},qe=[\\\"value\\\",\\\"disabled\\\",\\\"aria-invalid\\\"];We.render=function(t,e,n,o,i,r){return m(),g(\\\"input\\\",I({type:\\\"text\\\",class:t.cx(\\\"root\\\"),value:t.d_value,disabled:t.disabled,\\\"aria-invalid\\\":t.$invalid||void 0,onInput:e[0]||(e[0]=function(){return r.onInput\\u0026\\u0026r.onInput.apply(r,arguments)})},r.attrs),null,16,qe)};var Xe=X(),Ye={name:\\\"Portal\\\",props:{appendTo:{type:[String,Object],default:\\\"body\\\"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=Y()},computed:{inline:function(){return this.disabled||\\\"self\\\"===this.appendTo}}};Ye.render=function(t,e,n,o,i,r){return r.inline?v(t.$slots,\\\"default\\\",{key:0}):i.mounted?(m(),S(T,{key:1,to:n.appendTo},[v(t.$slots,\\\"default\\\")],8,[\\\"to\\\"])):$(\\\"\\\",!0)};var Ze=St.extend({name:\\\"virtualscroller\\\",css:\\\"\\\\n.p-virtualscroller {\\\\n    position: relative;\\\\n    overflow: auto;\\\\n    contain: strict;\\\\n    transform: translateZ(0);\\\\n    will-change: scroll-position;\\\\n    outline: 0 none;\\\\n}\\\\n\\\\n.p-virtualscroller-content {\\\\n    position: absolute;\\\\n    top: 0;\\\\n    left: 0;\\\\n    min-height: 100%;\\\\n    min-width: 100%;\\\\n    will-change: transform;\\\\n}\\\\n\\\\n.p-virtualscroller-spacer {\\\\n    position: absolute;\\\\n    top: 0;\\\\n    left: 0;\\\\n    height: 1px;\\\\n    width: 1px;\\\\n    transform-origin: 0 0;\\\\n    pointer-events: none;\\\\n}\\\\n\\\\n.p-virtualscroller-loader {\\\\n    position: sticky;\\\\n    top: 0;\\\\n    left: 0;\\\\n    width: 100%;\\\\n    height: 100%;\\\\n}\\\\n\\\\n.p-virtualscroller-loader-mask {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n}\\\\n\\\\n.p-virtualscroller-horizontal \\u003e .p-virtualscroller-content {\\\\n    display: flex;\\\\n}\\\\n\\\\n.p-virtualscroller-inline .p-virtualscroller-content {\\\\n    position: static;\\\\n}\\\\n\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-virtualscroller-loader {\\\\n    background: \\\".concat(e(\\\"virtualscroller.loader.mask.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"virtualscroller.loader.mask.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-virtualscroller-loading-icon {\\\\n    font-size: \\\").concat(e(\\\"virtualscroller.loader.icon.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"virtualscroller.loader.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"virtualscroller.loader.icon.size\\\"),\\\";\\\\n}\\\\n\\\")}});function Je(t){return(Je=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\u0026\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function tn(t){for(var e=1;e\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach((function(e){en(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function en(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Je(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Je(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nn={name:\\\"VirtualScroller\\\",extends:{name:\\\"BaseVirtualScroller\\\",extends:Lt,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:\\\"vertical\\\"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Ze,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var t;Ze.loadCSS({nonce:null===(t=this.$primevueConfig)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})}},inheritAttrs:!1,emits:[\\\"update:numToleratedItems\\\",\\\"scroll\\\",\\\"scroll-index-change\\\",\\\"lazy-load\\\"],data:function(){var t=this.isBoth();return{first:t?{rows:0,cols:0}:0,last:t?{rows:0,cols:0}:0,page:t?{rows:0,cols:0}:0,numItemsInViewport:t?{rows:0,cols:0}:0,lastScrollPos:t?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(t){this.d_numToleratedItems=t},loading:function(t,e){this.lazy\\u0026\\u0026t!==e\\u0026\\u0026t!==this.d_loading\\u0026\\u0026(this.d_loading=t)},items:function(t,e){e\\u0026\\u0026e.length===(t||[]).length||(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized\\u0026\\u0026this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){Z(this.element)\\u0026\\u0026(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=R(this.element),this.defaultHeight=j(this.element),this.defaultContentWidth=R(this.content),this.defaultContentHeight=j(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return\\\"vertical\\\"===this.orientation},isHorizontal:function(){return\\\"horizontal\\\"===this.orientation},isBoth:function(){return\\\"both\\\"===this.orientation},scrollTo:function(t){this.element\\u0026\\u0026this.element.scrollTo(t)},scrollToIndex:function(t){var e=this,n=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:\\\"auto\\\",o=this.isBoth(),i=this.isHorizontal();if(o?t.every((function(t){return t\\u003e-1})):t\\u003e-1){var r=this.first,s=this.element,l=s.scrollTop,a=void 0===l?0:l,c=s.scrollLeft,u=void 0===c?0:c,d=this.calculateNumItems().numToleratedItems,p=this.getContentPosition(),h=this.itemSize,f=function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0;return t\\u003c=(arguments.length\\u003e1?arguments[1]:void 0)?0:t},b=function(t,e,n){return t*e+n},m=function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0,o=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:0;return e.scrollTo({left:t,top:o,behavior:n})},g=o?{rows:0,cols:0}:0,v=!1,y=!1;o?(m(b((g={rows:f(t[0],d[0]),cols:f(t[1],d[1])}).cols,h[1],p.left),b(g.rows,h[0],p.top)),y=this.lastScrollPos.top!==a||this.lastScrollPos.left!==u,v=g.rows!==r.rows||g.cols!==r.cols):(g=f(t,d),i?m(b(g,h,p.left),a):m(u,b(g,h,p.top)),y=this.lastScrollPos!==(i?u:a),v=g!==r),this.isRangeChanged=v,y\\u0026\\u0026(this.first=g)}},scrollInView:function(t,e){var n=this,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]?arguments[2]:\\\"auto\\\";if(e){var i=this.isBoth(),r=this.isHorizontal();if(i?t.every((function(t){return t\\u003e-1})):t\\u003e-1){var s=this.getRenderedRange(),l=s.first,a=s.viewport,c=function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0,e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:0;return n.scrollTo({left:t,top:e,behavior:o})},u=\\\"to-end\\\"===e;if(\\\"to-start\\\"===e){if(i)a.first.rows-l.rows\\u003et[0]?c(a.first.cols*this.itemSize[1],(a.first.rows-1)*this.itemSize[0]):a.first.cols-l.cols\\u003et[1]\\u0026\\u0026c((a.first.cols-1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.first-l\\u003et){var d=(a.first-1)*this.itemSize;r?c(d,0):c(0,d)}}else if(u)if(i)a.last.rows-l.rows\\u003c=t[0]+1?c(a.first.cols*this.itemSize[1],(a.first.rows+1)*this.itemSize[0]):a.last.cols-l.cols\\u003c=t[1]+1\\u0026\\u0026c((a.first.cols+1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.last-l\\u003c=t+1){var p=(a.first+1)*this.itemSize;r?c(p,0):c(0,p)}}}else this.scrollToIndex(t,o)},getRenderedRange:function(){var t=function(t,e){return Math.floor(t/(e||t))},e=this.first,n=0;if(this.element){var o=this.isBoth(),i=this.isHorizontal(),r=this.element,s=r.scrollTop,l=r.scrollLeft;if(o)n={rows:(e={rows:t(s,this.itemSize[0]),cols:t(l,this.itemSize[1])}).rows+this.numItemsInViewport.rows,cols:e.cols+this.numItemsInViewport.cols};else n=(e=t(i?l:s,this.itemSize))+this.numItemsInViewport}return{first:this.first,last:this.last,viewport:{first:e,last:n}}},calculateNumItems:function(){var t=this.isBoth(),e=this.isHorizontal(),n=this.itemSize,o=this.getContentPosition(),i=this.element?this.element.offsetWidth-o.left:0,r=this.element?this.element.offsetHeight-o.top:0,s=function(t,e){return Math.ceil(t/(e||t))},l=function(t){return Math.ceil(t/2)},a=t?{rows:s(r,n[0]),cols:s(i,n[1])}:s(e?i:r,n);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(t?[l(a.rows),l(a.cols)]:l(a))}},calculateOptions:function(){var t=this,e=this.isBoth(),n=this.first,o=this.calculateNumItems(),i=o.numItemsInViewport,r=o.numToleratedItems,s=function(e,n,o){var i=arguments.length\\u003e3\\u0026\\u0026void 0!==arguments[3]\\u0026\\u0026arguments[3];return t.getLast(e+n+(e\\u003co?2:3)*o,i)},l=e?{rows:s(n.rows,i.rows,r[0]),cols:s(n.cols,i.cols,r[1],!0)}:s(n,i,r);this.last=l,this.numItemsInViewport=i,this.d_numToleratedItems=r,this.$emit(\\\"update:numToleratedItems\\\",this.d_numToleratedItems),this.showLoader\\u0026\\u0026(this.loaderArr=e?Array.from({length:i.rows}).map((function(){return Array.from({length:i.cols})})):Array.from({length:i})),this.lazy\\u0026\\u0026Promise.resolve().then((function(){var o;t.lazyLoadState={first:t.step?e?{rows:0,cols:n.cols}:0:n,last:Math.min(t.step?t.step:l,(null===(o=t.items)||void 0===o?void 0:o.length)||0)},t.$emit(\\\"lazy-load\\\",t.lazyLoadState)}))},calculateAutoSize:function(){var t=this;this.autoSize\\u0026\\u0026!this.d_loading\\u0026\\u0026Promise.resolve().then((function(){if(t.content){var e=t.isBoth(),n=t.isHorizontal(),o=t.isVertical();t.content.style.minHeight=t.content.style.minWidth=\\\"auto\\\",t.content.style.position=\\\"relative\\\",t.element.style.contain=\\\"none\\\";var i=[R(t.element),j(t.element)],r=i[0],s=i[1];(e||n)\\u0026\\u0026(t.element.style.width=r\\u003ct.defaultWidth?r+\\\"px\\\":t.scrollWidth||t.defaultWidth+\\\"px\\\"),(e||o)\\u0026\\u0026(t.element.style.height=s\\u003ct.defaultHeight?s+\\\"px\\\":t.scrollHeight||t.defaultHeight+\\\"px\\\"),t.content.style.minHeight=t.content.style.minWidth=\\\"\\\",t.content.style.position=\\\"\\\",t.element.style.contain=\\\"\\\"}}))},getLast:function(){var t,e,n=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0,o=arguments.length\\u003e1?arguments[1]:void 0;return this.items?Math.min(o?(null===(t=this.columns||this.items[0])||void 0===t?void 0:t.length)||0:(null===(e=this.items)||void 0===e?void 0:e.length)||0,n):0},getContentPosition:function(){if(this.content){var t=getComputedStyle(this.content),e=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),n=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),o=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),i=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:e,right:n,top:o,bottom:i,x:e+n,y:o+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var t=this;if(this.element){var e=this.isBoth(),n=this.isHorizontal(),o=this.element.parentElement,i=this.scrollWidth||\\\"\\\".concat(this.element.offsetWidth||o.offsetWidth,\\\"px\\\"),r=this.scrollHeight||\\\"\\\".concat(this.element.offsetHeight||o.offsetHeight,\\\"px\\\"),s=function(e,n){return t.element.style[e]=n};e||n?(s(\\\"height\\\",r),s(\\\"width\\\",i)):s(\\\"height\\\",r)}},setSpacerSize:function(){var t=this,e=this.items;if(e){var n=this.isBoth(),o=this.isHorizontal(),i=this.getContentPosition(),r=function(e,n,o){var i=arguments.length\\u003e3\\u0026\\u0026void 0!==arguments[3]?arguments[3]:0;return t.spacerStyle=tn(tn({},t.spacerStyle),en({},\\\"\\\".concat(e),(n||[]).length*o+i+\\\"px\\\"))};n?(r(\\\"height\\\",e,this.itemSize[0],i.y),r(\\\"width\\\",this.columns||e[1],this.itemSize[1],i.x)):o?r(\\\"width\\\",this.columns||e,this.itemSize,i.x):r(\\\"height\\\",e,this.itemSize,i.y)}},setContentPosition:function(t){var e=this;if(this.content\\u0026\\u0026!this.appendOnly){var n=this.isBoth(),o=this.isHorizontal(),i=t?t.first:this.first,r=function(t,e){return t*e},s=function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:0,n=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:0;return e.contentStyle=tn(tn({},e.contentStyle),{transform:\\\"translate3d(\\\".concat(t,\\\"px, \\\").concat(n,\\\"px, 0)\\\")})};if(n)s(r(i.cols,this.itemSize[1]),r(i.rows,this.itemSize[0]));else{var l=r(i,this.itemSize);o?s(l,0):s(0,l)}}},onScrollPositionChange:function(t){var e=this,n=t.target,o=this.isBoth(),i=this.isHorizontal(),r=this.getContentPosition(),s=function(t,e){return t?t\\u003ee?t-e:t:0},l=function(t,e){return Math.floor(t/(e||t))},a=function(t,e,n,o,i,r){return t\\u003c=i?i:r?n-o-i:e+i-1},c=function(t,e,n,o,i,r,s){return t\\u003c=r?0:Math.max(0,s?t\\u003ce?n:t-r:t\\u003ee?n:t-2*r)},u=function(t,n,o,i,r,s){var l=n+i+2*r;return t\\u003e=r\\u0026\\u0026(l+=r+1),e.getLast(l,s)},d=s(n.scrollTop,r.top),p=s(n.scrollLeft,r.left),h=o?{rows:0,cols:0}:0,f=this.last,b=!1,m=this.lastScrollPos;if(o){var g=this.lastScrollPos.top\\u003c=d,v=this.lastScrollPos.left\\u003c=p;if(!this.appendOnly||this.appendOnly\\u0026\\u0026(g||v)){var y={rows:l(d,this.itemSize[0]),cols:l(p,this.itemSize[1])},x={rows:a(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:a(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)};h={rows:c(y.rows,x.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:c(y.cols,x.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)},f={rows:u(y.rows,h.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:u(y.cols,h.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=h.rows!==this.first.rows||f.rows!==this.last.rows||h.cols!==this.first.cols||f.cols!==this.last.cols||this.isRangeChanged,m={top:d,left:p}}}else{var I=i?p:d,k=this.lastScrollPos\\u003c=I;if(!this.appendOnly||this.appendOnly\\u0026\\u0026k){var w=l(I,this.itemSize);f=u(w,h=c(w,a(w,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),this.last,this.numItemsInViewport,this.d_numToleratedItems),b=h!==this.first||f!==this.last||this.isRangeChanged,m=I}}return{first:h,last:f,isRangeChanged:b,scrollPos:m}},onScrollChange:function(t){var e=this.onScrollPositionChange(t),n=e.first,o=e.last,i=e.isRangeChanged,r=e.scrollPos;if(i){var s={first:n,last:o};if(this.setContentPosition(s),this.first=n,this.last=o,this.lastScrollPos=r,this.$emit(\\\"scroll-index-change\\\",s),this.lazy\\u0026\\u0026this.isPageChanged(n)){var l,a,c={first:this.step?Math.min(this.getPageByFirst(n)*this.step,((null===(l=this.items)||void 0===l?void 0:l.length)||0)-this.step):n,last:Math.min(this.step?(this.getPageByFirst(n)+1)*this.step:o,(null===(a=this.items)||void 0===a?void 0:a.length)||0)};(this.lazyLoadState.first!==c.first||this.lazyLoadState.last!==c.last)\\u0026\\u0026this.$emit(\\\"lazy-load\\\",c),this.lazyLoadState=c}}},onScroll:function(t){var e=this;if(this.$emit(\\\"scroll\\\",t),this.delay){if(this.scrollTimeout\\u0026\\u0026clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading\\u0026\\u0026this.showLoader)(this.onScrollPositionChange(t).isRangeChanged||!!this.step\\u0026\\u0026this.isPageChanged())\\u0026\\u0026(this.d_loading=!0);this.scrollTimeout=setTimeout((function(){e.onScrollChange(t),!e.d_loading||!e.showLoader||e.lazy\\u0026\\u0026void 0!==e.loading||(e.d_loading=!1,e.page=e.getPageByFirst())}),this.delay)}}else this.onScrollChange(t)},onResize:function(){var t=this;this.resizeTimeout\\u0026\\u0026clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){if(Z(t.element)){var e=t.isBoth(),n=t.isVertical(),o=t.isHorizontal(),i=[R(t.element),j(t.element)],r=i[0],s=i[1],l=r!==t.defaultWidth,a=s!==t.defaultHeight;(e?l||a:o?l:!!n\\u0026\\u0026a)\\u0026\\u0026(t.d_numToleratedItems=t.numToleratedItems,t.defaultWidth=r,t.defaultHeight=s,t.defaultContentWidth=R(t.content),t.defaultContentHeight=j(t.content),t.init())}}),this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener(\\\"resize\\\",this.resizeListener),window.addEventListener(\\\"orientationchange\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\u0026\\u0026(window.removeEventListener(\\\"resize\\\",this.resizeListener),window.removeEventListener(\\\"orientationchange\\\",this.resizeListener),this.resizeListener=null)},getOptions:function(t){var e=(this.items||[]).length,n=this.isBoth()?this.first.rows+t:this.first+t;return{index:n,count:e,first:0===n,last:n===e-1,even:n%2==0,odd:n%2!=0}},getLoaderOptions:function(t,e){var n=this.loaderArr.length;return tn({index:t,count:n,first:0===t,last:t===n-1,even:t%2==0,odd:t%2!=0},e)},getPageByFirst:function(t){return Math.floor(((null!=t?t:this.first)+4*this.d_numToleratedItems)/(this.step||1))},isPageChanged:function(t){return!(this.step\\u0026\\u0026!this.lazy)||this.page!==this.getPageByFirst(null!=t?t:this.first)},setContentEl:function(t){this.content=t||this.content||J(this.element,'[data-pc-section=\\\"content\\\"]')},elementRef:function(t){this.element=t},contentRef:function(t){this.content=t}},computed:{containerClass:function(){return[\\\"p-virtualscroller\\\",this.class,{\\\"p-virtualscroller-inline\\\":this.inline,\\\"p-virtualscroller-both p-both-scroll\\\":this.isBoth(),\\\"p-virtualscroller-horizontal p-horizontal-scroll\\\":this.isHorizontal()}]},contentClass:function(){return[\\\"p-virtualscroller-content\\\",{\\\"p-virtualscroller-loading\\\":this.d_loading}]},loaderClass:function(){return[\\\"p-virtualscroller-loader\\\",{\\\"p-virtualscroller-loader-mask\\\":!this.$slots.loader}]},loadedItems:function(){var t=this;return this.items\\u0026\\u0026!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map((function(e){return t.columns?e:e.slice(t.appendOnly?0:t.first.cols,t.last.cols)})):this.isHorizontal()\\u0026\\u0026this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var t=this.isBoth(),e=this.isHorizontal();if(t||e)return this.d_loading\\u0026\\u0026this.loaderDisabled?t?this.loaderArr[0]:this.loaderArr:this.columns.slice(t?this.first.cols:this.first,t?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:Ct}},on=[\\\"tabindex\\\"];nn.render=function(t,e,n,o,i,r){var s=k(\\\"SpinnerIcon\\\");return t.disabled?(m(),g(_,{key:1},[v(t.$slots,\\\"default\\\"),v(t.$slots,\\\"content\\\",{items:t.items,rows:t.items,columns:r.loadedColumns})],64)):(m(),g(\\\"div\\\",I({key:0,ref:r.elementRef,class:r.containerClass,tabindex:t.tabindex,style:t.style,onScroll:e[0]||(e[0]=function(){return r.onScroll\\u0026\\u0026r.onScroll.apply(r,arguments)})},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"content\\\",{styleClass:r.contentClass,items:r.loadedItems,getItemOptions:r.getOptions,loading:i.d_loading,getLoaderOptions:r.getLoaderOptions,itemSize:t.itemSize,rows:r.loadedRows,columns:r.loadedColumns,contentRef:r.contentRef,spacerStyle:i.spacerStyle,contentStyle:i.contentStyle,vertical:r.isVertical(),horizontal:r.isHorizontal(),both:r.isBoth()},(function(){return[C(\\\"div\\\",I({ref:r.contentRef,class:r.contentClass,style:i.contentStyle},t.ptm(\\\"content\\\")),[(m(!0),g(_,null,M(r.loadedItems,(function(e,n){return v(t.$slots,\\\"item\\\",{key:n,item:e,options:r.getOptions(n)})})),128))],16)]})),t.showSpacer?(m(),g(\\\"div\\\",I({key:0,class:\\\"p-virtualscroller-spacer\\\",style:i.spacerStyle},t.ptm(\\\"spacer\\\")),null,16)):$(\\\"\\\",!0),!t.loaderDisabled\\u0026\\u0026t.showLoader\\u0026\\u0026i.d_loading?(m(),g(\\\"div\\\",I({key:1,class:r.loaderClass},t.ptm(\\\"loader\\\")),[t.$slots\\u0026\\u0026t.$slots.loader?(m(!0),g(_,{key:0},M(i.loaderArr,(function(e,n){return v(t.$slots,\\\"loader\\\",{key:n,options:r.getLoaderOptions(n,r.isBoth()\\u0026\\u0026{numCols:t.d_numItemsInViewport.cols})})})),128)):$(\\\"\\\",!0),v(t.$slots,\\\"loadingicon\\\",{},(function(){return[V(s,I({spin:\\\"\\\",class:\\\"p-virtualscroller-loading-icon\\\"},t.ptm(\\\"loadingIcon\\\")),null,16)]}))],16)):$(\\\"\\\",!0)],16,on))};var rn=St.extend({name:\\\"select\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-select {\\\\n    display: inline-flex;\\\\n    cursor: pointer;\\\\n    position: relative;\\\\n    user-select: none;\\\\n    background: \\\".concat(e(\\\"select.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"select.border.color\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"select.transition.duration\\\"),\\\", color \\\").concat(e(\\\"select.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"select.transition.duration\\\"),\\\",\\\\n        outline-color \\\").concat(e(\\\"select.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"select.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"select.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    box-shadow: \\\").concat(e(\\\"select.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-select:not(.p-disabled):hover {\\\\n    border-color: \\\").concat(e(\\\"select.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select:not(.p-disabled).p-focus {\\\\n    border-color: \\\").concat(e(\\\"select.focus.border.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"select.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"select.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"select.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"select.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"select.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-variant-filled {\\\\n    background: \\\").concat(e(\\\"select.filled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-variant-filled:not(.p-disabled):hover {\\\\n    background: \\\").concat(e(\\\"select.filled.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-variant-filled:not(.p-disabled).p-focus {\\\\n    background: \\\").concat(e(\\\"select.filled.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-invalid {\\\\n    border-color: \\\").concat(e(\\\"select.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-disabled {\\\\n    opacity: 1;\\\\n    background: \\\").concat(e(\\\"select.disabled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-clear-icon {\\\\n    position: absolute;\\\\n    top: 50%;\\\\n    margin-top: -0.5rem;\\\\n    color: \\\").concat(e(\\\"select.clear.icon.color\\\"),\\\";\\\\n    inset-inline-end: \\\").concat(e(\\\"select.dropdown.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-dropdown {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    flex-shrink: 0;\\\\n    background: transparent;\\\\n    color: \\\").concat(e(\\\"select.dropdown.color\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"select.dropdown.width\\\"),\\\";\\\\n    border-start-end-radius: \\\").concat(e(\\\"select.border.radius\\\"),\\\";\\\\n    border-end-end-radius: \\\").concat(e(\\\"select.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-label {\\\\n    display: block;\\\\n    white-space: nowrap;\\\\n    overflow: hidden;\\\\n    flex: 1 1 auto;\\\\n    width: 1%;\\\\n    padding: \\\").concat(e(\\\"select.padding.y\\\"),\\\" \\\").concat(e(\\\"select.padding.x\\\"),\\\";\\\\n    text-overflow: ellipsis;\\\\n    cursor: pointer;\\\\n    color: \\\").concat(e(\\\"select.color\\\"),\\\";\\\\n    background: transparent;\\\\n    border: 0 none;\\\\n    outline: 0 none;\\\\n}\\\\n\\\\n.p-select-label.p-placeholder {\\\\n    color: \\\").concat(e(\\\"select.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select.p-invalid .p-select-label.p-placeholder {\\\\n    color: \\\").concat(e(\\\"select.invalid.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select:has(.p-select-clear-icon) .p-select-label {\\\\n    padding-inline-end: calc(1rem + \\\").concat(e(\\\"select.padding.x\\\"),\\\");\\\\n}\\\\n\\\\n.p-select.p-disabled .p-select-label {\\\\n    color: \\\").concat(e(\\\"select.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-label-empty {\\\\n    overflow: hidden;\\\\n    opacity: 0;\\\\n}\\\\n\\\\ninput.p-select-label {\\\\n    cursor: default;\\\\n}\\\\n\\\\n.p-select .p-select-overlay {\\\\n    min-width: 100%;\\\\n}\\\\n\\\\n.p-select-overlay {\\\\n    position: absolute;\\\\n    top: 0;\\\\n    left: 0;\\\\n    background: \\\").concat(e(\\\"select.overlay.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.overlay.color\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"select.overlay.border.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"select.overlay.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"select.overlay.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-header {\\\\n    padding: \\\").concat(e(\\\"select.list.header.padding\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-filter {\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-select-list-container {\\\\n    overflow: auto;\\\\n}\\\\n\\\\n.p-select-option-group {\\\\n    cursor: auto;\\\\n    margin: 0;\\\\n    padding: \\\").concat(e(\\\"select.option.group.padding\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"select.option.group.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.option.group.color\\\"),\\\";\\\\n    font-weight: \\\").concat(e(\\\"select.option.group.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-list {\\\\n    margin: 0;\\\\n    padding: 0;\\\\n    list-style-type: none;\\\\n    padding: \\\").concat(e(\\\"select.list.padding\\\"),\\\";\\\\n    gap: \\\").concat(e(\\\"select.list.gap\\\"),\\\";\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n}\\\\n\\\\n.p-select-option {\\\\n    cursor: pointer;\\\\n    font-weight: normal;\\\\n    white-space: nowrap;\\\\n    position: relative;\\\\n    overflow: hidden;\\\\n    display: flex;\\\\n    align-items: center;\\\\n    padding: \\\").concat(e(\\\"select.option.padding\\\"),\\\";\\\\n    border: 0 none;\\\\n    color: \\\").concat(e(\\\"select.option.color\\\"),\\\";\\\\n    background: transparent;\\\\n    transition: background \\\").concat(e(\\\"select.transition.duration\\\"),\\\", color \\\").concat(e(\\\"select.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"select.transition.duration\\\"),\\\",\\\\n            box-shadow \\\").concat(e(\\\"select.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"select.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"select.option.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\\\\n    background: \\\").concat(e(\\\"select.option.focus.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.option.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-option.p-select-option-selected {\\\\n    background: \\\").concat(e(\\\"select.option.selected.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.option.selected.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-option.p-select-option-selected.p-focus {\\\\n    background: \\\").concat(e(\\\"select.option.selected.focus.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.option.selected.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-option-check-icon {\\\\n    position: relative;\\\\n    margin-inline-start: \\\").concat(e(\\\"select.checkmark.gutter.start\\\"),\\\";\\\\n    margin-inline-end: \\\").concat(e(\\\"select.checkmark.gutter.end\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"select.checkmark.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-empty-message {\\\\n    padding: \\\").concat(e(\\\"select.empty.message.padding\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-fluid {\\\\n    display: flex;\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-select-sm .p-select-label {\\\\n    font-size: \\\").concat(e(\\\"select.sm.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"select.sm.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"select.sm.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-sm .p-select-dropdown .p-icon {\\\\n    font-size: \\\").concat(e(\\\"select.sm.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"select.sm.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"select.sm.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-lg .p-select-label {\\\\n    font-size: \\\").concat(e(\\\"select.lg.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"select.lg.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"select.lg.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-select-lg .p-select-dropdown .p-icon {\\\\n    font-size: \\\").concat(e(\\\"select.lg.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"select.lg.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"select.lg.font.size\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props,o=t.state;return[\\\"p-select p-component p-inputwrapper\\\",{\\\"p-disabled\\\":n.disabled,\\\"p-invalid\\\":e.$invalid,\\\"p-variant-filled\\\":\\\"filled\\\"===e.$variant,\\\"p-focus\\\":o.focused,\\\"p-inputwrapper-filled\\\":e.$filled,\\\"p-inputwrapper-focus\\\":o.focused||o.overlayVisible,\\\"p-select-open\\\":o.overlayVisible,\\\"p-select-fluid\\\":e.$fluid,\\\"p-select-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-select-lg p-inputfield-lg\\\":\\\"large\\\"===n.size}]},label:function(t){var e=t.instance,n=t.props;return[\\\"p-select-label\\\",{\\\"p-placeholder\\\":!n.editable\\u0026\\u0026e.label===n.placeholder,\\\"p-select-label-empty\\\":!(n.editable||e.$slots.value||\\\"p-emptylabel\\\"!==e.label\\u0026\\u00260!==e.label.length)}]},clearIcon:\\\"p-select-clear-icon\\\",dropdown:\\\"p-select-dropdown\\\",loadingicon:\\\"p-select-loading-icon\\\",dropdownIcon:\\\"p-select-dropdown-icon\\\",overlay:\\\"p-select-overlay p-component\\\",header:\\\"p-select-header\\\",pcFilter:\\\"p-select-filter\\\",listContainer:\\\"p-select-list-container\\\",list:\\\"p-select-list\\\",optionGroup:\\\"p-select-option-group\\\",optionGroupLabel:\\\"p-select-option-group-label\\\",option:function(t){var e=t.instance,n=t.props,o=t.state,i=t.option,r=t.focusedOption;return[\\\"p-select-option\\\",{\\\"p-select-option-selected\\\":e.isSelected(i)\\u0026\\u0026n.highlightOnSelect,\\\"p-focus\\\":o.focusedOptionIndex===r,\\\"p-disabled\\\":e.isOptionDisabled(i)}]},optionLabel:\\\"p-select-option-label\\\",optionCheckIcon:\\\"p-select-option-check-icon\\\",optionBlankIcon:\\\"p-select-option-blank-icon\\\",emptyMessage:\\\"p-select-empty-message\\\"}});function sn(t){return(sn=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function ln(t){return function(t){if(Array.isArray(t))return an(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return an(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?an(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function an(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\u0026\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function un(t){for(var e=1;e\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(n),!0).forEach((function(e){dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=sn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=sn(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==sn(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pn={name:\\\"Select\\\",extends:{name:\\\"BaseSelect\\\",extends:zt,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:\\\"14rem\\\"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:\\\"contains\\\"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:\\\"body\\\"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:rn,provide:function(){return{$pcSelect:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\",\\\"focus\\\",\\\"blur\\\",\\\"before-show\\\",\\\"before-hide\\\",\\\"show\\\",\\\"hide\\\",\\\"filter\\\"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{\\\"$attrs.id\\\":function(t){this.id=t||Et()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Et(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible\\u0026\\u0026this.isModelValueChanged\\u0026\\u0026this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler\\u0026\\u0026(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay\\u0026\\u0026(Q.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,e){return this.virtualScrollerDisabled?t:e\\u0026\\u0026e(t).index},getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t,e){return(this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t))+\\\"_\\\"+e},getPTItemOptions:function(t,e,n,o){return this.ptm(o,{context:{option:t,index:n,selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(n,e),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return!!this.optionDisabled\\u0026\\u0026tt(t,this.optionDisabled)},isOptionGroup:function(t){return this.optionGroupLabel\\u0026\\u0026t.optionGroup\\u0026\\u0026t.group},getOptionGroupLabel:function(t){return tt(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return tt(t,this.optionGroupChildren)},getAriaPosInset:function(t){var e=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter((function(t){return e.isOptionGroup(t)})).length:t)+1},show:function(t){this.$emit(\\\"before-show\\\"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),t\\u0026\\u0026et(this.$refs.focusInput)},hide:function(t){var e=this;setTimeout((function(){e.$emit(\\\"before-hide\\\"),e.overlayVisible=!1,e.clicked=!1,e.focusedOptionIndex=-1,e.searchValue=\\\"\\\",e.resetFilterOnHide\\u0026\\u0026(e.filterValue=null),t\\u0026\\u0026et(e.$refs.focusInput)}),0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible\\u0026\\u0026(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit(\\\"focus\\\",t))},onBlur:function(t){var e,n;this.focused=!1,this.focusedOptionIndex=-1,this.searchValue=\\\"\\\",this.$emit(\\\"blur\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)},onKeyDown:function(t){if(this.disabled||nt())t.preventDefault();else{var e=t.metaKey||t.ctrlKey;switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t,this.editable);break;case\\\"ArrowLeft\\\":case\\\"ArrowRight\\\":this.onArrowLeftKey(t,this.editable);break;case\\\"Home\\\":this.onHomeKey(t,this.editable);break;case\\\"End\\\":this.onEndKey(t,this.editable);break;case\\\"PageDown\\\":this.onPageDownKey(t);break;case\\\"PageUp\\\":this.onPageUpKey(t);break;case\\\"Space\\\":this.onSpaceKey(t,this.editable);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t);break;case\\\"Backspace\\\":this.onBackspaceKey(t,this.editable);break;case\\\"ShiftLeft\\\":case\\\"ShiftRight\\\":break;default:!e\\u0026\\u0026ot(t.key)\\u0026\\u0026(!this.overlayVisible\\u0026\\u0026this.show(),!this.editable\\u0026\\u0026this.searchOptions(t,t.key))}this.clicked=!1}},onEditableInput:function(t){var e=t.target.value;this.searchValue=\\\"\\\",!this.searchOptions(t,e)\\u0026\\u0026(this.focusedOptionIndex=-1),this.updateModel(t,e),!this.overlayVisible\\u0026\\u0026K(e)\\u0026\\u0026this.show()},onContainerClick:function(t){this.disabled||this.loading||\\\"INPUT\\\"===t.target.tagName||\\\"clearicon\\\"===t.target.getAttribute(\\\"data-pc-section\\\")||t.target.closest('[data-pc-section=\\\"clearicon\\\"]')||(this.overlay\\u0026\\u0026this.overlay.contains(t.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear\\u0026\\u0026(this.filterValue=null)},onFirstHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?it(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])'):this.$refs.focusInput;et(e)},onLastHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?rt(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])'):this.$refs.focusInput;et(e)},onOptionSelect:function(t,e){var n=!(arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2])||arguments[2],o=this.getOptionValue(e);this.updateModel(t,o),n\\u0026\\u0026this.hide(!0)},onOptionMouseMove:function(t,e){this.focusOnHover\\u0026\\u0026this.changeFocusedOptionIndex(t,e)},onFilterChange:function(t){var e=t.target.value;this.filterValue=e,this.focusedOptionIndex=-1,this.$emit(\\\"filter\\\",{originalEvent:t,value:e}),!this.virtualScrollerDisabled\\u0026\\u0026this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){if(!t.isComposing)switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t,!0);break;case\\\"ArrowLeft\\\":case\\\"ArrowRight\\\":this.onArrowLeftKey(t,!0);break;case\\\"Home\\\":this.onHomeKey(t,!0);break;case\\\"End\\\":this.onEndKey(t,!0);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible\\u0026\\u0026this.alignOverlay()},onOverlayClick:function(t){Xe.emit(\\\"overlay-click\\\",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){if(\\\"Escape\\\"===t.code)this.onEscapeKey(t)},onArrowDownKey:function(t){if(this.overlayVisible){var e=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(t,e)}else this.show(),this.editable\\u0026\\u0026this.changeFocusedOptionIndex(t,this.findSelectedOptionIndex());t.preventDefault()},onArrowUpKey:function(t){var e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1];if(t.altKey\\u0026\\u0026!e)-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\u0026\\u0026this.hide(),t.preventDefault();else{var n=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(t,n),!this.overlayVisible\\u0026\\u0026this.show(),t.preventDefault()}},onArrowLeftKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]\\u0026\\u0026(this.focusedOptionIndex=-1)},onHomeKey:function(t){if(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]){var e=t.currentTarget;t.shiftKey?e.setSelectionRange(0,t.target.selectionStart):(e.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(t,this.findFirstOptionIndex()),!this.overlayVisible\\u0026\\u0026this.show();t.preventDefault()},onEndKey:function(t){if(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]){var e=t.currentTarget;if(t.shiftKey)e.setSelectionRange(t.target.selectionStart,e.value.length);else{var n=e.value.length;e.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(t,this.findLastOptionIndex()),!this.overlayVisible\\u0026\\u0026this.show();t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?(-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onSpaceKey:function(t){!(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1])\\u0026\\u0026this.onEnterKey(t)},onEscapeKey:function(t){this.overlayVisible\\u0026\\u0026this.hide(!0),t.preventDefault(),t.stopPropagation()},onTabKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]||(this.overlayVisible\\u0026\\u0026this.hasFocusableElements()?(et(this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\u0026\\u0026this.hide(this.filter)))},onBackspaceKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]\\u0026\\u0026!this.overlayVisible\\u0026\\u0026this.show()},onOverlayEnter:function(t){var e=this;Q.set(\\\"overlay\\\",t,this.$primevue.config.zIndex.overlay),st(t,{position:\\\"absolute\\\",top:\\\"0\\\",left:\\\"0\\\"}),this.alignOverlay(),this.scrollInView(),setTimeout((function(){e.autoFilterFocus\\u0026\\u0026e.filter\\u0026\\u0026et(e.$refs.filterInput.$el)}),1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(\\\"show\\\")},onOverlayLeave:function(){var t=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus\\u0026\\u0026this.filter\\u0026\\u0026!this.editable\\u0026\\u0026this.$nextTick((function(){et(t.$refs.filterInput.$el)})),this.$emit(\\\"hide\\\"),this.overlay=null},onOverlayAfterLeave:function(t){Q.clear(t)},alignOverlay:function(){\\\"self\\\"===this.appendTo?lt(this.overlay,this.$el):(this.overlay.style.minWidth=G(this.$el)+\\\"px\\\",at(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){t.overlayVisible\\u0026\\u0026t.overlay\\u0026\\u0026!t.$el.contains(e.target)\\u0026\\u0026!t.overlay.contains(e.target)\\u0026\\u0026t.hide()},document.addEventListener(\\\"click\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\u0026\\u0026(document.removeEventListener(\\\"click\\\",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Tt(this.$refs.container,(function(){t.overlayVisible\\u0026\\u0026t.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler\\u0026\\u0026this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible\\u0026\\u0026!ct()\\u0026\\u0026t.hide()},window.addEventListener(\\\"resize\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\u0026\\u0026(window.removeEventListener(\\\"resize\\\",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var t=this;if(!this.editable\\u0026\\u0026!this.labelClickListener){var e=document.querySelector('label[for=\\\"'.concat(this.labelId,'\\\"]'));e\\u0026\\u0026Z(e)\\u0026\\u0026(this.labelClickListener=function(){et(t.$refs.focusInput)},e.addEventListener(\\\"click\\\",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var t=document.querySelector('label[for=\\\"'.concat(this.labelId,'\\\"]'));t\\u0026\\u0026Z(t)\\u0026\\u0026t.removeEventListener(\\\"click\\\",this.labelClickListener)}},hasFocusableElements:function(){return ut(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])').length\\u003e0},isOptionMatched:function(t){var e;return this.isValidOption(t)\\u0026\\u0026\\\"string\\\"==typeof this.getOptionLabel(t)\\u0026\\u0026(null===(e=this.getOptionLabel(t))||void 0===e?void 0:e.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return K(t)\\u0026\\u0026!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)\\u0026\\u0026this.isSelected(t)},isSelected:function(t){return dt(this.d_value,this.getOptionValue(t),this.equalityKey)},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex((function(e){return t.isValidOption(e)}))},findLastOptionIndex:function(){var t=this;return pt(this.visibleOptions,(function(e){return t.isValidOption(e)}))},findNextOptionIndex:function(t){var e=this,n=t\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidOption(t)})):-1;return n\\u003e-1?n+t+1:t},findPrevOptionIndex:function(t){var e=this,n=t\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidOption(t)})):-1;return n\\u003e-1?n:t},findSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex((function(e){return t.isValidSelectedOption(e)})):-1},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\u003c0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\u003c0?this.findLastOptionIndex():t},searchOptions:function(t,e){var n=this;this.searchValue=(this.searchValue||\\\"\\\")+e;var o=-1,i=!1;return K(this.searchValue)\\u0026\\u0026(-1!==(o=-1!==this.focusedOptionIndex?-1===(o=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(t){return n.isOptionMatched(t)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(t){return n.isOptionMatched(t)})):o+this.focusedOptionIndex:this.visibleOptions.findIndex((function(t){return n.isOptionMatched(t)})))\\u0026\\u0026(i=!0),-1===o\\u0026\\u0026-1===this.focusedOptionIndex\\u0026\\u0026(o=this.findFirstFocusedOptionIndex()),-1!==o\\u0026\\u0026this.changeFocusedOptionIndex(t,o)),this.searchTimeout\\u0026\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){n.searchValue=\\\"\\\",n.searchTimeout=null}),500),i},changeFocusedOptionIndex:function(t,e){this.focusedOptionIndex!==e\\u0026\\u0026(this.focusedOptionIndex=e,this.scrollInView(),this.selectOnFocus\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[e],!1))},scrollInView:function(){var t=this,e=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var n=-1!==e?\\\"\\\".concat(t.id,\\\"_\\\").concat(e):t.focusedOptionId,o=J(t.list,'li[id=\\\"'.concat(n,'\\\"]'));o?o.scrollIntoView\\u0026\\u0026o.scrollIntoView({block:\\\"nearest\\\",inline:\\\"start\\\"}):t.virtualScrollerDisabled||t.virtualScroller\\u0026\\u0026t.virtualScroller.scrollToIndex(-1!==e?e:t.focusedOptionIndex)}))},autoUpdateModel:function(){this.selectOnFocus\\u0026\\u0026this.autoOptionFocus\\u0026\\u0026!this.$filled\\u0026\\u0026(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(t,e){this.writeValue(e,t),this.$emit(\\\"change\\\",{originalEvent:t,value:e})},flatOptions:function(t){var e=this;return(t||[]).reduce((function(t,n,o){t.push({optionGroup:n,group:!0,index:o});var i=e.getOptionGroupChildren(n);return i\\u0026\\u0026i.forEach((function(e){return t.push(e)})),t}),[])},overlayRef:function(t){this.overlay=t},listRef:function(t,e){this.list=t,e\\u0026\\u0026e(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=_t.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach((function(e){var o=t.getOptionGroupChildren(e).filter((function(t){return n.includes(t)}));o.length\\u003e0\\u0026\\u0026i.push(un(un({},e),{},dn({},\\\"string\\\"==typeof t.optionGroupChildren?t.optionGroupChildren:\\\"items\\\",ln(o))))})),this.flatOptions(i)}return n}return e},hasSelectedOption:function(){return this.$filled},label:function(){var t=this.findSelectedOptionIndex();return-1!==t?this.getOptionLabel(this.visibleOptions[t]):this.placeholder||\\\"p-emptylabel\\\"},editableInputValue:function(){var t=this.findSelectedOptionIndex();return-1!==t?this.getOptionLabel(this.visibleOptions[t]):this.d_value||\\\"\\\"},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return K(this.visibleOptions)?this.filterMessageText.replaceAll(\\\"{0}\\\",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||\\\"\\\"},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||\\\"\\\"},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||\\\"\\\"},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||\\\"\\\"},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||\\\"\\\"},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(\\\"{0}\\\",\\\"1\\\"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?\\\"\\\".concat(this.id,\\\"_\\\").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter((function(e){return!t.isOptionGroup(e)})).length},isClearIconVisible:function(){return this.showClear\\u0026\\u0026null!=this.d_value\\u0026\\u0026K(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:De},components:{InputText:We,VirtualScroller:nn,Portal:Ye,InputIcon:Ne,IconField:Ue,TimesIcon:Mt,ChevronDownIcon:Vt,SpinnerIcon:Ct,SearchIcon:Pt,CheckIcon:Ft,BlankIcon:At}},hn=[\\\"id\\\"],fn=[\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"tabindex\\\",\\\"disabled\\\",\\\"aria-label\\\",\\\"aria-labelledby\\\",\\\"aria-expanded\\\",\\\"aria-controls\\\",\\\"aria-activedescendant\\\",\\\"aria-invalid\\\"],bn=[\\\"id\\\",\\\"tabindex\\\",\\\"aria-label\\\",\\\"aria-labelledby\\\",\\\"aria-expanded\\\",\\\"aria-controls\\\",\\\"aria-activedescendant\\\",\\\"aria-disabled\\\"],mn=[\\\"id\\\"],gn=[\\\"id\\\"],vn=[\\\"id\\\",\\\"aria-label\\\",\\\"aria-selected\\\",\\\"aria-disabled\\\",\\\"aria-setsize\\\",\\\"aria-posinset\\\",\\\"onClick\\\",\\\"onMousemove\\\",\\\"data-p-selected\\\",\\\"data-p-focused\\\",\\\"data-p-disabled\\\"];pn.render=function(t,e,n,o,i,r){var s=k(\\\"SpinnerIcon\\\"),l=k(\\\"InputText\\\"),a=k(\\\"SearchIcon\\\"),c=k(\\\"InputIcon\\\"),u=k(\\\"IconField\\\"),d=k(\\\"CheckIcon\\\"),p=k(\\\"BlankIcon\\\"),h=k(\\\"VirtualScroller\\\"),f=k(\\\"Portal\\\"),b=w(\\\"ripple\\\");return m(),g(\\\"div\\\",I({ref:\\\"container\\\",id:i.id,class:t.cx(\\\"root\\\"),onClick:e[11]||(e[11]=function(){return r.onContainerClick\\u0026\\u0026r.onContainerClick.apply(r,arguments)})},t.ptmi(\\\"root\\\")),[t.editable?(m(),g(\\\"input\\\",I({key:0,ref:\\\"focusInput\\\",id:t.labelId||t.inputId,type:\\\"text\\\",class:[t.cx(\\\"label\\\"),t.inputClass,t.labelClass],style:[t.inputStyle,t.labelStyle],value:r.editableInputValue,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,disabled:t.disabled,autocomplete:\\\"off\\\",role:\\\"combobox\\\",\\\"aria-label\\\":t.ariaLabel,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-haspopup\\\":\\\"listbox\\\",\\\"aria-expanded\\\":i.overlayVisible,\\\"aria-controls\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":i.focused?r.focusedOptionId:void 0,\\\"aria-invalid\\\":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\u0026\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onKeyDown\\u0026\\u0026r.onKeyDown.apply(r,arguments)}),onInput:e[3]||(e[3]=function(){return r.onEditableInput\\u0026\\u0026r.onEditableInput.apply(r,arguments)})},t.ptm(\\\"label\\\")),null,16,fn)):(m(),g(\\\"span\\\",I({key:1,ref:\\\"focusInput\\\",id:t.labelId||t.inputId,class:[t.cx(\\\"label\\\"),t.inputClass,t.labelClass],style:[t.inputStyle,t.labelStyle],tabindex:t.disabled?-1:t.tabindex,role:\\\"combobox\\\",\\\"aria-label\\\":t.ariaLabel||(\\\"p-emptylabel\\\"===r.label?void 0:r.label),\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-haspopup\\\":\\\"listbox\\\",\\\"aria-expanded\\\":i.overlayVisible,\\\"aria-controls\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":i.focused?r.focusedOptionId:void 0,\\\"aria-disabled\\\":t.disabled,onFocus:e[4]||(e[4]=function(){return r.onFocus\\u0026\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[5]||(e[5]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[6]||(e[6]=function(){return r.onKeyDown\\u0026\\u0026r.onKeyDown.apply(r,arguments)})},t.ptm(\\\"label\\\")),[v(t.$slots,\\\"value\\\",{value:t.d_value,placeholder:t.placeholder},(function(){var t;return[y(x(\\\"p-emptylabel\\\"===r.label?\\\" \\\":null!==(t=r.label)\\u0026\\u0026void 0!==t?t:\\\"empty\\\"),1)]}))],16,bn)),r.isClearIconVisible?v(t.$slots,\\\"clearicon\\\",{key:2,class:z(t.cx(\\\"clearIcon\\\")),clearCallback:r.onClearClick},(function(){return[(m(),S(E(t.clearIcon?\\\"i\\\":\\\"TimesIcon\\\"),I({ref:\\\"clearIcon\\\",class:[t.cx(\\\"clearIcon\\\"),t.clearIcon],onClick:r.onClearClick},t.ptm(\\\"clearIcon\\\"),{\\\"data-pc-section\\\":\\\"clearicon\\\"}),null,16,[\\\"class\\\",\\\"onClick\\\"]))]})):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"dropdown\\\")},t.ptm(\\\"dropdown\\\")),[t.loading?v(t.$slots,\\\"loadingicon\\\",{key:0,class:z(t.cx(\\\"loadingIcon\\\"))},(function(){return[t.loadingIcon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"loadingIcon\\\"),\\\"pi-spin\\\",t.loadingIcon],\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"loadingIcon\\\")),null,16)):(m(),S(s,I({key:1,class:t.cx(\\\"loadingIcon\\\"),spin:\\\"\\\",\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"loadingIcon\\\")),null,16,[\\\"class\\\"]))]})):v(t.$slots,\\\"dropdownicon\\\",{key:1,class:z(t.cx(\\\"dropdownIcon\\\"))},(function(){return[(m(),S(E(t.dropdownIcon?\\\"span\\\":\\\"ChevronDownIcon\\\"),I({class:[t.cx(\\\"dropdownIcon\\\"),t.dropdownIcon],\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"dropdownIcon\\\")),null,16,[\\\"class\\\"]))]}))],16),V(f,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\"p-connected-overlay\\\",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},t.ptm(\\\"transition\\\")),{default:L((function(){return[i.overlayVisible?(m(),g(\\\"div\\\",I({key:0,ref:r.overlayRef,class:[t.cx(\\\"overlay\\\"),t.panelClass,t.overlayClass],style:[t.panelStyle,t.overlayStyle],onClick:e[9]||(e[9]=function(){return r.onOverlayClick\\u0026\\u0026r.onOverlayClick.apply(r,arguments)}),onKeydown:e[10]||(e[10]=function(){return r.onOverlayKeyDown\\u0026\\u0026r.onOverlayKeyDown.apply(r,arguments)})},t.ptm(\\\"overlay\\\")),[C(\\\"span\\\",I({ref:\\\"firstHiddenFocusableElementOnOverlay\\\",role:\\\"presentation\\\",\\\"aria-hidden\\\":\\\"true\\\",class:\\\"p-hidden-accessible p-hidden-focusable\\\",tabindex:0,onFocus:e[7]||(e[7]=function(){return r.onFirstHiddenFocus\\u0026\\u0026r.onFirstHiddenFocus.apply(r,arguments)})},t.ptm(\\\"hiddenFirstFocusableEl\\\"),{\\\"data-p-hidden-accessible\\\":!0,\\\"data-p-hidden-focusable\\\":!0}),null,16),v(t.$slots,\\\"header\\\",{value:t.d_value,options:r.visibleOptions}),t.filter?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"header\\\")},t.ptm(\\\"header\\\")),[V(u,{unstyled:t.unstyled,pt:t.ptm(\\\"pcFilterContainer\\\")},{default:L((function(){return[V(l,{ref:\\\"filterInput\\\",type:\\\"text\\\",value:i.filterValue,onVnodeMounted:r.onFilterUpdated,onVnodeUpdated:r.onFilterUpdated,class:z(t.cx(\\\"pcFilter\\\")),placeholder:t.filterPlaceholder,variant:t.variant,unstyled:t.unstyled,role:\\\"searchbox\\\",autocomplete:\\\"off\\\",\\\"aria-owns\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":r.focusedOptionId,onKeydown:r.onFilterKeyDown,onBlur:r.onFilterBlur,onInput:r.onFilterChange,pt:t.ptm(\\\"pcFilter\\\")},null,8,[\\\"value\\\",\\\"onVnodeMounted\\\",\\\"onVnodeUpdated\\\",\\\"class\\\",\\\"placeholder\\\",\\\"variant\\\",\\\"unstyled\\\",\\\"aria-owns\\\",\\\"aria-activedescendant\\\",\\\"onKeydown\\\",\\\"onBlur\\\",\\\"onInput\\\",\\\"pt\\\"]),V(c,{unstyled:t.unstyled,pt:t.ptm(\\\"pcFilterIconContainer\\\")},{default:L((function(){return[v(t.$slots,\\\"filtericon\\\",{},(function(){return[t.filterIcon?(m(),g(\\\"span\\\",I({key:0,class:t.filterIcon},t.ptm(\\\"filterIcon\\\")),null,16)):(m(),S(a,F(I({key:1},t.ptm(\\\"filterIcon\\\"))),null,16))]}))]})),_:3},8,[\\\"unstyled\\\",\\\"pt\\\"])]})),_:3},8,[\\\"unstyled\\\",\\\"pt\\\"]),C(\\\"span\\\",I({role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenFilterResult\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.filterResultMessageText),17)],16)):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"listContainer\\\"),style:{\\\"max-height\\\":r.virtualScrollerDisabled?t.scrollHeight:\\\"\\\"}},t.ptm(\\\"listContainer\\\")),[V(h,I({ref:r.virtualScrollerRef},t.virtualScrollerOptions,{items:r.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:t.ptm(\\\"virtualScroller\\\")}),A({content:L((function(e){var n=e.styleClass,o=e.contentRef,s=e.items,l=e.getItemOptions,a=e.contentStyle,c=e.itemSize;return[C(\\\"ul\\\",I({ref:function(t){return r.listRef(t,o)},id:i.id+\\\"_list\\\",class:[t.cx(\\\"list\\\"),n],style:a,role:\\\"listbox\\\"},t.ptm(\\\"list\\\")),[(m(!0),g(_,null,M(s,(function(e,n){return m(),g(_,{key:r.getOptionRenderKey(e,r.getOptionIndex(n,l))},[r.isOptionGroup(e)?(m(),g(\\\"li\\\",I({key:0,id:i.id+\\\"_\\\"+r.getOptionIndex(n,l),style:{height:c?c+\\\"px\\\":void 0},class:t.cx(\\\"optionGroup\\\"),role:\\\"option\\\",ref_for:!0},t.ptm(\\\"optionGroup\\\")),[v(t.$slots,\\\"optiongroup\\\",{option:e.optionGroup,index:r.getOptionIndex(n,l)},(function(){return[C(\\\"span\\\",I({class:t.cx(\\\"optionGroupLabel\\\"),ref_for:!0},t.ptm(\\\"optionGroupLabel\\\")),x(r.getOptionGroupLabel(e.optionGroup)),17)]}))],16,gn)):O((m(),g(\\\"li\\\",I({key:1,id:i.id+\\\"_\\\"+r.getOptionIndex(n,l),class:t.cx(\\\"option\\\",{option:e,focusedOption:r.getOptionIndex(n,l)}),style:{height:c?c+\\\"px\\\":void 0},role:\\\"option\\\",\\\"aria-label\\\":r.getOptionLabel(e),\\\"aria-selected\\\":r.isSelected(e),\\\"aria-disabled\\\":r.isOptionDisabled(e),\\\"aria-setsize\\\":r.ariaSetSize,\\\"aria-posinset\\\":r.getAriaPosInset(r.getOptionIndex(n,l)),onClick:function(t){return r.onOptionSelect(t,e)},onMousemove:function(t){return r.onOptionMouseMove(t,r.getOptionIndex(n,l))},\\\"data-p-selected\\\":r.isSelected(e),\\\"data-p-focused\\\":i.focusedOptionIndex===r.getOptionIndex(n,l),\\\"data-p-disabled\\\":r.isOptionDisabled(e),ref_for:!0},r.getPTItemOptions(e,l,n,\\\"option\\\")),[t.checkmark?(m(),g(_,{key:0},[r.isSelected(e)?(m(),S(d,I({key:0,class:t.cx(\\\"optionCheckIcon\\\"),ref_for:!0},t.ptm(\\\"optionCheckIcon\\\")),null,16,[\\\"class\\\"])):(m(),S(p,I({key:1,class:t.cx(\\\"optionBlankIcon\\\"),ref_for:!0},t.ptm(\\\"optionBlankIcon\\\")),null,16,[\\\"class\\\"]))],64)):$(\\\"\\\",!0),v(t.$slots,\\\"option\\\",{option:e,selected:r.isSelected(e),index:r.getOptionIndex(n,l)},(function(){return[C(\\\"span\\\",I({class:t.cx(\\\"optionLabel\\\"),ref_for:!0},t.ptm(\\\"optionLabel\\\")),x(r.getOptionLabel(e)),17)]}))],16,vn)),[[b]])],64)})),128)),i.filterValue\\u0026\\u0026(!s||s\\u0026\\u00260===s.length)?(m(),g(\\\"li\\\",I({key:0,class:t.cx(\\\"emptyMessage\\\"),role:\\\"option\\\"},t.ptm(\\\"emptyMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),[v(t.$slots,\\\"emptyfilter\\\",{},(function(){return[y(x(r.emptyFilterMessageText),1)]}))],16)):!t.options||t.options\\u0026\\u00260===t.options.length?(m(),g(\\\"li\\\",I({key:1,class:t.cx(\\\"emptyMessage\\\"),role:\\\"option\\\"},t.ptm(\\\"emptyMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),[v(t.$slots,\\\"empty\\\",{},(function(){return[y(x(r.emptyMessageText),1)]}))],16)):$(\\\"\\\",!0)],16,mn)]})),_:2},[t.$slots.loader?{name:\\\"loader\\\",fn:L((function(e){var n=e.options;return[v(t.$slots,\\\"loader\\\",{options:n})]})),key:\\\"0\\\"}:void 0]),1040,[\\\"items\\\",\\\"style\\\",\\\"disabled\\\",\\\"pt\\\"])],16),v(t.$slots,\\\"footer\\\",{value:t.d_value,options:r.visibleOptions}),!t.options||t.options\\u0026\\u00260===t.options.length?(m(),g(\\\"span\\\",I({key:1,role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenEmptyMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.emptyMessageText),17)):$(\\\"\\\",!0),C(\\\"span\\\",I({role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenSelectedMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.selectedMessageText),17),C(\\\"span\\\",I({ref:\\\"lastHiddenFocusableElementOnOverlay\\\",role:\\\"presentation\\\",\\\"aria-hidden\\\":\\\"true\\\",class:\\\"p-hidden-accessible p-hidden-focusable\\\",tabindex:0,onFocus:e[8]||(e[8]=function(){return r.onLastHiddenFocus\\u0026\\u0026r.onLastHiddenFocus.apply(r,arguments)})},t.ptm(\\\"hiddenLastFocusableEl\\\"),{\\\"data-p-hidden-accessible\\\":!0,\\\"data-p-hidden-focusable\\\":!0}),null,16)],16)):$(\\\"\\\",!0)]})),_:3},16,[\\\"onEnter\\\",\\\"onAfterEnter\\\",\\\"onLeave\\\",\\\"onAfterLeave\\\"])]})),_:3},8,[\\\"appendTo\\\"])],16,hn)};var yn=St.extend({name:\\\"tooltip-directive\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-tooltip {\\\\n    position: absolute;\\\\n    display: none;\\\\n    max-width: \\\".concat(e(\\\"tooltip.max.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-right,\\\\n.p-tooltip-left {\\\\n    padding: 0 \\\").concat(e(\\\"tooltip.gutter\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-top,\\\\n.p-tooltip-bottom {\\\\n    padding: \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" 0;\\\\n}\\\\n\\\\n.p-tooltip-text {\\\\n    white-space: pre-line;\\\\n    word-break: break-word;\\\\n    background: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"tooltip.color\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"tooltip.padding\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"tooltip.shadow\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"tooltip.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-arrow {\\\\n    position: absolute;\\\\n    width: 0;\\\\n    height: 0;\\\\n    border-color: transparent;\\\\n    border-style: solid;\\\\n}\\\\n\\\\n.p-tooltip-right .p-tooltip-arrow {\\\\n    margin-top: calc(-1 * \\\").concat(e(\\\"tooltip.gutter\\\"),\\\");\\\\n    border-width: \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" 0;\\\\n    border-right-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-left .p-tooltip-arrow {\\\\n    margin-top: calc(-1 * \\\").concat(e(\\\"tooltip.gutter\\\"),\\\");\\\\n    border-width: \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" 0 \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\";\\\\n    border-left-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-top .p-tooltip-arrow {\\\\n    margin-left: calc(-1 * \\\").concat(e(\\\"tooltip.gutter\\\"),\\\");\\\\n    border-width: \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" 0 \\\").concat(e(\\\"tooltip.gutter\\\"),\\\";\\\\n    border-top-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n    border-bottom-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-tooltip-bottom .p-tooltip-arrow {\\\\n    margin-left: calc(-1 * \\\").concat(e(\\\"tooltip.gutter\\\"),\\\");\\\\n    border-width: 0 \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\" \\\").concat(e(\\\"tooltip.gutter\\\"),\\\";\\\\n    border-top-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n    border-bottom-color: \\\").concat(e(\\\"tooltip.background\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:\\\"p-tooltip p-component\\\",arrow:\\\"p-tooltip-arrow\\\",text:\\\"p-tooltip-text\\\"}});function xn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026t[Symbol.iterator]||t[\\\"@@iterator\\\"];if(null!=n){var o,i,r,s,l=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e);else for(;!(a=(o=r.call(n)).done)\\u0026\\u0026(l.push(o.value),l.length!==e);a=!0);}catch(u){c=!0,i=u}finally{try{if(!a\\u0026\\u0026null!=n.return\\u0026\\u0026(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return In(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(t,e):void 0}}(t,e)||function(){throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function In(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}function kn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=wn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=wn(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==wn(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wn(t){return(wn=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}var On=$t.extend({style:yn}).extend(\\\"tooltip\\\",{beforeMount:function(t,e){var n,o=this.getTarget(t);if(o.$_ptooltipModifiers=this.getModifiers(e),e.value){if(\\\"string\\\"==typeof e.value)o.$_ptooltipValue=e.value,o.$_ptooltipDisabled=!1,o.$_ptooltipEscape=!0,o.$_ptooltipClass=null,o.$_ptooltipFitContent=!0,o.$_ptooltipIdAttr=Et()+\\\"_tooltip\\\",o.$_ptooltipShowDelay=0,o.$_ptooltipHideDelay=0,o.$_ptooltipAutoHide=!0;else if(\\\"object\\\"===wn(e.value)\\u0026\\u0026e.value){if(D(e.value.value)||\\\"\\\"===e.value.value.trim())return;o.$_ptooltipValue=e.value.value,o.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled\\u0026\\u0026e.value.disabled,o.$_ptooltipEscape=!!e.value.escape!==e.value.escape||e.value.escape,o.$_ptooltipClass=e.value.class||\\\"\\\",o.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent,o.$_ptooltipIdAttr=e.value.id||Et()+\\\"_tooltip\\\",o.$_ptooltipShowDelay=e.value.showDelay||0,o.$_ptooltipHideDelay=e.value.hideDelay||0,o.$_ptooltipAutoHide=!!e.value.autoHide!==e.value.autoHide||e.value.autoHide}o.$_ptooltipZIndex=null===(n=e.instance.$primevue)||void 0===n||null===(n=n.config)||void 0===n||null===(n=n.zIndex)||void 0===n?void 0:n.tooltip,this.bindEvents(o,e),t.setAttribute(\\\"data-pd-tooltip\\\",!0)}},updated:function(t,e){var n=this.getTarget(t);if(n.$_ptooltipModifiers=this.getModifiers(e),this.unbindEvents(n),e.value)if(\\\"string\\\"==typeof e.value)n.$_ptooltipValue=e.value,n.$_ptooltipDisabled=!1,n.$_ptooltipEscape=!0,n.$_ptooltipClass=null,n.$_ptooltipIdAttr=n.$_ptooltipIdAttr||Et()+\\\"_tooltip\\\",n.$_ptooltipShowDelay=0,n.$_ptooltipHideDelay=0,n.$_ptooltipAutoHide=!0,this.bindEvents(n,e);else if(\\\"object\\\"===wn(e.value)\\u0026\\u0026e.value){if(D(e.value.value)||\\\"\\\"===e.value.value.trim())return void this.unbindEvents(n,e);n.$_ptooltipValue=e.value.value,n.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled\\u0026\\u0026e.value.disabled,n.$_ptooltipEscape=!!e.value.escape!==e.value.escape||e.value.escape,n.$_ptooltipClass=e.value.class||\\\"\\\",n.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent,n.$_ptooltipIdAttr=e.value.id||n.$_ptooltipIdAttr||Et()+\\\"_tooltip\\\",n.$_ptooltipShowDelay=e.value.showDelay||0,n.$_ptooltipHideDelay=e.value.hideDelay||0,n.$_ptooltipAutoHide=!!e.value.autoHide!==e.value.autoHide||e.value.autoHide,this.bindEvents(n,e)}},unmounted:function(t,e){var n=this.getTarget(t);this.remove(n),this.unbindEvents(n,e),n.$_ptooltipScrollHandler\\u0026\\u0026(n.$_ptooltipScrollHandler.destroy(),n.$_ptooltipScrollHandler=null)},timer:void 0,methods:{bindEvents:function(t,e){var n=this;t.$_ptooltipModifiers.focus?(t.$_focusevent=function(t){return n.onFocus(t,e)},t.addEventListener(\\\"focus\\\",t.$_focusevent),t.addEventListener(\\\"blur\\\",this.onBlur.bind(this))):(t.$_mouseenterevent=function(t){return n.onMouseEnter(t,e)},t.addEventListener(\\\"mouseenter\\\",t.$_mouseenterevent),t.addEventListener(\\\"mouseleave\\\",this.onMouseLeave.bind(this)),t.addEventListener(\\\"click\\\",this.onClick.bind(this))),t.addEventListener(\\\"keydown\\\",this.onKeydown.bind(this))},unbindEvents:function(t){t.$_ptooltipModifiers.focus?(t.removeEventListener(\\\"focus\\\",t.$_focusevent),t.$_focusevent=null,t.removeEventListener(\\\"blur\\\",this.onBlur.bind(this))):(t.removeEventListener(\\\"mouseenter\\\",t.$_mouseenterevent),t.$_mouseenterevent=null,t.removeEventListener(\\\"mouseleave\\\",this.onMouseLeave.bind(this)),t.removeEventListener(\\\"click\\\",this.onClick.bind(this))),t.removeEventListener(\\\"keydown\\\",this.onKeydown.bind(this))},bindScrollListener:function(t){var e=this;t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new Tt(t,(function(){e.hide(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()},unbindScrollListener:function(t){t.$_ptooltipScrollHandler\\u0026\\u0026t.$_ptooltipScrollHandler.unbindScrollListener()},onMouseEnter:function(t,e){var n=t.currentTarget,o=n.$_ptooltipShowDelay;this.show(n,e,o)},onMouseLeave:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;e.$_ptooltipAutoHide?this.hide(e,n):!(\\\"tooltip\\\"===q(t.target,\\\"data-pc-name\\\")||\\\"arrow\\\"===q(t.target,\\\"data-pc-section\\\")||\\\"text\\\"===q(t.target,\\\"data-pc-section\\\")||\\\"tooltip\\\"===q(t.relatedTarget,\\\"data-pc-name\\\")||\\\"arrow\\\"===q(t.relatedTarget,\\\"data-pc-section\\\")||\\\"text\\\"===q(t.relatedTarget,\\\"data-pc-section\\\"))\\u0026\\u0026this.hide(e,n)},onFocus:function(t,e){var n=t.currentTarget,o=n.$_ptooltipShowDelay;this.show(n,e,o)},onBlur:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;this.hide(e,n)},onClick:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;this.hide(e,n)},onKeydown:function(t){var e=t.currentTarget.$_ptooltipHideDelay;\\\"Escape\\\"===t.code\\u0026\\u0026this.hide(t.currentTarget,e)},tooltipActions:function(t,e){if(!t.$_ptooltipDisabled\\u0026\\u0026ht(t)){var n=this.create(t,e);this.align(t),!this.isUnstyled()\\u0026\\u0026ft(n,250);var o=this;window.addEventListener(\\\"resize\\\",(function e(){ct()||o.hide(t),window.removeEventListener(\\\"resize\\\",e)})),n.addEventListener(\\\"mouseleave\\\",(function e(){o.hide(t),n.removeEventListener(\\\"mouseleave\\\",e),t.removeEventListener(\\\"mouseenter\\\",t.$_mouseenterevent),setTimeout((function(){return t.addEventListener(\\\"mouseenter\\\",t.$_mouseenterevent)}),50)})),this.bindScrollListener(t),Q.set(\\\"tooltip\\\",n,t.$_ptooltipZIndex)}},show:function(t,e,n){var o=this;void 0!==n?this.timer=setTimeout((function(){return o.tooltipActions(t,e)}),n):this.tooltipActions(t,e)},tooltipRemoval:function(t){this.remove(t),this.unbindScrollListener(t)},hide:function(t,e){var n=this;clearTimeout(this.timer),void 0!==e?setTimeout((function(){return n.tooltipRemoval(t)}),e):this.tooltipRemoval(t)},getTooltipElement:function(t){return document.getElementById(t.$_ptooltipId)},create:function(t){var e=t.$_ptooltipModifiers,n=B(\\\"div\\\",{class:!this.isUnstyled()\\u0026\\u0026this.cx(\\\"arrow\\\"),\\\"p-bind\\\":this.ptm(\\\"arrow\\\",{context:e})}),o=B(\\\"div\\\",{class:!this.isUnstyled()\\u0026\\u0026this.cx(\\\"text\\\"),\\\"p-bind\\\":this.ptm(\\\"text\\\",{context:e})});t.$_ptooltipEscape?(o.innerHTML=\\\"\\\",o.appendChild(document.createTextNode(t.$_ptooltipValue))):o.innerHTML=t.$_ptooltipValue;var i=B(\\\"div\\\",kn(kn({id:t.$_ptooltipIdAttr,role:\\\"tooltip\\\",style:{display:\\\"inline-block\\\",width:t.$_ptooltipFitContent?\\\"fit-content\\\":void 0,pointerEvents:!this.isUnstyled()\\u0026\\u0026t.$_ptooltipAutoHide\\u0026\\u0026\\\"none\\\"},class:[!this.isUnstyled()\\u0026\\u0026this.cx(\\\"root\\\"),t.$_ptooltipClass]},this.$attrSelector,\\\"\\\"),\\\"p-bind\\\",this.ptm(\\\"root\\\",{context:e})),n,o);return document.body.appendChild(i),t.$_ptooltipId=i.id,this.$el=i,i},remove:function(t){if(t){var e=this.getTooltipElement(t);e\\u0026\\u0026e.parentElement\\u0026\\u0026(Q.clear(e),document.body.removeChild(e)),t.$_ptooltipId=null}},align:function(t){var e=t.$_ptooltipModifiers;e.top?(this.alignTop(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\u0026\\u0026this.alignTop(t))):e.left?(this.alignLeft(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignRight(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\u0026\\u0026this.alignLeft(t))))):e.bottom?(this.alignBottom(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\u0026\\u0026this.alignBottom(t))):(this.alignRight(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignLeft(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\u0026\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\u0026\\u0026this.alignRight(t)))))},getHostOffset:function(t){var e=t.getBoundingClientRect();return{left:e.left+bt(),top:e.top+mt()}},alignRight:function(t){this.preAlign(t,\\\"right\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+G(t),i=n.top+(U(t)-U(e))/2;e.style.left=o+\\\"px\\\",e.style.top=i+\\\"px\\\"},alignLeft:function(t){this.preAlign(t,\\\"left\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left-G(e),i=n.top+(U(t)-U(e))/2;e.style.left=o+\\\"px\\\",e.style.top=i+\\\"px\\\"},alignTop:function(t){this.preAlign(t,\\\"top\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+(G(t)-G(e))/2,i=n.top-U(e);e.style.left=o+\\\"px\\\",e.style.top=i+\\\"px\\\"},alignBottom:function(t){this.preAlign(t,\\\"bottom\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+(G(t)-G(e))/2,i=n.top+U(t);e.style.left=o+\\\"px\\\",e.style.top=i+\\\"px\\\"},preAlign:function(t,e){var n=this.getTooltipElement(t);n.style.left=\\\"-999px\\\",n.style.top=\\\"-999px\\\",H(n,\\\"p-tooltip-\\\".concat(n.$_ptooltipPosition)),!this.isUnstyled()\\u0026\\u0026W(n,\\\"p-tooltip-\\\".concat(e)),n.$_ptooltipPosition=e,n.setAttribute(\\\"data-p-position\\\",e);var o=J(n,'[data-pc-section=\\\"arrow\\\"]');o.style.top=\\\"bottom\\\"===e?\\\"0\\\":\\\"right\\\"===e||\\\"left\\\"===e||\\\"right\\\"!==e\\u0026\\u0026\\\"left\\\"!==e\\u0026\\u0026\\\"top\\\"!==e\\u0026\\u0026\\\"bottom\\\"!==e?\\\"50%\\\":null,o.style.bottom=\\\"top\\\"===e?\\\"0\\\":null,o.style.left=\\\"right\\\"===e||\\\"right\\\"!==e\\u0026\\u0026\\\"left\\\"!==e\\u0026\\u0026\\\"top\\\"!==e\\u0026\\u0026\\\"bottom\\\"!==e?\\\"0\\\":\\\"top\\\"===e||\\\"bottom\\\"===e?\\\"50%\\\":null,o.style.right=\\\"left\\\"===e?\\\"0\\\":null},isOutOfBounds:function(t){var e=this.getTooltipElement(t),n=e.getBoundingClientRect(),o=n.top,i=n.left,r=G(e),s=U(e),l=gt();return i+r\\u003el.width||i\\u003c0||o\\u003c0||o+s\\u003el.height},getTarget:function(t){var e;return vt(t,\\\"p-inputwrapper\\\")\\u0026\\u0026null!==(e=J(t,\\\"input\\\"))\\u0026\\u0026void 0!==e?e:t},getModifiers:function(t){return t.modifiers\\u0026\\u0026Object.keys(t.modifiers).length?t.modifiers:t.arg\\u0026\\u0026\\\"object\\\"===wn(t.arg)?Object.entries(t.arg).reduce((function(t,e){var n=xn(e,2),o=n[0],i=n[1];return\\\"event\\\"!==o\\u0026\\u0026\\\"position\\\"!==o||(t[i]=!0),t}),{}):{}}}}),Sn=St.extend({name:\\\"checkbox\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-checkbox {\\\\n    position: relative;\\\\n    display: inline-flex;\\\\n    user-select: none;\\\\n    vertical-align: bottom;\\\\n    width: \\\".concat(e(\\\"checkbox.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-input {\\\\n    cursor: pointer;\\\\n    appearance: none;\\\\n    position: absolute;\\\\n    inset-block-start: 0;\\\\n    inset-inline-start: 0;\\\\n    width: 100%;\\\\n    height: 100%;\\\\n    padding: 0;\\\\n    margin: 0;\\\\n    opacity: 0;\\\\n    z-index: 1;\\\\n    outline: 0 none;\\\\n    border: 1px solid transparent;\\\\n    border-radius: \\\").concat(e(\\\"checkbox.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-box {\\\\n    display: flex;\\\\n    justify-content: center;\\\\n    align-items: center;\\\\n    border-radius: \\\").concat(e(\\\"checkbox.border.radius\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"checkbox.border.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"checkbox.background\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"checkbox.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.height\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\", color \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    box-shadow: \\\").concat(e(\\\"checkbox.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-icon {\\\\n    transition-duration: \\\").concat(e(\\\"checkbox.transition.duration\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"checkbox.icon.color\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"checkbox.icon.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"checkbox.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.icon.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.checked.border.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"checkbox.checked.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked .p-checkbox-icon {\\\\n    color: \\\").concat(e(\\\"checkbox.icon.checked.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.checked.hover.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"checkbox.checked.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {\\\\n    color: \\\").concat(e(\\\"checkbox.icon.checked.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.focus.border.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"checkbox.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"checkbox.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"checkbox.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"checkbox.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"checkbox.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.checked.focus.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox.p-invalid \\u003e .p-checkbox-box {\\\\n    border-color: \\\").concat(e(\\\"checkbox.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox.p-variant-filled .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.filled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked.p-variant-filled .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.checked.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.checked.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox.p-disabled {\\\\n    opacity: 1;\\\\n}\\\\n\\\\n.p-checkbox.p-disabled .p-checkbox-box {\\\\n    background: \\\").concat(e(\\\"checkbox.disabled.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"checkbox.checked.disabled.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {\\\\n    color: \\\").concat(e(\\\"checkbox.icon.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-sm,\\\\n.p-checkbox-sm .p-checkbox-box {\\\\n    width: \\\").concat(e(\\\"checkbox.sm.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.sm.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-sm .p-checkbox-icon {\\\\n    font-size: \\\").concat(e(\\\"checkbox.icon.sm.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"checkbox.icon.sm.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.icon.sm.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-lg,\\\\n.p-checkbox-lg .p-checkbox-box {\\\\n    width: \\\").concat(e(\\\"checkbox.lg.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.lg.height\\\"),\\\";\\\\n}\\\\n\\\\n.p-checkbox-lg .p-checkbox-icon {\\\\n    font-size: \\\").concat(e(\\\"checkbox.icon.lg.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"checkbox.icon.lg.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"checkbox.icon.lg.size\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-checkbox p-component\\\",{\\\"p-checkbox-checked\\\":e.checked,\\\"p-disabled\\\":n.disabled,\\\"p-invalid\\\":e.$pcCheckboxGroup?e.$pcCheckboxGroup.$invalid:e.$invalid,\\\"p-variant-filled\\\":\\\"filled\\\"===e.$variant,\\\"p-checkbox-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-checkbox-lg p-inputfield-lg\\\":\\\"large\\\"===n.size}]},box:\\\"p-checkbox-box\\\",input:\\\"p-checkbox-input\\\",icon:\\\"p-checkbox-icon\\\"}});function Ln(t){return function(t){if(Array.isArray(t))return $n(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return $n(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$n(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function $n(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}var Cn={name:\\\"Checkbox\\\",extends:{name:\\\"BaseCheckbox\\\",extends:zt,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Sn,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\",\\\"focus\\\",\\\"blur\\\",\\\"update:indeterminate\\\"],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(t){this.d_indeterminate=t}},methods:{getPTOptions:function(t){return(\\\"root\\\"===t?this.ptmi:this.ptm)(t,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(t){var e=this;if(!this.disabled\\u0026\\u0026!this.readonly){var n,o=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;n=this.binary?this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?o.filter((function(t){return!dt(t,e.value)})):o?[].concat(Ln(o),[this.value]):[this.value],this.d_indeterminate\\u0026\\u0026(this.d_indeterminate=!1,this.$emit(\\\"update:indeterminate\\\",this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(n,t):this.writeValue(n,t),this.$emit(\\\"change\\\",t)}},onFocus:function(t){this.$emit(\\\"focus\\\",t)},onBlur:function(t){var e,n;this.$emit(\\\"blur\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)}},computed:{groupName:function(){return this.$pcCheckboxGroup?this.$pcCheckboxGroup.groupName:this.$formName},checked:function(){var t=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return!this.d_indeterminate\\u0026\\u0026(this.binary?t===this.trueValue:yt(this.value,t))}},components:{CheckIcon:Ft,MinusIcon:Kt}},zn=[\\\"data-p-checked\\\",\\\"data-p-indeterminate\\\",\\\"data-p-disabled\\\"],En=[\\\"id\\\",\\\"value\\\",\\\"name\\\",\\\"checked\\\",\\\"tabindex\\\",\\\"disabled\\\",\\\"readonly\\\",\\\"required\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"aria-invalid\\\",\\\"aria-checked\\\"];Cn.render=function(t,e,n,o,i,r){var s=k(\\\"CheckIcon\\\"),l=k(\\\"MinusIcon\\\");return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\")},r.getPTOptions(\\\"root\\\"),{\\\"data-p-checked\\\":r.checked,\\\"data-p-indeterminate\\\":i.d_indeterminate||void 0,\\\"data-p-disabled\\\":t.disabled}),[C(\\\"input\\\",I({id:t.inputId,type:\\\"checkbox\\\",class:[t.cx(\\\"input\\\"),t.inputClass],style:t.inputStyle,value:t.value,name:r.groupName,checked:r.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,required:t.required,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,\\\"aria-invalid\\\":t.invalid||void 0,\\\"aria-checked\\\":i.d_indeterminate?\\\"mixed\\\":void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\u0026\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)}),onChange:e[2]||(e[2]=function(){return r.onChange\\u0026\\u0026r.onChange.apply(r,arguments)})},r.getPTOptions(\\\"input\\\")),null,16,En),C(\\\"div\\\",I({class:t.cx(\\\"box\\\")},r.getPTOptions(\\\"box\\\")),[v(t.$slots,\\\"icon\\\",{checked:r.checked,indeterminate:i.d_indeterminate,class:z(t.cx(\\\"icon\\\"))},(function(){return[r.checked?(m(),S(s,I({key:0,class:t.cx(\\\"icon\\\")},r.getPTOptions(\\\"icon\\\")),null,16,[\\\"class\\\"])):i.d_indeterminate?(m(),S(l,I({key:1,class:t.cx(\\\"icon\\\")},r.getPTOptions(\\\"icon\\\")),null,16,[\\\"class\\\"])):$(\\\"\\\",!0)]}))],16)],16,zn)};var Tn=St.extend({name:\\\"chip\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-chip {\\\\n    display: inline-flex;\\\\n    align-items: center;\\\\n    background: \\\".concat(e(\\\"chip.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"chip.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"chip.border.radius\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"chip.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"chip.padding.x\\\"),\\\";\\\\n    gap: \\\").concat(e(\\\"chip.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-chip-icon {\\\\n    color: \\\").concat(e(\\\"chip.icon.color\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"chip.icon.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"chip.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"chip.icon.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-chip-image {\\\\n    border-radius: 50%;\\\\n    width: \\\").concat(e(\\\"chip.image.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"chip.image.height\\\"),\\\";\\\\n    margin-inline-start: calc(-1 * \\\").concat(e(\\\"chip.padding.y\\\"),\\\");\\\\n}\\\\n\\\\n.p-chip:has(.p-chip-remove-icon) {\\\\n    padding-inline-end: \\\").concat(e(\\\"chip.padding.y\\\"),\\\";\\\\n}\\\\n\\\\n.p-chip:has(.p-chip-image) {\\\\n    padding-block-start: calc(\\\").concat(e(\\\"chip.padding.y\\\"),\\\" / 2);\\\\n    padding-block-end: calc(\\\").concat(e(\\\"chip.padding.y\\\"),\\\" / 2);\\\\n}\\\\n\\\\n.p-chip-remove-icon {\\\\n    cursor: pointer;\\\\n    font-size: \\\").concat(e(\\\"chip.remove.icon.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"chip.remove.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"chip.remove.icon.size\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"chip.remove.icon.color\\\"),\\\";\\\\n    border-radius: 50%;\\\\n    transition: outline-color \\\").concat(e(\\\"chip.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"chip.transition.duration\\\"),\\\";\\\\n    outline-color: transparent;\\\\n}\\\\n\\\\n.p-chip-remove-icon:focus-visible {\\\\n    box-shadow: \\\").concat(e(\\\"chip.remove.icon.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"chip.remove.icon.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"chip.remove.icon.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"chip.remove.icon.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"chip.remove.icon.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:\\\"p-chip p-component\\\",image:\\\"p-chip-image\\\",icon:\\\"p-chip-icon\\\",label:\\\"p-chip-label\\\",removeIcon:\\\"p-chip-remove-icon\\\"}}),_n={name:\\\"Chip\\\",extends:{name:\\\"BaseChip\\\",extends:Lt,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:Tn,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"remove\\\"],data:function(){return{visible:!0}},methods:{onKeydown:function(t){\\\"Enter\\\"!==t.key\\u0026\\u0026\\\"Backspace\\\"!==t.key||this.close(t)},close:function(t){this.visible=!1,this.$emit(\\\"remove\\\",t)}},components:{TimesCircleIcon:Dt}},Mn=[\\\"aria-label\\\"],Vn=[\\\"src\\\"];_n.render=function(t,e,n,o,i,r){return i.visible?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"root\\\"),\\\"aria-label\\\":t.label},t.ptmi(\\\"root\\\")),[v(t.$slots,\\\"default\\\",{},(function(){return[t.image?(m(),g(\\\"img\\\",I({key:0,src:t.image},t.ptm(\\\"image\\\"),{class:t.cx(\\\"image\\\")}),null,16,Vn)):t.$slots.icon?(m(),S(E(t.$slots.icon),I({key:1,class:t.cx(\\\"icon\\\")},t.ptm(\\\"icon\\\")),null,16,[\\\"class\\\"])):t.icon?(m(),g(\\\"span\\\",I({key:2,class:[t.cx(\\\"icon\\\"),t.icon]},t.ptm(\\\"icon\\\")),null,16)):$(\\\"\\\",!0),t.label?(m(),g(\\\"div\\\",I({key:3,class:t.cx(\\\"label\\\")},t.ptm(\\\"label\\\")),x(t.label),17)):$(\\\"\\\",!0)]})),t.removable?v(t.$slots,\\\"removeicon\\\",{key:0,removeCallback:r.close,keydownCallback:r.onKeydown},(function(){return[(m(),S(E(t.removeIcon?\\\"span\\\":\\\"TimesCircleIcon\\\"),I({class:[t.cx(\\\"removeIcon\\\"),t.removeIcon],onClick:r.close,onKeydown:r.onKeydown},t.ptm(\\\"removeIcon\\\")),null,16,[\\\"class\\\",\\\"onClick\\\",\\\"onKeydown\\\"]))]})):$(\\\"\\\",!0)],16,Mn)):$(\\\"\\\",!0)};var Pn=St.extend({name:\\\"multiselect\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-multiselect {\\\\n    display: inline-flex;\\\\n    cursor: pointer;\\\\n    position: relative;\\\\n    user-select: none;\\\\n    background: \\\".concat(e(\\\"multiselect.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"multiselect.border.color\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"multiselect.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    box-shadow: \\\").concat(e(\\\"multiselect.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect:not(.p-disabled):hover {\\\\n    border-color: \\\").concat(e(\\\"multiselect.hover.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect:not(.p-disabled).p-focus {\\\\n    border-color: \\\").concat(e(\\\"multiselect.focus.border.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"multiselect.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"multiselect.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"multiselect.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"multiselect.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"multiselect.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-variant-filled {\\\\n    background: \\\").concat(e(\\\"multiselect.filled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-variant-filled:not(.p-disabled):hover {\\\\n    background: \\\").concat(e(\\\"multiselect.filled.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-variant-filled.p-focus {\\\\n    background: \\\").concat(e(\\\"multiselect.filled.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-invalid {\\\\n    border-color: \\\").concat(e(\\\"multiselect.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-disabled {\\\\n    opacity: 1;\\\\n    background: \\\").concat(e(\\\"multiselect.disabled.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-dropdown {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    flex-shrink: 0;\\\\n    background: transparent;\\\\n    color: \\\").concat(e(\\\"multiselect.dropdown.color\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"multiselect.dropdown.width\\\"),\\\";\\\\n    border-start-end-radius: \\\").concat(e(\\\"multiselect.border.radius\\\"),\\\";\\\\n    border-end-end-radius: \\\").concat(e(\\\"multiselect.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-clear-icon {\\\\n    position: absolute;\\\\n    top: 50%;\\\\n    margin-top: -0.5rem;\\\\n    color: \\\").concat(e(\\\"multiselect.clear.icon.color\\\"),\\\";\\\\n    inset-inline-end: \\\").concat(e(\\\"multiselect.dropdown.width\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label-container {\\\\n    overflow: hidden;\\\\n    flex: 1 1 auto;\\\\n    cursor: pointer;\\\\n}\\\\n\\\\n.p-multiselect-label {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    gap: calc(\\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" / 2);\\\\n    white-space: nowrap;\\\\n    cursor: pointer;\\\\n    overflow: hidden;\\\\n    text-overflow: ellipsis;\\\\n    padding: \\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" \\\").concat(e(\\\"multiselect.padding.x\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label.p-placeholder {\\\\n    color: \\\").concat(e(\\\"multiselect.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-invalid .p-multiselect-label.p-placeholder {\\\\n    color: \\\").concat(e(\\\"multiselect.invalid.placeholder.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect.p-disabled .p-multiselect-label {\\\\n    color: \\\").concat(e(\\\"multiselect.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label-empty {\\\\n    overflow: hidden;\\\\n    visibility: hidden;\\\\n}\\\\n\\\\n.p-multiselect .p-multiselect-overlay {\\\\n    min-width: 100%;\\\\n}\\\\n\\\\n.p-multiselect-overlay {\\\\n    position: absolute;\\\\n    top: 0;\\\\n    left: 0;\\\\n    background: \\\").concat(e(\\\"multiselect.overlay.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.overlay.color\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"multiselect.overlay.border.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"multiselect.overlay.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"multiselect.overlay.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-header {\\\\n    display: flex;\\\\n    align-items: center;\\\\n    padding: \\\").concat(e(\\\"multiselect.list.header.padding\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-header .p-checkbox {\\\\n    margin-inline-end: \\\").concat(e(\\\"multiselect.option.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-filter-container {\\\\n    flex: 1 1 auto;\\\\n}\\\\n\\\\n.p-multiselect-filter {\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-multiselect-list-container {\\\\n    overflow: auto;\\\\n}\\\\n\\\\n.p-multiselect-list {\\\\n    margin: 0;\\\\n    padding: 0;\\\\n    list-style-type: none;\\\\n    padding: \\\").concat(e(\\\"multiselect.list.padding\\\"),\\\";\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    gap: \\\").concat(e(\\\"multiselect.list.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option {\\\\n    cursor: pointer;\\\\n    font-weight: normal;\\\\n    white-space: nowrap;\\\\n    position: relative;\\\\n    overflow: hidden;\\\\n    display: flex;\\\\n    align-items: center;\\\\n    gap: \\\").concat(e(\\\"multiselect.option.gap\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"multiselect.option.padding\\\"),\\\";\\\\n    border: 0 none;\\\\n    color: \\\").concat(e(\\\"multiselect.option.color\\\"),\\\";\\\\n    background: transparent;\\\\n    transition: background \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"multiselect.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"multiselect.option.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {\\\\n    background: \\\").concat(e(\\\"multiselect.option.focus.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.option.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option.p-multiselect-option-selected {\\\\n    background: \\\").concat(e(\\\"multiselect.option.selected.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.option.selected.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option.p-multiselect-option-selected.p-focus {\\\\n    background: \\\").concat(e(\\\"multiselect.option.selected.focus.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.option.selected.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-option-group {\\\\n    cursor: auto;\\\\n    margin: 0;\\\\n    padding: \\\").concat(e(\\\"multiselect.option.group.padding\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"multiselect.option.group.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"multiselect.option.group.color\\\"),\\\";\\\\n    font-weight: \\\").concat(e(\\\"multiselect.option.group.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-empty-message {\\\\n    padding: \\\").concat(e(\\\"multiselect.empty.message.padding\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label .p-chip {\\\\n    padding-block-start: calc(\\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" / 2);\\\\n    padding-block-end: calc(\\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" / 2);\\\\n    border-radius: \\\").concat(e(\\\"multiselect.chip.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-label:has(.p-chip) {\\\\n    padding: calc(\\\").concat(e(\\\"multiselect.padding.y\\\"),\\\" / 2) calc(\\\").concat(e(\\\"multiselect.padding.x\\\"),\\\" / 2);\\\\n}\\\\n\\\\n.p-multiselect-fluid {\\\\n    display: flex;\\\\n    width: 100%;\\\\n}\\\\n\\\\n.p-multiselect-sm .p-multiselect-label {\\\\n    font-size: \\\").concat(e(\\\"multiselect.sm.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"multiselect.sm.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"multiselect.sm.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-sm .p-multiselect-dropdown .p-icon {\\\\n    font-size: \\\").concat(e(\\\"multiselect.sm.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"multiselect.sm.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"multiselect.sm.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-lg .p-multiselect-label {\\\\n    font-size: \\\").concat(e(\\\"multiselect.lg.font.size\\\"),\\\";\\\\n    padding-block: \\\").concat(e(\\\"multiselect.lg.padding.y\\\"),\\\";\\\\n    padding-inline: \\\").concat(e(\\\"multiselect.lg.padding.x\\\"),\\\";\\\\n}\\\\n\\\\n.p-multiselect-lg .p-multiselect-dropdown .p-icon {\\\\n    font-size: \\\").concat(e(\\\"multiselect.lg.font.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"multiselect.lg.font.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"multiselect.lg.font.size\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-multiselect p-component p-inputwrapper\\\",{\\\"p-multiselect-display-chip\\\":\\\"chip\\\"===n.display,\\\"p-disabled\\\":n.disabled,\\\"p-invalid\\\":e.$invalid,\\\"p-variant-filled\\\":\\\"filled\\\"===e.$variant,\\\"p-focus\\\":e.focused,\\\"p-inputwrapper-filled\\\":e.$filled,\\\"p-inputwrapper-focus\\\":e.focused||e.overlayVisible,\\\"p-multiselect-open\\\":e.overlayVisible,\\\"p-multiselect-fluid\\\":e.$fluid,\\\"p-multiselect-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-multiselect-lg p-inputfield-lg\\\":\\\"large\\\"===n.size}]},labelContainer:\\\"p-multiselect-label-container\\\",label:function(t){var e=t.instance,n=t.props;return[\\\"p-multiselect-label\\\",{\\\"p-placeholder\\\":e.label===n.placeholder,\\\"p-multiselect-label-empty\\\":!(n.placeholder||n.modelValue\\u0026\\u00260!==n.modelValue.length)}]},clearIcon:\\\"p-multiselect-clear-icon\\\",chipItem:\\\"p-multiselect-chip-item\\\",pcChip:\\\"p-multiselect-chip\\\",chipIcon:\\\"p-multiselect-chip-icon\\\",dropdown:\\\"p-multiselect-dropdown\\\",loadingIcon:\\\"p-multiselect-loading-icon\\\",dropdownIcon:\\\"p-multiselect-dropdown-icon\\\",overlay:\\\"p-multiselect-overlay p-component\\\",header:\\\"p-multiselect-header\\\",pcFilterContainer:\\\"p-multiselect-filter-container\\\",pcFilter:\\\"p-multiselect-filter\\\",listContainer:\\\"p-multiselect-list-container\\\",list:\\\"p-multiselect-list\\\",optionGroup:\\\"p-multiselect-option-group\\\",option:function(t){var e=t.instance,n=t.option,o=t.index,i=t.getItemOptions,r=t.props;return[\\\"p-multiselect-option\\\",{\\\"p-multiselect-option-selected\\\":e.isSelected(n)\\u0026\\u0026r.highlightOnSelect,\\\"p-focus\\\":e.focusedOptionIndex===e.getOptionIndex(o,i),\\\"p-disabled\\\":e.isOptionDisabled(n)}]},emptyMessage:\\\"p-multiselect-empty-message\\\"},inlineStyles:{root:function(t){return{position:\\\"self\\\"===t.props.appendTo?\\\"relative\\\":void 0}}}});function Fn(t){return(Fn=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\u0026\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function Kn(t){for(var e=1;e\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?An(Object(n),!0).forEach((function(e){Dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Fn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Fn(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Fn(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bn(t){return function(t){if(Array.isArray(t))return Hn(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return Hn(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hn(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function Hn(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}var jn={name:\\\"MultiSelect\\\",extends:{name:\\\"BaseMultiSelect\\\",extends:zt,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:\\\"14rem\\\"},placeholder:String,inputId:{type:String,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},overlayClass:{type:String,default:null},overlayStyle:{type:null,default:null},dataKey:null,showClear:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},resetFilterOnClear:{type:Boolean,default:!1},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:\\\"contains\\\"},filterFields:{type:Array,default:null},appendTo:{type:[String,Object],default:\\\"body\\\"},display:{type:String,default:\\\"comma\\\"},selectedItemsLabel:{type:String,default:null},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},checkboxIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},chipIcon:{type:String,default:void 0},selectAll:{type:Boolean,default:null},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:Pn,provide:function(){return{$pcMultiSelect:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\",\\\"focus\\\",\\\"blur\\\",\\\"before-show\\\",\\\"before-hide\\\",\\\"show\\\",\\\"hide\\\",\\\"filter\\\",\\\"selectall-change\\\"],inject:{$pcFluid:{default:null}},outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,startRangeIndex:-1,searchTimeout:null,searchValue:\\\"\\\",selectOnFocus:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{\\\"$attrs.id\\\":function(t){this.id=t||Et()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Et(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler\\u0026\\u0026(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay\\u0026\\u0026(Q.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,e){return this.virtualScrollerDisabled?t:e\\u0026\\u0026e(t).index},getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t,e){return this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t)+\\\"_\\\".concat(e)},getHeaderCheckboxPTOptions:function(t){return this.ptm(t,{context:{selected:this.allSelected}})},getCheckboxPTOptions:function(t,e,n,o){return this.ptm(o,{context:{selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(n,e),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return!(!this.maxSelectionLimitReached||this.isSelected(t))||!!this.optionDisabled\\u0026\\u0026tt(t,this.optionDisabled)},isOptionGroup:function(t){return this.optionGroupLabel\\u0026\\u0026t.optionGroup\\u0026\\u0026t.group},getOptionGroupLabel:function(t){return tt(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return tt(t,this.optionGroupChildren)},getAriaPosInset:function(t){var e=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter((function(t){return e.isOptionGroup(t)})).length:t)+1},show:function(t){this.$emit(\\\"before-show\\\"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),t\\u0026\\u0026et(this.$refs.focusInput)},hide:function(t){var e=this;setTimeout((function(){e.$emit(\\\"before-hide\\\"),e.overlayVisible=!1,e.clicked=!1,e.focusedOptionIndex=-1,e.searchValue=\\\"\\\",e.resetFilterOnHide\\u0026\\u0026(e.filterValue=null),t\\u0026\\u0026et(e.$refs.focusInput)}),0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible\\u0026\\u0026(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit(\\\"focus\\\",t))},onBlur:function(t){var e,n;this.clicked=!1,this.focused=!1,this.focusedOptionIndex=-1,this.searchValue=\\\"\\\",this.$emit(\\\"blur\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n)},onKeyDown:function(t){var e=this;if(this.disabled)t.preventDefault();else{var n=t.metaKey||t.ctrlKey;switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t);break;case\\\"Home\\\":this.onHomeKey(t);break;case\\\"End\\\":this.onEndKey(t);break;case\\\"PageDown\\\":this.onPageDownKey(t);break;case\\\"PageUp\\\":this.onPageUpKey(t);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":case\\\"Space\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t);break;case\\\"ShiftLeft\\\":case\\\"ShiftRight\\\":this.onShiftKey(t);break;default:if(\\\"KeyA\\\"===t.code\\u0026\\u0026n){var o=this.visibleOptions.filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,o),t.preventDefault();break}!n\\u0026\\u0026ot(t.key)\\u0026\\u0026(!this.overlayVisible\\u0026\\u0026this.show(),this.searchOptions(t),t.preventDefault())}this.clicked=!1}},onContainerClick:function(t){this.disabled||this.loading||\\\"INPUT\\\"===t.target.tagName||\\\"clearicon\\\"===t.target.getAttribute(\\\"data-pc-section\\\")||t.target.closest('[data-pc-section=\\\"clearicon\\\"]')||(this.overlay\\u0026\\u0026this.overlay.contains(t.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear\\u0026\\u0026(this.filterValue=null)},onFirstHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?it(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])'):this.$refs.focusInput;et(e)},onLastHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?rt(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])'):this.$refs.focusInput;et(e)},onOptionSelect:function(t,e){var n=this,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]?arguments[2]:-1,i=arguments.length\\u003e3\\u0026\\u0026void 0!==arguments[3]\\u0026\\u0026arguments[3];if(!this.disabled\\u0026\\u0026!this.isOptionDisabled(e)){var r=null;r=this.isSelected(e)?this.d_value.filter((function(t){return!dt(t,n.getOptionValue(e),n.equalityKey)})):[].concat(Bn(this.d_value||[]),[this.getOptionValue(e)]),this.updateModel(t,r),-1!==o\\u0026\\u0026(this.focusedOptionIndex=o),i\\u0026\\u0026et(this.$refs.focusInput)}},onOptionMouseMove:function(t,e){this.focusOnHover\\u0026\\u0026this.changeFocusedOptionIndex(t,e)},onOptionSelectRange:function(t){var e=this,n=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:-1,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]?arguments[2]:-1;if(-1===n\\u0026\\u0026(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o\\u0026\\u0026(o=this.findNearestSelectedOptionIndex(n)),-1!==n\\u0026\\u0026-1!==o){var i=Math.min(n,o),r=Math.max(n,o),s=this.visibleOptions.slice(i,r+1).filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,s)}},onFilterChange:function(t){var e=t.target.value;this.filterValue=e,this.focusedOptionIndex=-1,this.$emit(\\\"filter\\\",{originalEvent:t,value:e}),!this.virtualScrollerDisabled\\u0026\\u0026this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t,!0);break;case\\\"ArrowLeft\\\":case\\\"ArrowRight\\\":this.onArrowLeftKey(t,!0);break;case\\\"Home\\\":this.onHomeKey(t,!0);break;case\\\"End\\\":this.onEndKey(t,!0);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible\\u0026\\u0026this.alignOverlay()},onOverlayClick:function(t){Xe.emit(\\\"overlay-click\\\",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){if(\\\"Escape\\\"===t.code)this.onEscapeKey(t)},onArrowDownKey:function(t){if(this.overlayVisible){var e=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();t.shiftKey\\u0026\\u0026this.onOptionSelectRange(t,this.startRangeIndex,e),this.changeFocusedOptionIndex(t,e)}else this.show();t.preventDefault()},onArrowUpKey:function(t){var e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1];if(t.altKey\\u0026\\u0026!e)-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\u0026\\u0026this.hide(),t.preventDefault();else{var n=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();t.shiftKey\\u0026\\u0026this.onOptionSelectRange(t,n,this.startRangeIndex),this.changeFocusedOptionIndex(t,n),!this.overlayVisible\\u0026\\u0026this.show(),t.preventDefault()}},onArrowLeftKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]\\u0026\\u0026(this.focusedOptionIndex=-1)},onHomeKey:function(t){if(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]){var e=t.currentTarget;t.shiftKey?e.setSelectionRange(0,t.target.selectionStart):(e.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else{var n=t.metaKey||t.ctrlKey,o=this.findFirstOptionIndex();t.shiftKey\\u0026\\u0026n\\u0026\\u0026this.onOptionSelectRange(t,o,this.startRangeIndex),this.changeFocusedOptionIndex(t,o),!this.overlayVisible\\u0026\\u0026this.show()}t.preventDefault()},onEndKey:function(t){if(arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]){var e=t.currentTarget;if(t.shiftKey)e.setSelectionRange(t.target.selectionStart,e.value.length);else{var n=e.value.length;e.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else{var o=t.metaKey||t.ctrlKey,i=this.findLastOptionIndex();t.shiftKey\\u0026\\u0026o\\u0026\\u0026this.onOptionSelectRange(t,this.startRangeIndex,i),this.changeFocusedOptionIndex(t,i),!this.overlayVisible\\u0026\\u0026this.show()}t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?-1!==this.focusedOptionIndex\\u0026\\u0026(t.shiftKey?this.onOptionSelectRange(t,this.focusedOptionIndex):this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex])):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onEscapeKey:function(t){this.overlayVisible\\u0026\\u0026this.hide(!0),t.preventDefault()},onTabKey:function(t){arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1]||(this.overlayVisible\\u0026\\u0026this.hasFocusableElements()?(et(t.shiftKey?this.$refs.lastHiddenFocusableElementOnOverlay:this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(-1!==this.focusedOptionIndex\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\u0026\\u0026this.hide(this.filter)))},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onOverlayEnter:function(t){Q.set(\\\"overlay\\\",t,this.$primevue.config.zIndex.overlay),st(t,{position:\\\"absolute\\\",top:\\\"0\\\",left:\\\"0\\\"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus\\u0026\\u0026et(this.$refs.filterInput.$el)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(\\\"show\\\")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit(\\\"hide\\\"),this.overlay=null},onOverlayAfterLeave:function(t){Q.clear(t)},alignOverlay:function(){\\\"self\\\"===this.appendTo?lt(this.overlay,this.$el):(this.overlay.style.minWidth=G(this.$el)+\\\"px\\\",at(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){t.overlayVisible\\u0026\\u0026t.isOutsideClicked(e)\\u0026\\u0026t.hide()},document.addEventListener(\\\"click\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\u0026\\u0026(document.removeEventListener(\\\"click\\\",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Tt(this.$refs.container,(function(){t.overlayVisible\\u0026\\u0026t.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler\\u0026\\u0026this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible\\u0026\\u0026!ct()\\u0026\\u0026t.hide()},window.addEventListener(\\\"resize\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\u0026\\u0026(window.removeEventListener(\\\"resize\\\",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(t){return!(this.$el.isSameNode(t.target)||this.$el.contains(t.target)||this.overlay\\u0026\\u0026this.overlay.contains(t.target))},getLabelByValue:function(t){var e=this,n=(this.optionGroupLabel?this.flatOptions(this.options):this.options||[]).find((function(n){return!e.isOptionGroup(n)\\u0026\\u0026dt(e.getOptionValue(n),t,e.equalityKey)}));return n?this.getOptionLabel(n):null},getSelectedItemsLabel:function(){var t=/{(.*?)}/,e=this.selectedItemsLabel||this.$primevue.config.locale.selectionMessage;return t.test(e)?e.replace(e.match(t)[0],this.d_value.length+\\\"\\\"):e},onToggleAll:function(t){var e=this;if(null!==this.selectAll)this.$emit(\\\"selectall-change\\\",{originalEvent:t,checked:!this.allSelected});else{var n=this.allSelected?[]:this.visibleOptions.filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,n)}},removeOption:function(t,e){var n=this;t.stopPropagation();var o=this.d_value.filter((function(t){return!dt(t,e,n.equalityKey)}));this.updateModel(t,o)},clearFilter:function(){this.filterValue=null},hasFocusableElements:function(){return ut(this.overlay,':not([data-p-hidden-focusable=\\\"true\\\"])').length\\u003e0},isOptionMatched:function(t){var e;return this.isValidOption(t)\\u0026\\u0026\\\"string\\\"==typeof this.getOptionLabel(t)\\u0026\\u0026(null===(e=this.getOptionLabel(t))||void 0===e?void 0:e.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return K(t)\\u0026\\u0026!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)\\u0026\\u0026this.isSelected(t)},isEquals:function(t,e){return dt(t,e,this.equalityKey)},isSelected:function(t){var e=this,n=this.getOptionValue(t);return(this.d_value||[]).some((function(t){return e.isEquals(t,n)}))},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex((function(e){return t.isValidOption(e)}))},findLastOptionIndex:function(){var t=this;return pt(this.visibleOptions,(function(e){return t.isValidOption(e)}))},findNextOptionIndex:function(t){var e=this,n=t\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidOption(t)})):-1;return n\\u003e-1?n+t+1:t},findPrevOptionIndex:function(t){var e=this,n=t\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidOption(t)})):-1;return n\\u003e-1?n:t},findSelectedOptionIndex:function(){var t=this;if(this.$filled)for(var e,n=function(){var e=t.d_value[o],n=t.visibleOptions.findIndex((function(n){return t.isValidSelectedOption(n)\\u0026\\u0026t.isEquals(e,t.getOptionValue(n))}));if(n\\u003e-1)return{v:n}},o=this.d_value.length-1;o\\u003e=0;o--)if(e=n())return e.v;return-1},findFirstSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex((function(e){return t.isValidSelectedOption(e)})):-1},findLastSelectedOptionIndex:function(){var t=this;return this.$filled?pt(this.visibleOptions,(function(e){return t.isValidSelectedOption(e)})):-1},findNextSelectedOptionIndex:function(t){var e=this,n=this.$filled\\u0026\\u0026t\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidSelectedOption(t)})):-1;return n\\u003e-1?n+t+1:-1},findPrevSelectedOptionIndex:function(t){var e=this,n=this.$filled\\u0026\\u0026t\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidSelectedOption(t)})):-1;return n\\u003e-1?n:-1},findNearestSelectedOptionIndex:function(t){var e=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]\\u0026\\u0026arguments[1],n=-1;return this.$filled\\u0026\\u0026(n=e?-1===(n=this.findPrevSelectedOptionIndex(t))?this.findNextSelectedOptionIndex(t):n:-1===(n=this.findNextSelectedOptionIndex(t))?this.findPrevSelectedOptionIndex(t):n),n\\u003e-1?n:t},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\u003c0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\u003c0?this.findLastOptionIndex():t},searchOptions:function(t){var e=this;this.searchValue=(this.searchValue||\\\"\\\")+t.key;var n=-1;K(this.searchValue)\\u0026\\u0026(-1===(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(t){return e.isOptionMatched(t)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(t){return e.isOptionMatched(t)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(t){return e.isOptionMatched(t)})))\\u0026\\u0026-1===this.focusedOptionIndex\\u0026\\u0026(n=this.findFirstFocusedOptionIndex()),-1!==n\\u0026\\u0026this.changeFocusedOptionIndex(t,n)),this.searchTimeout\\u0026\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){e.searchValue=\\\"\\\",e.searchTimeout=null}),500)},changeFocusedOptionIndex:function(t,e){this.focusedOptionIndex!==e\\u0026\\u0026(this.focusedOptionIndex=e,this.scrollInView(),this.selectOnFocus\\u0026\\u0026this.onOptionSelect(t,this.visibleOptions[e]))},scrollInView:function(){var t=this,e=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var n=-1!==e?\\\"\\\".concat(t.id,\\\"_\\\").concat(e):t.focusedOptionId,o=J(t.list,'li[id=\\\"'.concat(n,'\\\"]'));o?o.scrollIntoView\\u0026\\u0026o.scrollIntoView({block:\\\"nearest\\\",inline:\\\"nearest\\\"}):t.virtualScrollerDisabled||t.virtualScroller\\u0026\\u0026t.virtualScroller.scrollToIndex(-1!==e?e:t.focusedOptionIndex)}))},autoUpdateModel:function(){if(this.selectOnFocus\\u0026\\u0026this.autoOptionFocus\\u0026\\u0026!this.$filled){this.focusedOptionIndex=this.findFirstFocusedOptionIndex();var t=this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);this.updateModel(null,[t])}},updateModel:function(t,e){this.writeValue(e,t),this.$emit(\\\"change\\\",{originalEvent:t,value:e})},flatOptions:function(t){var e=this;return(t||[]).reduce((function(t,n,o){t.push({optionGroup:n,group:!0,index:o});var i=e.getOptionGroupChildren(n);return i\\u0026\\u0026i.forEach((function(e){return t.push(e)})),t}),[])},overlayRef:function(t){this.overlay=t},listRef:function(t,e){this.list=t,e\\u0026\\u0026e(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=_t.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach((function(e){var o=t.getOptionGroupChildren(e).filter((function(t){return n.includes(t)}));o.length\\u003e0\\u0026\\u0026i.push(Kn(Kn({},e),{},Dn({},\\\"string\\\"==typeof t.optionGroupChildren?t.optionGroupChildren:\\\"items\\\",Bn(o))))})),this.flatOptions(i)}return n}return e},label:function(){var t;if(this.d_value\\u0026\\u0026this.d_value.length){if(K(this.maxSelectedLabels)\\u0026\\u0026this.d_value.length\\u003ethis.maxSelectedLabels)return this.getSelectedItemsLabel();t=\\\"\\\";for(var e=0;e\\u003cthis.d_value.length;e++)0!==e\\u0026\\u0026(t+=\\\", \\\"),t+=this.getLabelByValue(this.d_value[e])}else t=this.placeholder;return t},chipSelectedItems:function(){return K(this.maxSelectedLabels)\\u0026\\u0026this.d_value\\u0026\\u0026this.d_value.length\\u003ethis.maxSelectedLabels},allSelected:function(){var t=this;return null!==this.selectAll?this.selectAll:K(this.visibleOptions)\\u0026\\u0026this.visibleOptions.every((function(e){return t.isOptionGroup(e)||t.isOptionDisabled(e)||t.isSelected(e)}))},hasSelectedOption:function(){return this.$filled},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},maxSelectionLimitReached:function(){return this.selectionLimit\\u0026\\u0026this.d_value\\u0026\\u0026this.d_value.length===this.selectionLimit},filterResultMessageText:function(){return K(this.visibleOptions)?this.filterMessageText.replaceAll(\\\"{0}\\\",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||\\\"\\\"},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||\\\"\\\"},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||\\\"\\\"},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||\\\"\\\"},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||\\\"\\\"},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(\\\"{0}\\\",this.d_value.length):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?\\\"\\\".concat(this.id,\\\"_\\\").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter((function(e){return!t.isOptionGroup(e)})).length},toggleAllAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[this.allSelected?\\\"selectAll\\\":\\\"unselectAll\\\"]:void 0},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},hasFluid:function(){return D(this.fluid)?!!this.$pcFluid:this.fluid},isClearIconVisible:function(){return this.showClear\\u0026\\u0026null!=this.d_value\\u0026\\u0026K(this.options)}},directives:{ripple:De},components:{InputText:We,Checkbox:Cn,VirtualScroller:nn,Portal:Ye,Chip:_n,IconField:Ue,InputIcon:Ne,TimesIcon:Mt,SearchIcon:Pt,ChevronDownIcon:Vt,SpinnerIcon:Ct,CheckIcon:Ft}};function Rn(t){return(Rn=\\\"function\\\"==typeof Symbol\\u0026\\u0026\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\u0026\\u0026\\\"function\\\"==typeof Symbol\\u0026\\u0026t.constructor===Symbol\\u0026\\u0026t!==Symbol.prototype?\\\"symbol\\\":typeof t})(t)}function Gn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\"object\\\"!=Rn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\"default\\\");if(\\\"object\\\"!=Rn(o))return o;throw new TypeError(\\\"@@toPrimitive must return a primitive value.\\\")}return(\\\"string\\\"===e?String:Number)(t)}(t,\\\"string\\\");return\\\"symbol\\\"==Rn(e)?e:e+\\\"\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Un=[\\\"id\\\",\\\"disabled\\\",\\\"placeholder\\\",\\\"tabindex\\\",\\\"aria-label\\\",\\\"aria-labelledby\\\",\\\"aria-expanded\\\",\\\"aria-controls\\\",\\\"aria-activedescendant\\\",\\\"aria-invalid\\\"],Nn={key:0},Wn=[\\\"id\\\",\\\"aria-label\\\"],qn=[\\\"id\\\"],Xn=[\\\"id\\\",\\\"aria-label\\\",\\\"aria-selected\\\",\\\"aria-disabled\\\",\\\"aria-setsize\\\",\\\"aria-posinset\\\",\\\"onClick\\\",\\\"onMousemove\\\",\\\"data-p-selected\\\",\\\"data-p-focused\\\",\\\"data-p-disabled\\\"];jn.render=function(t,e,n,o,i,r){var s=k(\\\"Chip\\\"),l=k(\\\"SpinnerIcon\\\"),a=k(\\\"Checkbox\\\"),c=k(\\\"InputText\\\"),u=k(\\\"SearchIcon\\\"),d=k(\\\"InputIcon\\\"),p=k(\\\"IconField\\\"),h=k(\\\"VirtualScroller\\\"),f=k(\\\"Portal\\\"),b=w(\\\"ripple\\\");return m(),g(\\\"div\\\",I({ref:\\\"container\\\",class:t.cx(\\\"root\\\"),style:t.sx(\\\"root\\\"),onClick:e[7]||(e[7]=function(){return r.onContainerClick\\u0026\\u0026r.onContainerClick.apply(r,arguments)})},t.ptmi(\\\"root\\\")),[C(\\\"div\\\",I({class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenInputContainer\\\"),{\\\"data-p-hidden-accessible\\\":!0}),[C(\\\"input\\\",I({ref:\\\"focusInput\\\",id:t.inputId,type:\\\"text\\\",readonly:\\\"\\\",disabled:t.disabled,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,role:\\\"combobox\\\",\\\"aria-label\\\":t.ariaLabel,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-haspopup\\\":\\\"listbox\\\",\\\"aria-expanded\\\":i.overlayVisible,\\\"aria-controls\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":i.focused?r.focusedOptionId:void 0,\\\"aria-invalid\\\":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\u0026\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onKeyDown\\u0026\\u0026r.onKeyDown.apply(r,arguments)})},t.ptm(\\\"hiddenInput\\\")),null,16,Un)],16),C(\\\"div\\\",I({class:t.cx(\\\"labelContainer\\\")},t.ptm(\\\"labelContainer\\\")),[C(\\\"div\\\",I({class:t.cx(\\\"label\\\")},t.ptm(\\\"label\\\")),[v(t.$slots,\\\"value\\\",{value:t.d_value,placeholder:t.placeholder},(function(){return[\\\"comma\\\"===t.display?(m(),g(_,{key:0},[y(x(r.label||\\\"empty\\\"),1)],64)):\\\"chip\\\"===t.display?(m(),g(_,{key:1},[r.chipSelectedItems?(m(),g(\\\"span\\\",Nn,x(r.label),1)):(m(!0),g(_,{key:1},M(t.d_value,(function(e){return m(),g(\\\"span\\\",I({key:r.getLabelByValue(e),class:t.cx(\\\"chipItem\\\"),ref_for:!0},t.ptm(\\\"chipItem\\\")),[v(t.$slots,\\\"chip\\\",{value:e,removeCallback:function(t){return r.removeOption(t,e)}},(function(){return[V(s,{class:z(t.cx(\\\"pcChip\\\")),label:r.getLabelByValue(e),removeIcon:t.chipIcon||t.removeTokenIcon,removable:\\\"\\\",unstyled:t.unstyled,onRemove:function(t){return r.removeOption(t,e)},pt:t.ptm(\\\"pcChip\\\")},{removeicon:L((function(){return[v(t.$slots,t.$slots.chipicon?\\\"chipicon\\\":\\\"removetokenicon\\\",{class:z(t.cx(\\\"chipIcon\\\")),item:e,removeCallback:function(t){return r.removeOption(t,e)}})]})),_:2},1032,[\\\"class\\\",\\\"label\\\",\\\"removeIcon\\\",\\\"unstyled\\\",\\\"onRemove\\\",\\\"pt\\\"])]}))],16)})),128)),t.d_value\\u0026\\u00260!==t.d_value.length?$(\\\"\\\",!0):(m(),g(_,{key:2},[y(x(t.placeholder||\\\"empty\\\"),1)],64))],64)):$(\\\"\\\",!0)]}))],16)],16),r.isClearIconVisible?v(t.$slots,\\\"clearicon\\\",{key:0,class:z(t.cx(\\\"clearIcon\\\")),clearCallback:r.onClearClick},(function(){return[(m(),S(E(t.clearIcon?\\\"i\\\":\\\"TimesIcon\\\"),I({ref:\\\"clearIcon\\\",class:[t.cx(\\\"clearIcon\\\"),t.clearIcon],onClick:r.onClearClick},t.ptm(\\\"clearIcon\\\"),{\\\"data-pc-section\\\":\\\"clearicon\\\"}),null,16,[\\\"class\\\",\\\"onClick\\\"]))]})):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"dropdown\\\")},t.ptm(\\\"dropdown\\\")),[t.loading?v(t.$slots,\\\"loadingicon\\\",{key:0,class:z(t.cx(\\\"loadingIcon\\\"))},(function(){return[t.loadingIcon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"loadingIcon\\\"),\\\"pi-spin\\\",t.loadingIcon],\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"loadingIcon\\\")),null,16)):(m(),S(l,I({key:1,class:t.cx(\\\"loadingIcon\\\"),spin:\\\"\\\",\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"loadingIcon\\\")),null,16,[\\\"class\\\"]))]})):v(t.$slots,\\\"dropdownicon\\\",{key:1,class:z(t.cx(\\\"dropdownIcon\\\"))},(function(){return[(m(),S(E(t.dropdownIcon?\\\"span\\\":\\\"ChevronDownIcon\\\"),I({class:[t.cx(\\\"dropdownIcon\\\"),t.dropdownIcon],\\\"aria-hidden\\\":\\\"true\\\"},t.ptm(\\\"dropdownIcon\\\")),null,16,[\\\"class\\\"]))]}))],16),V(f,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\"p-connected-overlay\\\",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},t.ptm(\\\"transition\\\")),{default:L((function(){return[i.overlayVisible?(m(),g(\\\"div\\\",I({key:0,ref:r.overlayRef,style:[t.panelStyle,t.overlayStyle],class:[t.cx(\\\"overlay\\\"),t.panelClass,t.overlayClass],onClick:e[5]||(e[5]=function(){return r.onOverlayClick\\u0026\\u0026r.onOverlayClick.apply(r,arguments)}),onKeydown:e[6]||(e[6]=function(){return r.onOverlayKeyDown\\u0026\\u0026r.onOverlayKeyDown.apply(r,arguments)})},t.ptm(\\\"overlay\\\")),[C(\\\"span\\\",I({ref:\\\"firstHiddenFocusableElementOnOverlay\\\",role:\\\"presentation\\\",\\\"aria-hidden\\\":\\\"true\\\",class:\\\"p-hidden-accessible p-hidden-focusable\\\",tabindex:0,onFocus:e[3]||(e[3]=function(){return r.onFirstHiddenFocus\\u0026\\u0026r.onFirstHiddenFocus.apply(r,arguments)})},t.ptm(\\\"hiddenFirstFocusableEl\\\"),{\\\"data-p-hidden-accessible\\\":!0,\\\"data-p-hidden-focusable\\\":!0}),null,16),v(t.$slots,\\\"header\\\",{value:t.d_value,options:r.visibleOptions}),t.showToggleAll\\u0026\\u0026null==t.selectionLimit||t.filter?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"header\\\")},t.ptm(\\\"header\\\")),[t.showToggleAll\\u0026\\u0026null==t.selectionLimit?(m(),S(a,{key:0,modelValue:r.allSelected,binary:!0,disabled:t.disabled,variant:t.variant,\\\"aria-label\\\":r.toggleAllAriaLabel,onChange:r.onToggleAll,unstyled:t.unstyled,pt:r.getHeaderCheckboxPTOptions(\\\"pcHeaderCheckbox\\\")},{icon:L((function(e){return[t.$slots.headercheckboxicon?(m(),S(E(t.$slots.headercheckboxicon),{key:0,checked:e.checked,class:z(e.class)},null,8,[\\\"checked\\\",\\\"class\\\"])):e.checked?(m(),S(E(t.checkboxIcon?\\\"span\\\":\\\"CheckIcon\\\"),I({key:1,class:[e.class,Gn({},t.checkboxIcon,e.checked)]},r.getHeaderCheckboxPTOptions(\\\"pcHeaderCheckbox.icon\\\")),null,16,[\\\"class\\\"])):$(\\\"\\\",!0)]})),_:1},8,[\\\"modelValue\\\",\\\"disabled\\\",\\\"variant\\\",\\\"aria-label\\\",\\\"onChange\\\",\\\"unstyled\\\",\\\"pt\\\"])):$(\\\"\\\",!0),t.filter?(m(),S(p,{key:1,class:z(t.cx(\\\"pcFilterContainer\\\")),unstyled:t.unstyled,pt:t.ptm(\\\"pcFilterContainer\\\")},{default:L((function(){return[V(c,{ref:\\\"filterInput\\\",value:i.filterValue,onVnodeMounted:r.onFilterUpdated,onVnodeUpdated:r.onFilterUpdated,class:z(t.cx(\\\"pcFilter\\\")),placeholder:t.filterPlaceholder,disabled:t.disabled,variant:t.variant,unstyled:t.unstyled,role:\\\"searchbox\\\",autocomplete:\\\"off\\\",\\\"aria-owns\\\":i.id+\\\"_list\\\",\\\"aria-activedescendant\\\":r.focusedOptionId,onKeydown:r.onFilterKeyDown,onBlur:r.onFilterBlur,onInput:r.onFilterChange,pt:t.ptm(\\\"pcFilter\\\")},null,8,[\\\"value\\\",\\\"onVnodeMounted\\\",\\\"onVnodeUpdated\\\",\\\"class\\\",\\\"placeholder\\\",\\\"disabled\\\",\\\"variant\\\",\\\"unstyled\\\",\\\"aria-owns\\\",\\\"aria-activedescendant\\\",\\\"onKeydown\\\",\\\"onBlur\\\",\\\"onInput\\\",\\\"pt\\\"]),V(d,{unstyled:t.unstyled,pt:t.ptm(\\\"pcFilterIconContainer\\\")},{default:L((function(){return[v(t.$slots,\\\"filtericon\\\",{},(function(){return[t.filterIcon?(m(),g(\\\"span\\\",I({key:0,class:t.filterIcon},t.ptm(\\\"filterIcon\\\")),null,16)):(m(),S(u,F(I({key:1},t.ptm(\\\"filterIcon\\\"))),null,16))]}))]})),_:3},8,[\\\"unstyled\\\",\\\"pt\\\"])]})),_:3},8,[\\\"class\\\",\\\"unstyled\\\",\\\"pt\\\"])):$(\\\"\\\",!0),t.filter?(m(),g(\\\"span\\\",I({key:2,role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenFilterResult\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.filterResultMessageText),17)):$(\\\"\\\",!0)],16)):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"listContainer\\\"),style:{\\\"max-height\\\":r.virtualScrollerDisabled?t.scrollHeight:\\\"\\\"}},t.ptm(\\\"listContainer\\\")),[V(h,I({ref:r.virtualScrollerRef},t.virtualScrollerOptions,{items:r.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:t.ptm(\\\"virtualScroller\\\")}),A({content:L((function(e){var n=e.styleClass,o=e.contentRef,s=e.items,l=e.getItemOptions,c=e.contentStyle,u=e.itemSize;return[C(\\\"ul\\\",I({ref:function(t){return r.listRef(t,o)},id:i.id+\\\"_list\\\",class:[t.cx(\\\"list\\\"),n],style:c,role:\\\"listbox\\\",\\\"aria-multiselectable\\\":\\\"true\\\",\\\"aria-label\\\":r.listAriaLabel},t.ptm(\\\"list\\\")),[(m(!0),g(_,null,M(s,(function(e,n){return m(),g(_,{key:r.getOptionRenderKey(e,r.getOptionIndex(n,l))},[r.isOptionGroup(e)?(m(),g(\\\"li\\\",I({key:0,id:i.id+\\\"_\\\"+r.getOptionIndex(n,l),style:{height:u?u+\\\"px\\\":void 0},class:t.cx(\\\"optionGroup\\\"),role:\\\"option\\\",ref_for:!0},t.ptm(\\\"optionGroup\\\")),[v(t.$slots,\\\"optiongroup\\\",{option:e.optionGroup,index:r.getOptionIndex(n,l)},(function(){return[y(x(r.getOptionGroupLabel(e.optionGroup)),1)]}))],16,qn)):O((m(),g(\\\"li\\\",I({key:1,id:i.id+\\\"_\\\"+r.getOptionIndex(n,l),style:{height:u?u+\\\"px\\\":void 0},class:t.cx(\\\"option\\\",{option:e,index:n,getItemOptions:l}),role:\\\"option\\\",\\\"aria-label\\\":r.getOptionLabel(e),\\\"aria-selected\\\":r.isSelected(e),\\\"aria-disabled\\\":r.isOptionDisabled(e),\\\"aria-setsize\\\":r.ariaSetSize,\\\"aria-posinset\\\":r.getAriaPosInset(r.getOptionIndex(n,l)),onClick:function(t){return r.onOptionSelect(t,e,r.getOptionIndex(n,l),!0)},onMousemove:function(t){return r.onOptionMouseMove(t,r.getOptionIndex(n,l))},ref_for:!0},r.getCheckboxPTOptions(e,l,n,\\\"option\\\"),{\\\"data-p-selected\\\":r.isSelected(e),\\\"data-p-focused\\\":i.focusedOptionIndex===r.getOptionIndex(n,l),\\\"data-p-disabled\\\":r.isOptionDisabled(e)}),[V(a,{defaultValue:r.isSelected(e),binary:!0,tabindex:-1,variant:t.variant,unstyled:t.unstyled,pt:r.getCheckboxPTOptions(e,l,n,\\\"pcOptionCheckbox\\\")},{icon:L((function(o){return[t.$slots.optioncheckboxicon||t.$slots.itemcheckboxicon?(m(),S(E(t.$slots.optioncheckboxicon||t.$slots.itemcheckboxicon),{key:0,checked:o.checked,class:z(o.class)},null,8,[\\\"checked\\\",\\\"class\\\"])):o.checked?(m(),S(E(t.checkboxIcon?\\\"span\\\":\\\"CheckIcon\\\"),I({key:1,class:[o.class,Gn({},t.checkboxIcon,o.checked)],ref_for:!0},r.getCheckboxPTOptions(e,l,n,\\\"pcOptionCheckbox.icon\\\")),null,16,[\\\"class\\\"])):$(\\\"\\\",!0)]})),_:2},1032,[\\\"defaultValue\\\",\\\"variant\\\",\\\"unstyled\\\",\\\"pt\\\"]),v(t.$slots,\\\"option\\\",{option:e,selected:r.isSelected(e),index:r.getOptionIndex(n,l)},(function(){return[C(\\\"span\\\",I({ref_for:!0},t.ptm(\\\"optionLabel\\\")),x(r.getOptionLabel(e)),17)]}))],16,Xn)),[[b]])],64)})),128)),i.filterValue\\u0026\\u0026(!s||s\\u0026\\u00260===s.length)?(m(),g(\\\"li\\\",I({key:0,class:t.cx(\\\"emptyMessage\\\"),role:\\\"option\\\"},t.ptm(\\\"emptyMessage\\\")),[v(t.$slots,\\\"emptyfilter\\\",{},(function(){return[y(x(r.emptyFilterMessageText),1)]}))],16)):!t.options||t.options\\u0026\\u00260===t.options.length?(m(),g(\\\"li\\\",I({key:1,class:t.cx(\\\"emptyMessage\\\"),role:\\\"option\\\"},t.ptm(\\\"emptyMessage\\\")),[v(t.$slots,\\\"empty\\\",{},(function(){return[y(x(r.emptyMessageText),1)]}))],16)):$(\\\"\\\",!0)],16,Wn)]})),_:2},[t.$slots.loader?{name:\\\"loader\\\",fn:L((function(e){var n=e.options;return[v(t.$slots,\\\"loader\\\",{options:n})]})),key:\\\"0\\\"}:void 0]),1040,[\\\"items\\\",\\\"style\\\",\\\"disabled\\\",\\\"pt\\\"])],16),v(t.$slots,\\\"footer\\\",{value:t.d_value,options:r.visibleOptions}),!t.options||t.options\\u0026\\u00260===t.options.length?(m(),g(\\\"span\\\",I({key:1,role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenEmptyMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.emptyMessageText),17)):$(\\\"\\\",!0),C(\\\"span\\\",I({role:\\\"status\\\",\\\"aria-live\\\":\\\"polite\\\",class:\\\"p-hidden-accessible\\\"},t.ptm(\\\"hiddenSelectedMessage\\\"),{\\\"data-p-hidden-accessible\\\":!0}),x(r.selectedMessageText),17),C(\\\"span\\\",I({ref:\\\"lastHiddenFocusableElementOnOverlay\\\",role:\\\"presentation\\\",\\\"aria-hidden\\\":\\\"true\\\",class:\\\"p-hidden-accessible p-hidden-focusable\\\",tabindex:0,onFocus:e[4]||(e[4]=function(){return r.onLastHiddenFocus\\u0026\\u0026r.onLastHiddenFocus.apply(r,arguments)})},t.ptm(\\\"hiddenLastFocusableEl\\\"),{\\\"data-p-hidden-accessible\\\":!0,\\\"data-p-hidden-focusable\\\":!0}),null,16)],16)):$(\\\"\\\",!0)]})),_:3},16,[\\\"onEnter\\\",\\\"onAfterEnter\\\",\\\"onLeave\\\",\\\"onAfterLeave\\\"])]})),_:3},8,[\\\"appendTo\\\"])],16)};var Yn=St.extend({name:\\\"slider\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-slider {\\\\n    position: relative;\\\\n    background: \\\".concat(e(\\\"slider.track.background\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"slider.track.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-handle {\\\\n    cursor: grab;\\\\n    touch-action: none;\\\\n    user-select: none;\\\\n    display: flex;\\\\n    justify-content: center;\\\\n    align-items: center;\\\\n    height: \\\").concat(e(\\\"slider.handle.height\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"slider.handle.width\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"slider.handle.background\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"slider.handle.border.radius\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"slider.transition.duration\\\"),\\\", color \\\").concat(e(\\\"slider.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"slider.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"slider.transition.duration\\\"),\\\", outline-color \\\").concat(e(\\\"slider.transition.duration\\\"),';\\\\n    outline-color: transparent;\\\\n}\\\\n\\\\n.p-slider-handle::before {\\\\n    content: \\\"\\\";\\\\n    width: ').concat(e(\\\"slider.handle.content.width\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"slider.handle.content.height\\\"),\\\";\\\\n    display: block;\\\\n    background: \\\").concat(e(\\\"slider.handle.content.background\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"slider.handle.content.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"slider.handle.content.shadow\\\"),\\\";\\\\n    transition: background \\\").concat(e(\\\"slider.transition.duration\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\\\\n    background: \\\").concat(e(\\\"slider.handle.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider:not(.p-disabled) .p-slider-handle:hover::before {\\\\n    background: \\\").concat(e(\\\"slider.handle.content.hover.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-handle:focus-visible {\\\\n    box-shadow: \\\").concat(e(\\\"slider.handle.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"slider.handle.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"slider.handle.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"slider.handle.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"slider.handle.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-range {\\\\n    display: block;\\\\n    background: \\\").concat(e(\\\"slider.range.background\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"slider.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider.p-slider-horizontal {\\\\n    height: \\\").concat(e(\\\"slider.track.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-horizontal .p-slider-range {\\\\n    inset-block-start: 0;\\\\n    inset-inline-start: 0;\\\\n    height: 100%;\\\\n}\\\\n\\\\n.p-slider-horizontal .p-slider-handle {\\\\n    inset-block-start: 50%;\\\\n    margin-block-start: calc(-1 * calc(\\\").concat(e(\\\"slider.handle.height\\\"),\\\" / 2));\\\\n    margin-inline-start: calc(-1 * calc(\\\").concat(e(\\\"slider.handle.width\\\"),\\\" / 2));\\\\n}\\\\n\\\\n.p-slider-vertical {\\\\n    min-height: 100px;\\\\n    width: \\\").concat(e(\\\"slider.track.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-slider-vertical .p-slider-handle {\\\\n    inset-inline-start: 50%;\\\\n    margin-inline-start: calc(-1 * calc(\\\").concat(e(\\\"slider.handle.width\\\"),\\\" / 2));\\\\n    margin-block-end: calc(-1 * calc(\\\").concat(e(\\\"slider.handle.height\\\"),\\\" / 2));\\\\n}\\\\n\\\\n.p-slider-vertical .p-slider-range {\\\\n    inset-block-end: 0;\\\\n    inset-inline-start: 0;\\\\n    width: 100%;\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-slider p-component\\\",{\\\"p-disabled\\\":n.disabled,\\\"p-invalid\\\":e.$invalid,\\\"p-slider-horizontal\\\":\\\"horizontal\\\"===n.orientation,\\\"p-slider-vertical\\\":\\\"vertical\\\"===n.orientation}]},range:\\\"p-slider-range\\\",handle:\\\"p-slider-handle\\\"},inlineStyles:{handle:{position:\\\"absolute\\\"},range:{position:\\\"absolute\\\"}}});function Zn(t){return function(t){if(Array.isArray(t))return Jn(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\"string\\\"==typeof t)return Jn(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jn(t,e):void 0}}(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function Jn(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}var Qn={name:\\\"Slider\\\",extends:{name:\\\"BaseSlider\\\",extends:Bt,props:{min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:\\\"horizontal\\\"},step:{type:Number,default:null},range:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Yn,provide:function(){return{$pcSlider:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\",\\\"slideend\\\"],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var t=this.$el.getBoundingClientRect();this.initX=t.left+bt(),this.initY=t.top+mt(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue:function(t){var e,n=t.touches?t.touches[0].pageX:t.pageX,o=t.touches?t.touches[0].pageY:t.pageY;e=\\\"horizontal\\\"===this.orientation?xt(this.$el)?100*(this.initX+this.barWidth-n)/this.barWidth:100*(n-this.initX)/this.barWidth:100*(this.initY+this.barHeight-o)/this.barHeight;var i=(this.max-this.min)*(e/100)+this.min;if(this.step){var r=this.range?this.value[this.handleIndex]:this.value,s=i-r;s\\u003c0?i=r+Math.ceil(i/this.step-r/this.step)*this.step:s\\u003e0\\u0026\\u0026(i=r+Math.floor(i/this.step-r/this.step)*this.step)}else i=Math.floor(i);this.updateModel(t,i)},updateModel:function(t,e){var n,o=parseFloat(e.toFixed(10));this.range?(n=this.value?Zn(this.value):[],0==this.handleIndex?(o\\u003cthis.min?o=this.min:o\\u003e=this.max\\u0026\\u0026(o=this.max),n[0]=o):(o\\u003ethis.max?o=this.max:o\\u003c=this.min\\u0026\\u0026(o=this.min),n[1]=o)):(o\\u003cthis.min?o=this.min:o\\u003ethis.max\\u0026\\u0026(o=this.max),n=o),this.writeValue(n,t),this.$emit(\\\"change\\\",n)},onDragStart:function(t,e){this.disabled||(this.$el.setAttribute(\\\"data-p-sliding\\\",!0),this.dragging=!0,this.updateDomData(),this.range\\u0026\\u0026this.value[0]===this.max?this.handleIndex=0:this.handleIndex=e,t.currentTarget.focus())},onDrag:function(t){this.dragging\\u0026\\u0026this.setValue(t)},onDragEnd:function(t){this.dragging\\u0026\\u0026(this.dragging=!1,this.$el.setAttribute(\\\"data-p-sliding\\\",!1),this.$emit(\\\"slideend\\\",{originalEvent:t,value:this.value}))},onBarClick:function(t){this.disabled||\\\"handle\\\"!==q(t.target,\\\"data-pc-section\\\")\\u0026\\u0026(this.updateDomData(),this.setValue(t))},onMouseDown:function(t,e){this.bindDragListeners(),this.onDragStart(t,e)},onKeyDown:function(t,e){switch(this.handleIndex=e,t.code){case\\\"ArrowDown\\\":case\\\"ArrowLeft\\\":this.decrementValue(t,e),t.preventDefault();break;case\\\"ArrowUp\\\":case\\\"ArrowRight\\\":this.incrementValue(t,e),t.preventDefault();break;case\\\"PageDown\\\":this.decrementValue(t,e,!0),t.preventDefault();break;case\\\"PageUp\\\":this.incrementValue(t,e,!0),t.preventDefault();break;case\\\"Home\\\":this.updateModel(t,this.min),t.preventDefault();break;case\\\"End\\\":this.updateModel(t,this.max),t.preventDefault()}},onBlur:function(t,e){var n,o;null===(n=(o=this.formField).onBlur)||void 0===n||n.call(o,t)},decrementValue:function(t,e){var n,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]\\u0026\\u0026arguments[2];n=this.range?this.step?this.value[e]-this.step:this.value[e]-1:this.step?this.value-this.step:!this.step\\u0026\\u0026o?this.value-10:this.value-1,this.updateModel(t,n),t.preventDefault()},incrementValue:function(t,e){var n,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]\\u0026\\u0026arguments[2];n=this.range?this.step?this.value[e]+this.step:this.value[e]+1:this.step?this.value+this.step:!this.step\\u0026\\u0026o?this.value+10:this.value+1,this.updateModel(t,n),t.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener(\\\"mousemove\\\",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener(\\\"mouseup\\\",this.dragEndListener))},unbindDragListeners:function(){this.dragListener\\u0026\\u0026(document.removeEventListener(\\\"mousemove\\\",this.dragListener),this.dragListener=null),this.dragEndListener\\u0026\\u0026(document.removeEventListener(\\\"mouseup\\\",this.dragEndListener),this.dragEndListener=null)},rangeStyle:function(){if(this.range){var t=this.rangeEndPosition\\u003ethis.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,e=this.rangeEndPosition\\u003ethis.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{\\\"inset-inline-start\\\":e+\\\"%\\\",width:t+\\\"%\\\"}:{bottom:e+\\\"%\\\",height:t+\\\"%\\\"}}return this.horizontal?{width:this.handlePosition+\\\"%\\\"}:{height:this.handlePosition+\\\"%\\\"}},handleStyle:function(){return this.horizontal?{\\\"inset-inline-start\\\":this.handlePosition+\\\"%\\\"}:{bottom:this.handlePosition+\\\"%\\\"}},rangeStartHandleStyle:function(){return this.horizontal?{\\\"inset-inline-start\\\":this.rangeStartPosition+\\\"%\\\"}:{bottom:this.rangeStartPosition+\\\"%\\\"}},rangeEndHandleStyle:function(){return this.horizontal?{\\\"inset-inline-start\\\":this.rangeEndPosition+\\\"%\\\"}:{bottom:this.rangeEndPosition+\\\"%\\\"}}},computed:{value:function(){var t,e,n,o,i;return this.range?[null!==(e=null===(n=this.d_value)||void 0===n?void 0:n[0])\\u0026\\u0026void 0!==e?e:this.min,null!==(o=null===(i=this.d_value)||void 0===i?void 0:i[1])\\u0026\\u0026void 0!==o?o:this.max]:null!==(t=this.d_value)\\u0026\\u0026void 0!==t?t:this.min},horizontal:function(){return\\\"horizontal\\\"===this.orientation},vertical:function(){return\\\"vertical\\\"===this.orientation},handlePosition:function(){return this.value\\u003cthis.min?0:this.value\\u003ethis.max?100:100*(this.value-this.min)/(this.max-this.min)},rangeStartPosition:function(){return this.value\\u0026\\u0026void 0!==this.value[0]?this.value[0]\\u003cthis.min?0:100*(this.value[0]-this.min)/(this.max-this.min):0},rangeEndPosition:function(){return this.value\\u0026\\u00262===this.value.length\\u0026\\u0026void 0!==this.value[1]?this.value[1]\\u003ethis.max?100:100*(this.value[1]-this.min)/(this.max-this.min):100}}},to=[\\\"tabindex\\\",\\\"aria-valuemin\\\",\\\"aria-valuenow\\\",\\\"aria-valuemax\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"aria-orientation\\\"],eo=[\\\"tabindex\\\",\\\"aria-valuemin\\\",\\\"aria-valuenow\\\",\\\"aria-valuemax\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"aria-orientation\\\"],no=[\\\"tabindex\\\",\\\"aria-valuemin\\\",\\\"aria-valuenow\\\",\\\"aria-valuemax\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"aria-orientation\\\"];Qn.render=function(t,e,n,o,i,r){return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\"),onClick:e[18]||(e[18]=function(){return r.onBarClick\\u0026\\u0026r.onBarClick.apply(r,arguments)})},t.ptmi(\\\"root\\\"),{\\\"data-p-sliding\\\":!1}),[C(\\\"span\\\",I({class:t.cx(\\\"range\\\"),style:[t.sx(\\\"range\\\"),r.rangeStyle()]},t.ptm(\\\"range\\\")),null,16),t.range?$(\\\"\\\",!0):(m(),g(\\\"span\\\",I({key:0,class:t.cx(\\\"handle\\\"),style:[t.sx(\\\"handle\\\"),r.handleStyle()],onTouchstartPassive:e[0]||(e[0]=function(t){return r.onDragStart(t)}),onTouchmovePassive:e[1]||(e[1]=function(t){return r.onDrag(t)}),onTouchend:e[2]||(e[2]=function(t){return r.onDragEnd(t)}),onMousedown:e[3]||(e[3]=function(t){return r.onMouseDown(t)}),onKeydown:e[4]||(e[4]=function(t){return r.onKeyDown(t)}),onBlur:e[5]||(e[5]=function(t){return r.onBlur(t)}),tabindex:t.tabindex,role:\\\"slider\\\",\\\"aria-valuemin\\\":t.min,\\\"aria-valuenow\\\":t.d_value,\\\"aria-valuemax\\\":t.max,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,\\\"aria-orientation\\\":t.orientation},t.ptm(\\\"handle\\\")),null,16,to)),t.range?(m(),g(\\\"span\\\",I({key:1,class:t.cx(\\\"handle\\\"),style:[t.sx(\\\"handle\\\"),r.rangeStartHandleStyle()],onTouchstartPassive:e[6]||(e[6]=function(t){return r.onDragStart(t,0)}),onTouchmovePassive:e[7]||(e[7]=function(t){return r.onDrag(t)}),onTouchend:e[8]||(e[8]=function(t){return r.onDragEnd(t)}),onMousedown:e[9]||(e[9]=function(t){return r.onMouseDown(t,0)}),onKeydown:e[10]||(e[10]=function(t){return r.onKeyDown(t,0)}),onBlur:e[11]||(e[11]=function(t){return r.onBlur(t,0)}),tabindex:t.tabindex,role:\\\"slider\\\",\\\"aria-valuemin\\\":t.min,\\\"aria-valuenow\\\":t.d_value?t.d_value[0]:null,\\\"aria-valuemax\\\":t.max,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,\\\"aria-orientation\\\":t.orientation},t.ptm(\\\"startHandler\\\")),null,16,eo)):$(\\\"\\\",!0),t.range?(m(),g(\\\"span\\\",I({key:2,class:t.cx(\\\"handle\\\"),style:[t.sx(\\\"handle\\\"),r.rangeEndHandleStyle()],onTouchstartPassive:e[12]||(e[12]=function(t){return r.onDragStart(t,1)}),onTouchmovePassive:e[13]||(e[13]=function(t){return r.onDrag(t)}),onTouchend:e[14]||(e[14]=function(t){return r.onDragEnd(t)}),onMousedown:e[15]||(e[15]=function(t){return r.onMouseDown(t,1)}),onKeydown:e[16]||(e[16]=function(t){return r.onKeyDown(t,1)}),onBlur:e[17]||(e[17]=function(t){return r.onBlur(t,1)}),tabindex:t.tabindex,role:\\\"slider\\\",\\\"aria-valuemin\\\":t.min,\\\"aria-valuenow\\\":t.d_value?t.d_value[1]:null,\\\"aria-valuemax\\\":t.max,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,\\\"aria-orientation\\\":t.orientation},t.ptm(\\\"endHandler\\\")),null,16,no)):$(\\\"\\\",!0)],16)};var oo={name:\\\"Card\\\",extends:{name:\\\"BaseCard\\\",extends:Lt,style:St.extend({name:\\\"card\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-card {\\\\n    background: \\\".concat(e(\\\"card.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"card.color\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"card.shadow\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"card.border.radius\\\"),\\\";\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n}\\\\n\\\\n.p-card-caption {\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    gap: \\\").concat(e(\\\"card.caption.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-card-body {\\\\n    padding: \\\").concat(e(\\\"card.body.padding\\\"),\\\";\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    gap: \\\").concat(e(\\\"card.body.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-card-title {\\\\n    font-size: \\\").concat(e(\\\"card.title.font.size\\\"),\\\";\\\\n    font-weight: \\\").concat(e(\\\"card.title.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-card-subtitle {\\\\n    color: \\\").concat(e(\\\"card.subtitle.color\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:\\\"p-card p-component\\\",header:\\\"p-card-header\\\",body:\\\"p-card-body\\\",caption:\\\"p-card-caption\\\",title:\\\"p-card-title\\\",subtitle:\\\"p-card-subtitle\\\",content:\\\"p-card-content\\\",footer:\\\"p-card-footer\\\"}}),provide:function(){return{$pcCard:this,$parentInstance:this}}},inheritAttrs:!1};oo.render=function(t,e,n,o,i,r){return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\")},t.ptmi(\\\"root\\\")),[t.$slots.header?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"header\\\")},t.ptm(\\\"header\\\")),[v(t.$slots,\\\"header\\\")],16)):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"body\\\")},t.ptm(\\\"body\\\")),[t.$slots.title||t.$slots.subtitle?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"caption\\\")},t.ptm(\\\"caption\\\")),[t.$slots.title?(m(),g(\\\"div\\\",I({key:0,class:t.cx(\\\"title\\\")},t.ptm(\\\"title\\\")),[v(t.$slots,\\\"title\\\")],16)):$(\\\"\\\",!0),t.$slots.subtitle?(m(),g(\\\"div\\\",I({key:1,class:t.cx(\\\"subtitle\\\")},t.ptm(\\\"subtitle\\\")),[v(t.$slots,\\\"subtitle\\\")],16)):$(\\\"\\\",!0)],16)):$(\\\"\\\",!0),C(\\\"div\\\",I({class:t.cx(\\\"content\\\")},t.ptm(\\\"content\\\")),[v(t.$slots,\\\"content\\\")],16),t.$slots.footer?(m(),g(\\\"div\\\",I({key:1,class:t.cx(\\\"footer\\\")},t.ptm(\\\"footer\\\")),[v(t.$slots,\\\"footer\\\")],16)):$(\\\"\\\",!0)],16)],16)};var io=St.extend({name:\\\"contextmenu\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-contextmenu {\\\\n    background: \\\".concat(e(\\\"contextmenu.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"contextmenu.color\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"contextmenu.border.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"contextmenu.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"contextmenu.shadow\\\"),\\\";\\\\n    min-width: 12.5rem;\\\\n}\\\\n\\\\n.p-contextmenu-root-list,\\\\n.p-contextmenu-submenu {\\\\n    margin: 0;\\\\n    padding: \\\").concat(e(\\\"contextmenu.list.padding\\\"),\\\";\\\\n    list-style: none;\\\\n    outline: 0 none;\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    gap: \\\").concat(e(\\\"contextmenu.list.gap\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-submenu {\\\\n    position: absolute;\\\\n    display: flex;\\\\n    flex-direction: column;\\\\n    min-width: 100%;\\\\n    z-index: 1;\\\\n    background: \\\").concat(e(\\\"contextmenu.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"contextmenu.color\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"contextmenu.border.color\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"contextmenu.border.radius\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"contextmenu.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item {\\\\n    position: relative;\\\\n}\\\\n\\\\n.p-contextmenu-item-content {\\\\n    transition: background \\\").concat(e(\\\"contextmenu.transition.duration\\\"),\\\", color \\\").concat(e(\\\"contextmenu.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"contextmenu.item.border.radius\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"contextmenu.item.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item-link {\\\\n    cursor: pointer;\\\\n    display: flex;\\\\n    align-items: center;\\\\n    text-decoration: none;\\\\n    overflow: hidden;\\\\n    position: relative;\\\\n    color: inherit;\\\\n    padding: \\\").concat(e(\\\"contextmenu.item.padding\\\"),\\\";\\\\n    gap: \\\").concat(e(\\\"contextmenu.item.gap\\\"),\\\";\\\\n    user-select: none;\\\\n}\\\\n\\\\n.p-contextmenu-item-label {\\\\n    line-height: 1;\\\\n}\\\\n\\\\n.p-contextmenu-item-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.icon.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-submenu-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.submenu.icon.color\\\"),\\\";\\\\n    margin-left: auto;\\\\n    font-size: \\\").concat(e(\\\"contextmenu.submenu.icon.size\\\"),\\\";\\\\n    width: \\\").concat(e(\\\"contextmenu.submenu.icon.size\\\"),\\\";\\\\n    height: \\\").concat(e(\\\"contextmenu.submenu.icon.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-submenu-icon:dir(rtl) {\\\\n    margin-left: 0;\\\\n    margin-right: auto;\\\\n}\\\\n\\\\n.p-contextmenu-item.p-focus \\u003e .p-contextmenu-item-content {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.focus.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"contextmenu.item.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item.p-focus \\u003e .p-contextmenu-item-content .p-contextmenu-item-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.icon.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item.p-focus \\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.submenu.icon.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item:not(.p-disabled) \\u003e .p-contextmenu-item-content:hover {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.focus.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"contextmenu.item.focus.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item:not(.p-disabled) \\u003e .p-contextmenu-item-content:hover .p-contextmenu-item-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.icon.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item:not(.p-disabled) \\u003e .p-contextmenu-item-content:hover .p-contextmenu-submenu-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.submenu.icon.focus.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item-active \\u003e .p-contextmenu-item-content {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.active.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"contextmenu.item.active.background\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item-active \\u003e .p-contextmenu-item-content .p-contextmenu-item-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.item.icon.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-item-active \\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\n    color: \\\").concat(e(\\\"contextmenu.submenu.icon.active.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-separator {\\\\n    border-block-start: 1px solid \\\").concat(e(\\\"contextmenu.separator.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-contextmenu-enter-from,\\\\n.p-contextmenu-leave-active {\\\\n    opacity: 0;\\\\n}\\\\n\\\\n.p-contextmenu-enter-active {\\\\n    transition: opacity 250ms;\\\\n}\\\\n\\\\n.p-contextmenu-mobile .p-contextmenu-submenu {\\\\n    position: static;\\\\n    box-shadow: none;\\\\n    border: 0 none;\\\\n    padding-inline-start: \\\").concat(e(\\\"tieredmenu.submenu.mobile.indent\\\"),\\\";\\\\n    padding-inline-end: 0;\\\\n}\\\\n\\\\n.p-contextmenu-mobile .p-contextmenu-submenu-icon {\\\\n    transition: transform 0.2s;\\\\n    transform: rotate(90deg);\\\\n}\\\\n\\\\n.p-contextmenu-mobile .p-contextmenu-item-active \\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\n    transform: rotate(-90deg);\\\\n}\\\\n\\\")},classes:{root:function(t){return[\\\"p-contextmenu p-component\\\",{\\\"p-contextmenu-mobile\\\":t.instance.queryMatches}]},rootList:\\\"p-contextmenu-root-list\\\",item:function(t){var e=t.instance,n=t.processedItem;return[\\\"p-contextmenu-item\\\",{\\\"p-contextmenu-item-active\\\":e.isItemActive(n),\\\"p-focus\\\":e.isItemFocused(n),\\\"p-disabled\\\":e.isItemDisabled(n)}]},itemContent:\\\"p-contextmenu-item-content\\\",itemLink:\\\"p-contextmenu-item-link\\\",itemIcon:\\\"p-contextmenu-item-icon\\\",itemLabel:\\\"p-contextmenu-item-label\\\",submenuIcon:\\\"p-contextmenu-submenu-icon\\\",submenu:\\\"p-contextmenu-submenu\\\",separator:\\\"p-contextmenu-separator\\\"}}),ro={name:\\\"BaseContextMenu\\\",extends:Lt,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:\\\"body\\\"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},breakpoint:{type:String,default:\\\"960px\\\"},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:io,provide:function(){return{$pcContextMenu:this,$parentInstance:this}}},so={name:\\\"ContextMenuSub\\\",hostName:\\\"ContextMenu\\\",extends:Lt,emits:[\\\"item-click\\\",\\\"item-mouseenter\\\",\\\"item-mousemove\\\"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(t){return\\\"\\\".concat(this.menuId,\\\"_\\\").concat(t.key)},getItemKey:function(t){return this.getItemId(t)},getItemProp:function(t,e,n){return t\\u0026\\u0026t.item?It(t.item[e],n):void 0},getItemLabel:function(t){return this.getItemProp(t,\\\"label\\\")},getItemLabelId:function(t){return\\\"\\\".concat(this.menuId,\\\"_\\\").concat(t.key,\\\"_label\\\")},getPTOptions:function(t,e,n){return this.ptm(t,{context:{item:e.item,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e),index:n}})},isItemActive:function(t){return this.activeItemPath.some((function(e){return e.key===t.key}))},isItemVisible:function(t){return!1!==this.getItemProp(t,\\\"visible\\\")},isItemDisabled:function(t){return this.getItemProp(t,\\\"disabled\\\")},isItemFocused:function(t){return this.focusedItemId===this.getItemId(t)},isItemGroup:function(t){return K(t.items)},onItemClick:function(t,e){this.getItemProp(e,\\\"command\\\",{originalEvent:t,item:e.item}),this.$emit(\\\"item-click\\\",{originalEvent:t,processedItem:e,isFocus:!0})},onItemMouseEnter:function(t,e){this.$emit(\\\"item-mouseenter\\\",{originalEvent:t,processedItem:e})},onItemMouseMove:function(t,e){this.$emit(\\\"item-mousemove\\\",{originalEvent:t,processedItem:e,isFocus:!0})},getAriaSetSize:function(){var t=this;return this.items.filter((function(e){return t.isItemVisible(e)\\u0026\\u0026!t.getItemProp(e,\\\"separator\\\")})).length},getAriaPosInset:function(t){var e=this;return t-this.items.slice(0,t).filter((function(t){return e.isItemVisible(t)\\u0026\\u0026e.getItemProp(t,\\\"separator\\\")})).length+1},onEnter:function(){Ot(this.$refs.container,this.level)},getMenuItemProps:function(t,e){return{action:I({class:this.cx(\\\"itemLink\\\"),tabindex:-1},this.getPTOptions(\\\"itemLink\\\",t,e)),icon:I({class:[this.cx(\\\"itemIcon\\\"),this.getItemProp(t,\\\"icon\\\")]},this.getPTOptions(\\\"itemIcon\\\",t,e)),label:I({class:this.cx(\\\"itemLabel\\\")},this.getPTOptions(\\\"itemLabel\\\",t,e)),submenuicon:I({class:this.cx(\\\"submenuIcon\\\")},this.getPTOptions(\\\"submenuicon\\\",t,e))}}},components:{AngleRightIcon:Ht},directives:{ripple:De}},lo=[\\\"tabindex\\\"],ao=[\\\"id\\\",\\\"aria-label\\\",\\\"aria-disabled\\\",\\\"aria-expanded\\\",\\\"aria-haspopup\\\",\\\"aria-level\\\",\\\"aria-setsize\\\",\\\"aria-posinset\\\",\\\"data-p-active\\\",\\\"data-p-focused\\\",\\\"data-p-disabled\\\"],co=[\\\"onClick\\\",\\\"onMouseenter\\\",\\\"onMousemove\\\"],uo=[\\\"href\\\",\\\"target\\\"],po=[\\\"id\\\"],ho=[\\\"id\\\"];so.render=function(t,e,n,o,i,r){var s=k(\\\"AngleRightIcon\\\"),l=k(\\\"ContextMenuSub\\\",!0),a=w(\\\"ripple\\\");return m(),S(P,I({name:\\\"p-contextmenusub\\\",onEnter:r.onEnter},t.ptm(\\\"menu.transition\\\")),{default:L((function(){return[n.root||n.visible?(m(),g(\\\"ul\\\",I({key:0,ref:\\\"container\\\",tabindex:n.tabindex},t.ptm(\\\"rootList\\\")),[(m(!0),g(_,null,M(n.items,(function(o,i){return m(),g(_,{key:r.getItemKey(o)},[r.isItemVisible(o)\\u0026\\u0026!r.getItemProp(o,\\\"separator\\\")?(m(),g(\\\"li\\\",I({key:0,id:r.getItemId(o),style:r.getItemProp(o,\\\"style\\\"),class:[t.cx(\\\"item\\\",{processedItem:o}),r.getItemProp(o,\\\"class\\\")],role:\\\"menuitem\\\",\\\"aria-label\\\":r.getItemLabel(o),\\\"aria-disabled\\\":r.isItemDisabled(o)||void 0,\\\"aria-expanded\\\":r.isItemGroup(o)?r.isItemActive(o):void 0,\\\"aria-haspopup\\\":r.isItemGroup(o)\\u0026\\u0026!r.getItemProp(o,\\\"to\\\")?\\\"menu\\\":void 0,\\\"aria-level\\\":n.level+1,\\\"aria-setsize\\\":r.getAriaSetSize(),\\\"aria-posinset\\\":r.getAriaPosInset(i),ref_for:!0},r.getPTOptions(\\\"item\\\",o,i),{\\\"data-p-active\\\":r.isItemActive(o),\\\"data-p-focused\\\":r.isItemFocused(o),\\\"data-p-disabled\\\":r.isItemDisabled(o)}),[C(\\\"div\\\",I({class:t.cx(\\\"itemContent\\\"),onClick:function(t){return r.onItemClick(t,o)},onMouseenter:function(t){return r.onItemMouseEnter(t,o)},onMousemove:function(t){return r.onItemMouseMove(t,o)},ref_for:!0},r.getPTOptions(\\\"itemContent\\\",o,i)),[n.templates.item?(m(),S(E(n.templates.item),{key:1,item:o.item,hasSubmenu:r.getItemProp(o,\\\"items\\\"),label:r.getItemLabel(o),props:r.getMenuItemProps(o,i)},null,8,[\\\"item\\\",\\\"hasSubmenu\\\",\\\"label\\\",\\\"props\\\"])):O((m(),g(\\\"a\\\",I({key:0,href:r.getItemProp(o,\\\"url\\\"),class:t.cx(\\\"itemLink\\\"),target:r.getItemProp(o,\\\"target\\\"),tabindex:\\\"-1\\\",ref_for:!0},r.getPTOptions(\\\"itemLink\\\",o,i)),[n.templates.itemicon?(m(),S(E(n.templates.itemicon),{key:0,item:o.item,class:z(t.cx(\\\"itemIcon\\\"))},null,8,[\\\"item\\\",\\\"class\\\"])):r.getItemProp(o,\\\"icon\\\")?(m(),g(\\\"span\\\",I({key:1,class:[t.cx(\\\"itemIcon\\\"),r.getItemProp(o,\\\"icon\\\")],ref_for:!0},r.getPTOptions(\\\"itemIcon\\\",o,i)),null,16)):$(\\\"\\\",!0),C(\\\"span\\\",I({id:r.getItemLabelId(o),class:t.cx(\\\"itemLabel\\\"),ref_for:!0},r.getPTOptions(\\\"itemLabel\\\",o,i)),x(r.getItemLabel(o)),17,po),r.getItemProp(o,\\\"items\\\")?(m(),g(_,{key:2},[n.templates.submenuicon?(m(),S(E(n.templates.submenuicon),{key:0,active:r.isItemActive(o),class:z(t.cx(\\\"submenuIcon\\\"))},null,8,[\\\"active\\\",\\\"class\\\"])):(m(),S(s,I({key:1,class:t.cx(\\\"submenuIcon\\\"),ref_for:!0},r.getPTOptions(\\\"submenuicon\\\",o,i)),null,16,[\\\"class\\\"]))],64)):$(\\\"\\\",!0)],16,uo)),[[a]])],16,co),r.isItemVisible(o)\\u0026\\u0026r.isItemGroup(o)?(m(),S(l,I({key:0,id:r.getItemId(o)+\\\"_list\\\",role:\\\"menu\\\",class:t.cx(\\\"submenu\\\"),menuId:n.menuId,focusedItemId:n.focusedItemId,items:o.items,templates:n.templates,activeItemPath:n.activeItemPath,level:n.level+1,visible:r.isItemActive(o)\\u0026\\u0026r.isItemGroup(o),pt:t.pt,unstyled:t.unstyled,onItemClick:e[0]||(e[0]=function(e){return t.$emit(\\\"item-click\\\",e)}),onItemMouseenter:e[1]||(e[1]=function(e){return t.$emit(\\\"item-mouseenter\\\",e)}),onItemMousemove:e[2]||(e[2]=function(e){return t.$emit(\\\"item-mousemove\\\",e)}),\\\"aria-labelledby\\\":r.getItemLabelId(o),ref_for:!0},t.ptm(\\\"submenu\\\")),null,16,[\\\"id\\\",\\\"class\\\",\\\"menuId\\\",\\\"focusedItemId\\\",\\\"items\\\",\\\"templates\\\",\\\"activeItemPath\\\",\\\"level\\\",\\\"visible\\\",\\\"pt\\\",\\\"unstyled\\\",\\\"aria-labelledby\\\"])):$(\\\"\\\",!0)],16,ao)):$(\\\"\\\",!0),r.isItemVisible(o)\\u0026\\u0026r.getItemProp(o,\\\"separator\\\")?(m(),g(\\\"li\\\",I({key:1,id:r.getItemId(o),style:r.getItemProp(o,\\\"style\\\"),class:[t.cx(\\\"separator\\\"),r.getItemProp(o,\\\"class\\\")],role:\\\"separator\\\",ref_for:!0},t.ptm(\\\"separator\\\")),null,16,ho)):$(\\\"\\\",!0)],64)})),128))],16,lo)):$(\\\"\\\",!0)]})),_:1},16,[\\\"onEnter\\\"])};var fo={name:\\\"ContextMenu\\\",extends:ro,inheritAttrs:!1,emits:[\\\"focus\\\",\\\"blur\\\",\\\"show\\\",\\\"hide\\\",\\\"before-show\\\",\\\"before-hide\\\"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,matchMediaListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:\\\"\\\"},activeItemPath:[],visible:!1,submenuVisible:!1,query:null,queryMatches:!1}},watch:{\\\"$attrs.id\\\":function(t){this.id=t||Et()},activeItemPath:function(t){K(t)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||Et(),this.bindMatchMediaListener(),this.global\\u0026\\u0026this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.unbindMatchMediaListener(),this.container\\u0026\\u0026this.autoZIndex\\u0026\\u0026Q.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(t,e){return t?It(t[e]):void 0},getItemLabel:function(t){return this.getItemProp(t,\\\"label\\\")},isItemDisabled:function(t){return this.getItemProp(t,\\\"disabled\\\")},isItemVisible:function(t){return!1!==this.getItemProp(t,\\\"visible\\\")},isItemGroup:function(t){return K(this.getItemProp(t,\\\"items\\\"))},isItemSeparator:function(t){return this.getItemProp(t,\\\"separator\\\")},getProccessedItemLabel:function(t){return t?this.getItemLabel(t.item):void 0},isProccessedItemGroup:function(t){return t\\u0026\\u0026K(t.items)},toggle:function(t){this.visible?this.hide():this.show(t)},show:function(t){this.$emit(\\\"before-show\\\"),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:\\\"\\\"},et(this.list),this.pageX=t.pageX,this.pageY=t.pageY,this.visible?this.position():this.visible=!0,t.stopPropagation(),t.preventDefault()},hide:function(){this.$emit(\\\"before-hide\\\"),this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:\\\"\\\"}},onFocus:function(t){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:\\\"\\\"},this.$emit(\\\"focus\\\",t)},onBlur:function(t){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:\\\"\\\"},this.searchValue=\\\"\\\",this.$emit(\\\"blur\\\",t)},onKeyDown:function(t){var e=t.metaKey||t.ctrlKey;switch(t.code){case\\\"ArrowDown\\\":this.onArrowDownKey(t);break;case\\\"ArrowUp\\\":this.onArrowUpKey(t);break;case\\\"ArrowLeft\\\":this.onArrowLeftKey(t);break;case\\\"ArrowRight\\\":this.onArrowRightKey(t);break;case\\\"Home\\\":this.onHomeKey(t);break;case\\\"End\\\":this.onEndKey(t);break;case\\\"Space\\\":this.onSpaceKey(t);break;case\\\"Enter\\\":case\\\"NumpadEnter\\\":this.onEnterKey(t);break;case\\\"Escape\\\":this.onEscapeKey(t);break;case\\\"Tab\\\":this.onTabKey(t);break;case\\\"PageDown\\\":case\\\"PageUp\\\":case\\\"Backspace\\\":case\\\"ShiftLeft\\\":case\\\"ShiftRight\\\":break;default:!e\\u0026\\u0026ot(t.key)\\u0026\\u0026this.searchItems(t,t.key)}},onItemChange:function(t,e){var n=t.processedItem,o=t.isFocus;if(!D(n)){var i=n.index,r=n.key,s=n.level,l=n.parentKey,a=n.items,c=K(a),u=this.activeItemPath.filter((function(t){return t.parentKey!==l\\u0026\\u0026t.parentKey!==r}));c\\u0026\\u0026(u.push(n),this.submenuVisible=!0),this.focusedItemInfo={index:i,level:s,parentKey:l},o\\u0026\\u0026et(this.list),\\\"hover\\\"===e\\u0026\\u0026this.queryMatches||(this.activeItemPath=u)}},onItemClick:function(t){var e=t.processedItem,n=this.isProccessedItemGroup(e);if(this.isSelected(e)){var o=e.index,i=e.key,r=e.level,s=e.parentKey;this.activeItemPath=this.activeItemPath.filter((function(t){return i!==t.key\\u0026\\u0026i.startsWith(t.key)})),this.focusedItemInfo={index:o,level:r,parentKey:s},et(this.list)}else n?this.onItemChange(t):this.hide()},onItemMouseEnter:function(t){this.onItemChange(t,\\\"hover\\\")},onItemMouseMove:function(t){this.focused\\u0026\\u0026this.changeFocusedItemIndex(t,t.processedItem.index)},onArrowDownKey:function(t){var e=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(t,e),t.preventDefault()},onArrowUpKey:function(t){if(t.altKey){if(-1!==this.focusedItemInfo.index){var e=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(e)\\u0026\\u0026this.onItemChange({originalEvent:t,processedItem:e})}this.popup\\u0026\\u0026this.hide(),t.preventDefault()}else{var n=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(t,n),t.preventDefault()}},onArrowLeftKey:function(t){var e=this,n=this.visibleItems[this.focusedItemInfo.index],o=this.activeItemPath.find((function(t){return t.key===n.parentKey}));D(n.parent)||(this.focusedItemInfo={index:-1,parentKey:o?o.parentKey:\\\"\\\"},this.searchValue=\\\"\\\",this.onArrowDownKey(t)),this.activeItemPath=this.activeItemPath.filter((function(t){return t.parentKey!==e.focusedItemInfo.parentKey})),t.preventDefault()},onArrowRightKey:function(t){var e=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(e)\\u0026\\u0026(this.onItemChange({originalEvent:t,processedItem:e}),this.focusedItemInfo={index:-1,parentKey:e.key},this.searchValue=\\\"\\\",this.onArrowDownKey(t)),t.preventDefault()},onHomeKey:function(t){this.changeFocusedItemIndex(t,this.findFirstItemIndex()),t.preventDefault()},onEndKey:function(t){this.changeFocusedItemIndex(t,this.findLastItemIndex()),t.preventDefault()},onEnterKey:function(t){if(-1!==this.focusedItemInfo.index){var e=J(this.list,'li[id=\\\"'.concat(\\\"\\\".concat(this.focusedItemIdx),'\\\"]')),n=e\\u0026\\u0026J(e,'[data-pc-section=\\\"itemlink\\\"]');n?n.click():e\\u0026\\u0026e.click();var o=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(o)\\u0026\\u0026(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}t.preventDefault()},onSpaceKey:function(t){this.onEnterKey(t)},onEscapeKey:function(t){this.hide(),!this.popup\\u0026\\u0026(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),t.preventDefault()},onTabKey:function(t){if(-1!==this.focusedItemInfo.index){var e=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(e)\\u0026\\u0026this.onItemChange({originalEvent:t,processedItem:e})}this.hide()},onEnter:function(t){st(t,{position:\\\"absolute\\\"}),this.position(),this.autoZIndex\\u0026\\u0026Q.set(\\\"menu\\\",t,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit(\\\"show\\\"),et(this.list)},onLeave:function(){this.$emit(\\\"hide\\\"),this.container=null},onAfterLeave:function(t){this.autoZIndex\\u0026\\u0026Q.clear(t),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var t=this.pageX+1,e=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:kt(this.container),o=this.container.offsetParent?this.container.offsetHeight:wt(this.container),i=gt(),r=window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0,s=window.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft||0;t+n-s\\u003ei.width\\u0026\\u0026(t-=n),e+o-r\\u003ei.height\\u0026\\u0026(e-=o),t\\u003cs\\u0026\\u0026(t=s),e\\u003cr\\u0026\\u0026(e=r),this.container.style.left=t+\\\"px\\\",this.container.style.top=e+\\\"px\\\"},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){var n=t.container\\u0026\\u0026!t.container.contains(e.target),o=!t.visible||!(t.target\\u0026\\u0026(t.target===e.target||t.target.contains(e.target)));n\\u0026\\u0026o\\u0026\\u0026t.hide()},document.addEventListener(\\\"click\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\u0026\\u0026(document.removeEventListener(\\\"click\\\",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.visible\\u0026\\u0026!ct()\\u0026\\u0026t.hide()},window.addEventListener(\\\"resize\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\u0026\\u0026(window.removeEventListener(\\\"resize\\\",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var t=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(e){2===e.button\\u0026\\u0026t.show(e)},document.addEventListener(\\\"contextmenu\\\",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener\\u0026\\u0026(document.removeEventListener(\\\"contextmenu\\\",this.documentContextMenuListener),this.documentContextMenuListener=null)},bindMatchMediaListener:function(){var t=this;if(!this.matchMediaListener){var e=matchMedia(\\\"(max-width: \\\".concat(this.breakpoint,\\\")\\\"));this.query=e,this.queryMatches=e.matches,this.matchMediaListener=function(){t.queryMatches=e.matches},this.query.addEventListener(\\\"change\\\",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener\\u0026\\u0026(this.query.removeEventListener(\\\"change\\\",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(t){var e;return this.isValidItem(t)\\u0026\\u0026(null===(e=this.getProccessedItemLabel(t))||void 0===e?void 0:e.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(t){return!!t\\u0026\\u0026!this.isItemDisabled(t.item)\\u0026\\u0026!this.isItemSeparator(t.item)\\u0026\\u0026this.isItemVisible(t.item)},isValidSelectedItem:function(t){return this.isValidItem(t)\\u0026\\u0026this.isSelected(t)},isSelected:function(t){return this.activeItemPath.some((function(e){return e.key===t.key}))},findFirstItemIndex:function(){var t=this;return this.visibleItems.findIndex((function(e){return t.isValidItem(e)}))},findLastItemIndex:function(){var t=this;return pt(this.visibleItems,(function(e){return t.isValidItem(e)}))},findNextItemIndex:function(t){var e=this,n=t\\u003cthis.visibleItems.length-1?this.visibleItems.slice(t+1).findIndex((function(t){return e.isValidItem(t)})):-1;return n\\u003e-1?n+t+1:t},findPrevItemIndex:function(t){var e=this,n=t\\u003e0?pt(this.visibleItems.slice(0,t),(function(t){return e.isValidItem(t)})):-1;return n\\u003e-1?n:t},findSelectedItemIndex:function(){var t=this;return this.visibleItems.findIndex((function(e){return t.isValidSelectedItem(e)}))},findFirstFocusedItemIndex:function(){var t=this.findSelectedItemIndex();return t\\u003c0?this.findFirstItemIndex():t},findLastFocusedItemIndex:function(){var t=this.findSelectedItemIndex();return t\\u003c0?this.findLastItemIndex():t},searchItems:function(t,e){var n=this;this.searchValue=(this.searchValue||\\\"\\\")+e;var o=-1,i=!1;return-1!==(o=-1!==this.focusedItemInfo.index?-1===(o=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(t){return n.isItemMatched(t)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(t){return n.isItemMatched(t)})):o+this.focusedItemInfo.index:this.visibleItems.findIndex((function(t){return n.isItemMatched(t)})))\\u0026\\u0026(i=!0),-1===o\\u0026\\u0026-1===this.focusedItemInfo.index\\u0026\\u0026(o=this.findFirstFocusedItemIndex()),-1!==o\\u0026\\u0026this.changeFocusedItemIndex(t,o),this.searchTimeout\\u0026\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){n.searchValue=\\\"\\\",n.searchTimeout=null}),500),i},changeFocusedItemIndex:function(t,e){this.focusedItemInfo.index!==e\\u0026\\u0026(this.focusedItemInfo.index=e,this.scrollInView())},scrollInView:function(){var t=arguments.length\\u003e0\\u0026\\u0026void 0!==arguments[0]?arguments[0]:-1,e=-1!==t?\\\"\\\".concat(this.id,\\\"_\\\").concat(t):this.focusedItemIdx,n=J(this.list,'li[id=\\\"'.concat(e,'\\\"]'));n\\u0026\\u0026n.scrollIntoView\\u0026\\u0026n.scrollIntoView({block:\\\"nearest\\\",inline:\\\"start\\\"})},createProcessedItems:function(t){var e=this,n=arguments.length\\u003e1\\u0026\\u0026void 0!==arguments[1]?arguments[1]:0,o=arguments.length\\u003e2\\u0026\\u0026void 0!==arguments[2]?arguments[2]:{},i=arguments.length\\u003e3\\u0026\\u0026void 0!==arguments[3]?arguments[3]:\\\"\\\",r=[];return t\\u0026\\u0026t.forEach((function(t,s){var l=(\\\"\\\"!==i?i+\\\"_\\\":\\\"\\\")+s,a={item:t,index:s,level:n,key:l,parent:o,parentKey:i};a.items=e.createProcessedItems(t.items,n+1,a,l),r.push(a)})),r},containerRef:function(t){this.container=t},listRef:function(t){this.list=t?t.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var t=this,e=this.activeItemPath.find((function(e){return e.key===t.focusedItemInfo.parentKey}));return e?e.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?\\\"\\\".concat(this.id).concat(K(this.focusedItemInfo.parentKey)?\\\"_\\\"+this.focusedItemInfo.parentKey:\\\"\\\",\\\"_\\\").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:so,Portal:Ye}};fo.render=function(t,e,n,o,i,r){var s=k(\\\"ContextMenuSub\\\"),l=k(\\\"Portal\\\");return m(),S(l,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\"p-contextmenu\\\",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},t.ptm(\\\"transition\\\")),{default:L((function(){return[i.visible?(m(),g(\\\"div\\\",I({key:0,ref:r.containerRef,class:t.cx(\\\"root\\\")},t.ptmi(\\\"root\\\")),[V(s,{ref:r.listRef,id:i.id+\\\"_list\\\",class:z(t.cx(\\\"rootList\\\")),role:\\\"menubar\\\",root:!0,tabindex:t.tabindex,\\\"aria-orientation\\\":\\\"vertical\\\",\\\"aria-activedescendant\\\":i.focused?r.focusedItemIdx:void 0,menuId:i.id,focusedItemId:i.focused?r.focusedItemIdx:void 0,items:r.processedItems,templates:t.$slots,activeItemPath:i.activeItemPath,\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"aria-label\\\":t.ariaLabel,level:0,visible:i.submenuVisible,pt:t.pt,unstyled:t.unstyled,onFocus:r.onFocus,onBlur:r.onBlur,onKeydown:r.onKeyDown,onItemClick:r.onItemClick,onItemMouseenter:r.onItemMouseEnter,onItemMousemove:r.onItemMouseMove},null,8,[\\\"id\\\",\\\"class\\\",\\\"tabindex\\\",\\\"aria-activedescendant\\\",\\\"menuId\\\",\\\"focusedItemId\\\",\\\"items\\\",\\\"templates\\\",\\\"activeItemPath\\\",\\\"aria-labelledby\\\",\\\"aria-label\\\",\\\"visible\\\",\\\"pt\\\",\\\"unstyled\\\",\\\"onFocus\\\",\\\"onBlur\\\",\\\"onKeydown\\\",\\\"onItemClick\\\",\\\"onItemMouseenter\\\",\\\"onItemMousemove\\\"])],16)):$(\\\"\\\",!0)]})),_:1},16,[\\\"onEnter\\\",\\\"onAfterEnter\\\",\\\"onLeave\\\",\\\"onAfterLeave\\\"])]})),_:1},8,[\\\"appendTo\\\"])};var bo=St.extend({name:\\\"togglebutton\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-togglebutton {\\\\n    display: inline-flex;\\\\n    cursor: pointer;\\\\n    user-select: none;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    overflow: hidden;\\\\n    position: relative;\\\\n    color: \\\".concat(e(\\\"togglebutton.color\\\"),\\\";\\\\n    background: \\\").concat(e(\\\"togglebutton.background\\\"),\\\";\\\\n    border: 1px solid \\\").concat(e(\\\"togglebutton.border.color\\\"),\\\";\\\\n    padding: \\\").concat(e(\\\"togglebutton.padding\\\"),\\\";\\\\n    font-size: 1rem;\\\\n    font-family: inherit;\\\\n    font-feature-settings: inherit;\\\\n    transition: background \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\",\\\\n        outline-color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\";\\\\n    border-radius: \\\").concat(e(\\\"togglebutton.border.radius\\\"),\\\";\\\\n    outline-color: transparent;\\\\n    font-weight: \\\").concat(e(\\\"togglebutton.font.weight\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton-content {\\\\n    position: relative;\\\\n    display: inline-flex;\\\\n    align-items: center;\\\\n    justify-content: center;\\\\n    gap: \\\").concat(e(\\\"togglebutton.gap\\\"),';\\\\n}\\\\n\\\\n.p-togglebutton-label,\\\\n.p-togglebutton-icon {\\\\n    position: relative;\\\\n    transition: none;\\\\n}\\\\n\\\\n.p-togglebutton::before {\\\\n    content: \\\"\\\";\\\\n    background: transparent;\\\\n    transition: background ').concat(e(\\\"togglebutton.transition.duration\\\"),\\\", color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", border-color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\",\\\\n            outline-color \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\", box-shadow \\\").concat(e(\\\"togglebutton.transition.duration\\\"),\\\";\\\\n    position: absolute;\\\\n    inset-inline-start: \\\").concat(e(\\\"togglebutton.content.left\\\"),\\\";\\\\n    inset-block-start: \\\").concat(e(\\\"togglebutton.content.top\\\"),\\\";\\\\n    width: calc(100% - calc(2 * \\\").concat(e(\\\"togglebutton.content.left\\\"),\\\"));\\\\n    height: calc(100% - calc(2 * \\\").concat(e(\\\"togglebutton.content.top\\\"),\\\"));\\\\n    border-radius: \\\").concat(e(\\\"togglebutton.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton.p-togglebutton-checked::before {\\\\n    background: \\\").concat(e(\\\"togglebutton.content.checked.background\\\"),\\\";\\\\n    box-shadow: \\\").concat(e(\\\"togglebutton.content.checked.shadow\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {\\\\n    background: \\\").concat(e(\\\"togglebutton.hover.background\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"togglebutton.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton.p-togglebutton-checked {\\\\n    background: \\\").concat(e(\\\"togglebutton.checked.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"togglebutton.checked.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"togglebutton.checked.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:focus-visible {\\\\n    box-shadow: \\\").concat(e(\\\"togglebutton.focus.ring.shadow\\\"),\\\";\\\\n    outline: \\\").concat(e(\\\"togglebutton.focus.ring.width\\\"),\\\" \\\").concat(e(\\\"togglebutton.focus.ring.style\\\"),\\\" \\\").concat(e(\\\"togglebutton.focus.ring.color\\\"),\\\";\\\\n    outline-offset: \\\").concat(e(\\\"togglebutton.focus.ring.offset\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton.p-invalid {\\\\n    border-color: \\\").concat(e(\\\"togglebutton.invalid.border.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:disabled {\\\\n    opacity: 1;\\\\n    cursor: default;\\\\n    background: \\\").concat(e(\\\"togglebutton.disabled.background\\\"),\\\";\\\\n    border-color: \\\").concat(e(\\\"togglebutton.disabled.border.color\\\"),\\\";\\\\n    color: \\\").concat(e(\\\"togglebutton.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton-icon {\\\\n    color: \\\").concat(e(\\\"togglebutton.icon.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {\\\\n    color: \\\").concat(e(\\\"togglebutton.icon.hover.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {\\\\n    color: \\\").concat(e(\\\"togglebutton.icon.checked.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton:disabled .p-togglebutton-icon {\\\\n    color: \\\").concat(e(\\\"togglebutton.icon.disabled.color\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton-sm {\\\\n    padding: \\\").concat(e(\\\"togglebutton.sm.padding\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"togglebutton.sm.font.size\\\"),\\\";\\\\n}\\\\n\\\\n.p-togglebutton-lg {\\\\n    padding: \\\").concat(e(\\\"togglebutton.lg.padding\\\"),\\\";\\\\n    font-size: \\\").concat(e(\\\"togglebutton.lg.font.size\\\"),\\\";\\\\n}\\\\n\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\"p-togglebutton p-component\\\",{\\\"p-togglebutton-checked\\\":e.active,\\\"p-invalid\\\":e.$invalid,\\\"p-togglebutton-sm p-inputfield-sm\\\":\\\"small\\\"===n.size,\\\"p-togglebutton-lg p-inputfield-lg\\\":\\\"large\\\"===n.size}]},content:\\\"p-togglebutton-content\\\",icon:\\\"p-togglebutton-icon\\\",label:\\\"p-togglebutton-label\\\"}}),mo={name:\\\"ToggleButton\\\",extends:{name:\\\"BaseToggleButton\\\",extends:Bt,props:{onIcon:String,offIcon:String,onLabel:{type:String,default:\\\"Yes\\\"},offLabel:{type:String,default:\\\"No\\\"},iconPos:{type:String,default:\\\"left\\\"},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},size:{type:String,default:null}},style:bo,provide:function(){return{$pcToggleButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\"],methods:{getPTOptions:function(t){return(\\\"root\\\"===t?this.ptmi:this.ptm)(t,{context:{active:this.active,disabled:this.disabled}})},onChange:function(t){this.disabled||this.readonly||(this.writeValue(!this.d_value,t),this.$emit(\\\"change\\\",t))},onBlur:function(t){var e,n;null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)}},computed:{active:function(){return!0===this.d_value},hasLabel:function(){return K(this.onLabel)\\u0026\\u0026K(this.offLabel)},label:function(){return this.hasLabel?this.d_value?this.onLabel:this.offLabel:\\\" \\\"}},directives:{ripple:De}},go=[\\\"tabindex\\\",\\\"disabled\\\",\\\"aria-pressed\\\",\\\"aria-labelledby\\\",\\\"data-p-checked\\\",\\\"data-p-disabled\\\"];mo.render=function(t,e,n,o,i,r){var s=w(\\\"ripple\\\");return O((m(),g(\\\"button\\\",I({type:\\\"button\\\",class:t.cx(\\\"root\\\"),tabindex:t.tabindex,disabled:t.disabled,\\\"aria-pressed\\\":t.d_value,onClick:e[0]||(e[0]=function(){return r.onChange\\u0026\\u0026r.onChange.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\u0026\\u0026r.onBlur.apply(r,arguments)})},r.getPTOptions(\\\"root\\\"),{\\\"aria-labelledby\\\":t.ariaLabelledby,\\\"data-p-checked\\\":r.active,\\\"data-p-disabled\\\":t.disabled}),[C(\\\"span\\\",I({class:t.cx(\\\"content\\\")},r.getPTOptions(\\\"content\\\")),[v(t.$slots,\\\"default\\\",{},(function(){return[v(t.$slots,\\\"icon\\\",{value:t.d_value,class:z(t.cx(\\\"icon\\\"))},(function(){return[t.onIcon||t.offIcon?(m(),g(\\\"span\\\",I({key:0,class:[t.cx(\\\"icon\\\"),t.d_value?t.onIcon:t.offIcon]},r.getPTOptions(\\\"icon\\\")),null,16)):$(\\\"\\\",!0)]})),C(\\\"span\\\",I({class:t.cx(\\\"label\\\")},r.getPTOptions(\\\"label\\\")),x(r.label),17)]}))],16)],16,go)),[[s]])};var vo=St.extend({name:\\\"selectbutton\\\",theme:function(t){var e=t.dt;return\\\"\\\\n.p-selectbutton {\\\\n    display: inline-flex;\\\\n    user-select: none;\\\\n    vertical-align: bottom;\\\\n    outline-color: transparent;\\\\n    border-radius: \\\".concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-selectbutton .p-togglebutton {\\\\n    border-radius: 0;\\\\n    border-width: 1px 1px 1px 0;\\\\n}\\\\n\\\\n.p-selectbutton .p-togglebutton:focus-visible {\\\\n    position: relative;\\\\n    z-index: 1;\\\\n}\\\\n\\\\n.p-selectbutton .p-togglebutton:first-child {\\\\n    border-inline-start-width: 1px;\\\\n    border-start-start-radius: \\\").concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n    border-end-start-radius: \\\").concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-selectbutton .p-togglebutton:last-child {\\\\n    border-start-end-radius: \\\").concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n    border-end-end-radius: \\\").concat(e(\\\"selectbutton.border.radius\\\"),\\\";\\\\n}\\\\n\\\\n.p-selectbutton.p-invalid {\\\\n    outline: 1px solid \\\").concat(e(\\\"selectbutton.invalid.border.color\\\"),\\\";\\\\n    outline-offset: 0;\\\\n}\\\\n\\\")},classes:{root:function(t){return[\\\"p-selectbutton p-component\\\",{\\\"p-invalid\\\":t.instance.$invalid}]}}});function yo(t){return function(t){if(Array.isArray(t))return Io(t)}(t)||function(t){if(\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026null!=t[Symbol.iterator]||null!=t[\\\"@@iterator\\\"])return Array.from(t)}(t)||xo(t)||function(){throw new TypeError(\\\"Invalid attempt to spread non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}()}function xo(t,e){if(t){if(\\\"string\\\"==typeof t)return Io(t,e);var n={}.toString.call(t).slice(8,-1);return\\\"Object\\\"===n\\u0026\\u0026t.constructor\\u0026\\u0026(n=t.constructor.name),\\\"Map\\\"===n||\\\"Set\\\"===n?Array.from(t):\\\"Arguments\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(t,e):void 0}}function Io(t,e){(null==e||e\\u003et.length)\\u0026\\u0026(e=t.length);for(var n=0,o=Array(e);n\\u003ce;n++)o[n]=t[n];return o}var ko={name:\\\"SelectButton\\\",extends:{name:\\\"BaseSelectButton\\\",extends:Bt,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,allowEmpty:{type:Boolean,default:!0},dataKey:null,ariaLabelledby:{type:String,default:null},size:{type:String,default:null}},style:vo,provide:function(){return{$pcSelectButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\"change\\\"],methods:{getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t){return this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled:function(t){return!!this.optionDisabled\\u0026\\u0026tt(t,this.optionDisabled)},onOptionSelect:function(t,e,n){var o=this;if(!this.disabled\\u0026\\u0026!this.isOptionDisabled(e)){var i=this.isSelected(e);if(!i||this.allowEmpty){var r,s=this.getOptionValue(e);r=this.multiple?i?this.d_value.filter((function(t){return!dt(t,s,o.equalityKey)})):this.d_value?[].concat(yo(this.d_value),[s]):[s]:i?null:s,this.writeValue(r,t),this.$emit(\\\"change\\\",{event:t,value:r})}}},isSelected:function(t){var e=!1,n=this.getOptionValue(t);if(this.multiple){if(this.d_value){var o,i=function(t,e){var n=\\\"undefined\\\"!=typeof Symbol\\u0026\\u0026t[Symbol.iterator]||t[\\\"@@iterator\\\"];if(!n){if(Array.isArray(t)||(n=xo(t))||e){n\\u0026\\u0026(t=n);var o=0,i=function(){};return{s:i,n:function(){return o\\u003e=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError(\\\"Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\")}var r,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw r}}}}(this.d_value);try{for(i.s();!(o=i.n()).done;){var r=o.value;if(dt(r,n,this.equalityKey)){e=!0;break}}}catch(s){i.e(s)}finally{i.f()}}}else e=dt(this.d_value,n,this.equalityKey);return e}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey}},directives:{ripple:De},components:{ToggleButton:mo}},wo=[\\\"aria-labelledby\\\"];ko.render=function(t,e,n,o,i,r){var s=k(\\\"ToggleButton\\\");return m(),g(\\\"div\\\",I({class:t.cx(\\\"root\\\"),role:\\\"group\\\",\\\"aria-labelledby\\\":t.ariaLabelledby},t.ptmi(\\\"root\\\")),[(m(!0),g(_,null,M(t.options,(function(e,n){return m(),S(s,{key:r.getOptionRenderKey(e),modelValue:r.isSelected(e),onLabel:r.getOptionLabel(e),offLabel:r.getOptionLabel(e),disabled:t.disabled||r.isOptionDisabled(e),unstyled:t.unstyled,size:t.size,readonly:!t.allowEmpty\\u0026\\u0026r.isSelected(e),onChange:function(t){return r.onOptionSelect(t,e,n)},pt:t.ptm(\\\"pcToggleButton\\\")},A({_:2},[t.$slots.option?{name:\\\"default\\\",fn:L((function(){return[v(t.$slots,\\\"option\\\",{option:e,index:n},(function(){return[C(\\\"span\\\",I({ref_for:!0},t.ptm(\\\"pcToggleButton\\\").label),x(r.getOptionLabel(e)),17)]}))]})),key:\\\"0\\\"}:void 0]),1032,[\\\"modelValue\\\",\\\"onLabel\\\",\\\"offLabel\\\",\\\"disabled\\\",\\\"unstyled\\\",\\\"size\\\",\\\"readonly\\\",\\\"onChange\\\",\\\"pt\\\"])})),128))],16,wo)};export{On as T,pn as a,jn as b,Qn as c,re as d,se as e,Ne as f,We as g,Ce as h,Ue as i,ko as j,oo as k,fo as l,qt as m,Ge as s};\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket4\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v2/assets/vendor-DrOEdrAG.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket4\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 2055\n                                },\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 16562\n                                },\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 16651\n                                },\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 16864\n                                },\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 66713\n                                },\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 116775\n                                },\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 116952\n                                },\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 117004\n                                },\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 117061\n                                },\n                                {\n                                    \"line\": \"let jt;const Rt=t=\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\u0026\\u0026\\\"object\\\"==typeof t\\u0026\\u0026\\\"[object Object]\\\"===Object.prototype.toString.call(t)\\u0026\\u0026\\\"function\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\u003ee({})));let r=[],s=[];const l=n({install(\",\n                                    \"line_number\": 7,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 117235\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-network-requests\"\n        ],\n        \"code_snippet\": \"10 | * (c) 2018-present Yuxi (Evan) You and Vue contributors\\n11 | * @license MIT\\n12 | **/\\n13 | let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\u0026\\u0026te\\u0026\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e\\u003ct;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e\\u003ct;e++)this.effects[e].pause()}}resume(){if(this._active\\u0026\\u0026this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e\\u003ct;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e\\u003ct;e++)this.effects[e].resume()}}run(e){if(this._active){const t=te;try{return te=this,e()}finally{te=t}}}on(){1==++this._on\\u0026\\u0026(this.prevScope=te,te=this)}off(){this._on\\u003e0\\u0026\\u00260==--this._on\\u0026\\u0026(te=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t\\u003cn;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t\\u003cn;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t\\u003cn;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached\\u0026\\u0026this.parent\\u0026\\u0026!e){const e=this.parent.scopes.pop();e\\u0026\\u0026e!==this\\u0026\\u0026(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function re(e){return new se(e)}function oe(){return te}function ie(e,t=!1){te\\u0026\\u0026te.cleanups.push(e)}const le=new WeakSet;class ce{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,te\\u0026\\u0026te.active\\u0026\\u0026te.effects.push(this)}pause(){this.flags|=64}resume(){64\\u0026this.flags\\u0026\\u0026(this.flags\\u0026=-65,le.has(this)\\u0026\\u0026(le.delete(this),this.trigger()))}notify(){2\\u0026this.flags\\u0026\\u0026!(32\\u0026this.flags)||8\\u0026this.flags||pe(this)}run(){if(!(1\\u0026this.flags))return this.fn();this.flags|=2,ke(this),ve(this);const e=ne,t=xe;ne=this,xe=!0;try{return this.fn()}finally{ge(this),ne=e,xe=t,this.flags\\u0026=-3}}stop(){if(1\\u0026this.flags){for(let e=this.deps;e;e=e.nextDep)ye(e);this.deps=this.depsTail=void 0,ke(this),this.onStop\\u0026\\u0026this.onStop(),this.flags\\u0026=-2}}trigger(){64\\u0026this.flags?le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){me(this)\\u0026\\u0026this.run()}get dirty(){return me(this)}}let ae,ue,fe=0;function pe(e,t=!1){if(e.flags|=8,t)return e.next=ue,void(ue=e);e.next=ae,ae=e}function de(){fe++}function he(){if(--fe\\u003e0)return;if(ue){let e=ue;for(ue=void 0;e;){const t=e.next;e.next=void 0,e.flags\\u0026=-9,e=t}}let e;for(;ae;){let n=ae;for(ae=void 0;n;){const s=n.next;if(n.next=void 0,n.flags\\u0026=-9,1\\u0026n.flags)try{n.trigger()}catch(t){e||(e=t)}n=s}}if(e)throw e}function ve(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ge(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n\\u0026\\u0026(n=e),ye(s),be(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function me(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed\\u0026\\u0026(_e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _e(e){if(4\\u0026e.flags\\u0026\\u0026!(16\\u0026e.flags))return;if(e.flags\\u0026=-17,e.globalVersion===Ae)return;if(e.globalVersion=Ae,!e.isSSR\\u0026\\u0026128\\u0026e.flags\\u0026\\u0026(!e.deps\\u0026\\u0026!e._dirty||!me(e)))return;e.flags|=2;const t=e.dep,n=ne,s=xe;ne=e,xe=!0;try{ve(e);const n=e.fn(e._value);(0===t.version||j(n,e._value))\\u0026\\u0026(e.flags|=128,e._value=n,t.version++)}catch(r){throw t.version++,r}finally{ne=n,xe=s,ge(e),e.flags\\u0026=-3}}function ye(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s\\u0026\\u0026(s.nextSub=r,e.prevSub=void 0),r\\u0026\\u0026(r.prevSub=s,e.nextSub=void 0),n.subs===e\\u0026\\u0026(n.subs=s,!s\\u0026\\u0026n.computed)){n.computed.flags\\u0026=-5;for(let e=n.computed.deps;e;e=e.nextDep)ye(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function be(e){const{prevDep:t,nextDep:n}=e;t\\u0026\\u0026(t.nextDep=n,e.prevDep=void 0),n\\u0026\\u0026(n.prevDep=t,e.nextDep=void 0)}let xe=!0;const Se=[];function Ce(){Se.push(xe),xe=!1}function we(){const e=Se.pop();xe=void 0===e||e}function ke(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ne;ne=void 0;try{t()}finally{ne=e}}}let Ae=0;class Ee{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Te{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ne||!xe||ne===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ne)t=this.activeLink=new Ee(ne,this),ne.deps?(t.prevDep=ne.depsTail,ne.depsTail.nextDep=t,ne.depsTail=t):ne.deps=ne.depsTail=t,Oe(t);else if(-1===t.version\\u0026\\u0026(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep\\u0026\\u0026(t.prevDep.nextDep=e),t.prevDep=ne.depsTail,t.nextDep=void 0,ne.depsTail.nextDep=t,ne.depsTail=t,ne.deps===t\\u0026\\u0026(ne.deps=e)}return t}trigger(e){this.version++,Ae++,this.notify(e)}notify(e){de();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()\\u0026\\u0026e.sub.dep.notify()}finally{he()}}}function Oe(e){if(e.dep.sc++,4\\u0026e.sub.flags){const t=e.dep.computed;if(t\\u0026\\u0026!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Oe(e)}const n=e.dep.subs;n!==e\\u0026\\u0026(e.prevSub=n,n\\u0026\\u0026(n.nextSub=e)),e.dep.subs=e}}const Fe=new WeakMap,Le=Symbol(\\\"\\\"),Me=Symbol(\\\"\\\"),je=Symbol(\\\"\\\");function Pe(e,t,n){if(xe\\u0026\\u0026ne){let t=Fe.get(e);t||Fe.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Te),s.map=t,s.key=n),s.track()}}function De(e,t,n,s,r,o){const i=Fe.get(e);if(!i)return void Ae++;const l=e=\\u003e{e\\u0026\\u0026e.trigger()};if(de(),\\\"clear\\\"===t)i.forEach(l);else{const r=f(e),o=r\\u0026\\u0026w(n);if(r\\u0026\\u0026\\\"length\\\"===n){const e=Number(s);i.forEach(((t,n)=\\u003e{(\\\"length\\\"===n||n===je||!m(n)\\u0026\\u0026n\\u003e=e)\\u0026\\u0026l(t)}))}else switch((void 0!==n||i.has(void 0))\\u0026\\u0026l(i.get(n)),o\\u0026\\u0026l(i.get(je)),t){case\\\"add\\\":r?o\\u0026\\u0026l(i.get(\\\"length\\\")):(l(i.get(Le)),p(e)\\u0026\\u0026l(i.get(Me)));break;case\\\"delete\\\":r||(l(i.get(Le)),p(e)\\u0026\\u0026l(i.get(Me)));break;case\\\"set\\\":p(e)\\u0026\\u0026l(i.get(Le))}}he()}function Ve(e){const t=yt(e);return t===e?t:(Pe(t,0,je),mt(e)?t:t.map(xt))}function Re(e){return Pe(e=yt(e),0,je),e}const $e={__proto__:null,[Symbol.iterator](){return Ie(this,Symbol.iterator,xt)},concat(...e){return Ve(this).concat(...e.map((e=\\u003ef(e)?Ve(e):e)))},entries(){return Ie(this,\\\"entries\\\",(e=\\u003e(e[1]=xt(e[1]),e)))},every(e,t){return Ue(this,\\\"every\\\",e,t,void 0,arguments)},filter(e,t){return Ue(this,\\\"filter\\\",e,t,(e=\\u003ee.map(xt)),arguments)},find(e,t){return Ue(this,\\\"find\\\",e,t,xt,arguments)},findIndex(e,t){return Ue(this,\\\"findIndex\\\",e,t,void 0,arguments)},findLast(e,t){return Ue(this,\\\"findLast\\\",e,t,xt,arguments)},findLastIndex(e,t){return Ue(this,\\\"findLastIndex\\\",e,t,void 0,arguments)},forEach(e,t){return Ue(this,\\\"forEach\\\",e,t,void 0,arguments)},includes(...e){return We(this,\\\"includes\\\",e)},indexOf(...e){return We(this,\\\"indexOf\\\",e)},join(e){return Ve(this).join(e)},lastIndexOf(...e){return We(this,\\\"lastIndexOf\\\",e)},map(e,t){return Ue(this,\\\"map\\\",e,t,void 0,arguments)},pop(){return He(this,\\\"pop\\\")},push(...e){return He(this,\\\"push\\\",e)},reduce(e,...t){return Be(this,\\\"reduce\\\",e,t)},reduceRight(e,...t){return Be(this,\\\"reduceRight\\\",e,t)},shift(){return He(this,\\\"shift\\\")},some(e,t){return Ue(this,\\\"some\\\",e,t,void 0,arguments)},splice(...e){return He(this,\\\"splice\\\",e)},toReversed(){return Ve(this).toReversed()},toSorted(e){return Ve(this).toSorted(e)},toSpliced(...e){return Ve(this).toSpliced(...e)},unshift(...e){return He(this,\\\"unshift\\\",e)},values(){return Ie(this,\\\"values\\\",xt)}};function Ie(e,t,n){const s=Re(e),r=s[t]();return s===e||mt(e)||(r._next=r.next,r.next=()=\\u003e{const e=r._next();return e.value\\u0026\\u0026(e.value=n(e.value)),e}),r}const Ne=Array.prototype;function Ue(e,t,n,s,r,o){const i=Re(e),l=i!==e\\u0026\\u0026!mt(e),c=i[t];if(c!==Ne[t]){const t=c.apply(e,o);return l?xt(t):t}let a=n;i!==e\\u0026\\u0026(l?a=function(t,s){return n.call(this,xt(t),s,e)}:n.length\\u003e2\\u0026\\u0026(a=function(t,s){return n.call(this,t,s,e)}));const u=c.call(i,a,s);return l\\u0026\\u0026r?r(u):u}function Be(e,t,n,s){const r=Re(e);let o=n;return r!==e\\u0026\\u0026(mt(e)?n.length\\u003e3\\u0026\\u0026(o=function(t,s,r){return n.call(this,t,s,r,e)}):o=function(t,s,r){return n.call(this,t,xt(s),r,e)}),r[t](o,...s)}function We(e,t,n){const s=yt(e);Pe(s,0,je);const r=s[t](...n);return-1!==r\\u0026\\u0026!1!==r||!_t(n[0])?r:(n[0]=yt(n[0]),s[t](...n))}function He(e,t,n=[]){Ce(),de();const s=yt(e)[t].apply(e,n);return he(),we(),s}const Ke=e(\\\"__proto__,__v_isRef,__isVue\\\"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter((e=\\u003e\\\"arguments\\\"!==e\\u0026\\u0026\\\"caller\\\"!==e)).map((e=\\u003eSymbol[e])).filter(m));function qe(e){m(e)||(e=String(e));const t=yt(this);return Pe(t,0,e),t.hasOwnProperty(e)}class Ge{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(\\\"__v_skip\\\"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if(\\\"__v_isReactive\\\"===t)return!s;if(\\\"__v_isReadonly\\\"===t)return s;if(\\\"__v_isShallow\\\"===t)return r;if(\\\"__v_raw\\\"===t)return n===(s?r?ft:ut:r?at:ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=f(e);if(!s){let e;if(o\\u0026\\u0026(e=$e[t]))return e;if(\\\"hasOwnProperty\\\"===t)return qe}const i=Reflect.get(e,t,Ct(e)?e:n);return(m(t)?ze.has(t):Ke(t))?i:(s||Pe(e,0,t),r?i:Ct(i)?o\\u0026\\u0026w(t)?i:i.value:_(i)?s?dt(i):pt(i):i)}}class Je extends Ge{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=gt(r);if(mt(n)||gt(n)||(r=yt(r),n=yt(n)),!f(e)\\u0026\\u0026Ct(r)\\u0026\\u0026!Ct(n))return!t\\u0026\\u0026(r.value=n,!0)}const o=f(e)\\u0026\\u0026w(t)?Number(t)\\u003ce.length:u(e,t),i=Reflect.set(e,t,n,Ct(e)?e:s);return e===yt(s)\\u0026\\u0026(o?j(n,r)\\u0026\\u0026De(e,\\\"set\\\",t,n):De(e,\\\"add\\\",t,n)),i}deleteProperty(e,t){const n=u(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s\\u0026\\u0026n\\u0026\\u0026De(e,\\\"delete\\\",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return m(t)\\u0026\\u0026ze.has(t)||Pe(e,0,t),n}ownKeys(e){return Pe(e,0,f(e)?\\\"length\\\":Le),Reflect.ownKeys(e)}}class Ze extends Ge{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Xe=new Je,Qe=new Ze,Ye=new Je(!0),et=e=\\u003ee,tt=e=\\u003eReflect.getPrototypeOf(e);function nt(e){return function(...t){return\\\"delete\\\"!==e\\u0026\\u0026(\\\"clear\\\"===e?void 0:this)}}function st(e,t){const n={get(n){const s=this.__v_raw,r=yt(s),o=yt(n);e||(j(n,o)\\u0026\\u0026Pe(r,0,n),Pe(r,0,o));const{has:i}=tt(r),l=t?et:e?St:xt;return i.call(r,n)?l(s.get(n)):i.call(r,o)?l(s.get(o)):void(s!==r\\u0026\\u0026s.get(n))},get size(){const t=this.__v_raw;return!e\\u0026\\u0026Pe(yt(t),0,Le),Reflect.get(t,\\\"size\\\",t)},has(t){const n=this.__v_raw,s=yt(n),r=yt(t);return e||(j(t,r)\\u0026\\u0026Pe(s,0,t),Pe(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,o=r.__v_raw,i=yt(o),l=t?et:e?St:xt;return!e\\u0026\\u0026Pe(i,0,Le),o.forEach(((e,t)=\\u003en.call(s,l(e),l(t),r)))}};l(n,e?{add:nt(\\\"add\\\"),set:nt(\\\"set\\\"),delete:nt(\\\"delete\\\"),clear:nt(\\\"clear\\\")}:{add(e){t||mt(e)||gt(e)||(e=yt(e));const n=yt(this);return tt(n).has.call(n,e)||(n.add(e),De(n,\\\"add\\\",e,e)),this},set(e,n){t||mt(n)||gt(n)||(n=yt(n));const s=yt(this),{has:r,get:o}=tt(s);let i=r.call(s,e);i||(e=yt(e),i=r.call(s,e));const l=o.call(s,e);return s.set(e,n),i?j(n,l)\\u0026\\u0026De(s,\\\"set\\\",e,n):De(s,\\\"add\\\",e,n),this},delete(e){const t=yt(this),{has:n,get:s}=tt(t);let r=n.call(t,e);r||(e=yt(e),r=n.call(t,e)),s\\u0026\\u0026s.call(t,e);const o=t.delete(e);return r\\u0026\\u0026De(t,\\\"delete\\\",e,void 0),o},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t\\u0026\\u0026De(e,\\\"clear\\\",void 0,void 0),n}});return[\\\"keys\\\",\\\"values\\\",\\\"entries\\\",Symbol.iterator].forEach((s=\\u003e{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,o=yt(r),i=p(o),l=\\\"entries\\\"===e||e===Symbol.iterator\\u0026\\u0026i,c=\\\"keys\\\"===e\\u0026\\u0026i,a=r[e](...s),u=n?et:t?St:xt;return!t\\u0026\\u0026Pe(o,0,c?Me:Le),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(s,e,t)})),n}function rt(e,t){const n=st(e,t);return(t,s,r)=\\u003e\\\"__v_isReactive\\\"===s?!e:\\\"__v_isReadonly\\\"===s?e:\\\"__v_raw\\\"===s?t:Reflect.get(u(n,s)\\u0026\\u0026s in t?n:t,s,r)}const ot={get:rt(!1,!1)},it={get:rt(!1,!0)},lt={get:rt(!0,!1)},ct=new WeakMap,at=new WeakMap,ut=new WeakMap,ft=new WeakMap;function pt(e){return gt(e)?e:ht(e,!1,Xe,ot,ct)}function dt(e){return ht(e,!0,Qe,lt,ut)}function ht(e,t,n,s,r){if(!_(e))return e;if(e.__v_raw\\u0026\\u0026(!t||!e.__v_isReactive))return e;const o=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case\\\"Object\\\":case\\\"Array\\\":return 1;case\\\"Map\\\":case\\\"Set\\\":case\\\"WeakMap\\\":case\\\"WeakSet\\\":return 2;default:return 0}}(S(i));var i;if(0===o)return e;const l=r.get(e);if(l)return l;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function vt(e){return gt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function gt(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function _t(e){return!!e\\u0026\\u0026!!e.__v_raw}function yt(e){const t=e\\u0026\\u0026e.__v_raw;return t?yt(t):e}function bt(e){return!u(e,\\\"__v_skip\\\")\\u0026\\u0026Object.isExtensible(e)\\u0026\\u0026D(e,\\\"__v_skip\\\",!0),e}const xt=e=\\u003e_(e)?pt(e):e,St=e=\\u003e_(e)?dt(e):e;function Ct(e){return!!e\\u0026\\u0026!0===e.__v_isRef}function wt(e){return At(e,!1)}function kt(e){return At(e,!0)}function At(e,t){return Ct(e)?e:new Et(e,t)}class Et{constructor(e,t){this.dep=new Te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:xt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||mt(e)||gt(e);e=n?e:yt(e),j(e,t)\\u0026\\u0026(this._rawValue=e,this._value=n?e:xt(e),this.dep.trigger())}}function Tt(e){return Ct(e)?e.value:e}function Ot(e){return v(e)?e():Tt(e)}const Ft={get:(e,t,n)=\\u003e\\\"__v_raw\\\"===t?e:Tt(Reflect.get(e,t,n)),set:(e,t,n,s)=\\u003e{const r=e[t];return Ct(r)\\u0026\\u0026!Ct(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Lt(e){return vt(e)?e:new Proxy(e,Ft)}function Mt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=Vt(e,n);return t}class jt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Fe.get(e);return n\\u0026\\u0026n.get(t)}(yt(this._object),this._key)}}class Pt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Dt(e,t,n){return Ct(e)?e:v(e)?new Pt(e):_(e)\\u0026\\u0026arguments.length\\u003e1?Vt(e,t,n):wt(e)}function Vt(e,t,n){const s=e[t];return Ct(s)?s:new jt(e,t,n)}class Rt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ae-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8\\u0026this.flags)\\u0026\\u0026ne!==this)return pe(this,!0),!0}get value(){const e=this.dep.track();return _e(this),e\\u0026\\u0026(e.version=this.dep.version),this._value}set value(e){this.setter\\u0026\\u0026this.setter(e)}}const $t={},It=new WeakMap;let Nt;function Ut(e,n,r=t){const{immediate:o,deep:i,once:l,scheduler:a,augmentJob:u,call:p}=r,d=e=\\u003ei?e:mt(e)||!1===i||0===i?Bt(e,1):Bt(e);let h,g,m,_,y=!1,b=!1;if(Ct(e)?(g=()=\\u003ee.value,y=mt(e)):vt(e)?(g=()=\\u003ed(e),y=!0):f(e)?(b=!0,y=e.some((e=\\u003evt(e)||mt(e))),g=()=\\u003ee.map((e=\\u003eCt(e)?e.value:vt(e)?d(e):v(e)?p?p(e,2):e():void 0))):g=v(e)?n?p?()=\\u003ep(e,2):e:()=\\u003e{if(m){Ce();try{m()}finally{we()}}const t=Nt;Nt=h;try{return p?p(e,3,[_]):e(_)}finally{Nt=t}}:s,n\\u0026\\u0026i){const e=g,t=!0===i?1/0:i;g=()=\\u003eBt(e(),t)}const x=oe(),S=()=\\u003e{h.stop(),x\\u0026\\u0026x.active\\u0026\\u0026c(x.effects,h)};if(l\\u0026\\u0026n){const e=n;n=(...t)=\\u003e{e(...t),S()}}let C=b?new Array(e.length).fill($t):$t;const w=e=\\u003e{if(1\\u0026h.flags\\u0026\\u0026(h.dirty||e))if(n){const e=h.run();if(i||y||(b?e.some(((e,t)=\\u003ej(e,C[t]))):j(e,C))){m\\u0026\\u0026m();const t=Nt;Nt=h;try{const t=[e,C===$t?void 0:b\\u0026\\u0026C[0]===$t?[]:C,_];C=e,p?p(n,3,t):n(...t)}finally{Nt=t}}}else h.run()};return u\\u0026\\u0026u(w),h=new ce(g),h.scheduler=a?()=\\u003ea(w,!1):w,_=e=\\u003efunction(e,t=!1,n=Nt){if(n){let t=It.get(n);t||It.set(n,t=[]),t.push(e)}}(e,!1,h),m=h.onStop=()=\\u003e{const e=It.get(h);if(e){if(p)p(e,4);else for(const t of e)t();It.delete(h)}},n?o?w(!0):C=h.run():a?a(w.bind(null,!0),!0):h.run(),S.pause=h.pause.bind(h),S.resume=h.resume.bind(h),S.stop=S,S}function Bt(e,t=1/0,n){if(t\\u003c=0||!_(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Ct(e))Bt(e.value,t,n);else if(f(e))for(let s=0;s\\u003ce.length;s++)Bt(e[s],t,n);else if(d(e)||p(e))e.forEach((e=\\u003e{Bt(e,t,n)}));else if(C(e)){for(const s in e)Bt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)\\u0026\\u0026Bt(e[s],t,n)}return e}\\n14 | /**\\n15 | * @vue/runtime-core v3.5.17\\n16 | * (c) 2018-present Yuxi (Evan) You and Vue contributors\",\n        \"description\": \"Detects network operations and potential data exfiltration patterns\",\n        \"file_path\": \"web_version/v2/assets/vue-DfGw76ex.js\",\n        \"issue_type\": \"python_network_operations\",\n        \"line_number\": 13,\n        \"line_snippet\": \"let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\u0026\\u0026te\\u0026\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e\\u003ct;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e\\u003ct;e++)this.effects[e].pause()}}resume(){if(this._active\\u0026\\u0026this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e\\u003ct;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e\\u003ct;e++)this.effects[e].resume()}}run(e){if(this._active){const t=te;try{return te=this,e()}finally{te=t}}}on(){1==++this._on\\u0026\\u0026(this.prevScope=te,te=this)}off(){this._on\\u003e0\\u0026\\u00260==--this._on\\u0026\\u0026(te=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t\\u003cn;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t\\u003cn;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t\\u003cn;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached\\u0026\\u0026this.parent\\u0026\\u0026!e){const e=this.parent.scopes.pop();e\\u0026\\u0026e!==this\\u0026\\u0026(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function re(e){return new se(e)}function oe(){return te}function ie(e,t=!1){te\\u0026\\u0026te.cleanups.push(e)}const le=new WeakSet;class ce{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,te\\u0026\\u0026te.active\\u0026\\u0026te.effects.push(this)}pause(){this.flags|=64}resume(){64\\u0026this.flags\\u0026\\u0026(this.flags\\u0026=-65,le.has(this)\\u0026\\u0026(le.delete(this),this.trigger()))}notify(){2\\u0026this.flags\\u0026\\u0026!(32\\u0026this.flags)||8\\u0026this.flags||pe(this)}run(){if(!(1\\u0026this.flags))return this.fn();this.flags|=2,ke(this),ve(this);const e=ne,t=xe;ne=this,xe=!0;try{return this.fn()}finally{ge(this),ne=e,xe=t,this.flags\\u0026=-3}}stop(){if(1\\u0026this.flags){for(let e=this.deps;e;e=e.nextDep)ye(e);this.deps=this.depsTail=void 0,ke(this),this.onStop\\u0026\\u0026this.onStop(),this.flags\\u0026=-2}}trigger(){64\\u0026this.flags?le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){me(this)\\u0026\\u0026this.run()}get dirty(){return me(this)}}let ae,ue,fe=0;function pe(e,t=!1){if(e.flags|=8,t)return e.next=ue,void(ue=e);e.next=ae,ae=e}function de(){fe++}function he(){if(--fe\\u003e0)return;if(ue){let e=ue;for(ue=void 0;e;){const t=e.next;e.next=void 0,e.flags\\u0026=-9,e=t}}let e;for(;ae;){let n=ae;for(ae=void 0;n;){const s=n.next;if(n.next=void 0,n.flags\\u0026=-9,1\\u0026n.flags)try{n.trigger()}catch(t){e||(e=t)}n=s}}if(e)throw e}function ve(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ge(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n\\u0026\\u0026(n=e),ye(s),be(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function me(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed\\u0026\\u0026(_e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _e(e){if(4\\u0026e.flags\\u0026\\u0026!(16\\u0026e.flags))return;if(e.flags\\u0026=-17,e.globalVersion===Ae)return;if(e.globalVersion=Ae,!e.isSSR\\u0026\\u0026128\\u0026e.flags\\u0026\\u0026(!e.deps\\u0026\\u0026!e._dirty||!me(e)))return;e.flags|=2;const t=e.dep,n=ne,s=xe;ne=e,xe=!0;try{ve(e);const n=e.fn(e._value);(0===t.version||j(n,e._value))\\u0026\\u0026(e.flags|=128,e._value=n,t.version++)}catch(r){throw t.version++,r}finally{ne=n,xe=s,ge(e),e.flags\\u0026=-3}}function ye(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s\\u0026\\u0026(s.nextSub=r,e.prevSub=void 0),r\\u0026\\u0026(r.prevSub=s,e.nextSub=void 0),n.subs===e\\u0026\\u0026(n.subs=s,!s\\u0026\\u0026n.computed)){n.computed.flags\\u0026=-5;for(let e=n.computed.deps;e;e=e.nextDep)ye(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function be(e){const{prevDep:t,nextDep:n}=e;t\\u0026\\u0026(t.nextDep=n,e.prevDep=void 0),n\\u0026\\u0026(n.prevDep=t,e.nextDep=void 0)}let xe=!0;const Se=[];function Ce(){Se.push(xe),xe=!1}function we(){const e=Se.pop();xe=void 0===e||e}function ke(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ne;ne=void 0;try{t()}finally{ne=e}}}let Ae=0;class Ee{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Te{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ne||!xe||ne===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ne)t=this.activeLink=new Ee(ne,this),ne.deps?(t.prevDep=ne.depsTail,ne.depsTail.nextDep=t,ne.depsTail=t):ne.deps=ne.depsTail=t,Oe(t);else if(-1===t.version\\u0026\\u0026(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep\\u0026\\u0026(t.prevDep.nextDep=e),t.prevDep=ne.depsTail,t.nextDep=void 0,ne.depsTail.nextDep=t,ne.depsTail=t,ne.deps===t\\u0026\\u0026(ne.deps=e)}return t}trigger(e){this.version++,Ae++,this.notify(e)}notify(e){de();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()\\u0026\\u0026e.sub.dep.notify()}finally{he()}}}function Oe(e){if(e.dep.sc++,4\\u0026e.sub.flags){const t=e.dep.computed;if(t\\u0026\\u0026!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Oe(e)}const n=e.dep.subs;n!==e\\u0026\\u0026(e.prevSub=n,n\\u0026\\u0026(n.nextSub=e)),e.dep.subs=e}}const Fe=new WeakMap,Le=Symbol(\\\"\\\"),Me=Symbol(\\\"\\\"),je=Symbol(\\\"\\\");function Pe(e,t,n){if(xe\\u0026\\u0026ne){let t=Fe.get(e);t||Fe.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Te),s.map=t,s.key=n),s.track()}}function De(e,t,n,s,r,o){const i=Fe.get(e);if(!i)return void Ae++;const l=e=\\u003e{e\\u0026\\u0026e.trigger()};if(de(),\\\"clear\\\"===t)i.forEach(l);else{const r=f(e),o=r\\u0026\\u0026w(n);if(r\\u0026\\u0026\\\"length\\\"===n){const e=Number(s);i.forEach(((t,n)=\\u003e{(\\\"length\\\"===n||n===je||!m(n)\\u0026\\u0026n\\u003e=e)\\u0026\\u0026l(t)}))}else switch((void 0!==n||i.has(void 0))\\u0026\\u0026l(i.get(n)),o\\u0026\\u0026l(i.get(je)),t){case\\\"add\\\":r?o\\u0026\\u0026l(i.get(\\\"length\\\")):(l(i.get(Le)),p(e)\\u0026\\u0026l(i.get(Me)));break;case\\\"delete\\\":r||(l(i.get(Le)),p(e)\\u0026\\u0026l(i.get(Me)));break;case\\\"set\\\":p(e)\\u0026\\u0026l(i.get(Le))}}he()}function Ve(e){const t=yt(e);return t===e?t:(Pe(t,0,je),mt(e)?t:t.map(xt))}function Re(e){return Pe(e=yt(e),0,je),e}const $e={__proto__:null,[Symbol.iterator](){return Ie(this,Symbol.iterator,xt)},concat(...e){return Ve(this).concat(...e.map((e=\\u003ef(e)?Ve(e):e)))},entries(){return Ie(this,\\\"entries\\\",(e=\\u003e(e[1]=xt(e[1]),e)))},every(e,t){return Ue(this,\\\"every\\\",e,t,void 0,arguments)},filter(e,t){return Ue(this,\\\"filter\\\",e,t,(e=\\u003ee.map(xt)),arguments)},find(e,t){return Ue(this,\\\"find\\\",e,t,xt,arguments)},findIndex(e,t){return Ue(this,\\\"findIndex\\\",e,t,void 0,arguments)},findLast(e,t){return Ue(this,\\\"findLast\\\",e,t,xt,arguments)},findLastIndex(e,t){return Ue(this,\\\"findLastIndex\\\",e,t,void 0,arguments)},forEach(e,t){return Ue(this,\\\"forEach\\\",e,t,void 0,arguments)},includes(...e){return We(this,\\\"includes\\\",e)},indexOf(...e){return We(this,\\\"indexOf\\\",e)},join(e){return Ve(this).join(e)},lastIndexOf(...e){return We(this,\\\"lastIndexOf\\\",e)},map(e,t){return Ue(this,\\\"map\\\",e,t,void 0,arguments)},pop(){return He(this,\\\"pop\\\")},push(...e){return He(this,\\\"push\\\",e)},reduce(e,...t){return Be(this,\\\"reduce\\\",e,t)},reduceRight(e,...t){return Be(this,\\\"reduceRight\\\",e,t)},shift(){return He(this,\\\"shift\\\")},some(e,t){return Ue(this,\\\"some\\\",e,t,void 0,arguments)},splice(...e){return He(this,\\\"splice\\\",e)},toReversed(){return Ve(this).toReversed()},toSorted(e){return Ve(this).toSorted(e)},toSpliced(...e){return Ve(this).toSpliced(...e)},unshift(...e){return He(this,\\\"unshift\\\",e)},values(){return Ie(this,\\\"values\\\",xt)}};function Ie(e,t,n){const s=Re(e),r=s[t]();return s===e||mt(e)||(r._next=r.next,r.next=()=\\u003e{const e=r._next();return e.value\\u0026\\u0026(e.value=n(e.value)),e}),r}const Ne=Array.prototype;function Ue(e,t,n,s,r,o){const i=Re(e),l=i!==e\\u0026\\u0026!mt(e),c=i[t];if(c!==Ne[t]){const t=c.apply(e,o);return l?xt(t):t}let a=n;i!==e\\u0026\\u0026(l?a=function(t,s){return n.call(this,xt(t),s,e)}:n.length\\u003e2\\u0026\\u0026(a=function(t,s){return n.call(this,t,s,e)}));const u=c.call(i,a,s);return l\\u0026\\u0026r?r(u):u}function Be(e,t,n,s){const r=Re(e);let o=n;return r!==e\\u0026\\u0026(mt(e)?n.length\\u003e3\\u0026\\u0026(o=function(t,s,r){return n.call(this,t,s,r,e)}):o=function(t,s,r){return n.call(this,t,xt(s),r,e)}),r[t](o,...s)}function We(e,t,n){const s=yt(e);Pe(s,0,je);const r=s[t](...n);return-1!==r\\u0026\\u0026!1!==r||!_t(n[0])?r:(n[0]=yt(n[0]),s[t](...n))}function He(e,t,n=[]){Ce(),de();const s=yt(e)[t].apply(e,n);return he(),we(),s}const Ke=e(\\\"__proto__,__v_isRef,__isVue\\\"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter((e=\\u003e\\\"arguments\\\"!==e\\u0026\\u0026\\\"caller\\\"!==e)).map((e=\\u003eSymbol[e])).filter(m));function qe(e){m(e)||(e=String(e));const t=yt(this);return Pe(t,0,e),t.hasOwnProperty(e)}class Ge{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(\\\"__v_skip\\\"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if(\\\"__v_isReactive\\\"===t)return!s;if(\\\"__v_isReadonly\\\"===t)return s;if(\\\"__v_isShallow\\\"===t)return r;if(\\\"__v_raw\\\"===t)return n===(s?r?ft:ut:r?at:ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=f(e);if(!s){let e;if(o\\u0026\\u0026(e=$e[t]))return e;if(\\\"hasOwnProperty\\\"===t)return qe}const i=Reflect.get(e,t,Ct(e)?e:n);return(m(t)?ze.has(t):Ke(t))?i:(s||Pe(e,0,t),r?i:Ct(i)?o\\u0026\\u0026w(t)?i:i.value:_(i)?s?dt(i):pt(i):i)}}class Je extends Ge{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=gt(r);if(mt(n)||gt(n)||(r=yt(r),n=yt(n)),!f(e)\\u0026\\u0026Ct(r)\\u0026\\u0026!Ct(n))return!t\\u0026\\u0026(r.value=n,!0)}const o=f(e)\\u0026\\u0026w(t)?Number(t)\\u003ce.length:u(e,t),i=Reflect.set(e,t,n,Ct(e)?e:s);return e===yt(s)\\u0026\\u0026(o?j(n,r)\\u0026\\u0026De(e,\\\"set\\\",t,n):De(e,\\\"add\\\",t,n)),i}deleteProperty(e,t){const n=u(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s\\u0026\\u0026n\\u0026\\u0026De(e,\\\"delete\\\",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return m(t)\\u0026\\u0026ze.has(t)||Pe(e,0,t),n}ownKeys(e){return Pe(e,0,f(e)?\\\"length\\\":Le),Reflect.ownKeys(e)}}class Ze extends Ge{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Xe=new Je,Qe=new Ze,Ye=new Je(!0),et=e=\\u003ee,tt=e=\\u003eReflect.getPrototypeOf(e);function nt(e){return function(...t){return\\\"delete\\\"!==e\\u0026\\u0026(\\\"clear\\\"===e?void 0:this)}}function st(e,t){const n={get(n){const s=this.__v_raw,r=yt(s),o=yt(n);e||(j(n,o)\\u0026\\u0026Pe(r,0,n),Pe(r,0,o));const{has:i}=tt(r),l=t?et:e?St:xt;return i.call(r,n)?l(s.get(n)):i.call(r,o)?l(s.get(o)):void(s!==r\\u0026\\u0026s.get(n))},get size(){const t=this.__v_raw;return!e\\u0026\\u0026Pe(yt(t),0,Le),Reflect.get(t,\\\"size\\\",t)},has(t){const n=this.__v_raw,s=yt(n),r=yt(t);return e||(j(t,r)\\u0026\\u0026Pe(s,0,t),Pe(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,o=r.__v_raw,i=yt(o),l=t?et:e?St:xt;return!e\\u0026\\u0026Pe(i,0,Le),o.forEach(((e,t)=\\u003en.call(s,l(e),l(t),r)))}};l(n,e?{add:nt(\\\"add\\\"),set:nt(\\\"set\\\"),delete:nt(\\\"delete\\\"),clear:nt(\\\"clear\\\")}:{add(e){t||mt(e)||gt(e)||(e=yt(e));const n=yt(this);return tt(n).has.call(n,e)||(n.add(e),De(n,\\\"add\\\",e,e)),this},set(e,n){t||mt(n)||gt(n)||(n=yt(n));const s=yt(this),{has:r,get:o}=tt(s);let i=r.call(s,e);i||(e=yt(e),i=r.call(s,e));const l=o.call(s,e);return s.set(e,n),i?j(n,l)\\u0026\\u0026De(s,\\\"set\\\",e,n):De(s,\\\"add\\\",e,n),this},delete(e){const t=yt(this),{has:n,get:s}=tt(t);let r=n.call(t,e);r||(e=yt(e),r=n.call(t,e)),s\\u0026\\u0026s.call(t,e);const o=t.delete(e);return r\\u0026\\u0026De(t,\\\"delete\\\",e,void 0),o},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t\\u0026\\u0026De(e,\\\"clear\\\",void 0,void 0),n}});return[\\\"keys\\\",\\\"values\\\",\\\"entries\\\",Symbol.iterator].forEach((s=\\u003e{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,o=yt(r),i=p(o),l=\\\"entries\\\"===e||e===Symbol.iterator\\u0026\\u0026i,c=\\\"keys\\\"===e\\u0026\\u0026i,a=r[e](...s),u=n?et:t?St:xt;return!t\\u0026\\u0026Pe(o,0,c?Me:Le),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(s,e,t)})),n}function rt(e,t){const n=st(e,t);return(t,s,r)=\\u003e\\\"__v_isReactive\\\"===s?!e:\\\"__v_isReadonly\\\"===s?e:\\\"__v_raw\\\"===s?t:Reflect.get(u(n,s)\\u0026\\u0026s in t?n:t,s,r)}const ot={get:rt(!1,!1)},it={get:rt(!1,!0)},lt={get:rt(!0,!1)},ct=new WeakMap,at=new WeakMap,ut=new WeakMap,ft=new WeakMap;function pt(e){return gt(e)?e:ht(e,!1,Xe,ot,ct)}function dt(e){return ht(e,!0,Qe,lt,ut)}function ht(e,t,n,s,r){if(!_(e))return e;if(e.__v_raw\\u0026\\u0026(!t||!e.__v_isReactive))return e;const o=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case\\\"Object\\\":case\\\"Array\\\":return 1;case\\\"Map\\\":case\\\"Set\\\":case\\\"WeakMap\\\":case\\\"WeakSet\\\":return 2;default:return 0}}(S(i));var i;if(0===o)return e;const l=r.get(e);if(l)return l;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function vt(e){return gt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function gt(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function _t(e){return!!e\\u0026\\u0026!!e.__v_raw}function yt(e){const t=e\\u0026\\u0026e.__v_raw;return t?yt(t):e}function bt(e){return!u(e,\\\"__v_skip\\\")\\u0026\\u0026Object.isExtensible(e)\\u0026\\u0026D(e,\\\"__v_skip\\\",!0),e}const xt=e=\\u003e_(e)?pt(e):e,St=e=\\u003e_(e)?dt(e):e;function Ct(e){return!!e\\u0026\\u0026!0===e.__v_isRef}function wt(e){return At(e,!1)}function kt(e){return At(e,!0)}function At(e,t){return Ct(e)?e:new Et(e,t)}class Et{constructor(e,t){this.dep=new Te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:xt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||mt(e)||gt(e);e=n?e:yt(e),j(e,t)\\u0026\\u0026(this._rawValue=e,this._value=n?e:xt(e),this.dep.trigger())}}function Tt(e){return Ct(e)?e.value:e}function Ot(e){return v(e)?e():Tt(e)}const Ft={get:(e,t,n)=\\u003e\\\"__v_raw\\\"===t?e:Tt(Reflect.get(e,t,n)),set:(e,t,n,s)=\\u003e{const r=e[t];return Ct(r)\\u0026\\u0026!Ct(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Lt(e){return vt(e)?e:new Proxy(e,Ft)}function Mt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=Vt(e,n);return t}class jt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Fe.get(e);return n\\u0026\\u0026n.get(t)}(yt(this._object),this._key)}}class Pt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Dt(e,t,n){return Ct(e)?e:v(e)?new Pt(e):_(e)\\u0026\\u0026arguments.length\\u003e1?Vt(e,t,n):wt(e)}function Vt(e,t,n){const s=e[t];return Ct(s)?s:new jt(e,t,n)}class Rt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ae-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8\\u0026this.flags)\\u0026\\u0026ne!==this)return pe(this,!0),!0}get value(){const e=this.dep.track();return _e(this),e\\u0026\\u0026(e.version=this.dep.version),this._value}set value(e){this.setter\\u0026\\u0026this.setter(e)}}const $t={},It=new WeakMap;let Nt;function Ut(e,n,r=t){const{immediate:o,deep:i,once:l,scheduler:a,augmentJob:u,call:p}=r,d=e=\\u003ei?e:mt(e)||!1===i||0===i?Bt(e,1):Bt(e);let h,g,m,_,y=!1,b=!1;if(Ct(e)?(g=()=\\u003ee.value,y=mt(e)):vt(e)?(g=()=\\u003ed(e),y=!0):f(e)?(b=!0,y=e.some((e=\\u003evt(e)||mt(e))),g=()=\\u003ee.map((e=\\u003eCt(e)?e.value:vt(e)?d(e):v(e)?p?p(e,2):e():void 0))):g=v(e)?n?p?()=\\u003ep(e,2):e:()=\\u003e{if(m){Ce();try{m()}finally{we()}}const t=Nt;Nt=h;try{return p?p(e,3,[_]):e(_)}finally{Nt=t}}:s,n\\u0026\\u0026i){const e=g,t=!0===i?1/0:i;g=()=\\u003eBt(e(),t)}const x=oe(),S=()=\\u003e{h.stop(),x\\u0026\\u0026x.active\\u0026\\u0026c(x.effects,h)};if(l\\u0026\\u0026n){const e=n;n=(...t)=\\u003e{e(...t),S()}}let C=b?new Array(e.length).fill($t):$t;const w=e=\\u003e{if(1\\u0026h.flags\\u0026\\u0026(h.dirty||e))if(n){const e=h.run();if(i||y||(b?e.some(((e,t)=\\u003ej(e,C[t]))):j(e,C))){m\\u0026\\u0026m();const t=Nt;Nt=h;try{const t=[e,C===$t?void 0:b\\u0026\\u0026C[0]===$t?[]:C,_];C=e,p?p(n,3,t):n(...t)}finally{Nt=t}}}else h.run()};return u\\u0026\\u0026u(w),h=new ce(g),h.scheduler=a?()=\\u003ea(w,!1):w,_=e=\\u003efunction(e,t=!1,n=Nt){if(n){let t=It.get(n);t||It.set(n,t=[]),t.push(e)}}(e,!1,h),m=h.onStop=()=\\u003e{const e=It.get(h);if(e){if(p)p(e,4);else for(const t of e)t();It.delete(h)}},n?o?w(!0):C=h.run():a?a(w.bind(null,!0),!0):h.run(),S.pause=h.pause.bind(h),S.resume=h.resume.bind(h),S.stop=S,S}function Bt(e,t=1/0,n){if(t\\u003c=0||!_(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Ct(e))Bt(e.value,t,n);else if(f(e))for(let s=0;s\\u003ce.length;s++)Bt(e[s],t,n);else if(d(e)||p(e))e.forEach((e=\\u003e{Bt(e,t,n)}));else if(C(e)){for(const s in e)Bt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)\\u0026\\u0026Bt(e[s],t,n)}return e}\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$socket4\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"web_version/v2/assets/vue-DfGw76ex.js\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$socket4\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\u0026\\u0026te\\u0026\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this\",\n                                    \"line_number\": 13,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 15797\n                                },\n                                {\n                                    \"line\": \"let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\u0026\\u0026te\\u0026\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this\",\n                                    \"line_number\": 13,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 15839\n                                },\n                                {\n                                    \"line\": \"let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\u0026\\u0026te\\u0026\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this\",\n                                    \"line_number\": 13,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 15865\n                                },\n                                {\n                                    \"line\": \"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\u0026\\u0026y(r)\\u0026\\u0026r.catch((e=\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\",\n                                    \"line_number\": 18,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 868\n                                },\n                                {\n                                    \"line\": \"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\u0026\\u0026y(r)\\u0026\\u0026r.catch((e=\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\",\n                                    \"line_number\": 18,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 12431\n                                },\n                                {\n                                    \"line\": \"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\u0026\\u0026y(r)\\u0026\\u0026r.catch((e=\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\",\n                                    \"line_number\": 18,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 12459\n                                },\n                                {\n                                    \"line\": \"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\u0026\\u0026y(r)\\u0026\\u0026r.catch((e=\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\",\n                                    \"line_number\": 18,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 14428\n                                },\n                                {\n                                    \"line\": \"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\u0026\\u0026y(r)\\u0026\\u0026r.catch((e=\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\",\n                                    \"line_number\": 18,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 14535\n                                },\n                                {\n                                    \"line\": \"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\u0026\\u0026y(r)\\u0026\\u0026r.catch((e=\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\",\n                                    \"line_number\": 18,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 14560\n                                },\n                                {\n                                    \"line\": \"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\u0026\\u0026y(r)\\u0026\\u0026r.catch((e=\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\",\n                                    \"line_number\": 18,\n                                    \"matched_data\": \".bind(\",\n                                    \"matched_length\": 6,\n                                    \"offset\": 14596\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1041 Exfiltration Over C2 Channel\",\n                \"attack_id2\": \"T1048 Exfiltration Over Alternative Protocol\",\n                \"category\": \"Exfiltration\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects network operations and potential data exfiltration patterns\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1041/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\"\n        ],\n        \"code_snippet\": \"1198 |         # -c:v libvpx-vp9 =\\u003e VP9 encoder\\n1199 |         # -pix_fmt yuva420p =\\u003e alpha-enabled pixel format\\n1200 |         # -auto-alt-ref 0 =\\u003e helps preserve alpha frames (libvpx quirk)\\n1201 |         ffmpeg_cmd = [\\n1202 |             \\\"ffmpeg\\\", \\\"-y\\\",\\n1203 |             \\\"-framerate\\\", str(fps),\\n1204 |             \\\"-i\\\", os.path.join(tmpdir, \\\"%06d.png\\\"),\",\n        \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n        \"file_path\": \"py/modules/ben/model.py\",\n        \"issue_type\": \"python_url_command_execution\",\n        \"line_number\": 1201,\n        \"line_snippet\": \"ffmpeg_cmd = [\",\n        \"metadata\": {\n            \"attack_id\": [\n                \"T1071.001 Web Protocols\",\n                \"T1105 Ingress Tool Transfer\"\n            ],\n            \"confidence\": 75,\n            \"matched_patterns\": [\n                \"$media_list_assign_indirect\"\n            ],\n            \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n            \"yara_meta\": {\n                \"attack_id1\": \"T1071.001 Web Protocols\",\n                \"attack_id2\": \"T1105 Ingress Tool Transfer\",\n                \"category\": \"SSRF / Execution\",\n                \"confidence_note\": \"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\",\n                \"date\": \"2026-02-26\",\n                \"description\": \"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1071/001/\",\n                \"severity\": \"4\",\n                \"traceability\": \"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\",\n                \"version\": \"1.0\"\n            },\n            \"yara_rule\": \"python_url_command_execution\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-folder-access\",\n            \"system-modification\"\n        ],\n        \"code_snippet\": \"502 | import platform\\n503 | class pipeXYPlotAdvanced:\\n504 |     if platform.system() == \\\"Windows\\\":\\n505 |         system_root = os.environ.get(\\\"SystemRoot\\\")\\n506 |         user_root = os.environ.get(\\\"USERPROFILE\\\")\\n507 |         font_dir = os.path.join(system_root, \\\"Fonts\\\") if system_root else None\\n508 |         user_font_dir = os.path.join(user_root, \\\"AppData\\\",\\\"Local\\\",\\\"Microsoft\\\",\\\"Windows\\\", \\\"Fonts\\\") if user_root else None\",\n        \"description\": \"Detects environment variable manipulation and reading\",\n        \"file_path\": \"py/nodes/pipe.py\",\n        \"issue_type\": \"python_environment_manipulation\",\n        \"line_number\": 505,\n        \"line_snippet\": \"system_root = os.environ.get(\\\"SystemRoot\\\")\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$env_read2\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"py/nodes/pipe.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$env_read2\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        system_root = os.environ.get(\\\"SystemRoot\\\")\\n\",\n                                    \"line_number\": 505,\n                                    \"matched_data\": \"os.environ.get(\",\n                                    \"matched_length\": 15,\n                                    \"offset\": 22\n                                },\n                                {\n                                    \"line\": \"        user_root = os.environ.get(\\\"USERPROFILE\\\")\\n\",\n                                    \"line_number\": 506,\n                                    \"matched_data\": \"os.environ.get(\",\n                                    \"matched_length\": 15,\n                                    \"offset\": 20\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1574.007 Environment Variable Hijacking\",\n                \"category\": \"Defense Evasion\",\n                \"date\": \"2025-06-30\",\n                \"description\": \"Detects environment variable manipulation and reading\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1574/007/\",\n                \"severity\": \"3\",\n                \"version\": \"1.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [],\n        \"code_snippet\": \"630 |         preset += load_preset(\\\"mmb-preset.txt\\\")\\n631 |         preset += load_preset(\\\"mmb-preset.custom.txt\\\")\\n632 | \\n633 |         default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n634 |         return {\\n635 |             \\\"required\\\": {\\n636 |                 \\\"ckpt_name_1\\\": (checkpoints,),\",\n        \"description\": \"Detects minified Python code using optimized heuristics for semicolon density and import compression\",\n        \"file_path\": \"py/nodes/xyplot.py\",\n        \"issue_type\": \"python_minified_code\",\n        \"line_number\": 633,\n        \"line_snippet\": \"default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\",\n        \"metadata\": {\n            \"confidence\": 90,\n            \"matched_patterns\": [\n                \"$semicolon_5\"\n            ],\n            \"yara_matches\": [\n                {\n                    \"filepath\": \"py/nodes/xyplot.py\",\n                    \"strings\": [\n                        {\n                            \"identifier\": \"$semicolon_5\",\n                            \"instances\": [\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 77,\n                                    \"offset\": 0\n                                },\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \"       default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 76,\n                                    \"offset\": 1\n                                },\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \"      default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 75,\n                                    \"offset\": 2\n                                },\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \"     default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 74,\n                                    \"offset\": 3\n                                },\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \"    default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 73,\n                                    \"offset\": 4\n                                },\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \"   default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 72,\n                                    \"offset\": 5\n                                },\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \"  default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 71,\n                                    \"offset\": 6\n                                },\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \" default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 70,\n                                    \"offset\": 7\n                                },\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \"default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 69,\n                                    \"offset\": 8\n                                },\n                                {\n                                    \"line\": \"        default_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1; \\\"\\n\",\n                                    \"line_number\": 633,\n                                    \"matched_data\": \"efault_vectors = \\\"1,0,0; \\\\n0,1,0; \\\\n0,0,1; \\\\n1,1,0; \\\\n1,0,1; \\\\n0,1,1\",\n                                    \"matched_length\": 68,\n                                    \"offset\": 9\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"yara_meta\": {\n                \"attack_id1\": \"T1027 Obfuscated Files or Information\",\n                \"attack_id2\": \"T1027.002 Software Packing\",\n                \"author\": \"Comfy Security Team\",\n                \"category\": \"Obfuscation\",\n                \"date\": \"2025-11-19\",\n                \"description\": \"Detects minified Python code using optimized heuristics for semicolon density and import compression\",\n                \"optimization\": \"Removed unbounded regex patterns to prevent OOM issues\",\n                \"reference\": \"https://attack.mitre.org/techniques/T1027/\",\n                \"severity\": \"4\",\n                \"version\": \"2.0\"\n            }\n        },\n        \"recommendation\": \"\",\n        \"scanner\": \"yara_scan\",\n        \"severity\": \"info\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\",\n            \"system-modification\"\n        ],\n        \"code_snippet\": \"69 |         import subprocess\\n70 |         package_command = package + '==' + v if v is not None else package\\n71 |         PromptServer.instance.send_sync(\\\"easyuse-toast\\\", {'content': f\\\"Installing {package_command}...\\\", 'duration': 5000})\\n72 |         result = subprocess.run([sys.executable, '-s', '-m', 'pip', 'install', package_command], capture_output=True, text=True)\\n73 |         if result.returncode == 0:\\n74 |             PromptServer.instance.send_sync(\\\"easyuse-toast\\\", {'content': f\\\"{package} installed successfully\\\", 'type': 'success', 'duration': 5000})\\n75 |             print(f\\\"Package {package} installed successfully\\\")\",\n        \"description\": \"Subprocess call with pip install detected\",\n        \"file_path\": \"py/libs/utils.py\",\n        \"issue_type\": \"subprocess-pip-install\",\n        \"line_number\": 72,\n        \"line_snippet\": \"result = subprocess.run([sys.executable, '-s', '-m', 'pip', 'install', package_command], capture_output=True, text=True)\",\n        \"metadata\": {\n            \"pylint_category\": \"W\",\n            \"pylint_column\": 17,\n            \"pylint_symbol\": \"subprocess-pip-install\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"pylint-scanner\",\n        \"severity\": \"high\"\n    },\n    {\n        \"admin_tags\": [\n            \"any-code-execute\",\n            \"system-modification\"\n        ],\n        \"code_snippet\": \"210 |                         import cpm_kernels\\n211 |                     except ImportError:\\n212 |                         print(\\\"Installing cpm_kernels...\\\")\\n213 |                         subprocess.run([sys.executable, \\\"-m\\\", \\\"pip\\\", \\\"install\\\", \\\"cpm_kernels\\\"], check=True)\\n214 |                         pass\\n215 |                     self.text_encoder.quantize(4)\\n216 |                 elif '8bit' in model_path:\",\n        \"description\": \"Subprocess call with pip install detected\",\n        \"file_path\": \"py/modules/kolors/loader.py\",\n        \"issue_type\": \"subprocess-pip-install\",\n        \"line_number\": 213,\n        \"line_snippet\": \"subprocess.run([sys.executable, \\\"-m\\\", \\\"pip\\\", \\\"install\\\", \\\"cpm_kernels\\\"], check=True)\",\n        \"metadata\": {\n            \"pylint_category\": \"W\",\n            \"pylint_column\": 24,\n            \"pylint_symbol\": \"subprocess-pip-install\"\n        },\n        \"recommendation\": null,\n        \"scanner\": \"pylint-scanner\",\n        \"severity\": \"high\"\n    }\n]","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"tags_admin":[],"version":"1.4.1"},{"changelog":"","comfy_node_extract_status":"pending","createdAt":"2026-09-03T07:59:54.488997Z","dependencies":["diffusers","accelerate","clip_interrogator","sentencepiece","lark","onnxruntime","spandrel","opencv-python-headless","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.4.0/node.zip","id":"4649edf9-4e46-45af-a6b3-68e2f65ce284","node_id":"comfyui-easy-use","status":"NodeVersionStatusBanned","status_reason":"{\"message\": \"policy-v0.3: arbitrary code execution (unauthenticated code/install-run endpoint) \\u2014 evaluate_formula eval()s the `value` String widget under a {'__builtins__': {}} sandbox that is a known bypassable escape; eval runs before the float()/int() coercion, so arbitrary Python executes from an unauthenticated /prompt-reachable node widget. (py/libs/math.py:69) [Rule 13]\", \"by\": \"drltdata@comfy.org\", \"statusHistory\": [{\"status\": \"NodeVersionStatusFlagged\", \"message\": \"[\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"43 | # inpaint\\\\n44 | INPAINT_DIR = os.path.join(folder_paths.models_dir, \\\\\\\"inpaint\\\\\\\")\\\\n45 | FOOOCUS_STYLES_DIR = os.path.join(Path(__file__).parent.parent, \\\\\\\"styles\\\\\\\")\\\\n46 | FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\\n47 | FOOOCUS_INPAINT_HEAD = {\\\\n48 |     \\\\\\\"fooocus_inpaint_head\\\\\\\": {\\\\n49 |         \\\\\\\"model_url\\\\\\\": \\\\\\\"https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/fooocus_inpaint_head.pth\\\\\\\"\\\",\\n        \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n        \\\"file_path\\\": \\\"py/config.py\\\",\\n        \\\"issue_type\\\": \\\"contains_blacklisted_url\\\",\\n        \\\"line_number\\\": 46,\\n        \\\"line_snippet\\\": \\\"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$blacklisted_url4_ascii_44\\\",\\n                \\\"$blacklisted_url4_xor_44\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"py/config.py\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_ascii_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\\n\\\",\\n                                    \\\"line_number\\\": 46,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 31\\n                                }\\n                            ]\\n                        },\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_xor_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\\n\\\",\\n                                    \\\"line_number\\\": 46,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 31\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1102 Web Service\\\",\\n                \\\"category\\\": \\\"C2\\\",\\n                \\\"date\\\": \\\"12.08.2024\\\",\\n                \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n                \\\"observable_refs\\\": \\\"url\\\",\\n                \\\"reference1\\\": \\\"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\\\",\\n                \\\"reference2\\\": \\\"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\\\",\\n                \\\"severity\\\": \\\"1\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"445 |         max_float_value = 1.95\\\\n446 |         prompt_path = os.path.join(RESOURCES_DIR, 'portrait_prompt.json')\\\\n447 |         if not os.path.exists(prompt_path):\\\\n448 |             response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\\n449 |             temp_prompt = json.loads(response.read())\\\\n450 |             prompt_serialized = json.dumps(temp_prompt, indent=4)\\\\n451 |             with open(prompt_path, \\\\\\\"w\\\\\\\") as f:\\\",\\n        \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n        \\\"file_path\\\": \\\"py/nodes/prompt.py\\\",\\n        \\\"issue_type\\\": \\\"contains_blacklisted_url\\\",\\n        \\\"line_number\\\": 448,\\n        \\\"line_snippet\\\": \\\"response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$blacklisted_url4_ascii_44\\\",\\n                \\\"$blacklisted_url4_xor_44\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"py/nodes/prompt.py\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_ascii_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"            response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\\n\\\",\\n                                    \\\"line_number\\\": 448,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 81\\n                                }\\n                            ]\\n                        },\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_xor_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"            response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\\n\\\",\\n                                    \\\"line_number\\\": 448,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 81\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1102 Web Service\\\",\\n                \\\"category\\\": \\\"C2\\\",\\n                \\\"date\\\": \\\"12.08.2024\\\",\\n                \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n                \\\"observable_refs\\\": \\\"url\\\",\\n                \\\"reference1\\\": \\\"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\\\",\\n                \\\"reference2\\\": \\\"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\\\",\\n                \\\"severity\\\": \\\"1\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"obfuscated-code\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"79 |     return rlist\\\\n80 | }\\\\n81 | \\\\n82 | const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\\n83 | const empty_img = \\\\\\\"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QNLaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA5LjEtYzAwMSA3OS4xNDYyODk5Nzc3LCAyMDIzLzA2LzI1LTIzOjU3OjE0ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoMjAyMzA5MDUubS4yMzE2IDk3OWM4NmQpICAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjA3NEU1QzNCNUJBMTFFRUExMUVDNkZDRjI0NzlBN0QiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjA3NEU1QzRCNUJBMTFFRUExMUVDNkZDRjI0NzlBN0QiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGMDc0RTVDMUI1QkExMUVFQTExRUM2RkNGMjQ3OUE3RCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGMDc0RTVDMkI1QkExMUVFQTExRUM2RkNGMjQ3OUE3RCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/uAA5BZG9iZQBkwAAAAAH/2wCEAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx8BBwcHDQwNGBAQGBoVERUaHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fH//AABEIAIAAgAMBEQACEQEDEQH/xACLAAEAAgMBAQEAAAAAAAAAAAAABAUCAwYBBwgBAQADAQEBAAAAAAAAAAAAAAABAgMEBQYQAAEEAgECAwUHAwUAAAAAAAEAAgMEEQUhEgYxEwdBYSIyFFFxgVJyIxWRoTOxwdFiJBEBAAICAQQBBAIDAAAAAAAAAAECEQMxIUESBBOB0SIyUXGCIwX/2gAMAwEAAhEDEQA/AP1SgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICDXJYgj+d4afsVopM8KWvEcy8it1pXdMcjXO/Lnn+im2u0cwV2VniW1UXEBAQEBAQEBAQEBAQRNlc+mgyDh7zhv+5WunX5Sw37fCHM2dh48r06ank7N6rn2Ja7qa4hw5BBwQV010uK+/DsO29v/J68SOI86Jxjl95HIP4gryPc0fHfHaXu+j7Py68zzHSVquV2iAgICAgICAgICDyTr6HdHz4PTnwypjnqic46OauNbY6mGX99p+L8w9xaeV6OufHt0eXtr59M9VFb194E9LmuH3kf6rv17avO2ets7YVcuuuk/uOa3PgBlxP4BdMbq9nLPqbJ5xDbSM9azFXpyujuSO+Bo5kcf0NPyj25We2YtEzaPxdfr6519Kz+UvqEIlELBKQZQ0eYRwC7HOPxXzVsZ6cPpK5x15ZKEiAgICAgICAgICCNc1tG40CzA2XHg4j4h9zhyFpr22p+s4Z7NNL/ALRlTX+1dVFBJOJrcTI2lxZHYcBx+sldWv3bzOMVn6fZy39OkRnNo+v3aoOx9JOxks8tqwHDPS+1IW8+IzGWZVrf9DZHSMR/j9yvo656zMz9V1rdLqdYwsoVIqwd87mNAc79Tvmd+JXJt332ftMy6temlP1jCasmggICAgICAgICAgwlmiib1SPDB7zhWrWZ4VtaI5QXb2l5ojYHvLjjIGB/dbR61sZlhPtVziFb3PYdd0luCvAZbXludVZ1huZQPgyTx4/atvWj4rxaZ6d/6Ye1/t1zSI6zx/bzti5YqaOpBeg8u41n/oa14cA4ccH7lPs1jZebVn8eyPUtOrXFbR+XdYx9xa90pjeXROaSCXDj+oysZ9S+Mx1bR7uvOJ6LGOWKVgfG8PafAtOQueazHLqraJjMMlCRAQEBAQEBAQRLNp4HTFx/2/4WtKR3Y32T2Udl8j3knk/aeSu6kREPPvaZlpY3DmyY8DyrzPZWv8tkvmFv7bg12RyR1DGeeMj2KnjE9JaeUx1hi1sgaet/U7JIOMcE8Dj7FMREcK2zPKMasr5XO6fmOVt5xEOadVplYU45IAOhxa72kLm2TFuXXqrNeF1WtlwDZeHfmHguO+vHDupszylLJsICAgICAg8cMjCQiYR5IVpFmc1Q5qLXHPgfbhbV2MLaYlqNQAYA4V/kV+PDA1fcp81fjYurtYMu4CmLZRNYhtZWBAI8CqzdaKN8df3LObtIokxwe5ZzZrFUloIGFnLWHqhIgICAgICAgxMbSpyjDAwAq3kr4MTWCnzR4MX02PGHDISNmETqieWba7QABwB4KJumKNgjaFXK0VZYChYQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEHzvuv1G7k1W9s6/Xamtaq15oaonmnsCR008HntaI4K8/s4HOeEGXZXqTud7uqtG7r6kNa5HdMU9aaw9zZde+FkrHsnr1+M2MZBPIKDRe9cO2K2mjs/V0m7X61lWzq32W+ZFEbfkSSO4B+GL9zw4QWm99TqFVmjsaSu7fUtxeNM2aTmSMBbHI9zWHqHVJlnDTxjPKCJL6sea502t1D7Ouhr0rNqxNM2CSNuwnkgjAi6ZOotdEc/Egibf1j/j+7JNL9DWdWg84TWn2ywtdFKyMZb5Tg0nLyG55x48IJ3bXqe/ea/a26dFtyTXtldDUqyOdNL5VqaDHS5gwXRxMe3xz1Y9iDKP1Sa7uefUnR7TyYqUVoEU5jY6pJZIz1RY4ZiMYd7TkexBA749Wr2gtCKlrIpGs17NjK29LLWmPmMsyiFkbIZsPEdKQu6y0eAQWdD1E2L93W1tzRyCDY3paev2NaxVlhIjidMfMb5vmse1kbi9pZ7MeKDt0BAQEBAQfEPU+lFY2++q2K1uSSezTnrReVsTTmiZVYHOd9LVuQyubIwANkbxz4FA7FsQ0NrrLNXX7N0eo1+3darGDYPjb5j6prxVRajjDetsRAjj4yM4CDre2uxO7q2hqtm7nua6w9rp5tfXgoSxwyTOMr42PlrPe4Nc8jJJQRDb3Oz1fYFrcV7As0mu3u7nbWkBZ9LSfG5nlxs/yySWRiNozwcBBx9EXadGTXz62+LG41+jZS6adhzS6vfnlkEjgzEZax7T8ePFBu3nbPdUXqJZsw6S5cqbCW1YdIY2lxhhfEGMjfHtoG9HxucwPEZy4/A7kMC87aq2Kmv7mdvxuqGmklFjUU4G2Yp21rdyW00t+kJkFl88pY9vDgwNDvEoK9np73FBcHdkrt2+rZd5FjQx7O0b8WvbzDKZhN1SSse573QdeAHkN+Ichj3p2rBvZq9vUnY2tcNQPqpZYZpJ44GxXqzHdVlzZZpib73mLHViI85c1BZ6OpsIe/6/XSuntevdsz6+8+pI0/yM1dtWVr2Z644P8rmyuj6S53jxkh9aQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBB/9k=\\\\\\\"\\\\n84 | async function displayImage(imgName, styleName) {\\\\n85 |     var e = event || window.event;\\\",\\n        \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n        \\\"file_path\\\": \\\"web_version/v1/js/easy/easySelector.js\\\",\\n        \\\"issue_type\\\": \\\"contains_blacklisted_url\\\",\\n        \\\"line_number\\\": 82,\\n        \\\"line_snippet\\\": \\\"const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$blacklisted_url4_ascii_44\\\",\\n                \\\"$blacklisted_url4_xor_44\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v1/js/easy/easySelector.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_ascii_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 82,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 31\\n                                }\\n                            ]\\n                        },\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_xor_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 82,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 31\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1102 Web Service\\\",\\n                \\\"category\\\": \\\"C2\\\",\\n                \\\"date\\\": \\\"12.08.2024\\\",\\n                \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n                \\\"observable_refs\\\": \\\"url\\\",\\n                \\\"reference1\\\": \\\"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\\\",\\n                \\\"reference2\\\": \\\"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\\\",\\n                \\\"severity\\\": \\\"1\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"70 |         env = dict(safe_dict)\\\\n71 |         env.update({k: float(v) for k, v in vals.items()})\\\\n72 |         try:\\\\n73 |             result = eval(formula, {\\\\\\\"__builtins__\\\\\\\": {}}, env)\\\\n74 |             return float(result)\\\\n75 |         except Exception as e:\\\\n76 |             raise ValueError(f\\\\\\\"\\u516c\\u5f0f\\u8ba1\\u7b97\\u9519\\u8bef: {str(e)}\\\\\\\")\\\",\\n        \\\"description\\\": \\\"Detects dynamic code execution patterns in Python including eval, exec, and compile with exec mode\\\",\\n        \\\"file_path\\\": \\\"py/libs/math.py\\\",\\n        \\\"issue_type\\\": \\\"python_dynamic_execution\\\",\\n        \\\"line_number\\\": 73,\\n        \\\"line_snippet\\\": \\\"result = eval(formula, {\\\\\\\"__builtins__\\\\\\\": {}}, env)\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1059.006 Python\\\"\\n            ],\\n            \\\"confidence\\\": 95,\\n            \\\"matched_patterns\\\": [\\n                \\\"$eval_direct\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/006/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1059.006 Python\\\",\\n                \\\"category\\\": \\\"Execution\\\",\\n                \\\"confidence_note\\\": \\\"Patterns ending with _direct/_builtins have high confidence (90-100%). Patterns ending with _method have medium confidence (50-70%) due to potential false positives from legitimate method calls.\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects dynamic code execution patterns in Python including eval, exec, and compile with exec mode\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/006/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"version\\\": \\\"1.1\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_dynamic_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1016 |                     content = \\\\\\\"\\\\\\\\n\\\\\\\".join(content.split(\\\\\\\"\\\\\\\\n\\\\\\\")[1:-1])\\\\n1017 |                     def tool_call(**kwargs):\\\\n1018 |                         return kwargs\\\\n1019 |                     parameters = eval(content)\\\\n1020 |                     content = {\\\\\\\"name\\\\\\\": metadata.strip(), \\\\\\\"parameters\\\\\\\": parameters}\\\\n1021 |                 else:\\\\n1022 |                     content = {\\\\\\\"name\\\\\\\": metadata.strip(), \\\\\\\"content\\\\\\\": content}\\\",\\n        \\\"description\\\": \\\"Detects dynamic code execution patterns in Python including eval, exec, and compile with exec mode\\\",\\n        \\\"file_path\\\": \\\"py/modules/kolors/chatglm/modeling_chatglm.py\\\",\\n        \\\"issue_type\\\": \\\"python_dynamic_execution\\\",\\n        \\\"line_number\\\": 1019,\\n        \\\"line_snippet\\\": \\\"parameters = eval(content)\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1059.006 Python\\\"\\n            ],\\n            \\\"confidence\\\": 95,\\n            \\\"matched_patterns\\\": [\\n                \\\"$eval_direct\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/006/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1059.006 Python\\\",\\n                \\\"category\\\": \\\"Execution\\\",\\n                \\\"confidence_note\\\": \\\"Patterns ending with _direct/_builtins have high confidence (90-100%). Patterns ending with _method have medium confidence (50-70%) due to potential false positives from legitimate method calls.\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects dynamic code execution patterns in Python including eval, exec, and compile with exec mode\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/006/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"version\\\": \\\"1.1\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_dynamic_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"69 |         import subprocess\\\\n70 |         package_command = package + '==' + v if v is not None else package\\\\n71 |         PromptServer.instance.send_sync(\\\\\\\"easyuse-toast\\\\\\\", {'content': f\\\\\\\"Installing {package_command}...\\\\\\\", 'duration': 5000})\\\\n72 |         result = subprocess.run([sys.executable, '-s', '-m', 'pip', 'install', package_command], capture_output=True, text=True)\\\\n73 |         if result.returncode == 0:\\\\n74 |             PromptServer.instance.send_sync(\\\\\\\"easyuse-toast\\\\\\\", {'content': f\\\\\\\"{package} installed successfully\\\\\\\", 'type': 'success', 'duration': 5000})\\\\n75 |             print(f\\\\\\\"Package {package} installed successfully\\\\\\\")\\\",\\n        \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n        \\\"file_path\\\": \\\"py/libs/utils.py\\\",\\n        \\\"issue_type\\\": \\\"python_command_injection_risk\\\",\\n        \\\"line_number\\\": 72,\\n        \\\"line_snippet\\\": \\\"result = subprocess.run([sys.executable, '-s', '-m', 'pip', 'install', package_command], capture_output=True, text=True)\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1059.004 Unix Shell\\\"\\n            ],\\n            \\\"confidence\\\": 95,\\n            \\\"matched_patterns\\\": [\\n                \\\"$subprocess_run_direct\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1059.004 Unix Shell\\\",\\n                \\\"category\\\": \\\"Injection\\\",\\n                \\\"confidence_note\\\": \\\"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"CIR-001..006\\\",\\n                \\\"version\\\": \\\"1.1\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_command_injection_risk\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1208 |             output_path\\\\n1209 |         ]\\\\n1210 | \\\\n1211 |         subprocess.run(ffmpeg_cmd, check=True)\\\\n1212 | \\\\n1213 |     print(f\\\\\\\"WebM with alpha saved to {output_path}\\\\\\\")\\\\n1214 | \\\",\\n        \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_command_injection_risk\\\",\\n        \\\"line_number\\\": 1211,\\n        \\\"line_snippet\\\": \\\"subprocess.run(ffmpeg_cmd, check=True)\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1059.004 Unix Shell\\\"\\n            ],\\n            \\\"confidence\\\": 95,\\n            \\\"matched_patterns\\\": [\\n                \\\"$subprocess_run_direct\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1059.004 Unix Shell\\\",\\n                \\\"category\\\": \\\"Injection\\\",\\n                \\\"confidence_note\\\": \\\"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"CIR-001..006\\\",\\n                \\\"version\\\": \\\"1.1\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_command_injection_risk\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1225 |         '-of', 'csv=p=0',\\\\n1226 |         original_video_path\\\\n1227 |     ]\\\\n1228 |     result = subprocess.run(probe_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)\\\\n1229 | \\\\n1230 |     # result.stdout is empty if no audio stream found\\\\n1231 |     if not result.stdout.strip():\\\",\\n        \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_command_injection_risk\\\",\\n        \\\"line_number\\\": 1228,\\n        \\\"line_snippet\\\": \\\"result = subprocess.run(probe_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1059.004 Unix Shell\\\"\\n            ],\\n            \\\"confidence\\\": 95,\\n            \\\"matched_patterns\\\": [\\n                \\\"$subprocess_run_direct\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1059.004 Unix Shell\\\",\\n                \\\"category\\\": \\\"Injection\\\",\\n                \\\"confidence_note\\\": \\\"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"CIR-001..006\\\",\\n                \\\"version\\\": \\\"1.1\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_command_injection_risk\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1243 |         '-map', '1:a:0',  # we know there's an audio track now\\\\n1244 |         output_path\\\\n1245 |     ]\\\\n1246 |     subprocess.run(command, check=True)\\\\n1247 |     print(f\\\\\\\"Audio added successfully =\\\\u003e {output_path}\\\\\\\")\\\\n1248 | \\\\n1249 | \\\",\\n        \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_command_injection_risk\\\",\\n        \\\"line_number\\\": 1246,\\n        \\\"line_snippet\\\": \\\"subprocess.run(command, check=True)\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1059.004 Unix Shell\\\"\\n            ],\\n            \\\"confidence\\\": 95,\\n            \\\"matched_patterns\\\": [\\n                \\\"$subprocess_run_direct\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1059.004 Unix Shell\\\",\\n                \\\"category\\\": \\\"Injection\\\",\\n                \\\"confidence_note\\\": \\\"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"CIR-001..006\\\",\\n                \\\"version\\\": \\\"1.1\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_command_injection_risk\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"210 |                         import cpm_kernels\\\\n211 |                     except ImportError:\\\\n212 |                         print(\\\\\\\"Installing cpm_kernels...\\\\\\\")\\\\n213 |                         subprocess.run([sys.executable, \\\\\\\"-m\\\\\\\", \\\\\\\"pip\\\\\\\", \\\\\\\"install\\\\\\\", \\\\\\\"cpm_kernels\\\\\\\"], check=True)\\\\n214 |                         pass\\\\n215 |                     self.text_encoder.quantize(4)\\\\n216 |                 elif '8bit' in model_path:\\\",\\n        \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n        \\\"file_path\\\": \\\"py/modules/kolors/loader.py\\\",\\n        \\\"issue_type\\\": \\\"python_command_injection_risk\\\",\\n        \\\"line_number\\\": 213,\\n        \\\"line_snippet\\\": \\\"subprocess.run([sys.executable, \\\\\\\"-m\\\\\\\", \\\\\\\"pip\\\\\\\", \\\\\\\"install\\\\\\\", \\\\\\\"cpm_kernels\\\\\\\"], check=True)\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1059.004 Unix Shell\\\"\\n            ],\\n            \\\"confidence\\\": 95,\\n            \\\"matched_patterns\\\": [\\n                \\\"$subprocess_run_direct\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1059.004 Unix Shell\\\",\\n                \\\"category\\\": \\\"Injection\\\",\\n                \\\"confidence_note\\\": \\\"All patterns are _direct (95% confidence): each match represents an explicit invocation of a dangerous function.\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects all os.system and subprocess usage for potential command injection vulnerabilities\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1059/004/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"CIR-001..006\\\",\\n                \\\"version\\\": \\\"1.1\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_command_injection_risk\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"42 |         try:\\\\n43 |             data = json.dumps(payload).encode(\\\\\\\"utf-8\\\\\\\")\\\\n44 |             req = urllib.request.Request(url, data=data, headers=headers, method=\\\\\\\"POST\\\\\\\")\\\\n45 |             with urllib.request.urlopen(req) as response:\\\\n46 |                 response_data = response.read().decode(\\\\\\\"utf-8\\\\\\\")\\\\n47 |             return response_data\\\\n48 |         except urllib.error.URLError as e:\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"py/libs/api/bizyair.py\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 45,\\n        \\\"line_snippet\\\": \\\"with urllib.request.urlopen(req) as response:\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$http2\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"py/libs/api/bizyair.py\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$http2\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"            with urllib.request.urlopen(req) as response:\\\\n\\\",\\n                                    \\\"line_number\\\": 45,\\n                                    \\\"matched_data\\\": \\\"urllib.request.urlopen(\\\",\\n                                    \\\"matched_length\\\": 23,\\n                                    \\\"offset\\\": 17\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"40 |             \\\\\\\"prompt\\\\\\\": text\\\\n41 |         }\\\\n42 | \\\\n43 |         response = requests.post(url, json=json, headers=headers)\\\\n44 |         res = response.json()\\\\n45 |         if \\\\\\\"error\\\\\\\" in res:\\\\n46 |             return res['error']\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"py/libs/api/fluxai.py\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 43,\\n        \\\"line_snippet\\\": \\\"response = requests.post(url, json=json, headers=headers)\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$http1\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"py/libs/api/fluxai.py\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$http1\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"        response = requests.post(url, json=json, headers=headers)\\\\n\\\",\\n                                    \\\"line_number\\\": 43,\\n                                    \\\"matched_data\\\": \\\"requests.post(\\\",\\n                                    \\\"matched_length\\\": 14,\\n                                    \\\"offset\\\": 19\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\",\\n            \\\"credential-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"101 |             files = {\\\\\\\"image\\\\\\\": (\\\\\\\"output.png\\\\\\\", image_byte, 'image/png')}\\\\n102 |             data['strength'] = strength\\\\n103 | \\\\n104 |         response = requests.post(url,\\\\n105 |             headers={\\\\\\\"authorization\\\\\\\": f\\\\\\\"{api_key}\\\\\\\", \\\\\\\"accept\\\\\\\": \\\\\\\"application/json\\\\\\\"},\\\\n106 |             files=files,\\\\n107 |             data=data,\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"py/libs/api/stability.py\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 104,\\n        \\\"line_snippet\\\": \\\"response = requests.post(url,\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$http1\\\",\\n                \\\"$http_file1\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"py/libs/api/stability.py\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$http1\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"        response = requests.post(url,\\\\n\\\",\\n                                    \\\"line_number\\\": 104,\\n                                    \\\"matched_data\\\": \\\"requests.post(\\\",\\n                                    \\\"matched_length\\\": 14,\\n                                    \\\"offset\\\": 19\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"            response = requests.get(url, headers={\\\\\\\"Authorization\\\\\\\": f\\\\\\\"Bearer {api_key}\\\\\\\"})\\\\n\\\",\\n                                    \\\"line_number\\\": 133,\\n                                    \\\"matched_data\\\": \\\"requests.get(\\\",\\n                                    \\\"matched_length\\\": 13,\\n                                    \\\"offset\\\": 23\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        response = requests.get(url, headers={\\\\n\\\",\\n                                    \\\"line_number\\\": 146,\\n                                    \\\"matched_data\\\": \\\"requests.get(\\\",\\n                                    \\\"matched_length\\\": 13,\\n                                    \\\"offset\\\": 19\\n                                }\\n                            ]\\n                        },\\n                        {\\n                            \\\"identifier\\\": \\\"$http_file1\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"        response = requests.post(url,\\\\n\\\",\\n                                    \\\"line_number\\\": 104,\\n                                    \\\"matched_data\\\": \\\"requests.post(url,\\\\n            headers={\\\\\\\"authorization\\\\\\\": f\\\\\\\"{api_key}\\\\\\\", \\\\\\\"accept\\\\\\\": \\\\\\\"application/json\\\\\\\"},\\\\n            files=\\\",\\n                                    \\\"matched_length\\\": 120,\\n                                    \\\"offset\\\": 19\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"47 |                   min: 0.5,\\\\n48 |                   precision: 2,\\\\n49 |                 });\\\\n50 |                 this.keypressBound = this.onKeypress.bind(this);\\\\n51 |             }\\\\n52 | \\\\n53 |             onAdded(){\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"web_version/v1/js/bookmark.js\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 50,\\n        \\\"line_snippet\\\": \\\"this.keypressBound = this.onKeypress.bind(this);\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$socket4\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v1/js/bookmark.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$socket4\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"                this.keypressBound = this.onKeypress.bind(this);\\\\n\\\",\\n                                    \\\"line_number\\\": 50,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 58\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"27 | \\\\n28 |         this.buildDropdown();\\\\n29 | \\\\n30 |         this.onKeyDownBound = this.onKeyDown.bind(this);\\\\n31 |         this.onWheelBound = this.onWheel.bind(this);\\\\n32 |         this.onClickBound = this.onClick.bind(this);\\\\n33 | \\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"web_version/v1/js/common/dropdown.js\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 30,\\n        \\\"line_snippet\\\": \\\"this.onKeyDownBound = this.onKeyDown.bind(this);\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$socket4\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v1/js/common/dropdown.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$socket4\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"        this.onKeyDownBound = this.onKeyDown.bind(this);\\\\n\\\",\\n                                    \\\"line_number\\\": 30,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 44\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        this.onWheelBound = this.onWheel.bind(this);\\\\n\\\",\\n                                    \\\"line_number\\\": 31,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 40\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        this.onClickBound = this.onClick.bind(this);\\\\n\\\",\\n                                    \\\"line_number\\\": 32,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 40\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"                parentListItem.addEventListener('mouseover', this.onMouseOver.bind(this, index, parentElement));\\\\n\\\",\\n                                    \\\"line_number\\\": 66,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 77\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"                listItem.addEventListener('mouseover', this.onMouseOver.bind(this, index, parentElement));\\\\n\\\",\\n                                    \\\"line_number\\\": 75,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 71\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"                listItem.addEventListener('mousedown', this.onMouseDown.bind(this, key));\\\\n\\\",\\n                                    \\\"line_number\\\": 76,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 71\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        listItem.addEventListener('mouseover', this.onMouseOver.bind(this, index));\\\\n\\\",\\n                                    \\\"line_number\\\": 87,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 63\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        listItem.addEventListener('mousedown', this.onMouseDown.bind(this, item));\\\\n\\\",\\n                                    \\\"line_number\\\": 88,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 63\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"203 |                     if (originLinkInfo) {\\\\n204 |                         const originNode = oldNode.graph.getNodeById(originLinkInfo.origin_id);\\\\n205 |                         if (originNode) {\\\\n206 |                             originNode.connect(originLinkInfo.origin_slot, newNode, newInputIndex);\\\\n207 |                         }\\\\n208 |                     }\\\\n209 |                 }\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"web_version/v1/js/easy/easyExtraMenu.js\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 206,\\n        \\\"line_snippet\\\": \\\"originNode.connect(originLinkInfo.origin_slot, newNode, newInputIndex);\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$socket3\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v1/js/easy/easyExtraMenu.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$socket3\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"                            originNode.connect(originLinkInfo.origin_slot, newNode, newInputIndex);\\\\n\\\",\\n                                    \\\"line_number\\\": 206,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 38\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"                                newNode.connect(newOutputIndex, targetNode, targetLinkInfo.target_slot);\\\\n\\\",\\n                                    \\\"line_number\\\": 229,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 39\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"                    newNode.connect(0, ksampler, newInputIndex);\\\\n\\\",\\n                                    \\\"line_number\\\": 262,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 27\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"            output_node.connect(output_slot, newNode.id, input_name)\\\\n\\\",\\n                                    \\\"line_number\\\": 458,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 29\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"            newNode.connect(output_name, input_node, input_slot)\\\\n\\\",\\n                                    \\\"line_number\\\": 462,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 25\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"240 |         }\\\\n241 |         var target_node = nodes[link_info[2]];\\\\n242 |         if( origin_node \\\\u0026\\\\u0026 target_node )\\\\n243 |             origin_node.connect(link_info[1], target_node, link_info[3]);\\\\n244 |         else\\\\n245 |             console.warn(\\\\\\\"Warning, nodes missing on pasting\\\\\\\");\\\\n246 |     }\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"web_version/v1/js/easy/easyQuick.js\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 243,\\n        \\\"line_snippet\\\": \\\"origin_node.connect(link_info[1], target_node, link_info[3]);\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$socket3\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v1/js/easy/easyQuick.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$socket3\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"            origin_node.connect(link_info[1], target_node, link_info[3]);\\\\n\\\",\\n                                    \\\"line_number\\\": 243,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 37\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\",\\n            \\\"any-folder-access\\\",\\n            \\\"any-network-requests\\\",\\n            \\\"obfuscated-code\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\" 6 |  */\\\\n 7 | function t(t,e){return e.forEach((function(e){e\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"!=typeof e\\\\u0026\\\\u0026!Array.isArray(e)\\\\u0026\\\\u0026Object.keys(e).forEach((function(i){if(\\\\\\\"default\\\\\\\"!==i\\\\u0026\\\\u0026!(i in t)){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}}))})),Object.freeze(t)}var e=\\\\\\\"undefined\\\\\\\"!=typeof global?global:\\\\\\\"undefined\\\\\\\"!=typeof self?self:\\\\\\\"undefined\\\\\\\"!=typeof window?window:{},i=[],r=[],n=\\\\\\\"undefined\\\\\\\"!=typeof Uint8Array?Uint8Array:Array,o=!1;function s(){o=!0;for(var t=\\\\\\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\\\\\\",e=0;e\\\\u003c64;++e)i[e]=t[e],r[t.charCodeAt(e)]=e;r[\\\\\\\"-\\\\\\\".charCodeAt(0)]=62,r[\\\\\\\"_\\\\\\\".charCodeAt(0)]=63}function a(t,e,r){for(var n,o,s=[],a=e;a\\\\u003cr;a+=3)n=(t[a]\\\\u003c\\\\u003c16)+(t[a+1]\\\\u003c\\\\u003c8)+t[a+2],s.push(i[(o=n)\\\\u003e\\\\u003e18\\\\u002663]+i[o\\\\u003e\\\\u003e12\\\\u002663]+i[o\\\\u003e\\\\u003e6\\\\u002663]+i[63\\\\u0026o]);return s.join(\\\\\\\"\\\\\\\")}function h(t){var e;o||s();for(var r=t.length,n=r%3,h=\\\\\\\"\\\\\\\",c=[],l=16383,u=0,f=r-n;u\\\\u003cf;u+=l)c.push(a(t,u,u+l\\\\u003ef?f:u+l));return 1===n?(e=t[r-1],h+=i[e\\\\u003e\\\\u003e2],h+=i[e\\\\u003c\\\\u003c4\\\\u002663],h+=\\\\\\\"==\\\\\\\"):2===n\\\\u0026\\\\u0026(e=(t[r-2]\\\\u003c\\\\u003c8)+t[r-1],h+=i[e\\\\u003e\\\\u003e10],h+=i[e\\\\u003e\\\\u003e4\\\\u002663],h+=i[e\\\\u003c\\\\u003c2\\\\u002663],h+=\\\\\\\"=\\\\\\\"),c.push(h),c.join(\\\\\\\"\\\\\\\")}function c(t,e,i,r,n){var o,s,a=8*n-r-1,h=(1\\\\u003c\\\\u003ca)-1,c=h\\\\u003e\\\\u003e1,l=-7,u=i?n-1:0,f=i?-1:1,d=t[e+u];for(u+=f,o=d\\\\u0026(1\\\\u003c\\\\u003c-l)-1,d\\\\u003e\\\\u003e=-l,l+=a;l\\\\u003e0;o=256*o+t[e+u],u+=f,l-=8);for(s=o\\\\u0026(1\\\\u003c\\\\u003c-l)-1,o\\\\u003e\\\\u003e=-l,l+=r;l\\\\u003e0;s=256*s+t[e+u],u+=f,l-=8);if(0===o)o=1-c;else{if(o===h)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=c}return(d?-1:1)*s*Math.pow(2,o-r)}function l(t,e,i,r,n,o){var s,a,h,c=8*o-n-1,l=(1\\\\u003c\\\\u003cc)-1,u=l\\\\u003e\\\\u003e1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,g=r?1:-1,p=e\\\\u003c0||0===e\\\\u0026\\\\u00261/e\\\\u003c0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-s))\\\\u003c1\\\\u0026\\\\u0026(s--,h*=2),(e+=s+u\\\\u003e=1?f/h:f*Math.pow(2,1-u))*h\\\\u003e=2\\\\u0026\\\\u0026(s++,h/=2),s+u\\\\u003e=l?(a=0,s=l):s+u\\\\u003e=1?(a=(e*h-1)*Math.pow(2,n),s+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,n),s=0));n\\\\u003e=8;t[i+d]=255\\\\u0026a,d+=g,a/=256,n-=8);for(s=s\\\\u003c\\\\u003cn|a,c+=n;c\\\\u003e0;t[i+d]=255\\\\u0026s,d+=g,s/=256,c-=8);t[i+d-g]|=128*p}var u={}.toString,f=Array.isArray||function(t){return\\\\\\\"[object Array]\\\\\\\"==u.call(t)};function d(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(t,e){if(d()\\\\u003ce)throw new RangeError(\\\\\\\"Invalid typed array length\\\\\\\");return p.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=p.prototype:(null===t\\\\u0026\\\\u0026(t=new p(e)),t.length=e),t}function p(t,e,i){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(t,e,i);if(\\\\\\\"number\\\\\\\"==typeof t){if(\\\\\\\"string\\\\\\\"==typeof e)throw new Error(\\\\\\\"If encoding is specified then the first argument must be a string\\\\\\\");return y(this,t)}return v(this,t,e,i)}function v(t,e,i,r){if(\\\\\\\"number\\\\\\\"==typeof e)throw new TypeError('\\\\\\\"value\\\\\\\" argument must not be a number');return\\\\\\\"undefined\\\\\\\"!=typeof ArrayBuffer\\\\u0026\\\\u0026e instanceof ArrayBuffer?function(t,e,i,r){if(e.byteLength,i\\\\u003c0||e.byteLength\\\\u003ci)throw new RangeError(\\\\\\\"'offset' is out of bounds\\\\\\\");if(e.byteLength\\\\u003ci+(r||0))throw new RangeError(\\\\\\\"'length' is out of bounds\\\\\\\");e=void 0===i\\\\u0026\\\\u0026void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,i):new Uint8Array(e,i,r);p.TYPED_ARRAY_SUPPORT?(t=e).__proto__=p.prototype:t=_(t,e);return t}(t,e,i,r):\\\\\\\"string\\\\\\\"==typeof e?function(t,e,i){\\\\\\\"string\\\\\\\"==typeof i\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!==i||(i=\\\\\\\"utf8\\\\\\\");if(!p.isEncoding(i))throw new TypeError('\\\\\\\"encoding\\\\\\\" must be a valid string encoding');var r=0|C(e,i);t=g(t,r);var n=t.write(e,i);n!==r\\\\u0026\\\\u0026(t=t.slice(0,n));return t}(t,e,i):function(t,e){if(x(e)){var i=0|b(e.length);return 0===(t=g(t,i)).length||e.copy(t,0,0,i),t}if(e){if(\\\\\\\"undefined\\\\\\\"!=typeof ArrayBuffer\\\\u0026\\\\u0026e.buffer instanceof ArrayBuffer||\\\\\\\"length\\\\\\\"in e)return\\\\\\\"number\\\\\\\"!=typeof e.length||(r=e.length)!=r?g(t,0):_(t,e);if(\\\\\\\"Buffer\\\\\\\"===e.type\\\\u0026\\\\u0026f(e.data))return _(t,e.data)}var r;throw new TypeError(\\\\\\\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\\\\\\\")}(t,e)}function m(t){if(\\\\\\\"number\\\\\\\"!=typeof t)throw new TypeError('\\\\\\\"size\\\\\\\" argument must be a number');if(t\\\\u003c0)throw new RangeError('\\\\\\\"size\\\\\\\" argument must not be negative')}function y(t,e){if(m(e),t=g(t,e\\\\u003c0?0:0|b(e)),!p.TYPED_ARRAY_SUPPORT)for(var i=0;i\\\\u003ce;++i)t[i]=0;return t}function _(t,e){var i=e.length\\\\u003c0?0:0|b(e.length);t=g(t,i);for(var r=0;r\\\\u003ci;r+=1)t[r]=255\\\\u0026e[r];return t}function b(t){if(t\\\\u003e=d())throw new RangeError(\\\\\\\"Attempt to allocate Buffer larger than maximum size: 0x\\\\\\\"+d().toString(16)+\\\\\\\" bytes\\\\\\\");return 0|t}function x(t){return!(null==t||!t._isBuffer)}function C(t,e){if(x(t))return t.length;if(\\\\\\\"undefined\\\\\\\"!=typeof ArrayBuffer\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof ArrayBuffer.isView\\\\u0026\\\\u0026(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;\\\\\\\"string\\\\\\\"!=typeof t\\\\u0026\\\\u0026(t=\\\\\\\"\\\\\\\"+t);var i=t.length;if(0===i)return 0;for(var r=!1;;)switch(e){case\\\\\\\"ascii\\\\\\\":case\\\\\\\"latin1\\\\\\\":case\\\\\\\"binary\\\\\\\":return i;case\\\\\\\"utf8\\\\\\\":case\\\\\\\"utf-8\\\\\\\":case void 0:return K(t).length;case\\\\\\\"ucs2\\\\\\\":case\\\\\\\"ucs-2\\\\\\\":case\\\\\\\"utf16le\\\\\\\":case\\\\\\\"utf-16le\\\\\\\":return 2*i;case\\\\\\\"hex\\\\\\\":return i\\\\u003e\\\\u003e\\\\u003e1;case\\\\\\\"base64\\\\\\\":return J(t).length;default:if(r)return K(t).length;e=(\\\\\\\"\\\\\\\"+e).toLowerCase(),r=!0}}function w(t,e,i){var r=!1;if((void 0===e||e\\\\u003c0)\\\\u0026\\\\u0026(e=0),e\\\\u003ethis.length)return\\\\\\\"\\\\\\\";if((void 0===i||i\\\\u003ethis.length)\\\\u0026\\\\u0026(i=this.length),i\\\\u003c=0)return\\\\\\\"\\\\\\\";if((i\\\\u003e\\\\u003e\\\\u003e=0)\\\\u003c=(e\\\\u003e\\\\u003e\\\\u003e=0))return\\\\\\\"\\\\\\\";for(t||(t=\\\\\\\"utf8\\\\\\\");;)switch(t){case\\\\\\\"hex\\\\\\\":return B(this,e,i);case\\\\\\\"utf8\\\\\\\":case\\\\\\\"utf-8\\\\\\\":return F(this,e,i);case\\\\\\\"ascii\\\\\\\":return I(this,e,i);case\\\\\\\"latin1\\\\\\\":case\\\\\\\"binary\\\\\\\":return R(this,e,i);case\\\\\\\"base64\\\\\\\":return j(this,e,i);case\\\\\\\"ucs2\\\\\\\":case\\\\\\\"ucs-2\\\\\\\":case\\\\\\\"utf16le\\\\\\\":case\\\\\\\"utf-16le\\\\\\\":return Y(this,e,i);default:if(r)throw new TypeError(\\\\\\\"Unknown encoding: \\\\\\\"+t);t=(t+\\\\\\\"\\\\\\\").toLowerCase(),r=!0}}function S(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function T(t,e,i,r,n){if(0===t.length)return-1;if(\\\\\\\"string\\\\\\\"==typeof i?(r=i,i=0):i\\\\u003e2147483647?i=2147483647:i\\\\u003c-2147483648\\\\u0026\\\\u0026(i=-2147483648),i=+i,isNaN(i)\\\\u0026\\\\u0026(i=n?0:t.length-1),i\\\\u003c0\\\\u0026\\\\u0026(i=t.length+i),i\\\\u003e=t.length){if(n)return-1;i=t.length-1}else if(i\\\\u003c0){if(!n)return-1;i=0}if(\\\\\\\"string\\\\\\\"==typeof e\\\\u0026\\\\u0026(e=p.from(e,r)),x(e))return 0===e.length?-1:O(t,e,i,r,n);if(\\\\\\\"number\\\\\\\"==typeof e)return e\\\\u0026=255,p.TYPED_ARRAY_SUPPORT\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):O(t,[e],i,r,n);throw new TypeError(\\\\\\\"val must be string, number or Buffer\\\\\\\")}function O(t,e,i,r,n){var o,s=1,a=t.length,h=e.length;if(void 0!==r\\\\u0026\\\\u0026(\\\\\\\"ucs2\\\\\\\"===(r=String(r).toLowerCase())||\\\\\\\"ucs-2\\\\\\\"===r||\\\\\\\"utf16le\\\\\\\"===r||\\\\\\\"utf-16le\\\\\\\"===r)){if(t.length\\\\u003c2||e.length\\\\u003c2)return-1;s=2,a/=2,h/=2,i/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(n){var l=-1;for(o=i;o\\\\u003ca;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l\\\\u0026\\\\u0026(l=o),o-l+1===h)return l*s}else-1!==l\\\\u0026\\\\u0026(o-=o-l),l=-1}else for(i+h\\\\u003ea\\\\u0026\\\\u0026(i=a-h),o=i;o\\\\u003e=0;o--){for(var u=!0,f=0;f\\\\u003ch;f++)if(c(t,o+f)!==c(e,f)){u=!1;break}if(u)return o}return-1}function P(t,e,i,r){i=Number(i)||0;var n=t.length-i;r?(r=Number(r))\\\\u003en\\\\u0026\\\\u0026(r=n):r=n;var o=e.length;if(o%2!=0)throw new TypeError(\\\\\\\"Invalid hex string\\\\\\\");r\\\\u003eo/2\\\\u0026\\\\u0026(r=o/2);for(var s=0;s\\\\u003cr;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[i+s]=a}return s}function E(t,e,i,r){return Z(K(e,t.length-i),t,i,r)}function k(t,e,i,r){return Z(function(t){for(var e=[],i=0;i\\\\u003ct.length;++i)e.push(255\\\\u0026t.charCodeAt(i));return e}(e),t,i,r)}function A(t,e,i,r){return k(t,e,i,r)}function D(t,e,i,r){return Z(J(e),t,i,r)}function M(t,e,i,r){return Z(function(t,e){for(var i,r,n,o=[],s=0;s\\\\u003ct.length\\\\u0026\\\\u0026!((e-=2)\\\\u003c0);++s)r=(i=t.charCodeAt(s))\\\\u003e\\\\u003e8,n=i%256,o.push(n),o.push(r);return o}(e,t.length-i),t,i,r)}function j(t,e,i){return 0===e\\\\u0026\\\\u0026i===t.length?h(t):h(t.slice(e,i))}function F(t,e,i){i=Math.min(t.length,i);for(var r=[],n=e;n\\\\u003ci;){var o,s,a,h,c=t[n],l=null,u=c\\\\u003e239?4:c\\\\u003e223?3:c\\\\u003e191?2:1;if(n+u\\\\u003c=i)switch(u){case 1:c\\\\u003c128\\\\u0026\\\\u0026(l=c);break;case 2:128==(192\\\\u0026(o=t[n+1]))\\\\u0026\\\\u0026(h=(31\\\\u0026c)\\\\u003c\\\\u003c6|63\\\\u0026o)\\\\u003e127\\\\u0026\\\\u0026(l=h);break;case 3:o=t[n+1],s=t[n+2],128==(192\\\\u0026o)\\\\u0026\\\\u0026128==(192\\\\u0026s)\\\\u0026\\\\u0026(h=(15\\\\u0026c)\\\\u003c\\\\u003c12|(63\\\\u0026o)\\\\u003c\\\\u003c6|63\\\\u0026s)\\\\u003e2047\\\\u0026\\\\u0026(h\\\\u003c55296||h\\\\u003e57343)\\\\u0026\\\\u0026(l=h);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],128==(192\\\\u0026o)\\\\u0026\\\\u0026128==(192\\\\u0026s)\\\\u0026\\\\u0026128==(192\\\\u0026a)\\\\u0026\\\\u0026(h=(15\\\\u0026c)\\\\u003c\\\\u003c18|(63\\\\u0026o)\\\\u003c\\\\u003c12|(63\\\\u0026s)\\\\u003c\\\\u003c6|63\\\\u0026a)\\\\u003e65535\\\\u0026\\\\u0026h\\\\u003c1114112\\\\u0026\\\\u0026(l=h)}null===l?(l=65533,u=1):l\\\\u003e65535\\\\u0026\\\\u0026(l-=65536,r.push(l\\\\u003e\\\\u003e\\\\u003e10\\\\u00261023|55296),l=56320|1023\\\\u0026l),r.push(l),n+=u}return function(t){var e=t.length;if(e\\\\u003c=L)return String.fromCharCode.apply(String,t);var i=\\\\\\\"\\\\\\\",r=0;for(;r\\\\u003ce;)i+=String.fromCharCode.apply(String,t.slice(r,r+=L));return i}(r)}p.TYPED_ARRAY_SUPPORT=void 0===e.TYPED_ARRAY_SUPPORT||e.TYPED_ARRAY_SUPPORT,d(),p.poolSize=8192,p._augment=function(t){return t.__proto__=p.prototype,t},p.from=function(t,e,i){return v(null,t,e,i)},p.TYPED_ARRAY_SUPPORT\\\\u0026\\\\u0026(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026Symbol.species\\\\u0026\\\\u0026p[Symbol.species]),p.alloc=function(t,e,i){return function(t,e,i,r){return m(e),e\\\\u003c=0?g(t,e):void 0!==i?\\\\\\\"string\\\\\\\"==typeof r?g(t,e).fill(i,r):g(t,e).fill(i):g(t,e)}(null,t,e,i)},p.allocUnsafe=function(t){return y(null,t)},p.allocUnsafeSlow=function(t){return y(null,t)},p.isBuffer=function(t){return null!=t\\\\u0026\\\\u0026(!!t._isBuffer||$(t)||function(t){return\\\\\\\"function\\\\\\\"==typeof t.readFloatLE\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof t.slice\\\\u0026\\\\u0026$(t.slice(0,0))}(t))},p.compare=function(t,e){if(!x(t)||!x(e))throw new TypeError(\\\\\\\"Arguments must be Buffers\\\\\\\");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);n\\\\u003co;++n)if(t[n]!==e[n]){i=t[n],r=e[n];break}return i\\\\u003cr?-1:r\\\\u003ci?1:0},p.isEncoding=function(t){switch(String(t).toLowerCase()){case\\\\\\\"hex\\\\\\\":case\\\\\\\"utf8\\\\\\\":case\\\\\\\"utf-8\\\\\\\":case\\\\\\\"ascii\\\\\\\":case\\\\\\\"latin1\\\\\\\":case\\\\\\\"binary\\\\\\\":case\\\\\\\"base64\\\\\\\":case\\\\\\\"ucs2\\\\\\\":case\\\\\\\"ucs-2\\\\\\\":case\\\\\\\"utf16le\\\\\\\":case\\\\\\\"utf-16le\\\\\\\":return!0;default:return!1}},p.concat=function(t,e){if(!f(t))throw new TypeError('\\\\\\\"list\\\\\\\" argument must be an Array of Buffers');if(0===t.length)return p.alloc(0);var i;if(void 0===e)for(e=0,i=0;i\\\\u003ct.length;++i)e+=t[i].length;var r=p.allocUnsafe(e),n=0;for(i=0;i\\\\u003ct.length;++i){var o=t[i];if(!x(o))throw new TypeError('\\\\\\\"list\\\\\\\" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},p.byteLength=C,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(\\\\\\\"Buffer size must be a multiple of 16-bits\\\\\\\");for(var e=0;e\\\\u003ct;e+=2)S(this,e,e+1);return this},p.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(\\\\\\\"Buffer size must be a multiple of 32-bits\\\\\\\");for(var e=0;e\\\\u003ct;e+=4)S(this,e,e+3),S(this,e+1,e+2);return this},p.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(\\\\\\\"Buffer size must be a multiple of 64-bits\\\\\\\");for(var e=0;e\\\\u003ct;e+=8)S(this,e,e+7),S(this,e+1,e+6),S(this,e+2,e+5),S(this,e+3,e+4);return this},p.prototype.toString=function(){var t=0|this.length;return 0===t?\\\\\\\"\\\\\\\":0===arguments.length?F(this,0,t):w.apply(this,arguments)},p.prototype.equals=function(t){if(!x(t))throw new TypeError(\\\\\\\"Argument must be a Buffer\\\\\\\");return this===t||0===p.compare(this,t)},p.prototype.inspect=function(){var t=\\\\\\\"\\\\\\\";return this.length\\\\u003e0\\\\u0026\\\\u0026(t=this.toString(\\\\\\\"hex\\\\\\\",0,50).match(/.{2}/g).join(\\\\\\\" \\\\\\\"),this.length\\\\u003e50\\\\u0026\\\\u0026(t+=\\\\\\\" ... \\\\\\\")),\\\\\\\"\\\\u003cBuffer \\\\\\\"+t+\\\\\\\"\\\\u003e\\\\\\\"},p.prototype.compare=function(t,e,i,r,n){if(!x(t))throw new TypeError(\\\\\\\"Argument must be a Buffer\\\\\\\");if(void 0===e\\\\u0026\\\\u0026(e=0),void 0===i\\\\u0026\\\\u0026(i=t?t.length:0),void 0===r\\\\u0026\\\\u0026(r=0),void 0===n\\\\u0026\\\\u0026(n=this.length),e\\\\u003c0||i\\\\u003et.length||r\\\\u003c0||n\\\\u003ethis.length)throw new RangeError(\\\\\\\"out of range index\\\\\\\");if(r\\\\u003e=n\\\\u0026\\\\u0026e\\\\u003e=i)return 0;if(r\\\\u003e=n)return-1;if(e\\\\u003e=i)return 1;if(this===t)return 0;for(var o=(n\\\\u003e\\\\u003e\\\\u003e=0)-(r\\\\u003e\\\\u003e\\\\u003e=0),s=(i\\\\u003e\\\\u003e\\\\u003e=0)-(e\\\\u003e\\\\u003e\\\\u003e=0),a=Math.min(o,s),h=this.slice(r,n),c=t.slice(e,i),l=0;l\\\\u003ca;++l)if(h[l]!==c[l]){o=h[l],s=c[l];break}return o\\\\u003cs?-1:s\\\\u003co?1:0},p.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},p.prototype.indexOf=function(t,e,i){return T(this,t,e,i,!0)},p.prototype.lastIndexOf=function(t,e,i){return T(this,t,e,i,!1)},p.prototype.write=function(t,e,i,r){if(void 0===e)r=\\\\\\\"utf8\\\\\\\",i=this.length,e=0;else if(void 0===i\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"==typeof e)r=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error(\\\\\\\"Buffer.write(string, encoding, offset[, length]) is no longer supported\\\\\\\");e|=0,isFinite(i)?(i|=0,void 0===r\\\\u0026\\\\u0026(r=\\\\\\\"utf8\\\\\\\")):(r=i,i=void 0)}var n=this.length-e;if((void 0===i||i\\\\u003en)\\\\u0026\\\\u0026(i=n),t.length\\\\u003e0\\\\u0026\\\\u0026(i\\\\u003c0||e\\\\u003c0)||e\\\\u003ethis.length)throw new RangeError(\\\\\\\"Attempt to write outside buffer bounds\\\\\\\");r||(r=\\\\\\\"utf8\\\\\\\");for(var o=!1;;)switch(r){case\\\\\\\"hex\\\\\\\":return P(this,t,e,i);case\\\\\\\"utf8\\\\\\\":case\\\\\\\"utf-8\\\\\\\":return E(this,t,e,i);case\\\\\\\"ascii\\\\\\\":return k(this,t,e,i);case\\\\\\\"latin1\\\\\\\":case\\\\\\\"binary\\\\\\\":return A(this,t,e,i);case\\\\\\\"base64\\\\\\\":return D(this,t,e,i);case\\\\\\\"ucs2\\\\\\\":case\\\\\\\"ucs-2\\\\\\\":case\\\\\\\"utf16le\\\\\\\":case\\\\\\\"utf-16le\\\\\\\":return M(this,t,e,i);default:if(o)throw new TypeError(\\\\\\\"Unknown encoding: \\\\\\\"+r);r=(\\\\\\\"\\\\\\\"+r).toLowerCase(),o=!0}},p.prototype.toJSON=function(){return{type:\\\\\\\"Buffer\\\\\\\",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(t,e,i){var r=\\\\\\\"\\\\\\\";i=Math.min(t.length,i);for(var n=e;n\\\\u003ci;++n)r+=String.fromCharCode(127\\\\u0026t[n]);return r}function R(t,e,i){var r=\\\\\\\"\\\\\\\";i=Math.min(t.length,i);for(var n=e;n\\\\u003ci;++n)r+=String.fromCharCode(t[n]);return r}function B(t,e,i){var r=t.length;(!e||e\\\\u003c0)\\\\u0026\\\\u0026(e=0),(!i||i\\\\u003c0||i\\\\u003er)\\\\u0026\\\\u0026(i=r);for(var n=\\\\\\\"\\\\\\\",o=e;o\\\\u003ci;++o)n+=q(t[o]);return n}function Y(t,e,i){for(var r=t.slice(e,i),n=\\\\\\\"\\\\\\\",o=0;o\\\\u003cr.length;o+=2)n+=String.fromCharCode(r[o]+256*r[o+1]);return n}function X(t,e,i){if(t%1!=0||t\\\\u003c0)throw new RangeError(\\\\\\\"offset is not uint\\\\\\\");if(t+e\\\\u003ei)throw new RangeError(\\\\\\\"Trying to access beyond buffer length\\\\\\\")}function U(t,e,i,r,n,o){if(!x(t))throw new TypeError('\\\\\\\"buffer\\\\\\\" argument must be a Buffer instance');if(e\\\\u003en||e\\\\u003co)throw new RangeError('\\\\\\\"value\\\\\\\" argument is out of bounds');if(i+r\\\\u003et.length)throw new RangeError(\\\\\\\"Index out of range\\\\\\\")}function G(t,e,i,r){e\\\\u003c0\\\\u0026\\\\u0026(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n\\\\u003co;++n)t[i+n]=(e\\\\u0026255\\\\u003c\\\\u003c8*(r?n:1-n))\\\\u003e\\\\u003e\\\\u003e8*(r?n:1-n)}function H(t,e,i,r){e\\\\u003c0\\\\u0026\\\\u0026(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n\\\\u003co;++n)t[i+n]=e\\\\u003e\\\\u003e\\\\u003e8*(r?n:3-n)\\\\u0026255}function W(t,e,i,r,n,o){if(i+r\\\\u003et.length)throw new RangeError(\\\\\\\"Index out of range\\\\\\\");if(i\\\\u003c0)throw new RangeError(\\\\\\\"Index out of range\\\\\\\")}function z(t,e,i,r,n){return n||W(t,0,i,4),l(t,e,i,r,23,4),i+4}function N(t,e,i,r,n){return n||W(t,0,i,8),l(t,e,i,r,52,8),i+8}p.prototype.slice=function(t,e){var i,r=this.length;if((t=~~t)\\\\u003c0?(t+=r)\\\\u003c0\\\\u0026\\\\u0026(t=0):t\\\\u003er\\\\u0026\\\\u0026(t=r),(e=void 0===e?r:~~e)\\\\u003c0?(e+=r)\\\\u003c0\\\\u0026\\\\u0026(e=0):e\\\\u003er\\\\u0026\\\\u0026(e=r),e\\\\u003ct\\\\u0026\\\\u0026(e=t),p.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,e)).__proto__=p.prototype;else{var n=e-t;i=new p(n,void 0);for(var o=0;o\\\\u003cn;++o)i[o]=this[o+t]}return i},p.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||X(t,e,this.length);for(var r=this[t],n=1,o=0;++o\\\\u003ce\\\\u0026\\\\u0026(n*=256);)r+=this[t+o]*n;return r},p.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||X(t,e,this.length);for(var r=this[t+--e],n=1;e\\\\u003e0\\\\u0026\\\\u0026(n*=256);)r+=this[t+--e]*n;return r},p.prototype.readUInt8=function(t,e){return e||X(t,1,this.length),this[t]},p.prototype.readUInt16LE=function(t,e){return e||X(t,2,this.length),this[t]|this[t+1]\\\\u003c\\\\u003c8},p.prototype.readUInt16BE=function(t,e){return e||X(t,2,this.length),this[t]\\\\u003c\\\\u003c8|this[t+1]},p.prototype.readUInt32LE=function(t,e){return e||X(t,4,this.length),(this[t]|this[t+1]\\\\u003c\\\\u003c8|this[t+2]\\\\u003c\\\\u003c16)+16777216*this[t+3]},p.prototype.readUInt32BE=function(t,e){return e||X(t,4,this.length),16777216*this[t]+(this[t+1]\\\\u003c\\\\u003c16|this[t+2]\\\\u003c\\\\u003c8|this[t+3])},p.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||X(t,e,this.length);for(var r=this[t],n=1,o=0;++o\\\\u003ce\\\\u0026\\\\u0026(n*=256);)r+=this[t+o]*n;return r\\\\u003e=(n*=128)\\\\u0026\\\\u0026(r-=Math.pow(2,8*e)),r},p.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||X(t,e,this.length);for(var r=e,n=1,o=this[t+--r];r\\\\u003e0\\\\u0026\\\\u0026(n*=256);)o+=this[t+--r]*n;return o\\\\u003e=(n*=128)\\\\u0026\\\\u0026(o-=Math.pow(2,8*e)),o},p.prototype.readInt8=function(t,e){return e||X(t,1,this.length),128\\\\u0026this[t]?-1*(255-this[t]+1):this[t]},p.prototype.readInt16LE=function(t,e){e||X(t,2,this.length);var i=this[t]|this[t+1]\\\\u003c\\\\u003c8;return 32768\\\\u0026i?4294901760|i:i},p.prototype.readInt16BE=function(t,e){e||X(t,2,this.length);var i=this[t+1]|this[t]\\\\u003c\\\\u003c8;return 32768\\\\u0026i?4294901760|i:i},p.prototype.readInt32LE=function(t,e){return e||X(t,4,this.length),this[t]|this[t+1]\\\\u003c\\\\u003c8|this[t+2]\\\\u003c\\\\u003c16|this[t+3]\\\\u003c\\\\u003c24},p.prototype.readInt32BE=function(t,e){return e||X(t,4,this.length),this[t]\\\\u003c\\\\u003c24|this[t+1]\\\\u003c\\\\u003c16|this[t+2]\\\\u003c\\\\u003c8|this[t+3]},p.prototype.readFloatLE=function(t,e){return e||X(t,4,this.length),c(this,t,!0,23,4)},p.prototype.readFloatBE=function(t,e){return e||X(t,4,this.length),c(this,t,!1,23,4)},p.prototype.readDoubleLE=function(t,e){return e||X(t,8,this.length),c(this,t,!0,52,8)},p.prototype.readDoubleBE=function(t,e){return e||X(t,8,this.length),c(this,t,!1,52,8)},p.prototype.writeUIntLE=function(t,e,i,r){(t=+t,e|=0,i|=0,r)||U(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255\\\\u0026t;++o\\\\u003ci\\\\u0026\\\\u0026(n*=256);)this[e+o]=t/n\\\\u0026255;return e+i},p.prototype.writeUIntBE=function(t,e,i,r){(t=+t,e|=0,i|=0,r)||U(this,t,e,i,Math.pow(2,8*i)-1,0);var n=i-1,o=1;for(this[e+n]=255\\\\u0026t;--n\\\\u003e=0\\\\u0026\\\\u0026(o*=256);)this[e+n]=t/o\\\\u0026255;return e+i},p.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,1,255,0),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255\\\\u0026t,e+1},p.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=255\\\\u0026t,this[e+1]=t\\\\u003e\\\\u003e\\\\u003e8):G(this,t,e,!0),e+2},p.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t\\\\u003e\\\\u003e\\\\u003e8,this[e+1]=255\\\\u0026t):G(this,t,e,!1),e+2},p.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e+3]=t\\\\u003e\\\\u003e\\\\u003e24,this[e+2]=t\\\\u003e\\\\u003e\\\\u003e16,this[e+1]=t\\\\u003e\\\\u003e\\\\u003e8,this[e]=255\\\\u0026t):H(this,t,e,!0),e+4},p.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t\\\\u003e\\\\u003e\\\\u003e24,this[e+1]=t\\\\u003e\\\\u003e\\\\u003e16,this[e+2]=t\\\\u003e\\\\u003e\\\\u003e8,this[e+3]=255\\\\u0026t):H(this,t,e,!1),e+4},p.prototype.writeIntLE=function(t,e,i,r){if(t=+t,e|=0,!r){var n=Math.pow(2,8*i-1);U(this,t,e,i,n-1,-n)}var o=0,s=1,a=0;for(this[e]=255\\\\u0026t;++o\\\\u003ci\\\\u0026\\\\u0026(s*=256);)t\\\\u003c0\\\\u0026\\\\u00260===a\\\\u0026\\\\u00260!==this[e+o-1]\\\\u0026\\\\u0026(a=1),this[e+o]=(t/s\\\\u003e\\\\u003e0)-a\\\\u0026255;return e+i},p.prototype.writeIntBE=function(t,e,i,r){if(t=+t,e|=0,!r){var n=Math.pow(2,8*i-1);U(this,t,e,i,n-1,-n)}var o=i-1,s=1,a=0;for(this[e+o]=255\\\\u0026t;--o\\\\u003e=0\\\\u0026\\\\u0026(s*=256);)t\\\\u003c0\\\\u0026\\\\u00260===a\\\\u0026\\\\u00260!==this[e+o+1]\\\\u0026\\\\u0026(a=1),this[e+o]=(t/s\\\\u003e\\\\u003e0)-a\\\\u0026255;return e+i},p.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,1,127,-128),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t\\\\u003c0\\\\u0026\\\\u0026(t=255+t+1),this[e]=255\\\\u0026t,e+1},p.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=255\\\\u0026t,this[e+1]=t\\\\u003e\\\\u003e\\\\u003e8):G(this,t,e,!0),e+2},p.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=t\\\\u003e\\\\u003e\\\\u003e8,this[e+1]=255\\\\u0026t):G(this,t,e,!1),e+2},p.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[e]=255\\\\u0026t,this[e+1]=t\\\\u003e\\\\u003e\\\\u003e8,this[e+2]=t\\\\u003e\\\\u003e\\\\u003e16,this[e+3]=t\\\\u003e\\\\u003e\\\\u003e24):H(this,t,e,!0),e+4},p.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||U(this,t,e,4,2147483647,-2147483648),t\\\\u003c0\\\\u0026\\\\u0026(t=4294967295+t+1),p.TYPED_ARRAY_SUPPORT?(this[e]=t\\\\u003e\\\\u003e\\\\u003e24,this[e+1]=t\\\\u003e\\\\u003e\\\\u003e16,this[e+2]=t\\\\u003e\\\\u003e\\\\u003e8,this[e+3]=255\\\\u0026t):H(this,t,e,!1),e+4},p.prototype.writeFloatLE=function(t,e,i){return z(this,t,e,!0,i)},p.prototype.writeFloatBE=function(t,e,i){return z(this,t,e,!1,i)},p.prototype.writeDoubleLE=function(t,e,i){return N(this,t,e,!0,i)},p.prototype.writeDoubleBE=function(t,e,i){return N(this,t,e,!1,i)},p.prototype.copy=function(t,e,i,r){if(i||(i=0),r||0===r||(r=this.length),e\\\\u003e=t.length\\\\u0026\\\\u0026(e=t.length),e||(e=0),r\\\\u003e0\\\\u0026\\\\u0026r\\\\u003ci\\\\u0026\\\\u0026(r=i),r===i)return 0;if(0===t.length||0===this.length)return 0;if(e\\\\u003c0)throw new RangeError(\\\\\\\"targetStart out of bounds\\\\\\\");if(i\\\\u003c0||i\\\\u003e=this.length)throw new RangeError(\\\\\\\"sourceStart out of bounds\\\\\\\");if(r\\\\u003c0)throw new RangeError(\\\\\\\"sourceEnd out of bounds\\\\\\\");r\\\\u003ethis.length\\\\u0026\\\\u0026(r=this.length),t.length-e\\\\u003cr-i\\\\u0026\\\\u0026(r=t.length-e+i);var n,o=r-i;if(this===t\\\\u0026\\\\u0026i\\\\u003ce\\\\u0026\\\\u0026e\\\\u003cr)for(n=o-1;n\\\\u003e=0;--n)t[n+e]=this[n+i];else if(o\\\\u003c1e3||!p.TYPED_ARRAY_SUPPORT)for(n=0;n\\\\u003co;++n)t[n+e]=this[n+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},p.prototype.fill=function(t,e,i,r){if(\\\\\\\"string\\\\\\\"==typeof t){if(\\\\\\\"string\\\\\\\"==typeof e?(r=e,e=0,i=this.length):\\\\\\\"string\\\\\\\"==typeof i\\\\u0026\\\\u0026(r=i,i=this.length),1===t.length){var n=t.charCodeAt(0);n\\\\u003c256\\\\u0026\\\\u0026(t=n)}if(void 0!==r\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"!=typeof r)throw new TypeError(\\\\\\\"encoding must be a string\\\\\\\");if(\\\\\\\"string\\\\\\\"==typeof r\\\\u0026\\\\u0026!p.isEncoding(r))throw new TypeError(\\\\\\\"Unknown encoding: \\\\\\\"+r)}else\\\\\\\"number\\\\\\\"==typeof t\\\\u0026\\\\u0026(t\\\\u0026=255);if(e\\\\u003c0||this.length\\\\u003ce||this.length\\\\u003ci)throw new RangeError(\\\\\\\"Out of range index\\\\\\\");if(i\\\\u003c=e)return this;var o;if(e\\\\u003e\\\\u003e\\\\u003e=0,i=void 0===i?this.length:i\\\\u003e\\\\u003e\\\\u003e0,t||(t=0),\\\\\\\"number\\\\\\\"==typeof t)for(o=e;o\\\\u003ci;++o)this[o]=t;else{var s=x(t)?t:K(new p(t,r).toString()),a=s.length;for(o=0;o\\\\u003ci-e;++o)this[o+e]=s[o%a]}return this};var V=/[^+\\\\\\\\/0-9A-Za-z-_]/g;function q(t){return t\\\\u003c16?\\\\\\\"0\\\\\\\"+t.toString(16):t.toString(16)}function K(t,e){var i;e=e||1/0;for(var r=t.length,n=null,o=[],s=0;s\\\\u003cr;++s){if((i=t.charCodeAt(s))\\\\u003e55295\\\\u0026\\\\u0026i\\\\u003c57344){if(!n){if(i\\\\u003e56319){(e-=3)\\\\u003e-1\\\\u0026\\\\u0026o.push(239,191,189);continue}if(s+1===r){(e-=3)\\\\u003e-1\\\\u0026\\\\u0026o.push(239,191,189);continue}n=i;continue}if(i\\\\u003c56320){(e-=3)\\\\u003e-1\\\\u0026\\\\u0026o.push(239,191,189),n=i;continue}i=65536+(n-55296\\\\u003c\\\\u003c10|i-56320)}else n\\\\u0026\\\\u0026(e-=3)\\\\u003e-1\\\\u0026\\\\u0026o.push(239,191,189);if(n=null,i\\\\u003c128){if((e-=1)\\\\u003c0)break;o.push(i)}else if(i\\\\u003c2048){if((e-=2)\\\\u003c0)break;o.push(i\\\\u003e\\\\u003e6|192,63\\\\u0026i|128)}else if(i\\\\u003c65536){if((e-=3)\\\\u003c0)break;o.push(i\\\\u003e\\\\u003e12|224,i\\\\u003e\\\\u003e6\\\\u002663|128,63\\\\u0026i|128)}else{if(!(i\\\\u003c1114112))throw new Error(\\\\\\\"Invalid code point\\\\\\\");if((e-=4)\\\\u003c0)break;o.push(i\\\\u003e\\\\u003e18|240,i\\\\u003e\\\\u003e12\\\\u002663|128,i\\\\u003e\\\\u003e6\\\\u002663|128,63\\\\u0026i|128)}}return o}function J(t){return function(t){var e,i,a,h,c,l;o||s();var u=t.length;if(u%4\\\\u003e0)throw new Error(\\\\\\\"Invalid string. Length must be a multiple of 4\\\\\\\");c=\\\\\\\"=\\\\\\\"===t[u-2]?2:\\\\\\\"=\\\\\\\"===t[u-1]?1:0,l=new n(3*u/4-c),a=c\\\\u003e0?u-4:u;var f=0;for(e=0,i=0;e\\\\u003ca;e+=4,i+=3)h=r[t.charCodeAt(e)]\\\\u003c\\\\u003c18|r[t.charCodeAt(e+1)]\\\\u003c\\\\u003c12|r[t.charCodeAt(e+2)]\\\\u003c\\\\u003c6|r[t.charCodeAt(e+3)],l[f++]=h\\\\u003e\\\\u003e16\\\\u0026255,l[f++]=h\\\\u003e\\\\u003e8\\\\u0026255,l[f++]=255\\\\u0026h;return 2===c?(h=r[t.charCodeAt(e)]\\\\u003c\\\\u003c2|r[t.charCodeAt(e+1)]\\\\u003e\\\\u003e4,l[f++]=255\\\\u0026h):1===c\\\\u0026\\\\u0026(h=r[t.charCodeAt(e)]\\\\u003c\\\\u003c10|r[t.charCodeAt(e+1)]\\\\u003c\\\\u003c4|r[t.charCodeAt(e+2)]\\\\u003e\\\\u003e2,l[f++]=h\\\\u003e\\\\u003e8\\\\u0026255,l[f++]=255\\\\u0026h),l}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\\\\\\\\s+|\\\\\\\\s+$/g,\\\\\\\"\\\\\\\")}(t).replace(V,\\\\\\\"\\\\\\\")).length\\\\u003c2)return\\\\\\\"\\\\\\\";for(;t.length%4!=0;)t+=\\\\\\\"=\\\\\\\";return t}(t))}function Z(t,e,i,r){for(var n=0;n\\\\u003cr\\\\u0026\\\\u0026!(n+i\\\\u003e=e.length||n\\\\u003e=t.length);++n)e[n+i]=t[n];return n}function $(t){return!!t.constructor\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof t.constructor.isBuffer\\\\u0026\\\\u0026t.constructor.isBuffer(t)}function Q(t){if(t.__esModule)return t;var e=Object.defineProperty({},\\\\\\\"__esModule\\\\\\\",{value:!0});return Object.keys(t).forEach((function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})})),e}var tt={},et={},it=Q(t({__proto__:null,default:et},[et]));!function(t){\\\\n 8 | /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */\\\\n 9 | var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=document.implementation.createHTMLDocument(\\\\\\\"\\\\\\\"),T.window=window;else{var O=new it.JSDOM(decodeURIComponent(\\\\\\\"%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E\\\\\\\"),{features:{FetchExternalResources:[\\\\\\\"img\\\\\\\"]},resources:\\\\\\\"usable\\\\\\\"}).window;T.document=O.document,T.jsdomImplForWrapper=it.implForWrapper,T.nodeCanvas=it.Canvas,T.window=O,DOMParser=T.window.DOMParser}if(T.isTouchSupported=\\\\\\\"ontouchstart\\\\\\\"in T.window||\\\\\\\"ontouchstart\\\\\\\"in T.document||T.window\\\\u0026\\\\u0026T.window.navigator\\\\u0026\\\\u0026T.window.navigator.maxTouchPoints\\\\u003e0,T.isLikelyNode=void 0!==p\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"==typeof window,T.SHARED_ATTRIBUTES=[\\\\\\\"display\\\\\\\",\\\\\\\"transform\\\\\\\",\\\\\\\"fill\\\\\\\",\\\\\\\"fill-opacity\\\\\\\",\\\\\\\"fill-rule\\\\\\\",\\\\\\\"opacity\\\\\\\",\\\\\\\"stroke\\\\\\\",\\\\\\\"stroke-dasharray\\\\\\\",\\\\\\\"stroke-linecap\\\\\\\",\\\\\\\"stroke-dashoffset\\\\\\\",\\\\\\\"stroke-linejoin\\\\\\\",\\\\\\\"stroke-miterlimit\\\\\\\",\\\\\\\"stroke-opacity\\\\\\\",\\\\\\\"stroke-width\\\\\\\",\\\\\\\"id\\\\\\\",\\\\\\\"paint-order\\\\\\\",\\\\\\\"vector-effect\\\\\\\",\\\\\\\"instantiated_by_use\\\\\\\",\\\\\\\"clip-path\\\\\\\"],T.DPI=96,T.reNum=\\\\\\\"(?:[-+]?(?:\\\\\\\\\\\\\\\\d+|\\\\\\\\\\\\\\\\d*\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\d+)(?:[eE][-+]?\\\\\\\\\\\\\\\\d+)?)\\\\\\\",T.commaWsp=\\\\\\\"(?:\\\\\\\\\\\\\\\\s+,?\\\\\\\\\\\\\\\\s*|,\\\\\\\\\\\\\\\\s*)\\\\\\\",T.rePathCommand=/([-+]?((\\\\\\\\d+\\\\\\\\.\\\\\\\\d+)|((\\\\\\\\d+)|(\\\\\\\\.\\\\\\\\d+)))(?:[eE][-+]?\\\\\\\\d+)?)/gi,T.reNonWord=/[ \\\\\\\\n\\\\\\\\.,;!\\\\\\\\?\\\\\\\\-]/,T.fontPaths={},T.iMatrix=[1,0,0,1,0,0],T.svgNS=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\",T.perfLimitSizeTotal=2097152,T.maxCacheSideLimit=4096,T.minCacheSideLimit=256,T.charWidthsCache={},T.textureSize=2048,T.disableStyleCopyPaste=!1,T.enableGLFiltering=!0,T.devicePixelRatio=T.window.devicePixelRatio||T.window.webkitDevicePixelRatio||T.window.mozDevicePixelRatio||1,T.browserShadowBlurConstant=1,T.arcToSegmentsCache={},T.boundsOfCurveCache={},T.cachesBoundsOfCurve=!0,T.forceGLPutImageData=!1,T.initFilterBackend=function(){return T.enableGLFiltering\\\\u0026\\\\u0026T.isWebglSupported\\\\u0026\\\\u0026T.isWebglSupported(T.textureSize)?(console.log(\\\\\\\"max texture size: \\\\\\\"+T.maxTextureSize),new T.WebglFilterBackend({tileSize:T.textureSize})):T.Canvas2dFilterBackend?new T.Canvas2dFilterBackend:void 0},\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window\\\\u0026\\\\u0026(window.fabric=T),void 0===P)var P={};if(function(t){t.modifyEventListener=!1,t.modifySelectors=!1,t.configure=function(e){isFinite(e.modifyEventListener)\\\\u0026\\\\u0026(t.modifyEventListener=e.modifyEventListener),isFinite(e.modifySelectors)\\\\u0026\\\\u0026(t.modifySelectors=e.modifySelectors),!1===d\\\\u0026\\\\u0026t.modifyEventListener\\\\u0026\\\\u0026g(),!1===p\\\\u0026\\\\u0026t.modifySelectors\\\\u0026\\\\u0026v()},t.add=function(t,e,r,n){return i(t,e,r,n,\\\\\\\"add\\\\\\\")},t.remove=function(t,e,r,n){return i(t,e,r,n,\\\\\\\"remove\\\\\\\")},t.returnFalse=function(t){return!1},t.stop=function(t){t\\\\u0026\\\\u0026(t.stopPropagation\\\\u0026\\\\u0026t.stopPropagation(),t.cancelBubble=!0,t.cancelBubbleCount=0)},t.prevent=function(t){t\\\\u0026\\\\u0026(t.preventDefault?t.preventDefault():t.preventManipulation?t.preventManipulation():t.returnValue=!1)},t.cancel=function(e){t.stop(e),t.prevent(e)},t.blur=function(){var t=document.activeElement;if(t){var e=document.activeElement.nodeName;\\\\\\\"INPUT\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"TEXTAREA\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"true\\\\\\\"!==t.contentEditable||t.blur\\\\u0026\\\\u0026t.blur()}},t.getEventSupport=function(t,e){if(\\\\\\\"string\\\\\\\"==typeof t\\\\u0026\\\\u0026(e=t,t=window),(e=\\\\\\\"on\\\\\\\"+e)in t)return!0;if(t.setAttribute||(t=document.createElement(\\\\\\\"div\\\\\\\")),t.setAttribute\\\\u0026\\\\u0026t.removeAttribute){t.setAttribute(e,\\\\\\\"\\\\\\\");var i=\\\\\\\"function\\\\\\\"==typeof t[e];return void 0!==t[e]\\\\u0026\\\\u0026(t[e]=null),t.removeAttribute(e),i}};var e=function(t){if(!t||\\\\\\\"object\\\\\\\"!=typeof t)return t;var i=new t.constructor;for(var r in t)t[r]\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t[r]?i[r]=e(t[r]):i[r]=t[r];return i},i=function(o,s,c,d,g,p){if(d=d||{},\\\\\\\"[object Object]\\\\\\\"===String(o)){var v=o;if(o=v.target,delete v.target,!v.type||!v.listener){for(var m in v){var y=v[m];\\\\\\\"function\\\\\\\"!=typeof y\\\\u0026\\\\u0026(d[m]=y)}var _={};for(var b in v){m=b.split(\\\\\\\",\\\\\\\");var x=v[b],C={};for(var w in d)C[w]=d[w];if(\\\\\\\"function\\\\\\\"==typeof x)c=x;else{if(\\\\\\\"function\\\\\\\"!=typeof x.listener)continue;c=x.listener;for(var w in x)\\\\\\\"function\\\\\\\"!=typeof x[w]\\\\u0026\\\\u0026(C[w]=x[w])}for(var S=0;S\\\\u003cm.length;S++)_[b]=P.add(o,m[S],c,C,g)}return _}for(var b in s=v.type,delete v.type,c=v.listener,delete v.listener,v)d[b]=v[b]}if(o\\\\u0026\\\\u0026s\\\\u0026\\\\u0026c){if(\\\\\\\"string\\\\\\\"==typeof o\\\\u0026\\\\u0026\\\\\\\"ready\\\\\\\"===s){if(!window.eventjs_stallOnReady){var T=(new Date).getTime(),O=d.timeout,E=d.interval||1e3/60,k=window.setInterval((function(){(new Date).getTime()-T\\\\u003eO\\\\u0026\\\\u0026window.clearInterval(k),document.querySelector(o)\\\\u0026\\\\u0026(window.clearInterval(k),setTimeout(c,1))}),E);return}s=\\\\\\\"load\\\\\\\",o=window}if(\\\\\\\"string\\\\\\\"==typeof o){if(0===(o=document.querySelectorAll(o)).length)return n(\\\\\\\"Missing target on listener!\\\\\\\",arguments);1===o.length\\\\u0026\\\\u0026(o=o[0])}var A,D={};if(o.length\\\\u003e0\\\\u0026\\\\u0026o!==window){for(var M=0,j=o.length;M\\\\u003cj;M++)(A=i(o[M],s,c,e(d),g))\\\\u0026\\\\u0026(D[M]=A);return r(D)}if(\\\\\\\"string\\\\\\\"==typeof s\\\\u0026\\\\u0026(-1!==(s=s.toLowerCase()).indexOf(\\\\\\\" \\\\\\\")?s=s.split(\\\\\\\" \\\\\\\"):-1!==s.indexOf(\\\\\\\",\\\\\\\")\\\\u0026\\\\u0026(s=s.split(\\\\\\\",\\\\\\\"))),\\\\\\\"string\\\\\\\"!=typeof s){if(\\\\\\\"number\\\\\\\"==typeof s.length)for(var F=0,L=s.length;F\\\\u003cL;F++)(A=i(o,s[F],c,e(d),g))\\\\u0026\\\\u0026(D[s[F]]=A);else for(var b in s)(A=\\\\\\\"function\\\\\\\"==typeof s[b]?i(o,b,s[b],e(d),g):i(o,b,s[b].listener,e(s[b]),g))\\\\u0026\\\\u0026(D[b]=A);return r(D)}if(0===s.indexOf(\\\\\\\"on\\\\\\\")\\\\u0026\\\\u0026(s=s.substr(2)),\\\\\\\"object\\\\\\\"!=typeof o)return n(\\\\\\\"Target is not defined!\\\\\\\",arguments);if(\\\\\\\"function\\\\\\\"!=typeof c)return n(\\\\\\\"Listener is not a function!\\\\\\\",arguments);var I=d.useCapture||!1,R=l(o)+\\\\\\\".\\\\\\\"+l(c)+\\\\\\\".\\\\\\\"+(I?1:0);if(t.Gesture\\\\u0026\\\\u0026t.Gesture._gestureHandlers[s]){if(R=s+R,\\\\\\\"remove\\\\\\\"===g){if(!h[R])return;h[R].remove(),delete h[R]}else if(\\\\\\\"add\\\\\\\"===g){if(h[R])return h[R].add(),h[R];if(d.useCall\\\\u0026\\\\u0026!t.modifyEventListener){var B=c;c=function(t,e){for(var i in e)t[i]=e[i];return B.call(o,t)}}d.gesture=s,d.target=o,d.listener=c,d.fromOverwrite=p,h[R]=t.proxy[s](d)}return h[R]}var Y,X=a(s);for(S=0;S\\\\u003cX.length;S++)if(Y=(s=X[S])+\\\\\\\".\\\\\\\"+R,\\\\\\\"remove\\\\\\\"===g){if(!h[Y])continue;o[f](s,c,I),delete h[Y]}else if(\\\\\\\"add\\\\\\\"===g){if(h[Y])return h[Y];o[u](s,c,I),h[Y]={id:Y,type:s,target:o,listener:c,remove:function(){for(var e=0;e\\\\u003cX.length;e++)t.remove(o,X[e],c,d)}}}return h[Y]}},r=function(t){return{remove:function(){for(var e in t)t[e].remove()},add:function(){for(var e in t)t[e].add()}}},n=function(t,e){\\\\\\\"undefined\\\\\\\"!=typeof console\\\\u0026\\\\u0026void 0!==console.error\\\\u0026\\\\u0026console.error(t,e)},o={msPointer:[\\\\\\\"MSPointerDown\\\\\\\",\\\\\\\"MSPointerMove\\\\\\\",\\\\\\\"MSPointerUp\\\\\\\"],touch:[\\\\\\\"touchstart\\\\\\\",\\\\\\\"touchmove\\\\\\\",\\\\\\\"touchend\\\\\\\"],mouse:[\\\\\\\"mousedown\\\\\\\",\\\\\\\"mousemove\\\\\\\",\\\\\\\"mouseup\\\\\\\"]},s={MSPointerDown:0,MSPointerMove:1,MSPointerUp:2,touchstart:0,touchmove:1,touchend:2,mousedown:0,mousemove:1,mouseup:2};t.supports={},window.navigator.msPointerEnabled\\\\u0026\\\\u0026(t.supports.msPointer=!0),t.getEventSupport(\\\\\\\"touchstart\\\\\\\")\\\\u0026\\\\u0026(t.supports.touch=!0),t.getEventSupport(\\\\\\\"mousedown\\\\\\\")\\\\u0026\\\\u0026(t.supports.mouse=!0);var a=function(e){var i=document.addEventListener?\\\\\\\"\\\\\\\":\\\\\\\"on\\\\\\\",r=s[e];if(isFinite(r)){var n=[];for(var a in t.supports)n.push(i+o[a][r]);return n}return[i+e]},h={},c=0,l=function(t){return t===window?\\\\\\\"#window\\\\\\\":t===document?\\\\\\\"#document\\\\\\\":(t.uniqueID||(t.uniqueID=\\\\\\\"e\\\\\\\"+c++),t.uniqueID)},u=document.addEventListener?\\\\\\\"addEventListener\\\\\\\":\\\\\\\"attachEvent\\\\\\\",f=document.removeEventListener?\\\\\\\"removeEventListener\\\\\\\":\\\\\\\"detachEvent\\\\\\\";t.createPointerEvent=function(e,i,r){var n=i.gesture,o=i.target,s=e.changedTouches||t.proxy.getCoords(e);if(s.length){var a=s[0];i.pointers=r?[]:s,i.pageX=a.pageX,i.pageY=a.pageY,i.x=i.pageX,i.y=i.pageY}var h=document.createEvent(\\\\\\\"Event\\\\\\\");for(var c in h.initEvent(n,!0,!0),h.originalEvent=e,i)\\\\\\\"target\\\\\\\"!==c\\\\u0026\\\\u0026(h[c]=i[c]);var l=h.type;t.Gesture\\\\u0026\\\\u0026t.Gesture._gestureHandlers[l]\\\\u0026\\\\u0026i.oldListener.call(o,h,i,!1)};var d=!1,g=function(){if(window.HTMLElement){var e=function(e){var r=function(r){var n=r+\\\\\\\"EventListener\\\\\\\",o=e[n];e[n]=function(e,n,s){if(t.Gesture\\\\u0026\\\\u0026t.Gesture._gestureHandlers[e]){var h=s;\\\\\\\"object\\\\\\\"==typeof s?h.useCall=!0:h={useCall:!0,useCapture:s},i(this,e,n,h,r,!0)}else for(var c=a(e),l=0;l\\\\u003cc.length;l++)o.call(this,c[l],n,s)}};r(\\\\\\\"add\\\\\\\"),r(\\\\\\\"remove\\\\\\\")};navigator.userAgent.match(/Firefox/)?(e(HTMLDivElement.prototype),e(HTMLCanvasElement.prototype)):e(HTMLElement.prototype),e(document),e(window)}},p=!1,v=function(){var t=NodeList.prototype;t.removeEventListener=function(t,e,i){for(var r=0,n=this.length;r\\\\u003cn;r++)this[r].removeEventListener(t,e,i)},t.addEventListener=function(t,e,i){for(var r=0,n=this.length;r\\\\u003cn;r++)this[r].addEventListener(t,e,i)}}}(P),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){t.pointerSetup=function(t,e){t.target=t.target||window,t.doc=t.target.ownerDocument||t.target,t.minFingers=t.minFingers||t.fingers||1,t.maxFingers=t.maxFingers||t.fingers||1/0,t.position=t.position||\\\\\\\"relative\\\\\\\",delete t.fingers,(e=e||{}).enabled=!0,e.gesture=t.gesture,e.target=t.target,e.env=t.env,P.modifyEventListener\\\\u0026\\\\u0026t.fromOverwrite\\\\u0026\\\\u0026(t.oldListener=t.listener,t.listener=P.createPointerEvent);var i=0,r=0===e.gesture.indexOf(\\\\\\\"pointer\\\\\\\")\\\\u0026\\\\u0026P.modifyEventListener?\\\\\\\"pointer\\\\\\\":\\\\\\\"mouse\\\\\\\";return t.oldListener\\\\u0026\\\\u0026(e.oldListener=t.oldListener),e.listener=t.listener,e.proxy=function(i){e.defaultListener=t.listener,t.listener=i,i(t.event,e)},e.add=function(){!0!==e.enabled\\\\u0026\\\\u0026(t.onPointerDown\\\\u0026\\\\u0026P.add(t.target,r+\\\\\\\"down\\\\\\\",t.onPointerDown),t.onPointerMove\\\\u0026\\\\u0026P.add(t.doc,r+\\\\\\\"move\\\\\\\",t.onPointerMove),t.onPointerUp\\\\u0026\\\\u0026P.add(t.doc,r+\\\\\\\"up\\\\\\\",t.onPointerUp),e.enabled=!0)},e.remove=function(){!1!==e.enabled\\\\u0026\\\\u0026(t.onPointerDown\\\\u0026\\\\u0026P.remove(t.target,r+\\\\\\\"down\\\\\\\",t.onPointerDown),t.onPointerMove\\\\u0026\\\\u0026P.remove(t.doc,r+\\\\\\\"move\\\\\\\",t.onPointerMove),t.onPointerUp\\\\u0026\\\\u0026P.remove(t.doc,r+\\\\\\\"up\\\\\\\",t.onPointerUp),e.reset(),e.enabled=!1)},e.pause=function(e){!t.onPointerMove||e\\\\u0026\\\\u0026!e.move||P.remove(t.doc,r+\\\\\\\"move\\\\\\\",t.onPointerMove),!t.onPointerUp||e\\\\u0026\\\\u0026!e.up||P.remove(t.doc,r+\\\\\\\"up\\\\\\\",t.onPointerUp),i=t.fingers,t.fingers=0},e.resume=function(e){!t.onPointerMove||e\\\\u0026\\\\u0026!e.move||P.add(t.doc,r+\\\\\\\"move\\\\\\\",t.onPointerMove),!t.onPointerUp||e\\\\u0026\\\\u0026!e.up||P.add(t.doc,r+\\\\\\\"up\\\\\\\",t.onPointerUp),t.fingers=i},e.reset=function(){t.tracker={},t.fingers=0},e};var e=P.supports;P.isMouse=!!e.mouse,P.isMSPointer=!!e.touch,P.isTouch=!!e.msPointer,t.pointerStart=function(e,i,r){var n=(e.type||\\\\\\\"mousedown\\\\\\\").toUpperCase();0===n.indexOf(\\\\\\\"MOUSE\\\\\\\")?(P.isMouse=!0,P.isTouch=!1,P.isMSPointer=!1):0===n.indexOf(\\\\\\\"TOUCH\\\\\\\")?(P.isMouse=!1,P.isTouch=!0,P.isMSPointer=!1):0===n.indexOf(\\\\\\\"MSPOINTER\\\\\\\")\\\\u0026\\\\u0026(P.isMouse=!1,P.isTouch=!1,P.isMSPointer=!0);var o=function(t,e){var i=r.bbox,n=a[e]={};switch(r.position){case\\\\\\\"absolute\\\\\\\":n.offsetX=0,n.offsetY=0;break;case\\\\\\\"differenceFromLast\\\\\\\":case\\\\\\\"difference\\\\\\\":n.offsetX=t.pageX,n.offsetY=t.pageY;break;case\\\\\\\"move\\\\\\\":n.offsetX=t.pageX-i.x1,n.offsetY=t.pageY-i.y1;break;default:n.offsetX=i.x1-i.scrollLeft,n.offsetY=i.y1-i.scrollTop}var o=t.pageX-n.offsetX,s=t.pageY-n.offsetY;n.rotation=0,n.scale=1,n.startTime=n.moveTime=(new Date).getTime(),n.move={x:o,y:s},n.start={x:o,y:s},r.fingers++};r.event=e,i.defaultListener\\\\u0026\\\\u0026(r.listener=i.defaultListener,delete i.defaultListener);for(var s=!r.fingers,a=r.tracker,h=e.changedTouches||t.getCoords(e),c=h.length,l=0;l\\\\u003cc;l++){var u=h[l],f=u.identifier||1/0;if(r.fingers){if(r.fingers\\\\u003e=r.maxFingers){var d=[];for(var f in r.tracker)d.push(f);return i.identifier=d.join(\\\\\\\",\\\\\\\"),s}for(var g in a)if(a[g].up){delete a[g],o(u,f),r.cancel=!0;break}if(a[f])continue;o(u,f)}else a=r.tracker={},i.bbox=r.bbox=t.getBoundingBox(r.target),r.fingers=0,r.cancel=!1,o(u,f)}d=[];for(var f in r.tracker)d.push(f);return i.identifier=d.join(\\\\\\\",\\\\\\\"),s},t.pointerEnd=function(t,e,i,r){for(var n=t.touches||[],o=n.length,s={},a=0;a\\\\u003co;a++){s[(h=n[a].identifier)||1/0]=!0}for(var h in i.tracker){var c=i.tracker[h];s[h]||c.up||(r\\\\u0026\\\\u0026r({pageX:c.pageX,pageY:c.pageY,changedTouches:[{pageX:c.pageX,pageY:c.pageY,identifier:\\\\\\\"Infinity\\\\\\\"===h?1/0:h}]},\\\\\\\"up\\\\\\\"),c.up=!0,i.fingers--)}if(0!==i.fingers)return!1;var l=[];for(var h in i.gestureFingers=0,i.tracker)i.gestureFingers++,l.push(h);return e.identifier=l.join(\\\\\\\",\\\\\\\"),!0},t.getCoords=function(e){return void 0!==e.pageX?t.getCoords=function(t){return Array({type:\\\\\\\"mouse\\\\\\\",x:t.pageX,y:t.pageY,pageX:t.pageX,pageY:t.pageY,identifier:t.pointerId||1/0})}:t.getCoords=function(t){var e=document.documentElement;return t=t||window.event,Array({type:\\\\\\\"mouse\\\\\\\",x:t.clientX+e.scrollLeft,y:t.clientY+e.scrollTop,pageX:t.clientX+e.scrollLeft,pageY:t.clientY+e.scrollTop,identifier:1/0})},t.getCoords(e)},t.getCoord=function(e){if(\\\\\\\"ontouchstart\\\\\\\"in window){var i=0,r=0;t.getCoord=function(t){var e=t.changedTouches;return e\\\\u0026\\\\u0026e.length?{x:i=e[0].pageX,y:r=e[0].pageY}:{x:i,y:r}}}else void 0!==e.pageX\\\\u0026\\\\u0026void 0!==e.pageY?t.getCoord=function(t){return{x:t.pageX,y:t.pageY}}:t.getCoord=function(t){var e=document.documentElement;return{x:(t=t||window.event).clientX+e.scrollLeft,y:t.clientY+e.scrollTop}};return t.getCoord(e)};var i,r,n,o=function(t,e){var i=parseFloat(t.getPropertyValue(e),10);return isFinite(i)?i:0};return t.getBoundingBox=function(t){t!==window\\\\u0026\\\\u0026t!==document||(t=document.body);var e={},i=t.getBoundingClientRect();if(e.width=i.width,e.height=i.height,e.x1=i.left,e.y1=i.top,e.scaleX=i.width/t.offsetWidth||1,e.scaleY=i.height/t.offsetHeight||1,e.scrollLeft=0,e.scrollTop=0,!1===(\\\\\\\"border-box\\\\\\\"===(c=window.getComputedStyle(t)).getPropertyValue(\\\\\\\"box-sizing\\\\\\\"))){var r=o(c,\\\\\\\"border-left-width\\\\\\\"),n=o(c,\\\\\\\"border-right-width\\\\\\\"),s=o(c,\\\\\\\"border-bottom-width\\\\\\\"),a=o(c,\\\\\\\"border-top-width\\\\\\\");e.border=[r,n,a,s],e.x1+=r,e.y1+=a,e.width-=n+r,e.height-=s+a}e.x2=e.x1+e.width,e.y2=e.y1+e.height;for(var h=\\\\\\\"fixed\\\\\\\"===(l=c.getPropertyValue(\\\\\\\"position\\\\\\\"))?t:t.parentNode;null!==h\\\\u0026\\\\u0026h!==document.body\\\\u0026\\\\u0026void 0!==h.scrollTop;){var c,l;if(\\\\\\\"absolute\\\\\\\"===(l=(c=window.getComputedStyle(h)).getPropertyValue(\\\\\\\"position\\\\\\\")));else{if(\\\\\\\"fixed\\\\\\\"===l){e.scrollTop-=h.parentNode.scrollTop,e.scrollLeft-=h.parentNode.scrollLeft;break}e.scrollLeft+=h.scrollLeft,e.scrollTop+=h.scrollTop}h=h.parentNode}return e.scrollBodyLeft=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,e.scrollBodyTop=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,e.scrollLeft-=e.scrollBodyLeft,e.scrollTop-=e.scrollBodyTop,e},r=navigator.userAgent.toLowerCase(),n=-1!==r.indexOf(\\\\\\\"macintosh\\\\\\\"),i=n\\\\u0026\\\\u0026-1!==r.indexOf(\\\\\\\"khtml\\\\\\\")?{91:!0,93:!0}:n\\\\u0026\\\\u0026-1!==r.indexOf(\\\\\\\"firefox\\\\\\\")?{224:!0}:{17:!0},(t.metaTrackerReset=function(){P.fnKey=t.fnKey=!1,P.metaKey=t.metaKey=!1,P.escKey=t.escKey=!1,P.ctrlKey=t.ctrlKey=!1,P.shiftKey=t.shiftKey=!1,P.altKey=t.altKey=!1})(),t.metaTracker=function(e){var r=\\\\\\\"keydown\\\\\\\"===e.type;27===e.keyCode\\\\u0026\\\\u0026(P.escKey=t.escKey=r),i[e.keyCode]\\\\u0026\\\\u0026(P.metaKey=t.metaKey=r),P.ctrlKey=t.ctrlKey=e.ctrlKey,P.shiftKey=t.shiftKey=e.shiftKey,P.altKey=t.altKey=e.altKey},t}(P.proxy),void 0===P)P={};if(P.MutationObserver=(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,i=!e\\\\u0026\\\\u0026function(){var t=document.createElement(\\\\\\\"p\\\\\\\"),e=!1,i=function(){e=!0};if(t.addEventListener)t.addEventListener(\\\\\\\"DOMAttrModified\\\\\\\",i,!1);else{if(!t.attachEvent)return!1;t.attachEvent(\\\\\\\"onDOMAttrModified\\\\\\\",i)}return t.setAttribute(\\\\\\\"id\\\\\\\",\\\\\\\"target\\\\\\\"),e}(),function(t,r){e?new e((function(t){t.forEach((function(t){r.call(t.target,t.attributeName)}))})).observe(t,{subtree:!1,attributes:!0}):i?P.add(t,\\\\\\\"DOMAttrModified\\\\\\\",(function(e){r.call(t,e.attrName)})):\\\\\\\"onpropertychange\\\\\\\"in document.body\\\\u0026\\\\u0026P.add(t,\\\\\\\"propertychange\\\\\\\",(function(e){r.call(t,window.event.propertyName)}))}),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=((r=P.proxy).click=function(t){t.gesture=t.gesture||\\\\\\\"click\\\\\\\",t.maxFingers=t.maxFingers||t.fingers||1,t.onPointerDown=function(i){r.pointerStart(i,e,t)\\\\u0026\\\\u0026P.add(t.target,\\\\\\\"mouseup\\\\\\\",t.onPointerUp)},t.onPointerUp=function(i){if(r.pointerEnd(i,e,t)){P.remove(t.target,\\\\\\\"mouseup\\\\\\\",t.onPointerUp);var n=(i.changedTouches||r.getCoords(i))[0],o=t.bbox,s=r.getBoundingBox(t.target),a=n.pageY-s.scrollBodyTop,h=n.pageX-s.scrollBodyLeft;if(h\\\\u003eo.x1\\\\u0026\\\\u0026a\\\\u003eo.y1\\\\u0026\\\\u0026h\\\\u003co.x2\\\\u0026\\\\u0026a\\\\u003co.y2\\\\u0026\\\\u0026o.scrollTop===s.scrollTop){for(var c in t.tracker)break;var l=t.tracker[c];e.x=l.start.x,e.y=l.start.y,t.listener(i,e)}}};var e=r.pointerSetup(t);return e.state=\\\\\\\"click\\\\\\\",P.add(t.target,\\\\\\\"mousedown\\\\\\\",t.onPointerDown),e},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.click=r.click,r),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.dbltap=t.dblclick=function(e){e.gesture=e.gesture||\\\\\\\"dbltap\\\\\\\",e.maxFingers=e.maxFingers||e.fingers||1;var i,r,n,o,s;e.onPointerDown=function(h){var c=h.changedTouches||t.getCoords(h);i\\\\u0026\\\\u0026!r?(s=c[0],r=(new Date).getTime()-i):(o=c[0],i=(new Date).getTime(),r=0,clearTimeout(n),n=setTimeout((function(){i=0}),700)),t.pointerStart(h,a,e)\\\\u0026\\\\u0026(P.add(e.target,\\\\\\\"mousemove\\\\\\\",e.onPointerMove).listener(h),P.add(e.target,\\\\\\\"mouseup\\\\\\\",e.onPointerUp))},e.onPointerMove=function(a){if(i\\\\u0026\\\\u0026!r){var h=a.changedTouches||t.getCoords(a);s=h[0]}var c=e.bbox,l=s.pageX-c.x1,u=s.pageY-c.y1;l\\\\u003e0\\\\u0026\\\\u0026l\\\\u003cc.width\\\\u0026\\\\u0026u\\\\u003e0\\\\u0026\\\\u0026u\\\\u003cc.height\\\\u0026\\\\u0026Math.abs(s.pageX-o.pageX)\\\\u003c=25\\\\u0026\\\\u0026Math.abs(s.pageY-o.pageY)\\\\u003c=25||(P.remove(e.target,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),clearTimeout(n),i=r=0)},e.onPointerUp=function(o){if(t.pointerEnd(o,a,e)\\\\u0026\\\\u0026(P.remove(e.target,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.remove(e.target,\\\\\\\"mouseup\\\\\\\",e.onPointerUp)),i\\\\u0026\\\\u0026r){if(r\\\\u003c=700){for(var s in a.state=e.gesture,e.tracker)break;var h=e.tracker[s];a.x=h.start.x,a.y=h.start.y,e.listener(o,a)}clearTimeout(n),i=r=0}};var a=t.pointerSetup(e);return a.state=\\\\\\\"dblclick\\\\\\\",P.add(e.target,\\\\\\\"mousedown\\\\\\\",e.onPointerDown),a},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.dbltap=t.dbltap,P.Gesture._gestureHandlers.dblclick=t.dblclick,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.dragElement=function(e,i){t.drag({event:i,target:e,position:\\\\\\\"move\\\\\\\",listener:function(t,i){e.style.left=i.x+\\\\\\\"px\\\\\\\",e.style.top=i.y+\\\\\\\"px\\\\\\\",P.prevent(t)}})},t.drag=function(e){e.gesture=\\\\\\\"drag\\\\\\\",e.onPointerDown=function(r){t.pointerStart(r,i,e)\\\\u0026\\\\u0026(e.monitor||(P.add(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.add(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp))),e.onPointerMove(r,\\\\\\\"down\\\\\\\")},e.onPointerMove=function(r,n){if(!e.tracker)return e.onPointerDown(r);e.bbox;for(var o=r.changedTouches||t.getCoords(r),s=o.length,a=0;a\\\\u003cs;a++){var h=o[a],c=h.identifier||1/0,l=e.tracker[c];l\\\\u0026\\\\u0026(l.pageX=h.pageX,l.pageY=h.pageY,i.state=n||\\\\\\\"move\\\\\\\",i.identifier=c,i.start=l.start,i.fingers=e.fingers,\\\\\\\"differenceFromLast\\\\\\\"===e.position?(i.x=l.pageX-l.offsetX,i.y=l.pageY-l.offsetY,l.offsetX=l.pageX,l.offsetY=l.pageY):(i.x=l.pageX-l.offsetX,i.y=l.pageY-l.offsetY),e.listener(r,i))}},e.onPointerUp=function(r){t.pointerEnd(r,i,e,e.onPointerMove)\\\\u0026\\\\u0026(e.monitor||(P.remove(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.remove(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp)))};var i=t.pointerSetup(e);return e.event?e.onPointerDown(e.event):(P.add(e.target,\\\\\\\"mousedown\\\\\\\",e.onPointerDown),e.monitor\\\\u0026\\\\u0026(P.add(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.add(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp))),i},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.drag=t.drag,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){var e=Math.PI/180,i=function(t,e){var i=0,r=0,n=0;for(var o in e){var s=e[o];s.up||(i+=s.move.x,r+=s.move.y,n++)}return t.x=i/=n,t.y=r/=n,t};return t.gesture=function(r){r.gesture=r.gesture||\\\\\\\"gesture\\\\\\\",r.minFingers=r.minFingers||r.fingers||2,r.onPointerDown=function(e){var o=r.fingers;if(t.pointerStart(e,n,r)\\\\u0026\\\\u0026(P.add(r.doc,\\\\\\\"mousemove\\\\\\\",r.onPointerMove),P.add(r.doc,\\\\\\\"mouseup\\\\\\\",r.onPointerUp)),r.fingers===r.minFingers\\\\u0026\\\\u0026o!==r.fingers){n.fingers=r.minFingers,n.scale=1,n.rotation=0,n.state=\\\\\\\"start\\\\\\\";var s=\\\\\\\"\\\\\\\";for(var a in r.tracker)s+=a;n.identifier=parseInt(s),i(n,r.tracker),r.listener(e,n)}},r.onPointerMove=function(o,s){for(var a=r.bbox,h=r.tracker,c=(f=o.changedTouches||t.getCoords(o)).length,l=0;l\\\\u003cc;l++){var u=h[p=(v=f[l]).identifier||1/0];u\\\\u0026\\\\u0026(u.move.x=v.pageX-a.x1,u.move.y=v.pageY-a.y1)}if(!(r.fingers\\\\u003cr.minFingers)){var f=[],d=0,g=0;for(var p in i(n,h),h){var v;if(!(v=h[p]).up){var m=v.start;if(!m.distance){var y=m.x-n.x,_=m.y-n.y;m.distance=Math.sqrt(y*y+_*_),m.angle=Math.atan2(y,_)/e}y=v.move.x-n.x,_=v.move.y-n.y;d+=Math.sqrt(y*y+_*_)/m.distance;var b=Math.atan2(y,_)/e,x=(m.angle-b+360)%360-180;v.DEG2=v.DEG1,v.DEG1=x\\\\u003e0?x:-x,void 0!==v.DEG2\\\\u0026\\\\u0026(x\\\\u003e0?v.rotation+=v.DEG1-v.DEG2:v.rotation-=v.DEG1-v.DEG2,g+=v.rotation),f.push(v.move)}}n.touches=f,n.fingers=r.fingers,n.scale=d/r.fingers,n.rotation=g/r.fingers,n.state=\\\\\\\"change\\\\\\\",r.listener(o,n)}},r.onPointerUp=function(e){var i=r.fingers;t.pointerEnd(e,n,r)\\\\u0026\\\\u0026(P.remove(r.doc,\\\\\\\"mousemove\\\\\\\",r.onPointerMove),P.remove(r.doc,\\\\\\\"mouseup\\\\\\\",r.onPointerUp)),i===r.minFingers\\\\u0026\\\\u0026r.fingers\\\\u003cr.minFingers\\\\u0026\\\\u0026(n.fingers=r.fingers,n.state=\\\\\\\"end\\\\\\\",r.listener(e,n))};var n=t.pointerSetup(r);return P.add(r.target,\\\\\\\"mousedown\\\\\\\",r.onPointerDown),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.gesture=t.gesture,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.pointerdown=t.pointermove=t.pointerup=function(e){if(e.gesture=e.gesture||\\\\\\\"pointer\\\\\\\",!e.target.isPointerEmitter){var i=!0;e.onPointerDown=function(t){i=!1,r.gesture=\\\\\\\"pointerdown\\\\\\\",e.listener(t,r)},e.onPointerMove=function(t){r.gesture=\\\\\\\"pointermove\\\\\\\",e.listener(t,r,i)},e.onPointerUp=function(t){i=!0,r.gesture=\\\\\\\"pointerup\\\\\\\",e.listener(t,r,!0)};var r=t.pointerSetup(e);return P.add(e.target,\\\\\\\"mousedown\\\\\\\",e.onPointerDown),P.add(e.target,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.add(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp),e.target.isPointerEmitter=!0,r}},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.pointerdown=t.pointerdown,P.Gesture._gestureHandlers.pointermove=t.pointermove,P.Gesture._gestureHandlers.pointerup=t.pointerup,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.shake=function(t){var e={gesture:\\\\\\\"devicemotion\\\\\\\",acceleration:{},accelerationIncludingGravity:{},target:t.target,listener:t.listener,remove:function(){window.removeEventListener(\\\\\\\"devicemotion\\\\\\\",o,!1)}},i=(new Date).getTime(),r={x:0,y:0,z:0},n={x:{count:0,value:0},y:{count:0,value:0},z:{count:0,value:0}},o=function(o){var s=.8,a=o.accelerationIncludingGravity;if(r.x=s*r.x+(1-s)*a.x,r.y=s*r.y+(1-s)*a.y,r.z=s*r.z+(1-s)*a.z,e.accelerationIncludingGravity=r,e.acceleration.x=a.x-r.x,e.acceleration.y=a.y-r.y,e.acceleration.z=a.z-r.z,\\\\\\\"devicemotion\\\\\\\"!==t.gesture)for(var h=(new Date).getTime(),c=0;c\\\\u003c3;c++){var l=\\\\\\\"xyz\\\\\\\"[c],u=e.acceleration[l],f=n[l],d=Math.abs(u);if(!(h-i\\\\u003c1e3)\\\\u0026\\\\u0026d\\\\u003e4){var g=h*u/d,p=Math.abs(g+f.value);f.value\\\\u0026\\\\u0026p\\\\u003c200?(f.value=g,f.count++,3===f.count\\\\u0026\\\\u0026(t.listener(o,e),i=h,f.value=0,f.count=0)):(f.value=g,f.count=1)}}else t.listener(o,e)};if(window.addEventListener)return window.addEventListener(\\\\\\\"devicemotion\\\\\\\",o,!1),e},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.shake=t.shake,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){var e=Math.PI/180;return t.swipe=function(i){i.snap=i.snap||90,i.threshold=i.threshold||1,i.gesture=i.gesture||\\\\\\\"swipe\\\\\\\",i.onPointerDown=function(e){t.pointerStart(e,r,i)\\\\u0026\\\\u0026(P.add(i.doc,\\\\\\\"mousemove\\\\\\\",i.onPointerMove).listener(e),P.add(i.doc,\\\\\\\"mouseup\\\\\\\",i.onPointerUp))},i.onPointerMove=function(e){for(var r=e.changedTouches||t.getCoords(e),n=r.length,o=0;o\\\\u003cn;o++){var s=r[o],a=s.identifier||1/0,h=i.tracker[a];h\\\\u0026\\\\u0026(h.move.x=s.pageX,h.move.y=s.pageY,h.moveTime=(new Date).getTime())}},i.onPointerUp=function(n){if(t.pointerEnd(n,r,i)){var o,s;P.remove(i.doc,\\\\\\\"mousemove\\\\\\\",i.onPointerMove),P.remove(i.doc,\\\\\\\"mouseup\\\\\\\",i.onPointerUp);var a={x:0,y:0},h=0,c=0,l=0;for(var u in i.tracker){var f=i.tracker[u],d=f.move.x-f.start.x,g=f.move.y-f.start.y;h+=f.move.x,c+=f.move.y,a.x+=f.start.x,a.y+=f.start.y,l++;var p=Math.sqrt(d*d+g*g),v=f.moveTime-f.startTime,m=Math.atan2(d,g)/e+180,y=v?p/v:0;if(void 0===s)s=m,o=y;else{if(!(Math.abs(m-s)\\\\u003c=20))return;s=(s+m)/2,o=(o+y)/2}}var _=i.gestureFingers;i.minFingers\\\\u003c=_\\\\u0026\\\\u0026i.maxFingers\\\\u003e=_\\\\u0026\\\\u0026o\\\\u003ei.threshold\\\\u0026\\\\u0026(a.x/=l,a.y/=l,r.start=a,r.x=h/l,r.y=c/l,r.angle=-(((s/i.snap+.5\\\\u003e\\\\u003e0)*i.snap||360)-360),r.velocity=o,r.fingers=_,r.state=\\\\\\\"swipe\\\\\\\",i.listener(n,r))}};var r=t.pointerSetup(i);return P.add(i.target,\\\\\\\"mousedown\\\\\\\",i.onPointerDown),r},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.swipe=t.swipe,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.longpress=function(e){return e.gesture=\\\\\\\"longpress\\\\\\\",t.tap(e)},t.tap=function(e){var i,r;e.delay=e.delay||500,e.timeout=e.timeout||250,e.driftDeviance=e.driftDeviance||10,e.gesture=e.gesture||\\\\\\\"tap\\\\\\\",e.onPointerDown=function(o){if(t.pointerStart(o,n,e)){if(i=(new Date).getTime(),P.add(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove).listener(o),P.add(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp),\\\\\\\"longpress\\\\\\\"!==e.gesture)return;r=setTimeout((function(){if(!(o.cancelBubble\\\\u0026\\\\u0026++o.cancelBubbleCount\\\\u003e1)){var t=0;for(var i in e.tracker){var r=e.tracker[i];if(!0===r.end)return;if(e.cancel)return;t++}e.minFingers\\\\u003c=t\\\\u0026\\\\u0026e.maxFingers\\\\u003e=t\\\\u0026\\\\u0026(n.state=\\\\\\\"start\\\\\\\",n.fingers=t,n.x=r.start.x,n.y=r.start.y,e.listener(o,n))}}),e.delay)}},e.onPointerMove=function(i){for(var r=e.bbox,n=i.changedTouches||t.getCoords(i),o=n.length,s=0;s\\\\u003co;s++){var a=n[s],h=a.identifier||1/0,c=e.tracker[h];if(c){var l=a.pageX-r.x1,u=a.pageY-r.y1,f=l-c.start.x,d=u-c.start.y,g=Math.sqrt(f*f+d*d);if(!(l\\\\u003e0\\\\u0026\\\\u0026l\\\\u003cr.width\\\\u0026\\\\u0026u\\\\u003e0\\\\u0026\\\\u0026u\\\\u003cr.height\\\\u0026\\\\u0026g\\\\u003c=e.driftDeviance))return P.remove(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),void(e.cancel=!0)}}},e.onPointerUp=function(o){if(t.pointerEnd(o,n,e)){if(clearTimeout(r),P.remove(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.remove(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp),o.cancelBubble\\\\u0026\\\\u0026++o.cancelBubbleCount\\\\u003e1)return;if(\\\\\\\"longpress\\\\\\\"===e.gesture)return void(\\\\\\\"start\\\\\\\"===n.state\\\\u0026\\\\u0026(n.state=\\\\\\\"end\\\\\\\",e.listener(o,n)));if(e.cancel)return;if((new Date).getTime()-i\\\\u003ee.timeout)return;var s=e.gestureFingers;e.minFingers\\\\u003c=s\\\\u0026\\\\u0026e.maxFingers\\\\u003e=s\\\\u0026\\\\u0026(n.state=\\\\\\\"tap\\\\\\\",n.fingers=e.gestureFingers,e.listener(o,n))}};var n=t.pointerSetup(e);return P.add(e.target,\\\\\\\"mousedown\\\\\\\",e.onPointerDown),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.tap=t.tap,P.Gesture._gestureHandlers.longpress=t.longpress,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.wheelPreventElasticBounce=function(t){t\\\\u0026\\\\u0026(\\\\\\\"string\\\\\\\"==typeof t\\\\u0026\\\\u0026(t=document.querySelector(t)),P.add(t,\\\\\\\"wheel\\\\\\\",(function(t,e){e.preventElasticBounce(),P.stop(t)})))},t.wheel=function(t){var e,i=t.timeout||150,r=0,n={gesture:\\\\\\\"wheel\\\\\\\",state:\\\\\\\"start\\\\\\\",wheelDelta:0,target:t.target,listener:t.listener,preventElasticBounce:function(t){var e=this.target,i=e.scrollTop;(i+e.offsetHeight===e.scrollHeight\\\\u0026\\\\u0026this.wheelDelta\\\\u003c=0||0===i\\\\u0026\\\\u0026this.wheelDelta\\\\u003e=0)\\\\u0026\\\\u0026P.cancel(t),P.stop(t)},add:function(){t.target[s](h,o,!1)},remove:function(){t.target[a](h,o,!1)}},o=function(o){o=o||window.event,n.state=r++?\\\\\\\"change\\\\\\\":\\\\\\\"start\\\\\\\",n.wheelDelta=o.detail?-20*o.detail:o.wheelDelta,t.listener(o,n),clearTimeout(e),e=setTimeout((function(){r=0,n.state=\\\\\\\"end\\\\\\\",n.wheelDelta=0,t.listener(o,n)}),i)},s=document.addEventListener?\\\\\\\"addEventListener\\\\\\\":\\\\\\\"attachEvent\\\\\\\",a=document.removeEventListener?\\\\\\\"removeEventListener\\\\\\\":\\\\\\\"detachEvent\\\\\\\",h=P.getEventSupport(\\\\\\\"mousewheel\\\\\\\")?\\\\\\\"mousewheel\\\\\\\":\\\\\\\"DOMMouseScroll\\\\\\\";return t.target[s](h,o,!1),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.wheel=t.wheel,t}(P.proxy),void 0===E)var E={};function k(t,e){var i=t.canvas,r=e.targetCanvas,n=r.getContext(\\\\\\\"2d\\\\\\\");n.translate(0,r.height),n.scale(1,-1);var o=i.height-r.height;n.drawImage(i,0,o,r.width,r.height,0,0,r.width,r.height)}function A(t,e){var i=e.targetCanvas.getContext(\\\\\\\"2d\\\\\\\"),r=e.destinationWidth,n=e.destinationHeight,o=r*n*4,s=new Uint8Array(this.imageBuffer,0,o),a=new Uint8ClampedArray(this.imageBuffer,0,o);t.readPixels(0,0,r,n,t.RGBA,t.UNSIGNED_BYTE,s);var h=new ImageData(a,r,n);i.putImageData(h,0,0)}void 0===E.proxy\\\\u0026\\\\u0026(E.proxy={}),E.proxy=function(t){return t.orientation=function(t){var e={gesture:\\\\\\\"orientationchange\\\\\\\",previous:null,current:window.orientation,target:t.target,listener:t.listener,remove:function(){window.removeEventListener(\\\\\\\"orientationchange\\\\\\\",i,!1)}},i=function(i){e.previous=e.current,e.current=window.orientation,null===e.previous||e.previous==e.current||t.listener(i,e)};return window.DeviceOrientationEvent\\\\u0026\\\\u0026window.addEventListener(\\\\\\\"orientationchange\\\\\\\",i,!1),e},E.Gesture=E.Gesture||{},E.Gesture._gestureHandlers=E.Gesture._gestureHandlers||{},E.Gesture._gestureHandlers.orientation=t.orientation,t}(E.proxy),function(){function t(t,e){if(this.__eventListeners[t]){var i=this.__eventListeners[t];e?i[i.indexOf(e)]=!1:T.util.array.fill(i,!1)}}function e(t,e){var i=function(){e.apply(this,arguments),this.off(t,i)}.bind(this);this.on(t,i)}T.Observable={fire:function(t,e){if(!this.__eventListeners)return this;var i=this.__eventListeners[t];if(!i)return this;for(var r=0,n=i.length;r\\\\u003cn;r++)i[r]\\\\u0026\\\\u0026i[r].call(this,e||{});return this.__eventListeners[t]=i.filter((function(t){return!1!==t})),this},on:function(t,e){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in t)this.on(i,t[i]);else this.__eventListeners[t]||(this.__eventListeners[t]=[]),this.__eventListeners[t].push(e);return this},once:function(t,i){if(1===arguments.length)for(var r in t)e.call(this,r,t[r]);else e.call(this,t,i);return this},off:function(e,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(e in this.__eventListeners)t.call(this,e);else if(1===arguments.length\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof arguments[0])for(var r in e)t.call(this,r,e[r]);else t.call(this,e,i);return this}}}(),T.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var t=0,e=arguments.length;t\\\\u003ce;t++)this._onObjectAdded(arguments[t]);return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},insertAt:function(t,e,i){var r=this._objects;return i?r[e]=t:r.splice(e,0,t),this._onObjectAdded\\\\u0026\\\\u0026this._onObjectAdded(t),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},remove:function(){for(var t,e=this._objects,i=!1,r=0,n=arguments.length;r\\\\u003cn;r++)-1!==(t=e.indexOf(arguments[r]))\\\\u0026\\\\u0026(i=!0,e.splice(t,1),this._onObjectRemoved\\\\u0026\\\\u0026this._onObjectRemoved(arguments[r]));return this.renderOnAddRemove\\\\u0026\\\\u0026i\\\\u0026\\\\u0026this.requestRenderAll(),this},forEachObject:function(t,e){for(var i=this.getObjects(),r=0,n=i.length;r\\\\u003cn;r++)t.call(e,i[r],r,i);return this},getObjects:function(t){return void 0===t?this._objects.concat():this._objects.filter((function(e){return e.type===t}))},item:function(t){return this._objects[t]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(t,e){return this._objects.indexOf(t)\\\\u003e-1||!!e\\\\u0026\\\\u0026this._objects.some((function(e){return\\\\\\\"function\\\\\\\"==typeof e.contains\\\\u0026\\\\u0026e.contains(t,!0)}))},complexity:function(){return this._objects.reduce((function(t,e){return t+=e.complexity?e.complexity():0}),0)}},T.CommonMethods={_setOptions:function(t){for(var e in t)this.set(e,t[e])},_initGradient:function(t,e){!t||!t.colorStops||t instanceof T.Gradient||this.set(e,new T.Gradient(t))},_initPattern:function(t,e,i){!t||!t.source||t instanceof T.Pattern?i\\\\u0026\\\\u0026i():this.set(e,new T.Pattern(t,i))},_setObject:function(t){for(var e in t)this._set(e,t[e])},set:function(t,e){return\\\\\\\"object\\\\\\\"==typeof t?this._setObject(t):this._set(t,e),this},_set:function(t,e){this[t]=e},toggle:function(t){var e=this.get(t);return\\\\\\\"boolean\\\\\\\"==typeof e\\\\u0026\\\\u0026this.set(t,!e),this},get:function(t){return this[t]}},n=t,o=Math.sqrt,s=Math.atan2,a=Math.pow,h=Math.PI/180,c=Math.PI/2,T.util={cos:function(t){if(0===t)return 1;switch(t\\\\u003c0\\\\u0026\\\\u0026(t=-t),t/c){case 1:case 3:return 0;case 2:return-1}return Math.cos(t)},sin:function(t){if(0===t)return 0;var e=1;switch(t\\\\u003c0\\\\u0026\\\\u0026(e=-1),t/c){case 1:return e;case 2:return 0;case 3:return-e}return Math.sin(t)},removeFromArray:function(t,e){var i=t.indexOf(e);return-1!==i\\\\u0026\\\\u0026t.splice(i,1),t},getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t},degreesToRadians:function(t){return t*h},radiansToDegrees:function(t){return t/h},rotatePoint:function(t,e,i){var r=new T.Point(t.x-e.x,t.y-e.y),n=T.util.rotateVector(r,i);return new T.Point(n.x,n.y).addEquals(e)},rotateVector:function(t,e){var i=T.util.sin(e),r=T.util.cos(e);return{x:t.x*r-t.y*i,y:t.x*i+t.y*r}},transformPoint:function(t,e,i){return i?new T.Point(e[0]*t.x+e[2]*t.y,e[1]*t.x+e[3]*t.y):new T.Point(e[0]*t.x+e[2]*t.y+e[4],e[1]*t.x+e[3]*t.y+e[5])},makeBoundingBoxFromPoints:function(t,e){if(e)for(var i=0;i\\\\u003ct.length;i++)t[i]=T.util.transformPoint(t[i],e);var r=[t[0].x,t[1].x,t[2].x,t[3].x],n=T.util.array.min(r),o=T.util.array.max(r)-n,s=[t[0].y,t[1].y,t[2].y,t[3].y],a=T.util.array.min(s);return{left:n,top:a,width:o,height:T.util.array.max(s)-a}},invertTransform:function(t){var e=1/(t[0]*t[3]-t[1]*t[2]),i=[e*t[3],-e*t[1],-e*t[2],e*t[0]],r=T.util.transformPoint({x:t[4],y:t[5]},i,!0);return i[4]=-r.x,i[5]=-r.y,i},toFixed:function(t,e){return parseFloat(Number(t).toFixed(e))},parseUnit:function(t,e){var i=/\\\\\\\\D{0,2}$/.exec(t),r=parseFloat(t);switch(e||(e=T.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case\\\\\\\"mm\\\\\\\":return r*T.DPI/25.4;case\\\\\\\"cm\\\\\\\":return r*T.DPI/2.54;case\\\\\\\"in\\\\\\\":return r*T.DPI;case\\\\\\\"pt\\\\\\\":return r*T.DPI/72;case\\\\\\\"pc\\\\\\\":return r*T.DPI/72*12;case\\\\\\\"em\\\\\\\":return r*e;default:return r}},falseFunction:function(){return!1},getKlass:function(t,e){return t=T.util.string.camelize(t.charAt(0).toUpperCase()+t.slice(1)),T.util.resolveNamespace(e)[t]},getSvgAttributes:function(t){var e=[\\\\\\\"instantiated_by_use\\\\\\\",\\\\\\\"style\\\\\\\",\\\\\\\"id\\\\\\\",\\\\\\\"class\\\\\\\"];switch(t){case\\\\\\\"linearGradient\\\\\\\":e=e.concat([\\\\\\\"x1\\\\\\\",\\\\\\\"y1\\\\\\\",\\\\\\\"x2\\\\\\\",\\\\\\\"y2\\\\\\\",\\\\\\\"gradientUnits\\\\\\\",\\\\\\\"gradientTransform\\\\\\\"]);break;case\\\\\\\"radialGradient\\\\\\\":e=e.concat([\\\\\\\"gradientUnits\\\\\\\",\\\\\\\"gradientTransform\\\\\\\",\\\\\\\"cx\\\\\\\",\\\\\\\"cy\\\\\\\",\\\\\\\"r\\\\\\\",\\\\\\\"fx\\\\\\\",\\\\\\\"fy\\\\\\\",\\\\\\\"fr\\\\\\\"]);break;case\\\\\\\"stop\\\\\\\":e=e.concat([\\\\\\\"offset\\\\\\\",\\\\\\\"stop-color\\\\\\\",\\\\\\\"stop-opacity\\\\\\\"])}return e},resolveNamespace:function(t){if(!t)return T;var e,i=t.split(\\\\\\\".\\\\\\\"),r=i.length,o=n||T.window;for(e=0;e\\\\u003cr;++e)o=o[i[e]];return o},loadImage:function(t,e,i,r){if(t){var n=T.util.createImage(),o=function(){e\\\\u0026\\\\u0026e.call(i,n,!1),n=n.onload=n.onerror=null};n.onload=o,n.onerror=function(){T.log(\\\\\\\"Error loading \\\\\\\"+n.src),e\\\\u0026\\\\u0026e.call(i,null,!0),n=n.onload=n.onerror=null},0!==t.indexOf(\\\\\\\"data\\\\\\\")\\\\u0026\\\\u0026null!=r\\\\u0026\\\\u0026(n.crossOrigin=r),\\\\\\\"data:image/svg\\\\\\\"===t.substring(0,14)\\\\u0026\\\\u0026(n.onload=null,T.util.loadImageInDom(n,o)),n.src=t}else e\\\\u0026\\\\u0026e.call(i,t)},loadImageInDom:function(t,e){var i=T.document.createElement(\\\\\\\"div\\\\\\\");i.style.width=i.style.height=\\\\\\\"1px\\\\\\\",i.style.left=i.style.top=\\\\\\\"-100%\\\\\\\",i.style.position=\\\\\\\"absolute\\\\\\\",i.appendChild(t),T.document.querySelector(\\\\\\\"body\\\\\\\").appendChild(i),t.onload=function(){e(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(t,e,i,r){var n=[],o=0,s=(t=t||[]).length;function a(){++o===s\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e(n.filter((function(t){return t})))}s?t.forEach((function(t,e){t\\\\u0026\\\\u0026t.type?T.util.getKlass(t.type,i).fromObject(t,(function(i,o){o||(n[e]=i),r\\\\u0026\\\\u0026r(t,i,o),a()})):a()})):e\\\\u0026\\\\u0026e(n)},enlivenPatterns:function(t,e){function i(){++n===o\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e(r)}var r=[],n=0,o=(t=t||[]).length;o?t.forEach((function(t,e){t\\\\u0026\\\\u0026t.source?new T.Pattern(t,(function(t){r[e]=t,i()})):(r[e]=t,i())})):e\\\\u0026\\\\u0026e(r)},groupSVGElements:function(t,e,i){var r;return t\\\\u0026\\\\u00261===t.length?t[0]:(e\\\\u0026\\\\u0026(e.width\\\\u0026\\\\u0026e.height?e.centerPoint={x:e.width/2,y:e.height/2}:(delete e.width,delete e.height)),r=new T.Group(t,e),void 0!==i\\\\u0026\\\\u0026(r.sourcePath=i),r)},populateWithProperties:function(t,e,i){if(i\\\\u0026\\\\u0026\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(i))for(var r=0,n=i.length;r\\\\u003cn;r++)i[r]in t\\\\u0026\\\\u0026(e[i[r]]=t[i[r]])},drawDashedLine:function(t,e,i,r,n,a){var h=r-e,c=n-i,l=o(h*h+c*c),u=s(c,h),f=a.length,d=0,g=!0;for(t.save(),t.translate(e,i),t.moveTo(0,0),t.rotate(u),e=0;l\\\\u003ee;)(e+=a[d++%f])\\\\u003el\\\\u0026\\\\u0026(e=l),t[g?\\\\\\\"lineTo\\\\\\\":\\\\\\\"moveTo\\\\\\\"](e,0),g=!g;t.restore()},createCanvasElement:function(){return T.document.createElement(\\\\\\\"canvas\\\\\\\")},copyCanvasElement:function(t){var e=T.util.createCanvasElement();return e.width=t.width,e.height=t.height,e.getContext(\\\\\\\"2d\\\\\\\").drawImage(t,0,0),e},toDataURL:function(t,e,i){return t.toDataURL(\\\\\\\"image/\\\\\\\"+e,i)},createImage:function(){return T.document.createElement(\\\\\\\"img\\\\\\\")},multiplyTransformMatrices:function(t,e,i){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],i?0:t[0]*e[4]+t[2]*e[5]+t[4],i?0:t[1]*e[4]+t[3]*e[5]+t[5]]},qrDecompose:function(t){var e=s(t[1],t[0]),i=a(t[0],2)+a(t[1],2),r=o(i),n=(t[0]*t[3]-t[2]*t[1])/r,c=s(t[0]*t[2]+t[1]*t[3],i);return{angle:e/h,scaleX:r,scaleY:n,skewX:c/h,skewY:0,translateX:t[4],translateY:t[5]}},calcRotateMatrix:function(t){if(!t.angle)return T.iMatrix.concat();var e=T.util.degreesToRadians(t.angle),i=T.util.cos(e),r=T.util.sin(e);return[i,r,-r,i,0,0]},calcDimensionsMatrix:function(t){var e=void 0===t.scaleX?1:t.scaleX,i=void 0===t.scaleY?1:t.scaleY,r=[t.flipX?-e:e,0,0,t.flipY?-i:i,0,0],n=T.util.multiplyTransformMatrices,o=T.util.degreesToRadians;return t.skewX\\\\u0026\\\\u0026(r=n(r,[1,0,Math.tan(o(t.skewX)),1],!0)),t.skewY\\\\u0026\\\\u0026(r=n(r,[1,Math.tan(o(t.skewY)),0,1],!0)),r},composeMatrix:function(t){var e=[1,0,0,1,t.translateX||0,t.translateY||0],i=T.util.multiplyTransformMatrices;return t.angle\\\\u0026\\\\u0026(e=i(e,T.util.calcRotateMatrix(t))),(1!==t.scaleX||1!==t.scaleY||t.skewX||t.skewY||t.flipX||t.flipY)\\\\u0026\\\\u0026(e=i(e,T.util.calcDimensionsMatrix(t))),e},resetObjectTransform:function(t){t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.flipX=!1,t.flipY=!1,t.rotate(0)},saveObjectTransform:function(t){return{scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,angle:t.angle,left:t.left,flipX:t.flipX,flipY:t.flipY,top:t.top}},isTransparent:function(t,e,i,r){r\\\\u003e0\\\\u0026\\\\u0026(e\\\\u003er?e-=r:e=0,i\\\\u003er?i-=r:i=0);var n,o=!0,s=t.getImageData(e,i,2*r||1,2*r||1),a=s.data.length;for(n=3;n\\\\u003ca\\\\u0026\\\\u0026!1!=(o=s.data[n]\\\\u003c=0);n+=4);return s=null,o},parsePreserveAspectRatioAttribute:function(t){var e,i=\\\\\\\"meet\\\\\\\",r=t.split(\\\\\\\" \\\\\\\");return r\\\\u0026\\\\u0026r.length\\\\u0026\\\\u0026(\\\\\\\"meet\\\\\\\"!==(i=r.pop())\\\\u0026\\\\u0026\\\\\\\"slice\\\\\\\"!==i?(e=i,i=\\\\\\\"meet\\\\\\\"):r.length\\\\u0026\\\\u0026(e=r.pop())),{meetOrSlice:i,alignX:\\\\\\\"none\\\\\\\"!==e?e.slice(1,4):\\\\\\\"none\\\\\\\",alignY:\\\\\\\"none\\\\\\\"!==e?e.slice(5,8):\\\\\\\"none\\\\\\\"}},clearFabricFontCache:function(t){(t=(t||\\\\\\\"\\\\\\\").toLowerCase())?T.charWidthsCache[t]\\\\u0026\\\\u0026delete T.charWidthsCache[t]:T.charWidthsCache={}},limitDimsByArea:function(t,e){var i=Math.sqrt(e*t),r=Math.floor(e/i);return{x:Math.floor(i),y:r}},capValue:function(t,e,i){return Math.max(t,Math.min(e,i))},findScaleToFit:function(t,e){return Math.min(e.width/t.width,e.height/t.height)},findScaleToCover:function(t,e){return Math.max(e.width/t.width,e.height/t.height)},matrixToSVG:function(t){return\\\\\\\"matrix(\\\\\\\"+t.map((function(t){return T.util.toFixed(t,T.Object.NUM_FRACTION_DIGITS)})).join(\\\\\\\" \\\\\\\")+\\\\\\\")\\\\\\\"},removeTransformFromObject:function(t,e){var i=T.util.invertTransform(e),r=T.util.multiplyTransformMatrices(i,t.calcOwnMatrix());T.util.applyTransformToObject(t,r)},addTransformToObject:function(t,e){T.util.applyTransformToObject(t,T.util.multiplyTransformMatrices(e,t.calcOwnMatrix()))},applyTransformToObject:function(t,e){var i=T.util.qrDecompose(e),r=new T.Point(i.translateX,i.translateY);t.flipX=!1,t.flipY=!1,t.set(\\\\\\\"scaleX\\\\\\\",i.scaleX),t.set(\\\\\\\"scaleY\\\\\\\",i.scaleY),t.skewX=i.skewX,t.skewY=i.skewY,t.angle=i.angle,t.setPositionByOrigin(r,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\")},sizeAfterTransform:function(t,e,i){var r=t/2,n=e/2,o=[{x:-r,y:-n},{x:r,y:-n},{x:-r,y:n},{x:r,y:n}],s=T.util.calcDimensionsMatrix(i),a=T.util.makeBoundingBoxFromPoints(o,s);return{x:a.width,y:a.height}}},T.util.createAccessors=function(t){var e,i,r,n,o,s=t.prototype;for(e=s.stateProperties.length;e--;)n=\\\\\\\"set\\\\\\\"+(r=(i=s.stateProperties[e]).charAt(0).toUpperCase()+i.slice(1)),s[o=\\\\\\\"get\\\\\\\"+r]||(s[o]=new Function('return this.get(\\\\\\\"'+i+'\\\\\\\")')),s[n]||(s[n]=function(t){return new Function(\\\\\\\"value\\\\\\\",'return this.set(\\\\\\\"'+t+'\\\\\\\", value)')}(i))},function(){var t=Array.prototype.join,e={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:\\\\\\\"l\\\\\\\",M:\\\\\\\"L\\\\\\\"};function r(t,e,i,r,n,o,s,a,h,c,l){var u=T.util.cos(t),f=T.util.sin(t),d=T.util.cos(e),g=T.util.sin(e),p=i*n*d-r*o*g+s,v=r*n*d+i*o*g+a;return[\\\\\\\"C\\\\\\\",c+h*(-i*n*f-r*o*u),l+h*(-r*n*f+i*o*u),p+h*(i*n*g+r*o*d),v+h*(r*n*g-i*o*d),p,v]}function n(t,e,i,n,s,a,h){var c=Math.PI,l=h*c/180,u=T.util.sin(l),f=T.util.cos(l),d=0,g=0,p=-f*t*.5-u*e*.5,v=-f*e*.5+u*t*.5,m=(i=Math.abs(i))*i,y=(n=Math.abs(n))*n,_=v*v,b=p*p,x=m*y-m*_-y*b,C=0;if(x\\\\u003c0){var w=Math.sqrt(1-x/(m*y));i*=w,n*=w}else C=(s===a?-1:1)*Math.sqrt(x/(m*_+y*b));var S=C*i*v/n,O=-C*n*p/i,P=f*S-u*O+.5*t,E=u*S+f*O+.5*e,k=o(1,0,(p-S)/i,(v-O)/n),A=o((p-S)/i,(v-O)/n,(-p-S)/i,(-v-O)/n);0===a\\\\u0026\\\\u0026A\\\\u003e0?A-=2*c:1===a\\\\u0026\\\\u0026A\\\\u003c0\\\\u0026\\\\u0026(A+=2*c);for(var D=Math.ceil(Math.abs(A/c*2)),M=[],j=A/D,F=8/3*Math.sin(j/4)*Math.sin(j/4)/Math.sin(j/2),L=k+j,I=0;I\\\\u003cD;I++)M[I]=r(k,L,f,u,i,n,P,E,F,d,g),d=M[I][5],g=M[I][6],k=L,L+=j;return M}function o(t,e,i,r){var n=Math.atan2(e,t),o=Math.atan2(r,i);return o\\\\u003e=n?o-n:2*Math.PI-(n-o)}function s(e,i,r,n,o,s,a,h){var c;if(T.cachesBoundsOfCurve\\\\u0026\\\\u0026(c=t.call(arguments),T.boundsOfCurveCache[c]))return T.boundsOfCurveCache[c];var l,u,f,d,g,p,v,m,y=Math.sqrt,_=Math.min,b=Math.max,x=Math.abs,C=[],w=[[],[]];u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*a,f=3*r-3*e;for(var S=0;S\\\\u003c2;++S)if(S\\\\u003e0\\\\u0026\\\\u0026(u=6*i-12*n+6*s,l=-3*i+9*n-9*s+3*h,f=3*n-3*i),x(l)\\\\u003c1e-12){if(x(u)\\\\u003c1e-12)continue;0\\\\u003c(d=-f/u)\\\\u0026\\\\u0026d\\\\u003c1\\\\u0026\\\\u0026C.push(d)}else(v=u*u-4*f*l)\\\\u003c0||(0\\\\u003c(g=(-u+(m=y(v)))/(2*l))\\\\u0026\\\\u0026g\\\\u003c1\\\\u0026\\\\u0026C.push(g),0\\\\u003c(p=(-u-m)/(2*l))\\\\u0026\\\\u0026p\\\\u003c1\\\\u0026\\\\u0026C.push(p));for(var O,P,E,k=C.length,A=k;k--;)O=(E=1-(d=C[k]))*E*E*e+3*E*E*d*r+3*E*d*d*o+d*d*d*a,w[0][k]=O,P=E*E*E*i+3*E*E*d*n+3*E*d*d*s+d*d*d*h,w[1][k]=P;w[0][A]=e,w[1][A]=i,w[0][A+1]=a,w[1][A+1]=h;var D=[{x:_.apply(null,w[0]),y:_.apply(null,w[1])},{x:b.apply(null,w[0]),y:b.apply(null,w[1])}];return T.cachesBoundsOfCurve\\\\u0026\\\\u0026(T.boundsOfCurveCache[c]=D),D}function a(t,e,i){for(var r=i[1],o=i[2],s=i[3],a=i[4],h=i[5],c=n(i[6]-t,i[7]-e,r,o,a,h,s),l=0,u=c.length;l\\\\u003cu;l++)c[l][1]+=t,c[l][2]+=e,c[l][3]+=t,c[l][4]+=e,c[l][5]+=t,c[l][6]+=e;return c}function h(t,e,i,r){return Math.sqrt((i-t)*(i-t)+(r-e)*(r-e))}function c(t,e,i,r,n,o,s,a){return function(h){var c,l=(c=h)*c*c,u=function(t){return 3*t*t*(1-t)}(h),f=function(t){return 3*t*(1-t)*(1-t)}(h),d=function(t){return(1-t)*(1-t)*(1-t)}(h);return{x:s*l+n*u+i*f+t*d,y:a*l+o*u+r*f+e*d}}}function l(t,e,i,r,n,o,s,a){return function(h){var c=1-h,l=3*c*c*(i-t)+6*c*h*(n-i)+3*h*h*(s-n),u=3*c*c*(r-e)+6*c*h*(o-r)+3*h*h*(a-o);return Math.atan2(u,l)}}function u(t,e,i,r,n,o){return function(s){var a,h=(a=s)*a,c=function(t){return 2*t*(1-t)}(s),l=function(t){return(1-t)*(1-t)}(s);return{x:n*h+i*c+t*l,y:o*h+r*c+e*l}}}function f(t,e,i,r,n,o){return function(s){var a=1-s,h=2*a*(i-t)+2*s*(n-i),c=2*a*(r-e)+2*s*(o-r);return Math.atan2(c,h)}}function d(t,e,i){var r,n,o={x:e,y:i},s=0;for(n=1;n\\\\u003c=100;n+=1)r=t(n/100),s+=h(o.x,o.y,r.x,r.y),o=r;return s}function g(t,e){for(var i,r,n,o=0,s=0,a=t.iterator,c={x:t.x,y:t.y},l=.01,u=t.angleFinder;s\\\\u003ce\\\\u0026\\\\u0026o\\\\u003c=1\\\\u0026\\\\u0026l\\\\u003e1e-4;)i=a(o),n=o,(r=h(c.x,c.y,i.x,i.y))+s\\\\u003ee?o-=l/=2:(c=i,o+=l,s+=r);return i.angle=u(n),i}function p(t){for(var e,i,r,n,o=0,s=t.length,a=0,g=0,p=0,v=0,m=[],y=0;y\\\\u003cs;y++){switch(r={x:a,y:g,command:(e=t[y])[0]},e[0]){case\\\\\\\"M\\\\\\\":r.length=0,p=a=e[1],v=g=e[2];break;case\\\\\\\"L\\\\\\\":r.length=h(a,g,e[1],e[2]),a=e[1],g=e[2];break;case\\\\\\\"C\\\\\\\":i=c(a,g,e[1],e[2],e[3],e[4],e[5],e[6]),n=l(a,g,e[1],e[2],e[3],e[4],e[5],e[6]),r.iterator=i,r.angleFinder=n,r.length=d(i,a,g),a=e[5],g=e[6];break;case\\\\\\\"Q\\\\\\\":i=u(a,g,e[1],e[2],e[3],e[4]),n=f(a,g,e[1],e[2],e[3],e[4]),r.iterator=i,r.angleFinder=n,r.length=d(i,a,g),a=e[3],g=e[4];break;case\\\\\\\"Z\\\\\\\":case\\\\\\\"z\\\\\\\":r.destX=p,r.destY=v,r.length=h(a,g,p,v),a=p,g=v}o+=r.length,m.push(r)}return m.push({length:o,x:a,y:g}),m}T.util.joinPath=function(t){return t.map((function(t){return t.join(\\\\\\\" \\\\\\\")})).join(\\\\\\\" \\\\\\\")},T.util.parsePath=function(t){var r,n,o,s,a,h=[],c=[],l=T.rePathCommand,u=\\\\\\\"[-+]?(?:\\\\\\\\\\\\\\\\d*\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\d+|\\\\\\\\\\\\\\\\d+\\\\\\\\\\\\\\\\.?)(?:[eE][-+]?\\\\\\\\\\\\\\\\d+)?\\\\\\\\\\\\\\\\s*\\\\\\\",f=\\\\\\\"(\\\\\\\"+u+\\\\\\\")\\\\\\\"+T.commaWsp,d=\\\\\\\"([01])\\\\\\\"+T.commaWsp+\\\\\\\"?\\\\\\\",g=new RegExp(f+\\\\\\\"?\\\\\\\"+f+\\\\\\\"?\\\\\\\"+f+d+d+f+\\\\\\\"?(\\\\\\\"+u+\\\\\\\")\\\\\\\",\\\\\\\"g\\\\\\\");if(!t||!t.match)return h;for(var p,v=0,m=(a=t.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;v\\\\u003cm;v++){s=(r=a[v]).slice(1).trim(),c.length=0;var y=r.charAt(0);if(p=[y],\\\\\\\"a\\\\\\\"===y.toLowerCase())for(var _;_=g.exec(s);)for(var b=1;b\\\\u003c_.length;b++)c.push(_[b]);else for(;o=l.exec(s);)c.push(o[0]);b=0;for(var x=c.length;b\\\\u003cx;b++)n=parseFloat(c[b]),isNaN(n)||p.push(n);var C=e[y.toLowerCase()],w=i[y]||y;if(p.length-1\\\\u003eC)for(var S=1,O=p.length;S\\\\u003cO;S+=C)h.push([y].concat(p.slice(S,S+C))),y=w;else h.push(p)}return h},T.util.makePathSimpler=function(t){var e,i,r,n,o,s,h=0,c=0,l=t.length,u=0,f=0,d=[];for(i=0;i\\\\u003cl;++i){switch(r=!1,(e=t[i].slice(0))[0]){case\\\\\\\"l\\\\\\\":e[0]=\\\\\\\"L\\\\\\\",e[1]+=h,e[2]+=c;case\\\\\\\"L\\\\\\\":h=e[1],c=e[2];break;case\\\\\\\"h\\\\\\\":e[1]+=h;case\\\\\\\"H\\\\\\\":e[0]=\\\\\\\"L\\\\\\\",e[2]=c,h=e[1];break;case\\\\\\\"v\\\\\\\":e[1]+=c;case\\\\\\\"V\\\\\\\":e[0]=\\\\\\\"L\\\\\\\",c=e[1],e[1]=h,e[2]=c;break;case\\\\\\\"m\\\\\\\":e[0]=\\\\\\\"M\\\\\\\",e[1]+=h,e[2]+=c;case\\\\\\\"M\\\\\\\":h=e[1],c=e[2],u=e[1],f=e[2];break;case\\\\\\\"c\\\\\\\":e[0]=\\\\\\\"C\\\\\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c,e[5]+=h,e[6]+=c;case\\\\\\\"C\\\\\\\":o=e[3],s=e[4],h=e[5],c=e[6];break;case\\\\\\\"s\\\\\\\":e[0]=\\\\\\\"S\\\\\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c;case\\\\\\\"S\\\\\\\":\\\\\\\"C\\\\\\\"===n?(o=2*h-o,s=2*c-s):(o=h,s=c),h=e[3],c=e[4],e[0]=\\\\\\\"C\\\\\\\",e[5]=e[3],e[6]=e[4],e[3]=e[1],e[4]=e[2],e[1]=o,e[2]=s,o=e[3],s=e[4];break;case\\\\\\\"q\\\\\\\":e[0]=\\\\\\\"Q\\\\\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c;case\\\\\\\"Q\\\\\\\":o=e[1],s=e[2],h=e[3],c=e[4];break;case\\\\\\\"t\\\\\\\":e[0]=\\\\\\\"T\\\\\\\",e[1]+=h,e[2]+=c;case\\\\\\\"T\\\\\\\":\\\\\\\"Q\\\\\\\"===n?(o=2*h-o,s=2*c-s):(o=h,s=c),e[0]=\\\\\\\"Q\\\\\\\",h=e[1],c=e[2],e[1]=o,e[2]=s,e[3]=h,e[4]=c;break;case\\\\\\\"a\\\\\\\":e[0]=\\\\\\\"A\\\\\\\",e[6]+=h,e[7]+=c;case\\\\\\\"A\\\\\\\":r=!0,d=d.concat(a(h,c,e)),h=e[6],c=e[7];break;case\\\\\\\"z\\\\\\\":case\\\\\\\"Z\\\\\\\":h=u,c=f}r||d.push(e),n=e[0]}return d},T.util.getSmoothPathFromPoints=function(t,e){var i,r=[],n=new T.Point(t[0].x,t[0].y),o=new T.Point(t[1].x,t[1].y),s=t.length,a=1,h=0,c=s\\\\u003e2;for(e=e||0,c\\\\u0026\\\\u0026(a=t[2].x\\\\u003co.x?-1:t[2].x===o.x?0:1,h=t[2].y\\\\u003co.y?-1:t[2].y===o.y?0:1),r.push([\\\\\\\"M\\\\\\\",n.x-a*e,n.y-h*e]),i=1;i\\\\u003cs;i++){if(!n.eq(o)){var l=n.midPointFrom(o);r.push([\\\\\\\"Q\\\\\\\",n.x,n.y,l.x,l.y])}n=t[i],i+1\\\\u003ct.length\\\\u0026\\\\u0026(o=t[i+1])}return c\\\\u0026\\\\u0026(a=n.x\\\\u003et[i-2].x?1:n.x===t[i-2].x?0:-1,h=n.y\\\\u003et[i-2].y?1:n.y===t[i-2].y?0:-1),r.push([\\\\\\\"L\\\\\\\",n.x+a*e,n.y+h*e]),r},T.util.getPathSegmentsInfo=p,T.util.getBoundsOfCurve=s,T.util.getPointOnPath=function(t,e,i){i||(i=p(t));for(var r=0;e-i[r].length\\\\u003e0\\\\u0026\\\\u0026r\\\\u003ci.length-2;)e-=i[r].length,r++;var n,o=i[r],s=e/o.length,a=o.command,h=t[r];switch(a){case\\\\\\\"M\\\\\\\":return{x:o.x,y:o.y,angle:0};case\\\\\\\"Z\\\\\\\":case\\\\\\\"z\\\\\\\":return(n=new T.Point(o.x,o.y).lerp(new T.Point(o.destX,o.destY),s)).angle=Math.atan2(o.destY-o.y,o.destX-o.x),n;case\\\\\\\"L\\\\\\\":return(n=new T.Point(o.x,o.y).lerp(new T.Point(h[1],h[2]),s)).angle=Math.atan2(h[2]-o.y,h[1]-o.x),n;case\\\\\\\"C\\\\\\\":case\\\\\\\"Q\\\\\\\":return g(o,e)}},T.util.transformPath=function(t,e,i){return i\\\\u0026\\\\u0026(e=T.util.multiplyTransformMatrices(e,[1,0,0,1,-i.x,-i.y])),t.map((function(t){for(var i=t.slice(0),r={},n=1;n\\\\u003ct.length-1;n+=2)r.x=t[n],r.y=t[n+1],r=T.util.transformPoint(r,e),i[n]=r.x,i[n+1]=r.y;return i}))},T.util.fromArcToBeizers=a,T.util.getBoundsOfArc=function(t,e,i,r,o,a,h,c,l){for(var u,f=0,d=0,g=[],p=n(c-t,l-e,i,r,a,h,o),v=0,m=p.length;v\\\\u003cm;v++)u=s(f,d,p[v][1],p[v][2],p[v][3],p[v][4],p[v][5],p[v][6]),g.push({x:u[0].x+t,y:u[0].y+e}),g.push({x:u[1].x+t,y:u[1].y+e}),f=p[v][5],d=p[v][6];return g},T.util.drawArc=function(t,e,i,r){a(e,i,r=r.slice(0).unshift(\\\\\\\"X\\\\\\\")).forEach((function(e){t.bezierCurveTo.apply(t,e.slice(1))}))}}(),function(){var t=Array.prototype.slice;function e(t,e,i){if(t\\\\u0026\\\\u00260!==t.length){var r=t.length-1,n=e?t[r][e]:t[r];if(e)for(;r--;)i(t[r][e],n)\\\\u0026\\\\u0026(n=t[r][e]);else for(;r--;)i(t[r],n)\\\\u0026\\\\u0026(n=t[r]);return n}}T.util.array={fill:function(t,e){for(var i=t.length;i--;)t[i]=e;return t},invoke:function(e,i){for(var r=t.call(arguments,2),n=[],o=0,s=e.length;o\\\\u003cs;o++)n[o]=r.length?e[o][i].apply(e[o],r):e[o][i].call(e[o]);return n},min:function(t,i){return e(t,i,(function(t,e){return t\\\\u003ce}))},max:function(t,i){return e(t,i,(function(t,e){return t\\\\u003e=e}))}}}(),function(){function t(e,i,r){if(r)if(!T.isLikelyNode\\\\u0026\\\\u0026i instanceof Element)e=i;else if(i instanceof Array){e=[];for(var n=0,o=i.length;n\\\\u003co;n++)e[n]=t({},i[n],r)}else if(i\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof i)for(var s in i)\\\\\\\"canvas\\\\\\\"===s||\\\\\\\"group\\\\\\\"===s?e[s]=null:i.hasOwnProperty(s)\\\\u0026\\\\u0026(e[s]=t({},i[s],r));else e=i;else for(var s in i)e[s]=i[s];return e}T.util.object={extend:t,clone:function(e,i){return t({},e,i)}},T.util.object.extend(T.util,T.Observable)}(),function(){function t(t,e){var i=t.charCodeAt(e);if(isNaN(i))return\\\\\\\"\\\\\\\";if(i\\\\u003c55296||i\\\\u003e57343)return t.charAt(e);if(55296\\\\u003c=i\\\\u0026\\\\u0026i\\\\u003c=56319){if(t.length\\\\u003c=e+1)throw\\\\\\\"High surrogate without following low surrogate\\\\\\\";var r=t.charCodeAt(e+1);if(56320\\\\u003er||r\\\\u003e57343)throw\\\\\\\"High surrogate without following low surrogate\\\\\\\";return t.charAt(e)+t.charAt(e+1)}if(0===e)throw\\\\\\\"Low surrogate without preceding high surrogate\\\\\\\";var n=t.charCodeAt(e-1);if(55296\\\\u003en||n\\\\u003e56319)throw\\\\\\\"Low surrogate without preceding high surrogate\\\\\\\";return!1}T.util.string={camelize:function(t){return t.replace(/-+(.)?/g,(function(t,e){return e?e.toUpperCase():\\\\\\\"\\\\\\\"}))},capitalize:function(t,e){return t.charAt(0).toUpperCase()+(e?t.slice(1):t.slice(1).toLowerCase())},escapeXml:function(t){return t.replace(/\\\\u0026/g,\\\\\\\"\\\\u0026amp;\\\\\\\").replace(/\\\\\\\"/g,\\\\\\\"\\\\u0026quot;\\\\\\\").replace(/'/g,\\\\\\\"\\\\u0026apos;\\\\\\\").replace(/\\\\u003c/g,\\\\\\\"\\\\u0026lt;\\\\\\\").replace(/\\\\u003e/g,\\\\\\\"\\\\u0026gt;\\\\\\\")},graphemeSplit:function(e){var i,r=0,n=[];for(r=0;r\\\\u003ce.length;r++)!1!==(i=t(e,r))\\\\u0026\\\\u0026n.push(i);return n}}}(),function(){var t=Array.prototype.slice,e=function(){},i=function(){for(var t in{toString:1})if(\\\\\\\"toString\\\\\\\"===t)return!1;return!0}(),r=function(t,e,r){for(var n in e)n in t.prototype\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof t.prototype[n]\\\\u0026\\\\u0026(e[n]+\\\\\\\"\\\\\\\").indexOf(\\\\\\\"callSuper\\\\\\\")\\\\u003e-1?t.prototype[n]=function(t){return function(){var i=this.constructor.superclass;this.constructor.superclass=r;var n=e[t].apply(this,arguments);if(this.constructor.superclass=i,\\\\\\\"initialize\\\\\\\"!==t)return n}}(n):t.prototype[n]=e[n],i\\\\u0026\\\\u0026(e.toString!==Object.prototype.toString\\\\u0026\\\\u0026(t.prototype.toString=e.toString),e.valueOf!==Object.prototype.valueOf\\\\u0026\\\\u0026(t.prototype.valueOf=e.valueOf))};function n(){}function o(e){for(var i=null,r=this;r.constructor.superclass;){var n=r.constructor.superclass.prototype[e];if(r[e]!==n){i=n;break}r=r.constructor.superclass.prototype}return i?arguments.length\\\\u003e1?i.apply(this,t.call(arguments,1)):i.call(this):console.log(\\\\\\\"tried to callSuper \\\\\\\"+e+\\\\\\\", method not found in prototype chain\\\\\\\",this)}T.util.createClass=function(){var i=null,s=t.call(arguments,0);function a(){this.initialize.apply(this,arguments)}\\\\\\\"function\\\\\\\"==typeof s[0]\\\\u0026\\\\u0026(i=s.shift()),a.superclass=i,a.subclasses=[],i\\\\u0026\\\\u0026(n.prototype=i.prototype,a.prototype=new n,i.subclasses.push(a));for(var h=0,c=s.length;h\\\\u003cc;h++)r(a,s[h],i);return a.prototype.initialize||(a.prototype.initialize=e),a.prototype.constructor=a,a.prototype.callSuper=o,a}}(),l=!!T.document.createElement(\\\\\\\"div\\\\\\\").attachEvent,u=[\\\\\\\"touchstart\\\\\\\",\\\\\\\"touchmove\\\\\\\",\\\\\\\"touchend\\\\\\\"],T.util.addListener=function(t,e,i,r){t\\\\u0026\\\\u0026t.addEventListener(e,i,!l\\\\u0026\\\\u0026r)},T.util.removeListener=function(t,e,i,r){t\\\\u0026\\\\u0026t.removeEventListener(e,i,!l\\\\u0026\\\\u0026r)},T.util.getPointer=function(t){var e=t.target,i=T.util.getScrollLeftTop(e),r=function(t){var e=t.changedTouches;return e\\\\u0026\\\\u0026e[0]?e[0]:t}(t);return{x:r.clientX+i.left,y:r.clientY+i.top}},T.util.isTouchEvent=function(t){return u.indexOf(t.type)\\\\u003e-1||\\\\\\\"touch\\\\\\\"===t.pointerType},f=T.document.createElement(\\\\\\\"div\\\\\\\"),d=\\\\\\\"string\\\\\\\"==typeof f.style.opacity,g=\\\\\\\"string\\\\\\\"==typeof f.style.filter,v=/alpha\\\\\\\\s*\\\\\\\\(\\\\\\\\s*opacity\\\\\\\\s*=\\\\\\\\s*([^\\\\\\\\)]+)\\\\\\\\)/,m=function(t){return t},d?m=function(t,e){return t.style.opacity=e,t}:g\\\\u0026\\\\u0026(m=function(t,e){var i=t.style;return t.currentStyle\\\\u0026\\\\u0026!t.currentStyle.hasLayout\\\\u0026\\\\u0026(i.zoom=1),v.test(i.filter)?(e=e\\\\u003e=.9999?\\\\\\\"\\\\\\\":\\\\\\\"alpha(opacity=\\\\\\\"+100*e+\\\\\\\")\\\\\\\",i.filter=i.filter.replace(v,e)):i.filter+=\\\\\\\" alpha(opacity=\\\\\\\"+100*e+\\\\\\\")\\\\\\\",t}),T.util.setStyle=function(t,e){var i=t.style;if(!i)return t;if(\\\\\\\"string\\\\\\\"==typeof e)return t.style.cssText+=\\\\\\\";\\\\\\\"+e,e.indexOf(\\\\\\\"opacity\\\\\\\")\\\\u003e-1?m(t,e.match(/opacity:\\\\\\\\s*(\\\\\\\\d?\\\\\\\\.?\\\\\\\\d*)/)[1]):t;for(var r in e)\\\\\\\"opacity\\\\\\\"===r?m(t,e[r]):i[\\\\\\\"float\\\\\\\"===r||\\\\\\\"cssFloat\\\\\\\"===r?void 0===i.styleFloat?\\\\\\\"cssFloat\\\\\\\":\\\\\\\"styleFloat\\\\\\\":r]=e[r];return t},function(){var t=Array.prototype.slice;var e,i,r,n,o=function(e){return t.call(e,0)};try{e=o(T.document.childNodes)instanceof Array}catch(t){}function s(t,e){var i=T.document.createElement(t);for(var r in e)\\\\\\\"class\\\\\\\"===r?i.className=e[r]:\\\\\\\"for\\\\\\\"===r?i.htmlFor=e[r]:i.setAttribute(r,e[r]);return i}function a(t){for(var e=0,i=0,r=T.document.documentElement,n=T.document.body||{scrollLeft:0,scrollTop:0};t\\\\u0026\\\\u0026(t.parentNode||t.host)\\\\u0026\\\\u0026((t=t.parentNode||t.host)===T.document?(e=n.scrollLeft||r.scrollLeft||0,i=n.scrollTop||r.scrollTop||0):(e+=t.scrollLeft||0,i+=t.scrollTop||0),1!==t.nodeType||\\\\\\\"fixed\\\\\\\"!==t.style.position););return{left:e,top:i}}e||(o=function(t){for(var e=new Array(t.length),i=t.length;i--;)e[i]=t[i];return e}),i=T.document.defaultView\\\\u0026\\\\u0026T.document.defaultView.getComputedStyle?function(t,e){var i=T.document.defaultView.getComputedStyle(t,null);return i?i[e]:void 0}:function(t,e){var i=t.style[e];return!i\\\\u0026\\\\u0026t.currentStyle\\\\u0026\\\\u0026(i=t.currentStyle[e]),i},r=T.document.documentElement.style,n=\\\\\\\"userSelect\\\\\\\"in r?\\\\\\\"userSelect\\\\\\\":\\\\\\\"MozUserSelect\\\\\\\"in r?\\\\\\\"MozUserSelect\\\\\\\":\\\\\\\"WebkitUserSelect\\\\\\\"in r?\\\\\\\"WebkitUserSelect\\\\\\\":\\\\\\\"KhtmlUserSelect\\\\\\\"in r?\\\\\\\"KhtmlUserSelect\\\\\\\":\\\\\\\"\\\\\\\",T.util.makeElementUnselectable=function(t){return void 0!==t.onselectstart\\\\u0026\\\\u0026(t.onselectstart=T.util.falseFunction),n?t.style[n]=\\\\\\\"none\\\\\\\":\\\\\\\"string\\\\\\\"==typeof t.unselectable\\\\u0026\\\\u0026(t.unselectable=\\\\\\\"on\\\\\\\"),t},T.util.makeElementSelectable=function(t){return void 0!==t.onselectstart\\\\u0026\\\\u0026(t.onselectstart=null),n?t.style[n]=\\\\\\\"\\\\\\\":\\\\\\\"string\\\\\\\"==typeof t.unselectable\\\\u0026\\\\u0026(t.unselectable=\\\\\\\"\\\\\\\"),t},T.util.setImageSmoothing=function(t,e){t.imageSmoothingEnabled=t.imageSmoothingEnabled||t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled||t.oImageSmoothingEnabled,t.imageSmoothingEnabled=e},T.util.getById=function(t){return\\\\\\\"string\\\\\\\"==typeof t?T.document.getElementById(t):t},T.util.toArray=o,T.util.addClass=function(t,e){t\\\\u0026\\\\u0026-1===(\\\\\\\" \\\\\\\"+t.className+\\\\\\\" \\\\\\\").indexOf(\\\\\\\" \\\\\\\"+e+\\\\\\\" \\\\\\\")\\\\u0026\\\\u0026(t.className+=(t.className?\\\\\\\" \\\\\\\":\\\\\\\"\\\\\\\")+e)},T.util.makeElement=s,T.util.wrapElement=function(t,e,i){return\\\\\\\"string\\\\\\\"==typeof e\\\\u0026\\\\u0026(e=s(e,i)),t.parentNode\\\\u0026\\\\u0026t.parentNode.replaceChild(e,t),e.appendChild(t),e},T.util.getScrollLeftTop=a,T.util.getElementOffset=function(t){var e,r,n=t\\\\u0026\\\\u0026t.ownerDocument,o={left:0,top:0},s={left:0,top:0},h={borderLeftWidth:\\\\\\\"left\\\\\\\",borderTopWidth:\\\\\\\"top\\\\\\\",paddingLeft:\\\\\\\"left\\\\\\\",paddingTop:\\\\\\\"top\\\\\\\"};if(!n)return s;for(var c in h)s[h[c]]+=parseInt(i(t,c),10)||0;return e=n.documentElement,void 0!==t.getBoundingClientRect\\\\u0026\\\\u0026(o=t.getBoundingClientRect()),r=a(t),{left:o.left+r.left-(e.clientLeft||0)+s.left,top:o.top+r.top-(e.clientTop||0)+s.top}},T.util.getNodeCanvas=function(t){var e=T.jsdomImplForWrapper(t);return e._canvas||e._image},T.util.cleanUpJsdomNode=function(t){if(T.isLikelyNode){var e=T.jsdomImplForWrapper(t);e\\\\u0026\\\\u0026(e._image=null,e._canvas=null,e._currentSrc=null,e._attributes=null,e._classList=null)}}}(),function(){function t(){}T.util.request=function(e,i){i||(i={});var r=i.method?i.method.toUpperCase():\\\\\\\"GET\\\\\\\",n=i.onComplete||function(){},o=new T.window.XMLHttpRequest,s=i.body||i.parameters;return o.onreadystatechange=function(){4===o.readyState\\\\u0026\\\\u0026(n(o),o.onreadystatechange=t)},\\\\\\\"GET\\\\\\\"===r\\\\u0026\\\\u0026(s=null,\\\\\\\"string\\\\\\\"==typeof i.parameters\\\\u0026\\\\u0026(e=function(t,e){return t+(/\\\\\\\\?/.test(t)?\\\\\\\"\\\\u0026\\\\\\\":\\\\\\\"?\\\\\\\")+e}(e,i.parameters))),o.open(r,e,!0),\\\\\\\"POST\\\\\\\"!==r\\\\u0026\\\\u0026\\\\\\\"PUT\\\\\\\"!==r||o.setRequestHeader(\\\\\\\"Content-Type\\\\\\\",\\\\\\\"application/x-www-form-urlencoded\\\\\\\"),o.send(s),o}}(),T.log=console.log,T.warn=console.warn,function(){function t(){return!1}function e(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e}var i=T.window.requestAnimationFrame||T.window.webkitRequestAnimationFrame||T.window.mozRequestAnimationFrame||T.window.oRequestAnimationFrame||T.window.msRequestAnimationFrame||function(t){return T.window.setTimeout(t,1e3/60)},r=T.window.cancelAnimationFrame||T.window.clearTimeout;function n(){return i.apply(T.window,arguments)}T.util.animate=function(i){var r=!1;return n((function(o){i||(i={});var s,a=o||+new Date,h=i.duration||500,c=a+h,l=i.onChange||t,u=i.abort||t,f=i.onComplete||t,d=i.easing||e,g=\\\\\\\"startValue\\\\\\\"in i?i.startValue:0,p=\\\\\\\"endValue\\\\\\\"in i?i.endValue:100,v=i.byValue||p-g;i.onStart\\\\u0026\\\\u0026i.onStart(),function t(e){var i=(s=e||+new Date)\\\\u003ec?h:s-a,o=i/h,m=d(i,g,v,h),y=Math.abs((m-g)/v);if(!r){if(!u(m,y,o))return s\\\\u003ec?(l(p,1,1),void f(p,1,1)):(l(m,y,o),void n(t));f(p,1,1)}}(a)})),function(){r=!0}},T.util.requestAnimFrame=n,T.util.cancelAnimFrame=function(){return r.apply(T.window,arguments)}}(),function(){function t(t,e,i){var r=\\\\\\\"rgba(\\\\\\\"+parseInt(t[0]+i*(e[0]-t[0]),10)+\\\\\\\",\\\\\\\"+parseInt(t[1]+i*(e[1]-t[1]),10)+\\\\\\\",\\\\\\\"+parseInt(t[2]+i*(e[2]-t[2]),10);return r+=\\\\\\\",\\\\\\\"+(t\\\\u0026\\\\u0026e?parseFloat(t[3]+i*(e[3]-t[3])):1),r+=\\\\\\\")\\\\\\\"}T.util.animateColor=function(e,i,r,n){var o=new T.Color(e).getSource(),s=new T.Color(i).getSource(),a=n.onComplete,h=n.onChange;return n=n||{},T.util.animate(T.util.object.extend(n,{duration:r||500,startValue:o,endValue:s,byValue:s,easing:function(e,i,r,o){return t(i,r,n.colorEasing?n.colorEasing(e,o):1-Math.cos(e/o*(Math.PI/2)))},onComplete:function(e,i,r){if(a)return a(t(s,s,0),i,r)},onChange:function(e,i,r){if(h){if(Array.isArray(e))return h(t(e,e,0),i,r);h(e,i,r)}}}))}}(),function(){function t(t,e,i,r){return t\\\\u003cMath.abs(e)?(t=e,r=i/4):r=0===e\\\\u0026\\\\u00260===t?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(e/t),{a:t,c:e,p:i,s:r}}function e(t,e,i){return t.a*Math.pow(2,10*(e-=1))*Math.sin((e*i-t.s)*(2*Math.PI)/t.p)}function i(t,e,i,n){return i-r(n-t,0,i,n)+e}function r(t,e,i,r){return(t/=r)\\\\u003c1/2.75?i*(7.5625*t*t)+e:t\\\\u003c2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t\\\\u003c2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e}T.util.ease={easeInQuad:function(t,e,i,r){return i*(t/=r)*t+e},easeOutQuad:function(t,e,i,r){return-i*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,i,r){return(t/=r/2)\\\\u003c1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,r){return i*(t/=r)*t*t+e},easeOutCubic:function(t,e,i,r){return i*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,r){return(t/=r/2)\\\\u003c1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,r){return i*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,i,r){return-i*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,r){return(t/=r/2)\\\\u003c1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,r){return i*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,i,r){return i*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,r){return(t/=r/2)\\\\u003c1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e},easeOutSine:function(t,e,i,r){return i*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,i,r){return-i/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,i,r){return 0===t?e:i*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,i,r){return t===r?e+i:i*(1-Math.pow(2,-10*t/r))+e},easeInOutExpo:function(t,e,i,r){return 0===t?e:t===r?e+i:(t/=r/2)\\\\u003c1?i/2*Math.pow(2,10*(t-1))+e:i/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,i,r){return-i*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,i,r){return i*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,i,r){return(t/=r/2)\\\\u003c1?-i/2*(Math.sqrt(1-t*t)-1)+e:i/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(i,r,n,o){var s=0;return 0===i?r:1===(i/=o)?r+n:(s||(s=.3*o),-e(t(n,n,s,1.70158),i,o)+r)},easeOutElastic:function(e,i,r,n){var o=0;if(0===e)return i;if(1===(e/=n))return i+r;o||(o=.3*n);var s=t(r,r,o,1.70158);return s.a*Math.pow(2,-10*e)*Math.sin((e*n-s.s)*(2*Math.PI)/s.p)+s.c+i},easeInOutElastic:function(i,r,n,o){var s=0;if(0===i)return r;if(2===(i/=o/2))return r+n;s||(s=o*(.3*1.5));var a=t(n,n,s,1.70158);return i\\\\u003c1?-.5*e(a,i,o)+r:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*o-a.s)*(2*Math.PI)/a.p)*.5+a.c+r},easeInBack:function(t,e,i,r,n){return void 0===n\\\\u0026\\\\u0026(n=1.70158),i*(t/=r)*t*((n+1)*t-n)+e},easeOutBack:function(t,e,i,r,n){return void 0===n\\\\u0026\\\\u0026(n=1.70158),i*((t=t/r-1)*t*((n+1)*t+n)+1)+e},easeInOutBack:function(t,e,i,r,n){return void 0===n\\\\u0026\\\\u0026(n=1.70158),(t/=r/2)\\\\u003c1?i/2*(t*t*((1+(n*=1.525))*t-n))+e:i/2*((t-=2)*t*((1+(n*=1.525))*t+n)+2)+e},easeInBounce:i,easeOutBounce:r,easeInOutBounce:function(t,e,n,o){return t\\\\u003co/2?.5*i(2*t,0,n,o)+e:.5*r(2*t-o,0,n,o)+.5*n+e}}}(),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n=e.util.toFixed,o=e.util.parseUnit,s=e.util.multiplyTransformMatrices,a={cx:\\\\\\\"left\\\\\\\",x:\\\\\\\"left\\\\\\\",r:\\\\\\\"radius\\\\\\\",cy:\\\\\\\"top\\\\\\\",y:\\\\\\\"top\\\\\\\",display:\\\\\\\"visible\\\\\\\",visibility:\\\\\\\"visible\\\\\\\",transform:\\\\\\\"transformMatrix\\\\\\\",\\\\\\\"fill-opacity\\\\\\\":\\\\\\\"fillOpacity\\\\\\\",\\\\\\\"fill-rule\\\\\\\":\\\\\\\"fillRule\\\\\\\",\\\\\\\"font-family\\\\\\\":\\\\\\\"fontFamily\\\\\\\",\\\\\\\"font-size\\\\\\\":\\\\\\\"fontSize\\\\\\\",\\\\\\\"font-style\\\\\\\":\\\\\\\"fontStyle\\\\\\\",\\\\\\\"font-weight\\\\\\\":\\\\\\\"fontWeight\\\\\\\",\\\\\\\"letter-spacing\\\\\\\":\\\\\\\"charSpacing\\\\\\\",\\\\\\\"paint-order\\\\\\\":\\\\\\\"paintFirst\\\\\\\",\\\\\\\"stroke-dasharray\\\\\\\":\\\\\\\"strokeDashArray\\\\\\\",\\\\\\\"stroke-dashoffset\\\\\\\":\\\\\\\"strokeDashOffset\\\\\\\",\\\\\\\"stroke-linecap\\\\\\\":\\\\\\\"strokeLineCap\\\\\\\",\\\\\\\"stroke-linejoin\\\\\\\":\\\\\\\"strokeLineJoin\\\\\\\",\\\\\\\"stroke-miterlimit\\\\\\\":\\\\\\\"strokeMiterLimit\\\\\\\",\\\\\\\"stroke-opacity\\\\\\\":\\\\\\\"strokeOpacity\\\\\\\",\\\\\\\"stroke-width\\\\\\\":\\\\\\\"strokeWidth\\\\\\\",\\\\\\\"text-decoration\\\\\\\":\\\\\\\"textDecoration\\\\\\\",\\\\\\\"text-anchor\\\\\\\":\\\\\\\"textAnchor\\\\\\\",opacity:\\\\\\\"opacity\\\\\\\",\\\\\\\"clip-path\\\\\\\":\\\\\\\"clipPath\\\\\\\",\\\\\\\"clip-rule\\\\\\\":\\\\\\\"clipRule\\\\\\\",\\\\\\\"vector-effect\\\\\\\":\\\\\\\"strokeUniform\\\\\\\",\\\\\\\"image-rendering\\\\\\\":\\\\\\\"imageSmoothing\\\\\\\"},h={stroke:\\\\\\\"strokeOpacity\\\\\\\",fill:\\\\\\\"fillOpacity\\\\\\\"},c=\\\\\\\"font-size\\\\\\\",l=\\\\\\\"clip-path\\\\\\\";function u(t){return t in a?a[t]:t}function f(t,i,r,n){var a,h=\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(i);if(\\\\\\\"fill\\\\\\\"!==t\\\\u0026\\\\u0026\\\\\\\"stroke\\\\\\\"!==t||\\\\\\\"none\\\\\\\"!==i){if(\\\\\\\"strokeUniform\\\\\\\"===t)return\\\\\\\"non-scaling-stroke\\\\\\\"===i;if(\\\\\\\"strokeDashArray\\\\\\\"===t)i=\\\\\\\"none\\\\\\\"===i?null:i.replace(/,/g,\\\\\\\" \\\\\\\").split(/\\\\\\\\s+/).map(parseFloat);else if(\\\\\\\"transformMatrix\\\\\\\"===t)i=r\\\\u0026\\\\u0026r.transformMatrix?s(r.transformMatrix,e.parseTransformAttribute(i)):e.parseTransformAttribute(i);else if(\\\\\\\"visible\\\\\\\"===t)i=\\\\\\\"none\\\\\\\"!==i\\\\u0026\\\\u0026\\\\\\\"hidden\\\\\\\"!==i,r\\\\u0026\\\\u0026!1===r.visible\\\\u0026\\\\u0026(i=!1);else if(\\\\\\\"opacity\\\\\\\"===t)i=parseFloat(i),r\\\\u0026\\\\u0026void 0!==r.opacity\\\\u0026\\\\u0026(i*=r.opacity);else if(\\\\\\\"textAnchor\\\\\\\"===t)i=\\\\\\\"start\\\\\\\"===i?\\\\\\\"left\\\\\\\":\\\\\\\"end\\\\\\\"===i?\\\\\\\"right\\\\\\\":\\\\\\\"center\\\\\\\";else if(\\\\\\\"charSpacing\\\\\\\"===t)a=o(i,n)/n*1e3;else if(\\\\\\\"paintFirst\\\\\\\"===t){var c=i.indexOf(\\\\\\\"fill\\\\\\\"),l=i.indexOf(\\\\\\\"stroke\\\\\\\");i=\\\\\\\"fill\\\\\\\";(c\\\\u003e-1\\\\u0026\\\\u0026l\\\\u003e-1\\\\u0026\\\\u0026l\\\\u003cc||-1===c\\\\u0026\\\\u0026l\\\\u003e-1)\\\\u0026\\\\u0026(i=\\\\\\\"stroke\\\\\\\")}else{if(\\\\\\\"href\\\\\\\"===t||\\\\\\\"xlink:href\\\\\\\"===t||\\\\\\\"font\\\\\\\"===t)return i;if(\\\\\\\"imageSmoothing\\\\\\\"===t)return\\\\\\\"optimizeQuality\\\\\\\"===i;a=h?i.map(o):o(i,n)}}else i=\\\\\\\"\\\\\\\";return!h\\\\u0026\\\\u0026isNaN(a)?i:a}function d(t){return new RegExp(\\\\\\\"^(\\\\\\\"+t.join(\\\\\\\"|\\\\\\\")+\\\\\\\")\\\\\\\\\\\\\\\\b\\\\\\\",\\\\\\\"i\\\\\\\")}function g(t,e){var i,r,n,o,s=[];for(n=0,o=e.length;n\\\\u003co;n++)i=e[n],r=t.getElementsByTagName(i),s=s.concat(Array.prototype.slice.call(r));return s}function p(t,e){var i,r=!0;return(i=v(t,e.pop()))\\\\u0026\\\\u0026e.length\\\\u0026\\\\u0026(r=function(t,e){var i,r=!0;for(;t.parentNode\\\\u0026\\\\u00261===t.parentNode.nodeType\\\\u0026\\\\u0026e.length;)r\\\\u0026\\\\u0026(i=e.pop()),r=v(t=t.parentNode,i);return 0===e.length}(t,e)),i\\\\u0026\\\\u0026r\\\\u0026\\\\u00260===e.length}function v(t,e){var i,r,n=t.nodeName,o=t.getAttribute(\\\\\\\"class\\\\\\\"),s=t.getAttribute(\\\\\\\"id\\\\\\\");if(i=new RegExp(\\\\\\\"^\\\\\\\"+n,\\\\\\\"i\\\\\\\"),e=e.replace(i,\\\\\\\"\\\\\\\"),s\\\\u0026\\\\u0026e.length\\\\u0026\\\\u0026(i=new RegExp(\\\\\\\"#\\\\\\\"+s+\\\\\\\"(?![a-zA-Z\\\\\\\\\\\\\\\\-]+)\\\\\\\",\\\\\\\"i\\\\\\\"),e=e.replace(i,\\\\\\\"\\\\\\\")),o\\\\u0026\\\\u0026e.length)for(r=(o=o.split(\\\\\\\" \\\\\\\")).length;r--;)i=new RegExp(\\\\\\\"\\\\\\\\\\\\\\\\.\\\\\\\"+o[r]+\\\\\\\"(?![a-zA-Z\\\\\\\\\\\\\\\\-]+)\\\\\\\",\\\\\\\"i\\\\\\\"),e=e.replace(i,\\\\\\\"\\\\\\\");return 0===e.length}function m(t,e){var i;if(t.getElementById\\\\u0026\\\\u0026(i=t.getElementById(e)),i)return i;var r,n,o,s=t.getElementsByTagName(\\\\\\\"*\\\\\\\");for(n=0,o=s.length;n\\\\u003co;n++)if(e===(r=s[n]).getAttribute(\\\\\\\"id\\\\\\\"))return r}e.svgValidTagNamesRegEx=d([\\\\\\\"path\\\\\\\",\\\\\\\"circle\\\\\\\",\\\\\\\"polygon\\\\\\\",\\\\\\\"polyline\\\\\\\",\\\\\\\"ellipse\\\\\\\",\\\\\\\"rect\\\\\\\",\\\\\\\"line\\\\\\\",\\\\\\\"image\\\\\\\",\\\\\\\"text\\\\\\\"]),e.svgViewBoxElementsRegEx=d([\\\\\\\"symbol\\\\\\\",\\\\\\\"image\\\\\\\",\\\\\\\"marker\\\\\\\",\\\\\\\"pattern\\\\\\\",\\\\\\\"view\\\\\\\",\\\\\\\"svg\\\\\\\"]),e.svgInvalidAncestorsRegEx=d([\\\\\\\"pattern\\\\\\\",\\\\\\\"defs\\\\\\\",\\\\\\\"symbol\\\\\\\",\\\\\\\"metadata\\\\\\\",\\\\\\\"clipPath\\\\\\\",\\\\\\\"mask\\\\\\\",\\\\\\\"desc\\\\\\\"]),e.svgValidParentsRegEx=d([\\\\\\\"symbol\\\\\\\",\\\\\\\"g\\\\\\\",\\\\\\\"a\\\\\\\",\\\\\\\"svg\\\\\\\",\\\\\\\"clipPath\\\\\\\",\\\\\\\"defs\\\\\\\"]),e.cssRules={},e.gradientDefs={},e.clipPaths={},e.parseTransformAttribute=function(){function t(t,i,r){t[r]=Math.tan(e.util.degreesToRadians(i[0]))}var i=e.iMatrix,r=e.reNum,n=e.commaWsp,o=\\\\\\\"(?:\\\\\\\"+(\\\\\\\"(?:(matrix)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(translate)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")(?:\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\"))?\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(scale)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")(?:\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\"))?\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(rotate)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")(?:\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\"))?\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(skewX)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(skewY)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\")\\\\\\\",s=new RegExp(\\\\\\\"^\\\\\\\\\\\\\\\\s*(?:\\\\\\\"+(\\\\\\\"(?:\\\\\\\"+o+\\\\\\\"(?:\\\\\\\"+n+\\\\\\\"*\\\\\\\"+o+\\\\\\\")*)\\\\\\\")+\\\\\\\"?)\\\\\\\\\\\\\\\\s*$\\\\\\\"),a=new RegExp(o,\\\\\\\"g\\\\\\\");return function(r){var n=i.concat(),h=[];if(!r||r\\\\u0026\\\\u0026!s.test(r))return n;r.replace(a,(function(r){var s=new RegExp(o).exec(r).filter((function(t){return!!t})),a=s[1],c=s.slice(2).map(parseFloat);switch(a){case\\\\\\\"translate\\\\\\\":!function(t,e){t[4]=e[0],2===e.length\\\\u0026\\\\u0026(t[5]=e[1])}(n,c);break;case\\\\\\\"rotate\\\\\\\":c[0]=e.util.degreesToRadians(c[0]),function(t,i){var r=e.util.cos(i[0]),n=e.util.sin(i[0]),o=0,s=0;3===i.length\\\\u0026\\\\u0026(o=i[1],s=i[2]),t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=o-(r*o-n*s),t[5]=s-(n*o+r*s)}(n,c);break;case\\\\\\\"scale\\\\\\\":!function(t,e){var i=e[0],r=2===e.length?e[1]:e[0];t[0]=i,t[3]=r}(n,c);break;case\\\\\\\"skewX\\\\\\\":t(n,c,2);break;case\\\\\\\"skewY\\\\\\\":t(n,c,1);break;case\\\\\\\"matrix\\\\\\\":n=c}h.push(n.concat()),n=i.concat()}));for(var c=h[0];h.length\\\\u003e1;)h.shift(),c=e.util.multiplyTransformMatrices(c,h[0]);return c}}();var y=new RegExp(\\\\\\\"^\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"+)\\\\\\\\\\\\\\\\s*,?\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"+)\\\\\\\\\\\\\\\\s*,?\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"+)\\\\\\\\\\\\\\\\s*,?\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"+)\\\\\\\\\\\\\\\\s*$\\\\\\\");function _(t){if(!e.svgViewBoxElementsRegEx.test(t.nodeName))return{};var i,r,n,s,a,h,c=t.getAttribute(\\\\\\\"viewBox\\\\\\\"),l=1,u=1,f=t.getAttribute(\\\\\\\"width\\\\\\\"),d=t.getAttribute(\\\\\\\"height\\\\\\\"),g=t.getAttribute(\\\\\\\"x\\\\\\\")||0,p=t.getAttribute(\\\\\\\"y\\\\\\\")||0,v=t.getAttribute(\\\\\\\"preserveAspectRatio\\\\\\\")||\\\\\\\"\\\\\\\",m=!c||!(c=c.match(y)),_=!f||!d||\\\\\\\"100%\\\\\\\"===f||\\\\\\\"100%\\\\\\\"===d,b=m\\\\u0026\\\\u0026_,x={},C=\\\\\\\"\\\\\\\",w=0,S=0;if(x.width=0,x.height=0,x.toBeParsed=b,m\\\\u0026\\\\u0026(g||p)\\\\u0026\\\\u0026t.parentNode\\\\u0026\\\\u0026\\\\\\\"#document\\\\\\\"!==t.parentNode.nodeName\\\\u0026\\\\u0026(C=\\\\\\\" translate(\\\\\\\"+o(g)+\\\\\\\" \\\\\\\"+o(p)+\\\\\\\") \\\\\\\",a=(t.getAttribute(\\\\\\\"transform\\\\\\\")||\\\\\\\"\\\\\\\")+C,t.setAttribute(\\\\\\\"transform\\\\\\\",a),t.removeAttribute(\\\\\\\"x\\\\\\\"),t.removeAttribute(\\\\\\\"y\\\\\\\")),b)return x;if(m)return x.width=o(f),x.height=o(d),x;if(i=-parseFloat(c[1]),r=-parseFloat(c[2]),n=parseFloat(c[3]),s=parseFloat(c[4]),x.minX=i,x.minY=r,x.viewBoxWidth=n,x.viewBoxHeight=s,_?(x.width=n,x.height=s):(x.width=o(f),x.height=o(d),l=x.width/n,u=x.height/s),\\\\\\\"none\\\\\\\"!==(v=e.util.parsePreserveAspectRatioAttribute(v)).alignX\\\\u0026\\\\u0026(\\\\\\\"meet\\\\\\\"===v.meetOrSlice\\\\u0026\\\\u0026(u=l=l\\\\u003eu?u:l),\\\\\\\"slice\\\\\\\"===v.meetOrSlice\\\\u0026\\\\u0026(u=l=l\\\\u003eu?l:u),w=x.width-n*l,S=x.height-s*l,\\\\\\\"Mid\\\\\\\"===v.alignX\\\\u0026\\\\u0026(w/=2),\\\\\\\"Mid\\\\\\\"===v.alignY\\\\u0026\\\\u0026(S/=2),\\\\\\\"Min\\\\\\\"===v.alignX\\\\u0026\\\\u0026(w=0),\\\\\\\"Min\\\\\\\"===v.alignY\\\\u0026\\\\u0026(S=0)),1===l\\\\u0026\\\\u00261===u\\\\u0026\\\\u00260===i\\\\u0026\\\\u00260===r\\\\u0026\\\\u00260===g\\\\u0026\\\\u00260===p)return x;if((g||p)\\\\u0026\\\\u0026\\\\\\\"#document\\\\\\\"!==t.parentNode.nodeName\\\\u0026\\\\u0026(C=\\\\\\\" translate(\\\\\\\"+o(g)+\\\\\\\" \\\\\\\"+o(p)+\\\\\\\") \\\\\\\"),a=C+\\\\\\\" matrix(\\\\\\\"+l+\\\\\\\" 0 0 \\\\\\\"+u+\\\\\\\" \\\\\\\"+(i*l+w)+\\\\\\\" \\\\\\\"+(r*u+S)+\\\\\\\") \\\\\\\",\\\\\\\"svg\\\\\\\"===t.nodeName){for(h=t.ownerDocument.createElementNS(e.svgNS,\\\\\\\"g\\\\\\\");t.firstChild;)h.appendChild(t.firstChild);t.appendChild(h)}else(h=t).removeAttribute(\\\\\\\"x\\\\\\\"),h.removeAttribute(\\\\\\\"y\\\\\\\"),a=h.getAttribute(\\\\\\\"transform\\\\\\\")+a;return h.setAttribute(\\\\\\\"transform\\\\\\\",a),x}function b(t,e){var i=\\\\\\\"xlink:href\\\\\\\",r=m(t,e.getAttribute(i).substr(1));if(r\\\\u0026\\\\u0026r.getAttribute(i)\\\\u0026\\\\u0026b(t,r),[\\\\\\\"gradientTransform\\\\\\\",\\\\\\\"x1\\\\\\\",\\\\\\\"x2\\\\\\\",\\\\\\\"y1\\\\\\\",\\\\\\\"y2\\\\\\\",\\\\\\\"gradientUnits\\\\\\\",\\\\\\\"cx\\\\\\\",\\\\\\\"cy\\\\\\\",\\\\\\\"r\\\\\\\",\\\\\\\"fx\\\\\\\",\\\\\\\"fy\\\\\\\"].forEach((function(t){r\\\\u0026\\\\u0026!e.hasAttribute(t)\\\\u0026\\\\u0026r.hasAttribute(t)\\\\u0026\\\\u0026e.setAttribute(t,r.getAttribute(t))})),!e.children.length)for(var n=r.cloneNode(!0);n.firstChild;)e.appendChild(n.firstChild);e.removeAttribute(i)}e.parseSVGDocument=function(t,i,n,o){if(t){!function(t){for(var i=g(t,[\\\\\\\"use\\\\\\\",\\\\\\\"svg:use\\\\\\\"]),r=0;i.length\\\\u0026\\\\u0026r\\\\u003ci.length;){var n=i[r],o=n.getAttribute(\\\\\\\"xlink:href\\\\\\\")||n.getAttribute(\\\\\\\"href\\\\\\\");if(null===o)return;var s,a,h,c,l=o.substr(1),u=n.getAttribute(\\\\\\\"x\\\\\\\")||0,f=n.getAttribute(\\\\\\\"y\\\\\\\")||0,d=m(t,l).cloneNode(!0),p=(d.getAttribute(\\\\\\\"transform\\\\\\\")||\\\\\\\"\\\\\\\")+\\\\\\\" translate(\\\\\\\"+u+\\\\\\\", \\\\\\\"+f+\\\\\\\")\\\\\\\",v=i.length,y=e.svgNS;if(_(d),/^svg$/i.test(d.nodeName)){var b=d.ownerDocument.createElementNS(y,\\\\\\\"g\\\\\\\");for(a=0,c=(h=d.attributes).length;a\\\\u003cc;a++)s=h.item(a),b.setAttributeNS(y,s.nodeName,s.nodeValue);for(;d.firstChild;)b.appendChild(d.firstChild);d=b}for(a=0,c=(h=n.attributes).length;a\\\\u003cc;a++)\\\\\\\"x\\\\\\\"!==(s=h.item(a)).nodeName\\\\u0026\\\\u0026\\\\\\\"y\\\\\\\"!==s.nodeName\\\\u0026\\\\u0026\\\\\\\"xlink:href\\\\\\\"!==s.nodeName\\\\u0026\\\\u0026\\\\\\\"href\\\\\\\"!==s.nodeName\\\\u0026\\\\u0026(\\\\\\\"transform\\\\\\\"===s.nodeName?p=s.nodeValue+\\\\\\\" \\\\\\\"+p:d.setAttribute(s.nodeName,s.nodeValue));d.setAttribute(\\\\\\\"transform\\\\\\\",p),d.setAttribute(\\\\\\\"instantiated_by_use\\\\\\\",\\\\\\\"1\\\\\\\"),d.removeAttribute(\\\\\\\"id\\\\\\\"),n.parentNode.replaceChild(d,n),i.length===v\\\\u0026\\\\u0026r++}}(t);var s,a,h=e.Object.__uid++,c=_(t),l=e.util.toArray(t.getElementsByTagName(\\\\\\\"*\\\\\\\"));if(c.crossOrigin=o\\\\u0026\\\\u0026o.crossOrigin,c.svgUid=h,0===l.length\\\\u0026\\\\u0026e.isLikelyNode){var u=[];for(s=0,a=(l=t.selectNodes('//*[name(.)!=\\\\\\\"svg\\\\\\\"]')).length;s\\\\u003ca;s++)u[s]=l[s];l=u}var f=l.filter((function(t){return _(t),e.svgValidTagNamesRegEx.test(t.nodeName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\"))\\\\u0026\\\\u0026!function(t,e){for(;t\\\\u0026\\\\u0026(t=t.parentNode);)if(t.nodeName\\\\u0026\\\\u0026e.test(t.nodeName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\"))\\\\u0026\\\\u0026!t.getAttribute(\\\\\\\"instantiated_by_use\\\\\\\"))return!0;return!1}(t,e.svgInvalidAncestorsRegEx)}));if(!f||f\\\\u0026\\\\u0026!f.length)i\\\\u0026\\\\u0026i([],{});else{var d={};l.filter((function(t){return\\\\\\\"clipPath\\\\\\\"===t.nodeName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\")})).forEach((function(t){var i=t.getAttribute(\\\\\\\"id\\\\\\\");d[i]=e.util.toArray(t.getElementsByTagName(\\\\\\\"*\\\\\\\")).filter((function(t){return e.svgValidTagNamesRegEx.test(t.nodeName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\"))}))})),e.gradientDefs[h]=e.getGradientDefs(t),e.cssRules[h]=e.getCSSRules(t),e.clipPaths[h]=d,e.parseElements(f,(function(t,r){i\\\\u0026\\\\u0026(i(t,c,r,l),delete e.gradientDefs[h],delete e.cssRules[h],delete e.clipPaths[h])}),r(c),n,o)}}};var x=new RegExp(\\\\\\\"(normal|italic)?\\\\\\\\\\\\\\\\s*(normal|small-caps)?\\\\\\\\\\\\\\\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"(?:px|cm|mm|em|pt|pc|in)*)(?:\\\\\\\\\\\\\\\\/(normal|\\\\\\\"+e.reNum+\\\\\\\"))?\\\\\\\\\\\\\\\\s+(.*)\\\\\\\");i(e,{parseFontDeclaration:function(t,e){var i=t.match(x);if(i){var r=i[1],n=i[3],s=i[4],a=i[5],h=i[6];r\\\\u0026\\\\u0026(e.fontStyle=r),n\\\\u0026\\\\u0026(e.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),s\\\\u0026\\\\u0026(e.fontSize=o(s)),h\\\\u0026\\\\u0026(e.fontFamily=h),a\\\\u0026\\\\u0026(e.lineHeight=\\\\\\\"normal\\\\\\\"===a?1:a)}},getGradientDefs:function(t){var e,i=g(t,[\\\\\\\"linearGradient\\\\\\\",\\\\\\\"radialGradient\\\\\\\",\\\\\\\"svg:linearGradient\\\\\\\",\\\\\\\"svg:radialGradient\\\\\\\"]),r=0,n={};for(r=i.length;r--;)(e=i[r]).getAttribute(\\\\\\\"xlink:href\\\\\\\")\\\\u0026\\\\u0026b(t,e),n[e.getAttribute(\\\\\\\"id\\\\\\\")]=e;return n},parseAttributes:function(t,r,s){if(t){var a,d,g,v={};void 0===s\\\\u0026\\\\u0026(s=t.getAttribute(\\\\\\\"svgUid\\\\\\\")),t.parentNode\\\\u0026\\\\u0026e.svgValidParentsRegEx.test(t.parentNode.nodeName)\\\\u0026\\\\u0026(v=e.parseAttributes(t.parentNode,r,s));var m=r.reduce((function(e,i){return(a=t.getAttribute(i))\\\\u0026\\\\u0026(e[i]=a),e}),{}),y=i(function(t,i){var r={};for(var n in e.cssRules[i])if(p(t,n.split(\\\\\\\" \\\\\\\")))for(var o in e.cssRules[i][n])r[o]=e.cssRules[i][n][o];return r}(t,s),e.parseStyleAttribute(t));m=i(m,y),y[l]\\\\u0026\\\\u0026t.setAttribute(l,y[l]),d=g=v.fontSize||e.Text.DEFAULT_SVG_FONT_SIZE,m[c]\\\\u0026\\\\u0026(m[c]=d=o(m[c],g));var _,b,x={};for(var C in m)b=f(_=u(C),m[C],v,d),x[_]=b;x\\\\u0026\\\\u0026x.font\\\\u0026\\\\u0026e.parseFontDeclaration(x.font,x);var w=i(v,x);return e.svgValidParentsRegEx.test(t.nodeName)?w:function(t){for(var i in h)if(void 0!==t[h[i]]\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!==t[i]){if(void 0===t[i]){if(!e.Object.prototype[i])continue;t[i]=e.Object.prototype[i]}if(0!==t[i].indexOf(\\\\\\\"url(\\\\\\\")){var r=new e.Color(t[i]);t[i]=r.setAlpha(n(r.getAlpha()*t[h[i]],2)).toRgba()}}return t}(w)}},parseElements:function(t,i,r,n,o){new e.ElementsParser(t,i,r,n,o).parse()},parseStyleAttribute:function(t){var e={},i=t.getAttribute(\\\\\\\"style\\\\\\\");return i?(\\\\\\\"string\\\\\\\"==typeof i?function(t,e){var i,r;t.replace(/;\\\\\\\\s*$/,\\\\\\\"\\\\\\\").split(\\\\\\\";\\\\\\\").forEach((function(t){var n=t.split(\\\\\\\":\\\\\\\");i=n[0].trim().toLowerCase(),r=n[1].trim(),e[i]=r}))}(i,e):function(t,e){var i,r;for(var n in t)void 0!==t[n]\\\\u0026\\\\u0026(i=n.toLowerCase(),r=t[n],e[i]=r)}(i,e),e):e},parsePointsAttribute:function(t){if(!t)return null;var e,i,r=[];for(e=0,i=(t=(t=t.replace(/,/g,\\\\\\\" \\\\\\\").trim()).split(/\\\\\\\\s+/)).length;e\\\\u003ci;e+=2)r.push({x:parseFloat(t[e]),y:parseFloat(t[e+1])});return r},getCSSRules:function(t){var i,r,n=t.getElementsByTagName(\\\\\\\"style\\\\\\\"),o={};for(i=0,r=n.length;i\\\\u003cr;i++){var s=n[i].textContent;\\\\\\\"\\\\\\\"!==(s=s.replace(/\\\\\\\\/\\\\\\\\*[\\\\\\\\s\\\\\\\\S]*?\\\\\\\\*\\\\\\\\//g,\\\\\\\"\\\\\\\")).trim()\\\\u0026\\\\u0026s.match(/[^{]*\\\\\\\\{[\\\\\\\\s\\\\\\\\S]*?\\\\\\\\}/g).map((function(t){return t.trim()})).forEach((function(t){var n=t.match(/([\\\\\\\\s\\\\\\\\S]*?)\\\\\\\\s*\\\\\\\\{([^}]*)\\\\\\\\}/),s={},a=n[2].trim().replace(/;$/,\\\\\\\"\\\\\\\").split(/\\\\\\\\s*;\\\\\\\\s*/);for(i=0,r=a.length;i\\\\u003cr;i++){var h=a[i].split(/\\\\\\\\s*:\\\\\\\\s*/),c=h[0],l=h[1];s[c]=l}(t=n[1]).split(\\\\\\\",\\\\\\\").forEach((function(t){\\\\\\\"\\\\\\\"!==(t=t.replace(/^svg/i,\\\\\\\"\\\\\\\").trim())\\\\u0026\\\\u0026(o[t]?e.util.object.extend(o[t],s):o[t]=e.util.object.clone(s))}))}))}return o},loadSVGFromURL:function(t,i,r,n){t=t.replace(/^\\\\\\\\n\\\\\\\\s*/,\\\\\\\"\\\\\\\").trim(),new e.util.request(t,{method:\\\\\\\"get\\\\\\\",onComplete:function(t){var o=t.responseXML;if(!o||!o.documentElement)return i\\\\u0026\\\\u0026i(null),!1;e.parseSVGDocument(o.documentElement,(function(t,e,r,n){i\\\\u0026\\\\u0026i(t,e,r,n)}),r,n)}})},loadSVGFromString:function(t,i,r,n){var o=(new e.window.DOMParser).parseFromString(t.trim(),\\\\\\\"text/xml\\\\\\\");e.parseSVGDocument(o.documentElement,(function(t,e,r,n){i(t,e,r,n)}),r,n)}})}(t),T.ElementsParser=function(t,e,i,r,n,o){this.elements=t,this.callback=e,this.options=i,this.reviver=r,this.svgUid=i\\\\u0026\\\\u0026i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\\\\\\\\(['\\\\\\\"]?#([^'\\\\\\\"]+)['\\\\\\\"]?\\\\\\\\)/g,this.doc=o},(y=T.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},y.createObjects=function(){var t=this;this.elements.forEach((function(e,i){e.setAttribute(\\\\\\\"svgUid\\\\\\\",t.svgUid),t.createObject(e,i)}))},y.findTag=function(t){return T[T.util.string.capitalize(t.tagName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\"))]},y.createObject=function(t,e){var i=this.findTag(t);if(i\\\\u0026\\\\u0026i.fromElement)try{i.fromElement(t,this.createCallback(e,t),this.options)}catch(t){T.log(t)}else this.checkIfDone()},y.createCallback=function(t,e){var i=this;return function(r){var n;i.resolveGradient(r,e,\\\\\\\"fill\\\\\\\"),i.resolveGradient(r,e,\\\\\\\"stroke\\\\\\\"),r instanceof T.Image\\\\u0026\\\\u0026r._originalElement\\\\u0026\\\\u0026(n=r.parsePreserveAspectRatioAttribute(e)),r._removeTransformMatrix(n),i.resolveClipPath(r,e),i.reviver\\\\u0026\\\\u0026i.reviver(e,r),i.instances[t]=r,i.checkIfDone()}},y.extractPropertyDefinition=function(t,e,i){var r=t[e],n=this.regexUrl;if(n.test(r)){n.lastIndex=0;var o=n.exec(r)[1];return n.lastIndex=0,T[i][this.svgUid][o]}},y.resolveGradient=function(t,e,i){var r=this.extractPropertyDefinition(t,i,\\\\\\\"gradientDefs\\\\\\\");if(r){var n=e.getAttribute(i+\\\\\\\"-opacity\\\\\\\"),o=T.Gradient.fromElement(r,t,n,this.options);t.set(i,o)}},y.createClipPathCallback=function(t,e){return function(t){t._removeTransformMatrix(),t.fillRule=t.clipRule,e.push(t)}},y.resolveClipPath=function(t,e){var i,r,n,o,s=this.extractPropertyDefinition(t,\\\\\\\"clipPath\\\\\\\",\\\\\\\"clipPaths\\\\\\\");if(s){n=[],r=T.util.invertTransform(t.calcTransformMatrix());for(var a=s[0].parentNode,h=e;h.parentNode\\\\u0026\\\\u0026h.getAttribute(\\\\\\\"clip-path\\\\\\\")!==t.clipPath;)h=h.parentNode;h.parentNode.appendChild(a);for(var c=0;c\\\\u003cs.length;c++)i=s[c],this.findTag(i).fromElement(i,this.createClipPathCallback(t,n),this.options);s=1===n.length?n[0]:new T.Group(n),o=T.util.multiplyTransformMatrices(r,s.calcTransformMatrix()),s.clipPath\\\\u0026\\\\u0026this.resolveClipPath(s,h);var l=T.util.qrDecompose(o);s.flipX=!1,s.flipY=!1,s.set(\\\\\\\"scaleX\\\\\\\",l.scaleX),s.set(\\\\\\\"scaleY\\\\\\\",l.scaleY),s.angle=l.angle,s.skewX=l.skewX,s.skewY=0,s.setPositionByOrigin({x:l.translateX,y:l.translateY},\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\"),t.clipPath=s}else delete t.clipPath},y.checkIfDone=function(){0==--this.numElements\\\\u0026\\\\u0026(this.instances=this.instances.filter((function(t){return null!=t})),this.callback(this.instances,this.elements))},function(t){var e=t.fabric||(t.fabric={});function i(t,e){this.x=t,this.y=e}e.Point?e.warn(\\\\\\\"fabric.Point is already defined\\\\\\\"):(e.Point=i,i.prototype={type:\\\\\\\"point\\\\\\\",constructor:i,add:function(t){return new i(this.x+t.x,this.y+t.y)},addEquals:function(t){return this.x+=t.x,this.y+=t.y,this},scalarAdd:function(t){return new i(this.x+t,this.y+t)},scalarAddEquals:function(t){return this.x+=t,this.y+=t,this},subtract:function(t){return new i(this.x-t.x,this.y-t.y)},subtractEquals:function(t){return this.x-=t.x,this.y-=t.y,this},scalarSubtract:function(t){return new i(this.x-t,this.y-t)},scalarSubtractEquals:function(t){return this.x-=t,this.y-=t,this},multiply:function(t){return new i(this.x*t,this.y*t)},multiplyEquals:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return new i(this.x/t,this.y/t)},divideEquals:function(t){return this.x/=t,this.y/=t,this},eq:function(t){return this.x===t.x\\\\u0026\\\\u0026this.y===t.y},lt:function(t){return this.x\\\\u003ct.x\\\\u0026\\\\u0026this.y\\\\u003ct.y},lte:function(t){return this.x\\\\u003c=t.x\\\\u0026\\\\u0026this.y\\\\u003c=t.y},gt:function(t){return this.x\\\\u003et.x\\\\u0026\\\\u0026this.y\\\\u003et.y},gte:function(t){return this.x\\\\u003e=t.x\\\\u0026\\\\u0026this.y\\\\u003e=t.y},lerp:function(t,e){return void 0===e\\\\u0026\\\\u0026(e=.5),e=Math.max(Math.min(1,e),0),new i(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e)},distanceFrom:function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},midPointFrom:function(t){return this.lerp(t)},min:function(t){return new i(Math.min(this.x,t.x),Math.min(this.y,t.y))},max:function(t){return new i(Math.max(this.x,t.x),Math.max(this.y,t.y))},toString:function(){return this.x+\\\\\\\",\\\\\\\"+this.y},setXY:function(t,e){return this.x=t,this.y=e,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setFromPoint:function(t){return this.x=t.x,this.y=t.y,this},swap:function(t){var e=this.x,i=this.y;this.x=t.x,this.y=t.y,t.x=e,t.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(t){var e=t.fabric||(t.fabric={});function i(t){this.status=t,this.points=[]}e.Intersection?e.warn(\\\\\\\"fabric.Intersection is already defined\\\\\\\"):(e.Intersection=i,e.Intersection.prototype={constructor:i,appendPoint:function(t){return this.points.push(t),this},appendPoints:function(t){return this.points=this.points.concat(t),this}},e.Intersection.intersectLineLine=function(t,r,n,o){var s,a=(o.x-n.x)*(t.y-n.y)-(o.y-n.y)*(t.x-n.x),h=(r.x-t.x)*(t.y-n.y)-(r.y-t.y)*(t.x-n.x),c=(o.y-n.y)*(r.x-t.x)-(o.x-n.x)*(r.y-t.y);if(0!==c){var l=a/c,u=h/c;0\\\\u003c=l\\\\u0026\\\\u0026l\\\\u003c=1\\\\u0026\\\\u00260\\\\u003c=u\\\\u0026\\\\u0026u\\\\u003c=1?(s=new i(\\\\\\\"Intersection\\\\\\\")).appendPoint(new e.Point(t.x+l*(r.x-t.x),t.y+l*(r.y-t.y))):s=new i}else s=new i(0===a||0===h?\\\\\\\"Coincident\\\\\\\":\\\\\\\"Parallel\\\\\\\");return s},e.Intersection.intersectLinePolygon=function(t,e,r){var n,o,s,a,h=new i,c=r.length;for(a=0;a\\\\u003cc;a++)n=r[a],o=r[(a+1)%c],s=i.intersectLineLine(t,e,n,o),h.appendPoints(s.points);return h.points.length\\\\u003e0\\\\u0026\\\\u0026(h.status=\\\\\\\"Intersection\\\\\\\"),h},e.Intersection.intersectPolygonPolygon=function(t,e){var r,n=new i,o=t.length;for(r=0;r\\\\u003co;r++){var s=t[r],a=t[(r+1)%o],h=i.intersectLinePolygon(s,a,e);n.appendPoints(h.points)}return n.points.length\\\\u003e0\\\\u0026\\\\u0026(n.status=\\\\\\\"Intersection\\\\\\\"),n},e.Intersection.intersectPolygonRectangle=function(t,r,n){var o=r.min(n),s=r.max(n),a=new e.Point(s.x,o.y),h=new e.Point(o.x,s.y),c=i.intersectLinePolygon(o,a,t),l=i.intersectLinePolygon(a,s,t),u=i.intersectLinePolygon(s,h,t),f=i.intersectLinePolygon(h,o,t),d=new i;return d.appendPoints(c.points),d.appendPoints(l.points),d.appendPoints(u.points),d.appendPoints(f.points),d.points.length\\\\u003e0\\\\u0026\\\\u0026(d.status=\\\\\\\"Intersection\\\\\\\"),d})}(t),function(t){var e=t.fabric||(t.fabric={});function i(t){t?this._tryParsingColor(t):this.setSource([0,0,0,1])}function r(t,e,i){return i\\\\u003c0\\\\u0026\\\\u0026(i+=1),i\\\\u003e1\\\\u0026\\\\u0026(i-=1),i\\\\u003c1/6?t+6*(e-t)*i:i\\\\u003c.5?e:i\\\\u003c2/3?t+(e-t)*(2/3-i)*6:t}e.Color?e.warn(\\\\\\\"fabric.Color is already defined.\\\\\\\"):(e.Color=i,e.Color.prototype={_tryParsingColor:function(t){var e;t in i.colorNameMap\\\\u0026\\\\u0026(t=i.colorNameMap[t]),\\\\\\\"transparent\\\\\\\"===t\\\\u0026\\\\u0026(e=[255,255,255,0]),e||(e=i.sourceFromHex(t)),e||(e=i.sourceFromRgb(t)),e||(e=i.sourceFromHsl(t)),e||(e=[0,0,0,1]),e\\\\u0026\\\\u0026this.setSource(e)},_rgbToHsl:function(t,i,r){t/=255,i/=255,r/=255;var n,o,s,a=e.util.array.max([t,i,r]),h=e.util.array.min([t,i,r]);if(s=(a+h)/2,a===h)n=o=0;else{var c=a-h;switch(o=s\\\\u003e.5?c/(2-a-h):c/(a+h),a){case t:n=(i-r)/c+(i\\\\u003cr?6:0);break;case i:n=(r-t)/c+2;break;case r:n=(t-i)/c+4}n/=6}return[Math.round(360*n),Math.round(100*o),Math.round(100*s)]},getSource:function(){return this._source},setSource:function(t){this._source=t},toRgb:function(){var t=this.getSource();return\\\\\\\"rgb(\\\\\\\"+t[0]+\\\\\\\",\\\\\\\"+t[1]+\\\\\\\",\\\\\\\"+t[2]+\\\\\\\")\\\\\\\"},toRgba:function(){var t=this.getSource();return\\\\\\\"rgba(\\\\\\\"+t[0]+\\\\\\\",\\\\\\\"+t[1]+\\\\\\\",\\\\\\\"+t[2]+\\\\\\\",\\\\\\\"+t[3]+\\\\\\\")\\\\\\\"},toHsl:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return\\\\\\\"hsl(\\\\\\\"+e[0]+\\\\\\\",\\\\\\\"+e[1]+\\\\\\\"%,\\\\\\\"+e[2]+\\\\\\\"%)\\\\\\\"},toHsla:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return\\\\\\\"hsla(\\\\\\\"+e[0]+\\\\\\\",\\\\\\\"+e[1]+\\\\\\\"%,\\\\\\\"+e[2]+\\\\\\\"%,\\\\\\\"+t[3]+\\\\\\\")\\\\\\\"},toHex:function(){var t,e,i,r=this.getSource();return t=1===(t=r[0].toString(16)).length?\\\\\\\"0\\\\\\\"+t:t,e=1===(e=r[1].toString(16)).length?\\\\\\\"0\\\\\\\"+e:e,i=1===(i=r[2].toString(16)).length?\\\\\\\"0\\\\\\\"+i:i,t.toUpperCase()+e.toUpperCase()+i.toUpperCase()},toHexa:function(){var t,e=this.getSource();return t=1===(t=(t=Math.round(255*e[3])).toString(16)).length?\\\\\\\"0\\\\\\\"+t:t,this.toHex()+t.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(t){var e=this.getSource();return e[3]=t,this.setSource(e),this},toGrayscale:function(){var t=this.getSource(),e=parseInt((.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),10),i=t[3];return this.setSource([e,e,e,i]),this},toBlackWhite:function(t){var e=this.getSource(),i=(.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),r=e[3];return t=t||127,i=Number(i)\\\\u003cNumber(t)?0:255,this.setSource([i,i,i,r]),this},overlayWith:function(t){t instanceof i||(t=new i(t));var e,r=[],n=this.getAlpha(),o=this.getSource(),s=t.getSource();for(e=0;e\\\\u003c3;e++)r.push(Math.round(.5*o[e]+.5*s[e]));return r[3]=n,this.setSource(r),this}},e.Color.reRGBa=/^rgba?\\\\\\\\(\\\\\\\\s*(\\\\\\\\d{1,3}(?:\\\\\\\\.\\\\\\\\d+)?\\\\\\\\%?)\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d{1,3}(?:\\\\\\\\.\\\\\\\\d+)?\\\\\\\\%?)\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d{1,3}(?:\\\\\\\\.\\\\\\\\d+)?\\\\\\\\%?)\\\\\\\\s*(?:\\\\\\\\s*,\\\\\\\\s*((?:\\\\\\\\d*\\\\\\\\.?\\\\\\\\d+)?)\\\\\\\\s*)?\\\\\\\\)$/i,e.Color.reHSLa=/^hsla?\\\\\\\\(\\\\\\\\s*(\\\\\\\\d{1,3})\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d{1,3}\\\\\\\\%)\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d{1,3}\\\\\\\\%)\\\\\\\\s*(?:\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d+(?:\\\\\\\\.\\\\\\\\d+)?)\\\\\\\\s*)?\\\\\\\\)$/i,e.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,e.Color.colorNameMap={aliceblue:\\\\\\\"#F0F8FF\\\\\\\",antiquewhite:\\\\\\\"#FAEBD7\\\\\\\",aqua:\\\\\\\"#00FFFF\\\\\\\",aquamarine:\\\\\\\"#7FFFD4\\\\\\\",azure:\\\\\\\"#F0FFFF\\\\\\\",beige:\\\\\\\"#F5F5DC\\\\\\\",bisque:\\\\\\\"#FFE4C4\\\\\\\",black:\\\\\\\"#000000\\\\\\\",blanchedalmond:\\\\\\\"#FFEBCD\\\\\\\",blue:\\\\\\\"#0000FF\\\\\\\",blueviolet:\\\\\\\"#8A2BE2\\\\\\\",brown:\\\\\\\"#A52A2A\\\\\\\",burlywood:\\\\\\\"#DEB887\\\\\\\",cadetblue:\\\\\\\"#5F9EA0\\\\\\\",chartreuse:\\\\\\\"#7FFF00\\\\\\\",chocolate:\\\\\\\"#D2691E\\\\\\\",coral:\\\\\\\"#FF7F50\\\\\\\",cornflowerblue:\\\\\\\"#6495ED\\\\\\\",cornsilk:\\\\\\\"#FFF8DC\\\\\\\",crimson:\\\\\\\"#DC143C\\\\\\\",cyan:\\\\\\\"#00FFFF\\\\\\\",darkblue:\\\\\\\"#00008B\\\\\\\",darkcyan:\\\\\\\"#008B8B\\\\\\\",darkgoldenrod:\\\\\\\"#B8860B\\\\\\\",darkgray:\\\\\\\"#A9A9A9\\\\\\\",darkgrey:\\\\\\\"#A9A9A9\\\\\\\",darkgreen:\\\\\\\"#006400\\\\\\\",darkkhaki:\\\\\\\"#BDB76B\\\\\\\",darkmagenta:\\\\\\\"#8B008B\\\\\\\",darkolivegreen:\\\\\\\"#556B2F\\\\\\\",darkorange:\\\\\\\"#FF8C00\\\\\\\",darkorchid:\\\\\\\"#9932CC\\\\\\\",darkred:\\\\\\\"#8B0000\\\\\\\",darksalmon:\\\\\\\"#E9967A\\\\\\\",darkseagreen:\\\\\\\"#8FBC8F\\\\\\\",darkslateblue:\\\\\\\"#483D8B\\\\\\\",darkslategray:\\\\\\\"#2F4F4F\\\\\\\",darkslategrey:\\\\\\\"#2F4F4F\\\\\\\",darkturquoise:\\\\\\\"#00CED1\\\\\\\",darkviolet:\\\\\\\"#9400D3\\\\\\\",deeppink:\\\\\\\"#FF1493\\\\\\\",deepskyblue:\\\\\\\"#00BFFF\\\\\\\",dimgray:\\\\\\\"#696969\\\\\\\",dimgrey:\\\\\\\"#696969\\\\\\\",dodgerblue:\\\\\\\"#1E90FF\\\\\\\",firebrick:\\\\\\\"#B22222\\\\\\\",floralwhite:\\\\\\\"#FFFAF0\\\\\\\",forestgreen:\\\\\\\"#228B22\\\\\\\",fuchsia:\\\\\\\"#FF00FF\\\\\\\",gainsboro:\\\\\\\"#DCDCDC\\\\\\\",ghostwhite:\\\\\\\"#F8F8FF\\\\\\\",gold:\\\\\\\"#FFD700\\\\\\\",goldenrod:\\\\\\\"#DAA520\\\\\\\",gray:\\\\\\\"#808080\\\\\\\",grey:\\\\\\\"#808080\\\\\\\",green:\\\\\\\"#008000\\\\\\\",greenyellow:\\\\\\\"#ADFF2F\\\\\\\",honeydew:\\\\\\\"#F0FFF0\\\\\\\",hotpink:\\\\\\\"#FF69B4\\\\\\\",indianred:\\\\\\\"#CD5C5C\\\\\\\",indigo:\\\\\\\"#4B0082\\\\\\\",ivory:\\\\\\\"#FFFFF0\\\\\\\",khaki:\\\\\\\"#F0E68C\\\\\\\",lavender:\\\\\\\"#E6E6FA\\\\\\\",lavenderblush:\\\\\\\"#FFF0F5\\\\\\\",lawngreen:\\\\\\\"#7CFC00\\\\\\\",lemonchiffon:\\\\\\\"#FFFACD\\\\\\\",lightblue:\\\\\\\"#ADD8E6\\\\\\\",lightcoral:\\\\\\\"#F08080\\\\\\\",lightcyan:\\\\\\\"#E0FFFF\\\\\\\",lightgoldenrodyellow:\\\\\\\"#FAFAD2\\\\\\\",lightgray:\\\\\\\"#D3D3D3\\\\\\\",lightgrey:\\\\\\\"#D3D3D3\\\\\\\",lightgreen:\\\\\\\"#90EE90\\\\\\\",lightpink:\\\\\\\"#FFB6C1\\\\\\\",lightsalmon:\\\\\\\"#FFA07A\\\\\\\",lightseagreen:\\\\\\\"#20B2AA\\\\\\\",lightskyblue:\\\\\\\"#87CEFA\\\\\\\",lightslategray:\\\\\\\"#778899\\\\\\\",lightslategrey:\\\\\\\"#778899\\\\\\\",lightsteelblue:\\\\\\\"#B0C4DE\\\\\\\",lightyellow:\\\\\\\"#FFFFE0\\\\\\\",lime:\\\\\\\"#00FF00\\\\\\\",limegreen:\\\\\\\"#32CD32\\\\\\\",linen:\\\\\\\"#FAF0E6\\\\\\\",magenta:\\\\\\\"#FF00FF\\\\\\\",maroon:\\\\\\\"#800000\\\\\\\",mediumaquamarine:\\\\\\\"#66CDAA\\\\\\\",mediumblue:\\\\\\\"#0000CD\\\\\\\",mediumorchid:\\\\\\\"#BA55D3\\\\\\\",mediumpurple:\\\\\\\"#9370DB\\\\\\\",mediumseagreen:\\\\\\\"#3CB371\\\\\\\",mediumslateblue:\\\\\\\"#7B68EE\\\\\\\",mediumspringgreen:\\\\\\\"#00FA9A\\\\\\\",mediumturquoise:\\\\\\\"#48D1CC\\\\\\\",mediumvioletred:\\\\\\\"#C71585\\\\\\\",midnightblue:\\\\\\\"#191970\\\\\\\",mintcream:\\\\\\\"#F5FFFA\\\\\\\",mistyrose:\\\\\\\"#FFE4E1\\\\\\\",moccasin:\\\\\\\"#FFE4B5\\\\\\\",navajowhite:\\\\\\\"#FFDEAD\\\\\\\",navy:\\\\\\\"#000080\\\\\\\",oldlace:\\\\\\\"#FDF5E6\\\\\\\",olive:\\\\\\\"#808000\\\\\\\",olivedrab:\\\\\\\"#6B8E23\\\\\\\",orange:\\\\\\\"#FFA500\\\\\\\",orangered:\\\\\\\"#FF4500\\\\\\\",orchid:\\\\\\\"#DA70D6\\\\\\\",palegoldenrod:\\\\\\\"#EEE8AA\\\\\\\",palegreen:\\\\\\\"#98FB98\\\\\\\",paleturquoise:\\\\\\\"#AFEEEE\\\\\\\",palevioletred:\\\\\\\"#DB7093\\\\\\\",papayawhip:\\\\\\\"#FFEFD5\\\\\\\",peachpuff:\\\\\\\"#FFDAB9\\\\\\\",peru:\\\\\\\"#CD853F\\\\\\\",pink:\\\\\\\"#FFC0CB\\\\\\\",plum:\\\\\\\"#DDA0DD\\\\\\\",powderblue:\\\\\\\"#B0E0E6\\\\\\\",purple:\\\\\\\"#800080\\\\\\\",rebeccapurple:\\\\\\\"#663399\\\\\\\",red:\\\\\\\"#FF0000\\\\\\\",rosybrown:\\\\\\\"#BC8F8F\\\\\\\",royalblue:\\\\\\\"#4169E1\\\\\\\",saddlebrown:\\\\\\\"#8B4513\\\\\\\",salmon:\\\\\\\"#FA8072\\\\\\\",sandybrown:\\\\\\\"#F4A460\\\\\\\",seagreen:\\\\\\\"#2E8B57\\\\\\\",seashell:\\\\\\\"#FFF5EE\\\\\\\",sienna:\\\\\\\"#A0522D\\\\\\\",silver:\\\\\\\"#C0C0C0\\\\\\\",skyblue:\\\\\\\"#87CEEB\\\\\\\",slateblue:\\\\\\\"#6A5ACD\\\\\\\",slategray:\\\\\\\"#708090\\\\\\\",slategrey:\\\\\\\"#708090\\\\\\\",snow:\\\\\\\"#FFFAFA\\\\\\\",springgreen:\\\\\\\"#00FF7F\\\\\\\",steelblue:\\\\\\\"#4682B4\\\\\\\",tan:\\\\\\\"#D2B48C\\\\\\\",teal:\\\\\\\"#008080\\\\\\\",thistle:\\\\\\\"#D8BFD8\\\\\\\",tomato:\\\\\\\"#FF6347\\\\\\\",turquoise:\\\\\\\"#40E0D0\\\\\\\",violet:\\\\\\\"#EE82EE\\\\\\\",wheat:\\\\\\\"#F5DEB3\\\\\\\",white:\\\\\\\"#FFFFFF\\\\\\\",whitesmoke:\\\\\\\"#F5F5F5\\\\\\\",yellow:\\\\\\\"#FFFF00\\\\\\\",yellowgreen:\\\\\\\"#9ACD32\\\\\\\"},e.Color.fromRgb=function(t){return i.fromSource(i.sourceFromRgb(t))},e.Color.sourceFromRgb=function(t){var e=t.match(i.reRGBa);if(e){var r=parseInt(e[1],10)/(/%$/.test(e[1])?100:1)*(/%$/.test(e[1])?255:1),n=parseInt(e[2],10)/(/%$/.test(e[2])?100:1)*(/%$/.test(e[2])?255:1),o=parseInt(e[3],10)/(/%$/.test(e[3])?100:1)*(/%$/.test(e[3])?255:1);return[parseInt(r,10),parseInt(n,10),parseInt(o,10),e[4]?parseFloat(e[4]):1]}},e.Color.fromRgba=i.fromRgb,e.Color.fromHsl=function(t){return i.fromSource(i.sourceFromHsl(t))},e.Color.sourceFromHsl=function(t){var e=t.match(i.reHSLa);if(e){var n,o,s,a=(parseFloat(e[1])%360+360)%360/360,h=parseFloat(e[2])/(/%$/.test(e[2])?100:1),c=parseFloat(e[3])/(/%$/.test(e[3])?100:1);if(0===h)n=o=s=c;else{var l=c\\\\u003c=.5?c*(h+1):c+h-c*h,u=2*c-l;n=r(u,l,a+1/3),o=r(u,l,a),s=r(u,l,a-1/3)}return[Math.round(255*n),Math.round(255*o),Math.round(255*s),e[4]?parseFloat(e[4]):1]}},e.Color.fromHsla=i.fromHsl,e.Color.fromHex=function(t){return i.fromSource(i.sourceFromHex(t))},e.Color.sourceFromHex=function(t){if(t.match(i.reHex)){var e=t.slice(t.indexOf(\\\\\\\"#\\\\\\\")+1),r=3===e.length||4===e.length,n=8===e.length||4===e.length,o=r?e.charAt(0)+e.charAt(0):e.substring(0,2),s=r?e.charAt(1)+e.charAt(1):e.substring(2,4),a=r?e.charAt(2)+e.charAt(2):e.substring(4,6),h=n?r?e.charAt(3)+e.charAt(3):e.substring(6,8):\\\\\\\"FF\\\\\\\";return[parseInt(o,16),parseInt(s,16),parseInt(a,16),parseFloat((parseInt(h,16)/255).toFixed(2))]}},e.Color.fromSource=function(t){var e=new i;return e.setSource(t),e})}(t),function(t){var e=t.fabric||(t.fabric={}),i=[\\\\\\\"e\\\\\\\",\\\\\\\"se\\\\\\\",\\\\\\\"s\\\\\\\",\\\\\\\"sw\\\\\\\",\\\\\\\"w\\\\\\\",\\\\\\\"nw\\\\\\\",\\\\\\\"n\\\\\\\",\\\\\\\"ne\\\\\\\",\\\\\\\"e\\\\\\\"],r=[\\\\\\\"ns\\\\\\\",\\\\\\\"nesw\\\\\\\",\\\\\\\"ew\\\\\\\",\\\\\\\"nwse\\\\\\\"],n={},o=\\\\\\\"left\\\\\\\",s=\\\\\\\"top\\\\\\\",a=\\\\\\\"right\\\\\\\",h=\\\\\\\"bottom\\\\\\\",c=\\\\\\\"center\\\\\\\",l={top:h,bottom:s,left:a,right:o,center:c},u=e.util.radiansToDegrees,f=Math.sign||function(t){return(t\\\\u003e0)-(t\\\\u003c0)||+t};function d(t,e){var i=t.angle+u(Math.atan2(e.y,e.x))+360;return Math.round(i%360/45)}function g(t,i){var r=i.transform.target,n=r.canvas,o=e.util.object.clone(i);o.target=r,n\\\\u0026\\\\u0026n.fire(\\\\\\\"object:\\\\\\\"+t,o),r.fire(t,i)}function p(t,e){var i=e.canvas,r=t[i.uniScaleKey];return i.uniformScaling\\\\u0026\\\\u0026!r||!i.uniformScaling\\\\u0026\\\\u0026r}function v(t){return t.originX===c\\\\u0026\\\\u0026t.originY===c}function m(t,e,i){var r=t.lockScalingX,n=t.lockScalingY;return!(!r||!n)||(!(e||!r\\\\u0026\\\\u0026!n||!i)||(!(!r||\\\\\\\"x\\\\\\\"!==e)||!(!n||\\\\\\\"y\\\\\\\"!==e)))}function y(t,e,i,r){return{e:t,transform:e,pointer:{x:i,y:r}}}function _(t){return function(e,i,r,n){var o=i.target,s=o.getCenterPoint(),a=o.translateToOriginPoint(s,i.originX,i.originY),h=t(e,i,r,n);return o.setPositionByOrigin(a,i.originX,i.originY),h}}function b(t,e){return function(i,r,n,o){var s=e(i,r,n,o);return s\\\\u0026\\\\u0026g(t,y(i,r,n,o)),s}}function x(t,i,r,n,o){var s=t.target,a=s.controls[t.corner],h=s.canvas.getZoom(),c=s.padding/h,l=s.toLocalPoint(new e.Point(n,o),i,r);return l.x\\\\u003e=c\\\\u0026\\\\u0026(l.x-=c),l.x\\\\u003c=-c\\\\u0026\\\\u0026(l.x+=c),l.y\\\\u003e=c\\\\u0026\\\\u0026(l.y-=c),l.y\\\\u003c=c\\\\u0026\\\\u0026(l.y+=c),l.x-=a.offsetX,l.y-=a.offsetY,l}function C(t){return t.flipX!==t.flipY}function w(t,e,i,r,n){if(0!==t[e]){var o=n/t._getTransformedDimensions()[r]*t[i];t.set(i,o)}}function S(t,e,i,r){var n,c=e.target,l=c._getTransformedDimensions(0,c.skewY),f=x(e,e.originX,e.originY,i,r),d=Math.abs(2*f.x)-l.x,g=c.skewX;d\\\\u003c2?n=0:(n=u(Math.atan2(d/c.scaleX,l.y/c.scaleY)),e.originX===o\\\\u0026\\\\u0026e.originY===h\\\\u0026\\\\u0026(n=-n),e.originX===a\\\\u0026\\\\u0026e.originY===s\\\\u0026\\\\u0026(n=-n),C(c)\\\\u0026\\\\u0026(n=-n));var p=g!==n;if(p){var v=c._getTransformedDimensions().y;c.set(\\\\\\\"skewX\\\\\\\",n),w(c,\\\\\\\"skewY\\\\\\\",\\\\\\\"scaleY\\\\\\\",\\\\\\\"y\\\\\\\",v)}return p}function T(t,e,i,r){var n,c=e.target,l=c._getTransformedDimensions(c.skewX,0),f=x(e,e.originX,e.originY,i,r),d=Math.abs(2*f.y)-l.y,g=c.skewY;d\\\\u003c2?n=0:(n=u(Math.atan2(d/c.scaleY,l.x/c.scaleX)),e.originX===o\\\\u0026\\\\u0026e.originY===h\\\\u0026\\\\u0026(n=-n),e.originX===a\\\\u0026\\\\u0026e.originY===s\\\\u0026\\\\u0026(n=-n),C(c)\\\\u0026\\\\u0026(n=-n));var p=g!==n;if(p){var v=c._getTransformedDimensions().x;c.set(\\\\\\\"skewY\\\\\\\",n),w(c,\\\\\\\"skewX\\\\\\\",\\\\\\\"scaleX\\\\\\\",\\\\\\\"x\\\\\\\",v)}return p}function O(t,e,i,r,n){n=n||{};var o,s,a,h,c,u,d=e.target,g=d.lockScalingX,y=d.lockScalingY,_=n.by,b=p(t,d),C=m(d,_,b),w=e.gestureScale;if(C)return!1;if(w)s=e.scaleX*w,a=e.scaleY*w;else{if(o=x(e,e.originX,e.originY,i,r),c=\\\\\\\"y\\\\\\\"!==_?f(o.x):1,u=\\\\\\\"x\\\\\\\"!==_?f(o.y):1,e.signX||(e.signX=c),e.signY||(e.signY=u),d.lockScalingFlip\\\\u0026\\\\u0026(e.signX!==c||e.signY!==u))return!1;if(h=d._getTransformedDimensions(),b\\\\u0026\\\\u0026!_){var S=Math.abs(o.x)+Math.abs(o.y),T=e.original,O=S/(Math.abs(h.x*T.scaleX/d.scaleX)+Math.abs(h.y*T.scaleY/d.scaleY));s=T.scaleX*O,a=T.scaleY*O}else s=Math.abs(o.x*d.scaleX/h.x),a=Math.abs(o.y*d.scaleY/h.y);v(e)\\\\u0026\\\\u0026(s*=2,a*=2),e.signX!==c\\\\u0026\\\\u0026\\\\\\\"y\\\\\\\"!==_\\\\u0026\\\\u0026(e.originX=l[e.originX],s*=-1,e.signX=c),e.signY!==u\\\\u0026\\\\u0026\\\\\\\"x\\\\\\\"!==_\\\\u0026\\\\u0026(e.originY=l[e.originY],a*=-1,e.signY=u)}var P=d.scaleX,E=d.scaleY;return _?(\\\\\\\"x\\\\\\\"===_\\\\u0026\\\\u0026d.set(\\\\\\\"scaleX\\\\\\\",s),\\\\\\\"y\\\\\\\"===_\\\\u0026\\\\u0026d.set(\\\\\\\"scaleY\\\\\\\",a)):(!g\\\\u0026\\\\u0026d.set(\\\\\\\"scaleX\\\\\\\",s),!y\\\\u0026\\\\u0026d.set(\\\\\\\"scaleY\\\\\\\",a)),P!==d.scaleX||E!==d.scaleY}n.scaleCursorStyleHandler=function(t,e,r){var n=p(t,r),o=\\\\\\\"\\\\\\\";if(0!==e.x\\\\u0026\\\\u00260===e.y?o=\\\\\\\"x\\\\\\\":0===e.x\\\\u0026\\\\u00260!==e.y\\\\u0026\\\\u0026(o=\\\\\\\"y\\\\\\\"),m(r,o,n))return\\\\\\\"not-allowed\\\\\\\";var s=d(r,e);return i[s]+\\\\\\\"-resize\\\\\\\"},n.skewCursorStyleHandler=function(t,e,i){var n=\\\\\\\"not-allowed\\\\\\\";if(0!==e.x\\\\u0026\\\\u0026i.lockSkewingY)return n;if(0!==e.y\\\\u0026\\\\u0026i.lockSkewingX)return n;var o=d(i,e)%4;return r[o]+\\\\\\\"-resize\\\\\\\"},n.scaleSkewCursorStyleHandler=function(t,e,i){return t[i.canvas.altActionKey]?n.skewCursorStyleHandler(t,e,i):n.scaleCursorStyleHandler(t,e,i)},n.rotationWithSnapping=b(\\\\\\\"rotating\\\\\\\",_((function(t,e,i,r){var n=e,o=n.target,s=o.translateToOriginPoint(o.getCenterPoint(),n.originX,n.originY);if(o.lockRotation)return!1;var a,h=Math.atan2(n.ey-s.y,n.ex-s.x),c=Math.atan2(r-s.y,i-s.x),l=u(c-h+n.theta);if(o.snapAngle\\\\u003e0){var f=o.snapAngle,d=o.snapThreshold||f,g=Math.ceil(l/f)*f,p=Math.floor(l/f)*f;Math.abs(l-p)\\\\u003cd?l=p:Math.abs(l-g)\\\\u003cd\\\\u0026\\\\u0026(l=g)}return l\\\\u003c0\\\\u0026\\\\u0026(l=360+l),l%=360,a=o.angle!==l,o.angle=l,a}))),n.scalingEqually=b(\\\\\\\"scaling\\\\\\\",_((function(t,e,i,r){return O(t,e,i,r)}))),n.scalingX=b(\\\\\\\"scaling\\\\\\\",_((function(t,e,i,r){return O(t,e,i,r,{by:\\\\\\\"x\\\\\\\"})}))),n.scalingY=b(\\\\\\\"scaling\\\\\\\",_((function(t,e,i,r){return O(t,e,i,r,{by:\\\\\\\"y\\\\\\\"})}))),n.scalingYOrSkewingX=function(t,e,i,r){return t[e.target.canvas.altActionKey]?n.skewHandlerX(t,e,i,r):n.scalingY(t,e,i,r)},n.scalingXOrSkewingY=function(t,e,i,r){return t[e.target.canvas.altActionKey]?n.skewHandlerY(t,e,i,r):n.scalingX(t,e,i,r)},n.changeWidth=b(\\\\\\\"resizing\\\\\\\",_((function(t,e,i,r){var n=e.target,o=x(e,e.originX,e.originY,i,r),s=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=v(e)?2:1,h=n.width,c=Math.abs(o.x*a/n.scaleX)-s;return n.set(\\\\\\\"width\\\\\\\",Math.max(c,0)),h!==c}))),n.skewHandlerX=function(t,e,i,r){var n,h=e.target,l=h.skewX,u=e.originY;return!h.lockSkewingX\\\\u0026\\\\u0026(0===l?n=x(e,c,c,i,r).x\\\\u003e0?o:a:(l\\\\u003e0\\\\u0026\\\\u0026(n=u===s?o:a),l\\\\u003c0\\\\u0026\\\\u0026(n=u===s?a:o),C(h)\\\\u0026\\\\u0026(n=n===o?a:o)),e.originX=n,b(\\\\\\\"skewing\\\\\\\",_(S))(t,e,i,r))},n.skewHandlerY=function(t,e,i,r){var n,a=e.target,l=a.skewY,u=e.originX;return!a.lockSkewingY\\\\u0026\\\\u0026(0===l?n=x(e,c,c,i,r).y\\\\u003e0?s:h:(l\\\\u003e0\\\\u0026\\\\u0026(n=u===o?s:h),l\\\\u003c0\\\\u0026\\\\u0026(n=u===o?h:s),C(a)\\\\u0026\\\\u0026(n=n===s?h:s)),e.originY=n,b(\\\\\\\"skewing\\\\\\\",_(T))(t,e,i,r))},n.dragHandler=function(t,e,i,r){var n=e.target,o=i-e.offsetX,s=r-e.offsetY,a=!n.get(\\\\\\\"lockMovementX\\\\\\\")\\\\u0026\\\\u0026n.left!==o,h=!n.get(\\\\\\\"lockMovementY\\\\\\\")\\\\u0026\\\\u0026n.top!==s;return a\\\\u0026\\\\u0026n.set(\\\\\\\"left\\\\\\\",o),h\\\\u0026\\\\u0026n.set(\\\\\\\"top\\\\\\\",s),(a||h)\\\\u0026\\\\u0026g(\\\\\\\"moving\\\\\\\",y(t,e,i,r)),a||h},n.scaleOrSkewActionName=function(t,e,i){var r=t[i.canvas.altActionKey];return 0===e.x?r?\\\\\\\"skewX\\\\\\\":\\\\\\\"scaleY\\\\\\\":0===e.y?r?\\\\\\\"skewY\\\\\\\":\\\\\\\"scaleX\\\\\\\":void 0},n.rotationStyleHandler=function(t,e,i){return i.lockRotation?\\\\\\\"not-allowed\\\\\\\":e.cursorStyle},n.fireEvent=g,n.wrapWithFixedAnchor=_,n.wrapWithFireEvent=b,n.getLocalPoint=x,e.controlsUtils=n}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.degreesToRadians,r=e.controlsUtils;r.renderCircleControl=function(t,e,i,r,n){r=r||{};var o,s=this.sizeX||r.cornerSize||n.cornerSize,a=this.sizeY||r.cornerSize||n.cornerSize,h=void 0!==r.transparentCorners?r.transparentCorners:n.transparentCorners,c=h?\\\\\\\"stroke\\\\\\\":\\\\\\\"fill\\\\\\\",l=!h\\\\u0026\\\\u0026(r.cornerStrokeColor||n.cornerStrokeColor),u=e,f=i;t.save(),t.fillStyle=r.cornerColor||n.cornerColor,t.strokeStyle=r.cornerStrokeColor||n.cornerStrokeColor,s\\\\u003ea?(o=s,t.scale(1,a/s),f=i*s/a):a\\\\u003es?(o=a,t.scale(s/a,1),u=e*a/s):o=s,t.lineWidth=1,t.beginPath(),t.arc(u,f,o/2,0,2*Math.PI,!1),t[c](),l\\\\u0026\\\\u0026t.stroke(),t.restore()},r.renderSquareControl=function(t,e,r,n,o){n=n||{};var s=this.sizeX||n.cornerSize||o.cornerSize,a=this.sizeY||n.cornerSize||o.cornerSize,h=void 0!==n.transparentCorners?n.transparentCorners:o.transparentCorners,c=h?\\\\\\\"stroke\\\\\\\":\\\\\\\"fill\\\\\\\",l=!h\\\\u0026\\\\u0026(n.cornerStrokeColor||o.cornerStrokeColor),u=s/2,f=a/2;t.save(),t.fillStyle=n.cornerColor||o.cornerColor,t.strokeStyle=n.cornerStrokeColor||o.cornerStrokeColor,t.lineWidth=1,t.translate(e,r),t.rotate(i(o.angle)),t[c+\\\\\\\"Rect\\\\\\\"](-u,-f,s,a),l\\\\u0026\\\\u0026t.strokeRect(-u,-f,s,a),t.restore()}}(t),function(t){var e=t.fabric||(t.fabric={});e.Control=function(t){for(var e in t)this[e]=t[e]},e.Control.prototype={visible:!0,actionName:\\\\\\\"scale\\\\\\\",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:\\\\\\\"crosshair\\\\\\\",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(t,e){return e.cursorStyle},getActionName:function(t,e){return e.actionName},getVisibility:function(t,e){var i=t._controlsVisibility;return i\\\\u0026\\\\u0026void 0!==i[e]?i[e]:this.visible},setVisibility:function(t){this.visible=t},positionHandler:function(t,i){return e.util.transformPoint({x:this.x*t.x+this.offsetX,y:this.y*t.y+this.offsetY},i)},calcCornerCoords:function(t,i,r,n,o){var s,a,h,c,l=o?this.touchSizeX:this.sizeX,u=o?this.touchSizeY:this.sizeY;if(l\\\\u0026\\\\u0026u\\\\u0026\\\\u0026l!==u){var f=Math.atan2(u,l),d=Math.sqrt(l*l+u*u)/2,g=f-e.util.degreesToRadians(t),p=Math.PI/2-f-e.util.degreesToRadians(t);s=d*e.util.cos(g),a=d*e.util.sin(g),h=d*e.util.cos(p),c=d*e.util.sin(p)}else{d=.7071067812*(l\\\\u0026\\\\u0026u?l:i);g=e.util.degreesToRadians(45-t);s=h=d*e.util.cos(g),a=c=d*e.util.sin(g)}return{tl:{x:r-c,y:n-h},tr:{x:r+s,y:n-a},bl:{x:r-s,y:n+a},br:{x:r+c,y:n+h}}},render:function(t,i,r,n,o){if(\\\\\\\"circle\\\\\\\"===((n=n||{}).cornerStyle||o.cornerStyle))e.controlsUtils.renderCircleControl.call(this,t,i,r,n,o);else e.controlsUtils.renderSquareControl.call(this,t,i,r,n,o)}}}(t),function(){function t(t,e){var i,r,n,o,s=t.getAttribute(\\\\\\\"style\\\\\\\"),a=t.getAttribute(\\\\\\\"offset\\\\\\\")||0;if(a=(a=parseFloat(a)/(/%$/.test(a)?100:1))\\\\u003c0?0:a\\\\u003e1?1:a,s){var h=s.split(/\\\\\\\\s*;\\\\\\\\s*/);for(\\\\\\\"\\\\\\\"===h[h.length-1]\\\\u0026\\\\u0026h.pop(),o=h.length;o--;){var c=h[o].split(/\\\\\\\\s*:\\\\\\\\s*/),l=c[0].trim(),u=c[1].trim();\\\\\\\"stop-color\\\\\\\"===l?i=u:\\\\\\\"stop-opacity\\\\\\\"===l\\\\u0026\\\\u0026(n=u)}}return i||(i=t.getAttribute(\\\\\\\"stop-color\\\\\\\")||\\\\\\\"rgb(0,0,0)\\\\\\\"),n||(n=t.getAttribute(\\\\\\\"stop-opacity\\\\\\\")),r=(i=new T.Color(i)).getAlpha(),n=isNaN(parseFloat(n))?1:parseFloat(n),n*=r*e,{offset:a,color:i.toRgb(),opacity:n}}var e=T.util.object.clone;T.Gradient=T.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:\\\\\\\"pixels\\\\\\\",type:\\\\\\\"linear\\\\\\\",initialize:function(t){t||(t={}),t.coords||(t.coords={});var e,i=this;Object.keys(t).forEach((function(e){i[e]=t[e]})),this.id?this.id+=\\\\\\\"_\\\\\\\"+T.Object.__uid++:this.id=T.Object.__uid++,e={x1:t.coords.x1||0,y1:t.coords.y1||0,x2:t.coords.x2||0,y2:t.coords.y2||0},\\\\\\\"radial\\\\\\\"===this.type\\\\u0026\\\\u0026(e.r1=t.coords.r1||0,e.r2=t.coords.r2||0),this.coords=e,this.colorStops=t.colorStops.slice()},addColorStop:function(t){for(var e in t){var i=new T.Color(t[e]);this.colorStops.push({offset:parseFloat(e),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(t){var e={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return T.util.populateWithProperties(this,e,t),e},toSVG:function(t,i){var r,n,o,s,a=e(this.coords,!0),h=(i=i||{},e(this.colorStops,!0)),c=a.r1\\\\u003ea.r2,l=this.gradientTransform?this.gradientTransform.concat():T.iMatrix.concat(),u=-this.offsetX,f=-this.offsetY,d=!!i.additionalTransform,g=\\\\\\\"pixels\\\\\\\"===this.gradientUnits?\\\\\\\"userSpaceOnUse\\\\\\\":\\\\\\\"objectBoundingBox\\\\\\\";if(h.sort((function(t,e){return t.offset-e.offset})),\\\\\\\"objectBoundingBox\\\\\\\"===g?(u/=t.width,f/=t.height):(u+=t.width/2,f+=t.height/2),\\\\\\\"path\\\\\\\"===t.type\\\\u0026\\\\u0026\\\\\\\"percentage\\\\\\\"!==this.gradientUnits\\\\u0026\\\\u0026(u-=t.pathOffset.x,f-=t.pathOffset.y),l[4]-=u,l[5]-=f,s='id=\\\\\\\"SVGID_'+this.id+'\\\\\\\" gradientUnits=\\\\\\\"'+g+'\\\\\\\"',s+=' gradientTransform=\\\\\\\"'+(d?i.additionalTransform+\\\\\\\" \\\\\\\":\\\\\\\"\\\\\\\")+T.util.matrixToSVG(l)+'\\\\\\\" ',\\\\\\\"linear\\\\\\\"===this.type?o=[\\\\\\\"\\\\u003clinearGradient \\\\\\\",s,' x1=\\\\\\\"',a.x1,'\\\\\\\" y1=\\\\\\\"',a.y1,'\\\\\\\" x2=\\\\\\\"',a.x2,'\\\\\\\" y2=\\\\\\\"',a.y2,'\\\\\\\"\\\\u003e\\\\\\\\n']:\\\\\\\"radial\\\\\\\"===this.type\\\\u0026\\\\u0026(o=[\\\\\\\"\\\\u003cradialGradient \\\\\\\",s,' cx=\\\\\\\"',c?a.x1:a.x2,'\\\\\\\" cy=\\\\\\\"',c?a.y1:a.y2,'\\\\\\\" r=\\\\\\\"',c?a.r1:a.r2,'\\\\\\\" fx=\\\\\\\"',c?a.x2:a.x1,'\\\\\\\" fy=\\\\\\\"',c?a.y2:a.y1,'\\\\\\\"\\\\u003e\\\\\\\\n']),\\\\\\\"radial\\\\\\\"===this.type){if(c)for((h=h.concat()).reverse(),r=0,n=h.length;r\\\\u003cn;r++)h[r].offset=1-h[r].offset;var p=Math.min(a.r1,a.r2);if(p\\\\u003e0){var v=p/Math.max(a.r1,a.r2);for(r=0,n=h.length;r\\\\u003cn;r++)h[r].offset+=v*(1-h[r].offset)}}for(r=0,n=h.length;r\\\\u003cn;r++){var m=h[r];o.push(\\\\\\\"\\\\u003cstop \\\\\\\",'offset=\\\\\\\"',100*m.offset+\\\\\\\"%\\\\\\\",'\\\\\\\" style=\\\\\\\"stop-color:',m.color,void 0!==m.opacity?\\\\\\\";stop-opacity: \\\\\\\"+m.opacity:\\\\\\\";\\\\\\\",'\\\\\\\"/\\\\u003e\\\\\\\\n')}return o.push(\\\\\\\"linear\\\\\\\"===this.type?\\\\\\\"\\\\u003c/linearGradient\\\\u003e\\\\\\\\n\\\\\\\":\\\\\\\"\\\\u003c/radialGradient\\\\u003e\\\\\\\\n\\\\\\\"),o.join(\\\\\\\"\\\\\\\")},toLive:function(t){var e,i,r,n=T.util.object.clone(this.coords);if(this.type){for(\\\\\\\"linear\\\\\\\"===this.type?e=t.createLinearGradient(n.x1,n.y1,n.x2,n.y2):\\\\\\\"radial\\\\\\\"===this.type\\\\u0026\\\\u0026(e=t.createRadialGradient(n.x1,n.y1,n.r1,n.x2,n.y2,n.r2)),i=0,r=this.colorStops.length;i\\\\u003cr;i++){var o=this.colorStops[i].color,s=this.colorStops[i].opacity,a=this.colorStops[i].offset;void 0!==s\\\\u0026\\\\u0026(o=new T.Color(o).setAlpha(s).toRgba()),e.addColorStop(a,o)}return e}}}),T.util.object.extend(T.Gradient,{fromElement:function(e,i,r,n){var o=parseFloat(r)/(/%$/.test(r)?100:1);o=o\\\\u003c0?0:o\\\\u003e1?1:o,isNaN(o)\\\\u0026\\\\u0026(o=1);var s,a,h,c,l=e.getElementsByTagName(\\\\\\\"stop\\\\\\\"),u=\\\\\\\"userSpaceOnUse\\\\\\\"===e.getAttribute(\\\\\\\"gradientUnits\\\\\\\")?\\\\\\\"pixels\\\\\\\":\\\\\\\"percentage\\\\\\\",f=e.getAttribute(\\\\\\\"gradientTransform\\\\\\\")||\\\\\\\"\\\\\\\",d=[],g=0,p=0;for(\\\\\\\"linearGradient\\\\\\\"===e.nodeName||\\\\\\\"LINEARGRADIENT\\\\\\\"===e.nodeName?(s=\\\\\\\"linear\\\\\\\",a=function(t){return{x1:t.getAttribute(\\\\\\\"x1\\\\\\\")||0,y1:t.getAttribute(\\\\\\\"y1\\\\\\\")||0,x2:t.getAttribute(\\\\\\\"x2\\\\\\\")||\\\\\\\"100%\\\\\\\",y2:t.getAttribute(\\\\\\\"y2\\\\\\\")||0}}(e)):(s=\\\\\\\"radial\\\\\\\",a=function(t){return{x1:t.getAttribute(\\\\\\\"fx\\\\\\\")||t.getAttribute(\\\\\\\"cx\\\\\\\")||\\\\\\\"50%\\\\\\\",y1:t.getAttribute(\\\\\\\"fy\\\\\\\")||t.getAttribute(\\\\\\\"cy\\\\\\\")||\\\\\\\"50%\\\\\\\",r1:0,x2:t.getAttribute(\\\\\\\"cx\\\\\\\")||\\\\\\\"50%\\\\\\\",y2:t.getAttribute(\\\\\\\"cy\\\\\\\")||\\\\\\\"50%\\\\\\\",r2:t.getAttribute(\\\\\\\"r\\\\\\\")||\\\\\\\"50%\\\\\\\"}}(e)),h=l.length;h--;)d.push(t(l[h],o));return c=T.parseTransformAttribute(f),function(t,e,i,r){var n,o;Object.keys(e).forEach((function(t){\\\\\\\"Infinity\\\\\\\"===(n=e[t])?o=1:\\\\\\\"-Infinity\\\\\\\"===n?o=0:(o=parseFloat(e[t],10),\\\\\\\"string\\\\\\\"==typeof n\\\\u0026\\\\u0026/^(\\\\\\\\d+\\\\\\\\.\\\\\\\\d+)%|(\\\\\\\\d+)%$/.test(n)\\\\u0026\\\\u0026(o*=.01,\\\\\\\"pixels\\\\\\\"===r\\\\u0026\\\\u0026(\\\\\\\"x1\\\\\\\"!==t\\\\u0026\\\\u0026\\\\\\\"x2\\\\\\\"!==t\\\\u0026\\\\u0026\\\\\\\"r2\\\\\\\"!==t||(o*=i.viewBoxWidth||i.width),\\\\\\\"y1\\\\\\\"!==t\\\\u0026\\\\u0026\\\\\\\"y2\\\\\\\"!==t||(o*=i.viewBoxHeight||i.height)))),e[t]=o}))}(0,a,n,u),\\\\\\\"pixels\\\\\\\"===u\\\\u0026\\\\u0026(g=-i.left,p=-i.top),new T.Gradient({id:e.getAttribute(\\\\\\\"id\\\\\\\"),type:s,coords:a,colorStops:d,gradientUnits:u,gradientTransform:c,offsetX:g,offsetY:p})}})}(),_=T.util.toFixed,T.Pattern=T.util.createClass({repeat:\\\\\\\"repeat\\\\\\\",offsetX:0,offsetY:0,crossOrigin:\\\\\\\"\\\\\\\",patternTransform:null,initialize:function(t,e){if(t||(t={}),this.id=T.Object.__uid++,this.setOptions(t),!t.source||t.source\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"!=typeof t.source)e\\\\u0026\\\\u0026e(this);else{var i=this;this.source=T.util.createImage(),T.util.loadImage(t.source,(function(t,r){i.source=t,e\\\\u0026\\\\u0026e(i,r)}),null,this.crossOrigin)}},toObject:function(t){var e,i,r=T.Object.NUM_FRACTION_DIGITS;return\\\\\\\"string\\\\\\\"==typeof this.source.src?e=this.source.src:\\\\\\\"object\\\\\\\"==typeof this.source\\\\u0026\\\\u0026this.source.toDataURL\\\\u0026\\\\u0026(e=this.source.toDataURL()),i={type:\\\\\\\"pattern\\\\\\\",source:e,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:_(this.offsetX,r),offsetY:_(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},T.util.populateWithProperties(this,i,t),i},toSVG:function(t){var e=\\\\\\\"function\\\\\\\"==typeof this.source?this.source():this.source,i=e.width/t.width,r=e.height/t.height,n=this.offsetX/t.width,o=this.offsetY/t.height,s=\\\\\\\"\\\\\\\";return\\\\\\\"repeat-x\\\\\\\"!==this.repeat\\\\u0026\\\\u0026\\\\\\\"no-repeat\\\\\\\"!==this.repeat||(r=1,o\\\\u0026\\\\u0026(r+=Math.abs(o))),\\\\\\\"repeat-y\\\\\\\"!==this.repeat\\\\u0026\\\\u0026\\\\\\\"no-repeat\\\\\\\"!==this.repeat||(i=1,n\\\\u0026\\\\u0026(i+=Math.abs(n))),e.src?s=e.src:e.toDataURL\\\\u0026\\\\u0026(s=e.toDataURL()),'\\\\u003cpattern id=\\\\\\\"SVGID_'+this.id+'\\\\\\\" x=\\\\\\\"'+n+'\\\\\\\" y=\\\\\\\"'+o+'\\\\\\\" width=\\\\\\\"'+i+'\\\\\\\" height=\\\\\\\"'+r+'\\\\\\\"\\\\u003e\\\\\\\\n\\\\u003cimage x=\\\\\\\"0\\\\\\\" y=\\\\\\\"0\\\\\\\" width=\\\\\\\"'+e.width+'\\\\\\\" height=\\\\\\\"'+e.height+'\\\\\\\" xlink:href=\\\\\\\"'+s+'\\\\\\\"\\\\u003e\\\\u003c/image\\\\u003e\\\\\\\\n\\\\u003c/pattern\\\\u003e\\\\\\\\n'},setOptions:function(t){for(var e in t)this[e]=t[e]},toLive:function(t){var e=this.source;if(!e)return\\\\\\\"\\\\\\\";if(void 0!==e.src){if(!e.complete)return\\\\\\\"\\\\\\\";if(0===e.naturalWidth||0===e.naturalHeight)return\\\\\\\"\\\\\\\"}return t.createPattern(e,this.repeat)}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.toFixed;e.Shadow?e.warn(\\\\\\\"fabric.Shadow is already defined.\\\\\\\"):(e.Shadow=e.util.createClass({color:\\\\\\\"rgb(0,0,0)\\\\\\\",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(t){for(var i in\\\\\\\"string\\\\\\\"==typeof t\\\\u0026\\\\u0026(t=this._parseShadow(t)),t)this[i]=t[i];this.id=e.Object.__uid++},_parseShadow:function(t){var i=t.trim(),r=e.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(e.Shadow.reOffsetsAndBlur,\\\\\\\"\\\\\\\")||\\\\\\\"rgb(0,0,0)\\\\\\\").trim(),offsetX:parseFloat(r[1],10)||0,offsetY:parseFloat(r[2],10)||0,blur:parseFloat(r[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join(\\\\\\\"px \\\\\\\")},toSVG:function(t){var r=40,n=40,o=e.Object.NUM_FRACTION_DIGITS,s=e.util.rotateVector({x:this.offsetX,y:this.offsetY},e.util.degreesToRadians(-t.angle)),a=new e.Color(this.color);return t.width\\\\u0026\\\\u0026t.height\\\\u0026\\\\u0026(r=100*i((Math.abs(s.x)+this.blur)/t.width,o)+20,n=100*i((Math.abs(s.y)+this.blur)/t.height,o)+20),t.flipX\\\\u0026\\\\u0026(s.x*=-1),t.flipY\\\\u0026\\\\u0026(s.y*=-1),'\\\\u003cfilter id=\\\\\\\"SVGID_'+this.id+'\\\\\\\" y=\\\\\\\"-'+n+'%\\\\\\\" height=\\\\\\\"'+(100+2*n)+'%\\\\\\\" x=\\\\\\\"-'+r+'%\\\\\\\" width=\\\\\\\"'+(100+2*r)+'%\\\\\\\" \\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeGaussianBlur in=\\\\\\\"SourceAlpha\\\\\\\" stdDeviation=\\\\\\\"'+i(this.blur?this.blur/2:0,o)+'\\\\\\\"\\\\u003e\\\\u003c/feGaussianBlur\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeOffset dx=\\\\\\\"'+i(s.x,o)+'\\\\\\\" dy=\\\\\\\"'+i(s.y,o)+'\\\\\\\" result=\\\\\\\"oBlur\\\\\\\" \\\\u003e\\\\u003c/feOffset\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeFlood flood-color=\\\\\\\"'+a.toRgb()+'\\\\\\\" flood-opacity=\\\\\\\"'+a.getAlpha()+'\\\\\\\"/\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeComposite in2=\\\\\\\"oBlur\\\\\\\" operator=\\\\\\\"in\\\\\\\" /\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeMerge\\\\u003e\\\\\\\\n\\\\\\\\t\\\\\\\\t\\\\u003cfeMergeNode\\\\u003e\\\\u003c/feMergeNode\\\\u003e\\\\\\\\n\\\\\\\\t\\\\\\\\t\\\\u003cfeMergeNode in=\\\\\\\"SourceGraphic\\\\\\\"\\\\u003e\\\\u003c/feMergeNode\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003c/feMerge\\\\u003e\\\\\\\\n\\\\u003c/filter\\\\u003e\\\\\\\\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var t={},i=e.Shadow.prototype;return[\\\\\\\"color\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"offsetX\\\\\\\",\\\\\\\"offsetY\\\\\\\",\\\\\\\"affectStroke\\\\\\\",\\\\\\\"nonScaling\\\\\\\"].forEach((function(e){this[e]!==i[e]\\\\u0026\\\\u0026(t[e]=this[e])}),this),t}}),e.Shadow.reOffsetsAndBlur=/(?:\\\\\\\\s|^)(-?\\\\\\\\d+(?:\\\\\\\\.\\\\\\\\d*)?(?:px)?(?:\\\\\\\\s?|$))?(-?\\\\\\\\d+(?:\\\\\\\\.\\\\\\\\d*)?(?:px)?(?:\\\\\\\\s?|$))?(\\\\\\\\d+(?:\\\\\\\\.\\\\\\\\d*)?(?:px)?)?(?:\\\\\\\\s?|$)(?:$|\\\\\\\\s)/)}(t),function(){if(T.StaticCanvas)T.warn(\\\\\\\"fabric.StaticCanvas is already defined.\\\\\\\");else{var t=T.util.object.extend,e=T.util.getElementOffset,i=T.util.removeFromArray,r=T.util.toFixed,n=T.util.transformPoint,o=T.util.invertTransform,s=T.util.getNodeCanvas,a=T.util.createCanvasElement,h=new Error(\\\\\\\"Could not initialize `canvas` element\\\\\\\");T.StaticCanvas=T.util.createClass(T.CommonMethods,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e)},backgroundColor:\\\\\\\"\\\\\\\",backgroundImage:null,overlayColor:\\\\\\\"\\\\\\\",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:T.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(t,e){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(t),this._initOptions(e),this.interactive||this._initRetinaScaling(),e.overlayImage\\\\u0026\\\\u0026this.setOverlayImage(e.overlayImage,i),e.backgroundImage\\\\u0026\\\\u0026this.setBackgroundImage(e.backgroundImage,i),e.backgroundColor\\\\u0026\\\\u0026this.setBackgroundColor(e.backgroundColor,i),e.overlayColor\\\\u0026\\\\u0026this.setOverlayColor(e.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return 1!==T.devicePixelRatio\\\\u0026\\\\u0026this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?T.devicePixelRatio:1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var t=T.devicePixelRatio;this.__initRetinaScaling(t,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl\\\\u0026\\\\u0026this.__initRetinaScaling(t,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(t,e,i){e.setAttribute(\\\\\\\"width\\\\\\\",this.width*t),e.setAttribute(\\\\\\\"height\\\\\\\",this.height*t),i.scale(t,t)},calcOffset:function(){return this._offset=e(this.lowerCanvasEl),this},setOverlayImage:function(t,e,i){return this.__setBgOverlayImage(\\\\\\\"overlayImage\\\\\\\",t,e,i)},setBackgroundImage:function(t,e,i){return this.__setBgOverlayImage(\\\\\\\"backgroundImage\\\\\\\",t,e,i)},setOverlayColor:function(t,e){return this.__setBgOverlayColor(\\\\\\\"overlayColor\\\\\\\",t,e)},setBackgroundColor:function(t,e){return this.__setBgOverlayColor(\\\\\\\"backgroundColor\\\\\\\",t,e)},__setBgOverlayImage:function(t,e,i,r){return\\\\\\\"string\\\\\\\"==typeof e?T.util.loadImage(e,(function(e,n){if(e){var o=new T.Image(e,r);this[t]=o,o.canvas=this}i\\\\u0026\\\\u0026i(e,n)}),this,r\\\\u0026\\\\u0026r.crossOrigin):(r\\\\u0026\\\\u0026e.setOptions(r),this[t]=e,e\\\\u0026\\\\u0026(e.canvas=this),i\\\\u0026\\\\u0026i(e,!1)),this},__setBgOverlayColor:function(t,e,i){return this[t]=e,this._initGradient(e,t),this._initPattern(e,t,i),this},_createCanvasElement:function(){var t=a();if(!t)throw h;if(t.style||(t.style={}),void 0===t.getContext)throw h;return t},_initOptions:function(t){var e=this.lowerCanvasEl;this._setOptions(t),this.width=this.width||parseInt(e.width,10)||0,this.height=this.height||parseInt(e.height,10)||0,this.lowerCanvasEl.style\\\\u0026\\\\u0026(e.width=this.width,e.height=this.height,e.style.width=this.width+\\\\\\\"px\\\\\\\",e.style.height=this.height+\\\\\\\"px\\\\\\\",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(t){t\\\\u0026\\\\u0026t.getContext?this.lowerCanvasEl=t:this.lowerCanvasEl=T.util.getById(t)||this._createCanvasElement(),T.util.addClass(this.lowerCanvasEl,\\\\\\\"lower-canvas\\\\\\\"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive\\\\u0026\\\\u0026this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext(\\\\\\\"2d\\\\\\\")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(t,e){return this.setDimensions({width:t},e)},setHeight:function(t,e){return this.setDimensions({height:t},e)},setDimensions:function(t,e){var i;for(var r in e=e||{},t)i=t[r],e.cssOnly||(this._setBackstoreDimension(r,t[r]),i+=\\\\\\\"px\\\\\\\",this.hasLostContext=!0),e.backstoreOnly||this._setCssDimension(r,i);return this._isCurrentlyDrawing\\\\u0026\\\\u0026this.freeDrawingBrush\\\\u0026\\\\u0026this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this.calcOffset(),e.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(t,e){return this.lowerCanvasEl[t]=e,this.upperCanvasEl\\\\u0026\\\\u0026(this.upperCanvasEl[t]=e),this.cacheCanvasEl\\\\u0026\\\\u0026(this.cacheCanvasEl[t]=e),this[t]=e,this},_setCssDimension:function(t,e){return this.lowerCanvasEl.style[t]=e,this.upperCanvasEl\\\\u0026\\\\u0026(this.upperCanvasEl.style[t]=e),this.wrapperEl\\\\u0026\\\\u0026(this.wrapperEl.style[t]=e),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(t){var e,i,r,n=this._activeObject,o=this.backgroundImage,s=this.overlayImage;for(this.viewportTransform=t,i=0,r=this._objects.length;i\\\\u003cr;i++)(e=this._objects[i]).group||e.setCoords(!0);return n\\\\u0026\\\\u0026n.setCoords(),o\\\\u0026\\\\u0026o.setCoords(!0),s\\\\u0026\\\\u0026s.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},zoomToPoint:function(t,e){var i=t,r=this.viewportTransform.slice(0);t=n(t,o(this.viewportTransform)),r[0]=e,r[3]=e;var s=n(t,r);return r[4]+=i.x-s.x,r[5]+=i.y-s.y,this.setViewportTransform(r)},setZoom:function(t){return this.zoomToPoint(new T.Point(0,0),t),this},absolutePan:function(t){var e=this.viewportTransform.slice(0);return e[4]=-t.x,e[5]=-t.y,this.setViewportTransform(e)},relativePan:function(t){return this.absolutePan(new T.Point(-t.x-this.viewportTransform[4],-t.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(t){this.stateful\\\\u0026\\\\u0026t.setupState(),t._set(\\\\\\\"canvas\\\\\\\",this),t.setCoords(),this.fire(\\\\\\\"object:added\\\\\\\",{target:t}),t.fire(\\\\\\\"added\\\\\\\")},_onObjectRemoved:function(t){this.fire(\\\\\\\"object:removed\\\\\\\",{target:t}),t.fire(\\\\\\\"removed\\\\\\\"),delete t.canvas},clearContext:function(t){return t.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor=\\\\\\\"\\\\\\\",this.overlayColor=\\\\\\\"\\\\\\\",this._hasITextHandlers\\\\u0026\\\\u0026(this.off(\\\\\\\"mouse:up\\\\\\\",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire(\\\\\\\"canvas:cleared\\\\\\\"),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},renderAll:function(){var t=this.contextContainer;return this.renderCanvas(t,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=T.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var t={},e=this.width,i=this.height,r=o(this.viewportTransform);return t.tl=n({x:0,y:0},r),t.br=n({x:e,y:i},r),t.tr=new T.Point(t.br.x,t.tl.y),t.bl=new T.Point(t.tl.x,t.br.y),this.vptCoords=t,t},cancelRequestedRender:function(){this.isRendering\\\\u0026\\\\u0026(T.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(t,e){var i=this.viewportTransform,r=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(t),T.util.setImageSmoothing(t,this.imageSmoothingEnabled),this.fire(\\\\\\\"before:render\\\\\\\",{ctx:t}),this._renderBackground(t),t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(t,e),t.restore(),!this.controlsAboveOverlay\\\\u0026\\\\u0026this.interactive\\\\u0026\\\\u0026this.drawControls(t),r\\\\u0026\\\\u0026(r.canvas=this,r.shouldCache(),r._transformDone=!0,r.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(t)),this._renderOverlay(t),this.controlsAboveOverlay\\\\u0026\\\\u0026this.interactive\\\\u0026\\\\u0026this.drawControls(t),this.fire(\\\\\\\"after:render\\\\\\\",{ctx:t})},drawClipPathOnCanvas:function(t){var e=this.viewportTransform,i=this.clipPath;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t.globalCompositeOperation=\\\\\\\"destination-in\\\\\\\",i.transform(t),t.scale(1/i.zoomX,1/i.zoomY),t.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),t.restore()},_renderObjects:function(t,e){var i,r;for(i=0,r=e.length;i\\\\u003cr;++i)e[i]\\\\u0026\\\\u0026e[i].render(t)},_renderBackgroundOrOverlay:function(t,e){var i=this[e+\\\\\\\"Color\\\\\\\"],r=this[e+\\\\\\\"Image\\\\\\\"],n=this.viewportTransform,o=this[e+\\\\\\\"Vpt\\\\\\\"];if(i||r){if(i){t.save(),t.beginPath(),t.moveTo(0,0),t.lineTo(this.width,0),t.lineTo(this.width,this.height),t.lineTo(0,this.height),t.closePath(),t.fillStyle=i.toLive?i.toLive(t,this):i,o\\\\u0026\\\\u0026t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var s=i.gradientTransform||i.patternTransform;s\\\\u0026\\\\u0026t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),t.fill(),t.restore()}r\\\\u0026\\\\u0026(t.save(),o\\\\u0026\\\\u0026t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),r.render(t),t.restore())}},_renderBackground:function(t){this._renderBackgroundOrOverlay(t,\\\\\\\"background\\\\\\\")},_renderOverlay:function(t){this._renderBackgroundOrOverlay(t,\\\\\\\"overlay\\\\\\\")},getCenter:function(){return{top:this.height/2,left:this.width/2}},centerObjectH:function(t){return this._centerObject(t,new T.Point(this.getCenter().left,t.getCenterPoint().y))},centerObjectV:function(t){return this._centerObject(t,new T.Point(t.getCenterPoint().x,this.getCenter().top))},centerObject:function(t){var e=this.getCenter();return this._centerObject(t,new T.Point(e.left,e.top))},viewportCenterObject:function(t){var e=this.getVpCenter();return this._centerObject(t,e)},viewportCenterObjectH:function(t){var e=this.getVpCenter();return this._centerObject(t,new T.Point(e.x,t.getCenterPoint().y)),this},viewportCenterObjectV:function(t){var e=this.getVpCenter();return this._centerObject(t,new T.Point(t.getCenterPoint().x,e.y))},getVpCenter:function(){var t=this.getCenter(),e=o(this.viewportTransform);return n({x:t.left,y:t.top},e)},_centerObject:function(t,e){return t.setPositionByOrigin(e,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\"),t.setCoords(),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},toDatalessJSON:function(t){return this.toDatalessObject(t)},toObject:function(t){return this._toObjectMethod(\\\\\\\"toObject\\\\\\\",t)},toDatalessObject:function(t){return this._toObjectMethod(\\\\\\\"toDatalessObject\\\\\\\",t)},_toObjectMethod:function(e,i){var r=this.clipPath,n={version:T.version,objects:this._toObjects(e,i)};return r\\\\u0026\\\\u0026!r.excludeFromExport\\\\u0026\\\\u0026(n.clipPath=this._toObject(this.clipPath,e,i)),t(n,this.__serializeBgOverlay(e,i)),T.util.populateWithProperties(this,n,i),n},_toObjects:function(t,e){return this._objects.filter((function(t){return!t.excludeFromExport})).map((function(i){return this._toObject(i,t,e)}),this)},_toObject:function(t,e,i){var r;this.includeDefaultValues||(r=t.includeDefaultValues,t.includeDefaultValues=!1);var n=t[e](i);return this.includeDefaultValues||(t.includeDefaultValues=r),n},__serializeBgOverlay:function(t,e){var i={},r=this.backgroundImage,n=this.overlayImage,o=this.backgroundColor,s=this.overlayColor;return o\\\\u0026\\\\u0026o.toObject?o.excludeFromExport||(i.background=o.toObject(e)):o\\\\u0026\\\\u0026(i.background=o),s\\\\u0026\\\\u0026s.toObject?s.excludeFromExport||(i.overlay=s.toObject(e)):s\\\\u0026\\\\u0026(i.overlay=s),r\\\\u0026\\\\u0026!r.excludeFromExport\\\\u0026\\\\u0026(i.backgroundImage=this._toObject(r,t,e)),n\\\\u0026\\\\u0026!n.excludeFromExport\\\\u0026\\\\u0026(i.overlayImage=this._toObject(n,t,e)),i},svgViewportTransformation:!0,toSVG:function(t,e){t||(t={}),t.reviver=e;var i=[];return this._setSVGPreamble(i,t),this._setSVGHeader(i,t),this.clipPath\\\\u0026\\\\u0026i.push('\\\\u003cg clip-path=\\\\\\\"url(#'+this.clipPath.clipPathId+')\\\\\\\" \\\\u003e\\\\\\\\n'),this._setSVGBgOverlayColor(i,\\\\\\\"background\\\\\\\"),this._setSVGBgOverlayImage(i,\\\\\\\"backgroundImage\\\\\\\",e),this._setSVGObjects(i,e),this.clipPath\\\\u0026\\\\u0026i.push(\\\\\\\"\\\\u003c/g\\\\u003e\\\\\\\\n\\\\\\\"),this._setSVGBgOverlayColor(i,\\\\\\\"overlay\\\\\\\"),this._setSVGBgOverlayImage(i,\\\\\\\"overlayImage\\\\\\\",e),i.push(\\\\\\\"\\\\u003c/svg\\\\u003e\\\\\\\"),i.join(\\\\\\\"\\\\\\\")},_setSVGPreamble:function(t,e){e.suppressPreamble||t.push('\\\\u003c?xml version=\\\\\\\"1.0\\\\\\\" encoding=\\\\\\\"',e.encoding||\\\\\\\"UTF-8\\\\\\\",'\\\\\\\" standalone=\\\\\\\"no\\\\\\\" ?\\\\u003e\\\\\\\\n','\\\\u003c!DOCTYPE svg PUBLIC \\\\\\\"-//W3C//DTD SVG 1.1//EN\\\\\\\" ','\\\\\\\"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\\\\\\\"\\\\u003e\\\\\\\\n')},_setSVGHeader:function(t,e){var i,n=e.width||this.width,o=e.height||this.height,s='viewBox=\\\\\\\"0 0 '+this.width+\\\\\\\" \\\\\\\"+this.height+'\\\\\\\" ',a=T.Object.NUM_FRACTION_DIGITS;e.viewBox?s='viewBox=\\\\\\\"'+e.viewBox.x+\\\\\\\" \\\\\\\"+e.viewBox.y+\\\\\\\" \\\\\\\"+e.viewBox.width+\\\\\\\" \\\\\\\"+e.viewBox.height+'\\\\\\\" ':this.svgViewportTransformation\\\\u0026\\\\u0026(i=this.viewportTransform,s='viewBox=\\\\\\\"'+r(-i[4]/i[0],a)+\\\\\\\" \\\\\\\"+r(-i[5]/i[3],a)+\\\\\\\" \\\\\\\"+r(this.width/i[0],a)+\\\\\\\" \\\\\\\"+r(this.height/i[3],a)+'\\\\\\\" '),t.push(\\\\\\\"\\\\u003csvg \\\\\\\",'xmlns=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\" ','xmlns:xlink=\\\\\\\"http://www.w3.org/1999/xlink\\\\\\\" ','version=\\\\\\\"1.1\\\\\\\" ','width=\\\\\\\"',n,'\\\\\\\" ','height=\\\\\\\"',o,'\\\\\\\" ',s,'xml:space=\\\\\\\"preserve\\\\\\\"\\\\u003e\\\\\\\\n',\\\\\\\"\\\\u003cdesc\\\\u003eCreated with Fabric.js \\\\\\\",T.version,\\\\\\\"\\\\u003c/desc\\\\u003e\\\\\\\\n\\\\\\\",\\\\\\\"\\\\u003cdefs\\\\u003e\\\\\\\\n\\\\\\\",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(e),\\\\\\\"\\\\u003c/defs\\\\u003e\\\\\\\\n\\\\\\\")},createSVGClipPathMarkup:function(t){var e=this.clipPath;return e?(e.clipPathId=\\\\\\\"CLIPPATH_\\\\\\\"+T.Object.__uid++,'\\\\u003cclipPath id=\\\\\\\"'+e.clipPathId+'\\\\\\\" \\\\u003e\\\\\\\\n'+this.clipPath.toClipPathSVG(t.reviver)+\\\\\\\"\\\\u003c/clipPath\\\\u003e\\\\\\\\n\\\\\\\"):\\\\\\\"\\\\\\\"},createSVGRefElementsMarkup:function(){var t=this;return[\\\\\\\"background\\\\\\\",\\\\\\\"overlay\\\\\\\"].map((function(e){var i=t[e+\\\\\\\"Color\\\\\\\"];if(i\\\\u0026\\\\u0026i.toLive){var r=t[e+\\\\\\\"Vpt\\\\\\\"],n=t.viewportTransform,o={width:t.width/(r?n[0]:1),height:t.height/(r?n[3]:1)};return i.toSVG(o,{additionalTransform:r?T.util.matrixToSVG(n):\\\\\\\"\\\\\\\"})}})).join(\\\\\\\"\\\\\\\")},createSVGFontFacesMarkup:function(){var t,e,i,r,n,o,s,a,h=\\\\\\\"\\\\\\\",c={},l=T.fontPaths,u=[];for(this._objects.forEach((function t(e){u.push(e),e._objects\\\\u0026\\\\u0026e._objects.forEach(t)})),s=0,a=u.length;s\\\\u003ca;s++)if(e=(t=u[s]).fontFamily,-1!==t.type.indexOf(\\\\\\\"text\\\\\\\")\\\\u0026\\\\u0026!c[e]\\\\u0026\\\\u0026l[e]\\\\u0026\\\\u0026(c[e]=!0,t.styles))for(n in i=t.styles)for(o in r=i[n])!c[e=r[o].fontFamily]\\\\u0026\\\\u0026l[e]\\\\u0026\\\\u0026(c[e]=!0);for(var f in c)h+=[\\\\\\\"\\\\\\\\t\\\\\\\\t@font-face {\\\\\\\\n\\\\\\\",\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\\\\\tfont-family: '\\\\\\\",f,\\\\\\\"';\\\\\\\\n\\\\\\\",\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\\\\\tsrc: url('\\\\\\\",l[f],\\\\\\\"');\\\\\\\\n\\\\\\\",\\\\\\\"\\\\\\\\t\\\\\\\\t}\\\\\\\\n\\\\\\\"].join(\\\\\\\"\\\\\\\");return h\\\\u0026\\\\u0026(h=['\\\\\\\\t\\\\u003cstyle type=\\\\\\\"text/css\\\\\\\"\\\\u003e',\\\\\\\"\\\\u003c![CDATA[\\\\\\\\n\\\\\\\",h,\\\\\\\"]]\\\\u003e\\\\\\\",\\\\\\\"\\\\u003c/style\\\\u003e\\\\\\\\n\\\\\\\"].join(\\\\\\\"\\\\\\\")),h},_setSVGObjects:function(t,e){var i,r,n,o=this._objects;for(r=0,n=o.length;r\\\\u003cn;r++)(i=o[r]).excludeFromExport||this._setSVGObject(t,i,e)},_setSVGObject:function(t,e,i){t.push(e.toSVG(i))},_setSVGBgOverlayImage:function(t,e,i){this[e]\\\\u0026\\\\u0026!this[e].excludeFromExport\\\\u0026\\\\u0026this[e].toSVG\\\\u0026\\\\u0026t.push(this[e].toSVG(i))},_setSVGBgOverlayColor:function(t,e){var i=this[e+\\\\\\\"Color\\\\\\\"],r=this.viewportTransform,n=this.width,o=this.height;if(i)if(i.toLive){var s=i.repeat,a=T.util.invertTransform(r),h=this[e+\\\\\\\"Vpt\\\\\\\"]?T.util.matrixToSVG(a):\\\\\\\"\\\\\\\";t.push('\\\\u003crect transform=\\\\\\\"'+h+\\\\\\\" translate(\\\\\\\",n/2,\\\\\\\",\\\\\\\",o/2,')\\\\\\\"',' x=\\\\\\\"',i.offsetX-n/2,'\\\\\\\" y=\\\\\\\"',i.offsetY-o/2,'\\\\\\\" ','width=\\\\\\\"',\\\\\\\"repeat-y\\\\\\\"===s||\\\\\\\"no-repeat\\\\\\\"===s?i.source.width:n,'\\\\\\\" height=\\\\\\\"',\\\\\\\"repeat-x\\\\\\\"===s||\\\\\\\"no-repeat\\\\\\\"===s?i.source.height:o,'\\\\\\\" fill=\\\\\\\"url(#SVGID_'+i.id+')\\\\\\\"',\\\\\\\"\\\\u003e\\\\u003c/rect\\\\u003e\\\\\\\\n\\\\\\\")}else t.push('\\\\u003crect x=\\\\\\\"0\\\\\\\" y=\\\\\\\"0\\\\\\\" width=\\\\\\\"100%\\\\\\\" height=\\\\\\\"100%\\\\\\\" ','fill=\\\\\\\"',i,'\\\\\\\"',\\\\\\\"\\\\u003e\\\\u003c/rect\\\\u003e\\\\\\\\n\\\\\\\")},sendToBack:function(t){if(!t)return this;var e,r,n,o=this._activeObject;if(t===o\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.type)for(e=(n=o._objects).length;e--;)r=n[e],i(this._objects,r),this._objects.unshift(r);else i(this._objects,t),this._objects.unshift(t);return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},bringToFront:function(t){if(!t)return this;var e,r,n,o=this._activeObject;if(t===o\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.type)for(n=o._objects,e=0;e\\\\u003cn.length;e++)r=n[e],i(this._objects,r),this._objects.push(r);else i(this._objects,t),this._objects.push(t);return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},sendBackwards:function(t,e){if(!t)return this;var r,n,o,s,a,h=this._activeObject,c=0;if(t===h\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.type)for(a=h._objects,r=0;r\\\\u003ca.length;r++)n=a[r],(o=this._objects.indexOf(n))\\\\u003e0+c\\\\u0026\\\\u0026(s=o-1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else 0!==(o=this._objects.indexOf(t))\\\\u0026\\\\u0026(s=this._findNewLowerIndex(t,o,e),i(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},_findNewLowerIndex:function(t,e,i){var r,n;if(i)for(r=e,n=e-1;n\\\\u003e=0;--n){if(t.intersectsWithObject(this._objects[n])||t.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(t)){r=n;break}}else r=e-1;return r},bringForward:function(t,e){if(!t)return this;var r,n,o,s,a,h=this._activeObject,c=0;if(t===h\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.type)for(r=(a=h._objects).length;r--;)n=a[r],(o=this._objects.indexOf(n))\\\\u003cthis._objects.length-1-c\\\\u0026\\\\u0026(s=o+1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else(o=this._objects.indexOf(t))!==this._objects.length-1\\\\u0026\\\\u0026(s=this._findNewUpperIndex(t,o,e),i(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},_findNewUpperIndex:function(t,e,i){var r,n,o;if(i)for(r=e,n=e+1,o=this._objects.length;n\\\\u003co;++n){if(t.intersectsWithObject(this._objects[n])||t.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(t)){r=n;break}}else r=e+1;return r},moveTo:function(t,e){return i(this._objects,t),this._objects.splice(e,0,t),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll()},dispose:function(){return this.isRendering\\\\u0026\\\\u0026(T.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(t){t.dispose\\\\u0026\\\\u0026t.dispose()})),this._objects=[],this.backgroundImage\\\\u0026\\\\u0026this.backgroundImage.dispose\\\\u0026\\\\u0026this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage\\\\u0026\\\\u0026this.overlayImage.dispose\\\\u0026\\\\u0026this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove(\\\\\\\"lower-canvas\\\\\\\"),this.lowerCanvasEl.style=this._originalCanvasStyle,delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute(\\\\\\\"width\\\\\\\",this.width),this.lowerCanvasEl.setAttribute(\\\\\\\"height\\\\\\\",this.height),T.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return\\\\\\\"#\\\\u003cfabric.Canvas (\\\\\\\"+this.complexity()+\\\\\\\"): { objects: \\\\\\\"+this._objects.length+\\\\\\\" }\\\\u003e\\\\\\\"}}),t(T.StaticCanvas.prototype,T.Observable),t(T.StaticCanvas.prototype,T.Collection),t(T.StaticCanvas.prototype,T.DataURLExporter),t(T.StaticCanvas,{EMPTY_JSON:'{\\\\\\\"objects\\\\\\\": [], \\\\\\\"background\\\\\\\": \\\\\\\"white\\\\\\\"}',supports:function(t){var e=a();if(!e||!e.getContext)return null;var i=e.getContext(\\\\\\\"2d\\\\\\\");return i\\\\u0026\\\\u0026\\\\\\\"setLineDash\\\\\\\"===t?void 0!==i.setLineDash:null}}),T.StaticCanvas.prototype.toJSON=T.StaticCanvas.prototype.toObject,T.isLikelyNode\\\\u0026\\\\u0026(T.StaticCanvas.prototype.createPNGStream=function(){var t=s(this.lowerCanvasEl);return t\\\\u0026\\\\u0026t.createPNGStream()},T.StaticCanvas.prototype.createJPEGStream=function(t){var e=s(this.lowerCanvasEl);return e\\\\u0026\\\\u0026e.createJPEGStream(t)})}}(),T.BaseBrush=T.util.createClass({color:\\\\\\\"rgb(0, 0, 0)\\\\\\\",width:1,shadow:null,strokeLineCap:\\\\\\\"round\\\\\\\",strokeLineJoin:\\\\\\\"round\\\\\\\",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(){var t=this.canvas.contextTop;t.strokeStyle=this.color,t.lineWidth=this.width,t.lineCap=this.strokeLineCap,t.miterLimit=this.strokeMiterLimit,t.lineJoin=this.strokeLineJoin,t.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(t){var e=this.canvas.viewportTransform;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},_setShadow:function(){if(this.shadow){var t=this.canvas,e=this.shadow,i=t.contextTop,r=t.getZoom();t\\\\u0026\\\\u0026t._isRetinaScaling()\\\\u0026\\\\u0026(r*=T.devicePixelRatio),i.shadowColor=e.color,i.shadowBlur=e.blur*r,i.shadowOffsetX=e.offsetX*r,i.shadowOffsetY=e.offsetY*r}},needsFullRender:function(){return new T.Color(this.color).getAlpha()\\\\u003c1||!!this.shadow},_resetShadow:function(){var t=this.canvas.contextTop;t.shadowColor=\\\\\\\"\\\\\\\",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0},_isOutSideCanvas:function(t){return t.x\\\\u003c0||t.x\\\\u003ethis.canvas.getWidth()||t.y\\\\u003c0||t.y\\\\u003ethis.canvas.getHeight()}}),T.PencilBrush=T.util.createClass(T.BaseBrush,{decimate:.4,initialize:function(t){this.canvas=t,this._points=[]},_drawSegment:function(t,e,i){var r=e.midPointFrom(i);return t.quadraticCurveTo(e.x,e.y,r.x,r.y),r},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)\\\\u0026\\\\u0026(this._prepareForDrawing(t),this._captureDrawingPath(t),this._render())},onMouseMove:function(t,e){if(this.canvas._isMainEvent(e.e)\\\\u0026\\\\u0026(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(t))\\\\u0026\\\\u0026this._captureDrawingPath(t)\\\\u0026\\\\u0026this._points.length\\\\u003e1)if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,r=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd\\\\u0026\\\\u0026(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[r-2],i[r-1],!0),n.stroke(),n.restore()}},onMouseUp:function(t){return!this.canvas._isMainEvent(t.e)||(this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(t){var e=new T.Point(t.x,t.y);this._reset(),this._addPoint(e),this.canvas.contextTop.moveTo(e.x,e.y)},_addPoint:function(t){return!(this._points.length\\\\u003e1\\\\u0026\\\\u0026t.eq(this._points[this._points.length-1])||(this._points.push(t),0))},_reset:function(){this._points=[],this._setBrushStyles(),this._setShadow()},_captureDrawingPath:function(t){var e=new T.Point(t.x,t.y);return this._addPoint(e)},_render:function(){var t,e,i=this.canvas.contextTop,r=this._points[0],n=this._points[1];if(this._saveAndTransform(i),i.beginPath(),2===this._points.length\\\\u0026\\\\u0026r.x===n.x\\\\u0026\\\\u0026r.y===n.y){var o=this.width/1e3;r=new T.Point(r.x,r.y),n=new T.Point(n.x,n.y),r.x-=o,n.x+=o}for(i.moveTo(r.x,r.y),t=1,e=this._points.length;t\\\\u003ce;t++)this._drawSegment(i,r,n),r=this._points[t],n=this._points[t+1];i.lineTo(r.x,r.y),i.stroke(),i.restore()},convertPointsToSVGPath:function(t){var e=this.width/1e3;return T.util.getSmoothPathFromPoints(t,e)},_isEmptySVGPath:function(t){return\\\\\\\"M 0 0 Q 0 0 0 0 L 0 0\\\\\\\"===T.util.joinPath(t)},createPath:function(t){var e=new T.Path(t,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow\\\\u0026\\\\u0026(this.shadow.affectStroke=!0,e.shadow=new T.Shadow(this.shadow)),e},decimatePoints:function(t,e){if(t.length\\\\u003c=2)return t;var i,r=this.canvas.getZoom(),n=Math.pow(e/r,2),o=t.length-1,s=t[0],a=[s];for(i=1;i\\\\u003co-1;i++)Math.pow(s.x-t[i].x,2)+Math.pow(s.y-t[i].y,2)\\\\u003e=n\\\\u0026\\\\u0026(s=t[i],a.push(s));return a.push(t[o]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate\\\\u0026\\\\u0026(this._points=this.decimatePoints(this._points,this.decimate));var t=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(t))this.canvas.requestRenderAll();else{var e=this.createPath(t);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire(\\\\\\\"before:path:created\\\\\\\",{path:e}),this.canvas.add(e),this.canvas.requestRenderAll(),e.setCoords(),this._resetShadow(),this.canvas.fire(\\\\\\\"path:created\\\\\\\",{path:e})}}}),T.CircleBrush=T.util.createClass(T.BaseBrush,{width:10,initialize:function(t){this.canvas=t,this.points=[]},drawDot:function(t){var e=this.addPoint(t),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,e),i.restore()},dot:function(t,e){t.fillStyle=e.fill,t.beginPath(),t.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),t.closePath(),t.fill()},onMouseDown:function(t){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(t)},_render:function(){var t,e,i=this.canvas.contextTop,r=this.points;for(this._saveAndTransform(i),t=0,e=r.length;t\\\\u003ce;t++)this.dot(i,r[t]);i.restore()},onMouseMove:function(t){!0===this.limitedToCanvasSize\\\\u0026\\\\u0026this._isOutSideCanvas(t)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(t),this._render()):this.drawDot(t))},onMouseUp:function(){var t,e,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var r=[];for(t=0,e=this.points.length;t\\\\u003ce;t++){var n=this.points[t],o=new T.Circle({radius:n.radius,left:n.x,top:n.y,originX:\\\\\\\"center\\\\\\\",originY:\\\\\\\"center\\\\\\\",fill:n.fill});this.shadow\\\\u0026\\\\u0026(o.shadow=new T.Shadow(this.shadow)),r.push(o)}var s=new T.Group(r);s.canvas=this.canvas,this.canvas.fire(\\\\\\\"before:path:created\\\\\\\",{path:s}),this.canvas.add(s),this.canvas.fire(\\\\\\\"path:created\\\\\\\",{path:s}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(t){var e=new T.Point(t.x,t.y),i=T.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,r=new T.Color(this.color).setAlpha(T.util.getRandomInt(0,100)/100).toRgba();return e.radius=i,e.fill=r,this.points.push(e),e}}),T.SprayBrush=T.util.createClass(T.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(t){this.canvas=t,this.sprayChunks=[]},onMouseDown:function(t){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(t),this.render(this.sprayChunkPoints)},onMouseMove:function(t){!0===this.limitedToCanvasSize\\\\u0026\\\\u0026this._isOutSideCanvas(t)||(this.addSprayChunk(t),this.render(this.sprayChunkPoints))},onMouseUp:function(){var t=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var e=[],i=0,r=this.sprayChunks.length;i\\\\u003cr;i++)for(var n=this.sprayChunks[i],o=0,s=n.length;o\\\\u003cs;o++){var a=new T.Rect({width:n[o].width,height:n[o].width,left:n[o].x+1,top:n[o].y+1,originX:\\\\\\\"center\\\\\\\",originY:\\\\\\\"center\\\\\\\",fill:this.color});e.push(a)}this.optimizeOverlapping\\\\u0026\\\\u0026(e=this._getOptimizedRects(e));var h=new T.Group(e);this.shadow\\\\u0026\\\\u0026h.set(\\\\\\\"shadow\\\\\\\",new T.Shadow(this.shadow)),this.canvas.fire(\\\\\\\"before:path:created\\\\\\\",{path:h}),this.canvas.add(h),this.canvas.fire(\\\\\\\"path:created\\\\\\\",{path:h}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=t,this.canvas.requestRenderAll()},_getOptimizedRects:function(t){var e,i,r,n={};for(i=0,r=t.length;i\\\\u003cr;i++)n[e=t[i].left+\\\\\\\"\\\\\\\"+t[i].top]||(n[e]=t[i]);var o=[];for(e in n)o.push(n[e]);return o},render:function(t){var e,i,r=this.canvas.contextTop;for(r.fillStyle=this.color,this._saveAndTransform(r),e=0,i=t.length;e\\\\u003ci;e++){var n=t[e];void 0!==n.opacity\\\\u0026\\\\u0026(r.globalAlpha=n.opacity),r.fillRect(n.x,n.y,n.width,n.width)}r.restore()},_render:function(){var t,e,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),t=0,e=this.sprayChunks.length;t\\\\u003ce;t++)this.render(this.sprayChunks[t]);i.restore()},addSprayChunk:function(t){this.sprayChunkPoints=[];var e,i,r,n,o=this.width/2;for(n=0;n\\\\u003cthis.density;n++){e=T.util.getRandomInt(t.x-o,t.x+o),i=T.util.getRandomInt(t.y-o,t.y+o),r=this.dotWidthVariance?T.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var s=new T.Point(e,i);s.width=r,this.randomOpacity\\\\u0026\\\\u0026(s.opacity=T.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(s)}this.sprayChunks.push(this.sprayChunkPoints)}}),T.PatternBrush=T.util.createClass(T.PencilBrush,{getPatternSrc:function(){var t=T.util.createCanvasElement(),e=t.getContext(\\\\\\\"2d\\\\\\\");return t.width=t.height=25,e.fillStyle=this.color,e.beginPath(),e.arc(10,10,10,0,2*Math.PI,!1),e.closePath(),e.fill(),t},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace(\\\\\\\"this.color\\\\\\\",'\\\\\\\"'+this.color+'\\\\\\\"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),\\\\\\\"repeat\\\\\\\")},_setBrushStyles:function(){this.callSuper(\\\\\\\"_setBrushStyles\\\\\\\"),this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(t){var e=this.callSuper(\\\\\\\"createPath\\\\\\\",t),i=e._getLeftTopCoords().scalarAdd(e.strokeWidth/2);return e.stroke=new T.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),e}}),function(){var t=T.util.getPointer,e=T.util.degreesToRadians,i=T.util.isTouchEvent;for(var r in T.Canvas=T.util.createClass(T.StaticCanvas,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:\\\\\\\"shiftKey\\\\\\\",centeredScaling:!1,centeredRotation:!1,centeredKey:\\\\\\\"altKey\\\\\\\",altActionKey:\\\\\\\"shiftKey\\\\\\\",interactive:!0,selection:!0,selectionKey:\\\\\\\"shiftKey\\\\\\\",altSelectionKey:null,selectionColor:\\\\\\\"rgba(100, 100, 255, 0.3)\\\\\\\",selectionDashArray:[],selectionBorderColor:\\\\\\\"rgba(255, 255, 255, 0.3)\\\\\\\",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:\\\\\\\"move\\\\\\\",moveCursor:\\\\\\\"move\\\\\\\",defaultCursor:\\\\\\\"default\\\\\\\",freeDrawingCursor:\\\\\\\"crosshair\\\\\\\",rotationCursor:\\\\\\\"crosshair\\\\\\\",notAllowedCursor:\\\\\\\"not-allowed\\\\\\\",containerClass:\\\\\\\"canvas-container\\\\\\\",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=T.PencilBrush\\\\u0026\\\\u0026new T.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var t,e,i,r=this.getActiveObjects();if(r.length\\\\u003e0\\\\u0026\\\\u0026!this.preserveObjectStacking){e=[],i=[];for(var n=0,o=this._objects.length;n\\\\u003co;n++)t=this._objects[n],-1===r.indexOf(t)?e.push(t):i.push(t);r.length\\\\u003e1\\\\u0026\\\\u0026(this._activeObject._objects=i),e.push.apply(e,i)}else e=this._objects;return e},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext\\\\u0026\\\\u0026this.renderTopLayer(this.contextTop);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this},renderTopLayer:function(t){t.save(),this.isDrawingMode\\\\u0026\\\\u0026this._isCurrentlyDrawing\\\\u0026\\\\u0026(this.freeDrawingBrush\\\\u0026\\\\u0026this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection\\\\u0026\\\\u0026this._groupSelector\\\\u0026\\\\u0026(this._drawSelection(t),this.contextTopDirty=!0),t.restore()},renderTop:function(){var t=this.contextTop;return this.clearContext(t),this.renderTopLayer(t),this.fire(\\\\\\\"after:render\\\\\\\"),this},_normalizePointer:function(t,e){var i=t.calcTransformMatrix(),r=T.util.invertTransform(i),n=this.restorePointerVpt(e);return T.util.transformPoint(n,r)},isTargetTransparent:function(t,e,i){if(t.shouldCache()\\\\u0026\\\\u0026t._cacheCanvas\\\\u0026\\\\u0026t!==this._activeObject){var r=this._normalizePointer(t,{x:e,y:i}),n=Math.max(t.cacheTranslationX+r.x*t.zoomX,0),o=Math.max(t.cacheTranslationY+r.y*t.zoomY,0);return T.util.isTransparent(t._cacheContext,Math.round(n),Math.round(o),this.targetFindTolerance)}var s=this.contextCache,a=t.selectionBackgroundColor,h=this.viewportTransform;return t.selectionBackgroundColor=\\\\\\\"\\\\\\\",this.clearContext(s),s.save(),s.transform(h[0],h[1],h[2],h[3],h[4],h[5]),t.render(s),s.restore(),t.selectionBackgroundColor=a,T.util.isTransparent(s,e,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(t){return\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(this.selectionKey)?!!this.selectionKey.find((function(e){return!0===t[e]})):t[this.selectionKey]},_shouldClearSelection:function(t,e){var i=this.getActiveObjects(),r=this._activeObject;return!e||e\\\\u0026\\\\u0026r\\\\u0026\\\\u0026i.length\\\\u003e1\\\\u0026\\\\u0026-1===i.indexOf(e)\\\\u0026\\\\u0026r!==e\\\\u0026\\\\u0026!this._isSelectionKeyPressed(t)||e\\\\u0026\\\\u0026!e.evented||e\\\\u0026\\\\u0026!e.selectable\\\\u0026\\\\u0026r\\\\u0026\\\\u0026r!==e},_shouldCenterTransform:function(t,e,i){var r;if(t)return\\\\\\\"scale\\\\\\\"===e||\\\\\\\"scaleX\\\\\\\"===e||\\\\\\\"scaleY\\\\\\\"===e||\\\\\\\"resizing\\\\\\\"===e?r=this.centeredScaling||t.centeredScaling:\\\\\\\"rotate\\\\\\\"===e\\\\u0026\\\\u0026(r=this.centeredRotation||t.centeredRotation),r?!i:i},_getOriginFromCorner:function(t,e){var i={x:t.originX,y:t.originY};return\\\\\\\"ml\\\\\\\"===e||\\\\\\\"tl\\\\\\\"===e||\\\\\\\"bl\\\\\\\"===e?i.x=\\\\\\\"right\\\\\\\":\\\\\\\"mr\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"tr\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"br\\\\\\\"!==e||(i.x=\\\\\\\"left\\\\\\\"),\\\\\\\"tl\\\\\\\"===e||\\\\\\\"mt\\\\\\\"===e||\\\\\\\"tr\\\\\\\"===e?i.y=\\\\\\\"bottom\\\\\\\":\\\\\\\"bl\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"mb\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"br\\\\\\\"!==e||(i.y=\\\\\\\"top\\\\\\\"),i},_getActionFromCorner:function(t,e,i,r){if(!e||!t)return\\\\\\\"drag\\\\\\\";var n=r.controls[e];return n.getActionName(i,n,r)},_setupCurrentTransform:function(t,i,r){if(i){var n=this.getPointer(t),o=i.__corner,s=i.controls[o],a=r\\\\u0026\\\\u0026o?s.getActionHandler(t,i,s):T.controlsUtils.dragHandler,h=this._getActionFromCorner(r,o,t,i),c=this._getOriginFromCorner(i,o),l=t[this.centeredKey],u={target:i,action:h,actionHandler:a,corner:o,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:n.x-i.left,offsetY:n.y-i.top,originX:c.x,originY:c.y,ex:n.x,ey:n.y,lastX:n.x,lastY:n.y,theta:e(i.angle),width:i.width*i.scaleX,shiftKey:t.shiftKey,altKey:l,original:T.util.saveObjectTransform(i)};this._shouldCenterTransform(i,h,l)\\\\u0026\\\\u0026(u.originX=\\\\\\\"center\\\\\\\",u.originY=\\\\\\\"center\\\\\\\"),u.original.originX=c.x,u.original.originY=c.y,this._currentTransform=u,this._beforeTransform(t)}},setCursor:function(t){this.upperCanvasEl.style.cursor=t},_drawSelection:function(t){var e=this._groupSelector,i=new T.Point(e.ex,e.ey),r=T.util.transformPoint(i,this.viewportTransform),n=new T.Point(e.ex+e.left,e.ey+e.top),o=T.util.transformPoint(n,this.viewportTransform),s=Math.min(r.x,o.x),a=Math.min(r.y,o.y),h=Math.max(r.x,o.x),c=Math.max(r.y,o.y),l=this.selectionLineWidth/2;this.selectionColor\\\\u0026\\\\u0026(t.fillStyle=this.selectionColor,t.fillRect(s,a,h-s,c-a)),this.selectionLineWidth\\\\u0026\\\\u0026this.selectionBorderColor\\\\u0026\\\\u0026(t.lineWidth=this.selectionLineWidth,t.strokeStyle=this.selectionBorderColor,s+=l,a+=l,h-=l,c-=l,T.Object.prototype._setLineDash.call(this,t,this.selectionDashArray),t.strokeRect(s,a,h-s,c-a))},findTarget:function(t,e){if(!this.skipTargetFind){var r,n,o=this.getPointer(t,!0),s=this._activeObject,a=this.getActiveObjects(),h=i(t),c=a.length\\\\u003e1\\\\u0026\\\\u0026!e||1===a.length;if(this.targets=[],c\\\\u0026\\\\u0026s._findTargetCorner(o,h))return s;if(a.length\\\\u003e1\\\\u0026\\\\u0026!e\\\\u0026\\\\u0026s===this._searchPossibleTargets([s],o))return s;if(1===a.length\\\\u0026\\\\u0026s===this._searchPossibleTargets([s],o)){if(!this.preserveObjectStacking)return s;r=s,n=this.targets,this.targets=[]}var l=this._searchPossibleTargets(this._objects,o);return t[this.altSelectionKey]\\\\u0026\\\\u0026l\\\\u0026\\\\u0026r\\\\u0026\\\\u0026l!==r\\\\u0026\\\\u0026(l=r,this.targets=n),l}},_checkTarget:function(t,e,i){if(e\\\\u0026\\\\u0026e.visible\\\\u0026\\\\u0026e.evented\\\\u0026\\\\u0026e.containsPoint(t)){if(!this.perPixelTargetFind\\\\u0026\\\\u0026!e.perPixelTargetFind||e.isEditing)return!0;if(!this.isTargetTransparent(e,i.x,i.y))return!0}},_searchPossibleTargets:function(t,e){for(var i,r,n=t.length;n--;){var o=t[n],s=o.group?this._normalizePointer(o.group,e):e;if(this._checkTarget(s,o,e)){(i=t[n]).subTargetCheck\\\\u0026\\\\u0026i instanceof T.Group\\\\u0026\\\\u0026(r=this._searchPossibleTargets(i._objects,e))\\\\u0026\\\\u0026this.targets.push(r);break}}return i},restorePointerVpt:function(t){return T.util.transformPoint(t,T.util.invertTransform(this.viewportTransform))},getPointer:function(e,i){if(this._absolutePointer\\\\u0026\\\\u0026!i)return this._absolutePointer;if(this._pointer\\\\u0026\\\\u0026i)return this._pointer;var r,n=t(e),o=this.upperCanvasEl,s=o.getBoundingClientRect(),a=s.width||0,h=s.height||0;a\\\\u0026\\\\u0026h||(\\\\\\\"top\\\\\\\"in s\\\\u0026\\\\u0026\\\\\\\"bottom\\\\\\\"in s\\\\u0026\\\\u0026(h=Math.abs(s.top-s.bottom)),\\\\\\\"right\\\\\\\"in s\\\\u0026\\\\u0026\\\\\\\"left\\\\\\\"in s\\\\u0026\\\\u0026(a=Math.abs(s.right-s.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var c=this.getRetinaScaling();return 1!==c\\\\u0026\\\\u0026(n.x/=c,n.y/=c),r=0===a||0===h?{width:1,height:1}:{width:o.width/a,height:o.height/h},{x:n.x*r.width,y:n.y*r.height}},_createUpperCanvas:function(){var t=this.lowerCanvasEl.className.replace(/\\\\\\\\s*lower-canvas\\\\\\\\s*/,\\\\\\\"\\\\\\\"),e=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className=\\\\\\\"\\\\\\\":(i=this._createCanvasElement(),this.upperCanvasEl=i),T.util.addClass(i,\\\\\\\"upper-canvas \\\\\\\"+t),this.wrapperEl.appendChild(i),this._copyCanvasStyle(e,i),this._applyCanvasStyle(i),this.contextTop=i.getContext(\\\\\\\"2d\\\\\\\")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute(\\\\\\\"width\\\\\\\",this.width),this.cacheCanvasEl.setAttribute(\\\\\\\"height\\\\\\\",this.height),this.contextCache=this.cacheCanvasEl.getContext(\\\\\\\"2d\\\\\\\")},_initWrapperElement:function(){this.wrapperEl=T.util.wrapElement(this.lowerCanvasEl,\\\\\\\"div\\\\\\\",{class:this.containerClass}),T.util.setStyle(this.wrapperEl,{width:this.width+\\\\\\\"px\\\\\\\",height:this.height+\\\\\\\"px\\\\\\\",position:\\\\\\\"relative\\\\\\\"}),T.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(t){var e=this.width||t.width,i=this.height||t.height;T.util.setStyle(t,{position:\\\\\\\"absolute\\\\\\\",width:e+\\\\\\\"px\\\\\\\",height:i+\\\\\\\"px\\\\\\\",left:0,top:0,\\\\\\\"touch-action\\\\\\\":this.allowTouchScrolling?\\\\\\\"manipulation\\\\\\\":\\\\\\\"none\\\\\\\",\\\\\\\"-ms-touch-action\\\\\\\":this.allowTouchScrolling?\\\\\\\"manipulation\\\\\\\":\\\\\\\"none\\\\\\\"}),t.width=e,t.height=i,T.util.makeElementUnselectable(t)},_copyCanvasStyle:function(t,e){e.style.cssText=t.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var t=this._activeObject;return t?\\\\\\\"activeSelection\\\\\\\"===t.type\\\\u0026\\\\u0026t._objects?t._objects.slice(0):[t]:[]},_onObjectRemoved:function(t){t===this._activeObject\\\\u0026\\\\u0026(this.fire(\\\\\\\"before:selection:cleared\\\\\\\",{target:t}),this._discardActiveObject(),this.fire(\\\\\\\"selection:cleared\\\\\\\",{target:t}),t.fire(\\\\\\\"deselected\\\\\\\")),t===this._hoveredTarget\\\\u0026\\\\u0026(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper(\\\\\\\"_onObjectRemoved\\\\\\\",t)},_fireSelectionEvents:function(t,e){var i=!1,r=this.getActiveObjects(),n=[],o=[];t.forEach((function(t){-1===r.indexOf(t)\\\\u0026\\\\u0026(i=!0,t.fire(\\\\\\\"deselected\\\\\\\",{e:e,target:t}),o.push(t))})),r.forEach((function(r){-1===t.indexOf(r)\\\\u0026\\\\u0026(i=!0,r.fire(\\\\\\\"selected\\\\\\\",{e:e,target:r}),n.push(r))})),t.length\\\\u003e0\\\\u0026\\\\u0026r.length\\\\u003e0?i\\\\u0026\\\\u0026this.fire(\\\\\\\"selection:updated\\\\\\\",{e:e,selected:n,deselected:o,updated:n[0]||o[0],target:this._activeObject}):r.length\\\\u003e0?this.fire(\\\\\\\"selection:created\\\\\\\",{e:e,selected:n,target:this._activeObject}):t.length\\\\u003e0\\\\u0026\\\\u0026this.fire(\\\\\\\"selection:cleared\\\\\\\",{e:e,deselected:o})},setActiveObject:function(t,e){var i=this.getActiveObjects();return this._setActiveObject(t,e),this._fireSelectionEvents(i,e),this},_setActiveObject:function(t,e){return this._activeObject!==t\\\\u0026\\\\u0026(!!this._discardActiveObject(e,t)\\\\u0026\\\\u0026(!t.onSelect({e:e})\\\\u0026\\\\u0026(this._activeObject=t,!0)))},_discardActiveObject:function(t,e){var i=this._activeObject;if(i){if(i.onDeselect({e:t,object:e}))return!1;this._activeObject=null}return!0},discardActiveObject:function(t){var e=this.getActiveObjects(),i=this.getActiveObject();return e.length\\\\u0026\\\\u0026this.fire(\\\\\\\"before:selection:cleared\\\\\\\",{target:i,e:t}),this._discardActiveObject(t),this._fireSelectionEvents(e,t),this},dispose:function(){var t=this.wrapperEl;return this.removeListeners(),t.removeChild(this.upperCanvasEl),t.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,[\\\\\\\"upperCanvasEl\\\\\\\",\\\\\\\"cacheCanvasEl\\\\\\\"].forEach(function(t){T.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this)),t.parentNode\\\\u0026\\\\u0026t.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,T.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper(\\\\\\\"clear\\\\\\\")},drawControls:function(t){var e=this._activeObject;e\\\\u0026\\\\u0026e._renderControls(t)},_toObject:function(t,e,i){var r=this._realizeGroupTransformOnObject(t),n=this.callSuper(\\\\\\\"_toObject\\\\\\\",t,e,i);return this._unwindGroupTransformOnObject(t,r),n},_realizeGroupTransformOnObject:function(t){if(t.group\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.group.type\\\\u0026\\\\u0026this._activeObject===t.group){var e={};return[\\\\\\\"angle\\\\\\\",\\\\\\\"flipX\\\\\\\",\\\\\\\"flipY\\\\\\\",\\\\\\\"left\\\\\\\",\\\\\\\"scaleX\\\\\\\",\\\\\\\"scaleY\\\\\\\",\\\\\\\"skewX\\\\\\\",\\\\\\\"skewY\\\\\\\",\\\\\\\"top\\\\\\\"].forEach((function(i){e[i]=t[i]})),T.util.addTransformToObject(t,this._activeObject.calcOwnMatrix()),e}return null},_unwindGroupTransformOnObject:function(t,e){e\\\\u0026\\\\u0026t.set(e)},_setSVGObject:function(t,e,i){var r=this._realizeGroupTransformOnObject(e);this.callSuper(\\\\\\\"_setSVGObject\\\\\\\",t,e,i),this._unwindGroupTransformOnObject(e,r)},setViewportTransform:function(t){this.renderOnAddRemove\\\\u0026\\\\u0026this._activeObject\\\\u0026\\\\u0026this._activeObject.isEditing\\\\u0026\\\\u0026this._activeObject.clearContextTop(),T.StaticCanvas.prototype.setViewportTransform.call(this,t)}}),T.StaticCanvas)\\\\\\\"prototype\\\\\\\"!==r\\\\u0026\\\\u0026(T.Canvas[r]=T.StaticCanvas[r])}(),function(){var t=T.util.addListener,e=T.util.removeListener,i={passive:!1};function r(t,e){return t.button\\\\u0026\\\\u0026t.button===e-1}T.util.object.extend(T.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(t,\\\\\\\"add\\\\\\\")},_getEventPrefix:function(){return this.enablePointerEvents?\\\\\\\"pointer\\\\\\\":\\\\\\\"mouse\\\\\\\"},addOrRemove:function(t,e){var r=this.upperCanvasEl,n=this._getEventPrefix();t(T.window,\\\\\\\"resize\\\\\\\",this._onResize),t(r,n+\\\\\\\"down\\\\\\\",this._onMouseDown),t(r,n+\\\\\\\"move\\\\\\\",this._onMouseMove,i),t(r,n+\\\\\\\"out\\\\\\\",this._onMouseOut),t(r,n+\\\\\\\"enter\\\\\\\",this._onMouseEnter),t(r,\\\\\\\"wheel\\\\\\\",this._onMouseWheel),t(r,\\\\\\\"contextmenu\\\\\\\",this._onContextMenu),t(r,\\\\\\\"dblclick\\\\\\\",this._onDoubleClick),t(r,\\\\\\\"dragover\\\\\\\",this._onDragOver),t(r,\\\\\\\"dragenter\\\\\\\",this._onDragEnter),t(r,\\\\\\\"dragleave\\\\\\\",this._onDragLeave),t(r,\\\\\\\"drop\\\\\\\",this._onDrop),this.enablePointerEvents||t(r,\\\\\\\"touchstart\\\\\\\",this._onTouchStart,i),void 0!==P\\\\u0026\\\\u0026e in P\\\\u0026\\\\u0026(P[e](r,\\\\\\\"gesture\\\\\\\",this._onGesture),P[e](r,\\\\\\\"drag\\\\\\\",this._onDrag),P[e](r,\\\\\\\"orientation\\\\\\\",this._onOrientationChange),P[e](r,\\\\\\\"shake\\\\\\\",this._onShake),P[e](r,\\\\\\\"longpress\\\\\\\",this._onLongPress))},removeListeners:function(){this.addOrRemove(e,\\\\\\\"remove\\\\\\\");var t=this._getEventPrefix();e(T.document,t+\\\\\\\"up\\\\\\\",this._onMouseUp),e(T.document,\\\\\\\"touchend\\\\\\\",this._onTouchEnd,i),e(T.document,t+\\\\\\\"move\\\\\\\",this._onMouseMove,i),e(T.document,\\\\\\\"touchmove\\\\\\\",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,\\\\\\\"dragenter\\\\\\\"),this._onDragLeave=this._simpleEventHandler.bind(this,\\\\\\\"dragleave\\\\\\\"),this._onDrop=this._simpleEventHandler.bind(this,\\\\\\\"drop\\\\\\\"),this.eventsBound=!0)},_onGesture:function(t,e){this.__onTransformGesture\\\\u0026\\\\u0026this.__onTransformGesture(t,e)},_onDrag:function(t,e){this.__onDrag\\\\u0026\\\\u0026this.__onDrag(t,e)},_onMouseWheel:function(t){this.__onMouseWheel(t)},_onMouseOut:function(t){var e=this._hoveredTarget;this.fire(\\\\\\\"mouse:out\\\\\\\",{target:e,e:t}),this._hoveredTarget=null,e\\\\u0026\\\\u0026e.fire(\\\\\\\"mouseout\\\\\\\",{e:t});var i=this;this._hoveredTargets.forEach((function(r){i.fire(\\\\\\\"mouse:out\\\\\\\",{target:e,e:t}),r\\\\u0026\\\\u0026e.fire(\\\\\\\"mouseout\\\\\\\",{e:t})})),this._hoveredTargets=[],this._iTextInstances\\\\u0026\\\\u0026this._iTextInstances.forEach((function(t){t.isEditing\\\\u0026\\\\u0026t.hiddenTextarea.focus()}))},_onMouseEnter:function(t){this._currentTransform||this.findTarget(t)||(this.fire(\\\\\\\"mouse:over\\\\\\\",{target:null,e:t}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(t,e){this.__onOrientationChange\\\\u0026\\\\u0026this.__onOrientationChange(t,e)},_onShake:function(t,e){this.__onShake\\\\u0026\\\\u0026this.__onShake(t,e)},_onLongPress:function(t,e){this.__onLongPress\\\\u0026\\\\u0026this.__onLongPress(t,e)},_onDragOver:function(t){t.preventDefault();var e=this._simpleEventHandler(\\\\\\\"dragover\\\\\\\",t);this._fireEnterLeaveEvents(e,t)},_onContextMenu:function(t){return this.stopContextMenu\\\\u0026\\\\u0026(t.stopPropagation(),t.preventDefault()),!1},_onDoubleClick:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\\\\\"dblclick\\\\\\\"),this._resetTransformEventData(t)},getPointerId:function(t){var e=t.changedTouches;return e?e[0]\\\\u0026\\\\u0026e[0].identifier:this.enablePointerEvents?t.pointerId:-1},_isMainEvent:function(t){return!0===t.isPrimary||!1!==t.isPrimary\\\\u0026\\\\u0026(\\\\\\\"touchend\\\\\\\"===t.type\\\\u0026\\\\u00260===t.touches.length||(!t.changedTouches||t.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(r){r.preventDefault(),null===this.mainTouchId\\\\u0026\\\\u0026(this.mainTouchId=this.getPointerId(r)),this.__onMouseDown(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();t(T.document,\\\\\\\"touchend\\\\\\\",this._onTouchEnd,i),t(T.document,\\\\\\\"touchmove\\\\\\\",this._onMouseMove,i),e(n,o+\\\\\\\"down\\\\\\\",this._onMouseDown)},_onMouseDown:function(r){this.__onMouseDown(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();e(n,o+\\\\\\\"move\\\\\\\",this._onMouseMove,i),t(T.document,o+\\\\\\\"up\\\\\\\",this._onMouseUp),t(T.document,o+\\\\\\\"move\\\\\\\",this._onMouseMove,i)},_onTouchEnd:function(r){if(!(r.touches.length\\\\u003e0)){this.__onMouseUp(r),this._resetTransformEventData(),this.mainTouchId=null;var n=this._getEventPrefix();e(T.document,\\\\\\\"touchend\\\\\\\",this._onTouchEnd,i),e(T.document,\\\\\\\"touchmove\\\\\\\",this._onMouseMove,i);var o=this;this._willAddMouseDown\\\\u0026\\\\u0026clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){t(o.upperCanvasEl,n+\\\\\\\"down\\\\\\\",o._onMouseDown),o._willAddMouseDown=0}),400)}},_onMouseUp:function(r){this.__onMouseUp(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();this._isMainEvent(r)\\\\u0026\\\\u0026(e(T.document,o+\\\\\\\"up\\\\\\\",this._onMouseUp),e(T.document,o+\\\\\\\"move\\\\\\\",this._onMouseMove,i),t(n,o+\\\\\\\"move\\\\\\\",this._onMouseMove,i))},_onMouseMove:function(t){!this.allowTouchScrolling\\\\u0026\\\\u0026t.preventDefault\\\\u0026\\\\u0026t.preventDefault(),this.__onMouseMove(t)},_onResize:function(){this.calcOffset()},_shouldRender:function(t){var e=this._activeObject;return!!(!!e!=!!t||e\\\\u0026\\\\u0026t\\\\u0026\\\\u0026e!==t)||(e\\\\u0026\\\\u0026e.isEditing,!1)},__onMouseUp:function(t){var e,i=this._currentTransform,n=this._groupSelector,o=!1,s=!n||0===n.left\\\\u0026\\\\u00260===n.top;if(this._cacheTransformEventData(t),e=this._target,this._handleEvent(t,\\\\\\\"up:before\\\\\\\"),r(t,3))this.fireRightClick\\\\u0026\\\\u0026this._handleEvent(t,\\\\\\\"up\\\\\\\",3,s);else{if(r(t,2))return this.fireMiddleClick\\\\u0026\\\\u0026this._handleEvent(t,\\\\\\\"up\\\\\\\",2,s),void this._resetTransformEventData();if(this.isDrawingMode\\\\u0026\\\\u0026this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(t);else if(this._isMainEvent(t)){if(i\\\\u0026\\\\u0026(this._finalizeCurrentTransform(t),o=i.actionPerformed),!s){var a=e===this._activeObject;this._maybeGroupObjects(t),o||(o=this._shouldRender(e)||!a\\\\u0026\\\\u0026e===this._activeObject)}if(e){if(e.selectable\\\\u0026\\\\u0026e!==this._activeObject\\\\u0026\\\\u0026\\\\\\\"up\\\\\\\"===e.activeOn)this.setActiveObject(e,t),o=!0;else{var h=e._findTargetCorner(this.getPointer(t,!0),T.util.isTouchEvent(t)),c=e.controls[h],l=c\\\\u0026\\\\u0026c.getMouseUpHandler(t,e,c);if(l){var u=this.getPointer(t);l(t,i,u.x,u.y)}}e.isMoving=!1}this._setCursorFromEvent(t,e),this._handleEvent(t,\\\\\\\"up\\\\\\\",1,s),this._groupSelector=null,this._currentTransform=null,e\\\\u0026\\\\u0026(e.__corner=0),o?this.requestRenderAll():s||this.renderTop()}}},_simpleEventHandler:function(t,e){var i=this.findTarget(e),r=this.targets,n={e:e,target:i,subTargets:r};if(this.fire(t,n),i\\\\u0026\\\\u0026i.fire(t,n),!r)return i;for(var o=0;o\\\\u003cr.length;o++)r[o].fire(t,n);return i},_handleEvent:function(t,e,i,r){var n=this._target,o=this.targets||[],s={e:t,target:n,subTargets:o,button:i||1,isClick:r||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};\\\\\\\"up\\\\\\\"===e\\\\u0026\\\\u0026(s.currentTarget=this.findTarget(t),s.currentSubTargets=this.targets),this.fire(\\\\\\\"mouse:\\\\\\\"+e,s),n\\\\u0026\\\\u0026n.fire(\\\\\\\"mouse\\\\\\\"+e,s);for(var a=0;a\\\\u003co.length;a++)o[a].fire(\\\\\\\"mouse\\\\\\\"+e,s)},_finalizeCurrentTransform:function(t){var e,i=this._currentTransform,r=i.target,n={e:t,target:r,transform:i,action:i.action};r._scaling\\\\u0026\\\\u0026(r._scaling=!1),r.setCoords(),(i.actionPerformed||this.stateful\\\\u0026\\\\u0026r.hasStateChanged())\\\\u0026\\\\u0026(i.actionPerformed\\\\u0026\\\\u0026(e=this._addEventOptions(n,i),this._fire(e,n)),this._fire(\\\\\\\"modified\\\\\\\",n))},_addEventOptions:function(t,e){var i,r;switch(e.action){case\\\\\\\"scaleX\\\\\\\":i=\\\\\\\"scaled\\\\\\\",r=\\\\\\\"x\\\\\\\";break;case\\\\\\\"scaleY\\\\\\\":i=\\\\\\\"scaled\\\\\\\",r=\\\\\\\"y\\\\\\\";break;case\\\\\\\"skewX\\\\\\\":i=\\\\\\\"skewed\\\\\\\",r=\\\\\\\"x\\\\\\\";break;case\\\\\\\"skewY\\\\\\\":i=\\\\\\\"skewed\\\\\\\",r=\\\\\\\"y\\\\\\\";break;case\\\\\\\"scale\\\\\\\":i=\\\\\\\"scaled\\\\\\\",r=\\\\\\\"equally\\\\\\\";break;case\\\\\\\"rotate\\\\\\\":i=\\\\\\\"rotated\\\\\\\";break;case\\\\\\\"drag\\\\\\\":i=\\\\\\\"moved\\\\\\\"}return t.by=r,i},_onMouseDownInDrawingMode:function(t){this._isCurrentlyDrawing=!0,this.getActiveObject()\\\\u0026\\\\u0026this.discardActiveObject(t).requestRenderAll();var e=this.getPointer(t);this.freeDrawingBrush.onMouseDown(e,{e:t,pointer:e}),this._handleEvent(t,\\\\\\\"down\\\\\\\")},_onMouseMoveInDrawingMode:function(t){if(this._isCurrentlyDrawing){var e=this.getPointer(t);this.freeDrawingBrush.onMouseMove(e,{e:t,pointer:e})}this.setCursor(this.freeDrawingCursor),this._handleEvent(t,\\\\\\\"move\\\\\\\")},_onMouseUpInDrawingMode:function(t){var e=this.getPointer(t);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:t,pointer:e}),this._handleEvent(t,\\\\\\\"up\\\\\\\")},__onMouseDown:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\\\\\"down:before\\\\\\\");var e=this._target;if(r(t,3))this.fireRightClick\\\\u0026\\\\u0026this._handleEvent(t,\\\\\\\"down\\\\\\\",3);else if(r(t,2))this.fireMiddleClick\\\\u0026\\\\u0026this._handleEvent(t,\\\\\\\"down\\\\\\\",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(t);else if(this._isMainEvent(t)\\\\u0026\\\\u0026!this._currentTransform){var i=this._pointer;this._previousPointer=i;var n=this._shouldRender(e),o=this._shouldGroup(t,e);if(this._shouldClearSelection(t,e)?this.discardActiveObject(t):o\\\\u0026\\\\u0026(this._handleGrouping(t,e),e=this._activeObject),!this.selection||e\\\\u0026\\\\u0026(e.selectable||e.isEditing||e===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),e){var s=e===this._activeObject;e.selectable\\\\u0026\\\\u0026\\\\\\\"down\\\\\\\"===e.activeOn\\\\u0026\\\\u0026this.setActiveObject(e,t);var a=e._findTargetCorner(this.getPointer(t,!0),T.util.isTouchEvent(t));if(e.__corner=a,e===this._activeObject\\\\u0026\\\\u0026(a||!o)){this._setupCurrentTransform(t,e,s);var h=e.controls[a],c=(i=this.getPointer(t),h\\\\u0026\\\\u0026h.getMouseDownHandler(t,e,h));c\\\\u0026\\\\u0026c(t,this._currentTransform,i.x,i.y)}}this._handleEvent(t,\\\\\\\"down\\\\\\\"),(n||o)\\\\u0026\\\\u0026this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(t){this._resetTransformEventData(),this._pointer=this.getPointer(t,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(t)||null},_beforeTransform:function(t){var e=this._currentTransform;this.stateful\\\\u0026\\\\u0026e.target.saveState(),this.fire(\\\\\\\"before:transform\\\\\\\",{e:t,transform:e})},__onMouseMove:function(t){var e,i;if(this._handleEvent(t,\\\\\\\"move:before\\\\\\\"),this._cacheTransformEventData(t),this.isDrawingMode)this._onMouseMoveInDrawingMode(t);else if(this._isMainEvent(t)){var r=this._groupSelector;r?(i=this._absolutePointer,r.left=i.x-r.ex,r.top=i.y-r.ey,this.renderTop()):this._currentTransform?this._transformObject(t):(e=this.findTarget(t)||null,this._setCursorFromEvent(t,e),this._fireOverOutEvents(e,t)),this._handleEvent(t,\\\\\\\"move\\\\\\\"),this._resetTransformEventData()}},_fireOverOutEvents:function(t,e){var i=this._hoveredTarget,r=this._hoveredTargets,n=this.targets,o=Math.max(r.length,n.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:i,evtOut:\\\\\\\"mouseout\\\\\\\",canvasEvtOut:\\\\\\\"mouse:out\\\\\\\",evtIn:\\\\\\\"mouseover\\\\\\\",canvasEvtIn:\\\\\\\"mouse:over\\\\\\\"});for(var s=0;s\\\\u003co;s++)this.fireSyntheticInOutEvents(n[s],e,{oldTarget:r[s],evtOut:\\\\\\\"mouseout\\\\\\\",evtIn:\\\\\\\"mouseover\\\\\\\"});this._hoveredTarget=t,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(t,e){var i=this._draggedoverTarget,r=this._hoveredTargets,n=this.targets,o=Math.max(r.length,n.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:i,evtOut:\\\\\\\"dragleave\\\\\\\",evtIn:\\\\\\\"dragenter\\\\\\\"});for(var s=0;s\\\\u003co;s++)this.fireSyntheticInOutEvents(n[s],e,{oldTarget:r[s],evtOut:\\\\\\\"dragleave\\\\\\\",evtIn:\\\\\\\"dragenter\\\\\\\"});this._draggedoverTarget=t},fireSyntheticInOutEvents:function(t,e,i){var r,n,o,s=i.oldTarget,a=s!==t,h=i.canvasEvtIn,c=i.canvasEvtOut;a\\\\u0026\\\\u0026(r={e:e,target:t,previousTarget:s},n={e:e,target:s,nextTarget:t}),o=t\\\\u0026\\\\u0026a,s\\\\u0026\\\\u0026a\\\\u0026\\\\u0026(c\\\\u0026\\\\u0026this.fire(c,n),s.fire(i.evtOut,n)),o\\\\u0026\\\\u0026(h\\\\u0026\\\\u0026this.fire(h,r),t.fire(i.evtIn,r))},__onMouseWheel:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\\\\\"wheel\\\\\\\"),this._resetTransformEventData()},_transformObject:function(t){var e=this.getPointer(t),i=this._currentTransform;i.reset=!1,i.shiftKey=t.shiftKey,i.altKey=t[this.centeredKey],this._performTransformAction(t,i,e),i.actionPerformed\\\\u0026\\\\u0026this.requestRenderAll()},_performTransformAction:function(t,e,i){var r=i.x,n=i.y,o=e.action,s=!1,a=e.actionHandler;a\\\\u0026\\\\u0026(s=a(t,e,r,n)),\\\\\\\"drag\\\\\\\"===o\\\\u0026\\\\u0026s\\\\u0026\\\\u0026(e.target.isMoving=!0,this.setCursor(e.target.moveCursor||this.moveCursor)),e.actionPerformed=e.actionPerformed||s},_fire:T.controlsUtils.fireEvent,_setCursorFromEvent:function(t,e){if(!e)return this.setCursor(this.defaultCursor),!1;var i=e.hoverCursor||this.hoverCursor,r=this._activeObject\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===this._activeObject.type?this._activeObject:null,n=(!r||!r.contains(e))\\\\u0026\\\\u0026e._findTargetCorner(this.getPointer(t,!0));n?this.setCursor(this.getCornerCursor(n,e,t)):(e.subTargetCheck\\\\u0026\\\\u0026this.targets.concat().reverse().map((function(t){i=t.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(t,e,i){var r=e.controls[t];return r.cursorStyleHandler(i,r,e)}})}(),b=Math.min,x=Math.max,T.util.object.extend(T.Canvas.prototype,{_shouldGroup:function(t,e){var i=this._activeObject;return i\\\\u0026\\\\u0026this._isSelectionKeyPressed(t)\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e.selectable\\\\u0026\\\\u0026this.selection\\\\u0026\\\\u0026(i!==e||\\\\\\\"activeSelection\\\\\\\"===i.type)\\\\u0026\\\\u0026!e.onSelect({e:t})},_handleGrouping:function(t,e){var i=this._activeObject;i.__corner||(e!==i||(e=this.findTarget(t,!0))\\\\u0026\\\\u0026e.selectable)\\\\u0026\\\\u0026(i\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===i.type?this._updateActiveSelection(e,t):this._createActiveSelection(e,t))},_updateActiveSelection:function(t,e){var i=this._activeObject,r=i._objects.slice(0);i.contains(t)?(i.removeWithUpdate(t),this._hoveredTarget=t,this._hoveredTargets=this.targets.concat(),1===i.size()\\\\u0026\\\\u0026this._setActiveObject(i.item(0),e)):(i.addWithUpdate(t),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(r,e)},_createActiveSelection:function(t,e){var i=this.getActiveObjects(),r=this._createGroup(t);this._hoveredTarget=r,this._setActiveObject(r,e),this._fireSelectionEvents(i,e)},_createGroup:function(t){var e=this._objects,i=e.indexOf(this._activeObject)\\\\u003ce.indexOf(t)?[this._activeObject,t]:[t,this._activeObject];return this._activeObject.isEditing\\\\u0026\\\\u0026this._activeObject.exitEditing(),new T.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(t){var e,i=this._collectObjects(t);1===i.length?this.setActiveObject(i[0],t):i.length\\\\u003e1\\\\u0026\\\\u0026(e=new T.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(e,t))},_collectObjects:function(t){for(var e,i=[],r=this._groupSelector.ex,n=this._groupSelector.ey,o=r+this._groupSelector.left,s=n+this._groupSelector.top,a=new T.Point(b(r,o),b(n,s)),h=new T.Point(x(r,o),x(n,s)),c=!this.selectionFullyContained,l=r===o\\\\u0026\\\\u0026n===s,u=this._objects.length;u--\\\\u0026\\\\u0026!((e=this._objects[u])\\\\u0026\\\\u0026e.selectable\\\\u0026\\\\u0026e.visible\\\\u0026\\\\u0026(c\\\\u0026\\\\u0026e.intersectsWithRect(a,h,!0)||e.isContainedWithinRect(a,h,!0)||c\\\\u0026\\\\u0026e.containsPoint(a,null,!0)||c\\\\u0026\\\\u0026e.containsPoint(h,null,!0))\\\\u0026\\\\u0026(i.push(e),l)););return i.length\\\\u003e1\\\\u0026\\\\u0026(i=i.filter((function(e){return!e.onSelect({e:t})}))),i},_maybeGroupObjects:function(t){this.selection\\\\u0026\\\\u0026this._groupSelector\\\\u0026\\\\u0026this._groupSelectedObjects(t),this.setCursor(this.defaultCursor),this._groupSelector=null}}),T.util.object.extend(T.StaticCanvas.prototype,{toDataURL:function(t){t||(t={});var e=t.format||\\\\\\\"png\\\\\\\",i=t.quality||1,r=(t.multiplier||1)*(t.enableRetinaScaling?this.getRetinaScaling():1),n=this.toCanvasElement(r,t);return T.util.toDataURL(n,e,i)},toCanvasElement:function(t,e){t=t||1;var i=((e=e||{}).width||this.width)*t,r=(e.height||this.height)*t,n=this.getZoom(),o=this.width,s=this.height,a=n*t,h=this.viewportTransform,c=(h[4]-(e.left||0))*t,l=(h[5]-(e.top||0))*t,u=this.interactive,f=[a,0,0,a,c,l],d=this.enableRetinaScaling,g=T.util.createCanvasElement(),p=this.contextTop;return g.width=i,g.height=r,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=f,this.width=i,this.height=r,this.calcViewportBoundaries(),this.renderCanvas(g.getContext(\\\\\\\"2d\\\\\\\"),this._objects),this.viewportTransform=h,this.width=o,this.height=s,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=d,this.contextTop=p,g}}),T.util.object.extend(T.StaticCanvas.prototype,{loadFromJSON:function(t,e,i){if(t){var r=\\\\\\\"string\\\\\\\"==typeof t?JSON.parse(t):T.util.object.clone(t),n=this,o=r.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete r.clipPath,this._enlivenObjects(r.objects,(function(t){n.clear(),n._setBgOverlay(r,(function(){o?n._enlivenObjects([o],(function(i){n.clipPath=i[0],n.__setupCanvas.call(n,r,t,s,e)})):n.__setupCanvas.call(n,r,t,s,e)}))}),i),this}},__setupCanvas:function(t,e,i,r){var n=this;e.forEach((function(t,e){n.insertAt(t,e)})),this.renderOnAddRemove=i,delete t.objects,delete t.backgroundImage,delete t.overlayImage,delete t.background,delete t.overlay,this._setOptions(t),this.renderAll(),r\\\\u0026\\\\u0026r()},_setBgOverlay:function(t,e){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(t.backgroundImage||t.overlayImage||t.background||t.overlay){var r=function(){i.backgroundImage\\\\u0026\\\\u0026i.overlayImage\\\\u0026\\\\u0026i.backgroundColor\\\\u0026\\\\u0026i.overlayColor\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e()};this.__setBgOverlay(\\\\\\\"backgroundImage\\\\\\\",t.backgroundImage,i,r),this.__setBgOverlay(\\\\\\\"overlayImage\\\\\\\",t.overlayImage,i,r),this.__setBgOverlay(\\\\\\\"backgroundColor\\\\\\\",t.background,i,r),this.__setBgOverlay(\\\\\\\"overlayColor\\\\\\\",t.overlay,i,r)}else e\\\\u0026\\\\u0026e()},__setBgOverlay:function(t,e,i,r){var n=this;if(!e)return i[t]=!0,void(r\\\\u0026\\\\u0026r());\\\\\\\"backgroundImage\\\\\\\"===t||\\\\\\\"overlayImage\\\\\\\"===t?T.util.enlivenObjects([e],(function(e){n[t]=e[0],i[t]=!0,r\\\\u0026\\\\u0026r()})):this[\\\\\\\"set\\\\\\\"+T.util.string.capitalize(t,!0)](e,(function(){i[t]=!0,r\\\\u0026\\\\u0026r()}))},_enlivenObjects:function(t,e,i){t\\\\u0026\\\\u00260!==t.length?T.util.enlivenObjects(t,(function(t){e\\\\u0026\\\\u0026e(t)}),null,i):e\\\\u0026\\\\u0026e([])},_toDataURL:function(t,e){this.clone((function(i){e(i.toDataURL(t))}))},_toDataURLWithMultiplier:function(t,e,i){this.clone((function(r){i(r.toDataURLWithMultiplier(t,e))}))},clone:function(t,e){var i=JSON.stringify(this.toJSON(e));this.cloneWithoutData((function(e){e.loadFromJSON(i,(function(){t\\\\u0026\\\\u0026t(e)}))}))},cloneWithoutData:function(t){var e=T.util.createCanvasElement();e.width=this.width,e.height=this.height;var i=new T.Canvas(e);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),t\\\\u0026\\\\u0026t(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):t\\\\u0026\\\\u0026t(i)}}),C=T.util.degreesToRadians,w=T.util.radiansToDegrees,T.util.object.extend(T.Canvas.prototype,{__onTransformGesture:function(t,e){if(!this.isDrawingMode\\\\u0026\\\\u0026t.touches\\\\u0026\\\\u00262===t.touches.length\\\\u0026\\\\u0026\\\\\\\"gesture\\\\\\\"===e.gesture){var i=this.findTarget(t);void 0!==i\\\\u0026\\\\u0026(this.__gesturesParams={e:t,self:e,target:i},this.__gesturesRenderer()),this.fire(\\\\\\\"touch:gesture\\\\\\\",{target:i,e:t,self:e})}},__gesturesParams:null,__gesturesRenderer:function(){if(null!==this.__gesturesParams\\\\u0026\\\\u0026null!==this._currentTransform){var t=this.__gesturesParams.self,e=this._currentTransform,i=this.__gesturesParams.e;e.action=\\\\\\\"scale\\\\\\\",e.originX=e.originY=\\\\\\\"center\\\\\\\",this._scaleObjectBy(t.scale,i),0!==t.rotation\\\\u0026\\\\u0026(e.action=\\\\\\\"rotate\\\\\\\",this._rotateObjectByAngle(t.rotation,i)),this.requestRenderAll(),e.action=\\\\\\\"drag\\\\\\\"}},__onDrag:function(t,e){this.fire(\\\\\\\"touch:drag\\\\\\\",{e:t,self:e})},__onOrientationChange:function(t,e){this.fire(\\\\\\\"touch:orientation\\\\\\\",{e:t,self:e})},__onShake:function(t,e){this.fire(\\\\\\\"touch:shake\\\\\\\",{e:t,self:e})},__onLongPress:function(t,e){this.fire(\\\\\\\"touch:longpress\\\\\\\",{e:t,self:e})},_scaleObjectBy:function(t,e){var i=this._currentTransform,r=i.target;return i.gestureScale=t,r._scaling=!0,T.controlsUtils.scalingEqually(e,i,0,0)},_rotateObjectByAngle:function(t,e){var i=this._currentTransform;i.target.get(\\\\\\\"lockRotation\\\\\\\")||(i.target.rotate(w(C(t)+i.theta)),this._fire(\\\\\\\"rotating\\\\\\\",{target:i.target,e:e,transform:i}))}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n=e.util.toFixed,o=e.util.string.capitalize,s=e.util.degreesToRadians,a=!e.isLikelyNode;e.Object||(e.Object=e.util.createClass(e.CommonMethods,{type:\\\\\\\"object\\\\\\\",originX:\\\\\\\"left\\\\\\\",originY:\\\\\\\"top\\\\\\\",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:\\\\\\\"rgb(178,204,255)\\\\\\\",borderDashArray:null,cornerColor:\\\\\\\"rgb(178,204,255)\\\\\\\",cornerStrokeColor:null,cornerStyle:\\\\\\\"rect\\\\\\\",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:\\\\\\\"rgb(0,0,0)\\\\\\\",fillRule:\\\\\\\"nonzero\\\\\\\",globalCompositeOperation:\\\\\\\"source-over\\\\\\\",backgroundColor:\\\\\\\"\\\\\\\",selectionBackgroundColor:\\\\\\\"\\\\\\\",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:\\\\\\\"butt\\\\\\\",strokeLineJoin:\\\\\\\"miter\\\\\\\",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:\\\\\\\"fill\\\\\\\",activeOn:\\\\\\\"down\\\\\\\",stateProperties:\\\\\\\"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform\\\\\\\".split(\\\\\\\" \\\\\\\"),cacheProperties:\\\\\\\"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath\\\\\\\".split(\\\\\\\" \\\\\\\"),colorProperties:\\\\\\\"fill stroke backgroundColor\\\\\\\".split(\\\\\\\" \\\\\\\"),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(t){t\\\\u0026\\\\u0026this.setOptions(t)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=e.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext(\\\\\\\"2d\\\\\\\"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(t){var i=e.perfLimitSizeTotal,r=t.width,n=t.height,o=e.maxCacheSideLimit,s=e.minCacheSideLimit;if(r\\\\u003c=o\\\\u0026\\\\u0026n\\\\u003c=o\\\\u0026\\\\u0026r*n\\\\u003c=i)return r\\\\u003cs\\\\u0026\\\\u0026(t.width=s),n\\\\u003cs\\\\u0026\\\\u0026(t.height=s),t;var a=r/n,h=e.util.limitDimsByArea(a,i),c=e.util.capValue,l=c(s,h.x,o),u=c(s,h.y,o);return r\\\\u003el\\\\u0026\\\\u0026(t.zoomX/=r/l,t.width=l,t.capped=!0),n\\\\u003eu\\\\u0026\\\\u0026(t.zoomY/=n/u,t.height=u,t.capped=!0),t},_getCacheCanvasDimensions:function(){var t=this.getTotalObjectScaling(),e=this._getTransformedDimensions(0,0),i=e.x*t.scaleX/this.scaleX,r=e.y*t.scaleY/this.scaleY;return{width:i+2,height:r+2,zoomX:t.scaleX,zoomY:t.scaleY,x:i,y:r}},_updateCacheCanvas:function(){var t=this.canvas;if(this.noScaleCache\\\\u0026\\\\u0026t\\\\u0026\\\\u0026t._currentTransform){var i=t._currentTransform.target,r=t._currentTransform.action;if(this===i\\\\u0026\\\\u0026r.slice\\\\u0026\\\\u0026\\\\\\\"scale\\\\\\\"===r.slice(0,5))return!1}var n,o,s=this._cacheCanvas,a=this._limitCacheSize(this._getCacheCanvasDimensions()),h=e.minCacheSideLimit,c=a.width,l=a.height,u=a.zoomX,f=a.zoomY,d=c!==this.cacheWidth||l!==this.cacheHeight,g=this.zoomX!==u||this.zoomY!==f,p=d||g,v=0,m=0,y=!1;if(d){var _=this._cacheCanvas.width,b=this._cacheCanvas.height,x=c\\\\u003e_||l\\\\u003eb;y=x||(c\\\\u003c.9*_||l\\\\u003c.9*b)\\\\u0026\\\\u0026_\\\\u003eh\\\\u0026\\\\u0026b\\\\u003eh,x\\\\u0026\\\\u0026!a.capped\\\\u0026\\\\u0026(c\\\\u003eh||l\\\\u003eh)\\\\u0026\\\\u0026(v=.1*c,m=.1*l)}return this instanceof e.Text\\\\u0026\\\\u0026this.path\\\\u0026\\\\u0026(p=!0,y=!0,v+=this.getHeightOfLine(0)*this.zoomX,m+=this.getHeightOfLine(0)*this.zoomY),!!p\\\\u0026\\\\u0026(y?(s.width=Math.ceil(c+v),s.height=Math.ceil(l+m)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,s.width,s.height)),n=a.x/2,o=a.y/2,this.cacheTranslationX=Math.round(s.width/2-n)+n,this.cacheTranslationY=Math.round(s.height/2-o)+o,this.cacheWidth=c,this.cacheHeight=l,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(u,f),this.zoomX=u,this.zoomY=f,!0)},setOptions:function(t){this._setOptions(t),this._initGradient(t.fill,\\\\\\\"fill\\\\\\\"),this._initGradient(t.stroke,\\\\\\\"stroke\\\\\\\"),this._initPattern(t.fill,\\\\\\\"fill\\\\\\\"),this._initPattern(t.stroke,\\\\\\\"stroke\\\\\\\")},transform:function(t){var e=this.group\\\\u0026\\\\u0026!this.group._transformDone||this.group\\\\u0026\\\\u0026this.canvas\\\\u0026\\\\u0026t===this.canvas.contextTop,i=this.calcTransformMatrix(!e);t.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(t){var i=e.Object.NUM_FRACTION_DIGITS,r={type:this.type,version:e.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill\\\\u0026\\\\u0026this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke\\\\u0026\\\\u0026this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow\\\\u0026\\\\u0026this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath\\\\u0026\\\\u0026!this.clipPath.excludeFromExport\\\\u0026\\\\u0026(r.clipPath=this.clipPath.toObject(t),r.clipPath.inverted=this.clipPath.inverted,r.clipPath.absolutePositioned=this.clipPath.absolutePositioned),e.util.populateWithProperties(this,r,t),this.includeDefaultValues||(r=this._removeDefaultValues(r)),r},toDatalessObject:function(t){return this.toObject(t)},_removeDefaultValues:function(t){var i=e.util.getKlass(t.type).prototype;return i.stateProperties.forEach((function(e){\\\\\\\"left\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"top\\\\\\\"!==e\\\\u0026\\\\u0026(t[e]===i[e]\\\\u0026\\\\u0026delete t[e],\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(t[e])\\\\u0026\\\\u0026\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(i[e])\\\\u0026\\\\u00260===t[e].length\\\\u0026\\\\u00260===i[e].length\\\\u0026\\\\u0026delete t[e])})),t},toString:function(){return\\\\\\\"#\\\\u003cfabric.\\\\\\\"+o(this.type)+\\\\\\\"\\\\u003e\\\\\\\"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var t=e.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(t.scaleX),scaleY:Math.abs(t.scaleY)}},getTotalObjectScaling:function(){var t=this.getObjectScaling(),e=t.scaleX,i=t.scaleY;if(this.canvas){var r=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();e*=r*n,i*=r*n}return{scaleX:e,scaleY:i}},getObjectOpacity:function(){var t=this.opacity;return this.group\\\\u0026\\\\u0026(t*=this.group.getObjectOpacity()),t},_set:function(t,i){var r=\\\\\\\"scaleX\\\\\\\"===t||\\\\\\\"scaleY\\\\\\\"===t,n=this[t]!==i,o=!1;return r\\\\u0026\\\\u0026(i=this._constrainScale(i)),\\\\\\\"scaleX\\\\\\\"===t\\\\u0026\\\\u0026i\\\\u003c0?(this.flipX=!this.flipX,i*=-1):\\\\\\\"scaleY\\\\\\\"===t\\\\u0026\\\\u0026i\\\\u003c0?(this.flipY=!this.flipY,i*=-1):\\\\\\\"shadow\\\\\\\"!==t||!i||i instanceof e.Shadow?\\\\\\\"dirty\\\\\\\"===t\\\\u0026\\\\u0026this.group\\\\u0026\\\\u0026this.group.set(\\\\\\\"dirty\\\\\\\",i):i=new e.Shadow(i),this[t]=i,n\\\\u0026\\\\u0026(o=this.group\\\\u0026\\\\u0026this.group.isOnACache(),this.cacheProperties.indexOf(t)\\\\u003e-1?(this.dirty=!0,o\\\\u0026\\\\u0026this.group.set(\\\\\\\"dirty\\\\\\\",!0)):o\\\\u0026\\\\u0026this.stateProperties.indexOf(t)\\\\u003e-1\\\\u0026\\\\u0026this.group.set(\\\\\\\"dirty\\\\\\\",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.viewportTransform?this.canvas.viewportTransform:e.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width\\\\u0026\\\\u0026!this.height\\\\u0026\\\\u00260===this.strokeWidth||!this.visible},render:function(t){this.isNotVisible()||this.canvas\\\\u0026\\\\u0026this.canvas.skipOffscreen\\\\u0026\\\\u0026!this.group\\\\u0026\\\\u0026!this.isOnScreen()||(t.save(),this._setupCompositeOperation(t),this.drawSelectionBackground(t),this.transform(t),this._setOpacity(t),this._setShadow(t,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(t)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(t),this.objectCaching\\\\u0026\\\\u0026this.statefullCache\\\\u0026\\\\u0026this.saveState({propertySet:\\\\\\\"cacheProperties\\\\\\\"})),t.restore())},renderCache:function(t){t=t||{},this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()\\\\u0026\\\\u0026(this.statefullCache\\\\u0026\\\\u0026this.saveState({propertySet:\\\\\\\"cacheProperties\\\\\\\"}),this.drawObject(this._cacheContext,t.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke\\\\u0026\\\\u0026\\\\\\\"transparent\\\\\\\"!==this.stroke\\\\u0026\\\\u00260!==this.strokeWidth},hasFill:function(){return this.fill\\\\u0026\\\\u0026\\\\\\\"transparent\\\\\\\"!==this.fill},needsItsOwnCache:function(){return!(\\\\\\\"stroke\\\\\\\"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||\\\\\\\"object\\\\\\\"!=typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching\\\\u0026\\\\u0026(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow\\\\u0026\\\\u0026(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(t){var i=this.clipPath;if(t.save(),i.inverted?t.globalCompositeOperation=\\\\\\\"destination-out\\\\\\\":t.globalCompositeOperation=\\\\\\\"destination-in\\\\\\\",i.absolutePositioned){var r=e.util.invertTransform(this.calcTransformMatrix());t.transform(r[0],r[1],r[2],r[3],r[4],r[5])}i.transform(t),t.scale(1/i.zoomX,1/i.zoomY),t.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),t.restore()},drawObject:function(t,e){var i=this.fill,r=this.stroke;e?(this.fill=\\\\\\\"black\\\\\\\",this.stroke=\\\\\\\"\\\\\\\",this._setClippingProperties(t)):this._renderBackground(t),this._render(t),this._drawClipPath(t),this.fill=i,this.stroke=r},_drawClipPath:function(t){var e=this.clipPath;e\\\\u0026\\\\u0026(e.canvas=this.canvas,e.shouldCache(),e._transformDone=!0,e.renderCache({forClipping:!0}),this.drawClipPathOnCache(t))},drawCacheOnCanvas:function(t){t.scale(1/this.zoomX,1/this.zoomY),t.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(t){if(this.isNotVisible())return!1;if(this._cacheCanvas\\\\u0026\\\\u0026!t\\\\u0026\\\\u0026this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath\\\\u0026\\\\u0026this.clipPath.absolutePositioned||this.statefullCache\\\\u0026\\\\u0026this.hasStateChanged(\\\\\\\"cacheProperties\\\\\\\")){if(this._cacheCanvas\\\\u0026\\\\u0026!t){var e=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-e/2,-i/2,e,i)}return!0}return!1},_renderBackground:function(t){if(this.backgroundColor){var e=this._getNonTransformedDimensions();t.fillStyle=this.backgroundColor,t.fillRect(-e.x/2,-e.y/2,e.x,e.y),this._removeShadow(t)}},_setOpacity:function(t){this.group\\\\u0026\\\\u0026!this.group._transformDone?t.globalAlpha=this.getObjectOpacity():t.globalAlpha*=this.opacity},_setStrokeStyles:function(t,e){var i=e.stroke;i\\\\u0026\\\\u0026(t.lineWidth=e.strokeWidth,t.lineCap=e.strokeLineCap,t.lineDashOffset=e.strokeDashOffset,t.lineJoin=e.strokeLineJoin,t.miterLimit=e.strokeMiterLimit,i.toLive?\\\\\\\"percentage\\\\\\\"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(t,i):(t.strokeStyle=i.toLive(t,this),this._applyPatternGradientTransform(t,i)):t.strokeStyle=e.stroke)},_setFillStyles:function(t,e){var i=e.fill;i\\\\u0026\\\\u0026(i.toLive?(t.fillStyle=i.toLive(t,this),this._applyPatternGradientTransform(t,e.fill)):t.fillStyle=i)},_setClippingProperties:function(t){t.globalAlpha=1,t.strokeStyle=\\\\\\\"transparent\\\\\\\",t.fillStyle=\\\\\\\"#000000\\\\\\\"},_setLineDash:function(t,e){e\\\\u0026\\\\u00260!==e.length\\\\u0026\\\\u0026(1\\\\u0026e.length\\\\u0026\\\\u0026e.push.apply(e,e),t.setLineDash(e))},_renderControls:function(t,i){var r,n,o,a=this.getViewportTransform(),h=this.calcTransformMatrix();n=void 0!==(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,o=void 0!==i.hasControls?i.hasControls:this.hasControls,h=e.util.multiplyTransformMatrices(a,h),r=e.util.qrDecompose(h),t.save(),t.translate(r.translateX,r.translateY),t.lineWidth=1*this.borderScaleFactor,this.group||(t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),t.rotate(s(r.angle)),i.forActiveSelection||this.group?n\\\\u0026\\\\u0026this.drawBordersInGroup(t,r,i):n\\\\u0026\\\\u0026this.drawBorders(t,i),o\\\\u0026\\\\u0026this.drawControls(t,i),t.restore()},_setShadow:function(t){if(this.shadow){var i,r=this.shadow,n=this.canvas,o=n\\\\u0026\\\\u0026n.viewportTransform[0]||1,s=n\\\\u0026\\\\u0026n.viewportTransform[3]||1;i=r.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n\\\\u0026\\\\u0026n._isRetinaScaling()\\\\u0026\\\\u0026(o*=e.devicePixelRatio,s*=e.devicePixelRatio),t.shadowColor=r.color,t.shadowBlur=r.blur*e.browserShadowBlurConstant*(o+s)*(i.scaleX+i.scaleY)/4,t.shadowOffsetX=r.offsetX*o*i.scaleX,t.shadowOffsetY=r.offsetY*s*i.scaleY}},_removeShadow:function(t){this.shadow\\\\u0026\\\\u0026(t.shadowColor=\\\\\\\"\\\\\\\",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0)},_applyPatternGradientTransform:function(t,e){if(!e||!e.toLive)return{offsetX:0,offsetY:0};var i=e.gradientTransform||e.patternTransform,r=-this.width/2+e.offsetX||0,n=-this.height/2+e.offsetY||0;return\\\\\\\"percentage\\\\\\\"===e.gradientUnits?t.transform(this.width,0,0,this.height,r,n):t.transform(1,0,0,1,r,n),i\\\\u0026\\\\u0026t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:r,offsetY:n}},_renderPaintInOrder:function(t){\\\\\\\"stroke\\\\\\\"===this.paintFirst?(this._renderStroke(t),this._renderFill(t)):(this._renderFill(t),this._renderStroke(t))},_render:function(){},_renderFill:function(t){this.fill\\\\u0026\\\\u0026(t.save(),this._setFillStyles(t,this),\\\\\\\"evenodd\\\\\\\"===this.fillRule?t.fill(\\\\\\\"evenodd\\\\\\\"):t.fill(),t.restore())},_renderStroke:function(t){if(this.stroke\\\\u0026\\\\u00260!==this.strokeWidth){if(this.shadow\\\\u0026\\\\u0026!this.shadow.affectStroke\\\\u0026\\\\u0026this._removeShadow(t),t.save(),this.strokeUniform\\\\u0026\\\\u0026this.group){var e=this.getObjectScaling();t.scale(1/e.scaleX,1/e.scaleY)}else this.strokeUniform\\\\u0026\\\\u0026t.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(t,this.strokeDashArray),this._setStrokeStyles(t,this),t.stroke(),t.restore()}},_applyPatternForTransformedGradient:function(t,i){var r,n=this._limitCacheSize(this._getCacheCanvasDimensions()),o=e.util.createCanvasElement(),s=this.canvas.getRetinaScaling(),a=n.x/this.scaleX/s,h=n.y/this.scaleY/s;o.width=a,o.height=h,(r=o.getContext(\\\\\\\"2d\\\\\\\")).beginPath(),r.moveTo(0,0),r.lineTo(a,0),r.lineTo(a,h),r.lineTo(0,h),r.closePath(),r.translate(a/2,h/2),r.scale(n.zoomX/this.scaleX/s,n.zoomY/this.scaleY/s),this._applyPatternGradientTransform(r,i),r.fillStyle=i.toLive(t),r.fill(),t.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),t.scale(s*this.scaleX/n.zoomX,s*this.scaleY/n.zoomY),t.strokeStyle=r.createPattern(o,\\\\\\\"no-repeat\\\\\\\")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var t=e.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set(\\\\\\\"scaleX\\\\\\\",t.scaleX),this.set(\\\\\\\"scaleY\\\\\\\",t.scaleY),this.angle=t.angle,this.skewX=t.skewX,this.skewY=0}},_removeTransformMatrix:function(t){var i=this._findCenterFromElement();this.transformMatrix\\\\u0026\\\\u0026(this._assignTransformMatrixProps(),i=e.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,t\\\\u0026\\\\u0026(this.scaleX*=t.scaleX,this.scaleY*=t.scaleY,this.cropX=t.cropX,this.cropY=t.cropY,i.x+=t.offsetLeft,i.y+=t.offsetTop,this.width=t.width,this.height=t.height),this.setPositionByOrigin(i,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\")},clone:function(t,i){var r=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(r,t):e.Object._fromObject(\\\\\\\"Object\\\\\\\",r,t)},cloneAsImage:function(t,i){var r=this.toCanvasElement(i);return t\\\\u0026\\\\u0026t(new e.Image(r)),this},toCanvasElement:function(t){t||(t={});var i=e.util,r=i.saveObjectTransform(this),n=this.group,o=this.shadow,s=Math.abs,a=(t.multiplier||1)*(t.enableRetinaScaling?e.devicePixelRatio:1);delete this.group,t.withoutTransform\\\\u0026\\\\u0026i.resetObjectTransform(this),t.withoutShadow\\\\u0026\\\\u0026(this.shadow=null);var h,c,l,u,f=e.util.createCanvasElement(),d=this.getBoundingRect(!0,!0),g=this.shadow,p={x:0,y:0};g\\\\u0026\\\\u0026(c=g.blur,h=g.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),p.x=2*Math.round(s(g.offsetX)+c)*s(h.scaleX),p.y=2*Math.round(s(g.offsetY)+c)*s(h.scaleY)),l=d.width+p.x,u=d.height+p.y,f.width=Math.ceil(l),f.height=Math.ceil(u);var v=new e.StaticCanvas(f,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});\\\\\\\"jpeg\\\\\\\"===t.format\\\\u0026\\\\u0026(v.backgroundColor=\\\\\\\"#fff\\\\\\\"),this.setPositionByOrigin(new e.Point(v.width/2,v.height/2),\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\");var m=this.canvas;v.add(this);var y=v.toCanvasElement(a||1,t);return this.shadow=o,this.set(\\\\\\\"canvas\\\\\\\",m),n\\\\u0026\\\\u0026(this.group=n),this.set(r).setCoords(),v._objects=[],v.dispose(),v=null,y},toDataURL:function(t){return t||(t={}),e.util.toDataURL(this.toCanvasElement(t),t.format||\\\\\\\"png\\\\\\\",t.quality||1)},isType:function(t){return this.type===t},complexity:function(){return 1},toJSON:function(t){return this.toObject(t)},rotate:function(t){var e=(\\\\\\\"center\\\\\\\"!==this.originX||\\\\\\\"center\\\\\\\"!==this.originY)\\\\u0026\\\\u0026this.centeredRotation;return e\\\\u0026\\\\u0026this._setOriginToCenter(),this.set(\\\\\\\"angle\\\\\\\",t),e\\\\u0026\\\\u0026this._resetOrigin(),this},centerH:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.viewportCenterObject(this),this},getLocalPointer:function(t,i){i=i||this.canvas.getPointer(t);var r=new e.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle\\\\u0026\\\\u0026(r=e.util.rotatePoint(r,n,s(-this.angle))),{x:r.x-n.x,y:r.y-n.y}},_setupCompositeOperation:function(t){this.globalCompositeOperation\\\\u0026\\\\u0026(t.globalCompositeOperation=this.globalCompositeOperation)}}),e.util.createAccessors\\\\u0026\\\\u0026e.util.createAccessors(e.Object),i(e.Object.prototype,e.Observable),e.Object.NUM_FRACTION_DIGITS=2,e.Object._fromObject=function(t,i,n,o){var s=e[t];i=r(i,!0),e.util.enlivenPatterns([i.fill,i.stroke],(function(t){void 0!==t[0]\\\\u0026\\\\u0026(i.fill=t[0]),void 0!==t[1]\\\\u0026\\\\u0026(i.stroke=t[1]),e.util.enlivenObjects([i.clipPath],(function(t){i.clipPath=t[0];var e=o?new s(i[o],i):new s(i);n\\\\u0026\\\\u0026n(e)}))}))},e.Object.__uid=0)}(t),function(){var t=T.util.degreesToRadians,e={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};T.util.object.extend(T.Object.prototype,{translateToGivenOrigin:function(t,r,n,o,s){var a,h,c,l=t.x,u=t.y;return\\\\\\\"string\\\\\\\"==typeof r?r=e[r]:r-=.5,\\\\\\\"string\\\\\\\"==typeof o?o=e[o]:o-=.5,\\\\\\\"string\\\\\\\"==typeof n?n=i[n]:n-=.5,\\\\\\\"string\\\\\\\"==typeof s?s=i[s]:s-=.5,h=s-n,((a=o-r)||h)\\\\u0026\\\\u0026(c=this._getTransformedDimensions(),l=t.x+a*c.x,u=t.y+h*c.y),new T.Point(l,u)},translateToCenterPoint:function(e,i,r){var n=this.translateToGivenOrigin(e,i,r,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\");return this.angle?T.util.rotatePoint(n,e,t(this.angle)):n},translateToOriginPoint:function(e,i,r){var n=this.translateToGivenOrigin(e,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\",i,r);return this.angle?T.util.rotatePoint(n,e,t(this.angle)):n},getCenterPoint:function(){var t=new T.Point(this.left,this.top);return this.translateToCenterPoint(t,this.originX,this.originY)},getPointByOrigin:function(t,e){var i=this.getCenterPoint();return this.translateToOriginPoint(i,t,e)},toLocalPoint:function(e,i,r){var n,o,s=this.getCenterPoint();return n=void 0!==i\\\\u0026\\\\u0026void 0!==r?this.translateToGivenOrigin(s,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\",i,r):new T.Point(this.left,this.top),o=new T.Point(e.x,e.y),this.angle\\\\u0026\\\\u0026(o=T.util.rotatePoint(o,s,-t(this.angle))),o.subtractEquals(n)},setPositionByOrigin:function(t,e,i){var r=this.translateToCenterPoint(t,e,i),n=this.translateToOriginPoint(r,this.originX,this.originY);this.set(\\\\\\\"left\\\\\\\",n.x),this.set(\\\\\\\"top\\\\\\\",n.y)},adjustPosition:function(i){var r,n,o=t(this.angle),s=this.getScaledWidth(),a=T.util.cos(o)*s,h=T.util.sin(o)*s;r=\\\\\\\"string\\\\\\\"==typeof this.originX?e[this.originX]:this.originX-.5,n=\\\\\\\"string\\\\\\\"==typeof i?e[i]:i-.5,this.left+=a*(n-r),this.top+=h*(n-r),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var t=this.getCenterPoint();this.originX=\\\\\\\"center\\\\\\\",this.originY=\\\\\\\"center\\\\\\\",this.left=t.x,this.top=t.y},_resetOrigin:function(){var t=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=t.x,this.top=t.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),\\\\\\\"left\\\\\\\",\\\\\\\"top\\\\\\\")}})}(),function(){var t=T.util,e=t.degreesToRadians,i=t.multiplyTransformMatrices,r=t.transformPoint;t.object.extend(T.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(t,e){return e?t?this.calcACoords():this.calcLineCoords():(this.aCoords\\\\u0026\\\\u0026this.lineCoords||this.setCoords(!0),t?this.aCoords:this.lineCoords)},getCoords:function(t,e){return i=this._getCoords(t,e),[new T.Point(i.tl.x,i.tl.y),new T.Point(i.tr.x,i.tr.y),new T.Point(i.br.x,i.br.y),new T.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(t,e,i,r){var n=this.getCoords(i,r);return\\\\\\\"Intersection\\\\\\\"===T.Intersection.intersectPolygonRectangle(n,t,e).status},intersectsWithObject:function(t,e,i){return\\\\\\\"Intersection\\\\\\\"===T.Intersection.intersectPolygonPolygon(this.getCoords(e,i),t.getCoords(e,i)).status||t.isContainedWithinObject(this,e,i)||this.isContainedWithinObject(t,e,i)},isContainedWithinObject:function(t,e,i){for(var r=this.getCoords(e,i),n=e?t.aCoords:t.lineCoords,o=0,s=t._getImageLines(n);o\\\\u003c4;o++)if(!t.containsPoint(r[o],s))return!1;return!0},isContainedWithinRect:function(t,e,i,r){var n=this.getBoundingRect(i,r);return n.left\\\\u003e=t.x\\\\u0026\\\\u0026n.left+n.width\\\\u003c=e.x\\\\u0026\\\\u0026n.top\\\\u003e=t.y\\\\u0026\\\\u0026n.top+n.height\\\\u003c=e.y},containsPoint:function(t,e,i,r){var n=this._getCoords(i,r),o=(e=e||this._getImageLines(n),this._findCrossPoints(t,e));return 0!==o\\\\u0026\\\\u0026o%2==1},isOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,t).some((function(t){return t.x\\\\u003c=i.x\\\\u0026\\\\u0026t.x\\\\u003e=e.x\\\\u0026\\\\u0026t.y\\\\u003c=i.y\\\\u0026\\\\u0026t.y\\\\u003e=e.y}))||(!!this.intersectsWithRect(e,i,!0,t)||this._containsCenterOfCanvas(e,i,t))},_containsCenterOfCanvas:function(t,e,i){var r={x:(t.x+e.x)/2,y:(t.y+e.y)/2};return!!this.containsPoint(r,null,!0,i)},isPartiallyOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(e,i,!0,t)||this.getCoords(!0,t).every((function(t){return(t.x\\\\u003e=i.x||t.x\\\\u003c=e.x)\\\\u0026\\\\u0026(t.y\\\\u003e=i.y||t.y\\\\u003c=e.y)}))\\\\u0026\\\\u0026this._containsCenterOfCanvas(e,i,t)},_getImageLines:function(t){return{topline:{o:t.tl,d:t.tr},rightline:{o:t.tr,d:t.br},bottomline:{o:t.br,d:t.bl},leftline:{o:t.bl,d:t.tl}}},_findCrossPoints:function(t,e){var i,r,n,o=0;for(var s in e)if(!((n=e[s]).o.y\\\\u003ct.y\\\\u0026\\\\u0026n.d.y\\\\u003ct.y||n.o.y\\\\u003e=t.y\\\\u0026\\\\u0026n.d.y\\\\u003e=t.y||(n.o.x===n.d.x\\\\u0026\\\\u0026n.o.x\\\\u003e=t.x?r=n.o.x:(0,i=(n.d.y-n.o.y)/(n.d.x-n.o.x),r=-(t.y-0*t.x-(n.o.y-i*n.o.x))/(0-i)),r\\\\u003e=t.x\\\\u0026\\\\u0026(o+=1),2!==o)))break;return o},getBoundingRect:function(e,i){var r=this.getCoords(e,i);return t.makeBoundingBoxFromPoints(r)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(t){return Math.abs(t)\\\\u003cthis.minScaleLimit?t\\\\u003c0?-this.minScaleLimit:this.minScaleLimit:0===t?1e-4:t},scale:function(t){return this._set(\\\\\\\"scaleX\\\\\\\",t),this._set(\\\\\\\"scaleY\\\\\\\",t),this.setCoords()},scaleToWidth:function(t,e){var i=this.getBoundingRect(e).width/this.getScaledWidth();return this.scale(t/this.width/i)},scaleToHeight:function(t,e){var i=this.getBoundingRect(e).height/this.getScaledHeight();return this.scale(t/this.height/i)},calcCoords:function(t){return t?this.calcACoords():this.calcOCoords()},calcLineCoords:function(){var i=this.getViewportTransform(),n=this.padding,o=e(this.angle),s=t.cos(o)*n,a=t.sin(o)*n,h=s+a,c=s-a,l=this.calcACoords(),u={tl:r(l.tl,i),tr:r(l.tr,i),bl:r(l.bl,i),br:r(l.br,i)};return n\\\\u0026\\\\u0026(u.tl.x-=c,u.tl.y-=h,u.tr.x+=h,u.tr.y-=c,u.bl.x-=h,u.bl.y+=c,u.br.x+=c,u.br.y+=h),u},calcOCoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),r=this.getViewportTransform(),n=i(r,e),o=i(n,t),s=(o=i(o,[1/r[0],0,0,1/r[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(t,e,i){a[e]=t.positionHandler(s,o,i)})),a},calcACoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),n=i(e,t),o=this._getTransformedDimensions(),s=o.x/2,a=o.y/2;return{tl:r({x:-s,y:-a},n),tr:r({x:s,y:-a},n),bl:r({x:-s,y:a},n),br:r({x:s,y:a},n)}},setCoords:function(t){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),t||(this.oCoords=this.calcOCoords(),this._setCornerCoords\\\\u0026\\\\u0026this._setCornerCoords()),this},_calcRotateMatrix:function(){return t.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var t=this.getCenterPoint();return[1,0,0,1,t.x,t.y]},transformMatrixKey:function(t){var e=\\\\\\\"_\\\\\\\",i=\\\\\\\"\\\\\\\";return!t\\\\u0026\\\\u0026this.group\\\\u0026\\\\u0026(i=this.group.transformMatrixKey(t)+e),i+this.top+e+this.left+e+this.scaleX+e+this.scaleY+e+this.skewX+e+this.skewY+e+this.angle+e+this.originX+e+this.originY+e+this.width+e+this.height+e+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(t){var e=this.calcOwnMatrix();if(t||!this.group)return e;var r=this.transformMatrixKey(t),n=this.matrixCache||(this.matrixCache={});return n.key===r?n.value:(this.group\\\\u0026\\\\u0026(e=i(this.group.calcTransformMatrix(!1),e)),n.key=r,n.value=e,e)},calcOwnMatrix:function(){var e=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===e)return i.value;var r=this._calcTranslateMatrix(),n={angle:this.angle,translateX:r[4],translateY:r[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=e,i.value=t.composeMatrix(n),i.value},_calcDimensionsTransformMatrix:function(e,i,r){return t.calcDimensionsMatrix({skewX:e,skewY:i,scaleX:this.scaleX*(r\\\\u0026\\\\u0026this.flipX?-1:1),scaleY:this.scaleY*(r\\\\u0026\\\\u0026this.flipY?-1:1)})},_getNonTransformedDimensions:function(){var t=this.strokeWidth;return{x:this.width+t,y:this.height+t}},_getTransformedDimensions:function(e,i){void 0===e\\\\u0026\\\\u0026(e=this.skewX),void 0===i\\\\u0026\\\\u0026(i=this.skewY);var r,n,o,s=0===e\\\\u0026\\\\u00260===i;if(this.strokeUniform?(n=this.width,o=this.height):(n=(r=this._getNonTransformedDimensions()).x,o=r.y),s)return this._finalizeDimensions(n*this.scaleX,o*this.scaleY);var a=t.sizeAfterTransform(n,o,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:e,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(t,e){return this.strokeUniform?{x:t+this.strokeWidth,y:e+this.strokeWidth}:{x:t,y:e}},_calculateCurrentDimensions:function(){var t=this.getViewportTransform(),e=this._getTransformedDimensions();return r(e,t,!0).scalarAdd(2*this.padding)}})}(),T.util.object.extend(T.Object.prototype,{sendToBack:function(){return this.group?T.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas\\\\u0026\\\\u0026this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?T.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas\\\\u0026\\\\u0026this.canvas.bringToFront(this),this},sendBackwards:function(t){return this.group?T.StaticCanvas.prototype.sendBackwards.call(this.group,this,t):this.canvas\\\\u0026\\\\u0026this.canvas.sendBackwards(this,t),this},bringForward:function(t){return this.group?T.StaticCanvas.prototype.bringForward.call(this.group,this,t):this.canvas\\\\u0026\\\\u0026this.canvas.bringForward(this,t),this},moveTo:function(t){return this.group\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"!==this.group.type?T.StaticCanvas.prototype.moveTo.call(this.group,this,t):this.canvas\\\\u0026\\\\u0026this.canvas.moveTo(this,t),this}}),function(){function t(t,e){if(e){if(e.toLive)return t+\\\\\\\": url(#SVGID_\\\\\\\"+e.id+\\\\\\\"); \\\\\\\";var i=new T.Color(e),r=t+\\\\\\\": \\\\\\\"+i.toRgb()+\\\\\\\"; \\\\\\\",n=i.getAlpha();return 1!==n\\\\u0026\\\\u0026(r+=t+\\\\\\\"-opacity: \\\\\\\"+n.toString()+\\\\\\\"; \\\\\\\"),r}return t+\\\\\\\": none; \\\\\\\"}var e=T.util.toFixed;T.util.object.extend(T.Object.prototype,{getSvgStyles:function(e){var i=this.fillRule?this.fillRule:\\\\\\\"nonzero\\\\\\\",r=this.strokeWidth?this.strokeWidth:\\\\\\\"0\\\\\\\",n=this.strokeDashArray?this.strokeDashArray.join(\\\\\\\" \\\\\\\"):\\\\\\\"none\\\\\\\",o=this.strokeDashOffset?this.strokeDashOffset:\\\\\\\"0\\\\\\\",s=this.strokeLineCap?this.strokeLineCap:\\\\\\\"butt\\\\\\\",a=this.strokeLineJoin?this.strokeLineJoin:\\\\\\\"miter\\\\\\\",h=this.strokeMiterLimit?this.strokeMiterLimit:\\\\\\\"4\\\\\\\",c=void 0!==this.opacity?this.opacity:\\\\\\\"1\\\\\\\",l=this.visible?\\\\\\\"\\\\\\\":\\\\\\\" visibility: hidden;\\\\\\\",u=e?\\\\\\\"\\\\\\\":this.getSvgFilter(),f=t(\\\\\\\"fill\\\\\\\",this.fill);return[t(\\\\\\\"stroke\\\\\\\",this.stroke),\\\\\\\"stroke-width: \\\\\\\",r,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-dasharray: \\\\\\\",n,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-linecap: \\\\\\\",s,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-dashoffset: \\\\\\\",o,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-linejoin: \\\\\\\",a,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-miterlimit: \\\\\\\",h,\\\\\\\"; \\\\\\\",f,\\\\\\\"fill-rule: \\\\\\\",i,\\\\\\\"; \\\\\\\",\\\\\\\"opacity: \\\\\\\",c,\\\\\\\";\\\\\\\",u,l].join(\\\\\\\"\\\\\\\")},getSvgSpanStyles:function(e,i){var r=\\\\\\\"; \\\\\\\",n=e.fontFamily?\\\\\\\"font-family: \\\\\\\"+(-1===e.fontFamily.indexOf(\\\\\\\"'\\\\\\\")\\\\u0026\\\\u0026-1===e.fontFamily.indexOf('\\\\\\\"')?\\\\\\\"'\\\\\\\"+e.fontFamily+\\\\\\\"'\\\\\\\":e.fontFamily)+r:\\\\\\\"\\\\\\\",o=e.strokeWidth?\\\\\\\"stroke-width: \\\\\\\"+e.strokeWidth+r:\\\\\\\"\\\\\\\",s=(n=n,e.fontSize?\\\\\\\"font-size: \\\\\\\"+e.fontSize+\\\\\\\"px\\\\\\\"+r:\\\\\\\"\\\\\\\"),a=e.fontStyle?\\\\\\\"font-style: \\\\\\\"+e.fontStyle+r:\\\\\\\"\\\\\\\",h=e.fontWeight?\\\\\\\"font-weight: \\\\\\\"+e.fontWeight+r:\\\\\\\"\\\\\\\",c=e.fill?t(\\\\\\\"fill\\\\\\\",e.fill):\\\\\\\"\\\\\\\",l=e.stroke?t(\\\\\\\"stroke\\\\\\\",e.stroke):\\\\\\\"\\\\\\\",u=this.getSvgTextDecoration(e);return u\\\\u0026\\\\u0026(u=\\\\\\\"text-decoration: \\\\\\\"+u+r),[l,o,n,s,a,h,u,c,e.deltaY?\\\\\\\"baseline-shift: \\\\\\\"+-e.deltaY+\\\\\\\"; \\\\\\\":\\\\\\\"\\\\\\\",i?\\\\\\\"white-space: pre; \\\\\\\":\\\\\\\"\\\\\\\"].join(\\\\\\\"\\\\\\\")},getSvgTextDecoration:function(t){return[\\\\\\\"overline\\\\\\\",\\\\\\\"underline\\\\\\\",\\\\\\\"line-through\\\\\\\"].filter((function(e){return t[e.replace(\\\\\\\"-\\\\\\\",\\\\\\\"\\\\\\\")]})).join(\\\\\\\" \\\\\\\")},getSvgFilter:function(){return this.shadow?\\\\\\\"filter: url(#SVGID_\\\\\\\"+this.shadow.id+\\\\\\\");\\\\\\\":\\\\\\\"\\\\\\\"},getSvgCommons:function(){return[this.id?'id=\\\\\\\"'+this.id+'\\\\\\\" ':\\\\\\\"\\\\\\\",this.clipPath?'clip-path=\\\\\\\"url(#'+this.clipPath.clipPathId+')\\\\\\\" ':\\\\\\\"\\\\\\\"].join(\\\\\\\"\\\\\\\")},getSvgTransform:function(t,e){var i=t?this.calcTransformMatrix():this.calcOwnMatrix();return'transform=\\\\\\\"'+T.util.matrixToSVG(i)+(e||\\\\\\\"\\\\\\\")+'\\\\\\\" '},_setSVGBg:function(t){if(this.backgroundColor){var i=T.Object.NUM_FRACTION_DIGITS;t.push(\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\u003crect \\\\\\\",this._getFillAttributes(this.backgroundColor),' x=\\\\\\\"',e(-this.width/2,i),'\\\\\\\" y=\\\\\\\"',e(-this.height/2,i),'\\\\\\\" width=\\\\\\\"',e(this.width,i),'\\\\\\\" height=\\\\\\\"',e(this.height,i),'\\\\\\\"\\\\u003e\\\\u003c/rect\\\\u003e\\\\\\\\n')}},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(t),{reviver:t})},toClipPathSVG:function(t){return\\\\\\\"\\\\\\\\t\\\\\\\"+this._createBaseClipPathSVGMarkup(this._toSVG(t),{reviver:t})},_createBaseClipPathSVGMarkup:function(t,e){var i=(e=e||{}).reviver,r=e.additionalTransform||\\\\\\\"\\\\\\\",n=[this.getSvgTransform(!0,r),this.getSvgCommons()].join(\\\\\\\"\\\\\\\"),o=t.indexOf(\\\\\\\"COMMON_PARTS\\\\\\\");return t[o]=n,i?i(t.join(\\\\\\\"\\\\\\\")):t.join(\\\\\\\"\\\\\\\")},_createBaseSVGMarkup:function(t,e){var i,r,n=(e=e||{}).noStyle,o=e.reviver,s=n?\\\\\\\"\\\\\\\":'style=\\\\\\\"'+this.getSvgStyles()+'\\\\\\\" ',a=e.withShadow?'style=\\\\\\\"'+this.getSvgFilter()+'\\\\\\\" ':\\\\\\\"\\\\\\\",h=this.clipPath,c=this.strokeUniform?'vector-effect=\\\\\\\"non-scaling-stroke\\\\\\\" ':\\\\\\\"\\\\\\\",l=h\\\\u0026\\\\u0026h.absolutePositioned,u=this.stroke,f=this.fill,d=this.shadow,g=[],p=t.indexOf(\\\\\\\"COMMON_PARTS\\\\\\\"),v=e.additionalTransform;return h\\\\u0026\\\\u0026(h.clipPathId=\\\\\\\"CLIPPATH_\\\\\\\"+T.Object.__uid++,r='\\\\u003cclipPath id=\\\\\\\"'+h.clipPathId+'\\\\\\\" \\\\u003e\\\\\\\\n'+h.toClipPathSVG(o)+\\\\\\\"\\\\u003c/clipPath\\\\u003e\\\\\\\\n\\\\\\\"),l\\\\u0026\\\\u0026g.push(\\\\\\\"\\\\u003cg \\\\\\\",a,this.getSvgCommons(),\\\\\\\" \\\\u003e\\\\\\\\n\\\\\\\"),g.push(\\\\\\\"\\\\u003cg \\\\\\\",this.getSvgTransform(!1),l?\\\\\\\"\\\\\\\":a+this.getSvgCommons(),\\\\\\\" \\\\u003e\\\\\\\\n\\\\\\\"),i=[s,c,n?\\\\\\\"\\\\\\\":this.addPaintOrder(),\\\\\\\" \\\\\\\",v?'transform=\\\\\\\"'+v+'\\\\\\\" ':\\\\\\\"\\\\\\\"].join(\\\\\\\"\\\\\\\"),t[p]=i,f\\\\u0026\\\\u0026f.toLive\\\\u0026\\\\u0026g.push(f.toSVG(this)),u\\\\u0026\\\\u0026u.toLive\\\\u0026\\\\u0026g.push(u.toSVG(this)),d\\\\u0026\\\\u0026g.push(d.toSVG(this)),h\\\\u0026\\\\u0026g.push(r),g.push(t.join(\\\\\\\"\\\\\\\")),g.push(\\\\\\\"\\\\u003c/g\\\\u003e\\\\\\\\n\\\\\\\"),l\\\\u0026\\\\u0026g.push(\\\\\\\"\\\\u003c/g\\\\u003e\\\\\\\\n\\\\\\\"),o?o(g.join(\\\\\\\"\\\\\\\")):g.join(\\\\\\\"\\\\\\\")},addPaintOrder:function(){return\\\\\\\"fill\\\\\\\"!==this.paintFirst?' paint-order=\\\\\\\"'+this.paintFirst+'\\\\\\\" ':\\\\\\\"\\\\\\\"}})}(),function(){var t=T.util.object.extend,e=\\\\\\\"stateProperties\\\\\\\";function i(e,i,r){var n={};r.forEach((function(t){n[t]=e[t]})),t(e[i],n,!0)}function r(t,e,i){if(t===e)return!0;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0,o=t.length;n\\\\u003co;n++)if(!r(t[n],e[n]))return!1;return!0}if(t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t){var s,a=Object.keys(t);if(!e||\\\\\\\"object\\\\\\\"!=typeof e||!i\\\\u0026\\\\u0026a.length!==Object.keys(e).length)return!1;for(n=0,o=a.length;n\\\\u003co;n++)if(\\\\\\\"canvas\\\\\\\"!==(s=a[n])\\\\u0026\\\\u0026\\\\\\\"group\\\\\\\"!==s\\\\u0026\\\\u0026!r(t[s],e[s]))return!1;return!0}}T.util.object.extend(T.Object.prototype,{hasStateChanged:function(t){var i=\\\\\\\"_\\\\\\\"+(t=t||e);return Object.keys(this[i]).length\\\\u003cthis[t].length||!r(this[i],this,!0)},saveState:function(t){var r=t\\\\u0026\\\\u0026t.propertySet||e,n=\\\\\\\"_\\\\\\\"+r;return this[n]?(i(this,n,this[r]),t\\\\u0026\\\\u0026t.stateProperties\\\\u0026\\\\u0026i(this,n,t.stateProperties),this):this.setupState(t)},setupState:function(t){var i=(t=t||{}).propertySet||e;return t.propertySet=i,this[\\\\\\\"_\\\\\\\"+i]={},this.saveState(t),this}})}(),function(){var t=T.util.degreesToRadians;T.util.object.extend(T.Object.prototype,{_findTargetCorner:function(t,e){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,r,n,o=t.x,s=t.y,a=Object.keys(this.oCoords),h=a.length-1;for(this.__corner=0;h\\\\u003e=0;h--)if(n=a[h],this.isControlVisible(n)\\\\u0026\\\\u0026(r=this._getImageLines(e?this.oCoords[n].touchCorner:this.oCoords[n].corner),0!==(i=this._findCrossPoints({x:o,y:s},r))\\\\u0026\\\\u0026i%2==1))return this.__corner=n,n;return!1},forEachControl:function(t){for(var e in this.controls)t(this.controls[e],e,this)},_setCornerCoords:function(){var t=this.oCoords;for(var e in t){var i=this.controls[e];t[e].corner=i.calcCornerCoords(this.angle,this.cornerSize,t[e].x,t[e].y,!1),t[e].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,t[e].x,t[e].y,!0)}},drawSelectionBackground:function(e){if(!this.selectionBackgroundColor||this.canvas\\\\u0026\\\\u0026!this.canvas.interactive||this.canvas\\\\u0026\\\\u0026this.canvas._activeObject!==this)return this;e.save();var i=this.getCenterPoint(),r=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return e.translate(i.x,i.y),e.scale(1/n[0],1/n[3]),e.rotate(t(this.angle)),e.fillStyle=this.selectionBackgroundColor,e.fillRect(-r.x/2,-r.y/2,r.x,r.y),e.restore(),this},drawBorders:function(t,e){e=e||{};var i=this._calculateCurrentDimensions(),r=this.borderScaleFactor,n=i.x+r,o=i.y+r,s=void 0!==e.hasControls?e.hasControls:this.hasControls,a=!1;return t.save(),t.strokeStyle=e.borderColor||this.borderColor,this._setLineDash(t,e.borderDashArray||this.borderDashArray),t.strokeRect(-n/2,-o/2,n,o),s\\\\u0026\\\\u0026(t.beginPath(),this.forEachControl((function(e,i,r){e.withConnection\\\\u0026\\\\u0026e.getVisibility(r,i)\\\\u0026\\\\u0026(a=!0,t.moveTo(e.x*n,e.y*o),t.lineTo(e.x*n+e.offsetX,e.y*o+e.offsetY))})),a\\\\u0026\\\\u0026t.stroke()),t.restore(),this},drawBordersInGroup:function(t,e,i){i=i||{};var r=T.util.sizeAfterTransform(this.width,this.height,e),n=this.strokeWidth,o=this.strokeUniform,s=this.borderScaleFactor,a=r.x+n*(o?this.canvas.getZoom():e.scaleX)+s,h=r.y+n*(o?this.canvas.getZoom():e.scaleY)+s;return t.save(),this._setLineDash(t,i.borderDashArray||this.borderDashArray),t.strokeStyle=i.borderColor||this.borderColor,t.strokeRect(-a/2,-h/2,a,h),t.restore(),this},drawControls:function(t,e){e=e||{},t.save();var i,r,n=this.canvas.getRetinaScaling();return t.setTransform(n,0,0,n,0,0),t.strokeStyle=t.fillStyle=e.cornerColor||this.cornerColor,this.transparentCorners||(t.strokeStyle=e.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(t,e.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group\\\\u0026\\\\u0026(i=this.group.calcTransformMatrix()),this.forEachControl((function(n,o,s){r=s.oCoords[o],n.getVisibility(s,o)\\\\u0026\\\\u0026(i\\\\u0026\\\\u0026(r=T.util.transformPoint(r,i)),n.render(t,r.x,r.y,e,s))})),t.restore(),this},isControlVisible:function(t){return this.controls[t]\\\\u0026\\\\u0026this.controls[t].getVisibility(this,t)},setControlVisible:function(t,e){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[t]=e,this},setControlsVisibility:function(t){for(var e in t||(t={}),t)this.setControlVisible(e,t[e]);return this},onDeselect:function(){},onSelect:function(){}})}(),T.util.object.extend(T.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(e){t.set(\\\\\\\"left\\\\\\\",e),o.requestRenderAll(),n()},onComplete:function(){t.setCoords(),r()}}),this},fxCenterObjectV:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(e){t.set(\\\\\\\"top\\\\\\\",e),o.requestRenderAll(),n()},onComplete:function(){t.setCoords(),r()}}),this},fxRemove:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(e){t.set(\\\\\\\"opacity\\\\\\\",e),o.requestRenderAll(),n()},onComplete:function(){o.remove(t),r()}}),this}}),T.util.object.extend(T.Object.prototype,{animate:function(){if(arguments[0]\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof arguments[0]){var t,e,i=[];for(t in arguments[0])i.push(t);for(var r=0,n=i.length;r\\\\u003cn;r++)t=i[r],e=r!==n-1,this._animate(t,arguments[0][t],arguments[1],e)}else this._animate.apply(this,arguments);return this},_animate:function(t,e,i,r){var n,o=this;e=e.toString(),i=i?T.util.object.clone(i):{},~t.indexOf(\\\\\\\".\\\\\\\")\\\\u0026\\\\u0026(n=t.split(\\\\\\\".\\\\\\\"));var s=o.colorProperties.indexOf(t)\\\\u003e-1||n\\\\u0026\\\\u0026o.colorProperties.indexOf(n[1])\\\\u003e-1,a=n?this.get(n[0])[n[1]]:this.get(t);\\\\\\\"from\\\\\\\"in i||(i.from=a),s||(e=~e.indexOf(\\\\\\\"=\\\\\\\")?a+parseFloat(e.replace(\\\\\\\"=\\\\\\\",\\\\\\\"\\\\\\\")):parseFloat(e));var h={startValue:i.from,endValue:e,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort\\\\u0026\\\\u0026function(t,e,r){return i.abort.call(o,t,e,r)},onChange:function(e,s,a){n?o[n[0]][n[1]]=e:o.set(t,e),r||i.onChange\\\\u0026\\\\u0026i.onChange(e,s,a)},onComplete:function(t,e,n){r||(o.setCoords(),i.onComplete\\\\u0026\\\\u0026i.onComplete(t,e,n))}};return s?T.util.animateColor(h.startValue,h.endValue,h.duration,h):T.util.animate(h)}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function o(t,e){var i=t.origin,r=t.axis1,n=t.axis2,o=t.dimension,s=e.nearest,a=e.center,h=e.farthest;return function(){switch(this.get(i)){case s:return Math.min(this.get(r),this.get(n));case a:return Math.min(this.get(r),this.get(n))+.5*this.get(o);case h:return Math.max(this.get(r),this.get(n))}}}e.Line?e.warn(\\\\\\\"fabric.Line is already defined\\\\\\\"):(e.Line=e.util.createClass(e.Object,{type:\\\\\\\"line\\\\\\\",x1:0,y1:0,x2:0,y2:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"x1\\\\\\\",\\\\\\\"x2\\\\\\\",\\\\\\\"y1\\\\\\\",\\\\\\\"y2\\\\\\\"),initialize:function(t,e){t||(t=[0,0,0,0]),this.callSuper(\\\\\\\"initialize\\\\\\\",e),this.set(\\\\\\\"x1\\\\\\\",t[0]),this.set(\\\\\\\"y1\\\\\\\",t[1]),this.set(\\\\\\\"x2\\\\\\\",t[2]),this.set(\\\\\\\"y2\\\\\\\",t[3]),this._setWidthHeight(e)},_setWidthHeight:function(t){t||(t={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left=\\\\\\\"left\\\\\\\"in t?t.left:this._getLeftToOriginX(),this.top=\\\\\\\"top\\\\\\\"in t?t.top:this._getTopToOriginY()},_set:function(t,e){return this.callSuper(\\\\\\\"_set\\\\\\\",t,e),void 0!==n[t]\\\\u0026\\\\u0026this._setWidthHeight(),this},_getLeftToOriginX:o({origin:\\\\\\\"originX\\\\\\\",axis1:\\\\\\\"x1\\\\\\\",axis2:\\\\\\\"x2\\\\\\\",dimension:\\\\\\\"width\\\\\\\"},{nearest:\\\\\\\"left\\\\\\\",center:\\\\\\\"center\\\\\\\",farthest:\\\\\\\"right\\\\\\\"}),_getTopToOriginY:o({origin:\\\\\\\"originY\\\\\\\",axis1:\\\\\\\"y1\\\\\\\",axis2:\\\\\\\"y2\\\\\\\",dimension:\\\\\\\"height\\\\\\\"},{nearest:\\\\\\\"top\\\\\\\",center:\\\\\\\"center\\\\\\\",farthest:\\\\\\\"bottom\\\\\\\"}),_render:function(t){t.beginPath();var e=this.calcLinePoints();t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.lineWidth=this.strokeWidth;var i=t.strokeStyle;t.strokeStyle=this.stroke||t.fillStyle,this.stroke\\\\u0026\\\\u0026this._renderStroke(t),t.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(t){return i(this.callSuper(\\\\\\\"toObject\\\\\\\",t),this.calcLinePoints())},_getNonTransformedDimensions:function(){var t=this.callSuper(\\\\\\\"_getNonTransformedDimensions\\\\\\\");return\\\\\\\"butt\\\\\\\"===this.strokeLineCap\\\\u0026\\\\u0026(0===this.width\\\\u0026\\\\u0026(t.y-=this.strokeWidth),0===this.height\\\\u0026\\\\u0026(t.x-=this.strokeWidth)),t},calcLinePoints:function(){var t=this.x1\\\\u003c=this.x2?-1:1,e=this.y1\\\\u003c=this.y2?-1:1,i=t*this.width*.5,r=e*this.height*.5;return{x1:i,x2:t*this.width*-.5,y1:r,y2:e*this.height*-.5}},_toSVG:function(){var t=this.calcLinePoints();return[\\\\\\\"\\\\u003cline \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'x1=\\\\\\\"',t.x1,'\\\\\\\" y1=\\\\\\\"',t.y1,'\\\\\\\" x2=\\\\\\\"',t.x2,'\\\\\\\" y2=\\\\\\\"',t.y2,'\\\\\\\" /\\\\u003e\\\\\\\\n']}}),e.Line.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"x1 y1 x2 y2\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Line.fromElement=function(t,r,n){n=n||{};var o=e.parseAttributes(t,e.Line.ATTRIBUTE_NAMES),s=[o.x1||0,o.y1||0,o.x2||0,o.y2||0];r(new e.Line(s,i(o,n)))},e.Line.fromObject=function(t,i){var n=r(t,!0);n.points=[t.x1,t.y1,t.x2,t.y2],e.Object._fromObject(\\\\\\\"Line\\\\\\\",n,(function(t){delete t.points,i\\\\u0026\\\\u0026i(t)}),\\\\\\\"points\\\\\\\")})}(t),function(t){var e=t.fabric||(t.fabric={}),i=Math.PI;e.Circle?e.warn(\\\\\\\"fabric.Circle is already defined.\\\\\\\"):(e.Circle=e.util.createClass(e.Object,{type:\\\\\\\"circle\\\\\\\",radius:0,startAngle:0,endAngle:2*i,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"radius\\\\\\\",\\\\\\\"startAngle\\\\\\\",\\\\\\\"endAngle\\\\\\\"),_set:function(t,e){return this.callSuper(\\\\\\\"_set\\\\\\\",t,e),\\\\\\\"radius\\\\\\\"===t\\\\u0026\\\\u0026this.setRadius(e),this},toObject:function(t){return this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"radius\\\\\\\",\\\\\\\"startAngle\\\\\\\",\\\\\\\"endAngle\\\\\\\"].concat(t))},_toSVG:function(){var t,r=(this.endAngle-this.startAngle)%(2*i);if(0===r)t=[\\\\\\\"\\\\u003ccircle \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'cx=\\\\\\\"0\\\\\\\" cy=\\\\\\\"0\\\\\\\" ','r=\\\\\\\"',this.radius,'\\\\\\\" /\\\\u003e\\\\\\\\n'];else{var n=e.util.cos(this.startAngle)*this.radius,o=e.util.sin(this.startAngle)*this.radius,s=e.util.cos(this.endAngle)*this.radius,a=e.util.sin(this.endAngle)*this.radius,h=r\\\\u003ei?\\\\\\\"1\\\\\\\":\\\\\\\"0\\\\\\\";t=['\\\\u003cpath d=\\\\\\\"M '+n+\\\\\\\" \\\\\\\"+o,\\\\\\\" A \\\\\\\"+this.radius+\\\\\\\" \\\\\\\"+this.radius,\\\\\\\" 0 \\\\\\\",+h+\\\\\\\" 1\\\\\\\",\\\\\\\" \\\\\\\"+s+\\\\\\\" \\\\\\\"+a,'\\\\\\\" ',\\\\\\\"COMMON_PARTS\\\\\\\",\\\\\\\" /\\\\u003e\\\\\\\\n\\\\\\\"]}return t},_render:function(t){t.beginPath(),t.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(t)},getRadiusX:function(){return this.get(\\\\\\\"radius\\\\\\\")*this.get(\\\\\\\"scaleX\\\\\\\")},getRadiusY:function(){return this.get(\\\\\\\"radius\\\\\\\")*this.get(\\\\\\\"scaleY\\\\\\\")},setRadius:function(t){return this.radius=t,this.set(\\\\\\\"width\\\\\\\",2*t).set(\\\\\\\"height\\\\\\\",2*t)}}),e.Circle.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"cx cy r\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Circle.fromElement=function(t,i){var r,n=e.parseAttributes(t,e.Circle.ATTRIBUTE_NAMES);if(!(\\\\\\\"radius\\\\\\\"in(r=n)\\\\u0026\\\\u0026r.radius\\\\u003e=0))throw new Error(\\\\\\\"value of `r` attribute is required and can not be negative\\\\\\\");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new e.Circle(n))},e.Circle.fromObject=function(t,i){e.Object._fromObject(\\\\\\\"Circle\\\\\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={});e.Triangle?e.warn(\\\\\\\"fabric.Triangle is already defined\\\\\\\"):(e.Triangle=e.util.createClass(e.Object,{type:\\\\\\\"triangle\\\\\\\",width:100,height:100,_render:function(t){var e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,i),t.lineTo(0,-i),t.lineTo(e,i),t.closePath(),this._renderPaintInOrder(t)},_toSVG:function(){var t=this.width/2,e=this.height/2;return[\\\\\\\"\\\\u003cpolygon \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'points=\\\\\\\"',[-t+\\\\\\\" \\\\\\\"+e,\\\\\\\"0 \\\\\\\"+-e,t+\\\\\\\" \\\\\\\"+e].join(\\\\\\\",\\\\\\\"),'\\\\\\\" /\\\\u003e']}}),e.Triangle.fromObject=function(t,i){return e.Object._fromObject(\\\\\\\"Triangle\\\\\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=2*Math.PI;e.Ellipse?e.warn(\\\\\\\"fabric.Ellipse is already defined.\\\\\\\"):(e.Ellipse=e.util.createClass(e.Object,{type:\\\\\\\"ellipse\\\\\\\",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"),initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this.set(\\\\\\\"rx\\\\\\\",t\\\\u0026\\\\u0026t.rx||0),this.set(\\\\\\\"ry\\\\\\\",t\\\\u0026\\\\u0026t.ry||0)},_set:function(t,e){switch(this.callSuper(\\\\\\\"_set\\\\\\\",t,e),t){case\\\\\\\"rx\\\\\\\":this.rx=e,this.set(\\\\\\\"width\\\\\\\",2*e);break;case\\\\\\\"ry\\\\\\\":this.ry=e,this.set(\\\\\\\"height\\\\\\\",2*e)}return this},getRx:function(){return this.get(\\\\\\\"rx\\\\\\\")*this.get(\\\\\\\"scaleX\\\\\\\")},getRy:function(){return this.get(\\\\\\\"ry\\\\\\\")*this.get(\\\\\\\"scaleY\\\\\\\")},toObject:function(t){return this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"].concat(t))},_toSVG:function(){return[\\\\\\\"\\\\u003cellipse \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'cx=\\\\\\\"0\\\\\\\" cy=\\\\\\\"0\\\\\\\" ','rx=\\\\\\\"',this.rx,'\\\\\\\" ry=\\\\\\\"',this.ry,'\\\\\\\" /\\\\u003e\\\\\\\\n']},_render:function(t){t.beginPath(),t.save(),t.transform(1,0,0,this.ry/this.rx,0,0),t.arc(0,0,this.rx,0,i,!1),t.restore(),this._renderPaintInOrder(t)}}),e.Ellipse.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"cx cy rx ry\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Ellipse.fromElement=function(t,i){var r=e.parseAttributes(t,e.Ellipse.ATTRIBUTE_NAMES);r.left=(r.left||0)-r.rx,r.top=(r.top||0)-r.ry,i(new e.Ellipse(r))},e.Ellipse.fromObject=function(t,i){e.Object._fromObject(\\\\\\\"Ellipse\\\\\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend;e.Rect?e.warn(\\\\\\\"fabric.Rect is already defined\\\\\\\"):(e.Rect=e.util.createClass(e.Object,{stateProperties:e.Object.prototype.stateProperties.concat(\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"),type:\\\\\\\"rect\\\\\\\",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"),initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this._initRxRy()},_initRxRy:function(){this.rx\\\\u0026\\\\u0026!this.ry?this.ry=this.rx:this.ry\\\\u0026\\\\u0026!this.rx\\\\u0026\\\\u0026(this.rx=this.ry)},_render:function(t){var e=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,r=this.width,n=this.height,o=-this.width/2,s=-this.height/2,a=0!==e||0!==i,h=.4477152502;t.beginPath(),t.moveTo(o+e,s),t.lineTo(o+r-e,s),a\\\\u0026\\\\u0026t.bezierCurveTo(o+r-h*e,s,o+r,s+h*i,o+r,s+i),t.lineTo(o+r,s+n-i),a\\\\u0026\\\\u0026t.bezierCurveTo(o+r,s+n-h*i,o+r-h*e,s+n,o+r-e,s+n),t.lineTo(o+e,s+n),a\\\\u0026\\\\u0026t.bezierCurveTo(o+h*e,s+n,o,s+n-h*i,o,s+n-i),t.lineTo(o,s+i),a\\\\u0026\\\\u0026t.bezierCurveTo(o,s+h*i,o+h*e,s,o+e,s),t.closePath(),this._renderPaintInOrder(t)},toObject:function(t){return this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"].concat(t))},_toSVG:function(){return[\\\\\\\"\\\\u003crect \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'x=\\\\\\\"',-this.width/2,'\\\\\\\" y=\\\\\\\"',-this.height/2,'\\\\\\\" rx=\\\\\\\"',this.rx,'\\\\\\\" ry=\\\\\\\"',this.ry,'\\\\\\\" width=\\\\\\\"',this.width,'\\\\\\\" height=\\\\\\\"',this.height,'\\\\\\\" /\\\\u003e\\\\\\\\n']}}),e.Rect.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"x y rx ry width height\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Rect.fromElement=function(t,r,n){if(!t)return r(null);n=n||{};var o=e.parseAttributes(t,e.Rect.ATTRIBUTE_NAMES);o.left=o.left||0,o.top=o.top||0,o.height=o.height||0,o.width=o.width||0;var s=new e.Rect(i(n?e.util.object.clone(n):{},o));s.visible=s.visible\\\\u0026\\\\u0026s.width\\\\u003e0\\\\u0026\\\\u0026s.height\\\\u003e0,r(s)},e.Rect.fromObject=function(t,i){return e.Object._fromObject(\\\\\\\"Rect\\\\\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.array.min,n=e.util.array.max,o=e.util.toFixed;e.Polyline?e.warn(\\\\\\\"fabric.Polyline is already defined\\\\\\\"):(e.Polyline=e.util.createClass(e.Object,{type:\\\\\\\"polyline\\\\\\\",points:null,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"points\\\\\\\"),initialize:function(t,e){e=e||{},this.points=t||[],this.callSuper(\\\\\\\"initialize\\\\\\\",e),this._setPositionDimensions(e)},_setPositionDimensions:function(t){var e,i=this._calcDimensions(t);this.width=i.width,this.height=i.height,t.fromSVG||(e=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2,y:i.top-this.strokeWidth/2},\\\\\\\"left\\\\\\\",\\\\\\\"top\\\\\\\",this.originX,this.originY)),void 0===t.left\\\\u0026\\\\u0026(this.left=t.fromSVG?i.left:e.x),void 0===t.top\\\\u0026\\\\u0026(this.top=t.fromSVG?i.top:e.y),this.pathOffset={x:i.left+this.width/2,y:i.top+this.height/2}},_calcDimensions:function(){var t=this.points,e=r(t,\\\\\\\"x\\\\\\\")||0,i=r(t,\\\\\\\"y\\\\\\\")||0;return{left:e,top:i,width:(n(t,\\\\\\\"x\\\\\\\")||0)-e,height:(n(t,\\\\\\\"y\\\\\\\")||0)-i}},toObject:function(t){return i(this.callSuper(\\\\\\\"toObject\\\\\\\",t),{points:this.points.concat()})},_toSVG:function(){for(var t=[],i=this.pathOffset.x,r=this.pathOffset.y,n=e.Object.NUM_FRACTION_DIGITS,s=0,a=this.points.length;s\\\\u003ca;s++)t.push(o(this.points[s].x-i,n),\\\\\\\",\\\\\\\",o(this.points[s].y-r,n),\\\\\\\" \\\\\\\");return[\\\\\\\"\\\\u003c\\\\\\\"+this.type+\\\\\\\" \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'points=\\\\\\\"',t.join(\\\\\\\"\\\\\\\"),'\\\\\\\" /\\\\u003e\\\\\\\\n']},commonRender:function(t){var e,i=this.points.length,r=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;t.beginPath(),t.moveTo(this.points[0].x-r,this.points[0].y-n);for(var o=0;o\\\\u003ci;o++)e=this.points[o],t.lineTo(e.x-r,e.y-n);return!0},_render:function(t){this.commonRender(t)\\\\u0026\\\\u0026this._renderPaintInOrder(t)},complexity:function(){return this.get(\\\\\\\"points\\\\\\\").length}}),e.Polyline.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polyline.fromElementGenerator=function(t){return function(r,n,o){if(!r)return n(null);o||(o={});var s=e.parsePointsAttribute(r.getAttribute(\\\\\\\"points\\\\\\\")),a=e.parseAttributes(r,e[t].ATTRIBUTE_NAMES);a.fromSVG=!0,n(new e[t](s,i(a,o)))}},e.Polyline.fromElement=e.Polyline.fromElementGenerator(\\\\\\\"Polyline\\\\\\\"),e.Polyline.fromObject=function(t,i){return e.Object._fromObject(\\\\\\\"Polyline\\\\\\\",t,i,\\\\\\\"points\\\\\\\")})}(t),function(t){var e=t.fabric||(t.fabric={});e.Polygon?e.warn(\\\\\\\"fabric.Polygon is already defined\\\\\\\"):(e.Polygon=e.util.createClass(e.Polyline,{type:\\\\\\\"polygon\\\\\\\",_render:function(t){this.commonRender(t)\\\\u0026\\\\u0026(t.closePath(),this._renderPaintInOrder(t))}}),e.Polygon.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polygon.fromElement=e.Polyline.fromElementGenerator(\\\\\\\"Polygon\\\\\\\"),e.Polygon.fromObject=function(t,i){e.Object._fromObject(\\\\\\\"Polygon\\\\\\\",t,i,\\\\\\\"points\\\\\\\")})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.array.min,r=e.util.array.max,n=e.util.object.extend,o=Object.prototype.toString,s=e.util.toFixed;e.Path?e.warn(\\\\\\\"fabric.Path is already defined\\\\\\\"):(e.Path=e.util.createClass(e.Object,{type:\\\\\\\"path\\\\\\\",path:null,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"path\\\\\\\",\\\\\\\"fillRule\\\\\\\"),stateProperties:e.Object.prototype.stateProperties.concat(\\\\\\\"path\\\\\\\"),initialize:function(t,i){i=i||{},this.callSuper(\\\\\\\"initialize\\\\\\\",i),t||(t=[]);var r=\\\\\\\"[object Array]\\\\\\\"===o.call(t);this.path=e.util.makePathSimpler(r?t:e.util.parsePath(t)),this.path\\\\u0026\\\\u0026e.Polyline.prototype._setPositionDimensions.call(this,i)},_renderPathCommands:function(t){var e,i=0,r=0,n=0,o=0,s=0,a=0,h=-this.pathOffset.x,c=-this.pathOffset.y;t.beginPath();for(var l=0,u=this.path.length;l\\\\u003cu;++l)switch((e=this.path[l])[0]){case\\\\\\\"L\\\\\\\":n=e[1],o=e[2],t.lineTo(n+h,o+c);break;case\\\\\\\"M\\\\\\\":i=n=e[1],r=o=e[2],t.moveTo(n+h,o+c);break;case\\\\\\\"C\\\\\\\":n=e[5],o=e[6],s=e[3],a=e[4],t.bezierCurveTo(e[1]+h,e[2]+c,s+h,a+c,n+h,o+c);break;case\\\\\\\"Q\\\\\\\":t.quadraticCurveTo(e[1]+h,e[2]+c,e[3]+h,e[4]+c),n=e[3],o=e[4],s=e[1],a=e[2];break;case\\\\\\\"z\\\\\\\":case\\\\\\\"Z\\\\\\\":n=i,o=r,t.closePath()}},_render:function(t){this._renderPathCommands(t),this._renderPaintInOrder(t)},toString:function(){return\\\\\\\"#\\\\u003cfabric.Path (\\\\\\\"+this.complexity()+'): { \\\\\\\"top\\\\\\\": '+this.top+', \\\\\\\"left\\\\\\\": '+this.left+\\\\\\\" }\\\\u003e\\\\\\\"},toObject:function(t){return n(this.callSuper(\\\\\\\"toObject\\\\\\\",t),{path:this.path.map((function(t){return t.slice()}))})},toDatalessObject:function(t){var e=this.toObject([\\\\\\\"sourcePath\\\\\\\"].concat(t));return e.sourcePath\\\\u0026\\\\u0026delete e.path,e},_toSVG:function(){return[\\\\\\\"\\\\u003cpath \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'d=\\\\\\\"',e.util.joinPath(this.path),'\\\\\\\" stroke-linecap=\\\\\\\"round\\\\\\\" ',\\\\\\\"/\\\\u003e\\\\\\\\n\\\\\\\"]},_getOffsetTransform:function(){var t=e.Object.NUM_FRACTION_DIGITS;return\\\\\\\" translate(\\\\\\\"+s(-this.pathOffset.x,t)+\\\\\\\", \\\\\\\"+s(-this.pathOffset.y,t)+\\\\\\\")\\\\\\\"},toClipPathSVG:function(t){var e=this._getOffsetTransform();return\\\\\\\"\\\\\\\\t\\\\\\\"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},toSVG:function(t){var e=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var t,n,o=[],s=[],a=0,h=0,c=0,l=0,u=0,f=this.path.length;u\\\\u003cf;++u){switch((t=this.path[u])[0]){case\\\\\\\"L\\\\\\\":c=t[1],l=t[2],n=[];break;case\\\\\\\"M\\\\\\\":a=c=t[1],h=l=t[2],n=[];break;case\\\\\\\"C\\\\\\\":n=e.util.getBoundsOfCurve(c,l,t[1],t[2],t[3],t[4],t[5],t[6]),c=t[5],l=t[6];break;case\\\\\\\"Q\\\\\\\":n=e.util.getBoundsOfCurve(c,l,t[1],t[2],t[1],t[2],t[3],t[4]),c=t[3],l=t[4];break;case\\\\\\\"z\\\\\\\":case\\\\\\\"Z\\\\\\\":c=a,l=h}n.forEach((function(t){o.push(t.x),s.push(t.y)})),o.push(c),s.push(l)}var d=i(o)||0,g=i(s)||0;return{left:d,top:g,width:(r(o)||0)-d,height:(r(s)||0)-g}}}),e.Path.fromObject=function(t,i){if(\\\\\\\"string\\\\\\\"==typeof t.sourcePath){var r=t.sourcePath;e.loadSVGFromURL(r,(function(e){var r=e[0];r.setOptions(t),i\\\\u0026\\\\u0026i(r)}))}else e.Object._fromObject(\\\\\\\"Path\\\\\\\",t,i,\\\\\\\"path\\\\\\\")},e.Path.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat([\\\\\\\"d\\\\\\\"]),e.Path.fromElement=function(t,i,r){var o=e.parseAttributes(t,e.Path.ATTRIBUTE_NAMES);o.fromSVG=!0,i(new e.Path(o.d,n(o,r)))})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.array.min,r=e.util.array.max;e.Group||(e.Group=e.util.createClass(e.Object,e.Collection,{type:\\\\\\\"group\\\\\\\",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(t,e,i){e=e||{},this._objects=[],i\\\\u0026\\\\u0026this.callSuper(\\\\\\\"initialize\\\\\\\",e),this._objects=t||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;if(i)this._updateObjectsACoords();else{var n=e\\\\u0026\\\\u0026e.centerPoint;void 0!==e.originX\\\\u0026\\\\u0026(this.originX=e.originX),void 0!==e.originY\\\\u0026\\\\u0026(this.originY=e.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete e.centerPoint,this.callSuper(\\\\\\\"initialize\\\\\\\",e)}this.setCoords()},_updateObjectsACoords:function(){for(var t=this._objects.length;t--;)this._objects[t].setCoords(true)},_updateObjectsCoords:function(t){t=t||this.getCenterPoint();for(var e=this._objects.length;e--;)this._updateObjectCoords(this._objects[e],t)},_updateObjectCoords:function(t,e){var i=t.left,r=t.top;t.set({left:i-e.x,top:r-e.y}),t.group=this,t.setCoords(!0)},toString:function(){return\\\\\\\"#\\\\u003cfabric.Group: (\\\\\\\"+this.complexity()+\\\\\\\")\\\\u003e\\\\\\\"},addWithUpdate:function(t){var i=!!this.group;return this._restoreObjectsState(),e.util.resetObjectTransform(this),t\\\\u0026\\\\u0026(i\\\\u0026\\\\u0026e.util.removeTransformFromObject(t,this.group.calcTransformMatrix()),this._objects.push(t),t.group=this,t._set(\\\\\\\"canvas\\\\\\\",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(t){return this._restoreObjectsState(),e.util.resetObjectTransform(this),this.remove(t),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(t){this.dirty=!0,t.group=this,t._set(\\\\\\\"canvas\\\\\\\",this.canvas)},_onObjectRemoved:function(t){this.dirty=!0,delete t.group},_set:function(t,i){var r=this._objects.length;if(this.useSetOnGroup)for(;r--;)this._objects[r].setOnGroup(t,i);if(\\\\\\\"canvas\\\\\\\"===t)for(;r--;)this._objects[r]._set(t,i);e.Object.prototype._set.call(this,t,i)},toObject:function(t){var i=this.includeDefaultValues,r=this._objects.filter((function(t){return!t.excludeFromExport})).map((function(e){var r=e.includeDefaultValues;e.includeDefaultValues=i;var n=e.toObject(t);return e.includeDefaultValues=r,n})),n=e.Object.prototype.toObject.call(this,t);return n.objects=r,n},toDatalessObject:function(t){var i,r=this.sourcePath;if(r)i=r;else{var n=this.includeDefaultValues;i=this._objects.map((function(e){var i=e.includeDefaultValues;e.includeDefaultValues=n;var r=e.toDatalessObject(t);return e.includeDefaultValues=i,r}))}var o=e.Object.prototype.toDatalessObject.call(this,t);return o.objects=i,o},render:function(t){this._transformDone=!0,this.callSuper(\\\\\\\"render\\\\\\\",t),this._transformDone=!1},shouldCache:function(){var t=e.Object.prototype.shouldCache.call(this);if(t)for(var i=0,r=this._objects.length;i\\\\u003cr;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return t},willDrawShadow:function(){if(e.Object.prototype.willDrawShadow.call(this))return!0;for(var t=0,i=this._objects.length;t\\\\u003ci;t++)if(this._objects[t].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group\\\\u0026\\\\u0026this.group.isOnACache()},drawObject:function(t){for(var e=0,i=this._objects.length;e\\\\u003ci;e++)this._objects[e].render(t);this._drawClipPath(t)},isCacheDirty:function(t){if(this.callSuper(\\\\\\\"isCacheDirty\\\\\\\",t))return!0;if(!this.statefullCache)return!1;for(var e=0,i=this._objects.length;e\\\\u003ci;e++)if(this._objects[e].isCacheDirty(!0)){if(this._cacheCanvas){var r=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-r/2,-n/2,r,n)}return!0}return!1},_restoreObjectsState:function(){var t=this.calcOwnMatrix();return this._objects.forEach((function(i){e.util.addTransformToObject(i,t),delete i.group,i.setCoords()})),this},realizeTransform:function(t,i){return e.util.addTransformToObject(t,i),t},destroy:function(){return this._objects.forEach((function(t){t.set(\\\\\\\"dirty\\\\\\\",!0)})),this._restoreObjectsState()},toActiveSelection:function(){if(this.canvas){var t=this._objects,i=this.canvas;this._objects=[];var r=this.toObject();delete r.objects;var n=new e.ActiveSelection([]);return n.set(r),n.type=\\\\\\\"activeSelection\\\\\\\",i.remove(this),t.forEach((function(t){t.group=n,t.dirty=!0,i.add(t)})),n.canvas=i,n._objects=t,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(t){t.setCoords(true)})),this},_calcBounds:function(t){for(var e,i,r,n,o=[],s=[],a=[\\\\\\\"tr\\\\\\\",\\\\\\\"br\\\\\\\",\\\\\\\"bl\\\\\\\",\\\\\\\"tl\\\\\\\"],h=0,c=this._objects.length,l=a.length;h\\\\u003cc;++h){for(r=(e=this._objects[h]).calcACoords(),n=0;n\\\\u003cl;n++)i=a[n],o.push(r[i].x),s.push(r[i].y);e.aCoords=r}this._getBounds(o,s,t)},_getBounds:function(t,n,o){var s=new e.Point(i(t),i(n)),a=new e.Point(r(t),r(n)),h=s.y||0,c=s.x||0,l=a.x-s.x||0,u=a.y-s.y||0;this.width=l,this.height=u,o||this.setPositionByOrigin({x:c,y:h},\\\\\\\"left\\\\\\\",\\\\\\\"top\\\\\\\")},_toSVG:function(t){for(var e=[\\\\\\\"\\\\u003cg \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",\\\\\\\" \\\\u003e\\\\\\\\n\\\\\\\"],i=0,r=this._objects.length;i\\\\u003cr;i++)e.push(\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\\\\",this._objects[i].toSVG(t));return e.push(\\\\\\\"\\\\u003c/g\\\\u003e\\\\\\\\n\\\\\\\"),e},getSvgStyles:function(){var t=void 0!==this.opacity\\\\u0026\\\\u00261!==this.opacity?\\\\\\\"opacity: \\\\\\\"+this.opacity+\\\\\\\";\\\\\\\":\\\\\\\"\\\\\\\",e=this.visible?\\\\\\\"\\\\\\\":\\\\\\\" visibility: hidden;\\\\\\\";return[t,this.getSvgFilter(),e].join(\\\\\\\"\\\\\\\")},toClipPathSVG:function(t){for(var e=[],i=0,r=this._objects.length;i\\\\u003cr;i++)e.push(\\\\\\\"\\\\\\\\t\\\\\\\",this._objects[i].toClipPathSVG(t));return this._createBaseClipPathSVGMarkup(e,{reviver:t})}}),e.Group.fromObject=function(t,i){var r=t.objects,n=e.util.object.clone(t,!0);delete n.objects,\\\\\\\"string\\\\\\\"!=typeof r?e.util.enlivenObjects(r,(function(r){e.util.enlivenObjects([t.clipPath],(function(n){var o=e.util.object.clone(t,!0);o.clipPath=n[0],delete o.objects,i\\\\u0026\\\\u0026i(new e.Group(r,o,!0))}))})):e.loadSVGFromURL(r,(function(o){var s=e.util.groupSVGElements(o,t,r);s.set(n),i\\\\u0026\\\\u0026i(s)}))})}(t),function(t){var e=t.fabric||(t.fabric={});e.ActiveSelection||(e.ActiveSelection=e.util.createClass(e.Group,{type:\\\\\\\"activeSelection\\\\\\\",initialize:function(t,i){i=i||{},this._objects=t||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;i.originX\\\\u0026\\\\u0026(this.originX=i.originX),i.originY\\\\u0026\\\\u0026(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),e.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var t=this._objects.concat();this._objects=[];var i=e.Object.prototype.toObject.call(this),r=new e.Group([]);if(delete i.type,r.set(i),t.forEach((function(t){t.canvas.remove(t),t.group=r})),r._objects=t,!this.canvas)return r;var n=this.canvas;return n.add(r),n._activeObject=r,r.setCoords(),r},onDeselect:function(){return this.destroy(),!1},toString:function(){return\\\\\\\"#\\\\u003cfabric.ActiveSelection: (\\\\\\\"+this.complexity()+\\\\\\\")\\\\u003e\\\\\\\"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(t,e,i){t.save(),t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper(\\\\\\\"_renderControls\\\\\\\",t,e),void 0===(i=i||{}).hasControls\\\\u0026\\\\u0026(i.hasControls=!1),i.forActiveSelection=!0;for(var r=0,n=this._objects.length;r\\\\u003cn;r++)this._objects[r]._renderControls(t,i);t.restore()}}),e.ActiveSelection.fromObject=function(t,i){e.util.enlivenObjects(t.objects,(function(r){delete t.objects,i\\\\u0026\\\\u0026i(new e.ActiveSelection(r,t,!0))}))})}(t),function(t){var e=T.util.object.extend;t.fabric||(t.fabric={}),t.fabric.Image?T.warn(\\\\\\\"fabric.Image is already defined.\\\\\\\"):(T.Image=T.util.createClass(T.Object,{type:\\\\\\\"image\\\\\\\",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:T.Object.prototype.stateProperties.concat(\\\\\\\"cropX\\\\\\\",\\\\\\\"cropY\\\\\\\"),cacheProperties:T.Object.prototype.cacheProperties.concat(\\\\\\\"cropX\\\\\\\",\\\\\\\"cropY\\\\\\\"),cacheKey:\\\\\\\"\\\\\\\",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(t,e){e||(e={}),this.filters=[],this.cacheKey=\\\\\\\"texture\\\\\\\"+T.Object.__uid++,this.callSuper(\\\\\\\"initialize\\\\\\\",e),this._initElement(t,e)},getElement:function(){return this._element||{}},setElement:function(t,e){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+\\\\\\\"_filtered\\\\\\\"),this._element=t,this._originalElement=t,this._initConfig(e),0!==this.filters.length\\\\u0026\\\\u0026this.applyFilters(),this.resizeFilter\\\\u0026\\\\u0026this.applyResizeFilters(),this},removeTexture:function(t){var e=T.filterBackend;e\\\\u0026\\\\u0026e.evictCachesForKey\\\\u0026\\\\u0026e.evictCachesForKey(t)},dispose:function(){this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+\\\\\\\"_filtered\\\\\\\"),this._cacheContext=void 0,[\\\\\\\"_originalElement\\\\\\\",\\\\\\\"_element\\\\\\\",\\\\\\\"_filteredEl\\\\\\\",\\\\\\\"_cacheCanvas\\\\\\\"].forEach(function(t){T.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement\\\\u0026\\\\u0026(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var t=this.getElement();return{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height}},_stroke:function(t){if(this.stroke\\\\u0026\\\\u00260!==this.strokeWidth){var e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,-i),t.lineTo(e,-i),t.lineTo(e,i),t.lineTo(-e,i),t.lineTo(-e,-i),t.closePath()}},toObject:function(t){var i=[];this.filters.forEach((function(t){t\\\\u0026\\\\u0026i.push(t.toObject())}));var r=e(this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"cropX\\\\\\\",\\\\\\\"cropY\\\\\\\"].concat(t)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter\\\\u0026\\\\u0026(r.resizeFilter=this.resizeFilter.toObject()),r},hasCrop:function(){return this.cropX||this.cropY||this.width\\\\u003cthis._element.width||this.height\\\\u003cthis._element.height},_toSVG:function(){var t,e=[],i=[],r=this._element,n=-this.width/2,o=-this.height/2,s=\\\\\\\"\\\\\\\",a=\\\\\\\"\\\\\\\";if(!r)return[];if(this.hasCrop()){var h=T.Object.__uid++;e.push('\\\\u003cclipPath id=\\\\\\\"imageCrop_'+h+'\\\\\\\"\\\\u003e\\\\\\\\n','\\\\\\\\t\\\\u003crect x=\\\\\\\"'+n+'\\\\\\\" y=\\\\\\\"'+o+'\\\\\\\" width=\\\\\\\"'+this.width+'\\\\\\\" height=\\\\\\\"'+this.height+'\\\\\\\" /\\\\u003e\\\\\\\\n',\\\\\\\"\\\\u003c/clipPath\\\\u003e\\\\\\\\n\\\\\\\"),s=' clip-path=\\\\\\\"url(#imageCrop_'+h+')\\\\\\\" '}if(this.imageSmoothing||(a='\\\\\\\" image-rendering=\\\\\\\"optimizeSpeed'),i.push(\\\\\\\"\\\\\\\\t\\\\u003cimage \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'xlink:href=\\\\\\\"',this.getSvgSrc(!0),'\\\\\\\" x=\\\\\\\"',n-this.cropX,'\\\\\\\" y=\\\\\\\"',o-this.cropY,'\\\\\\\" width=\\\\\\\"',r.width||r.naturalWidth,'\\\\\\\" height=\\\\\\\"',r.height||r.height,a,'\\\\\\\"',s,\\\\\\\"\\\\u003e\\\\u003c/image\\\\u003e\\\\\\\\n\\\\\\\"),this.stroke||this.strokeDashArray){var c=this.fill;this.fill=null,t=[\\\\\\\"\\\\\\\\t\\\\u003crect \\\\\\\",'x=\\\\\\\"',n,'\\\\\\\" y=\\\\\\\"',o,'\\\\\\\" width=\\\\\\\"',this.width,'\\\\\\\" height=\\\\\\\"',this.height,'\\\\\\\" style=\\\\\\\"',this.getSvgStyles(),'\\\\\\\"/\\\\u003e\\\\\\\\n'],this.fill=c}return e=\\\\\\\"fill\\\\\\\"!==this.paintFirst?e.concat(t,i):e.concat(i,t)},getSrc:function(t){var e=t?this._element:this._originalElement;return e?e.toDataURL?e.toDataURL():this.srcFromAttribute?e.getAttribute(\\\\\\\"src\\\\\\\"):e.src:this.src||\\\\\\\"\\\\\\\"},setSrc:function(t,e,i){return T.util.loadImage(t,(function(t,r){this.setElement(t,i),this._setWidthHeight(),e\\\\u0026\\\\u0026e(this,r)}),this,i\\\\u0026\\\\u0026i.crossOrigin),this},toString:function(){return'#\\\\u003cfabric.Image: { src: \\\\\\\"'+this.getSrc()+'\\\\\\\" }\\\\u003e'},applyResizeFilters:function(){var t=this.resizeFilter,e=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),r=i.scaleX,n=i.scaleY,o=this._filteredEl||this._originalElement;if(this.group\\\\u0026\\\\u0026this.set(\\\\\\\"dirty\\\\\\\",!0),!t||r\\\\u003ee\\\\u0026\\\\u0026n\\\\u003ee)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=r,void(this._lastScaleY=n);T.filterBackend||(T.filterBackend=T.initFilterBackend());var s=T.util.createCanvasElement(),a=this._filteredEl?this.cacheKey+\\\\\\\"_filtered\\\\\\\":this.cacheKey,h=o.width,c=o.height;s.width=h,s.height=c,this._element=s,this._lastScaleX=t.scaleX=r,this._lastScaleY=t.scaleY=n,T.filterBackend.applyFilters([t],o,h,c,this._element,a),this._filterScalingX=s.width/this._originalElement.width,this._filterScalingY=s.height/this._originalElement.height},applyFilters:function(t){if(t=(t=t||this.filters||[]).filter((function(t){return t\\\\u0026\\\\u0026!t.isNeutralState()})),this.set(\\\\\\\"dirty\\\\\\\",!0),this.removeTexture(this.cacheKey+\\\\\\\"_filtered\\\\\\\"),0===t.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var e=this._originalElement,i=e.naturalWidth||e.width,r=e.naturalHeight||e.height;if(this._element===this._originalElement){var n=T.util.createCanvasElement();n.width=i,n.height=r,this._element=n,this._filteredEl=n}else this._element=this._filteredEl,this._filteredEl.getContext(\\\\\\\"2d\\\\\\\").clearRect(0,0,i,r),this._lastScaleX=1,this._lastScaleY=1;return T.filterBackend||(T.filterBackend=T.initFilterBackend()),T.filterBackend.applyFilters(t,this._originalElement,i,r,this._element,this.cacheKey),this._originalElement.width===this._element.width\\\\u0026\\\\u0026this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(t){T.util.setImageSmoothing(t,this.imageSmoothing),!0!==this.isMoving\\\\u0026\\\\u0026this.resizeFilter\\\\u0026\\\\u0026this._needsResize()\\\\u0026\\\\u0026this.applyResizeFilters(),this._stroke(t),this._renderPaintInOrder(t)},drawCacheOnCanvas:function(t){T.util.setImageSmoothing(t,this.imageSmoothing),T.Object.prototype.drawCacheOnCanvas.call(this,t)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(t){var e=this._element;if(e){var i=this._filterScalingX,r=this._filterScalingY,n=this.width,o=this.height,s=Math.min,a=Math.max,h=a(this.cropX,0),c=a(this.cropY,0),l=e.naturalWidth||e.width,u=e.naturalHeight||e.height,f=h*i,d=c*r,g=s(n*i,l-f),p=s(o*r,u-d),v=-n/2,m=-o/2,y=s(n,l/i-h),_=s(o,u/r-c);e\\\\u0026\\\\u0026t.drawImage(e,f,d,g,p,v,m,y,_)}},_needsResize:function(){var t=this.getTotalObjectScaling();return t.scaleX!==this._lastScaleX||t.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(t,e){this.setElement(T.util.getById(t),e),T.util.addClass(this.getElement(),T.Image.CSS_CANVAS)},_initConfig:function(t){t||(t={}),this.setOptions(t),this._setWidthHeight(t)},_initFilters:function(t,e){t\\\\u0026\\\\u0026t.length?T.util.enlivenObjects(t,(function(t){e\\\\u0026\\\\u0026e(t)}),\\\\\\\"fabric.Image.filters\\\\\\\"):e\\\\u0026\\\\u0026e()},_setWidthHeight:function(t){t||(t={});var e=this.getElement();this.width=t.width||e.naturalWidth||e.width||0,this.height=t.height||e.naturalHeight||e.height||0},parsePreserveAspectRatioAttribute:function(){var t,e=T.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||\\\\\\\"\\\\\\\"),i=this._element.width,r=this._element.height,n=1,o=1,s=0,a=0,h=0,c=0,l=this.width,u=this.height,f={width:l,height:u};return!e||\\\\\\\"none\\\\\\\"===e.alignX\\\\u0026\\\\u0026\\\\\\\"none\\\\\\\"===e.alignY?(n=l/i,o=u/r):(\\\\\\\"meet\\\\\\\"===e.meetOrSlice\\\\u0026\\\\u0026(t=(l-i*(n=o=T.util.findScaleToFit(this._element,f)))/2,\\\\\\\"Min\\\\\\\"===e.alignX\\\\u0026\\\\u0026(s=-t),\\\\\\\"Max\\\\\\\"===e.alignX\\\\u0026\\\\u0026(s=t),t=(u-r*o)/2,\\\\\\\"Min\\\\\\\"===e.alignY\\\\u0026\\\\u0026(a=-t),\\\\\\\"Max\\\\\\\"===e.alignY\\\\u0026\\\\u0026(a=t)),\\\\\\\"slice\\\\\\\"===e.meetOrSlice\\\\u0026\\\\u0026(t=i-l/(n=o=T.util.findScaleToCover(this._element,f)),\\\\\\\"Mid\\\\\\\"===e.alignX\\\\u0026\\\\u0026(h=t/2),\\\\\\\"Max\\\\\\\"===e.alignX\\\\u0026\\\\u0026(h=t),t=r-u/o,\\\\\\\"Mid\\\\\\\"===e.alignY\\\\u0026\\\\u0026(c=t/2),\\\\\\\"Max\\\\\\\"===e.alignY\\\\u0026\\\\u0026(c=t),i=l/n,r=u/o)),{width:i,height:r,scaleX:n,scaleY:o,offsetLeft:s,offsetTop:a,cropX:h,cropY:c}}}),T.Image.CSS_CANVAS=\\\\\\\"canvas-img\\\\\\\",T.Image.prototype.getSvgSrc=T.Image.prototype.getSrc,T.Image.fromObject=function(t,e){var i=T.util.object.clone(t);T.util.loadImage(i.src,(function(t,r){r?e\\\\u0026\\\\u0026e(null,!0):T.Image.prototype._initFilters.call(i,i.filters,(function(r){i.filters=r||[],T.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(r){i.resizeFilter=r[0],T.util.enlivenObjects([i.clipPath],(function(r){i.clipPath=r[0];var n=new T.Image(t,i);e(n,!1)}))}))}))}),null,i.crossOrigin)},T.Image.fromURL=function(t,e,i){T.util.loadImage(t,(function(t,r){e\\\\u0026\\\\u0026e(new T.Image(t,i),r)}),null,i\\\\u0026\\\\u0026i.crossOrigin)},T.Image.ATTRIBUTE_NAMES=T.SHARED_ATTRIBUTES.concat(\\\\\\\"x y width height preserveAspectRatio xlink:href crossOrigin image-rendering\\\\\\\".split(\\\\\\\" \\\\\\\")),T.Image.fromElement=function(t,i,r){var n=T.parseAttributes(t,T.Image.ATTRIBUTE_NAMES);T.Image.fromURL(n[\\\\\\\"xlink:href\\\\\\\"],i,e(r?T.util.object.clone(r):{},n))})}(t),T.util.object.extend(T.Object.prototype,{_getAngleValueForStraighten:function(){var t=this.angle%360;return t\\\\u003e0?90*Math.round((t-1)/90):90*Math.round(t/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(t){var e=function(){},i=(t=t||{}).onComplete||e,r=t.onChange||e,n=this;return T.util.animate({startValue:this.get(\\\\\\\"angle\\\\\\\"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(t){n.rotate(t),r()},onComplete:function(){n.setCoords(),i()}}),this}}),T.util.object.extend(T.StaticCanvas.prototype,{straightenObject:function(t){return t.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(t){return t.fxStraighten({onChange:this.requestRenderAllBound}),this}}),function(){function t(t,e){var i=\\\\\\\"precision \\\\\\\"+e+\\\\\\\" float;\\\\\\\\nvoid main(){}\\\\\\\",r=t.createShader(t.FRAGMENT_SHADER);return t.shaderSource(r,i),t.compileShader(r),!!t.getShaderParameter(r,t.COMPILE_STATUS)}function e(t){t\\\\u0026\\\\u0026t.tileSize\\\\u0026\\\\u0026(this.tileSize=t.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}T.isWebglSupported=function(e){if(T.isLikelyNode)return!1;e=e||T.WebglFilterBackend.prototype.tileSize;var i=document.createElement(\\\\\\\"canvas\\\\\\\"),r=i.getContext(\\\\\\\"webgl\\\\\\\")||i.getContext(\\\\\\\"experimental-webgl\\\\\\\"),n=!1;if(r){T.maxTextureSize=r.getParameter(r.MAX_TEXTURE_SIZE),n=T.maxTextureSize\\\\u003e=e;for(var o=[\\\\\\\"highp\\\\\\\",\\\\\\\"mediump\\\\\\\",\\\\\\\"lowp\\\\\\\"],s=0;s\\\\u003c3;s++)if(t(r,o[s])){T.webGlPrecision=o[s];break}}return this.isSupported=n,n},T.WebglFilterBackend=e,e.prototype={tileSize:2048,resources:{},setupGLContext:function(t,e){this.dispose(),this.createWebGLCanvas(t,e),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(t,e)},chooseFastestCopyGLTo2DMethod:function(t,e){var i,r=void 0!==window.performance;try{new ImageData(1,1),i=!0}catch(t){i=!1}var n=\\\\\\\"undefined\\\\\\\"!=typeof ArrayBuffer,o=\\\\\\\"undefined\\\\\\\"!=typeof Uint8ClampedArray;if(r\\\\u0026\\\\u0026i\\\\u0026\\\\u0026n\\\\u0026\\\\u0026o){var s=T.util.createCanvasElement(),a=new ArrayBuffer(t*e*4);if(T.forceGLPutImageData)return this.imageBuffer=a,void(this.copyGLTo2D=A);var h,c,l={imageBuffer:a,destinationWidth:t,destinationHeight:e,targetCanvas:s};s.width=t,s.height=e,h=window.performance.now(),k.call(l,this.gl,l),c=window.performance.now()-h,h=window.performance.now(),A.call(l,this.gl,l),c\\\\u003ewindow.performance.now()-h?(this.imageBuffer=a,this.copyGLTo2D=A):this.copyGLTo2D=k}},createWebGLCanvas:function(t,e){var i=T.util.createCanvasElement();i.width=t,i.height=e;var r={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},n=i.getContext(\\\\\\\"webgl\\\\\\\",r);n||(n=i.getContext(\\\\\\\"experimental-webgl\\\\\\\",r)),n\\\\u0026\\\\u0026(n.clearColor(0,0,0,0),this.canvas=i,this.gl=n)},applyFilters:function(t,e,i,r,n,o){var s,a=this.gl;o\\\\u0026\\\\u0026(s=this.getCachedTexture(o,e));var h={originalWidth:e.width||e.originalWidth,originalHeight:e.height||e.originalHeight,sourceWidth:i,sourceHeight:r,destinationWidth:i,destinationHeight:r,context:a,sourceTexture:this.createTexture(a,i,r,!s\\\\u0026\\\\u0026e),targetTexture:this.createTexture(a,i,r),originalTexture:s||this.createTexture(a,i,r,!s\\\\u0026\\\\u0026e),passes:t.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},c=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,c),t.forEach((function(t){t\\\\u0026\\\\u0026t.applyTo(h)})),function(t){var e=t.targetCanvas,i=e.width,r=e.height,n=t.destinationWidth,o=t.destinationHeight;i===n\\\\u0026\\\\u0026r===o||(e.width=n,e.height=o)}(h),this.copyGLTo2D(a,h),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(h.sourceTexture),a.deleteTexture(h.targetTexture),a.deleteFramebuffer(c),n.getContext(\\\\\\\"2d\\\\\\\").setTransform(1,0,0,1,0,0),h},dispose:function(){this.canvas\\\\u0026\\\\u0026(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(t,e,i,r){var n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),r?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),n},getCachedTexture:function(t,e){if(this.textureCache[t])return this.textureCache[t];var i=this.createTexture(this.gl,e.width,e.height,e);return this.textureCache[t]=i,i},evictCachesForKey:function(t){this.textureCache[t]\\\\u0026\\\\u0026(this.gl.deleteTexture(this.textureCache[t]),delete this.textureCache[t])},copyGLTo2D:k,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var t=this.gl,e={renderer:\\\\\\\"\\\\\\\",vendor:\\\\\\\"\\\\\\\"};if(!t)return e;var i=t.getExtension(\\\\\\\"WEBGL_debug_renderer_info\\\\\\\");if(i){var r=t.getParameter(i.UNMASKED_RENDERER_WEBGL),n=t.getParameter(i.UNMASKED_VENDOR_WEBGL);r\\\\u0026\\\\u0026(e.renderer=r.toLowerCase()),n\\\\u0026\\\\u0026(e.vendor=n.toLowerCase())}return this.gpuInfo=e,e}}}(),function(){var t=function(){};function e(){}T.Canvas2dFilterBackend=e,e.prototype={evictCachesForKey:t,dispose:t,clearWebGLCaches:t,resources:{},applyFilters:function(t,e,i,r,n){var o=n.getContext(\\\\\\\"2d\\\\\\\");o.drawImage(e,0,0,i,r);var s={sourceWidth:i,sourceHeight:r,imageData:o.getImageData(0,0,i,r),originalEl:e,originalImageData:o.getImageData(0,0,i,r),canvasEl:n,ctx:o,filterBackend:this};return t.forEach((function(t){t.applyTo(s)})),s.imageData.width===i\\\\u0026\\\\u0026s.imageData.height===r||(n.width=s.imageData.width,n.height=s.imageData.height),o.putImageData(s.imageData,0,0),s}}}(),T.Image=T.Image||{},T.Image.filters=T.Image.filters||{},T.Image.filters.BaseFilter=T.util.createClass({type:\\\\\\\"BaseFilter\\\\\\\",vertexSource:\\\\\\\"attribute vec2 aPosition;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvTexCoord = aPosition;\\\\\\\\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\\\\\\\\n}\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nvoid main() {\\\\\\\\ngl_FragColor = texture2D(uTexture, vTexCoord);\\\\\\\\n}\\\\\\\",initialize:function(t){t\\\\u0026\\\\u0026this.setOptions(t)},setOptions:function(t){for(var e in t)this[e]=t[e]},createProgram:function(t,e,i){e=e||this.fragmentSource,i=i||this.vertexSource,\\\\\\\"highp\\\\\\\"!==T.webGlPrecision\\\\u0026\\\\u0026(e=e.replace(/precision highp float/g,\\\\\\\"precision \\\\\\\"+T.webGlPrecision+\\\\\\\" float\\\\\\\"));var r=t.createShader(t.VERTEX_SHADER);if(t.shaderSource(r,i),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS))throw new Error(\\\\\\\"Vertex shader compile error for \\\\\\\"+this.type+\\\\\\\": \\\\\\\"+t.getShaderInfoLog(r));var n=t.createShader(t.FRAGMENT_SHADER);if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error(\\\\\\\"Fragment shader compile error for \\\\\\\"+this.type+\\\\\\\": \\\\\\\"+t.getShaderInfoLog(n));var o=t.createProgram();if(t.attachShader(o,r),t.attachShader(o,n),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS))throw new Error('Shader link error for \\\\\\\"${this.type}\\\\\\\" '+t.getProgramInfoLog(o));var s=this.getAttributeLocations(t,o),a=this.getUniformLocations(t,o)||{};return a.uStepW=t.getUniformLocation(o,\\\\\\\"uStepW\\\\\\\"),a.uStepH=t.getUniformLocation(o,\\\\\\\"uStepH\\\\\\\"),{program:o,attributeLocations:s,uniformLocations:a}},getAttributeLocations:function(t,e){return{aPosition:t.getAttribLocation(e,\\\\\\\"aPosition\\\\\\\")}},getUniformLocations:function(){return{}},sendAttributeData:function(t,e,i){var r=e.aPosition,n=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,n),t.enableVertexAttribArray(r),t.vertexAttribPointer(r,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW)},_setupFrameBuffer:function(t){var e,i,r=t.context;t.passes\\\\u003e1?(e=t.destinationWidth,i=t.destinationHeight,t.sourceWidth===e\\\\u0026\\\\u0026t.sourceHeight===i||(r.deleteTexture(t.targetTexture),t.targetTexture=t.filterBackend.createTexture(r,e,i)),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,t.targetTexture,0)):(r.bindFramebuffer(r.FRAMEBUFFER,null),r.finish())},_swapTextures:function(t){t.passes--,t.pass++;var e=t.targetTexture;t.targetTexture=t.sourceTexture,t.sourceTexture=e},isNeutralState:function(){var t=this.mainParameter,e=T.Image.filters[this.type].prototype;if(t){if(Array.isArray(e[t])){for(var i=e[t].length;i--;)if(this[t][i]!==e[t][i])return!1;return!0}return e[t]===this[t]}return!1},applyTo:function(t){t.webgl?(this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},retrieveShader:function(t){return t.programCache.hasOwnProperty(this.type)||(t.programCache[this.type]=this.createProgram(t.context)),t.programCache[this.type]},applyToWebGL:function(t){var e=t.context,i=this.retrieveShader(t);0===t.pass\\\\u0026\\\\u0026t.originalTexture?e.bindTexture(e.TEXTURE_2D,t.originalTexture):e.bindTexture(e.TEXTURE_2D,t.sourceTexture),e.useProgram(i.program),this.sendAttributeData(e,i.attributeLocations,t.aPosition),e.uniform1f(i.uniformLocations.uStepW,1/t.sourceWidth),e.uniform1f(i.uniformLocations.uStepH,1/t.sourceHeight),this.sendUniformData(e,i.uniformLocations),e.viewport(0,0,t.destinationWidth,t.destinationHeight),e.drawArrays(e.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(t,e,i){t.activeTexture(i),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE0)},unbindAdditionalTexture:function(t,e){t.activeTexture(e),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(t){this[this.mainParameter]=t},sendUniformData:function(){},createHelpLayer:function(t){if(!t.helpLayer){var e=document.createElement(\\\\\\\"canvas\\\\\\\");e.width=t.sourceWidth,e.height=t.sourceHeight,t.helpLayer=e}},toObject:function(){var t={type:this.type},e=this.mainParameter;return e\\\\u0026\\\\u0026(t[e]=this[e]),t},toJSON:function(){return this.toObject()}}),T.Image.filters.BaseFilter.fromObject=function(t,e){var i=new T.Image.filters[t.type](t);return e\\\\u0026\\\\u0026e(i),i},function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.ColorMatrix=r(i.BaseFilter,{type:\\\\\\\"ColorMatrix\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nuniform mat4 uColorMatrix;\\\\\\\\nuniform vec4 uConstants;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\ncolor *= uColorMatrix;\\\\\\\\ncolor += uConstants;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:\\\\\\\"matrix\\\\\\\",colorsOnly:!0,initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this.matrix=this.matrix.slice(0)},applyTo2d:function(t){var e,i,r,n,o,s=t.imageData.data,a=s.length,h=this.matrix,c=this.colorsOnly;for(o=0;o\\\\u003ca;o+=4)e=s[o],i=s[o+1],r=s[o+2],c?(s[o]=e*h[0]+i*h[1]+r*h[2]+255*h[4],s[o+1]=e*h[5]+i*h[6]+r*h[7]+255*h[9],s[o+2]=e*h[10]+i*h[11]+r*h[12]+255*h[14]):(n=s[o+3],s[o]=e*h[0]+i*h[1]+r*h[2]+n*h[3]+255*h[4],s[o+1]=e*h[5]+i*h[6]+r*h[7]+n*h[8]+255*h[9],s[o+2]=e*h[10]+i*h[11]+r*h[12]+n*h[13]+255*h[14],s[o+3]=e*h[15]+i*h[16]+r*h[17]+n*h[18]+255*h[19])},getUniformLocations:function(t,e){return{uColorMatrix:t.getUniformLocation(e,\\\\\\\"uColorMatrix\\\\\\\"),uConstants:t.getUniformLocation(e,\\\\\\\"uConstants\\\\\\\")}},sendUniformData:function(t,e){var i=this.matrix,r=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];t.uniformMatrix4fv(e.uColorMatrix,!1,r),t.uniform4fv(e.uConstants,n)}}),e.Image.filters.ColorMatrix.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Brightness=r(i.BaseFilter,{type:\\\\\\\"Brightness\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uBrightness;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\ncolor.rgb += uBrightness;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",brightness:0,mainParameter:\\\\\\\"brightness\\\\\\\",applyTo2d:function(t){if(0!==this.brightness){var e,i=t.imageData.data,r=i.length,n=Math.round(255*this.brightness);for(e=0;e\\\\u003cr;e+=4)i[e]=i[e]+n,i[e+1]=i[e+1]+n,i[e+2]=i[e+2]+n}},getUniformLocations:function(t,e){return{uBrightness:t.getUniformLocation(e,\\\\\\\"uBrightness\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uBrightness,this.brightness)}}),e.Image.filters.Brightness.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.Convolute=n(r.BaseFilter,{type:\\\\\\\"Convolute\\\\\\\",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[9];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 3.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 3.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",Convolute_3_0:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[9];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 3.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 3.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\\\\\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.a = alpha;\\\\\\\\n}\\\\\\\",Convolute_5_1:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[25];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 5.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 5.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",Convolute_5_0:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[25];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 5.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 5.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\\\\\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.a = alpha;\\\\\\\\n}\\\\\\\",Convolute_7_1:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[49];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 7.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 7.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",Convolute_7_0:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[49];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 7.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 7.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\\\\\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.a = alpha;\\\\\\\\n}\\\\\\\",Convolute_9_1:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[81];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 9.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 9.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",Convolute_9_0:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[81];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 9.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 9.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\\\\\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.a = alpha;\\\\\\\\n}\\\\\\\"},retrieveShader:function(t){var e=Math.sqrt(this.matrix.length),i=this.type+\\\\\\\"_\\\\\\\"+e+\\\\\\\"_\\\\\\\"+(this.opaque?1:0),r=this.fragmentSource[i];return t.programCache.hasOwnProperty(i)||(t.programCache[i]=this.createProgram(t.context,r)),t.programCache[i]},applyTo2d:function(t){var e,i,r,n,o,s,a,h,c,l,u,f,d,g=t.imageData,p=g.data,v=this.matrix,m=Math.round(Math.sqrt(v.length)),y=Math.floor(m/2),_=g.width,b=g.height,x=t.ctx.createImageData(_,b),C=x.data,w=this.opaque?1:0;for(u=0;u\\\\u003cb;u++)for(l=0;l\\\\u003c_;l++){for(o=4*(u*_+l),e=0,i=0,r=0,n=0,d=0;d\\\\u003cm;d++)for(f=0;f\\\\u003cm;f++)s=l+f-y,(a=u+d-y)\\\\u003c0||a\\\\u003e=b||s\\\\u003c0||s\\\\u003e=_||(h=4*(a*_+s),c=v[d*m+f],e+=p[h]*c,i+=p[h+1]*c,r+=p[h+2]*c,w||(n+=p[h+3]*c));C[o]=e,C[o+1]=i,C[o+2]=r,C[o+3]=w?p[o+3]:n}t.imageData=x},getUniformLocations:function(t,e){return{uMatrix:t.getUniformLocation(e,\\\\\\\"uMatrix\\\\\\\"),uOpaque:t.getUniformLocation(e,\\\\\\\"uOpaque\\\\\\\"),uHalfSize:t.getUniformLocation(e,\\\\\\\"uHalfSize\\\\\\\"),uSize:t.getUniformLocation(e,\\\\\\\"uSize\\\\\\\")}},sendUniformData:function(t,e){t.uniform1fv(e.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper(\\\\\\\"toObject\\\\\\\"),{opaque:this.opaque,matrix:this.matrix})}}),e.Image.filters.Convolute.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Grayscale=r(i.BaseFilter,{type:\\\\\\\"Grayscale\\\\\\\",fragmentSource:{average:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat average = (color.r + color.b + color.g) / 3.0;\\\\\\\\ngl_FragColor = vec4(average, average, average, color.a);\\\\\\\\n}\\\\\\\",lightness:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform int uMode;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 col = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\\\\\\\\ngl_FragColor = vec4(average, average, average, col.a);\\\\\\\\n}\\\\\\\",luminosity:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform int uMode;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 col = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\\\\\\\\ngl_FragColor = vec4(average, average, average, col.a);\\\\\\\\n}\\\\\\\"},mode:\\\\\\\"average\\\\\\\",mainParameter:\\\\\\\"mode\\\\\\\",applyTo2d:function(t){var e,i,r=t.imageData.data,n=r.length,o=this.mode;for(e=0;e\\\\u003cn;e+=4)\\\\\\\"average\\\\\\\"===o?i=(r[e]+r[e+1]+r[e+2])/3:\\\\\\\"lightness\\\\\\\"===o?i=(Math.min(r[e],r[e+1],r[e+2])+Math.max(r[e],r[e+1],r[e+2]))/2:\\\\\\\"luminosity\\\\\\\"===o\\\\u0026\\\\u0026(i=.21*r[e]+.72*r[e+1]+.07*r[e+2]),r[e]=i,r[e+1]=i,r[e+2]=i},retrieveShader:function(t){var e=this.type+\\\\\\\"_\\\\\\\"+this.mode;if(!t.programCache.hasOwnProperty(e)){var i=this.fragmentSource[this.mode];t.programCache[e]=this.createProgram(t.context,i)}return t.programCache[e]},getUniformLocations:function(t,e){return{uMode:t.getUniformLocation(e,\\\\\\\"uMode\\\\\\\")}},sendUniformData:function(t,e){t.uniform1i(e.uMode,1)},isNeutralState:function(){return!1}}),e.Image.filters.Grayscale.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Invert=r(i.BaseFilter,{type:\\\\\\\"Invert\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform int uInvert;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nif (uInvert == 1) {\\\\\\\\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\\\\\\\\n} else {\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\\n}\\\\\\\",invert:!0,mainParameter:\\\\\\\"invert\\\\\\\",applyTo2d:function(t){var e,i=t.imageData.data,r=i.length;for(e=0;e\\\\u003cr;e+=4)i[e]=255-i[e],i[e+1]=255-i[e+1],i[e+2]=255-i[e+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(t,e){return{uInvert:t.getUniformLocation(e,\\\\\\\"uInvert\\\\\\\")}},sendUniformData:function(t,e){t.uniform1i(e.uInvert,this.invert)}}),e.Image.filters.Invert.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.Noise=n(r.BaseFilter,{type:\\\\\\\"Noise\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uStepH;\\\\\\\\nuniform float uNoise;\\\\\\\\nuniform float uSeed;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nfloat rand(vec2 co, float seed, float vScale) {\\\\\\\\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\\\\\\\\n}\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",mainParameter:\\\\\\\"noise\\\\\\\",noise:0,applyTo2d:function(t){if(0!==this.noise){var e,i,r=t.imageData.data,n=r.length,o=this.noise;for(e=0,n=r.length;e\\\\u003cn;e+=4)i=(.5-Math.random())*o,r[e]+=i,r[e+1]+=i,r[e+2]+=i}},getUniformLocations:function(t,e){return{uNoise:t.getUniformLocation(e,\\\\\\\"uNoise\\\\\\\"),uSeed:t.getUniformLocation(e,\\\\\\\"uSeed\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uNoise,this.noise/255),t.uniform1f(e.uSeed,Math.random())},toObject:function(){return i(this.callSuper(\\\\\\\"toObject\\\\\\\"),{noise:this.noise})}}),e.Image.filters.Noise.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Pixelate=r(i.BaseFilter,{type:\\\\\\\"Pixelate\\\\\\\",blocksize:4,mainParameter:\\\\\\\"blocksize\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uBlocksize;\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nfloat blockW = uBlocksize * uStepW;\\\\\\\\nfloat blockH = uBlocksize * uStepW;\\\\\\\\nint posX = int(vTexCoord.x / blockW);\\\\\\\\nint posY = int(vTexCoord.y / blockH);\\\\\\\\nfloat fposX = float(posX);\\\\\\\\nfloat fposY = float(posY);\\\\\\\\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\\\\\\\\nvec4 color = texture2D(uTexture, squareCoords);\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",applyTo2d:function(t){var e,i,r,n,o,s,a,h,c,l,u,f=t.imageData,d=f.data,g=f.height,p=f.width;for(i=0;i\\\\u003cg;i+=this.blocksize)for(r=0;r\\\\u003cp;r+=this.blocksize)for(n=d[e=4*i*p+4*r],o=d[e+1],s=d[e+2],a=d[e+3],l=Math.min(i+this.blocksize,g),u=Math.min(r+this.blocksize,p),h=i;h\\\\u003cl;h++)for(c=r;c\\\\u003cu;c++)d[e=4*h*p+4*c]=n,d[e+1]=o,d[e+2]=s,d[e+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(t,e){return{uBlocksize:t.getUniformLocation(e,\\\\\\\"uBlocksize\\\\\\\"),uStepW:t.getUniformLocation(e,\\\\\\\"uStepW\\\\\\\"),uStepH:t.getUniformLocation(e,\\\\\\\"uStepH\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uBlocksize,this.blocksize)}}),e.Image.filters.Pixelate.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.RemoveColor=n(r.BaseFilter,{type:\\\\\\\"RemoveColor\\\\\\\",color:\\\\\\\"#FFFFFF\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec4 uLow;\\\\\\\\nuniform vec4 uHigh;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\ngl_FragColor = texture2D(uTexture, vTexCoord);\\\\\\\\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) \\\\u0026\\\\u0026 all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\\\\\\\\ngl_FragColor.a = 0.0;\\\\\\\\n}\\\\\\\\n}\\\\\\\",distance:.02,useAlpha:!1,applyTo2d:function(t){var i,r,n,o,s=t.imageData.data,a=255*this.distance,h=new e.Color(this.color).getSource(),c=[h[0]-a,h[1]-a,h[2]-a],l=[h[0]+a,h[1]+a,h[2]+a];for(i=0;i\\\\u003cs.length;i+=4)r=s[i],n=s[i+1],o=s[i+2],r\\\\u003ec[0]\\\\u0026\\\\u0026n\\\\u003ec[1]\\\\u0026\\\\u0026o\\\\u003ec[2]\\\\u0026\\\\u0026r\\\\u003cl[0]\\\\u0026\\\\u0026n\\\\u003cl[1]\\\\u0026\\\\u0026o\\\\u003cl[2]\\\\u0026\\\\u0026(s[i+3]=0)},getUniformLocations:function(t,e){return{uLow:t.getUniformLocation(e,\\\\\\\"uLow\\\\\\\"),uHigh:t.getUniformLocation(e,\\\\\\\"uHigh\\\\\\\")}},sendUniformData:function(t,i){var r=new e.Color(this.color).getSource(),n=parseFloat(this.distance),o=[0+r[0]/255-n,0+r[1]/255-n,0+r[2]/255-n,1],s=[r[0]/255+n,r[1]/255+n,r[2]/255+n,1];t.uniform4fv(i.uLow,o),t.uniform4fv(i.uHigh,s)},toObject:function(){return i(this.callSuper(\\\\\\\"toObject\\\\\\\"),{color:this.color,distance:this.distance})}}),e.Image.filters.RemoveColor.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var o in n)i[o]=r(i.ColorMatrix,{type:o,matrix:n[o],mainParameter:!1,colorsOnly:!0}),e.Image.filters[o].fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric,i=e.Image.filters,r=e.util.createClass;i.BlendColor=r(i.BaseFilter,{type:\\\\\\\"BlendColor\\\\\\\",color:\\\\\\\"#F95C63\\\\\\\",mode:\\\\\\\"multiply\\\\\\\",alpha:1,fragmentSource:{multiply:\\\\\\\"gl_FragColor.rgb *= uColor.rgb;\\\\\\\\n\\\\\\\",screen:\\\\\\\"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\\\\\\\\n\\\\\\\",add:\\\\\\\"gl_FragColor.rgb += uColor.rgb;\\\\\\\\n\\\\\\\",diff:\\\\\\\"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\\\\\\\\n\\\\\\\",subtract:\\\\\\\"gl_FragColor.rgb -= uColor.rgb;\\\\\\\\n\\\\\\\",lighten:\\\\\\\"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\\\\\\\\n\\\\\\\",darken:\\\\\\\"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\\\\\\\\n\\\\\\\",exclusion:\\\\\\\"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\\\\\\\\n\\\\\\\",overlay:\\\\\\\"if (uColor.r \\\\u003c 0.5) {\\\\\\\\ngl_FragColor.r *= 2.0 * uColor.r;\\\\\\\\n} else {\\\\\\\\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\\\\\\\\n}\\\\\\\\nif (uColor.g \\\\u003c 0.5) {\\\\\\\\ngl_FragColor.g *= 2.0 * uColor.g;\\\\\\\\n} else {\\\\\\\\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\\\\\\\\n}\\\\\\\\nif (uColor.b \\\\u003c 0.5) {\\\\\\\\ngl_FragColor.b *= 2.0 * uColor.b;\\\\\\\\n} else {\\\\\\\\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\\\\\\\\n}\\\\\\\\n\\\\\\\",tint:\\\\\\\"gl_FragColor.rgb *= (1.0 - uColor.a);\\\\\\\\ngl_FragColor.rgb += uColor.rgb;\\\\\\\\n\\\\\\\"},buildSource:function(t){return\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec4 uColor;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\ngl_FragColor = color;\\\\\\\\nif (color.a \\\\u003e 0.0) {\\\\\\\\n\\\\\\\"+this.fragmentSource[t]+\\\\\\\"}\\\\\\\\n}\\\\\\\"},retrieveShader:function(t){var e,i=this.type+\\\\\\\"_\\\\\\\"+this.mode;return t.programCache.hasOwnProperty(i)||(e=this.buildSource(this.mode),t.programCache[i]=this.createProgram(t.context,e)),t.programCache[i]},applyTo2d:function(t){var i,r,n,o,s,a,h,c=t.imageData.data,l=c.length,u=1-this.alpha;i=(h=new e.Color(this.color).getSource())[0]*this.alpha,r=h[1]*this.alpha,n=h[2]*this.alpha;for(var f=0;f\\\\u003cl;f+=4)switch(o=c[f],s=c[f+1],a=c[f+2],this.mode){case\\\\\\\"multiply\\\\\\\":c[f]=o*i/255,c[f+1]=s*r/255,c[f+2]=a*n/255;break;case\\\\\\\"screen\\\\\\\":c[f]=255-(255-o)*(255-i)/255,c[f+1]=255-(255-s)*(255-r)/255,c[f+2]=255-(255-a)*(255-n)/255;break;case\\\\\\\"add\\\\\\\":c[f]=o+i,c[f+1]=s+r,c[f+2]=a+n;break;case\\\\\\\"diff\\\\\\\":case\\\\\\\"difference\\\\\\\":c[f]=Math.abs(o-i),c[f+1]=Math.abs(s-r),c[f+2]=Math.abs(a-n);break;case\\\\\\\"subtract\\\\\\\":c[f]=o-i,c[f+1]=s-r,c[f+2]=a-n;break;case\\\\\\\"darken\\\\\\\":c[f]=Math.min(o,i),c[f+1]=Math.min(s,r),c[f+2]=Math.min(a,n);break;case\\\\\\\"lighten\\\\\\\":c[f]=Math.max(o,i),c[f+1]=Math.max(s,r),c[f+2]=Math.max(a,n);break;case\\\\\\\"overlay\\\\\\\":c[f]=i\\\\u003c128?2*o*i/255:255-2*(255-o)*(255-i)/255,c[f+1]=r\\\\u003c128?2*s*r/255:255-2*(255-s)*(255-r)/255,c[f+2]=n\\\\u003c128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case\\\\\\\"exclusion\\\\\\\":c[f]=i+o-2*i*o/255,c[f+1]=r+s-2*r*s/255,c[f+2]=n+a-2*n*a/255;break;case\\\\\\\"tint\\\\\\\":c[f]=i+o*u,c[f+1]=r+s*u,c[f+2]=n+a*u}},getUniformLocations:function(t,e){return{uColor:t.getUniformLocation(e,\\\\\\\"uColor\\\\\\\")}},sendUniformData:function(t,i){var r=new e.Color(this.color).getSource();r[0]=this.alpha*r[0]/255,r[1]=this.alpha*r[1]/255,r[2]=this.alpha*r[2]/255,r[3]=this.alpha,t.uniform4fv(i.uColor,r)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendColor.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric,i=e.Image.filters,r=e.util.createClass;i.BlendImage=r(i.BaseFilter,{type:\\\\\\\"BlendImage\\\\\\\",image:null,mode:\\\\\\\"multiply\\\\\\\",alpha:1,vertexSource:\\\\\\\"attribute vec2 aPosition;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvarying vec2 vTexCoord2;\\\\\\\\nuniform mat3 uTransformMatrix;\\\\\\\\nvoid main() {\\\\\\\\nvTexCoord = aPosition;\\\\\\\\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\\\\\\\\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\\\\\\\\n}\\\\\\\",fragmentSource:{multiply:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform sampler2D uImage;\\\\\\\\nuniform vec4 uColor;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvarying vec2 vTexCoord2;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nvec4 color2 = texture2D(uImage, vTexCoord2);\\\\\\\\ncolor.rgba *= color2.rgba;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",mask:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform sampler2D uImage;\\\\\\\\nuniform vec4 uColor;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvarying vec2 vTexCoord2;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nvec4 color2 = texture2D(uImage, vTexCoord2);\\\\\\\\ncolor.a = color2.a;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\"},retrieveShader:function(t){var e=this.type+\\\\\\\"_\\\\\\\"+this.mode,i=this.fragmentSource[this.mode];return t.programCache.hasOwnProperty(e)||(t.programCache[e]=this.createProgram(t.context,i)),t.programCache[e]},applyToWebGL:function(t){var e=t.context,i=this.createTexture(t.filterBackend,this.image);this.bindAdditionalTexture(e,i,e.TEXTURE1),this.callSuper(\\\\\\\"applyToWebGL\\\\\\\",t),this.unbindAdditionalTexture(e,e.TEXTURE1)},createTexture:function(t,e){return t.getCachedTexture(e.cacheKey,e._element)},calculateMatrix:function(){var t=this.image,e=t._element.width,i=t._element.height;return[1/t.scaleX,0,0,0,1/t.scaleY,0,-t.left/e,-t.top/i,1]},applyTo2d:function(t){var i,r,n,o,s,a,h,c,l,u,f,d=t.imageData,g=t.filterBackend.resources,p=d.data,v=p.length,m=d.width,y=d.height,_=this.image;g.blendImage||(g.blendImage=e.util.createCanvasElement()),u=(l=g.blendImage).getContext(\\\\\\\"2d\\\\\\\"),l.width!==m||l.height!==y?(l.width=m,l.height=y):u.clearRect(0,0,m,y),u.setTransform(_.scaleX,0,0,_.scaleY,_.left,_.top),u.drawImage(_._element,0,0,m,y),f=u.getImageData(0,0,m,y).data;for(var b=0;b\\\\u003cv;b+=4)switch(s=p[b],a=p[b+1],h=p[b+2],c=p[b+3],i=f[b],r=f[b+1],n=f[b+2],o=f[b+3],this.mode){case\\\\\\\"multiply\\\\\\\":p[b]=s*i/255,p[b+1]=a*r/255,p[b+2]=h*n/255,p[b+3]=c*o/255;break;case\\\\\\\"mask\\\\\\\":p[b+3]=o}},getUniformLocations:function(t,e){return{uTransformMatrix:t.getUniformLocation(e,\\\\\\\"uTransformMatrix\\\\\\\"),uImage:t.getUniformLocation(e,\\\\\\\"uImage\\\\\\\")}},sendUniformData:function(t,e){var i=this.calculateMatrix();t.uniform1i(e.uImage,1),t.uniformMatrix3fv(e.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image\\\\u0026\\\\u0026this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendImage.fromObject=function(t,i){e.Image.fromObject(t.image,(function(r){var n=e.util.object.clone(t);n.image=r,i(new e.Image.filters.BlendImage(n))}))}}(t),function(t){var e=t.fabric||(t.fabric={}),i=Math.pow,r=Math.floor,n=Math.sqrt,o=Math.abs,s=Math.round,a=Math.sin,h=Math.ceil,c=e.Image.filters,l=e.util.createClass;c.Resize=l(c.BaseFilter,{type:\\\\\\\"Resize\\\\\\\",resizeType:\\\\\\\"hermite\\\\\\\",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(t,e){return{uDelta:t.getUniformLocation(e,\\\\\\\"uDelta\\\\\\\"),uTaps:t.getUniformLocation(e,\\\\\\\"uTaps\\\\\\\")}},sendUniformData:function(t,e){t.uniform2fv(e.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),t.uniform1fv(e.uTaps,this.taps)},retrieveShader:function(t){var e=this.getFilterWindow(),i=this.type+\\\\\\\"_\\\\\\\"+e;if(!t.programCache.hasOwnProperty(i)){var r=this.generateShader(e);t.programCache[i]=this.createProgram(t.context,r)}return t.programCache[i]},getFilterWindow:function(){var t=this.tempScale;return Math.ceil(this.lanczosLobes/t)},getTaps:function(){for(var t=this.lanczosCreate(this.lanczosLobes),e=this.tempScale,i=this.getFilterWindow(),r=new Array(i),n=1;n\\\\u003c=i;n++)r[n-1]=t(n*e);return r},generateShader:function(t){for(var e=new Array(t),i=this.fragmentSourceTOP,r=1;r\\\\u003c=t;r++)e[r-1]=r+\\\\\\\".0 * uDelta\\\\\\\";return i+=\\\\\\\"uniform float uTaps[\\\\\\\"+t+\\\\\\\"];\\\\\\\\n\\\\\\\",i+=\\\\\\\"void main() {\\\\\\\\n\\\\\\\",i+=\\\\\\\"  vec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\n\\\\\\\",i+=\\\\\\\"  float sum = 1.0;\\\\\\\\n\\\\\\\",e.forEach((function(t,e){i+=\\\\\\\"  color += texture2D(uTexture, vTexCoord + \\\\\\\"+t+\\\\\\\") * uTaps[\\\\\\\"+e+\\\\\\\"];\\\\\\\\n\\\\\\\",i+=\\\\\\\"  color += texture2D(uTexture, vTexCoord - \\\\\\\"+t+\\\\\\\") * uTaps[\\\\\\\"+e+\\\\\\\"];\\\\\\\\n\\\\\\\",i+=\\\\\\\"  sum += 2.0 * uTaps[\\\\\\\"+e+\\\\\\\"];\\\\\\\\n\\\\\\\"})),i+=\\\\\\\"  gl_FragColor = color / sum;\\\\\\\\n\\\\\\\",i+=\\\\\\\"}\\\\\\\"},fragmentSourceTOP:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec2 uDelta;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\n\\\\\\\",applyTo:function(t){t.webgl?(t.passes++,this.width=t.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=t.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),t.destinationWidth=this.dW,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceWidth=t.destinationWidth,this.height=t.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),t.destinationHeight=this.dH,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceHeight=t.destinationHeight):this.applyTo2d(t)},isNeutralState:function(){return 1===this.scaleX\\\\u0026\\\\u00261===this.scaleY},lanczosCreate:function(t){return function(e){if(e\\\\u003e=t||e\\\\u003c=-t)return 0;if(e\\\\u003c1.1920929e-7\\\\u0026\\\\u0026e\\\\u003e-1.1920929e-7)return 1;var i=(e*=Math.PI)/t;return a(e)/e*a(i)/i}},applyTo2d:function(t){var e=t.imageData,i=this.scaleX,r=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/r;var n,o=e.width,a=e.height,h=s(o*i),c=s(a*r);\\\\\\\"sliceHack\\\\\\\"===this.resizeType?n=this.sliceByTwo(t,o,a,h,c):\\\\\\\"hermite\\\\\\\"===this.resizeType?n=this.hermiteFastResize(t,o,a,h,c):\\\\\\\"bilinear\\\\\\\"===this.resizeType?n=this.bilinearFiltering(t,o,a,h,c):\\\\\\\"lanczos\\\\\\\"===this.resizeType\\\\u0026\\\\u0026(n=this.lanczosResize(t,o,a,h,c)),t.imageData=n},sliceByTwo:function(t,i,n,o,s){var a,h,c=t.imageData,l=.5,u=!1,f=!1,d=i*l,g=n*l,p=e.filterBackend.resources,v=0,m=0,y=i,_=0;for(p.sliceByTwo||(p.sliceByTwo=document.createElement(\\\\\\\"canvas\\\\\\\")),((a=p.sliceByTwo).width\\\\u003c1.5*i||a.height\\\\u003cn)\\\\u0026\\\\u0026(a.width=1.5*i,a.height=n),(h=a.getContext(\\\\\\\"2d\\\\\\\")).clearRect(0,0,1.5*i,n),h.putImageData(c,0,0),o=r(o),s=r(s);!u||!f;)i=d,n=g,o\\\\u003cr(d*l)?d=r(d*l):(d=o,u=!0),s\\\\u003cr(g*l)?g=r(g*l):(g=s,f=!0),h.drawImage(a,v,m,i,n,y,_,d,g),v=y,m=_,_+=g;return h.getImageData(v,m,o,s)},lanczosResize:function(t,e,s,a,c){var l=t.imageData.data,u=t.ctx.createImageData(a,c),f=u.data,d=this.lanczosCreate(this.lanczosLobes),g=this.rcpScaleX,p=this.rcpScaleY,v=2/this.rcpScaleX,m=2/this.rcpScaleY,y=h(g*this.lanczosLobes/2),_=h(p*this.lanczosLobes/2),b={},x={},C={};return function t(h){var w,S,T,O,P,E,k,A,D,M,j;for(x.x=(h+.5)*g,C.x=r(x.x),w=0;w\\\\u003cc;w++){for(x.y=(w+.5)*p,C.y=r(x.y),P=0,E=0,k=0,A=0,D=0,S=C.x-y;S\\\\u003c=C.x+y;S++)if(!(S\\\\u003c0||S\\\\u003e=e)){M=r(1e3*o(S-x.x)),b[M]||(b[M]={});for(var F=C.y-_;F\\\\u003c=C.y+_;F++)F\\\\u003c0||F\\\\u003e=s||(j=r(1e3*o(F-x.y)),b[M][j]||(b[M][j]=d(n(i(M*v,2)+i(j*m,2))/1e3)),(T=b[M][j])\\\\u003e0\\\\u0026\\\\u0026(P+=T,E+=T*l[O=4*(F*e+S)],k+=T*l[O+1],A+=T*l[O+2],D+=T*l[O+3]))}f[O=4*(w*a+h)]=E/P,f[O+1]=k/P,f[O+2]=A/P,f[O+3]=D/P}return++h\\\\u003ca?t(h):u}(0)},bilinearFiltering:function(t,e,i,n,o){var s,a,h,c,l,u,f,d,g,p=0,v=this.rcpScaleX,m=this.rcpScaleY,y=4*(e-1),_=t.imageData.data,b=t.ctx.createImageData(n,o),x=b.data;for(h=0;h\\\\u003co;h++)for(c=0;c\\\\u003cn;c++)for(l=v*c-(s=r(v*c)),u=m*h-(a=r(m*h)),g=4*(a*e+s),f=0;f\\\\u003c4;f++)d=_[g+f]*(1-l)*(1-u)+_[g+4+f]*l*(1-u)+_[g+y+f]*u*(1-l)+_[g+y+4+f]*l*u,x[p++]=d;return b},hermiteFastResize:function(t,e,i,s,a){for(var c=this.rcpScaleX,l=this.rcpScaleY,u=h(c/2),f=h(l/2),d=t.imageData.data,g=t.ctx.createImageData(s,a),p=g.data,v=0;v\\\\u003ca;v++)for(var m=0;m\\\\u003cs;m++){for(var y=4*(m+v*s),_=0,b=0,x=0,C=0,w=0,S=0,T=0,O=(v+.5)*l,P=r(v*l);P\\\\u003c(v+1)*l;P++)for(var E=o(O-(P+.5))/f,k=(m+.5)*c,A=E*E,D=r(m*c);D\\\\u003c(m+1)*c;D++){var M=o(k-(D+.5))/u,j=n(A+M*M);j\\\\u003e1\\\\u0026\\\\u0026j\\\\u003c-1||(_=2*j*j*j-3*j*j+1)\\\\u003e0\\\\u0026\\\\u0026(T+=_*d[(M=4*(D+P*e))+3],x+=_,d[M+3]\\\\u003c255\\\\u0026\\\\u0026(_=_*d[M+3]/250),C+=_*d[M],w+=_*d[M+1],S+=_*d[M+2],b+=_)}p[y]=C/b,p[y+1]=w/b,p[y+2]=S/b,p[y+3]=T/x}return g},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),e.Image.filters.Resize.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Contrast=r(i.BaseFilter,{type:\\\\\\\"Contrast\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uContrast;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\\\\\\\\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",contrast:0,mainParameter:\\\\\\\"contrast\\\\\\\",applyTo2d:function(t){if(0!==this.contrast){var e,i=t.imageData.data,r=i.length,n=Math.floor(255*this.contrast),o=259*(n+255)/(255*(259-n));for(e=0;e\\\\u003cr;e+=4)i[e]=o*(i[e]-128)+128,i[e+1]=o*(i[e+1]-128)+128,i[e+2]=o*(i[e+2]-128)+128}},getUniformLocations:function(t,e){return{uContrast:t.getUniformLocation(e,\\\\\\\"uContrast\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uContrast,this.contrast)}}),e.Image.filters.Contrast.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Saturation=r(i.BaseFilter,{type:\\\\\\\"Saturation\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uSaturation;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat rgMax = max(color.r, color.g);\\\\\\\\nfloat rgbMax = max(rgMax, color.b);\\\\\\\\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\\\\\\\\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\\\\\\\\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",saturation:0,mainParameter:\\\\\\\"saturation\\\\\\\",applyTo2d:function(t){if(0!==this.saturation){var e,i,r=t.imageData.data,n=r.length,o=-this.saturation;for(e=0;e\\\\u003cn;e+=4)i=Math.max(r[e],r[e+1],r[e+2]),r[e]+=i!==r[e]?(i-r[e])*o:0,r[e+1]+=i!==r[e+1]?(i-r[e+1])*o:0,r[e+2]+=i!==r[e+2]?(i-r[e+2])*o:0}},getUniformLocations:function(t,e){return{uSaturation:t.getUniformLocation(e,\\\\\\\"uSaturation\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uSaturation,-this.saturation)}}),e.Image.filters.Saturation.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Vibrance=r(i.BaseFilter,{type:\\\\\\\"Vibrance\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uVibrance;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat max = max(color.r, max(color.g, color.b));\\\\\\\\nfloat avg = (color.r + color.g + color.b) / 3.0;\\\\\\\\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\\\\\\\\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\\\\\\\\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\\\\\\\\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",vibrance:0,mainParameter:\\\\\\\"vibrance\\\\\\\",applyTo2d:function(t){if(0!==this.vibrance){var e,i,r,n,o=t.imageData.data,s=o.length,a=-this.vibrance;for(e=0;e\\\\u003cs;e+=4)i=Math.max(o[e],o[e+1],o[e+2]),r=(o[e]+o[e+1]+o[e+2])/3,n=2*Math.abs(i-r)/255*a,o[e]+=i!==o[e]?(i-o[e])*n:0,o[e+1]+=i!==o[e+1]?(i-o[e+1])*n:0,o[e+2]+=i!==o[e+2]?(i-o[e+2])*n:0}},getUniformLocations:function(t,e){return{uVibrance:t.getUniformLocation(e,\\\\\\\"uVibrance\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uVibrance,-this.vibrance)}}),e.Image.filters.Vibrance.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Blur=r(i.BaseFilter,{type:\\\\\\\"Blur\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec2 uDelta;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nconst float nSamples = 15.0;\\\\\\\\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\\\\\\\\nfloat random(vec3 scale) {\\\\\\\\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\\\\\\\\n}\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0.0);\\\\\\\\nfloat total = 0.0;\\\\\\\\nfloat offset = random(v3offset);\\\\\\\\nfor (float t = -nSamples; t \\\\u003c= nSamples; t++) {\\\\\\\\nfloat percent = (t + offset - 0.5) / nSamples;\\\\\\\\nfloat weight = 1.0 - abs(percent);\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\\\\\\\\ntotal += weight;\\\\\\\\n}\\\\\\\\ngl_FragColor = color / total;\\\\\\\\n}\\\\\\\",blur:0,mainParameter:\\\\\\\"blur\\\\\\\",applyTo:function(t){t.webgl?(this.aspectRatio=t.sourceWidth/t.sourceHeight,t.passes++,this._setupFrameBuffer(t),this.horizontal=!0,this.applyToWebGL(t),this._swapTextures(t),this._setupFrameBuffer(t),this.horizontal=!1,this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},applyTo2d:function(t){t.imageData=this.simpleBlur(t)},simpleBlur:function(t){var i,r,n=t.filterBackend.resources,o=t.imageData.width,s=t.imageData.height;n.blurLayer1||(n.blurLayer1=e.util.createCanvasElement(),n.blurLayer2=e.util.createCanvasElement()),i=n.blurLayer1,r=n.blurLayer2,i.width===o\\\\u0026\\\\u0026i.height===s||(r.width=i.width=o,r.height=i.height=s);var a,h,c,l,u=i.getContext(\\\\\\\"2d\\\\\\\"),f=r.getContext(\\\\\\\"2d\\\\\\\"),d=15,g=.06*this.blur*.5;for(u.putImageData(t.imageData,0,0),f.clearRect(0,0,o,s),l=-15;l\\\\u003c=d;l++)c=g*(h=l/d)*o+(a=(Math.random()-.5)/4),f.globalAlpha=1-Math.abs(h),f.drawImage(i,c,a),u.drawImage(r,0,0),f.globalAlpha=1,f.clearRect(0,0,r.width,r.height);for(l=-15;l\\\\u003c=d;l++)c=g*(h=l/d)*s+(a=(Math.random()-.5)/4),f.globalAlpha=1-Math.abs(h),f.drawImage(i,a,c),u.drawImage(r,0,0),f.globalAlpha=1,f.clearRect(0,0,r.width,r.height);t.ctx.drawImage(i,0,0);var p=t.ctx.getImageData(0,0,i.width,i.height);return u.globalAlpha=1,u.clearRect(0,0,i.width,i.height),p},getUniformLocations:function(t,e){return{delta:t.getUniformLocation(e,\\\\\\\"uDelta\\\\\\\")}},sendUniformData:function(t,e){var i=this.chooseRightDelta();t.uniform2fv(e.delta,i)},chooseRightDelta:function(){var t,e=1,i=[0,0];return this.horizontal?this.aspectRatio\\\\u003e1\\\\u0026\\\\u0026(e=1/this.aspectRatio):this.aspectRatio\\\\u003c1\\\\u0026\\\\u0026(e=this.aspectRatio),t=e*this.blur*.12,this.horizontal?i[0]=t:i[1]=t,i}}),i.Blur.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Gamma=r(i.BaseFilter,{type:\\\\\\\"Gamma\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec3 uGamma;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nvec3 correction = (1.0 / uGamma);\\\\\\\\ncolor.r = pow(color.r, correction.r);\\\\\\\\ncolor.g = pow(color.g, correction.g);\\\\\\\\ncolor.b = pow(color.b, correction.b);\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.rgb *= color.a;\\\\\\\\n}\\\\\\\",gamma:[1,1,1],mainParameter:\\\\\\\"gamma\\\\\\\",initialize:function(t){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,t)},applyTo2d:function(t){var e,i=t.imageData.data,r=this.gamma,n=i.length,o=1/r[0],s=1/r[1],a=1/r[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),e=0,n=256;e\\\\u003cn;e++)this.rVals[e]=255*Math.pow(e/255,o),this.gVals[e]=255*Math.pow(e/255,s),this.bVals[e]=255*Math.pow(e/255,a);for(e=0,n=i.length;e\\\\u003cn;e+=4)i[e]=this.rVals[i[e]],i[e+1]=this.gVals[i[e+1]],i[e+2]=this.bVals[i[e+2]]},getUniformLocations:function(t,e){return{uGamma:t.getUniformLocation(e,\\\\\\\"uGamma\\\\\\\")}},sendUniformData:function(t,e){t.uniform3fv(e.uGamma,this.gamma)}}),e.Image.filters.Gamma.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Composed=r(i.BaseFilter,{type:\\\\\\\"Composed\\\\\\\",subFilters:[],initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this.subFilters=this.subFilters.slice(0)},applyTo:function(t){t.passes+=this.subFilters.length-1,this.subFilters.forEach((function(e){e.applyTo(t)}))},toObject:function(){return e.util.object.extend(this.callSuper(\\\\\\\"toObject\\\\\\\"),{subFilters:this.subFilters.map((function(t){return t.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(t){return!t.isNeutralState()}))}}),e.Image.filters.Composed.fromObject=function(t,i){var r=(t.subFilters||[]).map((function(t){return new e.Image.filters[t.type](t)})),n=new e.Image.filters.Composed({subFilters:r});return i\\\\u0026\\\\u0026i(n),n}}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.HueRotation=r(i.ColorMatrix,{type:\\\\\\\"HueRotation\\\\\\\",rotation:0,mainParameter:\\\\\\\"rotation\\\\\\\",calculateMatrix:function(){var t=this.rotation*Math.PI,i=e.util.cos(t),r=e.util.sin(t),n=1/3,o=Math.sqrt(n)*r,s=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+s/3,this.matrix[1]=n*s-o,this.matrix[2]=n*s+o,this.matrix[5]=n*s+o,this.matrix[6]=i+n*s,this.matrix[7]=n*s-o,this.matrix[10]=n*s-o,this.matrix[11]=n*s+o,this.matrix[12]=i+n*s},isNeutralState:function(t){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,t)},applyTo:function(t){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,t)}}),e.Image.filters.HueRotation.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.clone;if(e.Text)e.warn(\\\\\\\"fabric.Text is already defined\\\\\\\");else{var r=\\\\\\\"fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide\\\\\\\".split(\\\\\\\" \\\\\\\");e.Text=e.util.createClass(e.Object,{_dimensionAffectingProps:[\\\\\\\"fontSize\\\\\\\",\\\\\\\"fontWeight\\\\\\\",\\\\\\\"fontFamily\\\\\\\",\\\\\\\"fontStyle\\\\\\\",\\\\\\\"lineHeight\\\\\\\",\\\\\\\"text\\\\\\\",\\\\\\\"charSpacing\\\\\\\",\\\\\\\"textAlign\\\\\\\",\\\\\\\"styles\\\\\\\",\\\\\\\"path\\\\\\\",\\\\\\\"pathStartOffset\\\\\\\",\\\\\\\"pathSide\\\\\\\"],_reNewline:/\\\\\\\\r?\\\\\\\\n/,_reSpacesAndTabs:/[ \\\\\\\\t\\\\\\\\r]/g,_reSpaceAndTab:/[ \\\\\\\\t\\\\\\\\r]/,_reWords:/\\\\\\\\S+/g,type:\\\\\\\"text\\\\\\\",fontSize:40,fontWeight:\\\\\\\"normal\\\\\\\",fontFamily:\\\\\\\"Times New Roman\\\\\\\",underline:!1,overline:!1,linethrough:!1,textAlign:\\\\\\\"left\\\\\\\",fontStyle:\\\\\\\"normal\\\\\\\",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:\\\\\\\"\\\\\\\",stateProperties:e.Object.prototype.stateProperties.concat(r),cacheProperties:e.Object.prototype.cacheProperties.concat(r),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:\\\\\\\"left\\\\\\\",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:\\\\\\\"ltr\\\\\\\",_styleProperties:[\\\\\\\"stroke\\\\\\\",\\\\\\\"strokeWidth\\\\\\\",\\\\\\\"fill\\\\\\\",\\\\\\\"fontFamily\\\\\\\",\\\\\\\"fontSize\\\\\\\",\\\\\\\"fontWeight\\\\\\\",\\\\\\\"fontStyle\\\\\\\",\\\\\\\"underline\\\\\\\",\\\\\\\"overline\\\\\\\",\\\\\\\"linethrough\\\\\\\",\\\\\\\"deltaY\\\\\\\",\\\\\\\"textBackgroundColor\\\\\\\"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(t,e){this.styles=e\\\\u0026\\\\u0026e.styles||{},this.text=t,this.__skipDimension=!0,this.callSuper(\\\\\\\"initialize\\\\\\\",e),this.path\\\\u0026\\\\u0026this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:\\\\\\\"_dimensionAffectingProps\\\\\\\"})},setPathInfo:function(){var t=this.path;t\\\\u0026\\\\u0026(t.segmentsInfo=e.util.getPathSegmentsInfo(t.path))},getMeasuringContext:function(){return e._measuringContext||(e._measuringContext=this.canvas\\\\u0026\\\\u0026this.canvas.contextCache||e.util.createCanvasElement().getContext(\\\\\\\"2d\\\\\\\")),e._measuringContext},_splitText:function(){var t=this._splitTextIntoLines(this.text);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,t},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\")\\\\u0026\\\\u0026this.enlargeSpaces(),this.saveState({propertySet:\\\\\\\"_dimensionAffectingProps\\\\\\\"}))},enlargeSpaces:function(){for(var t,e,i,r,n,o,s,a=0,h=this._textLines.length;a\\\\u003ch;a++)if((\\\\\\\"justify\\\\\\\"===this.textAlign||a!==h-1\\\\u0026\\\\u0026!this.isEndOfWrapping(a))\\\\u0026\\\\u0026(r=0,n=this._textLines[a],(e=this.getLineWidth(a))\\\\u003cthis.width\\\\u0026\\\\u0026(s=this.textLines[a].match(this._reSpacesAndTabs)))){i=s.length,t=(this.width-e)/i;for(var c=0,l=n.length;c\\\\u003c=l;c++)o=this.__charBounds[a][c],this._reSpaceAndTab.test(n[c])?(o.width+=t,o.kernedWidth+=t,o.left+=r,r+=t):o.left+=r}},isEndOfWrapping:function(t){return t===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return\\\\\\\"#\\\\u003cfabric.Text (\\\\\\\"+this.complexity()+'): { \\\\\\\"text\\\\\\\": \\\\\\\"'+this.text+'\\\\\\\", \\\\\\\"fontFamily\\\\\\\": \\\\\\\"'+this.fontFamily+'\\\\\\\" }\\\\u003e'},_getCacheCanvasDimensions:function(){var t=this.callSuper(\\\\\\\"_getCacheCanvasDimensions\\\\\\\"),e=this.fontSize;return t.width+=e*t.zoomX,t.height+=e*t.zoomY,t},_render:function(t){var e=this.path;e\\\\u0026\\\\u0026!e.isNotVisible()\\\\u0026\\\\u0026e._render(t),this._setTextStyles(t),this._renderTextLinesBackground(t),this._renderTextDecoration(t,\\\\\\\"underline\\\\\\\"),this._renderText(t),this._renderTextDecoration(t,\\\\\\\"overline\\\\\\\"),this._renderTextDecoration(t,\\\\\\\"linethrough\\\\\\\")},_renderText:function(t){\\\\\\\"stroke\\\\\\\"===this.paintFirst?(this._renderTextStroke(t),this._renderTextFill(t)):(this._renderTextFill(t),this._renderTextStroke(t))},_setTextStyles:function(t,e,i){t.textBaseline=\\\\\\\"alphabetic\\\\\\\",t.font=this._getFontDeclaration(e,i)},calcTextWidth:function(){for(var t=this.getLineWidth(0),e=1,i=this._textLines.length;e\\\\u003ci;e++){var r=this.getLineWidth(e);r\\\\u003et\\\\u0026\\\\u0026(t=r)}return t},_renderTextLine:function(t,e,i,r,n,o){this._renderChars(t,e,i,r,n,o)},_renderTextLinesBackground:function(t){if(this.textBackgroundColor||this.styleHas(\\\\\\\"textBackgroundColor\\\\\\\")){for(var e,i,r,n,o,s,a,h=t.fillStyle,c=this._getLeftOffset(),l=this._getTopOffset(),u=0,f=0,d=this.path,g=0,p=this._textLines.length;g\\\\u003cp;g++)if(e=this.getHeightOfLine(g),this.textBackgroundColor||this.styleHas(\\\\\\\"textBackgroundColor\\\\\\\",g)){r=this._textLines[g],i=this._getLineLeftOffset(g),f=0,u=0,n=this.getValueOfPropertyAt(g,0,\\\\\\\"textBackgroundColor\\\\\\\");for(var v=0,m=r.length;v\\\\u003cm;v++)o=this.__charBounds[g][v],s=this.getValueOfPropertyAt(g,v,\\\\\\\"textBackgroundColor\\\\\\\"),d?(t.save(),t.translate(o.renderLeft,o.renderTop),t.rotate(o.angle),t.fillStyle=s,s\\\\u0026\\\\u0026t.fillRect(-o.width/2,-e/this.lineHeight*(1-this._fontSizeFraction),o.width,e/this.lineHeight),t.restore()):s!==n?(a=c+i+u,\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(a=this.width-a-f),t.fillStyle=n,n\\\\u0026\\\\u0026t.fillRect(a,l,f,e/this.lineHeight),u=o.left,f=o.width,n=s):f+=o.kernedWidth;s\\\\u0026\\\\u0026!d\\\\u0026\\\\u0026(a=c+i+u,\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(a=this.width-a-f),t.fillStyle=s,t.fillRect(a,l,f,e/this.lineHeight)),l+=e}else l+=e;t.fillStyle=h,this._removeShadow(t)}},getFontCache:function(t){var i=t.fontFamily.toLowerCase();e.charWidthsCache[i]||(e.charWidthsCache[i]={});var r=e.charWidthsCache[i],n=t.fontStyle.toLowerCase()+\\\\\\\"_\\\\\\\"+(t.fontWeight+\\\\\\\"\\\\\\\").toLowerCase();return r[n]||(r[n]={}),r[n]},_measureChar:function(t,e,i,r){var n,o,s,a,h=this.getFontCache(e),c=i+t,l=this._getFontDeclaration(e)===this._getFontDeclaration(r),u=e.fontSize/this.CACHE_FONT_SIZE;if(i\\\\u0026\\\\u0026void 0!==h[i]\\\\u0026\\\\u0026(s=h[i]),void 0!==h[t]\\\\u0026\\\\u0026(a=n=h[t]),l\\\\u0026\\\\u0026void 0!==h[c]\\\\u0026\\\\u0026(a=(o=h[c])-s),void 0===n||void 0===s||void 0===o){var f=this.getMeasuringContext();this._setTextStyles(f,e,!0)}return void 0===n\\\\u0026\\\\u0026(a=n=f.measureText(t).width,h[t]=n),void 0===s\\\\u0026\\\\u0026l\\\\u0026\\\\u0026i\\\\u0026\\\\u0026(s=f.measureText(i).width,h[i]=s),l\\\\u0026\\\\u0026void 0===o\\\\u0026\\\\u0026(o=f.measureText(c).width,h[c]=o,a=o-s),{width:n*u,kernedWidth:a*u}},getHeightOfChar:function(t,e){return this.getValueOfPropertyAt(t,e,\\\\\\\"fontSize\\\\\\\")},measureLine:function(t){var e=this._measureLine(t);return 0!==this.charSpacing\\\\u0026\\\\u0026(e.width-=this._getWidthOfCharSpacing()),e.width\\\\u003c0\\\\u0026\\\\u0026(e.width=0),e},_measureLine:function(t){var i,r,n,o,s,a,h=0,c=this._textLines[t],l=new Array(c.length),u=0,f=this.path,d=\\\\\\\"right\\\\\\\"===this.pathSide;for(this.__charBounds[t]=l,i=0;i\\\\u003cc.length;i++)r=c[i],o=this._getGraphemeBox(r,t,i,n),l[i]=o,h+=o.kernedWidth,n=r;if(l[i]={left:o?o.left+o.width:0,width:0,kernedWidth:0,height:this.fontSize},f){switch(a=f.segmentsInfo[f.segmentsInfo.length-1].length,(s=e.util.getPointOnPath(f.path,0,f.segmentsInfo)).x+=f.pathOffset.x,s.y+=f.pathOffset.y,this.textAlign){case\\\\\\\"left\\\\\\\":u=d?a-h:0;break;case\\\\\\\"center\\\\\\\":u=(a-h)/2;break;case\\\\\\\"right\\\\\\\":u=d?0:a-h}for(u+=this.pathStartOffset*(d?-1:1),i=d?c.length-1:0;d?i\\\\u003e=0:i\\\\u003cc.length;d?i--:i++)o=l[i],u\\\\u003ea?u%=a:u\\\\u003c0\\\\u0026\\\\u0026(u+=a),this._setGraphemeOnPath(u,o,s),u+=o.kernedWidth}return{width:h,numOfSpaces:0}},_setGraphemeOnPath:function(t,i,r){var n=t+i.kernedWidth/2,o=this.path,s=e.util.getPointOnPath(o.path,n,o.segmentsInfo);i.renderLeft=s.x-r.x,i.renderTop=s.y-r.y,i.angle=s.angle+(\\\\\\\"right\\\\\\\"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(t,e,i,r,n){var o,s=this.getCompleteStyleDeclaration(e,i),a=r?this.getCompleteStyleDeclaration(e,i-1):{},h=this._measureChar(t,s,r,a),c=h.kernedWidth,l=h.width;0!==this.charSpacing\\\\u0026\\\\u0026(l+=o=this._getWidthOfCharSpacing(),c+=o);var u={width:l,left:0,height:s.fontSize,kernedWidth:c,deltaY:s.deltaY};if(i\\\\u003e0\\\\u0026\\\\u0026!n){var f=this.__charBounds[e][i-1];u.left=f.left+f.width+h.kernedWidth-h.width}return u},getHeightOfLine:function(t){if(this.__lineHeights[t])return this.__lineHeights[t];for(var e=this._textLines[t],i=this.getHeightOfChar(t,0),r=1,n=e.length;r\\\\u003cn;r++)i=Math.max(this.getHeightOfChar(t,r),i);return this.__lineHeights[t]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var t,e=0,i=0,r=this._textLines.length;i\\\\u003cr;i++)t=this.getHeightOfLine(i),e+=i===r-1?t/this.lineHeight:t;return e},_getLeftOffset:function(){return\\\\\\\"ltr\\\\\\\"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(t,e){t.save();for(var i=0,r=this._getLeftOffset(),n=this._getTopOffset(),o=0,s=this._textLines.length;o\\\\u003cs;o++){var a=this.getHeightOfLine(o),h=a/this.lineHeight,c=this._getLineLeftOffset(o);this._renderTextLine(e,t,this._textLines[o],r+c,n+i+h,o),i+=a}t.restore()},_renderTextFill:function(t){(this.fill||this.styleHas(\\\\\\\"fill\\\\\\\"))\\\\u0026\\\\u0026this._renderTextCommon(t,\\\\\\\"fillText\\\\\\\")},_renderTextStroke:function(t){(this.stroke\\\\u0026\\\\u00260!==this.strokeWidth||!this.isEmptyStyles())\\\\u0026\\\\u0026(this.shadow\\\\u0026\\\\u0026!this.shadow.affectStroke\\\\u0026\\\\u0026this._removeShadow(t),t.save(),this._setLineDash(t,this.strokeDashArray),t.beginPath(),this._renderTextCommon(t,\\\\\\\"strokeText\\\\\\\"),t.closePath(),t.restore())},_renderChars:function(t,e,i,r,n,o){var s,a,h,c,l,u=this.getHeightOfLine(o),f=-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\"),d=\\\\\\\"\\\\\\\",g=0,p=this.path,v=!f\\\\u0026\\\\u00260===this.charSpacing\\\\u0026\\\\u0026this.isEmptyStyles(o)\\\\u0026\\\\u0026!p,m=\\\\\\\"ltr\\\\\\\"===this.direction,y=\\\\\\\"ltr\\\\\\\"===this.direction?1:-1;if(e.save(),n-=u*this._fontSizeFraction/this.lineHeight,v)return e.canvas.setAttribute(\\\\\\\"dir\\\\\\\",m?\\\\\\\"ltr\\\\\\\":\\\\\\\"rtl\\\\\\\"),e.direction=m?\\\\\\\"ltr\\\\\\\":\\\\\\\"rtl\\\\\\\",e.textAlign=m?\\\\\\\"left\\\\\\\":\\\\\\\"right\\\\\\\",this._renderChar(t,e,o,0,i.join(\\\\\\\"\\\\\\\"),r,n,u),void e.restore();for(var _=0,b=i.length-1;_\\\\u003c=b;_++)c=_===b||this.charSpacing||p,d+=i[_],h=this.__charBounds[o][_],0===g?(r+=y*(h.kernedWidth-h.width),g+=h.width):g+=h.kernedWidth,f\\\\u0026\\\\u0026!c\\\\u0026\\\\u0026this._reSpaceAndTab.test(i[_])\\\\u0026\\\\u0026(c=!0),c||(s=s||this.getCompleteStyleDeclaration(o,_),a=this.getCompleteStyleDeclaration(o,_+1),c=this._hasStyleChanged(s,a)),c\\\\u0026\\\\u0026(p?(e.save(),e.translate(h.renderLeft,h.renderTop),e.rotate(h.angle),this._renderChar(t,e,o,_,d,-g/2,0,u),e.restore()):(l=r,e.canvas.setAttribute(\\\\\\\"dir\\\\\\\",m?\\\\\\\"ltr\\\\\\\":\\\\\\\"rtl\\\\\\\"),e.direction=m?\\\\\\\"ltr\\\\\\\":\\\\\\\"rtl\\\\\\\",e.textAlign=m?\\\\\\\"left\\\\\\\":\\\\\\\"right\\\\\\\",this._renderChar(t,e,o,_,d,l,n,u)),d=\\\\\\\"\\\\\\\",s=a,r+=y*g,g=0);e.restore()},_applyPatternGradientTransformText:function(t){var i,r=e.util.createCanvasElement(),n=this.width+this.strokeWidth,o=this.height+this.strokeWidth;return r.width=n,r.height=o,(i=r.getContext(\\\\\\\"2d\\\\\\\")).beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,o),i.lineTo(0,o),i.closePath(),i.translate(n/2,o/2),i.fillStyle=t.toLive(i),this._applyPatternGradientTransform(i,t),i.fill(),i.createPattern(r,\\\\\\\"no-repeat\\\\\\\")},handleFiller:function(t,e,i){var r,n;return i.toLive?\\\\\\\"percentage\\\\\\\"===i.gradientUnits||i.gradientTransform||i.patternTransform?(r=-this.width/2,n=-this.height/2,t.translate(r,n),t[e]=this._applyPatternGradientTransformText(i),{offsetX:r,offsetY:n}):(t[e]=i.toLive(t,this),this._applyPatternGradientTransform(t,i)):(t[e]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(t,e){return t.lineWidth=e.strokeWidth,t.lineCap=this.strokeLineCap,t.lineDashOffset=this.strokeDashOffset,t.lineJoin=this.strokeLineJoin,t.miterLimit=this.strokeMiterLimit,this.handleFiller(t,\\\\\\\"strokeStyle\\\\\\\",e.stroke)},_setFillStyles:function(t,e){return this.handleFiller(t,\\\\\\\"fillStyle\\\\\\\",e.fill)},_renderChar:function(t,e,i,r,n,o,s){var a,h,c=this._getStyleDeclaration(i,r),l=this.getCompleteStyleDeclaration(i,r),u=\\\\\\\"fillText\\\\\\\"===t\\\\u0026\\\\u0026l.fill,f=\\\\\\\"strokeText\\\\\\\"===t\\\\u0026\\\\u0026l.stroke\\\\u0026\\\\u0026l.strokeWidth;(f||u)\\\\u0026\\\\u0026(e.save(),u\\\\u0026\\\\u0026(a=this._setFillStyles(e,l)),f\\\\u0026\\\\u0026(h=this._setStrokeStyles(e,l)),e.font=this._getFontDeclaration(l),c\\\\u0026\\\\u0026c.textBackgroundColor\\\\u0026\\\\u0026this._removeShadow(e),c\\\\u0026\\\\u0026c.deltaY\\\\u0026\\\\u0026(s+=c.deltaY),u\\\\u0026\\\\u0026e.fillText(n,o-a.offsetX,s-a.offsetY),f\\\\u0026\\\\u0026e.strokeText(n,o-h.offsetX,s-h.offsetY),e.restore())},setSuperscript:function(t,e){return this._setScript(t,e,this.superscript)},setSubscript:function(t,e){return this._setScript(t,e,this.subscript)},_setScript:function(t,e,i){var r=this.get2DCursorLocation(t,!0),n=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,\\\\\\\"fontSize\\\\\\\"),o=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,\\\\\\\"deltaY\\\\\\\"),s={fontSize:n*i.size,deltaY:o+n*i.baseline};return this.setSelectionStyles(s,t,e),this},_hasStyleChanged:function(t,e){return t.fill!==e.fill||t.stroke!==e.stroke||t.strokeWidth!==e.strokeWidth||t.fontSize!==e.fontSize||t.fontFamily!==e.fontFamily||t.fontWeight!==e.fontWeight||t.fontStyle!==e.fontStyle||t.deltaY!==e.deltaY},_hasStyleChangedForSvg:function(t,e){return this._hasStyleChanged(t,e)||t.overline!==e.overline||t.underline!==e.underline||t.linethrough!==e.linethrough},_getLineLeftOffset:function(t){var e=this.getLineWidth(t),i=this.width-e,r=this.textAlign,n=this.direction,o=0,s=this.isEndOfWrapping(t);return\\\\\\\"justify\\\\\\\"===r||\\\\\\\"justify-center\\\\\\\"===r\\\\u0026\\\\u0026!s||\\\\\\\"justify-right\\\\\\\"===r\\\\u0026\\\\u0026!s||\\\\\\\"justify-left\\\\\\\"===r\\\\u0026\\\\u0026!s?0:(\\\\\\\"center\\\\\\\"===r\\\\u0026\\\\u0026(o=i/2),\\\\\\\"right\\\\\\\"===r\\\\u0026\\\\u0026(o=i),\\\\\\\"justify-center\\\\\\\"===r\\\\u0026\\\\u0026(o=i/2),\\\\\\\"justify-right\\\\\\\"===r\\\\u0026\\\\u0026(o=i),\\\\\\\"rtl\\\\\\\"===n\\\\u0026\\\\u0026(o-=i),o)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var t=this._forceClearCache;return t||(t=this.hasStateChanged(\\\\\\\"_dimensionAffectingProps\\\\\\\")),t\\\\u0026\\\\u0026(this.dirty=!0,this._forceClearCache=!1),t},getLineWidth:function(t){return this.__lineWidths[t]?this.__lineWidths[t]:(e=\\\\\\\"\\\\\\\"===this._textLines[t]?0:this.measureLine(t).width,this.__lineWidths[t]=e,e);var e},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(t,e,i){var r=this._getStyleDeclaration(t,e);return r\\\\u0026\\\\u0026void 0!==r[i]?r[i]:this[i]},_renderTextDecoration:function(t,e){if(this[e]||this.styleHas(e)){for(var i,r,n,o,s,a,h,c,l,u,f,d,g,p,v,m,y=this._getLeftOffset(),_=this._getTopOffset(),b=this.path,x=this._getWidthOfCharSpacing(),C=this.offsets[e],w=0,S=this._textLines.length;w\\\\u003cS;w++)if(i=this.getHeightOfLine(w),this[e]||this.styleHas(e,w)){h=this._textLines[w],p=i/this.lineHeight,o=this._getLineLeftOffset(w),u=0,f=0,c=this.getValueOfPropertyAt(w,0,e),m=this.getValueOfPropertyAt(w,0,\\\\\\\"fill\\\\\\\"),l=_+p*(1-this._fontSizeFraction),r=this.getHeightOfChar(w,0),s=this.getValueOfPropertyAt(w,0,\\\\\\\"deltaY\\\\\\\");for(var T=0,O=h.length;T\\\\u003cO;T++)if(d=this.__charBounds[w][T],g=this.getValueOfPropertyAt(w,T,e),v=this.getValueOfPropertyAt(w,T,\\\\\\\"fill\\\\\\\"),n=this.getHeightOfChar(w,T),a=this.getValueOfPropertyAt(w,T,\\\\\\\"deltaY\\\\\\\"),b\\\\u0026\\\\u0026g\\\\u0026\\\\u0026v)t.save(),t.fillStyle=m,t.translate(d.renderLeft,d.renderTop),t.rotate(d.angle),t.fillRect(-d.kernedWidth/2,C*n+a,d.kernedWidth,this.fontSize/15),t.restore();else if((g!==c||v!==m||n!==r||a!==s)\\\\u0026\\\\u0026f\\\\u003e0){var P=y+o+u;\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(P=this.width-P-f),c\\\\u0026\\\\u0026m\\\\u0026\\\\u0026(t.fillStyle=m,t.fillRect(P,l+C*r+s,f,this.fontSize/15)),u=d.left,f=d.width,c=g,m=v,r=n,s=a}else f+=d.kernedWidth;P=y+o+u;\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(P=this.width-P-f),t.fillStyle=v,g\\\\u0026\\\\u0026v\\\\u0026\\\\u0026t.fillRect(P,l+C*r+s,f-x,this.fontSize/15),_+=i}else _+=i;this._removeShadow(t)}},_getFontDeclaration:function(t,i){var r=t||this,n=this.fontFamily,o=e.Text.genericFonts.indexOf(n.toLowerCase())\\\\u003e-1,s=void 0===n||n.indexOf(\\\\\\\"'\\\\\\\")\\\\u003e-1||n.indexOf(\\\\\\\",\\\\\\\")\\\\u003e-1||n.indexOf('\\\\\\\"')\\\\u003e-1||o?r.fontFamily:'\\\\\\\"'+r.fontFamily+'\\\\\\\"';return[e.isLikelyNode?r.fontWeight:r.fontStyle,e.isLikelyNode?r.fontStyle:r.fontWeight,i?this.CACHE_FONT_SIZE+\\\\\\\"px\\\\\\\":r.fontSize+\\\\\\\"px\\\\\\\",s].join(\\\\\\\" \\\\\\\")},render:function(t){this.visible\\\\u0026\\\\u0026(this.canvas\\\\u0026\\\\u0026this.canvas.skipOffscreen\\\\u0026\\\\u0026!this.group\\\\u0026\\\\u0026!this.isOnScreen()||(this._shouldClearDimensionCache()\\\\u0026\\\\u0026this.initDimensions(),this.callSuper(\\\\\\\"render\\\\\\\",t)))},_splitTextIntoLines:function(t){for(var i=t.split(this._reNewline),r=new Array(i.length),n=[\\\\\\\"\\\\\\\\n\\\\\\\"],o=[],s=0;s\\\\u003ci.length;s++)r[s]=e.util.string.graphemeSplit(i[s]),o=o.concat(r[s],n);return o.pop(),{_unwrappedLines:r,lines:i,graphemeText:o,graphemeLines:r}},toObject:function(t){var e=r.concat(t),n=this.callSuper(\\\\\\\"toObject\\\\\\\",e);return n.styles=i(this.styles,!0),n.path\\\\u0026\\\\u0026(n.path=this.path.toObject()),n},set:function(t,e){this.callSuper(\\\\\\\"set\\\\\\\",t,e);var i=!1,r=!1;if(\\\\\\\"object\\\\\\\"==typeof t)for(var n in t)\\\\\\\"path\\\\\\\"===n\\\\u0026\\\\u0026this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),r=r||\\\\\\\"path\\\\\\\"===n;else i=-1!==this._dimensionAffectingProps.indexOf(t),r=\\\\\\\"path\\\\\\\"===t;return r\\\\u0026\\\\u0026this.setPathInfo(),i\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),e.Text.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Text.DEFAULT_SVG_FONT_SIZE=16,e.Text.fromElement=function(t,r,n){if(!t)return r(null);var o=e.parseAttributes(t,e.Text.ATTRIBUTE_NAMES),s=o.textAnchor||\\\\\\\"left\\\\\\\";if((n=e.util.object.extend(n?i(n):{},o)).top=n.top||0,n.left=n.left||0,o.textDecoration){var a=o.textDecoration;-1!==a.indexOf(\\\\\\\"underline\\\\\\\")\\\\u0026\\\\u0026(n.underline=!0),-1!==a.indexOf(\\\\\\\"overline\\\\\\\")\\\\u0026\\\\u0026(n.overline=!0),-1!==a.indexOf(\\\\\\\"line-through\\\\\\\")\\\\u0026\\\\u0026(n.linethrough=!0),delete n.textDecoration}\\\\\\\"dx\\\\\\\"in o\\\\u0026\\\\u0026(n.left+=o.dx),\\\\\\\"dy\\\\\\\"in o\\\\u0026\\\\u0026(n.top+=o.dy),\\\\\\\"fontSize\\\\\\\"in n||(n.fontSize=e.Text.DEFAULT_SVG_FONT_SIZE);var h=\\\\\\\"\\\\\\\";\\\\\\\"textContent\\\\\\\"in t?h=t.textContent:\\\\\\\"firstChild\\\\\\\"in t\\\\u0026\\\\u0026null!==t.firstChild\\\\u0026\\\\u0026\\\\\\\"data\\\\\\\"in t.firstChild\\\\u0026\\\\u0026null!==t.firstChild.data\\\\u0026\\\\u0026(h=t.firstChild.data),h=h.replace(/^\\\\\\\\s+|\\\\\\\\s+$|\\\\\\\\n+/g,\\\\\\\"\\\\\\\").replace(/\\\\\\\\s+/g,\\\\\\\" \\\\\\\");var c=n.strokeWidth;n.strokeWidth=0;var l=new e.Text(h,n),u=l.getScaledHeight()/l.height,f=((l.height+l.strokeWidth)*l.lineHeight-l.height)*u,d=l.getScaledHeight()+f,g=0;\\\\\\\"center\\\\\\\"===s\\\\u0026\\\\u0026(g=l.getScaledWidth()/2),\\\\\\\"right\\\\\\\"===s\\\\u0026\\\\u0026(g=l.getScaledWidth()),l.set({left:l.left-g,top:l.top-(d-l.fontSize*(.07+l._fontSizeFraction))/l.lineHeight,strokeWidth:void 0!==c?c:1}),r(l)},e.Text.fromObject=function(t,r){var n=i(t),o=t.path;return delete n.path,e.Object._fromObject(\\\\\\\"Text\\\\\\\",n,(function(t){o?e.Object._fromObject(\\\\\\\"Path\\\\\\\",o,(function(e){t.set(\\\\\\\"path\\\\\\\",e),r(t)}),\\\\\\\"path\\\\\\\"):r(t)}),\\\\\\\"text\\\\\\\")},e.Text.genericFonts=[\\\\\\\"sans-serif\\\\\\\",\\\\\\\"serif\\\\\\\",\\\\\\\"cursive\\\\\\\",\\\\\\\"fantasy\\\\\\\",\\\\\\\"monospace\\\\\\\"],e.util.createAccessors\\\\u0026\\\\u0026e.util.createAccessors(e.Text)}}(t),T.util.object.extend(T.Text.prototype,{isEmptyStyles:function(t){if(!this.styles)return!0;if(void 0!==t\\\\u0026\\\\u0026!this.styles[t])return!0;var e=void 0===t?this.styles:{line:this.styles[t]};for(var i in e)for(var r in e[i])for(var n in e[i][r])return!1;return!0},styleHas:function(t,e){if(!this.styles||!t||\\\\\\\"\\\\\\\"===t)return!1;if(void 0!==e\\\\u0026\\\\u0026!this.styles[e])return!1;var i=void 0===e?this.styles:{0:this.styles[e]};for(var r in i)for(var n in i[r])if(void 0!==i[r][n][t])return!0;return!1},cleanStyle:function(t){if(!this.styles||!t||\\\\\\\"\\\\\\\"===t)return!1;var e,i,r=this.styles,n=0,o=!0,s=0;for(var a in r){for(var h in e=0,r[a]){var c;n++,(c=r[a][h]).hasOwnProperty(t)?(i?c[t]!==i\\\\u0026\\\\u0026(o=!1):i=c[t],c[t]===this[t]\\\\u0026\\\\u0026delete c[t]):o=!1,0!==Object.keys(c).length?e++:delete r[a][h]}0===e\\\\u0026\\\\u0026delete r[a]}for(var l=0;l\\\\u003cthis._textLines.length;l++)s+=this._textLines[l].length;o\\\\u0026\\\\u0026n===s\\\\u0026\\\\u0026(this[t]=i,this.removeStyle(t))},removeStyle:function(t){if(this.styles\\\\u0026\\\\u0026t\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!==t){var e,i,r,n=this.styles;for(i in n){for(r in e=n[i])delete e[r][t],0===Object.keys(e[r]).length\\\\u0026\\\\u0026delete e[r];0===Object.keys(e).length\\\\u0026\\\\u0026delete n[i]}}},_extendStyles:function(t,e){var i=this.get2DCursorLocation(t);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),T.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),e)},get2DCursorLocation:function(t,e){void 0===t\\\\u0026\\\\u0026(t=this.selectionStart);for(var i=e?this._unwrappedTextLines:this._textLines,r=i.length,n=0;n\\\\u003cr;n++){if(t\\\\u003c=i[n].length)return{lineIndex:n,charIndex:t};t-=i[n].length+this.missingNewlineOffset(n)}return{lineIndex:n-1,charIndex:i[n-1].length\\\\u003ct?i[n-1].length:t}},getSelectionStyles:function(t,e,i){void 0===t\\\\u0026\\\\u0026(t=this.selectionStart||0),void 0===e\\\\u0026\\\\u0026(e=this.selectionEnd||t);for(var r=[],n=t;n\\\\u003ce;n++)r.push(this.getStyleAtPosition(n,i));return r},getStyleAtPosition:function(t,e){var i=this.get2DCursorLocation(t);return(e?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(t,e,i){void 0===e\\\\u0026\\\\u0026(e=this.selectionStart||0),void 0===i\\\\u0026\\\\u0026(i=this.selectionEnd||e);for(var r=e;r\\\\u003ci;r++)this._extendStyles(r,t);return this._forceClearCache=!0,this},_getStyleDeclaration:function(t,e){var i=this.styles\\\\u0026\\\\u0026this.styles[t];return i?i[e]:null},getCompleteStyleDeclaration:function(t,e){for(var i,r=this._getStyleDeclaration(t,e)||{},n={},o=0;o\\\\u003cthis._styleProperties.length;o++)n[i=this._styleProperties[o]]=void 0===r[i]?this[i]:r[i];return n},_setStyleDeclaration:function(t,e,i){this.styles[t][e]=i},_deleteStyleDeclaration:function(t,e){delete this.styles[t][e]},_getLineStyle:function(t){return!!this.styles[t]},_setLineStyle:function(t){this.styles[t]={}},_deleteLineStyle:function(t){delete this.styles[t]}}),function(){function t(t){t.textDecoration\\\\u0026\\\\u0026(t.textDecoration.indexOf(\\\\\\\"underline\\\\\\\")\\\\u003e-1\\\\u0026\\\\u0026(t.underline=!0),t.textDecoration.indexOf(\\\\\\\"line-through\\\\\\\")\\\\u003e-1\\\\u0026\\\\u0026(t.linethrough=!0),t.textDecoration.indexOf(\\\\\\\"overline\\\\\\\")\\\\u003e-1\\\\u0026\\\\u0026(t.overline=!0),delete t.textDecoration)}T.IText=T.util.createClass(T.Text,T.Observable,{type:\\\\\\\"i-text\\\\\\\",selectionStart:0,selectionEnd:0,selectionColor:\\\\\\\"rgba(17,119,255,0.3)\\\\\\\",isEditing:!1,editable:!0,editingBorderColor:\\\\\\\"rgba(102,153,255,0.25)\\\\\\\",cursorWidth:2,cursorColor:\\\\\\\"\\\\\\\",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\\\\\\\\s|\\\\\\\\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(t,e){this.callSuper(\\\\\\\"initialize\\\\\\\",t,e),this.initBehavior()},setSelectionStart:function(t){t=Math.max(t,0),this._updateAndFire(\\\\\\\"selectionStart\\\\\\\",t)},setSelectionEnd:function(t){t=Math.min(t,this.text.length),this._updateAndFire(\\\\\\\"selectionEnd\\\\\\\",t)},_updateAndFire:function(t,e){this[t]!==e\\\\u0026\\\\u0026(this._fireSelectionChanged(),this[t]=e),this._updateTextarea()},_fireSelectionChanged:function(){this.fire(\\\\\\\"selection:changed\\\\\\\"),this.canvas\\\\u0026\\\\u0026this.canvas.fire(\\\\\\\"text:selection:changed\\\\\\\",{target:this})},initDimensions:function(){this.isEditing\\\\u0026\\\\u0026this.initDelayedCursor(),this.clearContextTop(),this.callSuper(\\\\\\\"initDimensions\\\\\\\")},render:function(t){this.clearContextTop(),this.callSuper(\\\\\\\"render\\\\\\\",t),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(t){this.callSuper(\\\\\\\"_render\\\\\\\",t)},clearContextTop:function(t){if(this.isEditing\\\\u0026\\\\u0026this.canvas\\\\u0026\\\\u0026this.canvas.contextTop){var e=this.canvas.contextTop,i=this.canvas.viewportTransform;e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(e),this._clearTextArea(e),t||e.restore()}},renderCursorOrSelection:function(){if(this.isEditing\\\\u0026\\\\u0026this.canvas\\\\u0026\\\\u0026this.canvas.contextTop){var t=this._getCursorBoundaries(),e=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(t,e):this.renderSelection(t,e),e.restore()}},_clearTextArea:function(t){var e=this.width+4,i=this.height+4;t.clearRect(-e/2,-i/2,e,i)},_getCursorBoundaries:function(t){void 0===t\\\\u0026\\\\u0026(t=this.selectionStart);var e=this._getLeftOffset(),i=this._getTopOffset(),r=this._getCursorBoundariesOffsets(t);return{left:e,top:i,leftOffset:r.left,topOffset:r.top}},_getCursorBoundariesOffsets:function(t){if(this.cursorOffsetCache\\\\u0026\\\\u0026\\\\\\\"top\\\\\\\"in this.cursorOffsetCache)return this.cursorOffsetCache;var e,i,r,n,o=0,s=0,a=this.get2DCursorLocation(t);r=a.charIndex,i=a.lineIndex;for(var h=0;h\\\\u003ci;h++)o+=this.getHeightOfLine(h);e=this._getLineLeftOffset(i);var c=this.__charBounds[i][r];return c\\\\u0026\\\\u0026(s=c.left),0!==this.charSpacing\\\\u0026\\\\u0026r===this._textLines[i].length\\\\u0026\\\\u0026(s-=this._getWidthOfCharSpacing()),n={top:o,left:e+(s\\\\u003e0?s:0)},\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(t,e){var i=this.get2DCursorLocation(),r=i.lineIndex,n=i.charIndex\\\\u003e0?i.charIndex-1:0,o=this.getValueOfPropertyAt(r,n,\\\\\\\"fontSize\\\\\\\"),s=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/s,h=t.topOffset,c=this.getValueOfPropertyAt(r,n,\\\\\\\"deltaY\\\\\\\");h+=(1-this._fontSizeFraction)*this.getHeightOfLine(r)/this.lineHeight-o*(1-this._fontSizeFraction),this.inCompositionMode\\\\u0026\\\\u0026this.renderSelection(t,e),e.fillStyle=this.cursorColor||this.getValueOfPropertyAt(r,n,\\\\\\\"fill\\\\\\\"),e.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,e.fillRect(t.left+t.leftOffset-a/2,h+t.top+c,a,o)},renderSelection:function(t,e){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,r=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\"),o=this.get2DCursorLocation(i),s=this.get2DCursorLocation(r),a=o.lineIndex,h=s.lineIndex,c=o.charIndex\\\\u003c0?0:o.charIndex,l=s.charIndex\\\\u003c0?0:s.charIndex,u=a;u\\\\u003c=h;u++){var f,d=this._getLineLeftOffset(u)||0,g=this.getHeightOfLine(u),p=0,v=0;if(u===a\\\\u0026\\\\u0026(p=this.__charBounds[a][c].left),u\\\\u003e=a\\\\u0026\\\\u0026u\\\\u003ch)v=n\\\\u0026\\\\u0026!this.isEndOfWrapping(u)?this.width:this.getLineWidth(u)||5;else if(u===h)if(0===l)v=this.__charBounds[h][l].left;else{var m=this._getWidthOfCharSpacing();v=this.__charBounds[h][l-1].left+this.__charBounds[h][l-1].width-m}f=g,(this.lineHeight\\\\u003c1||u===h\\\\u0026\\\\u0026this.lineHeight\\\\u003e1)\\\\u0026\\\\u0026(g/=this.lineHeight);var y=t.left+d+p,_=v-p,b=g,x=0;this.inCompositionMode?(e.fillStyle=this.compositionColor||\\\\\\\"black\\\\\\\",b=1,x=g):e.fillStyle=this.selectionColor,\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(y=this.width-y-_),e.fillRect(y,t.top+t.topOffset+x,_,b),t.topOffset+=f}},getCurrentCharFontSize:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,\\\\\\\"fontSize\\\\\\\")},getCurrentCharColor:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,\\\\\\\"fill\\\\\\\")},_getCurrentCharIndex:function(){var t=this.get2DCursorLocation(this.selectionStart,!0),e=t.charIndex\\\\u003e0?t.charIndex-1:0;return{l:t.lineIndex,c:e}}}),T.IText.fromObject=function(e,i){if(t(e),e.styles)for(var r in e.styles)for(var n in e.styles[r])t(e.styles[r][n]);T.Object._fromObject(\\\\\\\"IText\\\\\\\",e,i,\\\\\\\"text\\\\\\\")}}(),S=T.util.object.clone,T.util.object.extend(T.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing\\\\u0026\\\\u0026this.exitEditing(),this.selected=!1},initAddedHandler:function(){var t=this;this.on(\\\\\\\"added\\\\\\\",(function(){var e=t.canvas;e\\\\u0026\\\\u0026(e._hasITextHandlers||(e._hasITextHandlers=!0,t._initCanvasHandlers(e)),e._iTextInstances=e._iTextInstances||[],e._iTextInstances.push(t))}))},initRemovedHandler:function(){var t=this;this.on(\\\\\\\"removed\\\\\\\",(function(){var e=t.canvas;e\\\\u0026\\\\u0026(e._iTextInstances=e._iTextInstances||[],T.util.removeFromArray(e._iTextInstances,t),0===e._iTextInstances.length\\\\u0026\\\\u0026(e._hasITextHandlers=!1,t._removeCanvasHandlers(e)))}))},_initCanvasHandlers:function(t){t._mouseUpITextHandler=function(){t._iTextInstances\\\\u0026\\\\u0026t._iTextInstances.forEach((function(t){t.__isMousedown=!1}))},t.on(\\\\\\\"mouse:up\\\\\\\",t._mouseUpITextHandler)},_removeCanvasHandlers:function(t){t.off(\\\\\\\"mouse:up\\\\\\\",t._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,\\\\\\\"_onTickComplete\\\\\\\")},_animateCursor:function(t,e,i,r){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},t.animate(\\\\\\\"_currentCursorOpacity\\\\\\\",e,{duration:i,onComplete:function(){n.isAborted||t[r]()},onChange:function(){t.canvas\\\\u0026\\\\u0026t.selectionStart===t.selectionEnd\\\\u0026\\\\u0026t.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var t=this;this._cursorTimeout1\\\\u0026\\\\u0026clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){t._currentTickCompleteState=t._animateCursor(t,0,this.cursorDuration/2,\\\\\\\"_tick\\\\\\\")}),100)},initDelayedCursor:function(t){var e=this,i=t?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){e._tick()}),i)},abortCursorAnimation:function(){var t=this._currentTickState||this._currentTickCompleteState,e=this.canvas;this._currentTickState\\\\u0026\\\\u0026this._currentTickState.abort(),this._currentTickCompleteState\\\\u0026\\\\u0026this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,t\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e.clearContext(e.contextTop||e.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join(\\\\\\\"\\\\\\\")},findWordBoundaryLeft:function(t){var e=0,i=t-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i--;for(;/\\\\\\\\S/.test(this._text[i])\\\\u0026\\\\u0026i\\\\u003e-1;)e++,i--;return t-e},findWordBoundaryRight:function(t){var e=0,i=t;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i++;for(;/\\\\\\\\S/.test(this._text[i])\\\\u0026\\\\u0026i\\\\u003cthis._text.length;)e++,i++;return t+e},findLineBoundaryLeft:function(t){for(var e=0,i=t-1;!/\\\\\\\\n/.test(this._text[i])\\\\u0026\\\\u0026i\\\\u003e-1;)e++,i--;return t-e},findLineBoundaryRight:function(t){for(var e=0,i=t;!/\\\\\\\\n/.test(this._text[i])\\\\u0026\\\\u0026i\\\\u003cthis._text.length;)e++,i++;return t+e},searchWordBoundary:function(t,e){for(var i=this._text,r=this._reSpace.test(i[t])?t-1:t,n=i[r],o=T.reNonWord;!o.test(n)\\\\u0026\\\\u0026r\\\\u003e0\\\\u0026\\\\u0026r\\\\u003ci.length;)n=i[r+=e];return o.test(n)\\\\u0026\\\\u0026(r+=1===e?0:1),r},selectWord:function(t){t=t||this.selectionStart;var e=this.searchWordBoundary(t,-1),i=this.searchWordBoundary(t,1);this.selectionStart=e,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(t){t=t||this.selectionStart;var e=this.findLineBoundaryLeft(t),i=this.findLineBoundaryRight(t);return this.selectionStart=e,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(t){if(!this.isEditing\\\\u0026\\\\u0026this.editable)return this.canvas\\\\u0026\\\\u0026(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(t),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire(\\\\\\\"editing:entered\\\\\\\"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire(\\\\\\\"text:editing:entered\\\\\\\",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(t){t._iTextInstances\\\\u0026\\\\u0026t._iTextInstances.forEach((function(t){t.selected=!1,t.isEditing\\\\u0026\\\\u0026t.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on(\\\\\\\"mouse:move\\\\\\\",this.mouseMoveHandler)},mouseMoveHandler:function(t){if(this.__isMousedown\\\\u0026\\\\u0026this.isEditing){var e=this.getSelectionStartFromPointer(t.e),i=this.selectionStart,r=this.selectionEnd;(e===this.__selectionStartOnMouseDown\\\\u0026\\\\u0026i!==r||i!==e\\\\u0026\\\\u0026r!==e)\\\\u0026\\\\u0026(e\\\\u003ethis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=e):(this.selectionStart=e,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i\\\\u0026\\\\u0026this.selectionEnd===r||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor=\\\\\\\"text\\\\\\\",this.canvas\\\\u0026\\\\u0026(this.canvas.defaultCursor=this.canvas.moveCursor=\\\\\\\"text\\\\\\\"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(t,e,i){var r=i.slice(0,t),n=T.util.string.graphemeSplit(r).length;if(t===e)return{selectionStart:n,selectionEnd:n};var o=i.slice(t,e);return{selectionStart:n,selectionEnd:n+T.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(t,e,i){var r=i.slice(0,t).join(\\\\\\\"\\\\\\\").length;return t===e?{selectionStart:r,selectionEnd:r}:{selectionStart:r,selectionEnd:r+i.slice(t,e).join(\\\\\\\"\\\\\\\").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var t=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=t.selectionStart,this.hiddenTextarea.selectionEnd=t.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords());var t=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=t.selectionEnd,this.inCompositionMode||(this.selectionStart=t.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var t=this._calcTextareaPosition();this.hiddenTextarea.style.left=t.left,this.hiddenTextarea.style.top=t.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var t=this.inCompositionMode?this.compositionStart:this.selectionStart,e=this._getCursorBoundaries(t),i=this.get2DCursorLocation(t),r=i.lineIndex,n=i.charIndex,o=this.getValueOfPropertyAt(r,n,\\\\\\\"fontSize\\\\\\\")*this.lineHeight,s=e.leftOffset,a=this.calcTransformMatrix(),h={x:e.left+s,y:e.top+e.topOffset+o},c=this.canvas.getRetinaScaling(),l=this.canvas.upperCanvasEl,u=l.width/c,f=l.height/c,d=u-o,g=f-o,p=l.clientWidth/u,v=l.clientHeight/f;return h=T.util.transformPoint(h,a),(h=T.util.transformPoint(h,this.canvas.viewportTransform)).x*=p,h.y*=v,h.x\\\\u003c0\\\\u0026\\\\u0026(h.x=0),h.x\\\\u003ed\\\\u0026\\\\u0026(h.x=d),h.y\\\\u003c0\\\\u0026\\\\u0026(h.y=0),h.y\\\\u003eg\\\\u0026\\\\u0026(h.y=g),h.x+=this.canvas._offset.left,h.y+=this.canvas._offset.top,{left:h.x+\\\\\\\"px\\\\\\\",top:h.y+\\\\\\\"px\\\\\\\",fontSize:o+\\\\\\\"px\\\\\\\",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas\\\\u0026\\\\u0026this.canvas.defaultCursor,moveCursor:this.canvas\\\\u0026\\\\u0026this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps\\\\u0026\\\\u0026(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas\\\\u0026\\\\u0026(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var t=this._textBeforeEdit!==this.text,e=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,e\\\\u0026\\\\u0026(e.blur\\\\u0026\\\\u0026e.blur(),e.parentNode\\\\u0026\\\\u0026e.parentNode.removeChild(e)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords()),this.fire(\\\\\\\"editing:exited\\\\\\\"),t\\\\u0026\\\\u0026this.fire(\\\\\\\"modified\\\\\\\"),this.canvas\\\\u0026\\\\u0026(this.canvas.off(\\\\\\\"mouse:move\\\\\\\",this.mouseMoveHandler),this.canvas.fire(\\\\\\\"text:editing:exited\\\\\\\",{target:this}),t\\\\u0026\\\\u0026this.canvas.fire(\\\\\\\"object:modified\\\\\\\",{target:this})),this},_removeExtraneousStyles:function(){for(var t in this.styles)this._textLines[t]||delete this.styles[t]},removeStyleFromTo:function(t,e){var i,r,n=this.get2DCursorLocation(t,!0),o=this.get2DCursorLocation(e,!0),s=n.lineIndex,a=n.charIndex,h=o.lineIndex,c=o.charIndex;if(s!==h){if(this.styles[s])for(i=a;i\\\\u003cthis._unwrappedTextLines[s].length;i++)delete this.styles[s][i];if(this.styles[h])for(i=c;i\\\\u003cthis._unwrappedTextLines[h].length;i++)(r=this.styles[h][i])\\\\u0026\\\\u0026(this.styles[s]||(this.styles[s]={}),this.styles[s][a+i-c]=r);for(i=s+1;i\\\\u003c=h;i++)delete this.styles[i];this.shiftLineStyles(h,s-h)}else if(this.styles[s]){r=this.styles[s];var l,u,f=c-a;for(i=a;i\\\\u003cc;i++)delete r[i];for(u in this.styles[s])(l=parseInt(u,10))\\\\u003e=c\\\\u0026\\\\u0026(r[l-f]=r[u],delete r[u])}},shiftLineStyles:function(t,e){var i=S(this.styles);for(var r in this.styles){var n=parseInt(r,10);n\\\\u003et\\\\u0026\\\\u0026(this.styles[n+e]=i[n],i[n-e]||delete this.styles[n])}},restartCursorIfNeeded:function(){this._currentTickState\\\\u0026\\\\u0026!this._currentTickState.isAborted\\\\u0026\\\\u0026this._currentTickCompleteState\\\\u0026\\\\u0026!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,e,i,r){var n,o={},s=!1,a=this._unwrappedTextLines[t].length===e;for(var h in i||(i=1),this.shiftLineStyles(t,i),this.styles[t]\\\\u0026\\\\u0026(n=this.styles[t][0===e?e:e-1]),this.styles[t]){var c=parseInt(h,10);c\\\\u003e=e\\\\u0026\\\\u0026(s=!0,o[c-e]=this.styles[t][h],a\\\\u0026\\\\u00260===e||delete this.styles[t][h])}var l=!1;for(s\\\\u0026\\\\u0026!a\\\\u0026\\\\u0026(this.styles[t+i]=o,l=!0),l\\\\u0026\\\\u0026i--;i\\\\u003e0;)r\\\\u0026\\\\u0026r[i-1]?this.styles[t+i]={0:S(r[i-1])}:n?this.styles[t+i]={0:S(n)}:delete this.styles[t+i],i--;this._forceClearCache=!0},insertCharStyleObject:function(t,e,i,r){this.styles||(this.styles={});var n=this.styles[t],o=n?S(n):{};for(var s in i||(i=1),o){var a=parseInt(s,10);a\\\\u003e=e\\\\u0026\\\\u0026(n[a+i]=o[a],o[a-i]||delete n[a])}if(this._forceClearCache=!0,r)for(;i--;)Object.keys(r[i]).length\\\\u0026\\\\u0026(this.styles[t]||(this.styles[t]={}),this.styles[t][e+i]=S(r[i]));else if(n)for(var h=n[e?e-1:1];h\\\\u0026\\\\u0026i--;)this.styles[t][e+i]=S(h)},insertNewStyleBlock:function(t,e,i){for(var r=this.get2DCursorLocation(e,!0),n=[0],o=0,s=0;s\\\\u003ct.length;s++)\\\\\\\"\\\\\\\\n\\\\\\\"===t[s]?n[++o]=0:n[o]++;for(n[0]\\\\u003e0\\\\u0026\\\\u0026(this.insertCharStyleObject(r.lineIndex,r.charIndex,n[0],i),i=i\\\\u0026\\\\u0026i.slice(n[0]+1)),o\\\\u0026\\\\u0026this.insertNewlineStyleObject(r.lineIndex,r.charIndex+n[0],o),s=1;s\\\\u003co;s++)n[s]\\\\u003e0?this.insertCharStyleObject(r.lineIndex+s,0,n[s],i):i\\\\u0026\\\\u0026(this.styles[r.lineIndex+s][0]=i[0]),i=i\\\\u0026\\\\u0026i.slice(n[s]+1);n[s]\\\\u003e0\\\\u0026\\\\u0026this.insertCharStyleObject(r.lineIndex+s,0,n[s],i)},setSelectionStartEndWithShift:function(t,e,i){i\\\\u003c=t?(e===t?this._selectionDirection=\\\\\\\"left\\\\\\\":\\\\\\\"right\\\\\\\"===this._selectionDirection\\\\u0026\\\\u0026(this._selectionDirection=\\\\\\\"left\\\\\\\",this.selectionEnd=t),this.selectionStart=i):i\\\\u003et\\\\u0026\\\\u0026i\\\\u003ce?\\\\\\\"right\\\\\\\"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(e===t?this._selectionDirection=\\\\\\\"right\\\\\\\":\\\\\\\"left\\\\\\\"===this._selectionDirection\\\\u0026\\\\u0026(this._selectionDirection=\\\\\\\"right\\\\\\\",this.selectionStart=e),this.selectionEnd=i)},setSelectionInBoundaries:function(){var t=this.text.length;this.selectionStart\\\\u003et?this.selectionStart=t:this.selectionStart\\\\u003c0\\\\u0026\\\\u0026(this.selectionStart=0),this.selectionEnd\\\\u003et?this.selectionEnd=t:this.selectionEnd\\\\u003c0\\\\u0026\\\\u0026(this.selectionEnd=0)}}),T.util.object.extend(T.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on(\\\\\\\"mousedown\\\\\\\",this.onMouseDown)},onMouseDown:function(t){if(this.canvas){this.__newClickTime=+new Date;var e=t.pointer;this.isTripleClick(e)\\\\u0026\\\\u0026(this.fire(\\\\\\\"tripleclick\\\\\\\",t),this._stopEvent(t.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=e,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(t){return this.__newClickTime-this.__lastClickTime\\\\u003c500\\\\u0026\\\\u0026this.__lastClickTime-this.__lastLastClickTime\\\\u003c500\\\\u0026\\\\u0026this.__lastPointer.x===t.x\\\\u0026\\\\u0026this.__lastPointer.y===t.y},_stopEvent:function(t){t.preventDefault\\\\u0026\\\\u0026t.preventDefault(),t.stopPropagation\\\\u0026\\\\u0026t.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(t){this.isEditing\\\\u0026\\\\u0026this.selectWord(this.getSelectionStartFromPointer(t.e))},tripleClickHandler:function(t){this.isEditing\\\\u0026\\\\u0026this.selectLine(this.getSelectionStartFromPointer(t.e))},initClicks:function(){this.on(\\\\\\\"mousedblclick\\\\\\\",this.doubleClickHandler),this.on(\\\\\\\"tripleclick\\\\\\\",this.tripleClickHandler)},_mouseDownHandler:function(t){!this.canvas||!this.editable||t.e.button\\\\u0026\\\\u00261!==t.e.button||(this.__isMousedown=!0,this.selected\\\\u0026\\\\u0026(this.inCompositionMode=!1,this.setCursorByClick(t.e)),this.isEditing\\\\u0026\\\\u0026(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd\\\\u0026\\\\u0026this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(t){!this.canvas||!this.editable||t.e.button\\\\u0026\\\\u00261!==t.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on(\\\\\\\"mousedown\\\\\\\",this._mouseDownHandler),this.on(\\\\\\\"mousedown:before\\\\\\\",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on(\\\\\\\"mouseup\\\\\\\",this.mouseUpHandler)},mouseUpHandler:function(t){if(this.__isMousedown=!1,!(!this.editable||this.group||t.transform\\\\u0026\\\\u0026t.transform.actionPerformed||t.e.button\\\\u0026\\\\u00261!==t.e.button)){if(this.canvas){var e=this.canvas._activeObject;if(e\\\\u0026\\\\u0026e!==this)return}this.__lastSelected\\\\u0026\\\\u0026!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(t.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(t){var e=this.getSelectionStartFromPointer(t),i=this.selectionStart,r=this.selectionEnd;t.shiftKey?this.setSelectionStartEndWithShift(i,r,e):(this.selectionStart=e,this.selectionEnd=e),this.isEditing\\\\u0026\\\\u0026(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(t){for(var e,i=this.getLocalPointer(t),r=0,n=0,o=0,s=0,a=0,h=0,c=this._textLines.length;h\\\\u003cc\\\\u0026\\\\u0026o\\\\u003c=i.y;h++)o+=this.getHeightOfLine(h)*this.scaleY,a=h,h\\\\u003e0\\\\u0026\\\\u0026(s+=this._textLines[h-1].length+this.missingNewlineOffset(h-1));n=this._getLineLeftOffset(a)*this.scaleX,e=this._textLines[a],\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(i.x=this.width*this.scaleX-i.x+n);for(var l=0,u=e.length;l\\\\u003cu\\\\u0026\\\\u0026(r=n,(n+=this.__charBounds[a][l].kernedWidth*this.scaleX)\\\\u003c=i.x);l++)s++;return this._getNewSelectionStartFromOffset(i,r,n,s,u)},_getNewSelectionStartFromOffset:function(t,e,i,r,n){var o=t.x-e,s=i-t.x,a=r+(s\\\\u003eo||s\\\\u003c0?0:1);return this.flipX\\\\u0026\\\\u0026(a=n-a),a\\\\u003ethis._text.length\\\\u0026\\\\u0026(a=this._text.length),a}}),T.util.object.extend(T.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=T.document.createElement(\\\\\\\"textarea\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"autocapitalize\\\\\\\",\\\\\\\"off\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"autocorrect\\\\\\\",\\\\\\\"off\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"autocomplete\\\\\\\",\\\\\\\"off\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"spellcheck\\\\\\\",\\\\\\\"false\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"data-fabric-hiddentextarea\\\\\\\",\\\\\\\"\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"wrap\\\\\\\",\\\\\\\"off\\\\\\\");var t=this._calcTextareaPosition();this.hiddenTextarea.style.cssText=\\\\\\\"position: absolute; top: \\\\\\\"+t.top+\\\\\\\"; left: \\\\\\\"+t.left+\\\\\\\"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding\\uff70top: \\\\\\\"+t.fontSize+\\\\\\\";\\\\\\\",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):T.document.body.appendChild(this.hiddenTextarea),T.util.addListener(this.hiddenTextarea,\\\\\\\"keydown\\\\\\\",this.onKeyDown.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"keyup\\\\\\\",this.onKeyUp.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"input\\\\\\\",this.onInput.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"copy\\\\\\\",this.copy.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"cut\\\\\\\",this.copy.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"paste\\\\\\\",this.paste.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"compositionstart\\\\\\\",this.onCompositionStart.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"compositionupdate\\\\\\\",this.onCompositionUpdate.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"compositionend\\\\\\\",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized\\\\u0026\\\\u0026this.canvas\\\\u0026\\\\u0026(T.util.addListener(this.canvas.upperCanvasEl,\\\\\\\"click\\\\\\\",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:\\\\\\\"exitEditing\\\\\\\",27:\\\\\\\"exitEditing\\\\\\\",33:\\\\\\\"moveCursorUp\\\\\\\",34:\\\\\\\"moveCursorDown\\\\\\\",35:\\\\\\\"moveCursorRight\\\\\\\",36:\\\\\\\"moveCursorLeft\\\\\\\",37:\\\\\\\"moveCursorLeft\\\\\\\",38:\\\\\\\"moveCursorUp\\\\\\\",39:\\\\\\\"moveCursorRight\\\\\\\",40:\\\\\\\"moveCursorDown\\\\\\\"},keysMapRtl:{9:\\\\\\\"exitEditing\\\\\\\",27:\\\\\\\"exitEditing\\\\\\\",33:\\\\\\\"moveCursorUp\\\\\\\",34:\\\\\\\"moveCursorDown\\\\\\\",35:\\\\\\\"moveCursorLeft\\\\\\\",36:\\\\\\\"moveCursorRight\\\\\\\",37:\\\\\\\"moveCursorRight\\\\\\\",38:\\\\\\\"moveCursorUp\\\\\\\",39:\\\\\\\"moveCursorLeft\\\\\\\",40:\\\\\\\"moveCursorDown\\\\\\\"},ctrlKeysMapUp:{67:\\\\\\\"copy\\\\\\\",88:\\\\\\\"cut\\\\\\\"},ctrlKeysMapDown:{65:\\\\\\\"selectAll\\\\\\\"},onClick:function(){this.hiddenTextarea\\\\u0026\\\\u0026this.hiddenTextarea.focus()},onKeyDown:function(t){if(this.isEditing){var e=\\\\\\\"rtl\\\\\\\"===this.direction?this.keysMapRtl:this.keysMap;if(t.keyCode in e)this[e[t.keyCode]](t);else{if(!(t.keyCode in this.ctrlKeysMapDown)||!t.ctrlKey\\\\u0026\\\\u0026!t.metaKey)return;this[this.ctrlKeysMapDown[t.keyCode]](t)}t.stopImmediatePropagation(),t.preventDefault(),t.keyCode\\\\u003e=33\\\\u0026\\\\u0026t.keyCode\\\\u003c=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas\\\\u0026\\\\u0026this.canvas.requestRenderAll()}},onKeyUp:function(t){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:t.keyCode in this.ctrlKeysMapUp\\\\u0026\\\\u0026(t.ctrlKey||t.metaKey)\\\\u0026\\\\u0026(this[this.ctrlKeysMapUp[t.keyCode]](t),t.stopImmediatePropagation(),t.preventDefault(),this.canvas\\\\u0026\\\\u0026this.canvas.requestRenderAll())},onInput:function(t){var e=this.fromPaste;if(this.fromPaste=!1,t\\\\u0026\\\\u0026t.stopPropagation(),this.isEditing){var i,r,n,o,s,a=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,h=this._text.length,c=a.length,l=c-h,u=this.selectionStart,f=this.selectionEnd,d=u!==f;if(\\\\\\\"\\\\\\\"===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire(\\\\\\\"changed\\\\\\\"),void(this.canvas\\\\u0026\\\\u0026(this.canvas.fire(\\\\\\\"text:changed\\\\\\\",{target:this}),this.canvas.requestRenderAll()));var g=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),p=u\\\\u003eg.selectionStart;d?(i=this._text.slice(u,f),l+=f-u):c\\\\u003ch\\\\u0026\\\\u0026(i=p?this._text.slice(f+l,f):this._text.slice(u,u-l)),r=a.slice(g.selectionEnd-l,g.selectionEnd),i\\\\u0026\\\\u0026i.length\\\\u0026\\\\u0026(r.length\\\\u0026\\\\u0026(n=this.getSelectionStyles(u,u+1,!1),n=r.map((function(){return n[0]}))),d?(o=u,s=f):p?(o=f-i.length,s=f):(o=f,s=f+i.length),this.removeStyleFromTo(o,s)),r.length\\\\u0026\\\\u0026(e\\\\u0026\\\\u0026r.join(\\\\\\\"\\\\\\\")===T.copiedText\\\\u0026\\\\u0026!T.disableStyleCopyPaste\\\\u0026\\\\u0026(n=T.copiedTextStyle),this.insertNewStyleBlock(r,u,n)),this.updateFromTextArea(),this.fire(\\\\\\\"changed\\\\\\\"),this.canvas\\\\u0026\\\\u0026(this.canvas.fire(\\\\\\\"text:changed\\\\\\\",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(t){this.compositionStart=t.target.selectionStart,this.compositionEnd=t.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd\\\\u0026\\\\u0026(T.copiedText=this.getSelectedText(),T.disableStyleCopyPaste?T.copiedTextStyle=null:T.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(t){return t\\\\u0026\\\\u0026t.clipboardData||T.window.clipboardData},_getWidthBeforeCursor:function(t,e){var i,r=this._getLineLeftOffset(t);return e\\\\u003e0\\\\u0026\\\\u0026(r+=(i=this.__charBounds[t][e-1]).left+i.width),r},getDownCursorOffset:function(t,e){var i=this._getSelectionForOffset(t,e),r=this.get2DCursorLocation(i),n=r.lineIndex;if(n===this._textLines.length-1||t.metaKey||34===t.keyCode)return this._text.length-i;var o=r.charIndex,s=this._getWidthBeforeCursor(n,o),a=this._getIndexOnLine(n+1,s);return this._textLines[n].slice(o).length+a+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(t,e){return t.shiftKey\\\\u0026\\\\u0026this.selectionStart!==this.selectionEnd\\\\u0026\\\\u0026e?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(t,e){var i=this._getSelectionForOffset(t,e),r=this.get2DCursorLocation(i),n=r.lineIndex;if(0===n||t.metaKey||33===t.keyCode)return-i;var o=r.charIndex,s=this._getWidthBeforeCursor(n,o),a=this._getIndexOnLine(n-1,s),h=this._textLines[n].slice(0,o),c=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-h.length+(1-c)},_getIndexOnLine:function(t,e){for(var i,r,n=this._textLines[t],o=this._getLineLeftOffset(t),s=0,a=0,h=n.length;a\\\\u003ch;a++)if((o+=i=this.__charBounds[t][a].width)\\\\u003ee){r=!0;var c=o-i,l=o,u=Math.abs(c-e);s=Math.abs(l-e)\\\\u003cu?a:a-1;break}return r||(s=n.length-1),s},moveCursorDown:function(t){this.selectionStart\\\\u003e=this._text.length\\\\u0026\\\\u0026this.selectionEnd\\\\u003e=this._text.length||this._moveCursorUpOrDown(\\\\\\\"Down\\\\\\\",t)},moveCursorUp:function(t){0===this.selectionStart\\\\u0026\\\\u00260===this.selectionEnd||this._moveCursorUpOrDown(\\\\\\\"Up\\\\\\\",t)},_moveCursorUpOrDown:function(t,e){var i=this[\\\\\\\"get\\\\\\\"+t+\\\\\\\"CursorOffset\\\\\\\"](e,\\\\\\\"right\\\\\\\"===this._selectionDirection);e.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i\\\\u0026\\\\u0026(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(t){var e=\\\\\\\"left\\\\\\\"===this._selectionDirection?this.selectionStart+t:this.selectionEnd+t;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,e),0!==t},moveCursorWithoutShift:function(t){return t\\\\u003c0?(this.selectionStart+=t,this.selectionEnd=this.selectionStart):(this.selectionEnd+=t,this.selectionStart=this.selectionEnd),0!==t},moveCursorLeft:function(t){0===this.selectionStart\\\\u0026\\\\u00260===this.selectionEnd||this._moveCursorLeftOrRight(\\\\\\\"Left\\\\\\\",t)},_move:function(t,e,i){var r;if(t.altKey)r=this[\\\\\\\"findWordBoundary\\\\\\\"+i](this[e]);else{if(!t.metaKey\\\\u0026\\\\u002635!==t.keyCode\\\\u0026\\\\u002636!==t.keyCode)return this[e]+=\\\\\\\"Left\\\\\\\"===i?-1:1,!0;r=this[\\\\\\\"findLineBoundary\\\\\\\"+i](this[e])}if(void 0!==typeof r\\\\u0026\\\\u0026this[e]!==r)return this[e]=r,!0},_moveLeft:function(t,e){return this._move(t,e,\\\\\\\"Left\\\\\\\")},_moveRight:function(t,e){return this._move(t,e,\\\\\\\"Right\\\\\\\")},moveCursorLeftWithoutShift:function(t){var e=!0;return this._selectionDirection=\\\\\\\"left\\\\\\\",this.selectionEnd===this.selectionStart\\\\u0026\\\\u00260!==this.selectionStart\\\\u0026\\\\u0026(e=this._moveLeft(t,\\\\\\\"selectionStart\\\\\\\")),this.selectionEnd=this.selectionStart,e},moveCursorLeftWithShift:function(t){return\\\\\\\"right\\\\\\\"===this._selectionDirection\\\\u0026\\\\u0026this.selectionStart!==this.selectionEnd?this._moveLeft(t,\\\\\\\"selectionEnd\\\\\\\"):0!==this.selectionStart?(this._selectionDirection=\\\\\\\"left\\\\\\\",this._moveLeft(t,\\\\\\\"selectionStart\\\\\\\")):void 0},moveCursorRight:function(t){this.selectionStart\\\\u003e=this._text.length\\\\u0026\\\\u0026this.selectionEnd\\\\u003e=this._text.length||this._moveCursorLeftOrRight(\\\\\\\"Right\\\\\\\",t)},_moveCursorLeftOrRight:function(t,e){var i=\\\\\\\"moveCursor\\\\\\\"+t+\\\\\\\"With\\\\\\\";this._currentCursorOpacity=1,e.shiftKey?i+=\\\\\\\"Shift\\\\\\\":i+=\\\\\\\"outShift\\\\\\\",this[i](e)\\\\u0026\\\\u0026(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(t){return\\\\\\\"left\\\\\\\"===this._selectionDirection\\\\u0026\\\\u0026this.selectionStart!==this.selectionEnd?this._moveRight(t,\\\\\\\"selectionStart\\\\\\\"):this.selectionEnd!==this._text.length?(this._selectionDirection=\\\\\\\"right\\\\\\\",this._moveRight(t,\\\\\\\"selectionEnd\\\\\\\")):void 0},moveCursorRightWithoutShift:function(t){var e=!0;return this._selectionDirection=\\\\\\\"right\\\\\\\",this.selectionStart===this.selectionEnd?(e=this._moveRight(t,\\\\\\\"selectionStart\\\\\\\"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,e},removeChars:function(t,e){void 0===e\\\\u0026\\\\u0026(e=t+1),this.removeStyleFromTo(t,e),this._text.splice(t,e-t),this.text=this._text.join(\\\\\\\"\\\\\\\"),this.set(\\\\\\\"dirty\\\\\\\",!0),this._shouldClearDimensionCache()\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(t,e,i,r){void 0===r\\\\u0026\\\\u0026(r=i),r\\\\u003ei\\\\u0026\\\\u0026this.removeStyleFromTo(i,r);var n=T.util.string.graphemeSplit(t);this.insertNewStyleBlock(n,i,e),this._text=[].concat(this._text.slice(0,i),n,this._text.slice(r)),this.text=this._text.join(\\\\\\\"\\\\\\\"),this.set(\\\\\\\"dirty\\\\\\\",!0),this._shouldClearDimensionCache()\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var t=T.util.toFixed,e=/  +/g;T.util.object.extend(T.Text.prototype,{_toSVG:function(){var t=this._getSVGLeftTopOffsets(),e=this._getSVGTextAndBg(t.textTop,t.textLeft);return this._wrapSVGTextAndBg(e)},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(t){var e=this.getSvgTextDecoration(this);return[t.textBgRects.join(\\\\\\\"\\\\\\\"),'\\\\\\\\t\\\\\\\\t\\\\u003ctext xml:space=\\\\\\\"preserve\\\\\\\" ',this.fontFamily?'font-family=\\\\\\\"'+this.fontFamily.replace(/\\\\\\\"/g,\\\\\\\"'\\\\\\\")+'\\\\\\\" ':\\\\\\\"\\\\\\\",this.fontSize?'font-size=\\\\\\\"'+this.fontSize+'\\\\\\\" ':\\\\\\\"\\\\\\\",this.fontStyle?'font-style=\\\\\\\"'+this.fontStyle+'\\\\\\\" ':\\\\\\\"\\\\\\\",this.fontWeight?'font-weight=\\\\\\\"'+this.fontWeight+'\\\\\\\" ':\\\\\\\"\\\\\\\",e?'text-decoration=\\\\\\\"'+e+'\\\\\\\" ':\\\\\\\"\\\\\\\",'style=\\\\\\\"',this.getSvgStyles(!0),'\\\\\\\"',this.addPaintOrder(),\\\\\\\" \\\\u003e\\\\\\\",t.textSpans.join(\\\\\\\"\\\\\\\"),\\\\\\\"\\\\u003c/text\\\\u003e\\\\\\\\n\\\\\\\"]},_getSVGTextAndBg:function(t,e){var i,r=[],n=[],o=t;this._setSVGBg(n);for(var s=0,a=this._textLines.length;s\\\\u003ca;s++)i=this._getLineLeftOffset(s),(this.textBackgroundColor||this.styleHas(\\\\\\\"textBackgroundColor\\\\\\\",s))\\\\u0026\\\\u0026this._setSVGTextLineBg(n,s,e+i,o),this._setSVGTextLineText(r,s,e+i,o),o+=this.getHeightOfLine(s);return{textSpans:r,textBgRects:n}},_createTextCharSpan:function(i,r,n,o){var s=i!==i.trim()||i.match(e),a=this.getSvgSpanStyles(r,s),h=a?'style=\\\\\\\"'+a+'\\\\\\\"':\\\\\\\"\\\\\\\",c=r.deltaY,l=\\\\\\\"\\\\\\\",u=T.Object.NUM_FRACTION_DIGITS;return c\\\\u0026\\\\u0026(l=' dy=\\\\\\\"'+t(c,u)+'\\\\\\\" '),['\\\\u003ctspan x=\\\\\\\"',t(n,u),'\\\\\\\" y=\\\\\\\"',t(o,u),'\\\\\\\" ',l,h,\\\\\\\"\\\\u003e\\\\\\\",T.util.string.escapeXml(i),\\\\\\\"\\\\u003c/tspan\\\\u003e\\\\\\\"].join(\\\\\\\"\\\\\\\")},_setSVGTextLineText:function(t,e,i,r){var n,o,s,a,h,c=this.getHeightOfLine(e),l=-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\"),u=\\\\\\\"\\\\\\\",f=0,d=this._textLines[e];r+=c*(1-this._fontSizeFraction)/this.lineHeight;for(var g=0,p=d.length-1;g\\\\u003c=p;g++)h=g===p||this.charSpacing,u+=d[g],s=this.__charBounds[e][g],0===f?(i+=s.kernedWidth-s.width,f+=s.width):f+=s.kernedWidth,l\\\\u0026\\\\u0026!h\\\\u0026\\\\u0026this._reSpaceAndTab.test(d[g])\\\\u0026\\\\u0026(h=!0),h||(n=n||this.getCompleteStyleDeclaration(e,g),o=this.getCompleteStyleDeclaration(e,g+1),h=this._hasStyleChangedForSvg(n,o)),h\\\\u0026\\\\u0026(a=this._getStyleDeclaration(e,g)||{},t.push(this._createTextCharSpan(u,a,i,r)),u=\\\\\\\"\\\\\\\",n=o,i+=f,f=0)},_pushTextBgRect:function(e,i,r,n,o,s){var a=T.Object.NUM_FRACTION_DIGITS;e.push(\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\u003crect \\\\\\\",this._getFillAttributes(i),' x=\\\\\\\"',t(r,a),'\\\\\\\" y=\\\\\\\"',t(n,a),'\\\\\\\" width=\\\\\\\"',t(o,a),'\\\\\\\" height=\\\\\\\"',t(s,a),'\\\\\\\"\\\\u003e\\\\u003c/rect\\\\u003e\\\\\\\\n')},_setSVGTextLineBg:function(t,e,i,r){for(var n,o,s=this._textLines[e],a=this.getHeightOfLine(e)/this.lineHeight,h=0,c=0,l=this.getValueOfPropertyAt(e,0,\\\\\\\"textBackgroundColor\\\\\\\"),u=0,f=s.length;u\\\\u003cf;u++)n=this.__charBounds[e][u],(o=this.getValueOfPropertyAt(e,u,\\\\\\\"textBackgroundColor\\\\\\\"))!==l?(l\\\\u0026\\\\u0026this._pushTextBgRect(t,l,i+c,r,h,a),c=n.left,h=n.width,l=o):h+=n.kernedWidth;o\\\\u0026\\\\u0026this._pushTextBgRect(t,o,i+c,r,h,a)},_getFillAttributes:function(t){var e=t\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"==typeof t?new T.Color(t):\\\\\\\"\\\\\\\";return e\\\\u0026\\\\u0026e.getSource()\\\\u0026\\\\u00261!==e.getAlpha()?'opacity=\\\\\\\"'+e.getAlpha()+'\\\\\\\" fill=\\\\\\\"'+e.setAlpha(1).toRgb()+'\\\\\\\"':'fill=\\\\\\\"'+t+'\\\\\\\"'},_getSVGLineTopOffset:function(t){for(var e,i=0,r=0;r\\\\u003ct;r++)i+=this.getHeightOfLine(r);return e=this.getHeightOfLine(r),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*e/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(t){return T.Object.prototype.getSvgStyles.call(this,t)+\\\\\\\" white-space: pre;\\\\\\\"}})}(),function(t){var e=t.fabric||(t.fabric={});e.Textbox=e.util.createClass(e.IText,e.Observable,{type:\\\\\\\"textbox\\\\\\\",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:e.Text.prototype._dimensionAffectingProps.concat(\\\\\\\"width\\\\\\\"),_wordJoiners:/[ \\\\\\\\t\\\\\\\\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing\\\\u0026\\\\u0026this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth\\\\u003ethis.width\\\\u0026\\\\u0026this._set(\\\\\\\"width\\\\\\\",this.dynamicMinWidth),-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\")\\\\u0026\\\\u0026this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:\\\\\\\"_dimensionAffectingProps\\\\\\\"}))},_generateStyleMap:function(t){for(var e=0,i=0,r=0,n={},o=0;o\\\\u003ct.graphemeLines.length;o++)\\\\\\\"\\\\\\\\n\\\\\\\"===t.graphemeText[r]\\\\u0026\\\\u0026o\\\\u003e0?(i=0,r++,e++):!this.splitByGrapheme\\\\u0026\\\\u0026this._reSpaceAndTab.test(t.graphemeText[r])\\\\u0026\\\\u0026o\\\\u003e0\\\\u0026\\\\u0026(i++,r++),n[o]={line:e,offset:i},r+=t.graphemeLines[o].length,i+=t.graphemeLines[o].length;return n},styleHas:function(t,i){if(this._styleMap\\\\u0026\\\\u0026!this.isWrapping){var r=this._styleMap[i];r\\\\u0026\\\\u0026(i=r.line)}return e.Text.prototype.styleHas.call(this,t,i)},isEmptyStyles:function(t){if(!this.styles)return!0;var e,i,r=0,n=!1,o=this._styleMap[t],s=this._styleMap[t+1];for(var a in o\\\\u0026\\\\u0026(t=o.line,r=o.offset),s\\\\u0026\\\\u0026(n=s.line===t,e=s.offset),i=void 0===t?this.styles:{line:this.styles[t]})for(var h in i[a])if(h\\\\u003e=r\\\\u0026\\\\u0026(!n||h\\\\u003ce))for(var c in i[a][h])return!1;return!0},_getStyleDeclaration:function(t,e){if(this._styleMap\\\\u0026\\\\u0026!this.isWrapping){var i=this._styleMap[t];if(!i)return null;t=i.line,e=i.offset+e}return this.callSuper(\\\\\\\"_getStyleDeclaration\\\\\\\",t,e)},_setStyleDeclaration:function(t,e,i){var r=this._styleMap[t];t=r.line,e=r.offset+e,this.styles[t][e]=i},_deleteStyleDeclaration:function(t,e){var i=this._styleMap[t];t=i.line,e=i.offset+e,delete this.styles[t][e]},_getLineStyle:function(t){var e=this._styleMap[t];return!!this.styles[e.line]},_setLineStyle:function(t){var e=this._styleMap[t];this.styles[e.line]={}},_wrapText:function(t,e){var i,r=[];for(this.isWrapping=!0,i=0;i\\\\u003ct.length;i++)r=r.concat(this._wrapLine(t[i],i,e));return this.isWrapping=!1,r},_measureWord:function(t,e,i){var r,n=0;i=i||0;for(var o=0,s=t.length;o\\\\u003cs;o++){n+=this._getGraphemeBox(t[o],e,o+i,r,true).kernedWidth,r=t[o]}return n},_wrapLine:function(t,i,r,n){var o=0,s=this.splitByGrapheme,a=[],h=[],c=s?e.util.string.graphemeSplit(t):t.split(this._wordJoiners),l=\\\\\\\"\\\\\\\",u=0,f=s?\\\\\\\"\\\\\\\":\\\\\\\" \\\\\\\",d=0,g=0,p=0,v=!0,m=this._getWidthOfCharSpacing();n=n||0;0===c.length\\\\u0026\\\\u0026c.push([]),r-=n;for(var y=0;y\\\\u003cc.length;y++)l=s?c[y]:e.util.string.graphemeSplit(c[y]),d=this._measureWord(l,i,u),u+=l.length,(o+=g+d-m)\\\\u003er\\\\u0026\\\\u0026!v?(a.push(h),h=[],o=d,v=!0):o+=m,v||s||h.push(f),h=h.concat(l),g=s?0:this._measureWord([f],i,u),u++,v=!1,d\\\\u003ep\\\\u0026\\\\u0026(p=d);return y\\\\u0026\\\\u0026a.push(h),p+n\\\\u003ethis.dynamicMinWidth\\\\u0026\\\\u0026(this.dynamicMinWidth=p-m+n),a},isEndOfWrapping:function(t){return!this._styleMap[t+1]||this._styleMap[t+1].line!==this._styleMap[t].line},missingNewlineOffset:function(t){return this.splitByGrapheme?this.isEndOfWrapping(t)?1:0:1},_splitTextIntoLines:function(t){for(var i=e.Text.prototype._splitTextIntoLines.call(this,t),r=this._wrapText(i.lines,this.width),n=new Array(r.length),o=0;o\\\\u003cr.length;o++)n[o]=r[o].join(\\\\\\\"\\\\\\\");return i.lines=n,i.graphemeLines=r,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var t={};for(var e in this._styleMap)this._textLines[e]\\\\u0026\\\\u0026(t[this._styleMap[e].line]=1);for(var e in this.styles)t[e]||delete this.styles[e]},toObject:function(t){return this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"minWidth\\\\\\\",\\\\\\\"splitByGrapheme\\\\\\\"].concat(t))}}),e.Textbox.fromObject=function(t,i){return e.Object._fromObject(\\\\\\\"Textbox\\\\\\\",t,i,\\\\\\\"text\\\\\\\")}}(t),function(){var t=T.controlsUtils,e=t.scaleSkewCursorStyleHandler,i=t.scaleCursorStyleHandler,r=t.scalingEqually,n=t.scalingYOrSkewingX,o=t.scalingXOrSkewingY,s=t.scaleOrSkewActionName,a=T.Object.prototype.controls;if(a.ml=new T.Control({x:-.5,y:0,cursorStyleHandler:e,actionHandler:o,getActionName:s}),a.mr=new T.Control({x:.5,y:0,cursorStyleHandler:e,actionHandler:o,getActionName:s}),a.mb=new T.Control({x:0,y:.5,cursorStyleHandler:e,actionHandler:n,getActionName:s}),a.mt=new T.Control({x:0,y:-.5,cursorStyleHandler:e,actionHandler:n,getActionName:s}),a.tl=new T.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:r}),a.tr=new T.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:r}),a.bl=new T.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:r}),a.br=new T.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:r}),a.mtr=new T.Control({x:0,y:-.5,actionHandler:t.rotationWithSnapping,cursorStyleHandler:t.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:\\\\\\\"rotate\\\\\\\"}),T.Textbox){var h=T.Textbox.prototype.controls={};h.mtr=a.mtr,h.tr=a.tr,h.br=a.br,h.tl=a.tl,h.bl=a.bl,h.mt=a.mt,h.mb=a.mb,h.mr=new T.Control({x:.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:\\\\\\\"resizing\\\\\\\"}),h.ml=new T.Control({x:-.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:\\\\\\\"resizing\\\\\\\"})}}(),function(){var t=T.Object.prototype._set,e=T.Object.prototype.render,i=T.Object.prototype.toObject,r=T.Object.prototype._createBaseSVGMarkup;T.util.object.extend(T.Object.prototype,{erasable:!0,getEraser:function(){return this.clipPath\\\\u0026\\\\u0026this.clipPath.eraser?this.clipPath:void 0},getClipPath:function(){var t=this.getEraser();return t?t._objects[0].clipPath:this.clipPath},setClipPath:function(t){var e=this.getEraser();(e?e._objects[0]:this).set(\\\\\\\"clipPath\\\\\\\",t),this.set(\\\\\\\"dirty\\\\\\\",!0)},_updateEraserDimensions:function(t,e){var i=this.getEraser();if(i){var r=i._objects[0],n={width:r.width,height:r.height},o=this._getNonTransformedDimensions(),s=T.util.object.extend({width:o.x,height:o.y},t);if(n.width===s.width\\\\u0026\\\\u0026n.height===s.height)return;var a=new T.Point((n.width-s.width)/2,(n.height-s.height)/2);i.set(s),i.setPositionByOrigin(new T.Point(0,0),\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\"),r.set(s),i.set(\\\\\\\"dirty\\\\\\\",!0),e||i.getObjects(\\\\\\\"path\\\\\\\").forEach((function(t){t.setPositionByOrigin(t.getCenterPoint().add(a),\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\")})),this.setCoords()}},_set:function(e,i){return t.call(this,e,i),\\\\\\\"width\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"height\\\\\\\"!==e||this._updateEraserDimensions(),this},render:function(t){this._updateEraserDimensions(),e.call(this,t)},toObject:function(t){return i.call(this,[\\\\\\\"erasable\\\\\\\"].concat(t))},eraserToSVG:function(t){var e=this.getEraser();if(e){var i=e._objects[0].fill;e._objects[0].fill=\\\\\\\"white\\\\\\\",e.clipPathId=\\\\\\\"CLIPPATH_\\\\\\\"+T.Object.__uid++;var r=[\\\\\\\"\\\\u003cdefs\\\\u003e\\\\\\\",\\\\\\\"\\\\u003cmask \\\\\\\"+['id=\\\\\\\"'+e.clipPathId+'\\\\\\\"'].join(\\\\\\\" \\\\\\\")+\\\\\\\" \\\\u003e\\\\\\\",e.toSVG(t.reviver),\\\\\\\"\\\\u003c/mask\\\\u003e\\\\\\\",\\\\\\\"\\\\u003c/defs\\\\u003e\\\\\\\"];return e._objects[0].fill=i,r.join(\\\\\\\"\\\\\\\\n\\\\\\\")}return\\\\\\\"\\\\\\\"},_createBaseSVGMarkup:function(t,e){var i=this.getEraser();if(i){var n=this.eraserToSVG(e);this.clipPath=null;var o=r.call(this,t,e);return this.clipPath=i,[n,o.replace(\\\\\\\"\\\\u003e\\\\\\\",'mask=\\\\\\\"url(#'+i.clipPathId+')\\\\\\\" \\\\u003e')].join(\\\\\\\"\\\\\\\\n\\\\\\\")}return r.call(this,t,e)}});var n=T.Group.prototype._restoreObjectsState,o=T.Group.prototype.toObject,s=T.Group.prototype._getBounds;T.util.object.extend(T.Group.prototype,{_getBounds:function(t,e,i){if(this.eraser)return this.width=this._objects[0].width,void(this.height=this._objects[0].height);s.call(this,t,e,i)},_addEraserPathToObjects:function(t){this._objects.forEach((function(e){T.EraserBrush.prototype._addPathToObjectEraser.call(T.EraserBrush.prototype,e,t)}))},applyEraserToObjects:function(){var t=this;if(this.getEraser()){var e=t.calcTransformMatrix();t.getEraser().clone((function(i){var r=i._objects[0].clipPath;t.clipPath=r||void 0,i.getObjects(\\\\\\\"path\\\\\\\").forEach((function(i){var n=T.util.multiplyTransformMatrices(e,i.calcTransformMatrix());T.util.applyTransformToObject(i,n),r?r.clone((function(r){T.EraserBrush.prototype.applyClipPathToPath.call(T.EraserBrush.prototype,i,r,e),t._addEraserPathToObjects(i)})):t._addEraserPathToObjects(i)}))}))}},_restoreObjectsState:function(){return!0===this.erasable\\\\u0026\\\\u0026this.applyEraserToObjects(),n.call(this)},toObject:function(t){return o.call(this,[\\\\\\\"eraser\\\\\\\"].concat(t))}}),T.util.object.extend(T.Canvas.prototype,{isErasing:function(){return this.isDrawingMode\\\\u0026\\\\u0026this.freeDrawingBrush\\\\u0026\\\\u0026\\\\\\\"eraser\\\\\\\"===this.freeDrawingBrush.type\\\\u0026\\\\u0026this.freeDrawingBrush._isErasing},renderAll:function(){if(!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),!this.isErasing()){this.hasLostContext\\\\u0026\\\\u0026this.renderTopLayer(this.contextTop);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this}this.freeDrawingBrush._render()}}),T.EraserBrush=T.util.createClass(T.PencilBrush,{type:\\\\\\\"eraser\\\\\\\",_ready:!1,_drawOverlayOnTop:!1,_isErasing:!1,initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this._renderBound=this._render.bind(this),this.render=this.render.bind(this)},hideObject:function(t){t\\\\u0026\\\\u0026(t._originalOpacity=t.opacity,t.set({opacity:0}))},restoreObjectVisibility:function(t){t\\\\u0026\\\\u0026t._originalOpacity\\\\u0026\\\\u0026(t.set({opacity:t._originalOpacity}),t._originalOpacity=void 0)},_isErasable:function(t){return!1!==t.erasable},prepareCanvasBackgroundForLayer:function(t){if(\\\\\\\"overlay\\\\\\\"!==t){var e=this.canvas.backgroundImage,i=\\\\\\\"top\\\\\\\"===t;e\\\\u0026\\\\u0026this._isErasable(e)===!i\\\\u0026\\\\u0026this.hideObject(e)}},prepareCanvasOverlayForLayer:function(t){var e=this.canvas,i=e.overlayImage,r=!!e.overlayColor;if(e.overlayColor\\\\u0026\\\\u0026\\\\\\\"overlay\\\\\\\"!==t\\\\u0026\\\\u0026(this.__overlayColor=e.overlayColor,delete e.overlayColor),\\\\\\\"bottom\\\\\\\"===t)return this.hideObject(i),!1;var n=\\\\\\\"top\\\\\\\"===t,o=i\\\\u0026\\\\u0026!this._isErasable(i)||r;return i\\\\u0026\\\\u0026this._isErasable(i)===!n\\\\u0026\\\\u0026this.hideObject(i),o},restoreCanvasDrawables:function(){var t=this.canvas;this.__overlayColor\\\\u0026\\\\u0026(t.overlayColor=this.__overlayColor,delete this.__overlayColor),this.restoreObjectVisibility(t.backgroundImage),this.restoreObjectVisibility(t.overlayImage)},prepareCollectionTraversal:function(t){var e=this;t.forEachObject((function(t){t.forEachObject\\\\u0026\\\\u0026\\\\\\\"deep\\\\\\\"===t.erasable?e.prepareCollectionTraversal(t):t.erasable\\\\u0026\\\\u0026e.hideObject(t)}))},restoreCollectionTraversal:function(t){var e=this;t.forEachObject((function(t){t.forEachObject\\\\u0026\\\\u0026\\\\\\\"deep\\\\\\\"===t.erasable?e.restoreCollectionTraversal(t):e.restoreObjectVisibility(t)}))},prepareCanvasObjectsForLayer:function(t){\\\\\\\"bottom\\\\\\\"===t\\\\u0026\\\\u0026this.prepareCollectionTraversal(this.canvas)},restoreCanvasObjectsFromLayer:function(t){\\\\\\\"bottom\\\\\\\"===t\\\\u0026\\\\u0026this.restoreCollectionTraversal(this.canvas)},prepareCanvasForLayer:function(t){return this.prepareCanvasBackgroundForLayer(t),this.prepareCanvasObjectsForLayer(t),this.prepareCanvasOverlayForLayer(t)},restoreCanvasFromLayer:function(t){this.restoreCanvasDrawables(),this.restoreCanvasObjectsFromLayer(t)},renderBottomLayer:function(){var t=this.canvas;this.prepareCanvasForLayer(\\\\\\\"bottom\\\\\\\"),t.renderCanvas(t.getContext(),t.getObjects().filter((function(t){return!t.erasable||t.forEachObject}))),this.restoreCanvasFromLayer(\\\\\\\"bottom\\\\\\\")},renderTopLayer:function(){var t=this.canvas;this._drawOverlayOnTop=this.prepareCanvasForLayer(\\\\\\\"top\\\\\\\"),t.renderCanvas(t.contextTop,t.getObjects()),this.callSuper(\\\\\\\"_render\\\\\\\"),this.restoreCanvasFromLayer(\\\\\\\"top\\\\\\\")},renderOverlay:function(){this.prepareCanvasForLayer(\\\\\\\"overlay\\\\\\\");var t=this.canvas,e=t.contextTop;t._renderOverlay(e),this.restoreCanvasFromLayer(\\\\\\\"overlay\\\\\\\")},_saveAndTransform:function(t){this.callSuper(\\\\\\\"_saveAndTransform\\\\\\\",t),t.globalCompositeOperation=\\\\\\\"destination-out\\\\\\\"},needsFullRender:function(){return this.callSuper(\\\\\\\"needsFullRender\\\\\\\")||this._drawOverlayOnTop},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)\\\\u0026\\\\u0026(this._prepareForDrawing(t),this._captureDrawingPath(t),this._isErasing=!0,this.canvas.fire(\\\\\\\"erasing:start\\\\\\\"),this._ready=!0,this._render())},_render:function(){this._ready\\\\u0026\\\\u0026(this.isRendering=1,this.renderBottomLayer(),this.renderTopLayer(),this.renderOverlay(),this.isRendering=0)},render:function(){return!!this._isErasing\\\\u0026\\\\u0026(this.isRendering?this.isRendering=T.util.requestAnimFrame(this._renderBound):this._render(),!0)},applyClipPathToPath:function(t,e,i){var r=t.calcTransformMatrix(),n=e.calcTransformMatrix(),o=T.util.multiplyTransformMatrices(T.util.invertTransform(r),i);return T.util.applyTransformToObject(e,T.util.multiplyTransformMatrices(o,n)),t.clipPath=e,t},clonePathWithClipPath:function(t,e,i){var r=e.calcTransformMatrix(),n=e.getClipPath(),o=this;t.clone((function(t){n.clone((function(e){i(o.applyClipPathToPath(t,e,r))}))}))},_addPathToObjectEraser:function(t,e){var i,r=this;if(t.forEachObject\\\\u0026\\\\u0026\\\\\\\"deep\\\\\\\"===t.erasable){var n=t._objects.filter((function(t){return t.erasable}));n.length\\\\u003e0\\\\u0026\\\\u0026t.clipPath?this.clonePathWithClipPath(e,t,(function(t){n.forEach((function(e){r._addPathToObjectEraser(e,t)}))})):n.length\\\\u003e0\\\\u0026\\\\u0026n.forEach((function(t){r._addPathToObjectEraser(t,e)}))}else{if(t.getEraser())i=t.clipPath;else{var o=t._getNonTransformedDimensions(),s=new T.Rect({fill:\\\\\\\"rgb(0,0,0)\\\\\\\",width:o.x,height:o.y,clipPath:t.clipPath,originX:\\\\\\\"center\\\\\\\",originY:\\\\\\\"center\\\\\\\"});i=new T.Group([s],{eraser:!0})}e.clone((function(e){e.globalCompositeOperation=\\\\\\\"destination-out\\\\\\\";var n=T.util.multiplyTransformMatrices(T.util.invertTransform(t.calcTransformMatrix()),e.calcTransformMatrix());T.util.applyTransformToObject(e,n),i.addWithUpdate(e),t.set({clipPath:i,dirty:!0}),t.fire(\\\\\\\"erasing:end\\\\\\\",{path:e}),t.group\\\\u0026\\\\u0026Array.isArray(r.__subTargets)\\\\u0026\\\\u0026r.__subTargets.push(t)}))}},applyEraserToCanvas:function(t){var e=this.canvas,i={};return[\\\\\\\"backgroundImage\\\\\\\",\\\\\\\"overlayImage\\\\\\\"].forEach((function(r){var n=e[r];n\\\\u0026\\\\u0026n.erasable\\\\u0026\\\\u0026(this._addPathToObjectEraser(n,t),i[r]=n)}),this),i},_finalizeAndAddPath:function(){var t=this.canvas.contextTop,e=this.canvas;t.closePath(),this.decimate\\\\u0026\\\\u0026(this._points=this.decimatePoints(this._points,this.decimate)),e.clearContext(e.contextTop),this._isErasing=!1;var i=this._points\\\\u0026\\\\u0026this._points.length\\\\u003e1?this.convertPointsToSVGPath(this._points):null;if(!i||this._isEmptySVGPath(i))return e.fire(\\\\\\\"erasing:end\\\\\\\"),void e.requestRenderAll();var r=this.createPath(i);r.setCoords(),e.fire(\\\\\\\"before:path:created\\\\\\\",{path:r});var n=this.applyEraserToCanvas(r),o=this;this.__subTargets=[];var s=[];e.forEachObject((function(t){t.erasable\\\\u0026\\\\u0026t.intersectsWithObject(r,!0,!0)\\\\u0026\\\\u0026(o._addPathToObjectEraser(t,r),s.push(t))})),e.fire(\\\\\\\"erasing:end\\\\\\\",{path:r,targets:s,subTargets:this.__subTargets,drawables:n}),delete this.__subTargets,e.requestRenderAll(),r.setCoords(),this._resetShadow(),e.fire(\\\\\\\"path:created\\\\\\\",{path:r})}})}()}(tt);var rt=tt.fabric;export{tt as default,rt as fabric};\\\\n10 | //# sourceMappingURL=/sm/4595deba885e6b95e012cf1ed9deed8a7b30edf3ae4c7d4bd5cc11d619b75c11.map\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"web_version/v1/lib/fabric.js\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 9,\\n        \\\"line_snippet\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=document.implementation.createHTMLDocument(\\\\\\\"\\\\\\\"),T.window=window;else{var O=new it.JSDOM(decodeURIComponent(\\\\\\\"%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E\\\\\\\"),{features:{FetchExternalResources:[\\\\\\\"img\\\\\\\"]},resources:\\\\\\\"usable\\\\\\\"}).window;T.document=O.document,T.jsdomImplForWrapper=it.implForWrapper,T.nodeCanvas=it.Canvas,T.window=O,DOMParser=T.window.DOMParser}if(T.isTouchSupported=\\\\\\\"ontouchstart\\\\\\\"in T.window||\\\\\\\"ontouchstart\\\\\\\"in T.document||T.window\\\\u0026\\\\u0026T.window.navigator\\\\u0026\\\\u0026T.window.navigator.maxTouchPoints\\\\u003e0,T.isLikelyNode=void 0!==p\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"==typeof window,T.SHARED_ATTRIBUTES=[\\\\\\\"display\\\\\\\",\\\\\\\"transform\\\\\\\",\\\\\\\"fill\\\\\\\",\\\\\\\"fill-opacity\\\\\\\",\\\\\\\"fill-rule\\\\\\\",\\\\\\\"opacity\\\\\\\",\\\\\\\"stroke\\\\\\\",\\\\\\\"stroke-dasharray\\\\\\\",\\\\\\\"stroke-linecap\\\\\\\",\\\\\\\"stroke-dashoffset\\\\\\\",\\\\\\\"stroke-linejoin\\\\\\\",\\\\\\\"stroke-miterlimit\\\\\\\",\\\\\\\"stroke-opacity\\\\\\\",\\\\\\\"stroke-width\\\\\\\",\\\\\\\"id\\\\\\\",\\\\\\\"paint-order\\\\\\\",\\\\\\\"vector-effect\\\\\\\",\\\\\\\"instantiated_by_use\\\\\\\",\\\\\\\"clip-path\\\\\\\"],T.DPI=96,T.reNum=\\\\\\\"(?:[-+]?(?:\\\\\\\\\\\\\\\\d+|\\\\\\\\\\\\\\\\d*\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\d+)(?:[eE][-+]?\\\\\\\\\\\\\\\\d+)?)\\\\\\\",T.commaWsp=\\\\\\\"(?:\\\\\\\\\\\\\\\\s+,?\\\\\\\\\\\\\\\\s*|,\\\\\\\\\\\\\\\\s*)\\\\\\\",T.rePathCommand=/([-+]?((\\\\\\\\d+\\\\\\\\.\\\\\\\\d+)|((\\\\\\\\d+)|(\\\\\\\\.\\\\\\\\d+)))(?:[eE][-+]?\\\\\\\\d+)?)/gi,T.reNonWord=/[ \\\\\\\\n\\\\\\\\.,;!\\\\\\\\?\\\\\\\\-]/,T.fontPaths={},T.iMatrix=[1,0,0,1,0,0],T.svgNS=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\",T.perfLimitSizeTotal=2097152,T.maxCacheSideLimit=4096,T.minCacheSideLimit=256,T.charWidthsCache={},T.textureSize=2048,T.disableStyleCopyPaste=!1,T.enableGLFiltering=!0,T.devicePixelRatio=T.window.devicePixelRatio||T.window.webkitDevicePixelRatio||T.window.mozDevicePixelRatio||1,T.browserShadowBlurConstant=1,T.arcToSegmentsCache={},T.boundsOfCurveCache={},T.cachesBoundsOfCurve=!0,T.forceGLPutImageData=!1,T.initFilterBackend=function(){return T.enableGLFiltering\\\\u0026\\\\u0026T.isWebglSupported\\\\u0026\\\\u0026T.isWebglSupported(T.textureSize)?(console.log(\\\\\\\"max texture size: \\\\\\\"+T.maxTextureSize),new T.WebglFilterBackend({tileSize:T.textureSize})):T.Canvas2dFilterBackend?new T.Canvas2dFilterBackend:void 0},\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window\\\\u0026\\\\u0026(window.fabric=T),void 0===P)var P={};if(function(t){t.modifyEventListener=!1,t.modifySelectors=!1,t.configure=function(e){isFinite(e.modifyEventListener)\\\\u0026\\\\u0026(t.modifyEventListener=e.modifyEventListener),isFinite(e.modifySelectors)\\\\u0026\\\\u0026(t.modifySelectors=e.modifySelectors),!1===d\\\\u0026\\\\u0026t.modifyEventListener\\\\u0026\\\\u0026g(),!1===p\\\\u0026\\\\u0026t.modifySelectors\\\\u0026\\\\u0026v()},t.add=function(t,e,r,n){return i(t,e,r,n,\\\\\\\"add\\\\\\\")},t.remove=function(t,e,r,n){return i(t,e,r,n,\\\\\\\"remove\\\\\\\")},t.returnFalse=function(t){return!1},t.stop=function(t){t\\\\u0026\\\\u0026(t.stopPropagation\\\\u0026\\\\u0026t.stopPropagation(),t.cancelBubble=!0,t.cancelBubbleCount=0)},t.prevent=function(t){t\\\\u0026\\\\u0026(t.preventDefault?t.preventDefault():t.preventManipulation?t.preventManipulation():t.returnValue=!1)},t.cancel=function(e){t.stop(e),t.prevent(e)},t.blur=function(){var t=document.activeElement;if(t){var e=document.activeElement.nodeName;\\\\\\\"INPUT\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"TEXTAREA\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"true\\\\\\\"!==t.contentEditable||t.blur\\\\u0026\\\\u0026t.blur()}},t.getEventSupport=function(t,e){if(\\\\\\\"string\\\\\\\"==typeof t\\\\u0026\\\\u0026(e=t,t=window),(e=\\\\\\\"on\\\\\\\"+e)in t)return!0;if(t.setAttribute||(t=document.createElement(\\\\\\\"div\\\\\\\")),t.setAttribute\\\\u0026\\\\u0026t.removeAttribute){t.setAttribute(e,\\\\\\\"\\\\\\\");var i=\\\\\\\"function\\\\\\\"==typeof t[e];return void 0!==t[e]\\\\u0026\\\\u0026(t[e]=null),t.removeAttribute(e),i}};var e=function(t){if(!t||\\\\\\\"object\\\\\\\"!=typeof t)return t;var i=new t.constructor;for(var r in t)t[r]\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t[r]?i[r]=e(t[r]):i[r]=t[r];return i},i=function(o,s,c,d,g,p){if(d=d||{},\\\\\\\"[object Object]\\\\\\\"===String(o)){var v=o;if(o=v.target,delete v.target,!v.type||!v.listener){for(var m in v){var y=v[m];\\\\\\\"function\\\\\\\"!=typeof y\\\\u0026\\\\u0026(d[m]=y)}var _={};for(var b in v){m=b.split(\\\\\\\",\\\\\\\");var x=v[b],C={};for(var w in d)C[w]=d[w];if(\\\\\\\"function\\\\\\\"==typeof x)c=x;else{if(\\\\\\\"function\\\\\\\"!=typeof x.listener)continue;c=x.listener;for(var w in x)\\\\\\\"function\\\\\\\"!=typeof x[w]\\\\u0026\\\\u0026(C[w]=x[w])}for(var S=0;S\\\\u003cm.length;S++)_[b]=P.add(o,m[S],c,C,g)}return _}for(var b in s=v.type,delete v.type,c=v.listener,delete v.listener,v)d[b]=v[b]}if(o\\\\u0026\\\\u0026s\\\\u0026\\\\u0026c){if(\\\\\\\"string\\\\\\\"==typeof o\\\\u0026\\\\u0026\\\\\\\"ready\\\\\\\"===s){if(!window.eventjs_stallOnReady){var T=(new Date).getTime(),O=d.timeout,E=d.interval||1e3/60,k=window.setInterval((function(){(new Date).getTime()-T\\\\u003eO\\\\u0026\\\\u0026window.clearInterval(k),document.querySelector(o)\\\\u0026\\\\u0026(window.clearInterval(k),setTimeout(c,1))}),E);return}s=\\\\\\\"load\\\\\\\",o=window}if(\\\\\\\"string\\\\\\\"==typeof o){if(0===(o=document.querySelectorAll(o)).length)return n(\\\\\\\"Missing target on listener!\\\\\\\",arguments);1===o.length\\\\u0026\\\\u0026(o=o[0])}var A,D={};if(o.length\\\\u003e0\\\\u0026\\\\u0026o!==window){for(var M=0,j=o.length;M\\\\u003cj;M++)(A=i(o[M],s,c,e(d),g))\\\\u0026\\\\u0026(D[M]=A);return r(D)}if(\\\\\\\"string\\\\\\\"==typeof s\\\\u0026\\\\u0026(-1!==(s=s.toLowerCase()).indexOf(\\\\\\\" \\\\\\\")?s=s.split(\\\\\\\" \\\\\\\"):-1!==s.indexOf(\\\\\\\",\\\\\\\")\\\\u0026\\\\u0026(s=s.split(\\\\\\\",\\\\\\\"))),\\\\\\\"string\\\\\\\"!=typeof s){if(\\\\\\\"number\\\\\\\"==typeof s.length)for(var F=0,L=s.length;F\\\\u003cL;F++)(A=i(o,s[F],c,e(d),g))\\\\u0026\\\\u0026(D[s[F]]=A);else for(var b in s)(A=\\\\\\\"function\\\\\\\"==typeof s[b]?i(o,b,s[b],e(d),g):i(o,b,s[b].listener,e(s[b]),g))\\\\u0026\\\\u0026(D[b]=A);return r(D)}if(0===s.indexOf(\\\\\\\"on\\\\\\\")\\\\u0026\\\\u0026(s=s.substr(2)),\\\\\\\"object\\\\\\\"!=typeof o)return n(\\\\\\\"Target is not defined!\\\\\\\",arguments);if(\\\\\\\"function\\\\\\\"!=typeof c)return n(\\\\\\\"Listener is not a function!\\\\\\\",arguments);var I=d.useCapture||!1,R=l(o)+\\\\\\\".\\\\\\\"+l(c)+\\\\\\\".\\\\\\\"+(I?1:0);if(t.Gesture\\\\u0026\\\\u0026t.Gesture._gestureHandlers[s]){if(R=s+R,\\\\\\\"remove\\\\\\\"===g){if(!h[R])return;h[R].remove(),delete h[R]}else if(\\\\\\\"add\\\\\\\"===g){if(h[R])return h[R].add(),h[R];if(d.useCall\\\\u0026\\\\u0026!t.modifyEventListener){var B=c;c=function(t,e){for(var i in e)t[i]=e[i];return B.call(o,t)}}d.gesture=s,d.target=o,d.listener=c,d.fromOverwrite=p,h[R]=t.proxy[s](d)}return h[R]}var Y,X=a(s);for(S=0;S\\\\u003cX.length;S++)if(Y=(s=X[S])+\\\\\\\".\\\\\\\"+R,\\\\\\\"remove\\\\\\\"===g){if(!h[Y])continue;o[f](s,c,I),delete h[Y]}else if(\\\\\\\"add\\\\\\\"===g){if(h[Y])return h[Y];o[u](s,c,I),h[Y]={id:Y,type:s,target:o,listener:c,remove:function(){for(var e=0;e\\\\u003cX.length;e++)t.remove(o,X[e],c,d)}}}return h[Y]}},r=function(t){return{remove:function(){for(var e in t)t[e].remove()},add:function(){for(var e in t)t[e].add()}}},n=function(t,e){\\\\\\\"undefined\\\\\\\"!=typeof console\\\\u0026\\\\u0026void 0!==console.error\\\\u0026\\\\u0026console.error(t,e)},o={msPointer:[\\\\\\\"MSPointerDown\\\\\\\",\\\\\\\"MSPointerMove\\\\\\\",\\\\\\\"MSPointerUp\\\\\\\"],touch:[\\\\\\\"touchstart\\\\\\\",\\\\\\\"touchmove\\\\\\\",\\\\\\\"touchend\\\\\\\"],mouse:[\\\\\\\"mousedown\\\\\\\",\\\\\\\"mousemove\\\\\\\",\\\\\\\"mouseup\\\\\\\"]},s={MSPointerDown:0,MSPointerMove:1,MSPointerUp:2,touchstart:0,touchmove:1,touchend:2,mousedown:0,mousemove:1,mouseup:2};t.supports={},window.navigator.msPointerEnabled\\\\u0026\\\\u0026(t.supports.msPointer=!0),t.getEventSupport(\\\\\\\"touchstart\\\\\\\")\\\\u0026\\\\u0026(t.supports.touch=!0),t.getEventSupport(\\\\\\\"mousedown\\\\\\\")\\\\u0026\\\\u0026(t.supports.mouse=!0);var a=function(e){var i=document.addEventListener?\\\\\\\"\\\\\\\":\\\\\\\"on\\\\\\\",r=s[e];if(isFinite(r)){var n=[];for(var a in t.supports)n.push(i+o[a][r]);return n}return[i+e]},h={},c=0,l=function(t){return t===window?\\\\\\\"#window\\\\\\\":t===document?\\\\\\\"#document\\\\\\\":(t.uniqueID||(t.uniqueID=\\\\\\\"e\\\\\\\"+c++),t.uniqueID)},u=document.addEventListener?\\\\\\\"addEventListener\\\\\\\":\\\\\\\"attachEvent\\\\\\\",f=document.removeEventListener?\\\\\\\"removeEventListener\\\\\\\":\\\\\\\"detachEvent\\\\\\\";t.createPointerEvent=function(e,i,r){var n=i.gesture,o=i.target,s=e.changedTouches||t.proxy.getCoords(e);if(s.length){var a=s[0];i.pointers=r?[]:s,i.pageX=a.pageX,i.pageY=a.pageY,i.x=i.pageX,i.y=i.pageY}var h=document.createEvent(\\\\\\\"Event\\\\\\\");for(var c in h.initEvent(n,!0,!0),h.originalEvent=e,i)\\\\\\\"target\\\\\\\"!==c\\\\u0026\\\\u0026(h[c]=i[c]);var l=h.type;t.Gesture\\\\u0026\\\\u0026t.Gesture._gestureHandlers[l]\\\\u0026\\\\u0026i.oldListener.call(o,h,i,!1)};var d=!1,g=function(){if(window.HTMLElement){var e=function(e){var r=function(r){var n=r+\\\\\\\"EventListener\\\\\\\",o=e[n];e[n]=function(e,n,s){if(t.Gesture\\\\u0026\\\\u0026t.Gesture._gestureHandlers[e]){var h=s;\\\\\\\"object\\\\\\\"==typeof s?h.useCall=!0:h={useCall:!0,useCapture:s},i(this,e,n,h,r,!0)}else for(var c=a(e),l=0;l\\\\u003cc.length;l++)o.call(this,c[l],n,s)}};r(\\\\\\\"add\\\\\\\"),r(\\\\\\\"remove\\\\\\\")};navigator.userAgent.match(/Firefox/)?(e(HTMLDivElement.prototype),e(HTMLCanvasElement.prototype)):e(HTMLElement.prototype),e(document),e(window)}},p=!1,v=function(){var t=NodeList.prototype;t.removeEventListener=function(t,e,i){for(var r=0,n=this.length;r\\\\u003cn;r++)this[r].removeEventListener(t,e,i)},t.addEventListener=function(t,e,i){for(var r=0,n=this.length;r\\\\u003cn;r++)this[r].addEventListener(t,e,i)}}}(P),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){t.pointerSetup=function(t,e){t.target=t.target||window,t.doc=t.target.ownerDocument||t.target,t.minFingers=t.minFingers||t.fingers||1,t.maxFingers=t.maxFingers||t.fingers||1/0,t.position=t.position||\\\\\\\"relative\\\\\\\",delete t.fingers,(e=e||{}).enabled=!0,e.gesture=t.gesture,e.target=t.target,e.env=t.env,P.modifyEventListener\\\\u0026\\\\u0026t.fromOverwrite\\\\u0026\\\\u0026(t.oldListener=t.listener,t.listener=P.createPointerEvent);var i=0,r=0===e.gesture.indexOf(\\\\\\\"pointer\\\\\\\")\\\\u0026\\\\u0026P.modifyEventListener?\\\\\\\"pointer\\\\\\\":\\\\\\\"mouse\\\\\\\";return t.oldListener\\\\u0026\\\\u0026(e.oldListener=t.oldListener),e.listener=t.listener,e.proxy=function(i){e.defaultListener=t.listener,t.listener=i,i(t.event,e)},e.add=function(){!0!==e.enabled\\\\u0026\\\\u0026(t.onPointerDown\\\\u0026\\\\u0026P.add(t.target,r+\\\\\\\"down\\\\\\\",t.onPointerDown),t.onPointerMove\\\\u0026\\\\u0026P.add(t.doc,r+\\\\\\\"move\\\\\\\",t.onPointerMove),t.onPointerUp\\\\u0026\\\\u0026P.add(t.doc,r+\\\\\\\"up\\\\\\\",t.onPointerUp),e.enabled=!0)},e.remove=function(){!1!==e.enabled\\\\u0026\\\\u0026(t.onPointerDown\\\\u0026\\\\u0026P.remove(t.target,r+\\\\\\\"down\\\\\\\",t.onPointerDown),t.onPointerMove\\\\u0026\\\\u0026P.remove(t.doc,r+\\\\\\\"move\\\\\\\",t.onPointerMove),t.onPointerUp\\\\u0026\\\\u0026P.remove(t.doc,r+\\\\\\\"up\\\\\\\",t.onPointerUp),e.reset(),e.enabled=!1)},e.pause=function(e){!t.onPointerMove||e\\\\u0026\\\\u0026!e.move||P.remove(t.doc,r+\\\\\\\"move\\\\\\\",t.onPointerMove),!t.onPointerUp||e\\\\u0026\\\\u0026!e.up||P.remove(t.doc,r+\\\\\\\"up\\\\\\\",t.onPointerUp),i=t.fingers,t.fingers=0},e.resume=function(e){!t.onPointerMove||e\\\\u0026\\\\u0026!e.move||P.add(t.doc,r+\\\\\\\"move\\\\\\\",t.onPointerMove),!t.onPointerUp||e\\\\u0026\\\\u0026!e.up||P.add(t.doc,r+\\\\\\\"up\\\\\\\",t.onPointerUp),t.fingers=i},e.reset=function(){t.tracker={},t.fingers=0},e};var e=P.supports;P.isMouse=!!e.mouse,P.isMSPointer=!!e.touch,P.isTouch=!!e.msPointer,t.pointerStart=function(e,i,r){var n=(e.type||\\\\\\\"mousedown\\\\\\\").toUpperCase();0===n.indexOf(\\\\\\\"MOUSE\\\\\\\")?(P.isMouse=!0,P.isTouch=!1,P.isMSPointer=!1):0===n.indexOf(\\\\\\\"TOUCH\\\\\\\")?(P.isMouse=!1,P.isTouch=!0,P.isMSPointer=!1):0===n.indexOf(\\\\\\\"MSPOINTER\\\\\\\")\\\\u0026\\\\u0026(P.isMouse=!1,P.isTouch=!1,P.isMSPointer=!0);var o=function(t,e){var i=r.bbox,n=a[e]={};switch(r.position){case\\\\\\\"absolute\\\\\\\":n.offsetX=0,n.offsetY=0;break;case\\\\\\\"differenceFromLast\\\\\\\":case\\\\\\\"difference\\\\\\\":n.offsetX=t.pageX,n.offsetY=t.pageY;break;case\\\\\\\"move\\\\\\\":n.offsetX=t.pageX-i.x1,n.offsetY=t.pageY-i.y1;break;default:n.offsetX=i.x1-i.scrollLeft,n.offsetY=i.y1-i.scrollTop}var o=t.pageX-n.offsetX,s=t.pageY-n.offsetY;n.rotation=0,n.scale=1,n.startTime=n.moveTime=(new Date).getTime(),n.move={x:o,y:s},n.start={x:o,y:s},r.fingers++};r.event=e,i.defaultListener\\\\u0026\\\\u0026(r.listener=i.defaultListener,delete i.defaultListener);for(var s=!r.fingers,a=r.tracker,h=e.changedTouches||t.getCoords(e),c=h.length,l=0;l\\\\u003cc;l++){var u=h[l],f=u.identifier||1/0;if(r.fingers){if(r.fingers\\\\u003e=r.maxFingers){var d=[];for(var f in r.tracker)d.push(f);return i.identifier=d.join(\\\\\\\",\\\\\\\"),s}for(var g in a)if(a[g].up){delete a[g],o(u,f),r.cancel=!0;break}if(a[f])continue;o(u,f)}else a=r.tracker={},i.bbox=r.bbox=t.getBoundingBox(r.target),r.fingers=0,r.cancel=!1,o(u,f)}d=[];for(var f in r.tracker)d.push(f);return i.identifier=d.join(\\\\\\\",\\\\\\\"),s},t.pointerEnd=function(t,e,i,r){for(var n=t.touches||[],o=n.length,s={},a=0;a\\\\u003co;a++){s[(h=n[a].identifier)||1/0]=!0}for(var h in i.tracker){var c=i.tracker[h];s[h]||c.up||(r\\\\u0026\\\\u0026r({pageX:c.pageX,pageY:c.pageY,changedTouches:[{pageX:c.pageX,pageY:c.pageY,identifier:\\\\\\\"Infinity\\\\\\\"===h?1/0:h}]},\\\\\\\"up\\\\\\\"),c.up=!0,i.fingers--)}if(0!==i.fingers)return!1;var l=[];for(var h in i.gestureFingers=0,i.tracker)i.gestureFingers++,l.push(h);return e.identifier=l.join(\\\\\\\",\\\\\\\"),!0},t.getCoords=function(e){return void 0!==e.pageX?t.getCoords=function(t){return Array({type:\\\\\\\"mouse\\\\\\\",x:t.pageX,y:t.pageY,pageX:t.pageX,pageY:t.pageY,identifier:t.pointerId||1/0})}:t.getCoords=function(t){var e=document.documentElement;return t=t||window.event,Array({type:\\\\\\\"mouse\\\\\\\",x:t.clientX+e.scrollLeft,y:t.clientY+e.scrollTop,pageX:t.clientX+e.scrollLeft,pageY:t.clientY+e.scrollTop,identifier:1/0})},t.getCoords(e)},t.getCoord=function(e){if(\\\\\\\"ontouchstart\\\\\\\"in window){var i=0,r=0;t.getCoord=function(t){var e=t.changedTouches;return e\\\\u0026\\\\u0026e.length?{x:i=e[0].pageX,y:r=e[0].pageY}:{x:i,y:r}}}else void 0!==e.pageX\\\\u0026\\\\u0026void 0!==e.pageY?t.getCoord=function(t){return{x:t.pageX,y:t.pageY}}:t.getCoord=function(t){var e=document.documentElement;return{x:(t=t||window.event).clientX+e.scrollLeft,y:t.clientY+e.scrollTop}};return t.getCoord(e)};var i,r,n,o=function(t,e){var i=parseFloat(t.getPropertyValue(e),10);return isFinite(i)?i:0};return t.getBoundingBox=function(t){t!==window\\\\u0026\\\\u0026t!==document||(t=document.body);var e={},i=t.getBoundingClientRect();if(e.width=i.width,e.height=i.height,e.x1=i.left,e.y1=i.top,e.scaleX=i.width/t.offsetWidth||1,e.scaleY=i.height/t.offsetHeight||1,e.scrollLeft=0,e.scrollTop=0,!1===(\\\\\\\"border-box\\\\\\\"===(c=window.getComputedStyle(t)).getPropertyValue(\\\\\\\"box-sizing\\\\\\\"))){var r=o(c,\\\\\\\"border-left-width\\\\\\\"),n=o(c,\\\\\\\"border-right-width\\\\\\\"),s=o(c,\\\\\\\"border-bottom-width\\\\\\\"),a=o(c,\\\\\\\"border-top-width\\\\\\\");e.border=[r,n,a,s],e.x1+=r,e.y1+=a,e.width-=n+r,e.height-=s+a}e.x2=e.x1+e.width,e.y2=e.y1+e.height;for(var h=\\\\\\\"fixed\\\\\\\"===(l=c.getPropertyValue(\\\\\\\"position\\\\\\\"))?t:t.parentNode;null!==h\\\\u0026\\\\u0026h!==document.body\\\\u0026\\\\u0026void 0!==h.scrollTop;){var c,l;if(\\\\\\\"absolute\\\\\\\"===(l=(c=window.getComputedStyle(h)).getPropertyValue(\\\\\\\"position\\\\\\\")));else{if(\\\\\\\"fixed\\\\\\\"===l){e.scrollTop-=h.parentNode.scrollTop,e.scrollLeft-=h.parentNode.scrollLeft;break}e.scrollLeft+=h.scrollLeft,e.scrollTop+=h.scrollTop}h=h.parentNode}return e.scrollBodyLeft=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,e.scrollBodyTop=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,e.scrollLeft-=e.scrollBodyLeft,e.scrollTop-=e.scrollBodyTop,e},r=navigator.userAgent.toLowerCase(),n=-1!==r.indexOf(\\\\\\\"macintosh\\\\\\\"),i=n\\\\u0026\\\\u0026-1!==r.indexOf(\\\\\\\"khtml\\\\\\\")?{91:!0,93:!0}:n\\\\u0026\\\\u0026-1!==r.indexOf(\\\\\\\"firefox\\\\\\\")?{224:!0}:{17:!0},(t.metaTrackerReset=function(){P.fnKey=t.fnKey=!1,P.metaKey=t.metaKey=!1,P.escKey=t.escKey=!1,P.ctrlKey=t.ctrlKey=!1,P.shiftKey=t.shiftKey=!1,P.altKey=t.altKey=!1})(),t.metaTracker=function(e){var r=\\\\\\\"keydown\\\\\\\"===e.type;27===e.keyCode\\\\u0026\\\\u0026(P.escKey=t.escKey=r),i[e.keyCode]\\\\u0026\\\\u0026(P.metaKey=t.metaKey=r),P.ctrlKey=t.ctrlKey=e.ctrlKey,P.shiftKey=t.shiftKey=e.shiftKey,P.altKey=t.altKey=e.altKey},t}(P.proxy),void 0===P)P={};if(P.MutationObserver=(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,i=!e\\\\u0026\\\\u0026function(){var t=document.createElement(\\\\\\\"p\\\\\\\"),e=!1,i=function(){e=!0};if(t.addEventListener)t.addEventListener(\\\\\\\"DOMAttrModified\\\\\\\",i,!1);else{if(!t.attachEvent)return!1;t.attachEvent(\\\\\\\"onDOMAttrModified\\\\\\\",i)}return t.setAttribute(\\\\\\\"id\\\\\\\",\\\\\\\"target\\\\\\\"),e}(),function(t,r){e?new e((function(t){t.forEach((function(t){r.call(t.target,t.attributeName)}))})).observe(t,{subtree:!1,attributes:!0}):i?P.add(t,\\\\\\\"DOMAttrModified\\\\\\\",(function(e){r.call(t,e.attrName)})):\\\\\\\"onpropertychange\\\\\\\"in document.body\\\\u0026\\\\u0026P.add(t,\\\\\\\"propertychange\\\\\\\",(function(e){r.call(t,window.event.propertyName)}))}),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=((r=P.proxy).click=function(t){t.gesture=t.gesture||\\\\\\\"click\\\\\\\",t.maxFingers=t.maxFingers||t.fingers||1,t.onPointerDown=function(i){r.pointerStart(i,e,t)\\\\u0026\\\\u0026P.add(t.target,\\\\\\\"mouseup\\\\\\\",t.onPointerUp)},t.onPointerUp=function(i){if(r.pointerEnd(i,e,t)){P.remove(t.target,\\\\\\\"mouseup\\\\\\\",t.onPointerUp);var n=(i.changedTouches||r.getCoords(i))[0],o=t.bbox,s=r.getBoundingBox(t.target),a=n.pageY-s.scrollBodyTop,h=n.pageX-s.scrollBodyLeft;if(h\\\\u003eo.x1\\\\u0026\\\\u0026a\\\\u003eo.y1\\\\u0026\\\\u0026h\\\\u003co.x2\\\\u0026\\\\u0026a\\\\u003co.y2\\\\u0026\\\\u0026o.scrollTop===s.scrollTop){for(var c in t.tracker)break;var l=t.tracker[c];e.x=l.start.x,e.y=l.start.y,t.listener(i,e)}}};var e=r.pointerSetup(t);return e.state=\\\\\\\"click\\\\\\\",P.add(t.target,\\\\\\\"mousedown\\\\\\\",t.onPointerDown),e},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.click=r.click,r),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.dbltap=t.dblclick=function(e){e.gesture=e.gesture||\\\\\\\"dbltap\\\\\\\",e.maxFingers=e.maxFingers||e.fingers||1;var i,r,n,o,s;e.onPointerDown=function(h){var c=h.changedTouches||t.getCoords(h);i\\\\u0026\\\\u0026!r?(s=c[0],r=(new Date).getTime()-i):(o=c[0],i=(new Date).getTime(),r=0,clearTimeout(n),n=setTimeout((function(){i=0}),700)),t.pointerStart(h,a,e)\\\\u0026\\\\u0026(P.add(e.target,\\\\\\\"mousemove\\\\\\\",e.onPointerMove).listener(h),P.add(e.target,\\\\\\\"mouseup\\\\\\\",e.onPointerUp))},e.onPointerMove=function(a){if(i\\\\u0026\\\\u0026!r){var h=a.changedTouches||t.getCoords(a);s=h[0]}var c=e.bbox,l=s.pageX-c.x1,u=s.pageY-c.y1;l\\\\u003e0\\\\u0026\\\\u0026l\\\\u003cc.width\\\\u0026\\\\u0026u\\\\u003e0\\\\u0026\\\\u0026u\\\\u003cc.height\\\\u0026\\\\u0026Math.abs(s.pageX-o.pageX)\\\\u003c=25\\\\u0026\\\\u0026Math.abs(s.pageY-o.pageY)\\\\u003c=25||(P.remove(e.target,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),clearTimeout(n),i=r=0)},e.onPointerUp=function(o){if(t.pointerEnd(o,a,e)\\\\u0026\\\\u0026(P.remove(e.target,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.remove(e.target,\\\\\\\"mouseup\\\\\\\",e.onPointerUp)),i\\\\u0026\\\\u0026r){if(r\\\\u003c=700){for(var s in a.state=e.gesture,e.tracker)break;var h=e.tracker[s];a.x=h.start.x,a.y=h.start.y,e.listener(o,a)}clearTimeout(n),i=r=0}};var a=t.pointerSetup(e);return a.state=\\\\\\\"dblclick\\\\\\\",P.add(e.target,\\\\\\\"mousedown\\\\\\\",e.onPointerDown),a},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.dbltap=t.dbltap,P.Gesture._gestureHandlers.dblclick=t.dblclick,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.dragElement=function(e,i){t.drag({event:i,target:e,position:\\\\\\\"move\\\\\\\",listener:function(t,i){e.style.left=i.x+\\\\\\\"px\\\\\\\",e.style.top=i.y+\\\\\\\"px\\\\\\\",P.prevent(t)}})},t.drag=function(e){e.gesture=\\\\\\\"drag\\\\\\\",e.onPointerDown=function(r){t.pointerStart(r,i,e)\\\\u0026\\\\u0026(e.monitor||(P.add(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.add(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp))),e.onPointerMove(r,\\\\\\\"down\\\\\\\")},e.onPointerMove=function(r,n){if(!e.tracker)return e.onPointerDown(r);e.bbox;for(var o=r.changedTouches||t.getCoords(r),s=o.length,a=0;a\\\\u003cs;a++){var h=o[a],c=h.identifier||1/0,l=e.tracker[c];l\\\\u0026\\\\u0026(l.pageX=h.pageX,l.pageY=h.pageY,i.state=n||\\\\\\\"move\\\\\\\",i.identifier=c,i.start=l.start,i.fingers=e.fingers,\\\\\\\"differenceFromLast\\\\\\\"===e.position?(i.x=l.pageX-l.offsetX,i.y=l.pageY-l.offsetY,l.offsetX=l.pageX,l.offsetY=l.pageY):(i.x=l.pageX-l.offsetX,i.y=l.pageY-l.offsetY),e.listener(r,i))}},e.onPointerUp=function(r){t.pointerEnd(r,i,e,e.onPointerMove)\\\\u0026\\\\u0026(e.monitor||(P.remove(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.remove(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp)))};var i=t.pointerSetup(e);return e.event?e.onPointerDown(e.event):(P.add(e.target,\\\\\\\"mousedown\\\\\\\",e.onPointerDown),e.monitor\\\\u0026\\\\u0026(P.add(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.add(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp))),i},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.drag=t.drag,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){var e=Math.PI/180,i=function(t,e){var i=0,r=0,n=0;for(var o in e){var s=e[o];s.up||(i+=s.move.x,r+=s.move.y,n++)}return t.x=i/=n,t.y=r/=n,t};return t.gesture=function(r){r.gesture=r.gesture||\\\\\\\"gesture\\\\\\\",r.minFingers=r.minFingers||r.fingers||2,r.onPointerDown=function(e){var o=r.fingers;if(t.pointerStart(e,n,r)\\\\u0026\\\\u0026(P.add(r.doc,\\\\\\\"mousemove\\\\\\\",r.onPointerMove),P.add(r.doc,\\\\\\\"mouseup\\\\\\\",r.onPointerUp)),r.fingers===r.minFingers\\\\u0026\\\\u0026o!==r.fingers){n.fingers=r.minFingers,n.scale=1,n.rotation=0,n.state=\\\\\\\"start\\\\\\\";var s=\\\\\\\"\\\\\\\";for(var a in r.tracker)s+=a;n.identifier=parseInt(s),i(n,r.tracker),r.listener(e,n)}},r.onPointerMove=function(o,s){for(var a=r.bbox,h=r.tracker,c=(f=o.changedTouches||t.getCoords(o)).length,l=0;l\\\\u003cc;l++){var u=h[p=(v=f[l]).identifier||1/0];u\\\\u0026\\\\u0026(u.move.x=v.pageX-a.x1,u.move.y=v.pageY-a.y1)}if(!(r.fingers\\\\u003cr.minFingers)){var f=[],d=0,g=0;for(var p in i(n,h),h){var v;if(!(v=h[p]).up){var m=v.start;if(!m.distance){var y=m.x-n.x,_=m.y-n.y;m.distance=Math.sqrt(y*y+_*_),m.angle=Math.atan2(y,_)/e}y=v.move.x-n.x,_=v.move.y-n.y;d+=Math.sqrt(y*y+_*_)/m.distance;var b=Math.atan2(y,_)/e,x=(m.angle-b+360)%360-180;v.DEG2=v.DEG1,v.DEG1=x\\\\u003e0?x:-x,void 0!==v.DEG2\\\\u0026\\\\u0026(x\\\\u003e0?v.rotation+=v.DEG1-v.DEG2:v.rotation-=v.DEG1-v.DEG2,g+=v.rotation),f.push(v.move)}}n.touches=f,n.fingers=r.fingers,n.scale=d/r.fingers,n.rotation=g/r.fingers,n.state=\\\\\\\"change\\\\\\\",r.listener(o,n)}},r.onPointerUp=function(e){var i=r.fingers;t.pointerEnd(e,n,r)\\\\u0026\\\\u0026(P.remove(r.doc,\\\\\\\"mousemove\\\\\\\",r.onPointerMove),P.remove(r.doc,\\\\\\\"mouseup\\\\\\\",r.onPointerUp)),i===r.minFingers\\\\u0026\\\\u0026r.fingers\\\\u003cr.minFingers\\\\u0026\\\\u0026(n.fingers=r.fingers,n.state=\\\\\\\"end\\\\\\\",r.listener(e,n))};var n=t.pointerSetup(r);return P.add(r.target,\\\\\\\"mousedown\\\\\\\",r.onPointerDown),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.gesture=t.gesture,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.pointerdown=t.pointermove=t.pointerup=function(e){if(e.gesture=e.gesture||\\\\\\\"pointer\\\\\\\",!e.target.isPointerEmitter){var i=!0;e.onPointerDown=function(t){i=!1,r.gesture=\\\\\\\"pointerdown\\\\\\\",e.listener(t,r)},e.onPointerMove=function(t){r.gesture=\\\\\\\"pointermove\\\\\\\",e.listener(t,r,i)},e.onPointerUp=function(t){i=!0,r.gesture=\\\\\\\"pointerup\\\\\\\",e.listener(t,r,!0)};var r=t.pointerSetup(e);return P.add(e.target,\\\\\\\"mousedown\\\\\\\",e.onPointerDown),P.add(e.target,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.add(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp),e.target.isPointerEmitter=!0,r}},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.pointerdown=t.pointerdown,P.Gesture._gestureHandlers.pointermove=t.pointermove,P.Gesture._gestureHandlers.pointerup=t.pointerup,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.shake=function(t){var e={gesture:\\\\\\\"devicemotion\\\\\\\",acceleration:{},accelerationIncludingGravity:{},target:t.target,listener:t.listener,remove:function(){window.removeEventListener(\\\\\\\"devicemotion\\\\\\\",o,!1)}},i=(new Date).getTime(),r={x:0,y:0,z:0},n={x:{count:0,value:0},y:{count:0,value:0},z:{count:0,value:0}},o=function(o){var s=.8,a=o.accelerationIncludingGravity;if(r.x=s*r.x+(1-s)*a.x,r.y=s*r.y+(1-s)*a.y,r.z=s*r.z+(1-s)*a.z,e.accelerationIncludingGravity=r,e.acceleration.x=a.x-r.x,e.acceleration.y=a.y-r.y,e.acceleration.z=a.z-r.z,\\\\\\\"devicemotion\\\\\\\"!==t.gesture)for(var h=(new Date).getTime(),c=0;c\\\\u003c3;c++){var l=\\\\\\\"xyz\\\\\\\"[c],u=e.acceleration[l],f=n[l],d=Math.abs(u);if(!(h-i\\\\u003c1e3)\\\\u0026\\\\u0026d\\\\u003e4){var g=h*u/d,p=Math.abs(g+f.value);f.value\\\\u0026\\\\u0026p\\\\u003c200?(f.value=g,f.count++,3===f.count\\\\u0026\\\\u0026(t.listener(o,e),i=h,f.value=0,f.count=0)):(f.value=g,f.count=1)}}else t.listener(o,e)};if(window.addEventListener)return window.addEventListener(\\\\\\\"devicemotion\\\\\\\",o,!1),e},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.shake=t.shake,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){var e=Math.PI/180;return t.swipe=function(i){i.snap=i.snap||90,i.threshold=i.threshold||1,i.gesture=i.gesture||\\\\\\\"swipe\\\\\\\",i.onPointerDown=function(e){t.pointerStart(e,r,i)\\\\u0026\\\\u0026(P.add(i.doc,\\\\\\\"mousemove\\\\\\\",i.onPointerMove).listener(e),P.add(i.doc,\\\\\\\"mouseup\\\\\\\",i.onPointerUp))},i.onPointerMove=function(e){for(var r=e.changedTouches||t.getCoords(e),n=r.length,o=0;o\\\\u003cn;o++){var s=r[o],a=s.identifier||1/0,h=i.tracker[a];h\\\\u0026\\\\u0026(h.move.x=s.pageX,h.move.y=s.pageY,h.moveTime=(new Date).getTime())}},i.onPointerUp=function(n){if(t.pointerEnd(n,r,i)){var o,s;P.remove(i.doc,\\\\\\\"mousemove\\\\\\\",i.onPointerMove),P.remove(i.doc,\\\\\\\"mouseup\\\\\\\",i.onPointerUp);var a={x:0,y:0},h=0,c=0,l=0;for(var u in i.tracker){var f=i.tracker[u],d=f.move.x-f.start.x,g=f.move.y-f.start.y;h+=f.move.x,c+=f.move.y,a.x+=f.start.x,a.y+=f.start.y,l++;var p=Math.sqrt(d*d+g*g),v=f.moveTime-f.startTime,m=Math.atan2(d,g)/e+180,y=v?p/v:0;if(void 0===s)s=m,o=y;else{if(!(Math.abs(m-s)\\\\u003c=20))return;s=(s+m)/2,o=(o+y)/2}}var _=i.gestureFingers;i.minFingers\\\\u003c=_\\\\u0026\\\\u0026i.maxFingers\\\\u003e=_\\\\u0026\\\\u0026o\\\\u003ei.threshold\\\\u0026\\\\u0026(a.x/=l,a.y/=l,r.start=a,r.x=h/l,r.y=c/l,r.angle=-(((s/i.snap+.5\\\\u003e\\\\u003e0)*i.snap||360)-360),r.velocity=o,r.fingers=_,r.state=\\\\\\\"swipe\\\\\\\",i.listener(n,r))}};var r=t.pointerSetup(i);return P.add(i.target,\\\\\\\"mousedown\\\\\\\",i.onPointerDown),r},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.swipe=t.swipe,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.longpress=function(e){return e.gesture=\\\\\\\"longpress\\\\\\\",t.tap(e)},t.tap=function(e){var i,r;e.delay=e.delay||500,e.timeout=e.timeout||250,e.driftDeviance=e.driftDeviance||10,e.gesture=e.gesture||\\\\\\\"tap\\\\\\\",e.onPointerDown=function(o){if(t.pointerStart(o,n,e)){if(i=(new Date).getTime(),P.add(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove).listener(o),P.add(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp),\\\\\\\"longpress\\\\\\\"!==e.gesture)return;r=setTimeout((function(){if(!(o.cancelBubble\\\\u0026\\\\u0026++o.cancelBubbleCount\\\\u003e1)){var t=0;for(var i in e.tracker){var r=e.tracker[i];if(!0===r.end)return;if(e.cancel)return;t++}e.minFingers\\\\u003c=t\\\\u0026\\\\u0026e.maxFingers\\\\u003e=t\\\\u0026\\\\u0026(n.state=\\\\\\\"start\\\\\\\",n.fingers=t,n.x=r.start.x,n.y=r.start.y,e.listener(o,n))}}),e.delay)}},e.onPointerMove=function(i){for(var r=e.bbox,n=i.changedTouches||t.getCoords(i),o=n.length,s=0;s\\\\u003co;s++){var a=n[s],h=a.identifier||1/0,c=e.tracker[h];if(c){var l=a.pageX-r.x1,u=a.pageY-r.y1,f=l-c.start.x,d=u-c.start.y,g=Math.sqrt(f*f+d*d);if(!(l\\\\u003e0\\\\u0026\\\\u0026l\\\\u003cr.width\\\\u0026\\\\u0026u\\\\u003e0\\\\u0026\\\\u0026u\\\\u003cr.height\\\\u0026\\\\u0026g\\\\u003c=e.driftDeviance))return P.remove(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),void(e.cancel=!0)}}},e.onPointerUp=function(o){if(t.pointerEnd(o,n,e)){if(clearTimeout(r),P.remove(e.doc,\\\\\\\"mousemove\\\\\\\",e.onPointerMove),P.remove(e.doc,\\\\\\\"mouseup\\\\\\\",e.onPointerUp),o.cancelBubble\\\\u0026\\\\u0026++o.cancelBubbleCount\\\\u003e1)return;if(\\\\\\\"longpress\\\\\\\"===e.gesture)return void(\\\\\\\"start\\\\\\\"===n.state\\\\u0026\\\\u0026(n.state=\\\\\\\"end\\\\\\\",e.listener(o,n)));if(e.cancel)return;if((new Date).getTime()-i\\\\u003ee.timeout)return;var s=e.gestureFingers;e.minFingers\\\\u003c=s\\\\u0026\\\\u0026e.maxFingers\\\\u003e=s\\\\u0026\\\\u0026(n.state=\\\\\\\"tap\\\\\\\",n.fingers=e.gestureFingers,e.listener(o,n))}};var n=t.pointerSetup(e);return P.add(e.target,\\\\\\\"mousedown\\\\\\\",e.onPointerDown),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.tap=t.tap,P.Gesture._gestureHandlers.longpress=t.longpress,t}(P.proxy),void 0===P)P={};if(void 0===P.proxy\\\\u0026\\\\u0026(P.proxy={}),P.proxy=function(t){return t.wheelPreventElasticBounce=function(t){t\\\\u0026\\\\u0026(\\\\\\\"string\\\\\\\"==typeof t\\\\u0026\\\\u0026(t=document.querySelector(t)),P.add(t,\\\\\\\"wheel\\\\\\\",(function(t,e){e.preventElasticBounce(),P.stop(t)})))},t.wheel=function(t){var e,i=t.timeout||150,r=0,n={gesture:\\\\\\\"wheel\\\\\\\",state:\\\\\\\"start\\\\\\\",wheelDelta:0,target:t.target,listener:t.listener,preventElasticBounce:function(t){var e=this.target,i=e.scrollTop;(i+e.offsetHeight===e.scrollHeight\\\\u0026\\\\u0026this.wheelDelta\\\\u003c=0||0===i\\\\u0026\\\\u0026this.wheelDelta\\\\u003e=0)\\\\u0026\\\\u0026P.cancel(t),P.stop(t)},add:function(){t.target[s](h,o,!1)},remove:function(){t.target[a](h,o,!1)}},o=function(o){o=o||window.event,n.state=r++?\\\\\\\"change\\\\\\\":\\\\\\\"start\\\\\\\",n.wheelDelta=o.detail?-20*o.detail:o.wheelDelta,t.listener(o,n),clearTimeout(e),e=setTimeout((function(){r=0,n.state=\\\\\\\"end\\\\\\\",n.wheelDelta=0,t.listener(o,n)}),i)},s=document.addEventListener?\\\\\\\"addEventListener\\\\\\\":\\\\\\\"attachEvent\\\\\\\",a=document.removeEventListener?\\\\\\\"removeEventListener\\\\\\\":\\\\\\\"detachEvent\\\\\\\",h=P.getEventSupport(\\\\\\\"mousewheel\\\\\\\")?\\\\\\\"mousewheel\\\\\\\":\\\\\\\"DOMMouseScroll\\\\\\\";return t.target[s](h,o,!1),n},P.Gesture=P.Gesture||{},P.Gesture._gestureHandlers=P.Gesture._gestureHandlers||{},P.Gesture._gestureHandlers.wheel=t.wheel,t}(P.proxy),void 0===E)var E={};function k(t,e){var i=t.canvas,r=e.targetCanvas,n=r.getContext(\\\\\\\"2d\\\\\\\");n.translate(0,r.height),n.scale(1,-1);var o=i.height-r.height;n.drawImage(i,0,o,r.width,r.height,0,0,r.width,r.height)}function A(t,e){var i=e.targetCanvas.getContext(\\\\\\\"2d\\\\\\\"),r=e.destinationWidth,n=e.destinationHeight,o=r*n*4,s=new Uint8Array(this.imageBuffer,0,o),a=new Uint8ClampedArray(this.imageBuffer,0,o);t.readPixels(0,0,r,n,t.RGBA,t.UNSIGNED_BYTE,s);var h=new ImageData(a,r,n);i.putImageData(h,0,0)}void 0===E.proxy\\\\u0026\\\\u0026(E.proxy={}),E.proxy=function(t){return t.orientation=function(t){var e={gesture:\\\\\\\"orientationchange\\\\\\\",previous:null,current:window.orientation,target:t.target,listener:t.listener,remove:function(){window.removeEventListener(\\\\\\\"orientationchange\\\\\\\",i,!1)}},i=function(i){e.previous=e.current,e.current=window.orientation,null===e.previous||e.previous==e.current||t.listener(i,e)};return window.DeviceOrientationEvent\\\\u0026\\\\u0026window.addEventListener(\\\\\\\"orientationchange\\\\\\\",i,!1),e},E.Gesture=E.Gesture||{},E.Gesture._gestureHandlers=E.Gesture._gestureHandlers||{},E.Gesture._gestureHandlers.orientation=t.orientation,t}(E.proxy),function(){function t(t,e){if(this.__eventListeners[t]){var i=this.__eventListeners[t];e?i[i.indexOf(e)]=!1:T.util.array.fill(i,!1)}}function e(t,e){var i=function(){e.apply(this,arguments),this.off(t,i)}.bind(this);this.on(t,i)}T.Observable={fire:function(t,e){if(!this.__eventListeners)return this;var i=this.__eventListeners[t];if(!i)return this;for(var r=0,n=i.length;r\\\\u003cn;r++)i[r]\\\\u0026\\\\u0026i[r].call(this,e||{});return this.__eventListeners[t]=i.filter((function(t){return!1!==t})),this},on:function(t,e){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in t)this.on(i,t[i]);else this.__eventListeners[t]||(this.__eventListeners[t]=[]),this.__eventListeners[t].push(e);return this},once:function(t,i){if(1===arguments.length)for(var r in t)e.call(this,r,t[r]);else e.call(this,t,i);return this},off:function(e,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(e in this.__eventListeners)t.call(this,e);else if(1===arguments.length\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof arguments[0])for(var r in e)t.call(this,r,e[r]);else t.call(this,e,i);return this}}}(),T.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var t=0,e=arguments.length;t\\\\u003ce;t++)this._onObjectAdded(arguments[t]);return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},insertAt:function(t,e,i){var r=this._objects;return i?r[e]=t:r.splice(e,0,t),this._onObjectAdded\\\\u0026\\\\u0026this._onObjectAdded(t),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},remove:function(){for(var t,e=this._objects,i=!1,r=0,n=arguments.length;r\\\\u003cn;r++)-1!==(t=e.indexOf(arguments[r]))\\\\u0026\\\\u0026(i=!0,e.splice(t,1),this._onObjectRemoved\\\\u0026\\\\u0026this._onObjectRemoved(arguments[r]));return this.renderOnAddRemove\\\\u0026\\\\u0026i\\\\u0026\\\\u0026this.requestRenderAll(),this},forEachObject:function(t,e){for(var i=this.getObjects(),r=0,n=i.length;r\\\\u003cn;r++)t.call(e,i[r],r,i);return this},getObjects:function(t){return void 0===t?this._objects.concat():this._objects.filter((function(e){return e.type===t}))},item:function(t){return this._objects[t]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(t,e){return this._objects.indexOf(t)\\\\u003e-1||!!e\\\\u0026\\\\u0026this._objects.some((function(e){return\\\\\\\"function\\\\\\\"==typeof e.contains\\\\u0026\\\\u0026e.contains(t,!0)}))},complexity:function(){return this._objects.reduce((function(t,e){return t+=e.complexity?e.complexity():0}),0)}},T.CommonMethods={_setOptions:function(t){for(var e in t)this.set(e,t[e])},_initGradient:function(t,e){!t||!t.colorStops||t instanceof T.Gradient||this.set(e,new T.Gradient(t))},_initPattern:function(t,e,i){!t||!t.source||t instanceof T.Pattern?i\\\\u0026\\\\u0026i():this.set(e,new T.Pattern(t,i))},_setObject:function(t){for(var e in t)this._set(e,t[e])},set:function(t,e){return\\\\\\\"object\\\\\\\"==typeof t?this._setObject(t):this._set(t,e),this},_set:function(t,e){this[t]=e},toggle:function(t){var e=this.get(t);return\\\\\\\"boolean\\\\\\\"==typeof e\\\\u0026\\\\u0026this.set(t,!e),this},get:function(t){return this[t]}},n=t,o=Math.sqrt,s=Math.atan2,a=Math.pow,h=Math.PI/180,c=Math.PI/2,T.util={cos:function(t){if(0===t)return 1;switch(t\\\\u003c0\\\\u0026\\\\u0026(t=-t),t/c){case 1:case 3:return 0;case 2:return-1}return Math.cos(t)},sin:function(t){if(0===t)return 0;var e=1;switch(t\\\\u003c0\\\\u0026\\\\u0026(e=-1),t/c){case 1:return e;case 2:return 0;case 3:return-e}return Math.sin(t)},removeFromArray:function(t,e){var i=t.indexOf(e);return-1!==i\\\\u0026\\\\u0026t.splice(i,1),t},getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t},degreesToRadians:function(t){return t*h},radiansToDegrees:function(t){return t/h},rotatePoint:function(t,e,i){var r=new T.Point(t.x-e.x,t.y-e.y),n=T.util.rotateVector(r,i);return new T.Point(n.x,n.y).addEquals(e)},rotateVector:function(t,e){var i=T.util.sin(e),r=T.util.cos(e);return{x:t.x*r-t.y*i,y:t.x*i+t.y*r}},transformPoint:function(t,e,i){return i?new T.Point(e[0]*t.x+e[2]*t.y,e[1]*t.x+e[3]*t.y):new T.Point(e[0]*t.x+e[2]*t.y+e[4],e[1]*t.x+e[3]*t.y+e[5])},makeBoundingBoxFromPoints:function(t,e){if(e)for(var i=0;i\\\\u003ct.length;i++)t[i]=T.util.transformPoint(t[i],e);var r=[t[0].x,t[1].x,t[2].x,t[3].x],n=T.util.array.min(r),o=T.util.array.max(r)-n,s=[t[0].y,t[1].y,t[2].y,t[3].y],a=T.util.array.min(s);return{left:n,top:a,width:o,height:T.util.array.max(s)-a}},invertTransform:function(t){var e=1/(t[0]*t[3]-t[1]*t[2]),i=[e*t[3],-e*t[1],-e*t[2],e*t[0]],r=T.util.transformPoint({x:t[4],y:t[5]},i,!0);return i[4]=-r.x,i[5]=-r.y,i},toFixed:function(t,e){return parseFloat(Number(t).toFixed(e))},parseUnit:function(t,e){var i=/\\\\\\\\D{0,2}$/.exec(t),r=parseFloat(t);switch(e||(e=T.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case\\\\\\\"mm\\\\\\\":return r*T.DPI/25.4;case\\\\\\\"cm\\\\\\\":return r*T.DPI/2.54;case\\\\\\\"in\\\\\\\":return r*T.DPI;case\\\\\\\"pt\\\\\\\":return r*T.DPI/72;case\\\\\\\"pc\\\\\\\":return r*T.DPI/72*12;case\\\\\\\"em\\\\\\\":return r*e;default:return r}},falseFunction:function(){return!1},getKlass:function(t,e){return t=T.util.string.camelize(t.charAt(0).toUpperCase()+t.slice(1)),T.util.resolveNamespace(e)[t]},getSvgAttributes:function(t){var e=[\\\\\\\"instantiated_by_use\\\\\\\",\\\\\\\"style\\\\\\\",\\\\\\\"id\\\\\\\",\\\\\\\"class\\\\\\\"];switch(t){case\\\\\\\"linearGradient\\\\\\\":e=e.concat([\\\\\\\"x1\\\\\\\",\\\\\\\"y1\\\\\\\",\\\\\\\"x2\\\\\\\",\\\\\\\"y2\\\\\\\",\\\\\\\"gradientUnits\\\\\\\",\\\\\\\"gradientTransform\\\\\\\"]);break;case\\\\\\\"radialGradient\\\\\\\":e=e.concat([\\\\\\\"gradientUnits\\\\\\\",\\\\\\\"gradientTransform\\\\\\\",\\\\\\\"cx\\\\\\\",\\\\\\\"cy\\\\\\\",\\\\\\\"r\\\\\\\",\\\\\\\"fx\\\\\\\",\\\\\\\"fy\\\\\\\",\\\\\\\"fr\\\\\\\"]);break;case\\\\\\\"stop\\\\\\\":e=e.concat([\\\\\\\"offset\\\\\\\",\\\\\\\"stop-color\\\\\\\",\\\\\\\"stop-opacity\\\\\\\"])}return e},resolveNamespace:function(t){if(!t)return T;var e,i=t.split(\\\\\\\".\\\\\\\"),r=i.length,o=n||T.window;for(e=0;e\\\\u003cr;++e)o=o[i[e]];return o},loadImage:function(t,e,i,r){if(t){var n=T.util.createImage(),o=function(){e\\\\u0026\\\\u0026e.call(i,n,!1),n=n.onload=n.onerror=null};n.onload=o,n.onerror=function(){T.log(\\\\\\\"Error loading \\\\\\\"+n.src),e\\\\u0026\\\\u0026e.call(i,null,!0),n=n.onload=n.onerror=null},0!==t.indexOf(\\\\\\\"data\\\\\\\")\\\\u0026\\\\u0026null!=r\\\\u0026\\\\u0026(n.crossOrigin=r),\\\\\\\"data:image/svg\\\\\\\"===t.substring(0,14)\\\\u0026\\\\u0026(n.onload=null,T.util.loadImageInDom(n,o)),n.src=t}else e\\\\u0026\\\\u0026e.call(i,t)},loadImageInDom:function(t,e){var i=T.document.createElement(\\\\\\\"div\\\\\\\");i.style.width=i.style.height=\\\\\\\"1px\\\\\\\",i.style.left=i.style.top=\\\\\\\"-100%\\\\\\\",i.style.position=\\\\\\\"absolute\\\\\\\",i.appendChild(t),T.document.querySelector(\\\\\\\"body\\\\\\\").appendChild(i),t.onload=function(){e(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(t,e,i,r){var n=[],o=0,s=(t=t||[]).length;function a(){++o===s\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e(n.filter((function(t){return t})))}s?t.forEach((function(t,e){t\\\\u0026\\\\u0026t.type?T.util.getKlass(t.type,i).fromObject(t,(function(i,o){o||(n[e]=i),r\\\\u0026\\\\u0026r(t,i,o),a()})):a()})):e\\\\u0026\\\\u0026e(n)},enlivenPatterns:function(t,e){function i(){++n===o\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e(r)}var r=[],n=0,o=(t=t||[]).length;o?t.forEach((function(t,e){t\\\\u0026\\\\u0026t.source?new T.Pattern(t,(function(t){r[e]=t,i()})):(r[e]=t,i())})):e\\\\u0026\\\\u0026e(r)},groupSVGElements:function(t,e,i){var r;return t\\\\u0026\\\\u00261===t.length?t[0]:(e\\\\u0026\\\\u0026(e.width\\\\u0026\\\\u0026e.height?e.centerPoint={x:e.width/2,y:e.height/2}:(delete e.width,delete e.height)),r=new T.Group(t,e),void 0!==i\\\\u0026\\\\u0026(r.sourcePath=i),r)},populateWithProperties:function(t,e,i){if(i\\\\u0026\\\\u0026\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(i))for(var r=0,n=i.length;r\\\\u003cn;r++)i[r]in t\\\\u0026\\\\u0026(e[i[r]]=t[i[r]])},drawDashedLine:function(t,e,i,r,n,a){var h=r-e,c=n-i,l=o(h*h+c*c),u=s(c,h),f=a.length,d=0,g=!0;for(t.save(),t.translate(e,i),t.moveTo(0,0),t.rotate(u),e=0;l\\\\u003ee;)(e+=a[d++%f])\\\\u003el\\\\u0026\\\\u0026(e=l),t[g?\\\\\\\"lineTo\\\\\\\":\\\\\\\"moveTo\\\\\\\"](e,0),g=!g;t.restore()},createCanvasElement:function(){return T.document.createElement(\\\\\\\"canvas\\\\\\\")},copyCanvasElement:function(t){var e=T.util.createCanvasElement();return e.width=t.width,e.height=t.height,e.getContext(\\\\\\\"2d\\\\\\\").drawImage(t,0,0),e},toDataURL:function(t,e,i){return t.toDataURL(\\\\\\\"image/\\\\\\\"+e,i)},createImage:function(){return T.document.createElement(\\\\\\\"img\\\\\\\")},multiplyTransformMatrices:function(t,e,i){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],i?0:t[0]*e[4]+t[2]*e[5]+t[4],i?0:t[1]*e[4]+t[3]*e[5]+t[5]]},qrDecompose:function(t){var e=s(t[1],t[0]),i=a(t[0],2)+a(t[1],2),r=o(i),n=(t[0]*t[3]-t[2]*t[1])/r,c=s(t[0]*t[2]+t[1]*t[3],i);return{angle:e/h,scaleX:r,scaleY:n,skewX:c/h,skewY:0,translateX:t[4],translateY:t[5]}},calcRotateMatrix:function(t){if(!t.angle)return T.iMatrix.concat();var e=T.util.degreesToRadians(t.angle),i=T.util.cos(e),r=T.util.sin(e);return[i,r,-r,i,0,0]},calcDimensionsMatrix:function(t){var e=void 0===t.scaleX?1:t.scaleX,i=void 0===t.scaleY?1:t.scaleY,r=[t.flipX?-e:e,0,0,t.flipY?-i:i,0,0],n=T.util.multiplyTransformMatrices,o=T.util.degreesToRadians;return t.skewX\\\\u0026\\\\u0026(r=n(r,[1,0,Math.tan(o(t.skewX)),1],!0)),t.skewY\\\\u0026\\\\u0026(r=n(r,[1,Math.tan(o(t.skewY)),0,1],!0)),r},composeMatrix:function(t){var e=[1,0,0,1,t.translateX||0,t.translateY||0],i=T.util.multiplyTransformMatrices;return t.angle\\\\u0026\\\\u0026(e=i(e,T.util.calcRotateMatrix(t))),(1!==t.scaleX||1!==t.scaleY||t.skewX||t.skewY||t.flipX||t.flipY)\\\\u0026\\\\u0026(e=i(e,T.util.calcDimensionsMatrix(t))),e},resetObjectTransform:function(t){t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.flipX=!1,t.flipY=!1,t.rotate(0)},saveObjectTransform:function(t){return{scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,angle:t.angle,left:t.left,flipX:t.flipX,flipY:t.flipY,top:t.top}},isTransparent:function(t,e,i,r){r\\\\u003e0\\\\u0026\\\\u0026(e\\\\u003er?e-=r:e=0,i\\\\u003er?i-=r:i=0);var n,o=!0,s=t.getImageData(e,i,2*r||1,2*r||1),a=s.data.length;for(n=3;n\\\\u003ca\\\\u0026\\\\u0026!1!=(o=s.data[n]\\\\u003c=0);n+=4);return s=null,o},parsePreserveAspectRatioAttribute:function(t){var e,i=\\\\\\\"meet\\\\\\\",r=t.split(\\\\\\\" \\\\\\\");return r\\\\u0026\\\\u0026r.length\\\\u0026\\\\u0026(\\\\\\\"meet\\\\\\\"!==(i=r.pop())\\\\u0026\\\\u0026\\\\\\\"slice\\\\\\\"!==i?(e=i,i=\\\\\\\"meet\\\\\\\"):r.length\\\\u0026\\\\u0026(e=r.pop())),{meetOrSlice:i,alignX:\\\\\\\"none\\\\\\\"!==e?e.slice(1,4):\\\\\\\"none\\\\\\\",alignY:\\\\\\\"none\\\\\\\"!==e?e.slice(5,8):\\\\\\\"none\\\\\\\"}},clearFabricFontCache:function(t){(t=(t||\\\\\\\"\\\\\\\").toLowerCase())?T.charWidthsCache[t]\\\\u0026\\\\u0026delete T.charWidthsCache[t]:T.charWidthsCache={}},limitDimsByArea:function(t,e){var i=Math.sqrt(e*t),r=Math.floor(e/i);return{x:Math.floor(i),y:r}},capValue:function(t,e,i){return Math.max(t,Math.min(e,i))},findScaleToFit:function(t,e){return Math.min(e.width/t.width,e.height/t.height)},findScaleToCover:function(t,e){return Math.max(e.width/t.width,e.height/t.height)},matrixToSVG:function(t){return\\\\\\\"matrix(\\\\\\\"+t.map((function(t){return T.util.toFixed(t,T.Object.NUM_FRACTION_DIGITS)})).join(\\\\\\\" \\\\\\\")+\\\\\\\")\\\\\\\"},removeTransformFromObject:function(t,e){var i=T.util.invertTransform(e),r=T.util.multiplyTransformMatrices(i,t.calcOwnMatrix());T.util.applyTransformToObject(t,r)},addTransformToObject:function(t,e){T.util.applyTransformToObject(t,T.util.multiplyTransformMatrices(e,t.calcOwnMatrix()))},applyTransformToObject:function(t,e){var i=T.util.qrDecompose(e),r=new T.Point(i.translateX,i.translateY);t.flipX=!1,t.flipY=!1,t.set(\\\\\\\"scaleX\\\\\\\",i.scaleX),t.set(\\\\\\\"scaleY\\\\\\\",i.scaleY),t.skewX=i.skewX,t.skewY=i.skewY,t.angle=i.angle,t.setPositionByOrigin(r,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\")},sizeAfterTransform:function(t,e,i){var r=t/2,n=e/2,o=[{x:-r,y:-n},{x:r,y:-n},{x:-r,y:n},{x:r,y:n}],s=T.util.calcDimensionsMatrix(i),a=T.util.makeBoundingBoxFromPoints(o,s);return{x:a.width,y:a.height}}},T.util.createAccessors=function(t){var e,i,r,n,o,s=t.prototype;for(e=s.stateProperties.length;e--;)n=\\\\\\\"set\\\\\\\"+(r=(i=s.stateProperties[e]).charAt(0).toUpperCase()+i.slice(1)),s[o=\\\\\\\"get\\\\\\\"+r]||(s[o]=new Function('return this.get(\\\\\\\"'+i+'\\\\\\\")')),s[n]||(s[n]=function(t){return new Function(\\\\\\\"value\\\\\\\",'return this.set(\\\\\\\"'+t+'\\\\\\\", value)')}(i))},function(){var t=Array.prototype.join,e={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:\\\\\\\"l\\\\\\\",M:\\\\\\\"L\\\\\\\"};function r(t,e,i,r,n,o,s,a,h,c,l){var u=T.util.cos(t),f=T.util.sin(t),d=T.util.cos(e),g=T.util.sin(e),p=i*n*d-r*o*g+s,v=r*n*d+i*o*g+a;return[\\\\\\\"C\\\\\\\",c+h*(-i*n*f-r*o*u),l+h*(-r*n*f+i*o*u),p+h*(i*n*g+r*o*d),v+h*(r*n*g-i*o*d),p,v]}function n(t,e,i,n,s,a,h){var c=Math.PI,l=h*c/180,u=T.util.sin(l),f=T.util.cos(l),d=0,g=0,p=-f*t*.5-u*e*.5,v=-f*e*.5+u*t*.5,m=(i=Math.abs(i))*i,y=(n=Math.abs(n))*n,_=v*v,b=p*p,x=m*y-m*_-y*b,C=0;if(x\\\\u003c0){var w=Math.sqrt(1-x/(m*y));i*=w,n*=w}else C=(s===a?-1:1)*Math.sqrt(x/(m*_+y*b));var S=C*i*v/n,O=-C*n*p/i,P=f*S-u*O+.5*t,E=u*S+f*O+.5*e,k=o(1,0,(p-S)/i,(v-O)/n),A=o((p-S)/i,(v-O)/n,(-p-S)/i,(-v-O)/n);0===a\\\\u0026\\\\u0026A\\\\u003e0?A-=2*c:1===a\\\\u0026\\\\u0026A\\\\u003c0\\\\u0026\\\\u0026(A+=2*c);for(var D=Math.ceil(Math.abs(A/c*2)),M=[],j=A/D,F=8/3*Math.sin(j/4)*Math.sin(j/4)/Math.sin(j/2),L=k+j,I=0;I\\\\u003cD;I++)M[I]=r(k,L,f,u,i,n,P,E,F,d,g),d=M[I][5],g=M[I][6],k=L,L+=j;return M}function o(t,e,i,r){var n=Math.atan2(e,t),o=Math.atan2(r,i);return o\\\\u003e=n?o-n:2*Math.PI-(n-o)}function s(e,i,r,n,o,s,a,h){var c;if(T.cachesBoundsOfCurve\\\\u0026\\\\u0026(c=t.call(arguments),T.boundsOfCurveCache[c]))return T.boundsOfCurveCache[c];var l,u,f,d,g,p,v,m,y=Math.sqrt,_=Math.min,b=Math.max,x=Math.abs,C=[],w=[[],[]];u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*a,f=3*r-3*e;for(var S=0;S\\\\u003c2;++S)if(S\\\\u003e0\\\\u0026\\\\u0026(u=6*i-12*n+6*s,l=-3*i+9*n-9*s+3*h,f=3*n-3*i),x(l)\\\\u003c1e-12){if(x(u)\\\\u003c1e-12)continue;0\\\\u003c(d=-f/u)\\\\u0026\\\\u0026d\\\\u003c1\\\\u0026\\\\u0026C.push(d)}else(v=u*u-4*f*l)\\\\u003c0||(0\\\\u003c(g=(-u+(m=y(v)))/(2*l))\\\\u0026\\\\u0026g\\\\u003c1\\\\u0026\\\\u0026C.push(g),0\\\\u003c(p=(-u-m)/(2*l))\\\\u0026\\\\u0026p\\\\u003c1\\\\u0026\\\\u0026C.push(p));for(var O,P,E,k=C.length,A=k;k--;)O=(E=1-(d=C[k]))*E*E*e+3*E*E*d*r+3*E*d*d*o+d*d*d*a,w[0][k]=O,P=E*E*E*i+3*E*E*d*n+3*E*d*d*s+d*d*d*h,w[1][k]=P;w[0][A]=e,w[1][A]=i,w[0][A+1]=a,w[1][A+1]=h;var D=[{x:_.apply(null,w[0]),y:_.apply(null,w[1])},{x:b.apply(null,w[0]),y:b.apply(null,w[1])}];return T.cachesBoundsOfCurve\\\\u0026\\\\u0026(T.boundsOfCurveCache[c]=D),D}function a(t,e,i){for(var r=i[1],o=i[2],s=i[3],a=i[4],h=i[5],c=n(i[6]-t,i[7]-e,r,o,a,h,s),l=0,u=c.length;l\\\\u003cu;l++)c[l][1]+=t,c[l][2]+=e,c[l][3]+=t,c[l][4]+=e,c[l][5]+=t,c[l][6]+=e;return c}function h(t,e,i,r){return Math.sqrt((i-t)*(i-t)+(r-e)*(r-e))}function c(t,e,i,r,n,o,s,a){return function(h){var c,l=(c=h)*c*c,u=function(t){return 3*t*t*(1-t)}(h),f=function(t){return 3*t*(1-t)*(1-t)}(h),d=function(t){return(1-t)*(1-t)*(1-t)}(h);return{x:s*l+n*u+i*f+t*d,y:a*l+o*u+r*f+e*d}}}function l(t,e,i,r,n,o,s,a){return function(h){var c=1-h,l=3*c*c*(i-t)+6*c*h*(n-i)+3*h*h*(s-n),u=3*c*c*(r-e)+6*c*h*(o-r)+3*h*h*(a-o);return Math.atan2(u,l)}}function u(t,e,i,r,n,o){return function(s){var a,h=(a=s)*a,c=function(t){return 2*t*(1-t)}(s),l=function(t){return(1-t)*(1-t)}(s);return{x:n*h+i*c+t*l,y:o*h+r*c+e*l}}}function f(t,e,i,r,n,o){return function(s){var a=1-s,h=2*a*(i-t)+2*s*(n-i),c=2*a*(r-e)+2*s*(o-r);return Math.atan2(c,h)}}function d(t,e,i){var r,n,o={x:e,y:i},s=0;for(n=1;n\\\\u003c=100;n+=1)r=t(n/100),s+=h(o.x,o.y,r.x,r.y),o=r;return s}function g(t,e){for(var i,r,n,o=0,s=0,a=t.iterator,c={x:t.x,y:t.y},l=.01,u=t.angleFinder;s\\\\u003ce\\\\u0026\\\\u0026o\\\\u003c=1\\\\u0026\\\\u0026l\\\\u003e1e-4;)i=a(o),n=o,(r=h(c.x,c.y,i.x,i.y))+s\\\\u003ee?o-=l/=2:(c=i,o+=l,s+=r);return i.angle=u(n),i}function p(t){for(var e,i,r,n,o=0,s=t.length,a=0,g=0,p=0,v=0,m=[],y=0;y\\\\u003cs;y++){switch(r={x:a,y:g,command:(e=t[y])[0]},e[0]){case\\\\\\\"M\\\\\\\":r.length=0,p=a=e[1],v=g=e[2];break;case\\\\\\\"L\\\\\\\":r.length=h(a,g,e[1],e[2]),a=e[1],g=e[2];break;case\\\\\\\"C\\\\\\\":i=c(a,g,e[1],e[2],e[3],e[4],e[5],e[6]),n=l(a,g,e[1],e[2],e[3],e[4],e[5],e[6]),r.iterator=i,r.angleFinder=n,r.length=d(i,a,g),a=e[5],g=e[6];break;case\\\\\\\"Q\\\\\\\":i=u(a,g,e[1],e[2],e[3],e[4]),n=f(a,g,e[1],e[2],e[3],e[4]),r.iterator=i,r.angleFinder=n,r.length=d(i,a,g),a=e[3],g=e[4];break;case\\\\\\\"Z\\\\\\\":case\\\\\\\"z\\\\\\\":r.destX=p,r.destY=v,r.length=h(a,g,p,v),a=p,g=v}o+=r.length,m.push(r)}return m.push({length:o,x:a,y:g}),m}T.util.joinPath=function(t){return t.map((function(t){return t.join(\\\\\\\" \\\\\\\")})).join(\\\\\\\" \\\\\\\")},T.util.parsePath=function(t){var r,n,o,s,a,h=[],c=[],l=T.rePathCommand,u=\\\\\\\"[-+]?(?:\\\\\\\\\\\\\\\\d*\\\\\\\\\\\\\\\\.\\\\\\\\\\\\\\\\d+|\\\\\\\\\\\\\\\\d+\\\\\\\\\\\\\\\\.?)(?:[eE][-+]?\\\\\\\\\\\\\\\\d+)?\\\\\\\\\\\\\\\\s*\\\\\\\",f=\\\\\\\"(\\\\\\\"+u+\\\\\\\")\\\\\\\"+T.commaWsp,d=\\\\\\\"([01])\\\\\\\"+T.commaWsp+\\\\\\\"?\\\\\\\",g=new RegExp(f+\\\\\\\"?\\\\\\\"+f+\\\\\\\"?\\\\\\\"+f+d+d+f+\\\\\\\"?(\\\\\\\"+u+\\\\\\\")\\\\\\\",\\\\\\\"g\\\\\\\");if(!t||!t.match)return h;for(var p,v=0,m=(a=t.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi)).length;v\\\\u003cm;v++){s=(r=a[v]).slice(1).trim(),c.length=0;var y=r.charAt(0);if(p=[y],\\\\\\\"a\\\\\\\"===y.toLowerCase())for(var _;_=g.exec(s);)for(var b=1;b\\\\u003c_.length;b++)c.push(_[b]);else for(;o=l.exec(s);)c.push(o[0]);b=0;for(var x=c.length;b\\\\u003cx;b++)n=parseFloat(c[b]),isNaN(n)||p.push(n);var C=e[y.toLowerCase()],w=i[y]||y;if(p.length-1\\\\u003eC)for(var S=1,O=p.length;S\\\\u003cO;S+=C)h.push([y].concat(p.slice(S,S+C))),y=w;else h.push(p)}return h},T.util.makePathSimpler=function(t){var e,i,r,n,o,s,h=0,c=0,l=t.length,u=0,f=0,d=[];for(i=0;i\\\\u003cl;++i){switch(r=!1,(e=t[i].slice(0))[0]){case\\\\\\\"l\\\\\\\":e[0]=\\\\\\\"L\\\\\\\",e[1]+=h,e[2]+=c;case\\\\\\\"L\\\\\\\":h=e[1],c=e[2];break;case\\\\\\\"h\\\\\\\":e[1]+=h;case\\\\\\\"H\\\\\\\":e[0]=\\\\\\\"L\\\\\\\",e[2]=c,h=e[1];break;case\\\\\\\"v\\\\\\\":e[1]+=c;case\\\\\\\"V\\\\\\\":e[0]=\\\\\\\"L\\\\\\\",c=e[1],e[1]=h,e[2]=c;break;case\\\\\\\"m\\\\\\\":e[0]=\\\\\\\"M\\\\\\\",e[1]+=h,e[2]+=c;case\\\\\\\"M\\\\\\\":h=e[1],c=e[2],u=e[1],f=e[2];break;case\\\\\\\"c\\\\\\\":e[0]=\\\\\\\"C\\\\\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c,e[5]+=h,e[6]+=c;case\\\\\\\"C\\\\\\\":o=e[3],s=e[4],h=e[5],c=e[6];break;case\\\\\\\"s\\\\\\\":e[0]=\\\\\\\"S\\\\\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c;case\\\\\\\"S\\\\\\\":\\\\\\\"C\\\\\\\"===n?(o=2*h-o,s=2*c-s):(o=h,s=c),h=e[3],c=e[4],e[0]=\\\\\\\"C\\\\\\\",e[5]=e[3],e[6]=e[4],e[3]=e[1],e[4]=e[2],e[1]=o,e[2]=s,o=e[3],s=e[4];break;case\\\\\\\"q\\\\\\\":e[0]=\\\\\\\"Q\\\\\\\",e[1]+=h,e[2]+=c,e[3]+=h,e[4]+=c;case\\\\\\\"Q\\\\\\\":o=e[1],s=e[2],h=e[3],c=e[4];break;case\\\\\\\"t\\\\\\\":e[0]=\\\\\\\"T\\\\\\\",e[1]+=h,e[2]+=c;case\\\\\\\"T\\\\\\\":\\\\\\\"Q\\\\\\\"===n?(o=2*h-o,s=2*c-s):(o=h,s=c),e[0]=\\\\\\\"Q\\\\\\\",h=e[1],c=e[2],e[1]=o,e[2]=s,e[3]=h,e[4]=c;break;case\\\\\\\"a\\\\\\\":e[0]=\\\\\\\"A\\\\\\\",e[6]+=h,e[7]+=c;case\\\\\\\"A\\\\\\\":r=!0,d=d.concat(a(h,c,e)),h=e[6],c=e[7];break;case\\\\\\\"z\\\\\\\":case\\\\\\\"Z\\\\\\\":h=u,c=f}r||d.push(e),n=e[0]}return d},T.util.getSmoothPathFromPoints=function(t,e){var i,r=[],n=new T.Point(t[0].x,t[0].y),o=new T.Point(t[1].x,t[1].y),s=t.length,a=1,h=0,c=s\\\\u003e2;for(e=e||0,c\\\\u0026\\\\u0026(a=t[2].x\\\\u003co.x?-1:t[2].x===o.x?0:1,h=t[2].y\\\\u003co.y?-1:t[2].y===o.y?0:1),r.push([\\\\\\\"M\\\\\\\",n.x-a*e,n.y-h*e]),i=1;i\\\\u003cs;i++){if(!n.eq(o)){var l=n.midPointFrom(o);r.push([\\\\\\\"Q\\\\\\\",n.x,n.y,l.x,l.y])}n=t[i],i+1\\\\u003ct.length\\\\u0026\\\\u0026(o=t[i+1])}return c\\\\u0026\\\\u0026(a=n.x\\\\u003et[i-2].x?1:n.x===t[i-2].x?0:-1,h=n.y\\\\u003et[i-2].y?1:n.y===t[i-2].y?0:-1),r.push([\\\\\\\"L\\\\\\\",n.x+a*e,n.y+h*e]),r},T.util.getPathSegmentsInfo=p,T.util.getBoundsOfCurve=s,T.util.getPointOnPath=function(t,e,i){i||(i=p(t));for(var r=0;e-i[r].length\\\\u003e0\\\\u0026\\\\u0026r\\\\u003ci.length-2;)e-=i[r].length,r++;var n,o=i[r],s=e/o.length,a=o.command,h=t[r];switch(a){case\\\\\\\"M\\\\\\\":return{x:o.x,y:o.y,angle:0};case\\\\\\\"Z\\\\\\\":case\\\\\\\"z\\\\\\\":return(n=new T.Point(o.x,o.y).lerp(new T.Point(o.destX,o.destY),s)).angle=Math.atan2(o.destY-o.y,o.destX-o.x),n;case\\\\\\\"L\\\\\\\":return(n=new T.Point(o.x,o.y).lerp(new T.Point(h[1],h[2]),s)).angle=Math.atan2(h[2]-o.y,h[1]-o.x),n;case\\\\\\\"C\\\\\\\":case\\\\\\\"Q\\\\\\\":return g(o,e)}},T.util.transformPath=function(t,e,i){return i\\\\u0026\\\\u0026(e=T.util.multiplyTransformMatrices(e,[1,0,0,1,-i.x,-i.y])),t.map((function(t){for(var i=t.slice(0),r={},n=1;n\\\\u003ct.length-1;n+=2)r.x=t[n],r.y=t[n+1],r=T.util.transformPoint(r,e),i[n]=r.x,i[n+1]=r.y;return i}))},T.util.fromArcToBeizers=a,T.util.getBoundsOfArc=function(t,e,i,r,o,a,h,c,l){for(var u,f=0,d=0,g=[],p=n(c-t,l-e,i,r,a,h,o),v=0,m=p.length;v\\\\u003cm;v++)u=s(f,d,p[v][1],p[v][2],p[v][3],p[v][4],p[v][5],p[v][6]),g.push({x:u[0].x+t,y:u[0].y+e}),g.push({x:u[1].x+t,y:u[1].y+e}),f=p[v][5],d=p[v][6];return g},T.util.drawArc=function(t,e,i,r){a(e,i,r=r.slice(0).unshift(\\\\\\\"X\\\\\\\")).forEach((function(e){t.bezierCurveTo.apply(t,e.slice(1))}))}}(),function(){var t=Array.prototype.slice;function e(t,e,i){if(t\\\\u0026\\\\u00260!==t.length){var r=t.length-1,n=e?t[r][e]:t[r];if(e)for(;r--;)i(t[r][e],n)\\\\u0026\\\\u0026(n=t[r][e]);else for(;r--;)i(t[r],n)\\\\u0026\\\\u0026(n=t[r]);return n}}T.util.array={fill:function(t,e){for(var i=t.length;i--;)t[i]=e;return t},invoke:function(e,i){for(var r=t.call(arguments,2),n=[],o=0,s=e.length;o\\\\u003cs;o++)n[o]=r.length?e[o][i].apply(e[o],r):e[o][i].call(e[o]);return n},min:function(t,i){return e(t,i,(function(t,e){return t\\\\u003ce}))},max:function(t,i){return e(t,i,(function(t,e){return t\\\\u003e=e}))}}}(),function(){function t(e,i,r){if(r)if(!T.isLikelyNode\\\\u0026\\\\u0026i instanceof Element)e=i;else if(i instanceof Array){e=[];for(var n=0,o=i.length;n\\\\u003co;n++)e[n]=t({},i[n],r)}else if(i\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof i)for(var s in i)\\\\\\\"canvas\\\\\\\"===s||\\\\\\\"group\\\\\\\"===s?e[s]=null:i.hasOwnProperty(s)\\\\u0026\\\\u0026(e[s]=t({},i[s],r));else e=i;else for(var s in i)e[s]=i[s];return e}T.util.object={extend:t,clone:function(e,i){return t({},e,i)}},T.util.object.extend(T.util,T.Observable)}(),function(){function t(t,e){var i=t.charCodeAt(e);if(isNaN(i))return\\\\\\\"\\\\\\\";if(i\\\\u003c55296||i\\\\u003e57343)return t.charAt(e);if(55296\\\\u003c=i\\\\u0026\\\\u0026i\\\\u003c=56319){if(t.length\\\\u003c=e+1)throw\\\\\\\"High surrogate without following low surrogate\\\\\\\";var r=t.charCodeAt(e+1);if(56320\\\\u003er||r\\\\u003e57343)throw\\\\\\\"High surrogate without following low surrogate\\\\\\\";return t.charAt(e)+t.charAt(e+1)}if(0===e)throw\\\\\\\"Low surrogate without preceding high surrogate\\\\\\\";var n=t.charCodeAt(e-1);if(55296\\\\u003en||n\\\\u003e56319)throw\\\\\\\"Low surrogate without preceding high surrogate\\\\\\\";return!1}T.util.string={camelize:function(t){return t.replace(/-+(.)?/g,(function(t,e){return e?e.toUpperCase():\\\\\\\"\\\\\\\"}))},capitalize:function(t,e){return t.charAt(0).toUpperCase()+(e?t.slice(1):t.slice(1).toLowerCase())},escapeXml:function(t){return t.replace(/\\\\u0026/g,\\\\\\\"\\\\u0026amp;\\\\\\\").replace(/\\\\\\\"/g,\\\\\\\"\\\\u0026quot;\\\\\\\").replace(/'/g,\\\\\\\"\\\\u0026apos;\\\\\\\").replace(/\\\\u003c/g,\\\\\\\"\\\\u0026lt;\\\\\\\").replace(/\\\\u003e/g,\\\\\\\"\\\\u0026gt;\\\\\\\")},graphemeSplit:function(e){var i,r=0,n=[];for(r=0;r\\\\u003ce.length;r++)!1!==(i=t(e,r))\\\\u0026\\\\u0026n.push(i);return n}}}(),function(){var t=Array.prototype.slice,e=function(){},i=function(){for(var t in{toString:1})if(\\\\\\\"toString\\\\\\\"===t)return!1;return!0}(),r=function(t,e,r){for(var n in e)n in t.prototype\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof t.prototype[n]\\\\u0026\\\\u0026(e[n]+\\\\\\\"\\\\\\\").indexOf(\\\\\\\"callSuper\\\\\\\")\\\\u003e-1?t.prototype[n]=function(t){return function(){var i=this.constructor.superclass;this.constructor.superclass=r;var n=e[t].apply(this,arguments);if(this.constructor.superclass=i,\\\\\\\"initialize\\\\\\\"!==t)return n}}(n):t.prototype[n]=e[n],i\\\\u0026\\\\u0026(e.toString!==Object.prototype.toString\\\\u0026\\\\u0026(t.prototype.toString=e.toString),e.valueOf!==Object.prototype.valueOf\\\\u0026\\\\u0026(t.prototype.valueOf=e.valueOf))};function n(){}function o(e){for(var i=null,r=this;r.constructor.superclass;){var n=r.constructor.superclass.prototype[e];if(r[e]!==n){i=n;break}r=r.constructor.superclass.prototype}return i?arguments.length\\\\u003e1?i.apply(this,t.call(arguments,1)):i.call(this):console.log(\\\\\\\"tried to callSuper \\\\\\\"+e+\\\\\\\", method not found in prototype chain\\\\\\\",this)}T.util.createClass=function(){var i=null,s=t.call(arguments,0);function a(){this.initialize.apply(this,arguments)}\\\\\\\"function\\\\\\\"==typeof s[0]\\\\u0026\\\\u0026(i=s.shift()),a.superclass=i,a.subclasses=[],i\\\\u0026\\\\u0026(n.prototype=i.prototype,a.prototype=new n,i.subclasses.push(a));for(var h=0,c=s.length;h\\\\u003cc;h++)r(a,s[h],i);return a.prototype.initialize||(a.prototype.initialize=e),a.prototype.constructor=a,a.prototype.callSuper=o,a}}(),l=!!T.document.createElement(\\\\\\\"div\\\\\\\").attachEvent,u=[\\\\\\\"touchstart\\\\\\\",\\\\\\\"touchmove\\\\\\\",\\\\\\\"touchend\\\\\\\"],T.util.addListener=function(t,e,i,r){t\\\\u0026\\\\u0026t.addEventListener(e,i,!l\\\\u0026\\\\u0026r)},T.util.removeListener=function(t,e,i,r){t\\\\u0026\\\\u0026t.removeEventListener(e,i,!l\\\\u0026\\\\u0026r)},T.util.getPointer=function(t){var e=t.target,i=T.util.getScrollLeftTop(e),r=function(t){var e=t.changedTouches;return e\\\\u0026\\\\u0026e[0]?e[0]:t}(t);return{x:r.clientX+i.left,y:r.clientY+i.top}},T.util.isTouchEvent=function(t){return u.indexOf(t.type)\\\\u003e-1||\\\\\\\"touch\\\\\\\"===t.pointerType},f=T.document.createElement(\\\\\\\"div\\\\\\\"),d=\\\\\\\"string\\\\\\\"==typeof f.style.opacity,g=\\\\\\\"string\\\\\\\"==typeof f.style.filter,v=/alpha\\\\\\\\s*\\\\\\\\(\\\\\\\\s*opacity\\\\\\\\s*=\\\\\\\\s*([^\\\\\\\\)]+)\\\\\\\\)/,m=function(t){return t},d?m=function(t,e){return t.style.opacity=e,t}:g\\\\u0026\\\\u0026(m=function(t,e){var i=t.style;return t.currentStyle\\\\u0026\\\\u0026!t.currentStyle.hasLayout\\\\u0026\\\\u0026(i.zoom=1),v.test(i.filter)?(e=e\\\\u003e=.9999?\\\\\\\"\\\\\\\":\\\\\\\"alpha(opacity=\\\\\\\"+100*e+\\\\\\\")\\\\\\\",i.filter=i.filter.replace(v,e)):i.filter+=\\\\\\\" alpha(opacity=\\\\\\\"+100*e+\\\\\\\")\\\\\\\",t}),T.util.setStyle=function(t,e){var i=t.style;if(!i)return t;if(\\\\\\\"string\\\\\\\"==typeof e)return t.style.cssText+=\\\\\\\";\\\\\\\"+e,e.indexOf(\\\\\\\"opacity\\\\\\\")\\\\u003e-1?m(t,e.match(/opacity:\\\\\\\\s*(\\\\\\\\d?\\\\\\\\.?\\\\\\\\d*)/)[1]):t;for(var r in e)\\\\\\\"opacity\\\\\\\"===r?m(t,e[r]):i[\\\\\\\"float\\\\\\\"===r||\\\\\\\"cssFloat\\\\\\\"===r?void 0===i.styleFloat?\\\\\\\"cssFloat\\\\\\\":\\\\\\\"styleFloat\\\\\\\":r]=e[r];return t},function(){var t=Array.prototype.slice;var e,i,r,n,o=function(e){return t.call(e,0)};try{e=o(T.document.childNodes)instanceof Array}catch(t){}function s(t,e){var i=T.document.createElement(t);for(var r in e)\\\\\\\"class\\\\\\\"===r?i.className=e[r]:\\\\\\\"for\\\\\\\"===r?i.htmlFor=e[r]:i.setAttribute(r,e[r]);return i}function a(t){for(var e=0,i=0,r=T.document.documentElement,n=T.document.body||{scrollLeft:0,scrollTop:0};t\\\\u0026\\\\u0026(t.parentNode||t.host)\\\\u0026\\\\u0026((t=t.parentNode||t.host)===T.document?(e=n.scrollLeft||r.scrollLeft||0,i=n.scrollTop||r.scrollTop||0):(e+=t.scrollLeft||0,i+=t.scrollTop||0),1!==t.nodeType||\\\\\\\"fixed\\\\\\\"!==t.style.position););return{left:e,top:i}}e||(o=function(t){for(var e=new Array(t.length),i=t.length;i--;)e[i]=t[i];return e}),i=T.document.defaultView\\\\u0026\\\\u0026T.document.defaultView.getComputedStyle?function(t,e){var i=T.document.defaultView.getComputedStyle(t,null);return i?i[e]:void 0}:function(t,e){var i=t.style[e];return!i\\\\u0026\\\\u0026t.currentStyle\\\\u0026\\\\u0026(i=t.currentStyle[e]),i},r=T.document.documentElement.style,n=\\\\\\\"userSelect\\\\\\\"in r?\\\\\\\"userSelect\\\\\\\":\\\\\\\"MozUserSelect\\\\\\\"in r?\\\\\\\"MozUserSelect\\\\\\\":\\\\\\\"WebkitUserSelect\\\\\\\"in r?\\\\\\\"WebkitUserSelect\\\\\\\":\\\\\\\"KhtmlUserSelect\\\\\\\"in r?\\\\\\\"KhtmlUserSelect\\\\\\\":\\\\\\\"\\\\\\\",T.util.makeElementUnselectable=function(t){return void 0!==t.onselectstart\\\\u0026\\\\u0026(t.onselectstart=T.util.falseFunction),n?t.style[n]=\\\\\\\"none\\\\\\\":\\\\\\\"string\\\\\\\"==typeof t.unselectable\\\\u0026\\\\u0026(t.unselectable=\\\\\\\"on\\\\\\\"),t},T.util.makeElementSelectable=function(t){return void 0!==t.onselectstart\\\\u0026\\\\u0026(t.onselectstart=null),n?t.style[n]=\\\\\\\"\\\\\\\":\\\\\\\"string\\\\\\\"==typeof t.unselectable\\\\u0026\\\\u0026(t.unselectable=\\\\\\\"\\\\\\\"),t},T.util.setImageSmoothing=function(t,e){t.imageSmoothingEnabled=t.imageSmoothingEnabled||t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled||t.oImageSmoothingEnabled,t.imageSmoothingEnabled=e},T.util.getById=function(t){return\\\\\\\"string\\\\\\\"==typeof t?T.document.getElementById(t):t},T.util.toArray=o,T.util.addClass=function(t,e){t\\\\u0026\\\\u0026-1===(\\\\\\\" \\\\\\\"+t.className+\\\\\\\" \\\\\\\").indexOf(\\\\\\\" \\\\\\\"+e+\\\\\\\" \\\\\\\")\\\\u0026\\\\u0026(t.className+=(t.className?\\\\\\\" \\\\\\\":\\\\\\\"\\\\\\\")+e)},T.util.makeElement=s,T.util.wrapElement=function(t,e,i){return\\\\\\\"string\\\\\\\"==typeof e\\\\u0026\\\\u0026(e=s(e,i)),t.parentNode\\\\u0026\\\\u0026t.parentNode.replaceChild(e,t),e.appendChild(t),e},T.util.getScrollLeftTop=a,T.util.getElementOffset=function(t){var e,r,n=t\\\\u0026\\\\u0026t.ownerDocument,o={left:0,top:0},s={left:0,top:0},h={borderLeftWidth:\\\\\\\"left\\\\\\\",borderTopWidth:\\\\\\\"top\\\\\\\",paddingLeft:\\\\\\\"left\\\\\\\",paddingTop:\\\\\\\"top\\\\\\\"};if(!n)return s;for(var c in h)s[h[c]]+=parseInt(i(t,c),10)||0;return e=n.documentElement,void 0!==t.getBoundingClientRect\\\\u0026\\\\u0026(o=t.getBoundingClientRect()),r=a(t),{left:o.left+r.left-(e.clientLeft||0)+s.left,top:o.top+r.top-(e.clientTop||0)+s.top}},T.util.getNodeCanvas=function(t){var e=T.jsdomImplForWrapper(t);return e._canvas||e._image},T.util.cleanUpJsdomNode=function(t){if(T.isLikelyNode){var e=T.jsdomImplForWrapper(t);e\\\\u0026\\\\u0026(e._image=null,e._canvas=null,e._currentSrc=null,e._attributes=null,e._classList=null)}}}(),function(){function t(){}T.util.request=function(e,i){i||(i={});var r=i.method?i.method.toUpperCase():\\\\\\\"GET\\\\\\\",n=i.onComplete||function(){},o=new T.window.XMLHttpRequest,s=i.body||i.parameters;return o.onreadystatechange=function(){4===o.readyState\\\\u0026\\\\u0026(n(o),o.onreadystatechange=t)},\\\\\\\"GET\\\\\\\"===r\\\\u0026\\\\u0026(s=null,\\\\\\\"string\\\\\\\"==typeof i.parameters\\\\u0026\\\\u0026(e=function(t,e){return t+(/\\\\\\\\?/.test(t)?\\\\\\\"\\\\u0026\\\\\\\":\\\\\\\"?\\\\\\\")+e}(e,i.parameters))),o.open(r,e,!0),\\\\\\\"POST\\\\\\\"!==r\\\\u0026\\\\u0026\\\\\\\"PUT\\\\\\\"!==r||o.setRequestHeader(\\\\\\\"Content-Type\\\\\\\",\\\\\\\"application/x-www-form-urlencoded\\\\\\\"),o.send(s),o}}(),T.log=console.log,T.warn=console.warn,function(){function t(){return!1}function e(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e}var i=T.window.requestAnimationFrame||T.window.webkitRequestAnimationFrame||T.window.mozRequestAnimationFrame||T.window.oRequestAnimationFrame||T.window.msRequestAnimationFrame||function(t){return T.window.setTimeout(t,1e3/60)},r=T.window.cancelAnimationFrame||T.window.clearTimeout;function n(){return i.apply(T.window,arguments)}T.util.animate=function(i){var r=!1;return n((function(o){i||(i={});var s,a=o||+new Date,h=i.duration||500,c=a+h,l=i.onChange||t,u=i.abort||t,f=i.onComplete||t,d=i.easing||e,g=\\\\\\\"startValue\\\\\\\"in i?i.startValue:0,p=\\\\\\\"endValue\\\\\\\"in i?i.endValue:100,v=i.byValue||p-g;i.onStart\\\\u0026\\\\u0026i.onStart(),function t(e){var i=(s=e||+new Date)\\\\u003ec?h:s-a,o=i/h,m=d(i,g,v,h),y=Math.abs((m-g)/v);if(!r){if(!u(m,y,o))return s\\\\u003ec?(l(p,1,1),void f(p,1,1)):(l(m,y,o),void n(t));f(p,1,1)}}(a)})),function(){r=!0}},T.util.requestAnimFrame=n,T.util.cancelAnimFrame=function(){return r.apply(T.window,arguments)}}(),function(){function t(t,e,i){var r=\\\\\\\"rgba(\\\\\\\"+parseInt(t[0]+i*(e[0]-t[0]),10)+\\\\\\\",\\\\\\\"+parseInt(t[1]+i*(e[1]-t[1]),10)+\\\\\\\",\\\\\\\"+parseInt(t[2]+i*(e[2]-t[2]),10);return r+=\\\\\\\",\\\\\\\"+(t\\\\u0026\\\\u0026e?parseFloat(t[3]+i*(e[3]-t[3])):1),r+=\\\\\\\")\\\\\\\"}T.util.animateColor=function(e,i,r,n){var o=new T.Color(e).getSource(),s=new T.Color(i).getSource(),a=n.onComplete,h=n.onChange;return n=n||{},T.util.animate(T.util.object.extend(n,{duration:r||500,startValue:o,endValue:s,byValue:s,easing:function(e,i,r,o){return t(i,r,n.colorEasing?n.colorEasing(e,o):1-Math.cos(e/o*(Math.PI/2)))},onComplete:function(e,i,r){if(a)return a(t(s,s,0),i,r)},onChange:function(e,i,r){if(h){if(Array.isArray(e))return h(t(e,e,0),i,r);h(e,i,r)}}}))}}(),function(){function t(t,e,i,r){return t\\\\u003cMath.abs(e)?(t=e,r=i/4):r=0===e\\\\u0026\\\\u00260===t?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(e/t),{a:t,c:e,p:i,s:r}}function e(t,e,i){return t.a*Math.pow(2,10*(e-=1))*Math.sin((e*i-t.s)*(2*Math.PI)/t.p)}function i(t,e,i,n){return i-r(n-t,0,i,n)+e}function r(t,e,i,r){return(t/=r)\\\\u003c1/2.75?i*(7.5625*t*t)+e:t\\\\u003c2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t\\\\u003c2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e}T.util.ease={easeInQuad:function(t,e,i,r){return i*(t/=r)*t+e},easeOutQuad:function(t,e,i,r){return-i*(t/=r)*(t-2)+e},easeInOutQuad:function(t,e,i,r){return(t/=r/2)\\\\u003c1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,r){return i*(t/=r)*t*t+e},easeOutCubic:function(t,e,i,r){return i*((t=t/r-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,r){return(t/=r/2)\\\\u003c1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,r){return i*(t/=r)*t*t*t+e},easeOutQuart:function(t,e,i,r){return-i*((t=t/r-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,r){return(t/=r/2)\\\\u003c1?i/2*t*t*t*t+e:-i/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,r){return i*(t/=r)*t*t*t*t+e},easeOutQuint:function(t,e,i,r){return i*((t=t/r-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,r){return(t/=r/2)\\\\u003c1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+e},easeOutSine:function(t,e,i,r){return i*Math.sin(t/r*(Math.PI/2))+e},easeInOutSine:function(t,e,i,r){return-i/2*(Math.cos(Math.PI*t/r)-1)+e},easeInExpo:function(t,e,i,r){return 0===t?e:i*Math.pow(2,10*(t/r-1))+e},easeOutExpo:function(t,e,i,r){return t===r?e+i:i*(1-Math.pow(2,-10*t/r))+e},easeInOutExpo:function(t,e,i,r){return 0===t?e:t===r?e+i:(t/=r/2)\\\\u003c1?i/2*Math.pow(2,10*(t-1))+e:i/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,i,r){return-i*(Math.sqrt(1-(t/=r)*t)-1)+e},easeOutCirc:function(t,e,i,r){return i*Math.sqrt(1-(t=t/r-1)*t)+e},easeInOutCirc:function(t,e,i,r){return(t/=r/2)\\\\u003c1?-i/2*(Math.sqrt(1-t*t)-1)+e:i/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(i,r,n,o){var s=0;return 0===i?r:1===(i/=o)?r+n:(s||(s=.3*o),-e(t(n,n,s,1.70158),i,o)+r)},easeOutElastic:function(e,i,r,n){var o=0;if(0===e)return i;if(1===(e/=n))return i+r;o||(o=.3*n);var s=t(r,r,o,1.70158);return s.a*Math.pow(2,-10*e)*Math.sin((e*n-s.s)*(2*Math.PI)/s.p)+s.c+i},easeInOutElastic:function(i,r,n,o){var s=0;if(0===i)return r;if(2===(i/=o/2))return r+n;s||(s=o*(.3*1.5));var a=t(n,n,s,1.70158);return i\\\\u003c1?-.5*e(a,i,o)+r:a.a*Math.pow(2,-10*(i-=1))*Math.sin((i*o-a.s)*(2*Math.PI)/a.p)*.5+a.c+r},easeInBack:function(t,e,i,r,n){return void 0===n\\\\u0026\\\\u0026(n=1.70158),i*(t/=r)*t*((n+1)*t-n)+e},easeOutBack:function(t,e,i,r,n){return void 0===n\\\\u0026\\\\u0026(n=1.70158),i*((t=t/r-1)*t*((n+1)*t+n)+1)+e},easeInOutBack:function(t,e,i,r,n){return void 0===n\\\\u0026\\\\u0026(n=1.70158),(t/=r/2)\\\\u003c1?i/2*(t*t*((1+(n*=1.525))*t-n))+e:i/2*((t-=2)*t*((1+(n*=1.525))*t+n)+2)+e},easeInBounce:i,easeOutBounce:r,easeInOutBounce:function(t,e,n,o){return t\\\\u003co/2?.5*i(2*t,0,n,o)+e:.5*r(2*t-o,0,n,o)+.5*n+e}}}(),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n=e.util.toFixed,o=e.util.parseUnit,s=e.util.multiplyTransformMatrices,a={cx:\\\\\\\"left\\\\\\\",x:\\\\\\\"left\\\\\\\",r:\\\\\\\"radius\\\\\\\",cy:\\\\\\\"top\\\\\\\",y:\\\\\\\"top\\\\\\\",display:\\\\\\\"visible\\\\\\\",visibility:\\\\\\\"visible\\\\\\\",transform:\\\\\\\"transformMatrix\\\\\\\",\\\\\\\"fill-opacity\\\\\\\":\\\\\\\"fillOpacity\\\\\\\",\\\\\\\"fill-rule\\\\\\\":\\\\\\\"fillRule\\\\\\\",\\\\\\\"font-family\\\\\\\":\\\\\\\"fontFamily\\\\\\\",\\\\\\\"font-size\\\\\\\":\\\\\\\"fontSize\\\\\\\",\\\\\\\"font-style\\\\\\\":\\\\\\\"fontStyle\\\\\\\",\\\\\\\"font-weight\\\\\\\":\\\\\\\"fontWeight\\\\\\\",\\\\\\\"letter-spacing\\\\\\\":\\\\\\\"charSpacing\\\\\\\",\\\\\\\"paint-order\\\\\\\":\\\\\\\"paintFirst\\\\\\\",\\\\\\\"stroke-dasharray\\\\\\\":\\\\\\\"strokeDashArray\\\\\\\",\\\\\\\"stroke-dashoffset\\\\\\\":\\\\\\\"strokeDashOffset\\\\\\\",\\\\\\\"stroke-linecap\\\\\\\":\\\\\\\"strokeLineCap\\\\\\\",\\\\\\\"stroke-linejoin\\\\\\\":\\\\\\\"strokeLineJoin\\\\\\\",\\\\\\\"stroke-miterlimit\\\\\\\":\\\\\\\"strokeMiterLimit\\\\\\\",\\\\\\\"stroke-opacity\\\\\\\":\\\\\\\"strokeOpacity\\\\\\\",\\\\\\\"stroke-width\\\\\\\":\\\\\\\"strokeWidth\\\\\\\",\\\\\\\"text-decoration\\\\\\\":\\\\\\\"textDecoration\\\\\\\",\\\\\\\"text-anchor\\\\\\\":\\\\\\\"textAnchor\\\\\\\",opacity:\\\\\\\"opacity\\\\\\\",\\\\\\\"clip-path\\\\\\\":\\\\\\\"clipPath\\\\\\\",\\\\\\\"clip-rule\\\\\\\":\\\\\\\"clipRule\\\\\\\",\\\\\\\"vector-effect\\\\\\\":\\\\\\\"strokeUniform\\\\\\\",\\\\\\\"image-rendering\\\\\\\":\\\\\\\"imageSmoothing\\\\\\\"},h={stroke:\\\\\\\"strokeOpacity\\\\\\\",fill:\\\\\\\"fillOpacity\\\\\\\"},c=\\\\\\\"font-size\\\\\\\",l=\\\\\\\"clip-path\\\\\\\";function u(t){return t in a?a[t]:t}function f(t,i,r,n){var a,h=\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(i);if(\\\\\\\"fill\\\\\\\"!==t\\\\u0026\\\\u0026\\\\\\\"stroke\\\\\\\"!==t||\\\\\\\"none\\\\\\\"!==i){if(\\\\\\\"strokeUniform\\\\\\\"===t)return\\\\\\\"non-scaling-stroke\\\\\\\"===i;if(\\\\\\\"strokeDashArray\\\\\\\"===t)i=\\\\\\\"none\\\\\\\"===i?null:i.replace(/,/g,\\\\\\\" \\\\\\\").split(/\\\\\\\\s+/).map(parseFloat);else if(\\\\\\\"transformMatrix\\\\\\\"===t)i=r\\\\u0026\\\\u0026r.transformMatrix?s(r.transformMatrix,e.parseTransformAttribute(i)):e.parseTransformAttribute(i);else if(\\\\\\\"visible\\\\\\\"===t)i=\\\\\\\"none\\\\\\\"!==i\\\\u0026\\\\u0026\\\\\\\"hidden\\\\\\\"!==i,r\\\\u0026\\\\u0026!1===r.visible\\\\u0026\\\\u0026(i=!1);else if(\\\\\\\"opacity\\\\\\\"===t)i=parseFloat(i),r\\\\u0026\\\\u0026void 0!==r.opacity\\\\u0026\\\\u0026(i*=r.opacity);else if(\\\\\\\"textAnchor\\\\\\\"===t)i=\\\\\\\"start\\\\\\\"===i?\\\\\\\"left\\\\\\\":\\\\\\\"end\\\\\\\"===i?\\\\\\\"right\\\\\\\":\\\\\\\"center\\\\\\\";else if(\\\\\\\"charSpacing\\\\\\\"===t)a=o(i,n)/n*1e3;else if(\\\\\\\"paintFirst\\\\\\\"===t){var c=i.indexOf(\\\\\\\"fill\\\\\\\"),l=i.indexOf(\\\\\\\"stroke\\\\\\\");i=\\\\\\\"fill\\\\\\\";(c\\\\u003e-1\\\\u0026\\\\u0026l\\\\u003e-1\\\\u0026\\\\u0026l\\\\u003cc||-1===c\\\\u0026\\\\u0026l\\\\u003e-1)\\\\u0026\\\\u0026(i=\\\\\\\"stroke\\\\\\\")}else{if(\\\\\\\"href\\\\\\\"===t||\\\\\\\"xlink:href\\\\\\\"===t||\\\\\\\"font\\\\\\\"===t)return i;if(\\\\\\\"imageSmoothing\\\\\\\"===t)return\\\\\\\"optimizeQuality\\\\\\\"===i;a=h?i.map(o):o(i,n)}}else i=\\\\\\\"\\\\\\\";return!h\\\\u0026\\\\u0026isNaN(a)?i:a}function d(t){return new RegExp(\\\\\\\"^(\\\\\\\"+t.join(\\\\\\\"|\\\\\\\")+\\\\\\\")\\\\\\\\\\\\\\\\b\\\\\\\",\\\\\\\"i\\\\\\\")}function g(t,e){var i,r,n,o,s=[];for(n=0,o=e.length;n\\\\u003co;n++)i=e[n],r=t.getElementsByTagName(i),s=s.concat(Array.prototype.slice.call(r));return s}function p(t,e){var i,r=!0;return(i=v(t,e.pop()))\\\\u0026\\\\u0026e.length\\\\u0026\\\\u0026(r=function(t,e){var i,r=!0;for(;t.parentNode\\\\u0026\\\\u00261===t.parentNode.nodeType\\\\u0026\\\\u0026e.length;)r\\\\u0026\\\\u0026(i=e.pop()),r=v(t=t.parentNode,i);return 0===e.length}(t,e)),i\\\\u0026\\\\u0026r\\\\u0026\\\\u00260===e.length}function v(t,e){var i,r,n=t.nodeName,o=t.getAttribute(\\\\\\\"class\\\\\\\"),s=t.getAttribute(\\\\\\\"id\\\\\\\");if(i=new RegExp(\\\\\\\"^\\\\\\\"+n,\\\\\\\"i\\\\\\\"),e=e.replace(i,\\\\\\\"\\\\\\\"),s\\\\u0026\\\\u0026e.length\\\\u0026\\\\u0026(i=new RegExp(\\\\\\\"#\\\\\\\"+s+\\\\\\\"(?![a-zA-Z\\\\\\\\\\\\\\\\-]+)\\\\\\\",\\\\\\\"i\\\\\\\"),e=e.replace(i,\\\\\\\"\\\\\\\")),o\\\\u0026\\\\u0026e.length)for(r=(o=o.split(\\\\\\\" \\\\\\\")).length;r--;)i=new RegExp(\\\\\\\"\\\\\\\\\\\\\\\\.\\\\\\\"+o[r]+\\\\\\\"(?![a-zA-Z\\\\\\\\\\\\\\\\-]+)\\\\\\\",\\\\\\\"i\\\\\\\"),e=e.replace(i,\\\\\\\"\\\\\\\");return 0===e.length}function m(t,e){var i;if(t.getElementById\\\\u0026\\\\u0026(i=t.getElementById(e)),i)return i;var r,n,o,s=t.getElementsByTagName(\\\\\\\"*\\\\\\\");for(n=0,o=s.length;n\\\\u003co;n++)if(e===(r=s[n]).getAttribute(\\\\\\\"id\\\\\\\"))return r}e.svgValidTagNamesRegEx=d([\\\\\\\"path\\\\\\\",\\\\\\\"circle\\\\\\\",\\\\\\\"polygon\\\\\\\",\\\\\\\"polyline\\\\\\\",\\\\\\\"ellipse\\\\\\\",\\\\\\\"rect\\\\\\\",\\\\\\\"line\\\\\\\",\\\\\\\"image\\\\\\\",\\\\\\\"text\\\\\\\"]),e.svgViewBoxElementsRegEx=d([\\\\\\\"symbol\\\\\\\",\\\\\\\"image\\\\\\\",\\\\\\\"marker\\\\\\\",\\\\\\\"pattern\\\\\\\",\\\\\\\"view\\\\\\\",\\\\\\\"svg\\\\\\\"]),e.svgInvalidAncestorsRegEx=d([\\\\\\\"pattern\\\\\\\",\\\\\\\"defs\\\\\\\",\\\\\\\"symbol\\\\\\\",\\\\\\\"metadata\\\\\\\",\\\\\\\"clipPath\\\\\\\",\\\\\\\"mask\\\\\\\",\\\\\\\"desc\\\\\\\"]),e.svgValidParentsRegEx=d([\\\\\\\"symbol\\\\\\\",\\\\\\\"g\\\\\\\",\\\\\\\"a\\\\\\\",\\\\\\\"svg\\\\\\\",\\\\\\\"clipPath\\\\\\\",\\\\\\\"defs\\\\\\\"]),e.cssRules={},e.gradientDefs={},e.clipPaths={},e.parseTransformAttribute=function(){function t(t,i,r){t[r]=Math.tan(e.util.degreesToRadians(i[0]))}var i=e.iMatrix,r=e.reNum,n=e.commaWsp,o=\\\\\\\"(?:\\\\\\\"+(\\\\\\\"(?:(matrix)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(translate)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")(?:\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\"))?\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(scale)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")(?:\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\"))?\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(rotate)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")(?:\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\")\\\\\\\"+n+\\\\\\\"(\\\\\\\"+r+\\\\\\\"))?\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(skewX)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\"|\\\\\\\"+(\\\\\\\"(?:(skewY)\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\s*(\\\\\\\"+r+\\\\\\\")\\\\\\\\\\\\\\\\s*\\\\\\\\\\\\\\\\))\\\\\\\")+\\\\\\\")\\\\\\\",s=new RegExp(\\\\\\\"^\\\\\\\\\\\\\\\\s*(?:\\\\\\\"+(\\\\\\\"(?:\\\\\\\"+o+\\\\\\\"(?:\\\\\\\"+n+\\\\\\\"*\\\\\\\"+o+\\\\\\\")*)\\\\\\\")+\\\\\\\"?)\\\\\\\\\\\\\\\\s*$\\\\\\\"),a=new RegExp(o,\\\\\\\"g\\\\\\\");return function(r){var n=i.concat(),h=[];if(!r||r\\\\u0026\\\\u0026!s.test(r))return n;r.replace(a,(function(r){var s=new RegExp(o).exec(r).filter((function(t){return!!t})),a=s[1],c=s.slice(2).map(parseFloat);switch(a){case\\\\\\\"translate\\\\\\\":!function(t,e){t[4]=e[0],2===e.length\\\\u0026\\\\u0026(t[5]=e[1])}(n,c);break;case\\\\\\\"rotate\\\\\\\":c[0]=e.util.degreesToRadians(c[0]),function(t,i){var r=e.util.cos(i[0]),n=e.util.sin(i[0]),o=0,s=0;3===i.length\\\\u0026\\\\u0026(o=i[1],s=i[2]),t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=o-(r*o-n*s),t[5]=s-(n*o+r*s)}(n,c);break;case\\\\\\\"scale\\\\\\\":!function(t,e){var i=e[0],r=2===e.length?e[1]:e[0];t[0]=i,t[3]=r}(n,c);break;case\\\\\\\"skewX\\\\\\\":t(n,c,2);break;case\\\\\\\"skewY\\\\\\\":t(n,c,1);break;case\\\\\\\"matrix\\\\\\\":n=c}h.push(n.concat()),n=i.concat()}));for(var c=h[0];h.length\\\\u003e1;)h.shift(),c=e.util.multiplyTransformMatrices(c,h[0]);return c}}();var y=new RegExp(\\\\\\\"^\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"+)\\\\\\\\\\\\\\\\s*,?\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"+)\\\\\\\\\\\\\\\\s*,?\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"+)\\\\\\\\\\\\\\\\s*,?\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"+)\\\\\\\\\\\\\\\\s*$\\\\\\\");function _(t){if(!e.svgViewBoxElementsRegEx.test(t.nodeName))return{};var i,r,n,s,a,h,c=t.getAttribute(\\\\\\\"viewBox\\\\\\\"),l=1,u=1,f=t.getAttribute(\\\\\\\"width\\\\\\\"),d=t.getAttribute(\\\\\\\"height\\\\\\\"),g=t.getAttribute(\\\\\\\"x\\\\\\\")||0,p=t.getAttribute(\\\\\\\"y\\\\\\\")||0,v=t.getAttribute(\\\\\\\"preserveAspectRatio\\\\\\\")||\\\\\\\"\\\\\\\",m=!c||!(c=c.match(y)),_=!f||!d||\\\\\\\"100%\\\\\\\"===f||\\\\\\\"100%\\\\\\\"===d,b=m\\\\u0026\\\\u0026_,x={},C=\\\\\\\"\\\\\\\",w=0,S=0;if(x.width=0,x.height=0,x.toBeParsed=b,m\\\\u0026\\\\u0026(g||p)\\\\u0026\\\\u0026t.parentNode\\\\u0026\\\\u0026\\\\\\\"#document\\\\\\\"!==t.parentNode.nodeName\\\\u0026\\\\u0026(C=\\\\\\\" translate(\\\\\\\"+o(g)+\\\\\\\" \\\\\\\"+o(p)+\\\\\\\") \\\\\\\",a=(t.getAttribute(\\\\\\\"transform\\\\\\\")||\\\\\\\"\\\\\\\")+C,t.setAttribute(\\\\\\\"transform\\\\\\\",a),t.removeAttribute(\\\\\\\"x\\\\\\\"),t.removeAttribute(\\\\\\\"y\\\\\\\")),b)return x;if(m)return x.width=o(f),x.height=o(d),x;if(i=-parseFloat(c[1]),r=-parseFloat(c[2]),n=parseFloat(c[3]),s=parseFloat(c[4]),x.minX=i,x.minY=r,x.viewBoxWidth=n,x.viewBoxHeight=s,_?(x.width=n,x.height=s):(x.width=o(f),x.height=o(d),l=x.width/n,u=x.height/s),\\\\\\\"none\\\\\\\"!==(v=e.util.parsePreserveAspectRatioAttribute(v)).alignX\\\\u0026\\\\u0026(\\\\\\\"meet\\\\\\\"===v.meetOrSlice\\\\u0026\\\\u0026(u=l=l\\\\u003eu?u:l),\\\\\\\"slice\\\\\\\"===v.meetOrSlice\\\\u0026\\\\u0026(u=l=l\\\\u003eu?l:u),w=x.width-n*l,S=x.height-s*l,\\\\\\\"Mid\\\\\\\"===v.alignX\\\\u0026\\\\u0026(w/=2),\\\\\\\"Mid\\\\\\\"===v.alignY\\\\u0026\\\\u0026(S/=2),\\\\\\\"Min\\\\\\\"===v.alignX\\\\u0026\\\\u0026(w=0),\\\\\\\"Min\\\\\\\"===v.alignY\\\\u0026\\\\u0026(S=0)),1===l\\\\u0026\\\\u00261===u\\\\u0026\\\\u00260===i\\\\u0026\\\\u00260===r\\\\u0026\\\\u00260===g\\\\u0026\\\\u00260===p)return x;if((g||p)\\\\u0026\\\\u0026\\\\\\\"#document\\\\\\\"!==t.parentNode.nodeName\\\\u0026\\\\u0026(C=\\\\\\\" translate(\\\\\\\"+o(g)+\\\\\\\" \\\\\\\"+o(p)+\\\\\\\") \\\\\\\"),a=C+\\\\\\\" matrix(\\\\\\\"+l+\\\\\\\" 0 0 \\\\\\\"+u+\\\\\\\" \\\\\\\"+(i*l+w)+\\\\\\\" \\\\\\\"+(r*u+S)+\\\\\\\") \\\\\\\",\\\\\\\"svg\\\\\\\"===t.nodeName){for(h=t.ownerDocument.createElementNS(e.svgNS,\\\\\\\"g\\\\\\\");t.firstChild;)h.appendChild(t.firstChild);t.appendChild(h)}else(h=t).removeAttribute(\\\\\\\"x\\\\\\\"),h.removeAttribute(\\\\\\\"y\\\\\\\"),a=h.getAttribute(\\\\\\\"transform\\\\\\\")+a;return h.setAttribute(\\\\\\\"transform\\\\\\\",a),x}function b(t,e){var i=\\\\\\\"xlink:href\\\\\\\",r=m(t,e.getAttribute(i).substr(1));if(r\\\\u0026\\\\u0026r.getAttribute(i)\\\\u0026\\\\u0026b(t,r),[\\\\\\\"gradientTransform\\\\\\\",\\\\\\\"x1\\\\\\\",\\\\\\\"x2\\\\\\\",\\\\\\\"y1\\\\\\\",\\\\\\\"y2\\\\\\\",\\\\\\\"gradientUnits\\\\\\\",\\\\\\\"cx\\\\\\\",\\\\\\\"cy\\\\\\\",\\\\\\\"r\\\\\\\",\\\\\\\"fx\\\\\\\",\\\\\\\"fy\\\\\\\"].forEach((function(t){r\\\\u0026\\\\u0026!e.hasAttribute(t)\\\\u0026\\\\u0026r.hasAttribute(t)\\\\u0026\\\\u0026e.setAttribute(t,r.getAttribute(t))})),!e.children.length)for(var n=r.cloneNode(!0);n.firstChild;)e.appendChild(n.firstChild);e.removeAttribute(i)}e.parseSVGDocument=function(t,i,n,o){if(t){!function(t){for(var i=g(t,[\\\\\\\"use\\\\\\\",\\\\\\\"svg:use\\\\\\\"]),r=0;i.length\\\\u0026\\\\u0026r\\\\u003ci.length;){var n=i[r],o=n.getAttribute(\\\\\\\"xlink:href\\\\\\\")||n.getAttribute(\\\\\\\"href\\\\\\\");if(null===o)return;var s,a,h,c,l=o.substr(1),u=n.getAttribute(\\\\\\\"x\\\\\\\")||0,f=n.getAttribute(\\\\\\\"y\\\\\\\")||0,d=m(t,l).cloneNode(!0),p=(d.getAttribute(\\\\\\\"transform\\\\\\\")||\\\\\\\"\\\\\\\")+\\\\\\\" translate(\\\\\\\"+u+\\\\\\\", \\\\\\\"+f+\\\\\\\")\\\\\\\",v=i.length,y=e.svgNS;if(_(d),/^svg$/i.test(d.nodeName)){var b=d.ownerDocument.createElementNS(y,\\\\\\\"g\\\\\\\");for(a=0,c=(h=d.attributes).length;a\\\\u003cc;a++)s=h.item(a),b.setAttributeNS(y,s.nodeName,s.nodeValue);for(;d.firstChild;)b.appendChild(d.firstChild);d=b}for(a=0,c=(h=n.attributes).length;a\\\\u003cc;a++)\\\\\\\"x\\\\\\\"!==(s=h.item(a)).nodeName\\\\u0026\\\\u0026\\\\\\\"y\\\\\\\"!==s.nodeName\\\\u0026\\\\u0026\\\\\\\"xlink:href\\\\\\\"!==s.nodeName\\\\u0026\\\\u0026\\\\\\\"href\\\\\\\"!==s.nodeName\\\\u0026\\\\u0026(\\\\\\\"transform\\\\\\\"===s.nodeName?p=s.nodeValue+\\\\\\\" \\\\\\\"+p:d.setAttribute(s.nodeName,s.nodeValue));d.setAttribute(\\\\\\\"transform\\\\\\\",p),d.setAttribute(\\\\\\\"instantiated_by_use\\\\\\\",\\\\\\\"1\\\\\\\"),d.removeAttribute(\\\\\\\"id\\\\\\\"),n.parentNode.replaceChild(d,n),i.length===v\\\\u0026\\\\u0026r++}}(t);var s,a,h=e.Object.__uid++,c=_(t),l=e.util.toArray(t.getElementsByTagName(\\\\\\\"*\\\\\\\"));if(c.crossOrigin=o\\\\u0026\\\\u0026o.crossOrigin,c.svgUid=h,0===l.length\\\\u0026\\\\u0026e.isLikelyNode){var u=[];for(s=0,a=(l=t.selectNodes('//*[name(.)!=\\\\\\\"svg\\\\\\\"]')).length;s\\\\u003ca;s++)u[s]=l[s];l=u}var f=l.filter((function(t){return _(t),e.svgValidTagNamesRegEx.test(t.nodeName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\"))\\\\u0026\\\\u0026!function(t,e){for(;t\\\\u0026\\\\u0026(t=t.parentNode);)if(t.nodeName\\\\u0026\\\\u0026e.test(t.nodeName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\"))\\\\u0026\\\\u0026!t.getAttribute(\\\\\\\"instantiated_by_use\\\\\\\"))return!0;return!1}(t,e.svgInvalidAncestorsRegEx)}));if(!f||f\\\\u0026\\\\u0026!f.length)i\\\\u0026\\\\u0026i([],{});else{var d={};l.filter((function(t){return\\\\\\\"clipPath\\\\\\\"===t.nodeName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\")})).forEach((function(t){var i=t.getAttribute(\\\\\\\"id\\\\\\\");d[i]=e.util.toArray(t.getElementsByTagName(\\\\\\\"*\\\\\\\")).filter((function(t){return e.svgValidTagNamesRegEx.test(t.nodeName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\"))}))})),e.gradientDefs[h]=e.getGradientDefs(t),e.cssRules[h]=e.getCSSRules(t),e.clipPaths[h]=d,e.parseElements(f,(function(t,r){i\\\\u0026\\\\u0026(i(t,c,r,l),delete e.gradientDefs[h],delete e.cssRules[h],delete e.clipPaths[h])}),r(c),n,o)}}};var x=new RegExp(\\\\\\\"(normal|italic)?\\\\\\\\\\\\\\\\s*(normal|small-caps)?\\\\\\\\\\\\\\\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\\\\\\\\\\\\\\\s*(\\\\\\\"+e.reNum+\\\\\\\"(?:px|cm|mm|em|pt|pc|in)*)(?:\\\\\\\\\\\\\\\\/(normal|\\\\\\\"+e.reNum+\\\\\\\"))?\\\\\\\\\\\\\\\\s+(.*)\\\\\\\");i(e,{parseFontDeclaration:function(t,e){var i=t.match(x);if(i){var r=i[1],n=i[3],s=i[4],a=i[5],h=i[6];r\\\\u0026\\\\u0026(e.fontStyle=r),n\\\\u0026\\\\u0026(e.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),s\\\\u0026\\\\u0026(e.fontSize=o(s)),h\\\\u0026\\\\u0026(e.fontFamily=h),a\\\\u0026\\\\u0026(e.lineHeight=\\\\\\\"normal\\\\\\\"===a?1:a)}},getGradientDefs:function(t){var e,i=g(t,[\\\\\\\"linearGradient\\\\\\\",\\\\\\\"radialGradient\\\\\\\",\\\\\\\"svg:linearGradient\\\\\\\",\\\\\\\"svg:radialGradient\\\\\\\"]),r=0,n={};for(r=i.length;r--;)(e=i[r]).getAttribute(\\\\\\\"xlink:href\\\\\\\")\\\\u0026\\\\u0026b(t,e),n[e.getAttribute(\\\\\\\"id\\\\\\\")]=e;return n},parseAttributes:function(t,r,s){if(t){var a,d,g,v={};void 0===s\\\\u0026\\\\u0026(s=t.getAttribute(\\\\\\\"svgUid\\\\\\\")),t.parentNode\\\\u0026\\\\u0026e.svgValidParentsRegEx.test(t.parentNode.nodeName)\\\\u0026\\\\u0026(v=e.parseAttributes(t.parentNode,r,s));var m=r.reduce((function(e,i){return(a=t.getAttribute(i))\\\\u0026\\\\u0026(e[i]=a),e}),{}),y=i(function(t,i){var r={};for(var n in e.cssRules[i])if(p(t,n.split(\\\\\\\" \\\\\\\")))for(var o in e.cssRules[i][n])r[o]=e.cssRules[i][n][o];return r}(t,s),e.parseStyleAttribute(t));m=i(m,y),y[l]\\\\u0026\\\\u0026t.setAttribute(l,y[l]),d=g=v.fontSize||e.Text.DEFAULT_SVG_FONT_SIZE,m[c]\\\\u0026\\\\u0026(m[c]=d=o(m[c],g));var _,b,x={};for(var C in m)b=f(_=u(C),m[C],v,d),x[_]=b;x\\\\u0026\\\\u0026x.font\\\\u0026\\\\u0026e.parseFontDeclaration(x.font,x);var w=i(v,x);return e.svgValidParentsRegEx.test(t.nodeName)?w:function(t){for(var i in h)if(void 0!==t[h[i]]\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!==t[i]){if(void 0===t[i]){if(!e.Object.prototype[i])continue;t[i]=e.Object.prototype[i]}if(0!==t[i].indexOf(\\\\\\\"url(\\\\\\\")){var r=new e.Color(t[i]);t[i]=r.setAlpha(n(r.getAlpha()*t[h[i]],2)).toRgba()}}return t}(w)}},parseElements:function(t,i,r,n,o){new e.ElementsParser(t,i,r,n,o).parse()},parseStyleAttribute:function(t){var e={},i=t.getAttribute(\\\\\\\"style\\\\\\\");return i?(\\\\\\\"string\\\\\\\"==typeof i?function(t,e){var i,r;t.replace(/;\\\\\\\\s*$/,\\\\\\\"\\\\\\\").split(\\\\\\\";\\\\\\\").forEach((function(t){var n=t.split(\\\\\\\":\\\\\\\");i=n[0].trim().toLowerCase(),r=n[1].trim(),e[i]=r}))}(i,e):function(t,e){var i,r;for(var n in t)void 0!==t[n]\\\\u0026\\\\u0026(i=n.toLowerCase(),r=t[n],e[i]=r)}(i,e),e):e},parsePointsAttribute:function(t){if(!t)return null;var e,i,r=[];for(e=0,i=(t=(t=t.replace(/,/g,\\\\\\\" \\\\\\\").trim()).split(/\\\\\\\\s+/)).length;e\\\\u003ci;e+=2)r.push({x:parseFloat(t[e]),y:parseFloat(t[e+1])});return r},getCSSRules:function(t){var i,r,n=t.getElementsByTagName(\\\\\\\"style\\\\\\\"),o={};for(i=0,r=n.length;i\\\\u003cr;i++){var s=n[i].textContent;\\\\\\\"\\\\\\\"!==(s=s.replace(/\\\\\\\\/\\\\\\\\*[\\\\\\\\s\\\\\\\\S]*?\\\\\\\\*\\\\\\\\//g,\\\\\\\"\\\\\\\")).trim()\\\\u0026\\\\u0026s.match(/[^{]*\\\\\\\\{[\\\\\\\\s\\\\\\\\S]*?\\\\\\\\}/g).map((function(t){return t.trim()})).forEach((function(t){var n=t.match(/([\\\\\\\\s\\\\\\\\S]*?)\\\\\\\\s*\\\\\\\\{([^}]*)\\\\\\\\}/),s={},a=n[2].trim().replace(/;$/,\\\\\\\"\\\\\\\").split(/\\\\\\\\s*;\\\\\\\\s*/);for(i=0,r=a.length;i\\\\u003cr;i++){var h=a[i].split(/\\\\\\\\s*:\\\\\\\\s*/),c=h[0],l=h[1];s[c]=l}(t=n[1]).split(\\\\\\\",\\\\\\\").forEach((function(t){\\\\\\\"\\\\\\\"!==(t=t.replace(/^svg/i,\\\\\\\"\\\\\\\").trim())\\\\u0026\\\\u0026(o[t]?e.util.object.extend(o[t],s):o[t]=e.util.object.clone(s))}))}))}return o},loadSVGFromURL:function(t,i,r,n){t=t.replace(/^\\\\\\\\n\\\\\\\\s*/,\\\\\\\"\\\\\\\").trim(),new e.util.request(t,{method:\\\\\\\"get\\\\\\\",onComplete:function(t){var o=t.responseXML;if(!o||!o.documentElement)return i\\\\u0026\\\\u0026i(null),!1;e.parseSVGDocument(o.documentElement,(function(t,e,r,n){i\\\\u0026\\\\u0026i(t,e,r,n)}),r,n)}})},loadSVGFromString:function(t,i,r,n){var o=(new e.window.DOMParser).parseFromString(t.trim(),\\\\\\\"text/xml\\\\\\\");e.parseSVGDocument(o.documentElement,(function(t,e,r,n){i(t,e,r,n)}),r,n)}})}(t),T.ElementsParser=function(t,e,i,r,n,o){this.elements=t,this.callback=e,this.options=i,this.reviver=r,this.svgUid=i\\\\u0026\\\\u0026i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\\\\\\\\(['\\\\\\\"]?#([^'\\\\\\\"]+)['\\\\\\\"]?\\\\\\\\)/g,this.doc=o},(y=T.ElementsParser.prototype).parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},y.createObjects=function(){var t=this;this.elements.forEach((function(e,i){e.setAttribute(\\\\\\\"svgUid\\\\\\\",t.svgUid),t.createObject(e,i)}))},y.findTag=function(t){return T[T.util.string.capitalize(t.tagName.replace(\\\\\\\"svg:\\\\\\\",\\\\\\\"\\\\\\\"))]},y.createObject=function(t,e){var i=this.findTag(t);if(i\\\\u0026\\\\u0026i.fromElement)try{i.fromElement(t,this.createCallback(e,t),this.options)}catch(t){T.log(t)}else this.checkIfDone()},y.createCallback=function(t,e){var i=this;return function(r){var n;i.resolveGradient(r,e,\\\\\\\"fill\\\\\\\"),i.resolveGradient(r,e,\\\\\\\"stroke\\\\\\\"),r instanceof T.Image\\\\u0026\\\\u0026r._originalElement\\\\u0026\\\\u0026(n=r.parsePreserveAspectRatioAttribute(e)),r._removeTransformMatrix(n),i.resolveClipPath(r,e),i.reviver\\\\u0026\\\\u0026i.reviver(e,r),i.instances[t]=r,i.checkIfDone()}},y.extractPropertyDefinition=function(t,e,i){var r=t[e],n=this.regexUrl;if(n.test(r)){n.lastIndex=0;var o=n.exec(r)[1];return n.lastIndex=0,T[i][this.svgUid][o]}},y.resolveGradient=function(t,e,i){var r=this.extractPropertyDefinition(t,i,\\\\\\\"gradientDefs\\\\\\\");if(r){var n=e.getAttribute(i+\\\\\\\"-opacity\\\\\\\"),o=T.Gradient.fromElement(r,t,n,this.options);t.set(i,o)}},y.createClipPathCallback=function(t,e){return function(t){t._removeTransformMatrix(),t.fillRule=t.clipRule,e.push(t)}},y.resolveClipPath=function(t,e){var i,r,n,o,s=this.extractPropertyDefinition(t,\\\\\\\"clipPath\\\\\\\",\\\\\\\"clipPaths\\\\\\\");if(s){n=[],r=T.util.invertTransform(t.calcTransformMatrix());for(var a=s[0].parentNode,h=e;h.parentNode\\\\u0026\\\\u0026h.getAttribute(\\\\\\\"clip-path\\\\\\\")!==t.clipPath;)h=h.parentNode;h.parentNode.appendChild(a);for(var c=0;c\\\\u003cs.length;c++)i=s[c],this.findTag(i).fromElement(i,this.createClipPathCallback(t,n),this.options);s=1===n.length?n[0]:new T.Group(n),o=T.util.multiplyTransformMatrices(r,s.calcTransformMatrix()),s.clipPath\\\\u0026\\\\u0026this.resolveClipPath(s,h);var l=T.util.qrDecompose(o);s.flipX=!1,s.flipY=!1,s.set(\\\\\\\"scaleX\\\\\\\",l.scaleX),s.set(\\\\\\\"scaleY\\\\\\\",l.scaleY),s.angle=l.angle,s.skewX=l.skewX,s.skewY=0,s.setPositionByOrigin({x:l.translateX,y:l.translateY},\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\"),t.clipPath=s}else delete t.clipPath},y.checkIfDone=function(){0==--this.numElements\\\\u0026\\\\u0026(this.instances=this.instances.filter((function(t){return null!=t})),this.callback(this.instances,this.elements))},function(t){var e=t.fabric||(t.fabric={});function i(t,e){this.x=t,this.y=e}e.Point?e.warn(\\\\\\\"fabric.Point is already defined\\\\\\\"):(e.Point=i,i.prototype={type:\\\\\\\"point\\\\\\\",constructor:i,add:function(t){return new i(this.x+t.x,this.y+t.y)},addEquals:function(t){return this.x+=t.x,this.y+=t.y,this},scalarAdd:function(t){return new i(this.x+t,this.y+t)},scalarAddEquals:function(t){return this.x+=t,this.y+=t,this},subtract:function(t){return new i(this.x-t.x,this.y-t.y)},subtractEquals:function(t){return this.x-=t.x,this.y-=t.y,this},scalarSubtract:function(t){return new i(this.x-t,this.y-t)},scalarSubtractEquals:function(t){return this.x-=t,this.y-=t,this},multiply:function(t){return new i(this.x*t,this.y*t)},multiplyEquals:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return new i(this.x/t,this.y/t)},divideEquals:function(t){return this.x/=t,this.y/=t,this},eq:function(t){return this.x===t.x\\\\u0026\\\\u0026this.y===t.y},lt:function(t){return this.x\\\\u003ct.x\\\\u0026\\\\u0026this.y\\\\u003ct.y},lte:function(t){return this.x\\\\u003c=t.x\\\\u0026\\\\u0026this.y\\\\u003c=t.y},gt:function(t){return this.x\\\\u003et.x\\\\u0026\\\\u0026this.y\\\\u003et.y},gte:function(t){return this.x\\\\u003e=t.x\\\\u0026\\\\u0026this.y\\\\u003e=t.y},lerp:function(t,e){return void 0===e\\\\u0026\\\\u0026(e=.5),e=Math.max(Math.min(1,e),0),new i(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e)},distanceFrom:function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},midPointFrom:function(t){return this.lerp(t)},min:function(t){return new i(Math.min(this.x,t.x),Math.min(this.y,t.y))},max:function(t){return new i(Math.max(this.x,t.x),Math.max(this.y,t.y))},toString:function(){return this.x+\\\\\\\",\\\\\\\"+this.y},setXY:function(t,e){return this.x=t,this.y=e,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setFromPoint:function(t){return this.x=t.x,this.y=t.y,this},swap:function(t){var e=this.x,i=this.y;this.x=t.x,this.y=t.y,t.x=e,t.y=i},clone:function(){return new i(this.x,this.y)}})}(t),function(t){var e=t.fabric||(t.fabric={});function i(t){this.status=t,this.points=[]}e.Intersection?e.warn(\\\\\\\"fabric.Intersection is already defined\\\\\\\"):(e.Intersection=i,e.Intersection.prototype={constructor:i,appendPoint:function(t){return this.points.push(t),this},appendPoints:function(t){return this.points=this.points.concat(t),this}},e.Intersection.intersectLineLine=function(t,r,n,o){var s,a=(o.x-n.x)*(t.y-n.y)-(o.y-n.y)*(t.x-n.x),h=(r.x-t.x)*(t.y-n.y)-(r.y-t.y)*(t.x-n.x),c=(o.y-n.y)*(r.x-t.x)-(o.x-n.x)*(r.y-t.y);if(0!==c){var l=a/c,u=h/c;0\\\\u003c=l\\\\u0026\\\\u0026l\\\\u003c=1\\\\u0026\\\\u00260\\\\u003c=u\\\\u0026\\\\u0026u\\\\u003c=1?(s=new i(\\\\\\\"Intersection\\\\\\\")).appendPoint(new e.Point(t.x+l*(r.x-t.x),t.y+l*(r.y-t.y))):s=new i}else s=new i(0===a||0===h?\\\\\\\"Coincident\\\\\\\":\\\\\\\"Parallel\\\\\\\");return s},e.Intersection.intersectLinePolygon=function(t,e,r){var n,o,s,a,h=new i,c=r.length;for(a=0;a\\\\u003cc;a++)n=r[a],o=r[(a+1)%c],s=i.intersectLineLine(t,e,n,o),h.appendPoints(s.points);return h.points.length\\\\u003e0\\\\u0026\\\\u0026(h.status=\\\\\\\"Intersection\\\\\\\"),h},e.Intersection.intersectPolygonPolygon=function(t,e){var r,n=new i,o=t.length;for(r=0;r\\\\u003co;r++){var s=t[r],a=t[(r+1)%o],h=i.intersectLinePolygon(s,a,e);n.appendPoints(h.points)}return n.points.length\\\\u003e0\\\\u0026\\\\u0026(n.status=\\\\\\\"Intersection\\\\\\\"),n},e.Intersection.intersectPolygonRectangle=function(t,r,n){var o=r.min(n),s=r.max(n),a=new e.Point(s.x,o.y),h=new e.Point(o.x,s.y),c=i.intersectLinePolygon(o,a,t),l=i.intersectLinePolygon(a,s,t),u=i.intersectLinePolygon(s,h,t),f=i.intersectLinePolygon(h,o,t),d=new i;return d.appendPoints(c.points),d.appendPoints(l.points),d.appendPoints(u.points),d.appendPoints(f.points),d.points.length\\\\u003e0\\\\u0026\\\\u0026(d.status=\\\\\\\"Intersection\\\\\\\"),d})}(t),function(t){var e=t.fabric||(t.fabric={});function i(t){t?this._tryParsingColor(t):this.setSource([0,0,0,1])}function r(t,e,i){return i\\\\u003c0\\\\u0026\\\\u0026(i+=1),i\\\\u003e1\\\\u0026\\\\u0026(i-=1),i\\\\u003c1/6?t+6*(e-t)*i:i\\\\u003c.5?e:i\\\\u003c2/3?t+(e-t)*(2/3-i)*6:t}e.Color?e.warn(\\\\\\\"fabric.Color is already defined.\\\\\\\"):(e.Color=i,e.Color.prototype={_tryParsingColor:function(t){var e;t in i.colorNameMap\\\\u0026\\\\u0026(t=i.colorNameMap[t]),\\\\\\\"transparent\\\\\\\"===t\\\\u0026\\\\u0026(e=[255,255,255,0]),e||(e=i.sourceFromHex(t)),e||(e=i.sourceFromRgb(t)),e||(e=i.sourceFromHsl(t)),e||(e=[0,0,0,1]),e\\\\u0026\\\\u0026this.setSource(e)},_rgbToHsl:function(t,i,r){t/=255,i/=255,r/=255;var n,o,s,a=e.util.array.max([t,i,r]),h=e.util.array.min([t,i,r]);if(s=(a+h)/2,a===h)n=o=0;else{var c=a-h;switch(o=s\\\\u003e.5?c/(2-a-h):c/(a+h),a){case t:n=(i-r)/c+(i\\\\u003cr?6:0);break;case i:n=(r-t)/c+2;break;case r:n=(t-i)/c+4}n/=6}return[Math.round(360*n),Math.round(100*o),Math.round(100*s)]},getSource:function(){return this._source},setSource:function(t){this._source=t},toRgb:function(){var t=this.getSource();return\\\\\\\"rgb(\\\\\\\"+t[0]+\\\\\\\",\\\\\\\"+t[1]+\\\\\\\",\\\\\\\"+t[2]+\\\\\\\")\\\\\\\"},toRgba:function(){var t=this.getSource();return\\\\\\\"rgba(\\\\\\\"+t[0]+\\\\\\\",\\\\\\\"+t[1]+\\\\\\\",\\\\\\\"+t[2]+\\\\\\\",\\\\\\\"+t[3]+\\\\\\\")\\\\\\\"},toHsl:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return\\\\\\\"hsl(\\\\\\\"+e[0]+\\\\\\\",\\\\\\\"+e[1]+\\\\\\\"%,\\\\\\\"+e[2]+\\\\\\\"%)\\\\\\\"},toHsla:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return\\\\\\\"hsla(\\\\\\\"+e[0]+\\\\\\\",\\\\\\\"+e[1]+\\\\\\\"%,\\\\\\\"+e[2]+\\\\\\\"%,\\\\\\\"+t[3]+\\\\\\\")\\\\\\\"},toHex:function(){var t,e,i,r=this.getSource();return t=1===(t=r[0].toString(16)).length?\\\\\\\"0\\\\\\\"+t:t,e=1===(e=r[1].toString(16)).length?\\\\\\\"0\\\\\\\"+e:e,i=1===(i=r[2].toString(16)).length?\\\\\\\"0\\\\\\\"+i:i,t.toUpperCase()+e.toUpperCase()+i.toUpperCase()},toHexa:function(){var t,e=this.getSource();return t=1===(t=(t=Math.round(255*e[3])).toString(16)).length?\\\\\\\"0\\\\\\\"+t:t,this.toHex()+t.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(t){var e=this.getSource();return e[3]=t,this.setSource(e),this},toGrayscale:function(){var t=this.getSource(),e=parseInt((.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),10),i=t[3];return this.setSource([e,e,e,i]),this},toBlackWhite:function(t){var e=this.getSource(),i=(.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),r=e[3];return t=t||127,i=Number(i)\\\\u003cNumber(t)?0:255,this.setSource([i,i,i,r]),this},overlayWith:function(t){t instanceof i||(t=new i(t));var e,r=[],n=this.getAlpha(),o=this.getSource(),s=t.getSource();for(e=0;e\\\\u003c3;e++)r.push(Math.round(.5*o[e]+.5*s[e]));return r[3]=n,this.setSource(r),this}},e.Color.reRGBa=/^rgba?\\\\\\\\(\\\\\\\\s*(\\\\\\\\d{1,3}(?:\\\\\\\\.\\\\\\\\d+)?\\\\\\\\%?)\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d{1,3}(?:\\\\\\\\.\\\\\\\\d+)?\\\\\\\\%?)\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d{1,3}(?:\\\\\\\\.\\\\\\\\d+)?\\\\\\\\%?)\\\\\\\\s*(?:\\\\\\\\s*,\\\\\\\\s*((?:\\\\\\\\d*\\\\\\\\.?\\\\\\\\d+)?)\\\\\\\\s*)?\\\\\\\\)$/i,e.Color.reHSLa=/^hsla?\\\\\\\\(\\\\\\\\s*(\\\\\\\\d{1,3})\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d{1,3}\\\\\\\\%)\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d{1,3}\\\\\\\\%)\\\\\\\\s*(?:\\\\\\\\s*,\\\\\\\\s*(\\\\\\\\d+(?:\\\\\\\\.\\\\\\\\d+)?)\\\\\\\\s*)?\\\\\\\\)$/i,e.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,e.Color.colorNameMap={aliceblue:\\\\\\\"#F0F8FF\\\\\\\",antiquewhite:\\\\\\\"#FAEBD7\\\\\\\",aqua:\\\\\\\"#00FFFF\\\\\\\",aquamarine:\\\\\\\"#7FFFD4\\\\\\\",azure:\\\\\\\"#F0FFFF\\\\\\\",beige:\\\\\\\"#F5F5DC\\\\\\\",bisque:\\\\\\\"#FFE4C4\\\\\\\",black:\\\\\\\"#000000\\\\\\\",blanchedalmond:\\\\\\\"#FFEBCD\\\\\\\",blue:\\\\\\\"#0000FF\\\\\\\",blueviolet:\\\\\\\"#8A2BE2\\\\\\\",brown:\\\\\\\"#A52A2A\\\\\\\",burlywood:\\\\\\\"#DEB887\\\\\\\",cadetblue:\\\\\\\"#5F9EA0\\\\\\\",chartreuse:\\\\\\\"#7FFF00\\\\\\\",chocolate:\\\\\\\"#D2691E\\\\\\\",coral:\\\\\\\"#FF7F50\\\\\\\",cornflowerblue:\\\\\\\"#6495ED\\\\\\\",cornsilk:\\\\\\\"#FFF8DC\\\\\\\",crimson:\\\\\\\"#DC143C\\\\\\\",cyan:\\\\\\\"#00FFFF\\\\\\\",darkblue:\\\\\\\"#00008B\\\\\\\",darkcyan:\\\\\\\"#008B8B\\\\\\\",darkgoldenrod:\\\\\\\"#B8860B\\\\\\\",darkgray:\\\\\\\"#A9A9A9\\\\\\\",darkgrey:\\\\\\\"#A9A9A9\\\\\\\",darkgreen:\\\\\\\"#006400\\\\\\\",darkkhaki:\\\\\\\"#BDB76B\\\\\\\",darkmagenta:\\\\\\\"#8B008B\\\\\\\",darkolivegreen:\\\\\\\"#556B2F\\\\\\\",darkorange:\\\\\\\"#FF8C00\\\\\\\",darkorchid:\\\\\\\"#9932CC\\\\\\\",darkred:\\\\\\\"#8B0000\\\\\\\",darksalmon:\\\\\\\"#E9967A\\\\\\\",darkseagreen:\\\\\\\"#8FBC8F\\\\\\\",darkslateblue:\\\\\\\"#483D8B\\\\\\\",darkslategray:\\\\\\\"#2F4F4F\\\\\\\",darkslategrey:\\\\\\\"#2F4F4F\\\\\\\",darkturquoise:\\\\\\\"#00CED1\\\\\\\",darkviolet:\\\\\\\"#9400D3\\\\\\\",deeppink:\\\\\\\"#FF1493\\\\\\\",deepskyblue:\\\\\\\"#00BFFF\\\\\\\",dimgray:\\\\\\\"#696969\\\\\\\",dimgrey:\\\\\\\"#696969\\\\\\\",dodgerblue:\\\\\\\"#1E90FF\\\\\\\",firebrick:\\\\\\\"#B22222\\\\\\\",floralwhite:\\\\\\\"#FFFAF0\\\\\\\",forestgreen:\\\\\\\"#228B22\\\\\\\",fuchsia:\\\\\\\"#FF00FF\\\\\\\",gainsboro:\\\\\\\"#DCDCDC\\\\\\\",ghostwhite:\\\\\\\"#F8F8FF\\\\\\\",gold:\\\\\\\"#FFD700\\\\\\\",goldenrod:\\\\\\\"#DAA520\\\\\\\",gray:\\\\\\\"#808080\\\\\\\",grey:\\\\\\\"#808080\\\\\\\",green:\\\\\\\"#008000\\\\\\\",greenyellow:\\\\\\\"#ADFF2F\\\\\\\",honeydew:\\\\\\\"#F0FFF0\\\\\\\",hotpink:\\\\\\\"#FF69B4\\\\\\\",indianred:\\\\\\\"#CD5C5C\\\\\\\",indigo:\\\\\\\"#4B0082\\\\\\\",ivory:\\\\\\\"#FFFFF0\\\\\\\",khaki:\\\\\\\"#F0E68C\\\\\\\",lavender:\\\\\\\"#E6E6FA\\\\\\\",lavenderblush:\\\\\\\"#FFF0F5\\\\\\\",lawngreen:\\\\\\\"#7CFC00\\\\\\\",lemonchiffon:\\\\\\\"#FFFACD\\\\\\\",lightblue:\\\\\\\"#ADD8E6\\\\\\\",lightcoral:\\\\\\\"#F08080\\\\\\\",lightcyan:\\\\\\\"#E0FFFF\\\\\\\",lightgoldenrodyellow:\\\\\\\"#FAFAD2\\\\\\\",lightgray:\\\\\\\"#D3D3D3\\\\\\\",lightgrey:\\\\\\\"#D3D3D3\\\\\\\",lightgreen:\\\\\\\"#90EE90\\\\\\\",lightpink:\\\\\\\"#FFB6C1\\\\\\\",lightsalmon:\\\\\\\"#FFA07A\\\\\\\",lightseagreen:\\\\\\\"#20B2AA\\\\\\\",lightskyblue:\\\\\\\"#87CEFA\\\\\\\",lightslategray:\\\\\\\"#778899\\\\\\\",lightslategrey:\\\\\\\"#778899\\\\\\\",lightsteelblue:\\\\\\\"#B0C4DE\\\\\\\",lightyellow:\\\\\\\"#FFFFE0\\\\\\\",lime:\\\\\\\"#00FF00\\\\\\\",limegreen:\\\\\\\"#32CD32\\\\\\\",linen:\\\\\\\"#FAF0E6\\\\\\\",magenta:\\\\\\\"#FF00FF\\\\\\\",maroon:\\\\\\\"#800000\\\\\\\",mediumaquamarine:\\\\\\\"#66CDAA\\\\\\\",mediumblue:\\\\\\\"#0000CD\\\\\\\",mediumorchid:\\\\\\\"#BA55D3\\\\\\\",mediumpurple:\\\\\\\"#9370DB\\\\\\\",mediumseagreen:\\\\\\\"#3CB371\\\\\\\",mediumslateblue:\\\\\\\"#7B68EE\\\\\\\",mediumspringgreen:\\\\\\\"#00FA9A\\\\\\\",mediumturquoise:\\\\\\\"#48D1CC\\\\\\\",mediumvioletred:\\\\\\\"#C71585\\\\\\\",midnightblue:\\\\\\\"#191970\\\\\\\",mintcream:\\\\\\\"#F5FFFA\\\\\\\",mistyrose:\\\\\\\"#FFE4E1\\\\\\\",moccasin:\\\\\\\"#FFE4B5\\\\\\\",navajowhite:\\\\\\\"#FFDEAD\\\\\\\",navy:\\\\\\\"#000080\\\\\\\",oldlace:\\\\\\\"#FDF5E6\\\\\\\",olive:\\\\\\\"#808000\\\\\\\",olivedrab:\\\\\\\"#6B8E23\\\\\\\",orange:\\\\\\\"#FFA500\\\\\\\",orangered:\\\\\\\"#FF4500\\\\\\\",orchid:\\\\\\\"#DA70D6\\\\\\\",palegoldenrod:\\\\\\\"#EEE8AA\\\\\\\",palegreen:\\\\\\\"#98FB98\\\\\\\",paleturquoise:\\\\\\\"#AFEEEE\\\\\\\",palevioletred:\\\\\\\"#DB7093\\\\\\\",papayawhip:\\\\\\\"#FFEFD5\\\\\\\",peachpuff:\\\\\\\"#FFDAB9\\\\\\\",peru:\\\\\\\"#CD853F\\\\\\\",pink:\\\\\\\"#FFC0CB\\\\\\\",plum:\\\\\\\"#DDA0DD\\\\\\\",powderblue:\\\\\\\"#B0E0E6\\\\\\\",purple:\\\\\\\"#800080\\\\\\\",rebeccapurple:\\\\\\\"#663399\\\\\\\",red:\\\\\\\"#FF0000\\\\\\\",rosybrown:\\\\\\\"#BC8F8F\\\\\\\",royalblue:\\\\\\\"#4169E1\\\\\\\",saddlebrown:\\\\\\\"#8B4513\\\\\\\",salmon:\\\\\\\"#FA8072\\\\\\\",sandybrown:\\\\\\\"#F4A460\\\\\\\",seagreen:\\\\\\\"#2E8B57\\\\\\\",seashell:\\\\\\\"#FFF5EE\\\\\\\",sienna:\\\\\\\"#A0522D\\\\\\\",silver:\\\\\\\"#C0C0C0\\\\\\\",skyblue:\\\\\\\"#87CEEB\\\\\\\",slateblue:\\\\\\\"#6A5ACD\\\\\\\",slategray:\\\\\\\"#708090\\\\\\\",slategrey:\\\\\\\"#708090\\\\\\\",snow:\\\\\\\"#FFFAFA\\\\\\\",springgreen:\\\\\\\"#00FF7F\\\\\\\",steelblue:\\\\\\\"#4682B4\\\\\\\",tan:\\\\\\\"#D2B48C\\\\\\\",teal:\\\\\\\"#008080\\\\\\\",thistle:\\\\\\\"#D8BFD8\\\\\\\",tomato:\\\\\\\"#FF6347\\\\\\\",turquoise:\\\\\\\"#40E0D0\\\\\\\",violet:\\\\\\\"#EE82EE\\\\\\\",wheat:\\\\\\\"#F5DEB3\\\\\\\",white:\\\\\\\"#FFFFFF\\\\\\\",whitesmoke:\\\\\\\"#F5F5F5\\\\\\\",yellow:\\\\\\\"#FFFF00\\\\\\\",yellowgreen:\\\\\\\"#9ACD32\\\\\\\"},e.Color.fromRgb=function(t){return i.fromSource(i.sourceFromRgb(t))},e.Color.sourceFromRgb=function(t){var e=t.match(i.reRGBa);if(e){var r=parseInt(e[1],10)/(/%$/.test(e[1])?100:1)*(/%$/.test(e[1])?255:1),n=parseInt(e[2],10)/(/%$/.test(e[2])?100:1)*(/%$/.test(e[2])?255:1),o=parseInt(e[3],10)/(/%$/.test(e[3])?100:1)*(/%$/.test(e[3])?255:1);return[parseInt(r,10),parseInt(n,10),parseInt(o,10),e[4]?parseFloat(e[4]):1]}},e.Color.fromRgba=i.fromRgb,e.Color.fromHsl=function(t){return i.fromSource(i.sourceFromHsl(t))},e.Color.sourceFromHsl=function(t){var e=t.match(i.reHSLa);if(e){var n,o,s,a=(parseFloat(e[1])%360+360)%360/360,h=parseFloat(e[2])/(/%$/.test(e[2])?100:1),c=parseFloat(e[3])/(/%$/.test(e[3])?100:1);if(0===h)n=o=s=c;else{var l=c\\\\u003c=.5?c*(h+1):c+h-c*h,u=2*c-l;n=r(u,l,a+1/3),o=r(u,l,a),s=r(u,l,a-1/3)}return[Math.round(255*n),Math.round(255*o),Math.round(255*s),e[4]?parseFloat(e[4]):1]}},e.Color.fromHsla=i.fromHsl,e.Color.fromHex=function(t){return i.fromSource(i.sourceFromHex(t))},e.Color.sourceFromHex=function(t){if(t.match(i.reHex)){var e=t.slice(t.indexOf(\\\\\\\"#\\\\\\\")+1),r=3===e.length||4===e.length,n=8===e.length||4===e.length,o=r?e.charAt(0)+e.charAt(0):e.substring(0,2),s=r?e.charAt(1)+e.charAt(1):e.substring(2,4),a=r?e.charAt(2)+e.charAt(2):e.substring(4,6),h=n?r?e.charAt(3)+e.charAt(3):e.substring(6,8):\\\\\\\"FF\\\\\\\";return[parseInt(o,16),parseInt(s,16),parseInt(a,16),parseFloat((parseInt(h,16)/255).toFixed(2))]}},e.Color.fromSource=function(t){var e=new i;return e.setSource(t),e})}(t),function(t){var e=t.fabric||(t.fabric={}),i=[\\\\\\\"e\\\\\\\",\\\\\\\"se\\\\\\\",\\\\\\\"s\\\\\\\",\\\\\\\"sw\\\\\\\",\\\\\\\"w\\\\\\\",\\\\\\\"nw\\\\\\\",\\\\\\\"n\\\\\\\",\\\\\\\"ne\\\\\\\",\\\\\\\"e\\\\\\\"],r=[\\\\\\\"ns\\\\\\\",\\\\\\\"nesw\\\\\\\",\\\\\\\"ew\\\\\\\",\\\\\\\"nwse\\\\\\\"],n={},o=\\\\\\\"left\\\\\\\",s=\\\\\\\"top\\\\\\\",a=\\\\\\\"right\\\\\\\",h=\\\\\\\"bottom\\\\\\\",c=\\\\\\\"center\\\\\\\",l={top:h,bottom:s,left:a,right:o,center:c},u=e.util.radiansToDegrees,f=Math.sign||function(t){return(t\\\\u003e0)-(t\\\\u003c0)||+t};function d(t,e){var i=t.angle+u(Math.atan2(e.y,e.x))+360;return Math.round(i%360/45)}function g(t,i){var r=i.transform.target,n=r.canvas,o=e.util.object.clone(i);o.target=r,n\\\\u0026\\\\u0026n.fire(\\\\\\\"object:\\\\\\\"+t,o),r.fire(t,i)}function p(t,e){var i=e.canvas,r=t[i.uniScaleKey];return i.uniformScaling\\\\u0026\\\\u0026!r||!i.uniformScaling\\\\u0026\\\\u0026r}function v(t){return t.originX===c\\\\u0026\\\\u0026t.originY===c}function m(t,e,i){var r=t.lockScalingX,n=t.lockScalingY;return!(!r||!n)||(!(e||!r\\\\u0026\\\\u0026!n||!i)||(!(!r||\\\\\\\"x\\\\\\\"!==e)||!(!n||\\\\\\\"y\\\\\\\"!==e)))}function y(t,e,i,r){return{e:t,transform:e,pointer:{x:i,y:r}}}function _(t){return function(e,i,r,n){var o=i.target,s=o.getCenterPoint(),a=o.translateToOriginPoint(s,i.originX,i.originY),h=t(e,i,r,n);return o.setPositionByOrigin(a,i.originX,i.originY),h}}function b(t,e){return function(i,r,n,o){var s=e(i,r,n,o);return s\\\\u0026\\\\u0026g(t,y(i,r,n,o)),s}}function x(t,i,r,n,o){var s=t.target,a=s.controls[t.corner],h=s.canvas.getZoom(),c=s.padding/h,l=s.toLocalPoint(new e.Point(n,o),i,r);return l.x\\\\u003e=c\\\\u0026\\\\u0026(l.x-=c),l.x\\\\u003c=-c\\\\u0026\\\\u0026(l.x+=c),l.y\\\\u003e=c\\\\u0026\\\\u0026(l.y-=c),l.y\\\\u003c=c\\\\u0026\\\\u0026(l.y+=c),l.x-=a.offsetX,l.y-=a.offsetY,l}function C(t){return t.flipX!==t.flipY}function w(t,e,i,r,n){if(0!==t[e]){var o=n/t._getTransformedDimensions()[r]*t[i];t.set(i,o)}}function S(t,e,i,r){var n,c=e.target,l=c._getTransformedDimensions(0,c.skewY),f=x(e,e.originX,e.originY,i,r),d=Math.abs(2*f.x)-l.x,g=c.skewX;d\\\\u003c2?n=0:(n=u(Math.atan2(d/c.scaleX,l.y/c.scaleY)),e.originX===o\\\\u0026\\\\u0026e.originY===h\\\\u0026\\\\u0026(n=-n),e.originX===a\\\\u0026\\\\u0026e.originY===s\\\\u0026\\\\u0026(n=-n),C(c)\\\\u0026\\\\u0026(n=-n));var p=g!==n;if(p){var v=c._getTransformedDimensions().y;c.set(\\\\\\\"skewX\\\\\\\",n),w(c,\\\\\\\"skewY\\\\\\\",\\\\\\\"scaleY\\\\\\\",\\\\\\\"y\\\\\\\",v)}return p}function T(t,e,i,r){var n,c=e.target,l=c._getTransformedDimensions(c.skewX,0),f=x(e,e.originX,e.originY,i,r),d=Math.abs(2*f.y)-l.y,g=c.skewY;d\\\\u003c2?n=0:(n=u(Math.atan2(d/c.scaleY,l.x/c.scaleX)),e.originX===o\\\\u0026\\\\u0026e.originY===h\\\\u0026\\\\u0026(n=-n),e.originX===a\\\\u0026\\\\u0026e.originY===s\\\\u0026\\\\u0026(n=-n),C(c)\\\\u0026\\\\u0026(n=-n));var p=g!==n;if(p){var v=c._getTransformedDimensions().x;c.set(\\\\\\\"skewY\\\\\\\",n),w(c,\\\\\\\"skewX\\\\\\\",\\\\\\\"scaleX\\\\\\\",\\\\\\\"x\\\\\\\",v)}return p}function O(t,e,i,r,n){n=n||{};var o,s,a,h,c,u,d=e.target,g=d.lockScalingX,y=d.lockScalingY,_=n.by,b=p(t,d),C=m(d,_,b),w=e.gestureScale;if(C)return!1;if(w)s=e.scaleX*w,a=e.scaleY*w;else{if(o=x(e,e.originX,e.originY,i,r),c=\\\\\\\"y\\\\\\\"!==_?f(o.x):1,u=\\\\\\\"x\\\\\\\"!==_?f(o.y):1,e.signX||(e.signX=c),e.signY||(e.signY=u),d.lockScalingFlip\\\\u0026\\\\u0026(e.signX!==c||e.signY!==u))return!1;if(h=d._getTransformedDimensions(),b\\\\u0026\\\\u0026!_){var S=Math.abs(o.x)+Math.abs(o.y),T=e.original,O=S/(Math.abs(h.x*T.scaleX/d.scaleX)+Math.abs(h.y*T.scaleY/d.scaleY));s=T.scaleX*O,a=T.scaleY*O}else s=Math.abs(o.x*d.scaleX/h.x),a=Math.abs(o.y*d.scaleY/h.y);v(e)\\\\u0026\\\\u0026(s*=2,a*=2),e.signX!==c\\\\u0026\\\\u0026\\\\\\\"y\\\\\\\"!==_\\\\u0026\\\\u0026(e.originX=l[e.originX],s*=-1,e.signX=c),e.signY!==u\\\\u0026\\\\u0026\\\\\\\"x\\\\\\\"!==_\\\\u0026\\\\u0026(e.originY=l[e.originY],a*=-1,e.signY=u)}var P=d.scaleX,E=d.scaleY;return _?(\\\\\\\"x\\\\\\\"===_\\\\u0026\\\\u0026d.set(\\\\\\\"scaleX\\\\\\\",s),\\\\\\\"y\\\\\\\"===_\\\\u0026\\\\u0026d.set(\\\\\\\"scaleY\\\\\\\",a)):(!g\\\\u0026\\\\u0026d.set(\\\\\\\"scaleX\\\\\\\",s),!y\\\\u0026\\\\u0026d.set(\\\\\\\"scaleY\\\\\\\",a)),P!==d.scaleX||E!==d.scaleY}n.scaleCursorStyleHandler=function(t,e,r){var n=p(t,r),o=\\\\\\\"\\\\\\\";if(0!==e.x\\\\u0026\\\\u00260===e.y?o=\\\\\\\"x\\\\\\\":0===e.x\\\\u0026\\\\u00260!==e.y\\\\u0026\\\\u0026(o=\\\\\\\"y\\\\\\\"),m(r,o,n))return\\\\\\\"not-allowed\\\\\\\";var s=d(r,e);return i[s]+\\\\\\\"-resize\\\\\\\"},n.skewCursorStyleHandler=function(t,e,i){var n=\\\\\\\"not-allowed\\\\\\\";if(0!==e.x\\\\u0026\\\\u0026i.lockSkewingY)return n;if(0!==e.y\\\\u0026\\\\u0026i.lockSkewingX)return n;var o=d(i,e)%4;return r[o]+\\\\\\\"-resize\\\\\\\"},n.scaleSkewCursorStyleHandler=function(t,e,i){return t[i.canvas.altActionKey]?n.skewCursorStyleHandler(t,e,i):n.scaleCursorStyleHandler(t,e,i)},n.rotationWithSnapping=b(\\\\\\\"rotating\\\\\\\",_((function(t,e,i,r){var n=e,o=n.target,s=o.translateToOriginPoint(o.getCenterPoint(),n.originX,n.originY);if(o.lockRotation)return!1;var a,h=Math.atan2(n.ey-s.y,n.ex-s.x),c=Math.atan2(r-s.y,i-s.x),l=u(c-h+n.theta);if(o.snapAngle\\\\u003e0){var f=o.snapAngle,d=o.snapThreshold||f,g=Math.ceil(l/f)*f,p=Math.floor(l/f)*f;Math.abs(l-p)\\\\u003cd?l=p:Math.abs(l-g)\\\\u003cd\\\\u0026\\\\u0026(l=g)}return l\\\\u003c0\\\\u0026\\\\u0026(l=360+l),l%=360,a=o.angle!==l,o.angle=l,a}))),n.scalingEqually=b(\\\\\\\"scaling\\\\\\\",_((function(t,e,i,r){return O(t,e,i,r)}))),n.scalingX=b(\\\\\\\"scaling\\\\\\\",_((function(t,e,i,r){return O(t,e,i,r,{by:\\\\\\\"x\\\\\\\"})}))),n.scalingY=b(\\\\\\\"scaling\\\\\\\",_((function(t,e,i,r){return O(t,e,i,r,{by:\\\\\\\"y\\\\\\\"})}))),n.scalingYOrSkewingX=function(t,e,i,r){return t[e.target.canvas.altActionKey]?n.skewHandlerX(t,e,i,r):n.scalingY(t,e,i,r)},n.scalingXOrSkewingY=function(t,e,i,r){return t[e.target.canvas.altActionKey]?n.skewHandlerY(t,e,i,r):n.scalingX(t,e,i,r)},n.changeWidth=b(\\\\\\\"resizing\\\\\\\",_((function(t,e,i,r){var n=e.target,o=x(e,e.originX,e.originY,i,r),s=n.strokeWidth/(n.strokeUniform?n.scaleX:1),a=v(e)?2:1,h=n.width,c=Math.abs(o.x*a/n.scaleX)-s;return n.set(\\\\\\\"width\\\\\\\",Math.max(c,0)),h!==c}))),n.skewHandlerX=function(t,e,i,r){var n,h=e.target,l=h.skewX,u=e.originY;return!h.lockSkewingX\\\\u0026\\\\u0026(0===l?n=x(e,c,c,i,r).x\\\\u003e0?o:a:(l\\\\u003e0\\\\u0026\\\\u0026(n=u===s?o:a),l\\\\u003c0\\\\u0026\\\\u0026(n=u===s?a:o),C(h)\\\\u0026\\\\u0026(n=n===o?a:o)),e.originX=n,b(\\\\\\\"skewing\\\\\\\",_(S))(t,e,i,r))},n.skewHandlerY=function(t,e,i,r){var n,a=e.target,l=a.skewY,u=e.originX;return!a.lockSkewingY\\\\u0026\\\\u0026(0===l?n=x(e,c,c,i,r).y\\\\u003e0?s:h:(l\\\\u003e0\\\\u0026\\\\u0026(n=u===o?s:h),l\\\\u003c0\\\\u0026\\\\u0026(n=u===o?h:s),C(a)\\\\u0026\\\\u0026(n=n===s?h:s)),e.originY=n,b(\\\\\\\"skewing\\\\\\\",_(T))(t,e,i,r))},n.dragHandler=function(t,e,i,r){var n=e.target,o=i-e.offsetX,s=r-e.offsetY,a=!n.get(\\\\\\\"lockMovementX\\\\\\\")\\\\u0026\\\\u0026n.left!==o,h=!n.get(\\\\\\\"lockMovementY\\\\\\\")\\\\u0026\\\\u0026n.top!==s;return a\\\\u0026\\\\u0026n.set(\\\\\\\"left\\\\\\\",o),h\\\\u0026\\\\u0026n.set(\\\\\\\"top\\\\\\\",s),(a||h)\\\\u0026\\\\u0026g(\\\\\\\"moving\\\\\\\",y(t,e,i,r)),a||h},n.scaleOrSkewActionName=function(t,e,i){var r=t[i.canvas.altActionKey];return 0===e.x?r?\\\\\\\"skewX\\\\\\\":\\\\\\\"scaleY\\\\\\\":0===e.y?r?\\\\\\\"skewY\\\\\\\":\\\\\\\"scaleX\\\\\\\":void 0},n.rotationStyleHandler=function(t,e,i){return i.lockRotation?\\\\\\\"not-allowed\\\\\\\":e.cursorStyle},n.fireEvent=g,n.wrapWithFixedAnchor=_,n.wrapWithFireEvent=b,n.getLocalPoint=x,e.controlsUtils=n}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.degreesToRadians,r=e.controlsUtils;r.renderCircleControl=function(t,e,i,r,n){r=r||{};var o,s=this.sizeX||r.cornerSize||n.cornerSize,a=this.sizeY||r.cornerSize||n.cornerSize,h=void 0!==r.transparentCorners?r.transparentCorners:n.transparentCorners,c=h?\\\\\\\"stroke\\\\\\\":\\\\\\\"fill\\\\\\\",l=!h\\\\u0026\\\\u0026(r.cornerStrokeColor||n.cornerStrokeColor),u=e,f=i;t.save(),t.fillStyle=r.cornerColor||n.cornerColor,t.strokeStyle=r.cornerStrokeColor||n.cornerStrokeColor,s\\\\u003ea?(o=s,t.scale(1,a/s),f=i*s/a):a\\\\u003es?(o=a,t.scale(s/a,1),u=e*a/s):o=s,t.lineWidth=1,t.beginPath(),t.arc(u,f,o/2,0,2*Math.PI,!1),t[c](),l\\\\u0026\\\\u0026t.stroke(),t.restore()},r.renderSquareControl=function(t,e,r,n,o){n=n||{};var s=this.sizeX||n.cornerSize||o.cornerSize,a=this.sizeY||n.cornerSize||o.cornerSize,h=void 0!==n.transparentCorners?n.transparentCorners:o.transparentCorners,c=h?\\\\\\\"stroke\\\\\\\":\\\\\\\"fill\\\\\\\",l=!h\\\\u0026\\\\u0026(n.cornerStrokeColor||o.cornerStrokeColor),u=s/2,f=a/2;t.save(),t.fillStyle=n.cornerColor||o.cornerColor,t.strokeStyle=n.cornerStrokeColor||o.cornerStrokeColor,t.lineWidth=1,t.translate(e,r),t.rotate(i(o.angle)),t[c+\\\\\\\"Rect\\\\\\\"](-u,-f,s,a),l\\\\u0026\\\\u0026t.strokeRect(-u,-f,s,a),t.restore()}}(t),function(t){var e=t.fabric||(t.fabric={});e.Control=function(t){for(var e in t)this[e]=t[e]},e.Control.prototype={visible:!0,actionName:\\\\\\\"scale\\\\\\\",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:\\\\\\\"crosshair\\\\\\\",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(t,e){return e.cursorStyle},getActionName:function(t,e){return e.actionName},getVisibility:function(t,e){var i=t._controlsVisibility;return i\\\\u0026\\\\u0026void 0!==i[e]?i[e]:this.visible},setVisibility:function(t){this.visible=t},positionHandler:function(t,i){return e.util.transformPoint({x:this.x*t.x+this.offsetX,y:this.y*t.y+this.offsetY},i)},calcCornerCoords:function(t,i,r,n,o){var s,a,h,c,l=o?this.touchSizeX:this.sizeX,u=o?this.touchSizeY:this.sizeY;if(l\\\\u0026\\\\u0026u\\\\u0026\\\\u0026l!==u){var f=Math.atan2(u,l),d=Math.sqrt(l*l+u*u)/2,g=f-e.util.degreesToRadians(t),p=Math.PI/2-f-e.util.degreesToRadians(t);s=d*e.util.cos(g),a=d*e.util.sin(g),h=d*e.util.cos(p),c=d*e.util.sin(p)}else{d=.7071067812*(l\\\\u0026\\\\u0026u?l:i);g=e.util.degreesToRadians(45-t);s=h=d*e.util.cos(g),a=c=d*e.util.sin(g)}return{tl:{x:r-c,y:n-h},tr:{x:r+s,y:n-a},bl:{x:r-s,y:n+a},br:{x:r+c,y:n+h}}},render:function(t,i,r,n,o){if(\\\\\\\"circle\\\\\\\"===((n=n||{}).cornerStyle||o.cornerStyle))e.controlsUtils.renderCircleControl.call(this,t,i,r,n,o);else e.controlsUtils.renderSquareControl.call(this,t,i,r,n,o)}}}(t),function(){function t(t,e){var i,r,n,o,s=t.getAttribute(\\\\\\\"style\\\\\\\"),a=t.getAttribute(\\\\\\\"offset\\\\\\\")||0;if(a=(a=parseFloat(a)/(/%$/.test(a)?100:1))\\\\u003c0?0:a\\\\u003e1?1:a,s){var h=s.split(/\\\\\\\\s*;\\\\\\\\s*/);for(\\\\\\\"\\\\\\\"===h[h.length-1]\\\\u0026\\\\u0026h.pop(),o=h.length;o--;){var c=h[o].split(/\\\\\\\\s*:\\\\\\\\s*/),l=c[0].trim(),u=c[1].trim();\\\\\\\"stop-color\\\\\\\"===l?i=u:\\\\\\\"stop-opacity\\\\\\\"===l\\\\u0026\\\\u0026(n=u)}}return i||(i=t.getAttribute(\\\\\\\"stop-color\\\\\\\")||\\\\\\\"rgb(0,0,0)\\\\\\\"),n||(n=t.getAttribute(\\\\\\\"stop-opacity\\\\\\\")),r=(i=new T.Color(i)).getAlpha(),n=isNaN(parseFloat(n))?1:parseFloat(n),n*=r*e,{offset:a,color:i.toRgb(),opacity:n}}var e=T.util.object.clone;T.Gradient=T.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:\\\\\\\"pixels\\\\\\\",type:\\\\\\\"linear\\\\\\\",initialize:function(t){t||(t={}),t.coords||(t.coords={});var e,i=this;Object.keys(t).forEach((function(e){i[e]=t[e]})),this.id?this.id+=\\\\\\\"_\\\\\\\"+T.Object.__uid++:this.id=T.Object.__uid++,e={x1:t.coords.x1||0,y1:t.coords.y1||0,x2:t.coords.x2||0,y2:t.coords.y2||0},\\\\\\\"radial\\\\\\\"===this.type\\\\u0026\\\\u0026(e.r1=t.coords.r1||0,e.r2=t.coords.r2||0),this.coords=e,this.colorStops=t.colorStops.slice()},addColorStop:function(t){for(var e in t){var i=new T.Color(t[e]);this.colorStops.push({offset:parseFloat(e),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(t){var e={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return T.util.populateWithProperties(this,e,t),e},toSVG:function(t,i){var r,n,o,s,a=e(this.coords,!0),h=(i=i||{},e(this.colorStops,!0)),c=a.r1\\\\u003ea.r2,l=this.gradientTransform?this.gradientTransform.concat():T.iMatrix.concat(),u=-this.offsetX,f=-this.offsetY,d=!!i.additionalTransform,g=\\\\\\\"pixels\\\\\\\"===this.gradientUnits?\\\\\\\"userSpaceOnUse\\\\\\\":\\\\\\\"objectBoundingBox\\\\\\\";if(h.sort((function(t,e){return t.offset-e.offset})),\\\\\\\"objectBoundingBox\\\\\\\"===g?(u/=t.width,f/=t.height):(u+=t.width/2,f+=t.height/2),\\\\\\\"path\\\\\\\"===t.type\\\\u0026\\\\u0026\\\\\\\"percentage\\\\\\\"!==this.gradientUnits\\\\u0026\\\\u0026(u-=t.pathOffset.x,f-=t.pathOffset.y),l[4]-=u,l[5]-=f,s='id=\\\\\\\"SVGID_'+this.id+'\\\\\\\" gradientUnits=\\\\\\\"'+g+'\\\\\\\"',s+=' gradientTransform=\\\\\\\"'+(d?i.additionalTransform+\\\\\\\" \\\\\\\":\\\\\\\"\\\\\\\")+T.util.matrixToSVG(l)+'\\\\\\\" ',\\\\\\\"linear\\\\\\\"===this.type?o=[\\\\\\\"\\\\u003clinearGradient \\\\\\\",s,' x1=\\\\\\\"',a.x1,'\\\\\\\" y1=\\\\\\\"',a.y1,'\\\\\\\" x2=\\\\\\\"',a.x2,'\\\\\\\" y2=\\\\\\\"',a.y2,'\\\\\\\"\\\\u003e\\\\\\\\n']:\\\\\\\"radial\\\\\\\"===this.type\\\\u0026\\\\u0026(o=[\\\\\\\"\\\\u003cradialGradient \\\\\\\",s,' cx=\\\\\\\"',c?a.x1:a.x2,'\\\\\\\" cy=\\\\\\\"',c?a.y1:a.y2,'\\\\\\\" r=\\\\\\\"',c?a.r1:a.r2,'\\\\\\\" fx=\\\\\\\"',c?a.x2:a.x1,'\\\\\\\" fy=\\\\\\\"',c?a.y2:a.y1,'\\\\\\\"\\\\u003e\\\\\\\\n']),\\\\\\\"radial\\\\\\\"===this.type){if(c)for((h=h.concat()).reverse(),r=0,n=h.length;r\\\\u003cn;r++)h[r].offset=1-h[r].offset;var p=Math.min(a.r1,a.r2);if(p\\\\u003e0){var v=p/Math.max(a.r1,a.r2);for(r=0,n=h.length;r\\\\u003cn;r++)h[r].offset+=v*(1-h[r].offset)}}for(r=0,n=h.length;r\\\\u003cn;r++){var m=h[r];o.push(\\\\\\\"\\\\u003cstop \\\\\\\",'offset=\\\\\\\"',100*m.offset+\\\\\\\"%\\\\\\\",'\\\\\\\" style=\\\\\\\"stop-color:',m.color,void 0!==m.opacity?\\\\\\\";stop-opacity: \\\\\\\"+m.opacity:\\\\\\\";\\\\\\\",'\\\\\\\"/\\\\u003e\\\\\\\\n')}return o.push(\\\\\\\"linear\\\\\\\"===this.type?\\\\\\\"\\\\u003c/linearGradient\\\\u003e\\\\\\\\n\\\\\\\":\\\\\\\"\\\\u003c/radialGradient\\\\u003e\\\\\\\\n\\\\\\\"),o.join(\\\\\\\"\\\\\\\")},toLive:function(t){var e,i,r,n=T.util.object.clone(this.coords);if(this.type){for(\\\\\\\"linear\\\\\\\"===this.type?e=t.createLinearGradient(n.x1,n.y1,n.x2,n.y2):\\\\\\\"radial\\\\\\\"===this.type\\\\u0026\\\\u0026(e=t.createRadialGradient(n.x1,n.y1,n.r1,n.x2,n.y2,n.r2)),i=0,r=this.colorStops.length;i\\\\u003cr;i++){var o=this.colorStops[i].color,s=this.colorStops[i].opacity,a=this.colorStops[i].offset;void 0!==s\\\\u0026\\\\u0026(o=new T.Color(o).setAlpha(s).toRgba()),e.addColorStop(a,o)}return e}}}),T.util.object.extend(T.Gradient,{fromElement:function(e,i,r,n){var o=parseFloat(r)/(/%$/.test(r)?100:1);o=o\\\\u003c0?0:o\\\\u003e1?1:o,isNaN(o)\\\\u0026\\\\u0026(o=1);var s,a,h,c,l=e.getElementsByTagName(\\\\\\\"stop\\\\\\\"),u=\\\\\\\"userSpaceOnUse\\\\\\\"===e.getAttribute(\\\\\\\"gradientUnits\\\\\\\")?\\\\\\\"pixels\\\\\\\":\\\\\\\"percentage\\\\\\\",f=e.getAttribute(\\\\\\\"gradientTransform\\\\\\\")||\\\\\\\"\\\\\\\",d=[],g=0,p=0;for(\\\\\\\"linearGradient\\\\\\\"===e.nodeName||\\\\\\\"LINEARGRADIENT\\\\\\\"===e.nodeName?(s=\\\\\\\"linear\\\\\\\",a=function(t){return{x1:t.getAttribute(\\\\\\\"x1\\\\\\\")||0,y1:t.getAttribute(\\\\\\\"y1\\\\\\\")||0,x2:t.getAttribute(\\\\\\\"x2\\\\\\\")||\\\\\\\"100%\\\\\\\",y2:t.getAttribute(\\\\\\\"y2\\\\\\\")||0}}(e)):(s=\\\\\\\"radial\\\\\\\",a=function(t){return{x1:t.getAttribute(\\\\\\\"fx\\\\\\\")||t.getAttribute(\\\\\\\"cx\\\\\\\")||\\\\\\\"50%\\\\\\\",y1:t.getAttribute(\\\\\\\"fy\\\\\\\")||t.getAttribute(\\\\\\\"cy\\\\\\\")||\\\\\\\"50%\\\\\\\",r1:0,x2:t.getAttribute(\\\\\\\"cx\\\\\\\")||\\\\\\\"50%\\\\\\\",y2:t.getAttribute(\\\\\\\"cy\\\\\\\")||\\\\\\\"50%\\\\\\\",r2:t.getAttribute(\\\\\\\"r\\\\\\\")||\\\\\\\"50%\\\\\\\"}}(e)),h=l.length;h--;)d.push(t(l[h],o));return c=T.parseTransformAttribute(f),function(t,e,i,r){var n,o;Object.keys(e).forEach((function(t){\\\\\\\"Infinity\\\\\\\"===(n=e[t])?o=1:\\\\\\\"-Infinity\\\\\\\"===n?o=0:(o=parseFloat(e[t],10),\\\\\\\"string\\\\\\\"==typeof n\\\\u0026\\\\u0026/^(\\\\\\\\d+\\\\\\\\.\\\\\\\\d+)%|(\\\\\\\\d+)%$/.test(n)\\\\u0026\\\\u0026(o*=.01,\\\\\\\"pixels\\\\\\\"===r\\\\u0026\\\\u0026(\\\\\\\"x1\\\\\\\"!==t\\\\u0026\\\\u0026\\\\\\\"x2\\\\\\\"!==t\\\\u0026\\\\u0026\\\\\\\"r2\\\\\\\"!==t||(o*=i.viewBoxWidth||i.width),\\\\\\\"y1\\\\\\\"!==t\\\\u0026\\\\u0026\\\\\\\"y2\\\\\\\"!==t||(o*=i.viewBoxHeight||i.height)))),e[t]=o}))}(0,a,n,u),\\\\\\\"pixels\\\\\\\"===u\\\\u0026\\\\u0026(g=-i.left,p=-i.top),new T.Gradient({id:e.getAttribute(\\\\\\\"id\\\\\\\"),type:s,coords:a,colorStops:d,gradientUnits:u,gradientTransform:c,offsetX:g,offsetY:p})}})}(),_=T.util.toFixed,T.Pattern=T.util.createClass({repeat:\\\\\\\"repeat\\\\\\\",offsetX:0,offsetY:0,crossOrigin:\\\\\\\"\\\\\\\",patternTransform:null,initialize:function(t,e){if(t||(t={}),this.id=T.Object.__uid++,this.setOptions(t),!t.source||t.source\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"!=typeof t.source)e\\\\u0026\\\\u0026e(this);else{var i=this;this.source=T.util.createImage(),T.util.loadImage(t.source,(function(t,r){i.source=t,e\\\\u0026\\\\u0026e(i,r)}),null,this.crossOrigin)}},toObject:function(t){var e,i,r=T.Object.NUM_FRACTION_DIGITS;return\\\\\\\"string\\\\\\\"==typeof this.source.src?e=this.source.src:\\\\\\\"object\\\\\\\"==typeof this.source\\\\u0026\\\\u0026this.source.toDataURL\\\\u0026\\\\u0026(e=this.source.toDataURL()),i={type:\\\\\\\"pattern\\\\\\\",source:e,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:_(this.offsetX,r),offsetY:_(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},T.util.populateWithProperties(this,i,t),i},toSVG:function(t){var e=\\\\\\\"function\\\\\\\"==typeof this.source?this.source():this.source,i=e.width/t.width,r=e.height/t.height,n=this.offsetX/t.width,o=this.offsetY/t.height,s=\\\\\\\"\\\\\\\";return\\\\\\\"repeat-x\\\\\\\"!==this.repeat\\\\u0026\\\\u0026\\\\\\\"no-repeat\\\\\\\"!==this.repeat||(r=1,o\\\\u0026\\\\u0026(r+=Math.abs(o))),\\\\\\\"repeat-y\\\\\\\"!==this.repeat\\\\u0026\\\\u0026\\\\\\\"no-repeat\\\\\\\"!==this.repeat||(i=1,n\\\\u0026\\\\u0026(i+=Math.abs(n))),e.src?s=e.src:e.toDataURL\\\\u0026\\\\u0026(s=e.toDataURL()),'\\\\u003cpattern id=\\\\\\\"SVGID_'+this.id+'\\\\\\\" x=\\\\\\\"'+n+'\\\\\\\" y=\\\\\\\"'+o+'\\\\\\\" width=\\\\\\\"'+i+'\\\\\\\" height=\\\\\\\"'+r+'\\\\\\\"\\\\u003e\\\\\\\\n\\\\u003cimage x=\\\\\\\"0\\\\\\\" y=\\\\\\\"0\\\\\\\" width=\\\\\\\"'+e.width+'\\\\\\\" height=\\\\\\\"'+e.height+'\\\\\\\" xlink:href=\\\\\\\"'+s+'\\\\\\\"\\\\u003e\\\\u003c/image\\\\u003e\\\\\\\\n\\\\u003c/pattern\\\\u003e\\\\\\\\n'},setOptions:function(t){for(var e in t)this[e]=t[e]},toLive:function(t){var e=this.source;if(!e)return\\\\\\\"\\\\\\\";if(void 0!==e.src){if(!e.complete)return\\\\\\\"\\\\\\\";if(0===e.naturalWidth||0===e.naturalHeight)return\\\\\\\"\\\\\\\"}return t.createPattern(e,this.repeat)}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.toFixed;e.Shadow?e.warn(\\\\\\\"fabric.Shadow is already defined.\\\\\\\"):(e.Shadow=e.util.createClass({color:\\\\\\\"rgb(0,0,0)\\\\\\\",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(t){for(var i in\\\\\\\"string\\\\\\\"==typeof t\\\\u0026\\\\u0026(t=this._parseShadow(t)),t)this[i]=t[i];this.id=e.Object.__uid++},_parseShadow:function(t){var i=t.trim(),r=e.Shadow.reOffsetsAndBlur.exec(i)||[];return{color:(i.replace(e.Shadow.reOffsetsAndBlur,\\\\\\\"\\\\\\\")||\\\\\\\"rgb(0,0,0)\\\\\\\").trim(),offsetX:parseFloat(r[1],10)||0,offsetY:parseFloat(r[2],10)||0,blur:parseFloat(r[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join(\\\\\\\"px \\\\\\\")},toSVG:function(t){var r=40,n=40,o=e.Object.NUM_FRACTION_DIGITS,s=e.util.rotateVector({x:this.offsetX,y:this.offsetY},e.util.degreesToRadians(-t.angle)),a=new e.Color(this.color);return t.width\\\\u0026\\\\u0026t.height\\\\u0026\\\\u0026(r=100*i((Math.abs(s.x)+this.blur)/t.width,o)+20,n=100*i((Math.abs(s.y)+this.blur)/t.height,o)+20),t.flipX\\\\u0026\\\\u0026(s.x*=-1),t.flipY\\\\u0026\\\\u0026(s.y*=-1),'\\\\u003cfilter id=\\\\\\\"SVGID_'+this.id+'\\\\\\\" y=\\\\\\\"-'+n+'%\\\\\\\" height=\\\\\\\"'+(100+2*n)+'%\\\\\\\" x=\\\\\\\"-'+r+'%\\\\\\\" width=\\\\\\\"'+(100+2*r)+'%\\\\\\\" \\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeGaussianBlur in=\\\\\\\"SourceAlpha\\\\\\\" stdDeviation=\\\\\\\"'+i(this.blur?this.blur/2:0,o)+'\\\\\\\"\\\\u003e\\\\u003c/feGaussianBlur\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeOffset dx=\\\\\\\"'+i(s.x,o)+'\\\\\\\" dy=\\\\\\\"'+i(s.y,o)+'\\\\\\\" result=\\\\\\\"oBlur\\\\\\\" \\\\u003e\\\\u003c/feOffset\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeFlood flood-color=\\\\\\\"'+a.toRgb()+'\\\\\\\" flood-opacity=\\\\\\\"'+a.getAlpha()+'\\\\\\\"/\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeComposite in2=\\\\\\\"oBlur\\\\\\\" operator=\\\\\\\"in\\\\\\\" /\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003cfeMerge\\\\u003e\\\\\\\\n\\\\\\\\t\\\\\\\\t\\\\u003cfeMergeNode\\\\u003e\\\\u003c/feMergeNode\\\\u003e\\\\\\\\n\\\\\\\\t\\\\\\\\t\\\\u003cfeMergeNode in=\\\\\\\"SourceGraphic\\\\\\\"\\\\u003e\\\\u003c/feMergeNode\\\\u003e\\\\\\\\n\\\\\\\\t\\\\u003c/feMerge\\\\u003e\\\\\\\\n\\\\u003c/filter\\\\u003e\\\\\\\\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var t={},i=e.Shadow.prototype;return[\\\\\\\"color\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"offsetX\\\\\\\",\\\\\\\"offsetY\\\\\\\",\\\\\\\"affectStroke\\\\\\\",\\\\\\\"nonScaling\\\\\\\"].forEach((function(e){this[e]!==i[e]\\\\u0026\\\\u0026(t[e]=this[e])}),this),t}}),e.Shadow.reOffsetsAndBlur=/(?:\\\\\\\\s|^)(-?\\\\\\\\d+(?:\\\\\\\\.\\\\\\\\d*)?(?:px)?(?:\\\\\\\\s?|$))?(-?\\\\\\\\d+(?:\\\\\\\\.\\\\\\\\d*)?(?:px)?(?:\\\\\\\\s?|$))?(\\\\\\\\d+(?:\\\\\\\\.\\\\\\\\d*)?(?:px)?)?(?:\\\\\\\\s?|$)(?:$|\\\\\\\\s)/)}(t),function(){if(T.StaticCanvas)T.warn(\\\\\\\"fabric.StaticCanvas is already defined.\\\\\\\");else{var t=T.util.object.extend,e=T.util.getElementOffset,i=T.util.removeFromArray,r=T.util.toFixed,n=T.util.transformPoint,o=T.util.invertTransform,s=T.util.getNodeCanvas,a=T.util.createCanvasElement,h=new Error(\\\\\\\"Could not initialize `canvas` element\\\\\\\");T.StaticCanvas=T.util.createClass(T.CommonMethods,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e)},backgroundColor:\\\\\\\"\\\\\\\",backgroundImage:null,overlayColor:\\\\\\\"\\\\\\\",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:T.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(t,e){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(t),this._initOptions(e),this.interactive||this._initRetinaScaling(),e.overlayImage\\\\u0026\\\\u0026this.setOverlayImage(e.overlayImage,i),e.backgroundImage\\\\u0026\\\\u0026this.setBackgroundImage(e.backgroundImage,i),e.backgroundColor\\\\u0026\\\\u0026this.setBackgroundColor(e.backgroundColor,i),e.overlayColor\\\\u0026\\\\u0026this.setOverlayColor(e.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return 1!==T.devicePixelRatio\\\\u0026\\\\u0026this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?T.devicePixelRatio:1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var t=T.devicePixelRatio;this.__initRetinaScaling(t,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl\\\\u0026\\\\u0026this.__initRetinaScaling(t,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(t,e,i){e.setAttribute(\\\\\\\"width\\\\\\\",this.width*t),e.setAttribute(\\\\\\\"height\\\\\\\",this.height*t),i.scale(t,t)},calcOffset:function(){return this._offset=e(this.lowerCanvasEl),this},setOverlayImage:function(t,e,i){return this.__setBgOverlayImage(\\\\\\\"overlayImage\\\\\\\",t,e,i)},setBackgroundImage:function(t,e,i){return this.__setBgOverlayImage(\\\\\\\"backgroundImage\\\\\\\",t,e,i)},setOverlayColor:function(t,e){return this.__setBgOverlayColor(\\\\\\\"overlayColor\\\\\\\",t,e)},setBackgroundColor:function(t,e){return this.__setBgOverlayColor(\\\\\\\"backgroundColor\\\\\\\",t,e)},__setBgOverlayImage:function(t,e,i,r){return\\\\\\\"string\\\\\\\"==typeof e?T.util.loadImage(e,(function(e,n){if(e){var o=new T.Image(e,r);this[t]=o,o.canvas=this}i\\\\u0026\\\\u0026i(e,n)}),this,r\\\\u0026\\\\u0026r.crossOrigin):(r\\\\u0026\\\\u0026e.setOptions(r),this[t]=e,e\\\\u0026\\\\u0026(e.canvas=this),i\\\\u0026\\\\u0026i(e,!1)),this},__setBgOverlayColor:function(t,e,i){return this[t]=e,this._initGradient(e,t),this._initPattern(e,t,i),this},_createCanvasElement:function(){var t=a();if(!t)throw h;if(t.style||(t.style={}),void 0===t.getContext)throw h;return t},_initOptions:function(t){var e=this.lowerCanvasEl;this._setOptions(t),this.width=this.width||parseInt(e.width,10)||0,this.height=this.height||parseInt(e.height,10)||0,this.lowerCanvasEl.style\\\\u0026\\\\u0026(e.width=this.width,e.height=this.height,e.style.width=this.width+\\\\\\\"px\\\\\\\",e.style.height=this.height+\\\\\\\"px\\\\\\\",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(t){t\\\\u0026\\\\u0026t.getContext?this.lowerCanvasEl=t:this.lowerCanvasEl=T.util.getById(t)||this._createCanvasElement(),T.util.addClass(this.lowerCanvasEl,\\\\\\\"lower-canvas\\\\\\\"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive\\\\u0026\\\\u0026this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext(\\\\\\\"2d\\\\\\\")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(t,e){return this.setDimensions({width:t},e)},setHeight:function(t,e){return this.setDimensions({height:t},e)},setDimensions:function(t,e){var i;for(var r in e=e||{},t)i=t[r],e.cssOnly||(this._setBackstoreDimension(r,t[r]),i+=\\\\\\\"px\\\\\\\",this.hasLostContext=!0),e.backstoreOnly||this._setCssDimension(r,i);return this._isCurrentlyDrawing\\\\u0026\\\\u0026this.freeDrawingBrush\\\\u0026\\\\u0026this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this.calcOffset(),e.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(t,e){return this.lowerCanvasEl[t]=e,this.upperCanvasEl\\\\u0026\\\\u0026(this.upperCanvasEl[t]=e),this.cacheCanvasEl\\\\u0026\\\\u0026(this.cacheCanvasEl[t]=e),this[t]=e,this},_setCssDimension:function(t,e){return this.lowerCanvasEl.style[t]=e,this.upperCanvasEl\\\\u0026\\\\u0026(this.upperCanvasEl.style[t]=e),this.wrapperEl\\\\u0026\\\\u0026(this.wrapperEl.style[t]=e),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(t){var e,i,r,n=this._activeObject,o=this.backgroundImage,s=this.overlayImage;for(this.viewportTransform=t,i=0,r=this._objects.length;i\\\\u003cr;i++)(e=this._objects[i]).group||e.setCoords(!0);return n\\\\u0026\\\\u0026n.setCoords(),o\\\\u0026\\\\u0026o.setCoords(!0),s\\\\u0026\\\\u0026s.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},zoomToPoint:function(t,e){var i=t,r=this.viewportTransform.slice(0);t=n(t,o(this.viewportTransform)),r[0]=e,r[3]=e;var s=n(t,r);return r[4]+=i.x-s.x,r[5]+=i.y-s.y,this.setViewportTransform(r)},setZoom:function(t){return this.zoomToPoint(new T.Point(0,0),t),this},absolutePan:function(t){var e=this.viewportTransform.slice(0);return e[4]=-t.x,e[5]=-t.y,this.setViewportTransform(e)},relativePan:function(t){return this.absolutePan(new T.Point(-t.x-this.viewportTransform[4],-t.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(t){this.stateful\\\\u0026\\\\u0026t.setupState(),t._set(\\\\\\\"canvas\\\\\\\",this),t.setCoords(),this.fire(\\\\\\\"object:added\\\\\\\",{target:t}),t.fire(\\\\\\\"added\\\\\\\")},_onObjectRemoved:function(t){this.fire(\\\\\\\"object:removed\\\\\\\",{target:t}),t.fire(\\\\\\\"removed\\\\\\\"),delete t.canvas},clearContext:function(t){return t.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor=\\\\\\\"\\\\\\\",this.overlayColor=\\\\\\\"\\\\\\\",this._hasITextHandlers\\\\u0026\\\\u0026(this.off(\\\\\\\"mouse:up\\\\\\\",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire(\\\\\\\"canvas:cleared\\\\\\\"),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},renderAll:function(){var t=this.contextContainer;return this.renderCanvas(t,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=T.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var t={},e=this.width,i=this.height,r=o(this.viewportTransform);return t.tl=n({x:0,y:0},r),t.br=n({x:e,y:i},r),t.tr=new T.Point(t.br.x,t.tl.y),t.bl=new T.Point(t.tl.x,t.br.y),this.vptCoords=t,t},cancelRequestedRender:function(){this.isRendering\\\\u0026\\\\u0026(T.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(t,e){var i=this.viewportTransform,r=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(t),T.util.setImageSmoothing(t,this.imageSmoothingEnabled),this.fire(\\\\\\\"before:render\\\\\\\",{ctx:t}),this._renderBackground(t),t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(t,e),t.restore(),!this.controlsAboveOverlay\\\\u0026\\\\u0026this.interactive\\\\u0026\\\\u0026this.drawControls(t),r\\\\u0026\\\\u0026(r.canvas=this,r.shouldCache(),r._transformDone=!0,r.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(t)),this._renderOverlay(t),this.controlsAboveOverlay\\\\u0026\\\\u0026this.interactive\\\\u0026\\\\u0026this.drawControls(t),this.fire(\\\\\\\"after:render\\\\\\\",{ctx:t})},drawClipPathOnCanvas:function(t){var e=this.viewportTransform,i=this.clipPath;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t.globalCompositeOperation=\\\\\\\"destination-in\\\\\\\",i.transform(t),t.scale(1/i.zoomX,1/i.zoomY),t.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),t.restore()},_renderObjects:function(t,e){var i,r;for(i=0,r=e.length;i\\\\u003cr;++i)e[i]\\\\u0026\\\\u0026e[i].render(t)},_renderBackgroundOrOverlay:function(t,e){var i=this[e+\\\\\\\"Color\\\\\\\"],r=this[e+\\\\\\\"Image\\\\\\\"],n=this.viewportTransform,o=this[e+\\\\\\\"Vpt\\\\\\\"];if(i||r){if(i){t.save(),t.beginPath(),t.moveTo(0,0),t.lineTo(this.width,0),t.lineTo(this.width,this.height),t.lineTo(0,this.height),t.closePath(),t.fillStyle=i.toLive?i.toLive(t,this):i,o\\\\u0026\\\\u0026t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var s=i.gradientTransform||i.patternTransform;s\\\\u0026\\\\u0026t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),t.fill(),t.restore()}r\\\\u0026\\\\u0026(t.save(),o\\\\u0026\\\\u0026t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),r.render(t),t.restore())}},_renderBackground:function(t){this._renderBackgroundOrOverlay(t,\\\\\\\"background\\\\\\\")},_renderOverlay:function(t){this._renderBackgroundOrOverlay(t,\\\\\\\"overlay\\\\\\\")},getCenter:function(){return{top:this.height/2,left:this.width/2}},centerObjectH:function(t){return this._centerObject(t,new T.Point(this.getCenter().left,t.getCenterPoint().y))},centerObjectV:function(t){return this._centerObject(t,new T.Point(t.getCenterPoint().x,this.getCenter().top))},centerObject:function(t){var e=this.getCenter();return this._centerObject(t,new T.Point(e.left,e.top))},viewportCenterObject:function(t){var e=this.getVpCenter();return this._centerObject(t,e)},viewportCenterObjectH:function(t){var e=this.getVpCenter();return this._centerObject(t,new T.Point(e.x,t.getCenterPoint().y)),this},viewportCenterObjectV:function(t){var e=this.getVpCenter();return this._centerObject(t,new T.Point(t.getCenterPoint().x,e.y))},getVpCenter:function(){var t=this.getCenter(),e=o(this.viewportTransform);return n({x:t.left,y:t.top},e)},_centerObject:function(t,e){return t.setPositionByOrigin(e,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\"),t.setCoords(),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},toDatalessJSON:function(t){return this.toDatalessObject(t)},toObject:function(t){return this._toObjectMethod(\\\\\\\"toObject\\\\\\\",t)},toDatalessObject:function(t){return this._toObjectMethod(\\\\\\\"toDatalessObject\\\\\\\",t)},_toObjectMethod:function(e,i){var r=this.clipPath,n={version:T.version,objects:this._toObjects(e,i)};return r\\\\u0026\\\\u0026!r.excludeFromExport\\\\u0026\\\\u0026(n.clipPath=this._toObject(this.clipPath,e,i)),t(n,this.__serializeBgOverlay(e,i)),T.util.populateWithProperties(this,n,i),n},_toObjects:function(t,e){return this._objects.filter((function(t){return!t.excludeFromExport})).map((function(i){return this._toObject(i,t,e)}),this)},_toObject:function(t,e,i){var r;this.includeDefaultValues||(r=t.includeDefaultValues,t.includeDefaultValues=!1);var n=t[e](i);return this.includeDefaultValues||(t.includeDefaultValues=r),n},__serializeBgOverlay:function(t,e){var i={},r=this.backgroundImage,n=this.overlayImage,o=this.backgroundColor,s=this.overlayColor;return o\\\\u0026\\\\u0026o.toObject?o.excludeFromExport||(i.background=o.toObject(e)):o\\\\u0026\\\\u0026(i.background=o),s\\\\u0026\\\\u0026s.toObject?s.excludeFromExport||(i.overlay=s.toObject(e)):s\\\\u0026\\\\u0026(i.overlay=s),r\\\\u0026\\\\u0026!r.excludeFromExport\\\\u0026\\\\u0026(i.backgroundImage=this._toObject(r,t,e)),n\\\\u0026\\\\u0026!n.excludeFromExport\\\\u0026\\\\u0026(i.overlayImage=this._toObject(n,t,e)),i},svgViewportTransformation:!0,toSVG:function(t,e){t||(t={}),t.reviver=e;var i=[];return this._setSVGPreamble(i,t),this._setSVGHeader(i,t),this.clipPath\\\\u0026\\\\u0026i.push('\\\\u003cg clip-path=\\\\\\\"url(#'+this.clipPath.clipPathId+')\\\\\\\" \\\\u003e\\\\\\\\n'),this._setSVGBgOverlayColor(i,\\\\\\\"background\\\\\\\"),this._setSVGBgOverlayImage(i,\\\\\\\"backgroundImage\\\\\\\",e),this._setSVGObjects(i,e),this.clipPath\\\\u0026\\\\u0026i.push(\\\\\\\"\\\\u003c/g\\\\u003e\\\\\\\\n\\\\\\\"),this._setSVGBgOverlayColor(i,\\\\\\\"overlay\\\\\\\"),this._setSVGBgOverlayImage(i,\\\\\\\"overlayImage\\\\\\\",e),i.push(\\\\\\\"\\\\u003c/svg\\\\u003e\\\\\\\"),i.join(\\\\\\\"\\\\\\\")},_setSVGPreamble:function(t,e){e.suppressPreamble||t.push('\\\\u003c?xml version=\\\\\\\"1.0\\\\\\\" encoding=\\\\\\\"',e.encoding||\\\\\\\"UTF-8\\\\\\\",'\\\\\\\" standalone=\\\\\\\"no\\\\\\\" ?\\\\u003e\\\\\\\\n','\\\\u003c!DOCTYPE svg PUBLIC \\\\\\\"-//W3C//DTD SVG 1.1//EN\\\\\\\" ','\\\\\\\"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\\\\\\\"\\\\u003e\\\\\\\\n')},_setSVGHeader:function(t,e){var i,n=e.width||this.width,o=e.height||this.height,s='viewBox=\\\\\\\"0 0 '+this.width+\\\\\\\" \\\\\\\"+this.height+'\\\\\\\" ',a=T.Object.NUM_FRACTION_DIGITS;e.viewBox?s='viewBox=\\\\\\\"'+e.viewBox.x+\\\\\\\" \\\\\\\"+e.viewBox.y+\\\\\\\" \\\\\\\"+e.viewBox.width+\\\\\\\" \\\\\\\"+e.viewBox.height+'\\\\\\\" ':this.svgViewportTransformation\\\\u0026\\\\u0026(i=this.viewportTransform,s='viewBox=\\\\\\\"'+r(-i[4]/i[0],a)+\\\\\\\" \\\\\\\"+r(-i[5]/i[3],a)+\\\\\\\" \\\\\\\"+r(this.width/i[0],a)+\\\\\\\" \\\\\\\"+r(this.height/i[3],a)+'\\\\\\\" '),t.push(\\\\\\\"\\\\u003csvg \\\\\\\",'xmlns=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\" ','xmlns:xlink=\\\\\\\"http://www.w3.org/1999/xlink\\\\\\\" ','version=\\\\\\\"1.1\\\\\\\" ','width=\\\\\\\"',n,'\\\\\\\" ','height=\\\\\\\"',o,'\\\\\\\" ',s,'xml:space=\\\\\\\"preserve\\\\\\\"\\\\u003e\\\\\\\\n',\\\\\\\"\\\\u003cdesc\\\\u003eCreated with Fabric.js \\\\\\\",T.version,\\\\\\\"\\\\u003c/desc\\\\u003e\\\\\\\\n\\\\\\\",\\\\\\\"\\\\u003cdefs\\\\u003e\\\\\\\\n\\\\\\\",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(e),\\\\\\\"\\\\u003c/defs\\\\u003e\\\\\\\\n\\\\\\\")},createSVGClipPathMarkup:function(t){var e=this.clipPath;return e?(e.clipPathId=\\\\\\\"CLIPPATH_\\\\\\\"+T.Object.__uid++,'\\\\u003cclipPath id=\\\\\\\"'+e.clipPathId+'\\\\\\\" \\\\u003e\\\\\\\\n'+this.clipPath.toClipPathSVG(t.reviver)+\\\\\\\"\\\\u003c/clipPath\\\\u003e\\\\\\\\n\\\\\\\"):\\\\\\\"\\\\\\\"},createSVGRefElementsMarkup:function(){var t=this;return[\\\\\\\"background\\\\\\\",\\\\\\\"overlay\\\\\\\"].map((function(e){var i=t[e+\\\\\\\"Color\\\\\\\"];if(i\\\\u0026\\\\u0026i.toLive){var r=t[e+\\\\\\\"Vpt\\\\\\\"],n=t.viewportTransform,o={width:t.width/(r?n[0]:1),height:t.height/(r?n[3]:1)};return i.toSVG(o,{additionalTransform:r?T.util.matrixToSVG(n):\\\\\\\"\\\\\\\"})}})).join(\\\\\\\"\\\\\\\")},createSVGFontFacesMarkup:function(){var t,e,i,r,n,o,s,a,h=\\\\\\\"\\\\\\\",c={},l=T.fontPaths,u=[];for(this._objects.forEach((function t(e){u.push(e),e._objects\\\\u0026\\\\u0026e._objects.forEach(t)})),s=0,a=u.length;s\\\\u003ca;s++)if(e=(t=u[s]).fontFamily,-1!==t.type.indexOf(\\\\\\\"text\\\\\\\")\\\\u0026\\\\u0026!c[e]\\\\u0026\\\\u0026l[e]\\\\u0026\\\\u0026(c[e]=!0,t.styles))for(n in i=t.styles)for(o in r=i[n])!c[e=r[o].fontFamily]\\\\u0026\\\\u0026l[e]\\\\u0026\\\\u0026(c[e]=!0);for(var f in c)h+=[\\\\\\\"\\\\\\\\t\\\\\\\\t@font-face {\\\\\\\\n\\\\\\\",\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\\\\\tfont-family: '\\\\\\\",f,\\\\\\\"';\\\\\\\\n\\\\\\\",\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\\\\\tsrc: url('\\\\\\\",l[f],\\\\\\\"');\\\\\\\\n\\\\\\\",\\\\\\\"\\\\\\\\t\\\\\\\\t}\\\\\\\\n\\\\\\\"].join(\\\\\\\"\\\\\\\");return h\\\\u0026\\\\u0026(h=['\\\\\\\\t\\\\u003cstyle type=\\\\\\\"text/css\\\\\\\"\\\\u003e',\\\\\\\"\\\\u003c![CDATA[\\\\\\\\n\\\\\\\",h,\\\\\\\"]]\\\\u003e\\\\\\\",\\\\\\\"\\\\u003c/style\\\\u003e\\\\\\\\n\\\\\\\"].join(\\\\\\\"\\\\\\\")),h},_setSVGObjects:function(t,e){var i,r,n,o=this._objects;for(r=0,n=o.length;r\\\\u003cn;r++)(i=o[r]).excludeFromExport||this._setSVGObject(t,i,e)},_setSVGObject:function(t,e,i){t.push(e.toSVG(i))},_setSVGBgOverlayImage:function(t,e,i){this[e]\\\\u0026\\\\u0026!this[e].excludeFromExport\\\\u0026\\\\u0026this[e].toSVG\\\\u0026\\\\u0026t.push(this[e].toSVG(i))},_setSVGBgOverlayColor:function(t,e){var i=this[e+\\\\\\\"Color\\\\\\\"],r=this.viewportTransform,n=this.width,o=this.height;if(i)if(i.toLive){var s=i.repeat,a=T.util.invertTransform(r),h=this[e+\\\\\\\"Vpt\\\\\\\"]?T.util.matrixToSVG(a):\\\\\\\"\\\\\\\";t.push('\\\\u003crect transform=\\\\\\\"'+h+\\\\\\\" translate(\\\\\\\",n/2,\\\\\\\",\\\\\\\",o/2,')\\\\\\\"',' x=\\\\\\\"',i.offsetX-n/2,'\\\\\\\" y=\\\\\\\"',i.offsetY-o/2,'\\\\\\\" ','width=\\\\\\\"',\\\\\\\"repeat-y\\\\\\\"===s||\\\\\\\"no-repeat\\\\\\\"===s?i.source.width:n,'\\\\\\\" height=\\\\\\\"',\\\\\\\"repeat-x\\\\\\\"===s||\\\\\\\"no-repeat\\\\\\\"===s?i.source.height:o,'\\\\\\\" fill=\\\\\\\"url(#SVGID_'+i.id+')\\\\\\\"',\\\\\\\"\\\\u003e\\\\u003c/rect\\\\u003e\\\\\\\\n\\\\\\\")}else t.push('\\\\u003crect x=\\\\\\\"0\\\\\\\" y=\\\\\\\"0\\\\\\\" width=\\\\\\\"100%\\\\\\\" height=\\\\\\\"100%\\\\\\\" ','fill=\\\\\\\"',i,'\\\\\\\"',\\\\\\\"\\\\u003e\\\\u003c/rect\\\\u003e\\\\\\\\n\\\\\\\")},sendToBack:function(t){if(!t)return this;var e,r,n,o=this._activeObject;if(t===o\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.type)for(e=(n=o._objects).length;e--;)r=n[e],i(this._objects,r),this._objects.unshift(r);else i(this._objects,t),this._objects.unshift(t);return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},bringToFront:function(t){if(!t)return this;var e,r,n,o=this._activeObject;if(t===o\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.type)for(n=o._objects,e=0;e\\\\u003cn.length;e++)r=n[e],i(this._objects,r),this._objects.push(r);else i(this._objects,t),this._objects.push(t);return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},sendBackwards:function(t,e){if(!t)return this;var r,n,o,s,a,h=this._activeObject,c=0;if(t===h\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.type)for(a=h._objects,r=0;r\\\\u003ca.length;r++)n=a[r],(o=this._objects.indexOf(n))\\\\u003e0+c\\\\u0026\\\\u0026(s=o-1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else 0!==(o=this._objects.indexOf(t))\\\\u0026\\\\u0026(s=this._findNewLowerIndex(t,o,e),i(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},_findNewLowerIndex:function(t,e,i){var r,n;if(i)for(r=e,n=e-1;n\\\\u003e=0;--n){if(t.intersectsWithObject(this._objects[n])||t.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(t)){r=n;break}}else r=e-1;return r},bringForward:function(t,e){if(!t)return this;var r,n,o,s,a,h=this._activeObject,c=0;if(t===h\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.type)for(r=(a=h._objects).length;r--;)n=a[r],(o=this._objects.indexOf(n))\\\\u003cthis._objects.length-1-c\\\\u0026\\\\u0026(s=o+1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else(o=this._objects.indexOf(t))!==this._objects.length-1\\\\u0026\\\\u0026(s=this._findNewUpperIndex(t,o,e),i(this._objects,t),this._objects.splice(s,0,t));return this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll(),this},_findNewUpperIndex:function(t,e,i){var r,n,o;if(i)for(r=e,n=e+1,o=this._objects.length;n\\\\u003co;++n){if(t.intersectsWithObject(this._objects[n])||t.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(t)){r=n;break}}else r=e+1;return r},moveTo:function(t,e){return i(this._objects,t),this._objects.splice(e,0,t),this.renderOnAddRemove\\\\u0026\\\\u0026this.requestRenderAll()},dispose:function(){return this.isRendering\\\\u0026\\\\u0026(T.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(t){t.dispose\\\\u0026\\\\u0026t.dispose()})),this._objects=[],this.backgroundImage\\\\u0026\\\\u0026this.backgroundImage.dispose\\\\u0026\\\\u0026this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage\\\\u0026\\\\u0026this.overlayImage.dispose\\\\u0026\\\\u0026this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove(\\\\\\\"lower-canvas\\\\\\\"),this.lowerCanvasEl.style=this._originalCanvasStyle,delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute(\\\\\\\"width\\\\\\\",this.width),this.lowerCanvasEl.setAttribute(\\\\\\\"height\\\\\\\",this.height),T.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return\\\\\\\"#\\\\u003cfabric.Canvas (\\\\\\\"+this.complexity()+\\\\\\\"): { objects: \\\\\\\"+this._objects.length+\\\\\\\" }\\\\u003e\\\\\\\"}}),t(T.StaticCanvas.prototype,T.Observable),t(T.StaticCanvas.prototype,T.Collection),t(T.StaticCanvas.prototype,T.DataURLExporter),t(T.StaticCanvas,{EMPTY_JSON:'{\\\\\\\"objects\\\\\\\": [], \\\\\\\"background\\\\\\\": \\\\\\\"white\\\\\\\"}',supports:function(t){var e=a();if(!e||!e.getContext)return null;var i=e.getContext(\\\\\\\"2d\\\\\\\");return i\\\\u0026\\\\u0026\\\\\\\"setLineDash\\\\\\\"===t?void 0!==i.setLineDash:null}}),T.StaticCanvas.prototype.toJSON=T.StaticCanvas.prototype.toObject,T.isLikelyNode\\\\u0026\\\\u0026(T.StaticCanvas.prototype.createPNGStream=function(){var t=s(this.lowerCanvasEl);return t\\\\u0026\\\\u0026t.createPNGStream()},T.StaticCanvas.prototype.createJPEGStream=function(t){var e=s(this.lowerCanvasEl);return e\\\\u0026\\\\u0026e.createJPEGStream(t)})}}(),T.BaseBrush=T.util.createClass({color:\\\\\\\"rgb(0, 0, 0)\\\\\\\",width:1,shadow:null,strokeLineCap:\\\\\\\"round\\\\\\\",strokeLineJoin:\\\\\\\"round\\\\\\\",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(){var t=this.canvas.contextTop;t.strokeStyle=this.color,t.lineWidth=this.width,t.lineCap=this.strokeLineCap,t.miterLimit=this.strokeMiterLimit,t.lineJoin=this.strokeLineJoin,t.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(t){var e=this.canvas.viewportTransform;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},_setShadow:function(){if(this.shadow){var t=this.canvas,e=this.shadow,i=t.contextTop,r=t.getZoom();t\\\\u0026\\\\u0026t._isRetinaScaling()\\\\u0026\\\\u0026(r*=T.devicePixelRatio),i.shadowColor=e.color,i.shadowBlur=e.blur*r,i.shadowOffsetX=e.offsetX*r,i.shadowOffsetY=e.offsetY*r}},needsFullRender:function(){return new T.Color(this.color).getAlpha()\\\\u003c1||!!this.shadow},_resetShadow:function(){var t=this.canvas.contextTop;t.shadowColor=\\\\\\\"\\\\\\\",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0},_isOutSideCanvas:function(t){return t.x\\\\u003c0||t.x\\\\u003ethis.canvas.getWidth()||t.y\\\\u003c0||t.y\\\\u003ethis.canvas.getHeight()}}),T.PencilBrush=T.util.createClass(T.BaseBrush,{decimate:.4,initialize:function(t){this.canvas=t,this._points=[]},_drawSegment:function(t,e,i){var r=e.midPointFrom(i);return t.quadraticCurveTo(e.x,e.y,r.x,r.y),r},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)\\\\u0026\\\\u0026(this._prepareForDrawing(t),this._captureDrawingPath(t),this._render())},onMouseMove:function(t,e){if(this.canvas._isMainEvent(e.e)\\\\u0026\\\\u0026(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(t))\\\\u0026\\\\u0026this._captureDrawingPath(t)\\\\u0026\\\\u0026this._points.length\\\\u003e1)if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,r=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd\\\\u0026\\\\u0026(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[r-2],i[r-1],!0),n.stroke(),n.restore()}},onMouseUp:function(t){return!this.canvas._isMainEvent(t.e)||(this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(t){var e=new T.Point(t.x,t.y);this._reset(),this._addPoint(e),this.canvas.contextTop.moveTo(e.x,e.y)},_addPoint:function(t){return!(this._points.length\\\\u003e1\\\\u0026\\\\u0026t.eq(this._points[this._points.length-1])||(this._points.push(t),0))},_reset:function(){this._points=[],this._setBrushStyles(),this._setShadow()},_captureDrawingPath:function(t){var e=new T.Point(t.x,t.y);return this._addPoint(e)},_render:function(){var t,e,i=this.canvas.contextTop,r=this._points[0],n=this._points[1];if(this._saveAndTransform(i),i.beginPath(),2===this._points.length\\\\u0026\\\\u0026r.x===n.x\\\\u0026\\\\u0026r.y===n.y){var o=this.width/1e3;r=new T.Point(r.x,r.y),n=new T.Point(n.x,n.y),r.x-=o,n.x+=o}for(i.moveTo(r.x,r.y),t=1,e=this._points.length;t\\\\u003ce;t++)this._drawSegment(i,r,n),r=this._points[t],n=this._points[t+1];i.lineTo(r.x,r.y),i.stroke(),i.restore()},convertPointsToSVGPath:function(t){var e=this.width/1e3;return T.util.getSmoothPathFromPoints(t,e)},_isEmptySVGPath:function(t){return\\\\\\\"M 0 0 Q 0 0 0 0 L 0 0\\\\\\\"===T.util.joinPath(t)},createPath:function(t){var e=new T.Path(t,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow\\\\u0026\\\\u0026(this.shadow.affectStroke=!0,e.shadow=new T.Shadow(this.shadow)),e},decimatePoints:function(t,e){if(t.length\\\\u003c=2)return t;var i,r=this.canvas.getZoom(),n=Math.pow(e/r,2),o=t.length-1,s=t[0],a=[s];for(i=1;i\\\\u003co-1;i++)Math.pow(s.x-t[i].x,2)+Math.pow(s.y-t[i].y,2)\\\\u003e=n\\\\u0026\\\\u0026(s=t[i],a.push(s));return a.push(t[o]),a},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate\\\\u0026\\\\u0026(this._points=this.decimatePoints(this._points,this.decimate));var t=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(t))this.canvas.requestRenderAll();else{var e=this.createPath(t);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire(\\\\\\\"before:path:created\\\\\\\",{path:e}),this.canvas.add(e),this.canvas.requestRenderAll(),e.setCoords(),this._resetShadow(),this.canvas.fire(\\\\\\\"path:created\\\\\\\",{path:e})}}}),T.CircleBrush=T.util.createClass(T.BaseBrush,{width:10,initialize:function(t){this.canvas=t,this.points=[]},drawDot:function(t){var e=this.addPoint(t),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,e),i.restore()},dot:function(t,e){t.fillStyle=e.fill,t.beginPath(),t.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),t.closePath(),t.fill()},onMouseDown:function(t){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(t)},_render:function(){var t,e,i=this.canvas.contextTop,r=this.points;for(this._saveAndTransform(i),t=0,e=r.length;t\\\\u003ce;t++)this.dot(i,r[t]);i.restore()},onMouseMove:function(t){!0===this.limitedToCanvasSize\\\\u0026\\\\u0026this._isOutSideCanvas(t)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(t),this._render()):this.drawDot(t))},onMouseUp:function(){var t,e,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var r=[];for(t=0,e=this.points.length;t\\\\u003ce;t++){var n=this.points[t],o=new T.Circle({radius:n.radius,left:n.x,top:n.y,originX:\\\\\\\"center\\\\\\\",originY:\\\\\\\"center\\\\\\\",fill:n.fill});this.shadow\\\\u0026\\\\u0026(o.shadow=new T.Shadow(this.shadow)),r.push(o)}var s=new T.Group(r);s.canvas=this.canvas,this.canvas.fire(\\\\\\\"before:path:created\\\\\\\",{path:s}),this.canvas.add(s),this.canvas.fire(\\\\\\\"path:created\\\\\\\",{path:s}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(t){var e=new T.Point(t.x,t.y),i=T.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,r=new T.Color(this.color).setAlpha(T.util.getRandomInt(0,100)/100).toRgba();return e.radius=i,e.fill=r,this.points.push(e),e}}),T.SprayBrush=T.util.createClass(T.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(t){this.canvas=t,this.sprayChunks=[]},onMouseDown:function(t){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(t),this.render(this.sprayChunkPoints)},onMouseMove:function(t){!0===this.limitedToCanvasSize\\\\u0026\\\\u0026this._isOutSideCanvas(t)||(this.addSprayChunk(t),this.render(this.sprayChunkPoints))},onMouseUp:function(){var t=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var e=[],i=0,r=this.sprayChunks.length;i\\\\u003cr;i++)for(var n=this.sprayChunks[i],o=0,s=n.length;o\\\\u003cs;o++){var a=new T.Rect({width:n[o].width,height:n[o].width,left:n[o].x+1,top:n[o].y+1,originX:\\\\\\\"center\\\\\\\",originY:\\\\\\\"center\\\\\\\",fill:this.color});e.push(a)}this.optimizeOverlapping\\\\u0026\\\\u0026(e=this._getOptimizedRects(e));var h=new T.Group(e);this.shadow\\\\u0026\\\\u0026h.set(\\\\\\\"shadow\\\\\\\",new T.Shadow(this.shadow)),this.canvas.fire(\\\\\\\"before:path:created\\\\\\\",{path:h}),this.canvas.add(h),this.canvas.fire(\\\\\\\"path:created\\\\\\\",{path:h}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=t,this.canvas.requestRenderAll()},_getOptimizedRects:function(t){var e,i,r,n={};for(i=0,r=t.length;i\\\\u003cr;i++)n[e=t[i].left+\\\\\\\"\\\\\\\"+t[i].top]||(n[e]=t[i]);var o=[];for(e in n)o.push(n[e]);return o},render:function(t){var e,i,r=this.canvas.contextTop;for(r.fillStyle=this.color,this._saveAndTransform(r),e=0,i=t.length;e\\\\u003ci;e++){var n=t[e];void 0!==n.opacity\\\\u0026\\\\u0026(r.globalAlpha=n.opacity),r.fillRect(n.x,n.y,n.width,n.width)}r.restore()},_render:function(){var t,e,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),t=0,e=this.sprayChunks.length;t\\\\u003ce;t++)this.render(this.sprayChunks[t]);i.restore()},addSprayChunk:function(t){this.sprayChunkPoints=[];var e,i,r,n,o=this.width/2;for(n=0;n\\\\u003cthis.density;n++){e=T.util.getRandomInt(t.x-o,t.x+o),i=T.util.getRandomInt(t.y-o,t.y+o),r=this.dotWidthVariance?T.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var s=new T.Point(e,i);s.width=r,this.randomOpacity\\\\u0026\\\\u0026(s.opacity=T.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(s)}this.sprayChunks.push(this.sprayChunkPoints)}}),T.PatternBrush=T.util.createClass(T.PencilBrush,{getPatternSrc:function(){var t=T.util.createCanvasElement(),e=t.getContext(\\\\\\\"2d\\\\\\\");return t.width=t.height=25,e.fillStyle=this.color,e.beginPath(),e.arc(10,10,10,0,2*Math.PI,!1),e.closePath(),e.fill(),t},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace(\\\\\\\"this.color\\\\\\\",'\\\\\\\"'+this.color+'\\\\\\\"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),\\\\\\\"repeat\\\\\\\")},_setBrushStyles:function(){this.callSuper(\\\\\\\"_setBrushStyles\\\\\\\"),this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(t){var e=this.callSuper(\\\\\\\"createPath\\\\\\\",t),i=e._getLeftTopCoords().scalarAdd(e.strokeWidth/2);return e.stroke=new T.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),e}}),function(){var t=T.util.getPointer,e=T.util.degreesToRadians,i=T.util.isTouchEvent;for(var r in T.Canvas=T.util.createClass(T.StaticCanvas,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:\\\\\\\"shiftKey\\\\\\\",centeredScaling:!1,centeredRotation:!1,centeredKey:\\\\\\\"altKey\\\\\\\",altActionKey:\\\\\\\"shiftKey\\\\\\\",interactive:!0,selection:!0,selectionKey:\\\\\\\"shiftKey\\\\\\\",altSelectionKey:null,selectionColor:\\\\\\\"rgba(100, 100, 255, 0.3)\\\\\\\",selectionDashArray:[],selectionBorderColor:\\\\\\\"rgba(255, 255, 255, 0.3)\\\\\\\",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:\\\\\\\"move\\\\\\\",moveCursor:\\\\\\\"move\\\\\\\",defaultCursor:\\\\\\\"default\\\\\\\",freeDrawingCursor:\\\\\\\"crosshair\\\\\\\",rotationCursor:\\\\\\\"crosshair\\\\\\\",notAllowedCursor:\\\\\\\"not-allowed\\\\\\\",containerClass:\\\\\\\"canvas-container\\\\\\\",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=T.PencilBrush\\\\u0026\\\\u0026new T.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var t,e,i,r=this.getActiveObjects();if(r.length\\\\u003e0\\\\u0026\\\\u0026!this.preserveObjectStacking){e=[],i=[];for(var n=0,o=this._objects.length;n\\\\u003co;n++)t=this._objects[n],-1===r.indexOf(t)?e.push(t):i.push(t);r.length\\\\u003e1\\\\u0026\\\\u0026(this._activeObject._objects=i),e.push.apply(e,i)}else e=this._objects;return e},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext\\\\u0026\\\\u0026this.renderTopLayer(this.contextTop);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this},renderTopLayer:function(t){t.save(),this.isDrawingMode\\\\u0026\\\\u0026this._isCurrentlyDrawing\\\\u0026\\\\u0026(this.freeDrawingBrush\\\\u0026\\\\u0026this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection\\\\u0026\\\\u0026this._groupSelector\\\\u0026\\\\u0026(this._drawSelection(t),this.contextTopDirty=!0),t.restore()},renderTop:function(){var t=this.contextTop;return this.clearContext(t),this.renderTopLayer(t),this.fire(\\\\\\\"after:render\\\\\\\"),this},_normalizePointer:function(t,e){var i=t.calcTransformMatrix(),r=T.util.invertTransform(i),n=this.restorePointerVpt(e);return T.util.transformPoint(n,r)},isTargetTransparent:function(t,e,i){if(t.shouldCache()\\\\u0026\\\\u0026t._cacheCanvas\\\\u0026\\\\u0026t!==this._activeObject){var r=this._normalizePointer(t,{x:e,y:i}),n=Math.max(t.cacheTranslationX+r.x*t.zoomX,0),o=Math.max(t.cacheTranslationY+r.y*t.zoomY,0);return T.util.isTransparent(t._cacheContext,Math.round(n),Math.round(o),this.targetFindTolerance)}var s=this.contextCache,a=t.selectionBackgroundColor,h=this.viewportTransform;return t.selectionBackgroundColor=\\\\\\\"\\\\\\\",this.clearContext(s),s.save(),s.transform(h[0],h[1],h[2],h[3],h[4],h[5]),t.render(s),s.restore(),t.selectionBackgroundColor=a,T.util.isTransparent(s,e,i,this.targetFindTolerance)},_isSelectionKeyPressed:function(t){return\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(this.selectionKey)?!!this.selectionKey.find((function(e){return!0===t[e]})):t[this.selectionKey]},_shouldClearSelection:function(t,e){var i=this.getActiveObjects(),r=this._activeObject;return!e||e\\\\u0026\\\\u0026r\\\\u0026\\\\u0026i.length\\\\u003e1\\\\u0026\\\\u0026-1===i.indexOf(e)\\\\u0026\\\\u0026r!==e\\\\u0026\\\\u0026!this._isSelectionKeyPressed(t)||e\\\\u0026\\\\u0026!e.evented||e\\\\u0026\\\\u0026!e.selectable\\\\u0026\\\\u0026r\\\\u0026\\\\u0026r!==e},_shouldCenterTransform:function(t,e,i){var r;if(t)return\\\\\\\"scale\\\\\\\"===e||\\\\\\\"scaleX\\\\\\\"===e||\\\\\\\"scaleY\\\\\\\"===e||\\\\\\\"resizing\\\\\\\"===e?r=this.centeredScaling||t.centeredScaling:\\\\\\\"rotate\\\\\\\"===e\\\\u0026\\\\u0026(r=this.centeredRotation||t.centeredRotation),r?!i:i},_getOriginFromCorner:function(t,e){var i={x:t.originX,y:t.originY};return\\\\\\\"ml\\\\\\\"===e||\\\\\\\"tl\\\\\\\"===e||\\\\\\\"bl\\\\\\\"===e?i.x=\\\\\\\"right\\\\\\\":\\\\\\\"mr\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"tr\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"br\\\\\\\"!==e||(i.x=\\\\\\\"left\\\\\\\"),\\\\\\\"tl\\\\\\\"===e||\\\\\\\"mt\\\\\\\"===e||\\\\\\\"tr\\\\\\\"===e?i.y=\\\\\\\"bottom\\\\\\\":\\\\\\\"bl\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"mb\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"br\\\\\\\"!==e||(i.y=\\\\\\\"top\\\\\\\"),i},_getActionFromCorner:function(t,e,i,r){if(!e||!t)return\\\\\\\"drag\\\\\\\";var n=r.controls[e];return n.getActionName(i,n,r)},_setupCurrentTransform:function(t,i,r){if(i){var n=this.getPointer(t),o=i.__corner,s=i.controls[o],a=r\\\\u0026\\\\u0026o?s.getActionHandler(t,i,s):T.controlsUtils.dragHandler,h=this._getActionFromCorner(r,o,t,i),c=this._getOriginFromCorner(i,o),l=t[this.centeredKey],u={target:i,action:h,actionHandler:a,corner:o,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:n.x-i.left,offsetY:n.y-i.top,originX:c.x,originY:c.y,ex:n.x,ey:n.y,lastX:n.x,lastY:n.y,theta:e(i.angle),width:i.width*i.scaleX,shiftKey:t.shiftKey,altKey:l,original:T.util.saveObjectTransform(i)};this._shouldCenterTransform(i,h,l)\\\\u0026\\\\u0026(u.originX=\\\\\\\"center\\\\\\\",u.originY=\\\\\\\"center\\\\\\\"),u.original.originX=c.x,u.original.originY=c.y,this._currentTransform=u,this._beforeTransform(t)}},setCursor:function(t){this.upperCanvasEl.style.cursor=t},_drawSelection:function(t){var e=this._groupSelector,i=new T.Point(e.ex,e.ey),r=T.util.transformPoint(i,this.viewportTransform),n=new T.Point(e.ex+e.left,e.ey+e.top),o=T.util.transformPoint(n,this.viewportTransform),s=Math.min(r.x,o.x),a=Math.min(r.y,o.y),h=Math.max(r.x,o.x),c=Math.max(r.y,o.y),l=this.selectionLineWidth/2;this.selectionColor\\\\u0026\\\\u0026(t.fillStyle=this.selectionColor,t.fillRect(s,a,h-s,c-a)),this.selectionLineWidth\\\\u0026\\\\u0026this.selectionBorderColor\\\\u0026\\\\u0026(t.lineWidth=this.selectionLineWidth,t.strokeStyle=this.selectionBorderColor,s+=l,a+=l,h-=l,c-=l,T.Object.prototype._setLineDash.call(this,t,this.selectionDashArray),t.strokeRect(s,a,h-s,c-a))},findTarget:function(t,e){if(!this.skipTargetFind){var r,n,o=this.getPointer(t,!0),s=this._activeObject,a=this.getActiveObjects(),h=i(t),c=a.length\\\\u003e1\\\\u0026\\\\u0026!e||1===a.length;if(this.targets=[],c\\\\u0026\\\\u0026s._findTargetCorner(o,h))return s;if(a.length\\\\u003e1\\\\u0026\\\\u0026!e\\\\u0026\\\\u0026s===this._searchPossibleTargets([s],o))return s;if(1===a.length\\\\u0026\\\\u0026s===this._searchPossibleTargets([s],o)){if(!this.preserveObjectStacking)return s;r=s,n=this.targets,this.targets=[]}var l=this._searchPossibleTargets(this._objects,o);return t[this.altSelectionKey]\\\\u0026\\\\u0026l\\\\u0026\\\\u0026r\\\\u0026\\\\u0026l!==r\\\\u0026\\\\u0026(l=r,this.targets=n),l}},_checkTarget:function(t,e,i){if(e\\\\u0026\\\\u0026e.visible\\\\u0026\\\\u0026e.evented\\\\u0026\\\\u0026e.containsPoint(t)){if(!this.perPixelTargetFind\\\\u0026\\\\u0026!e.perPixelTargetFind||e.isEditing)return!0;if(!this.isTargetTransparent(e,i.x,i.y))return!0}},_searchPossibleTargets:function(t,e){for(var i,r,n=t.length;n--;){var o=t[n],s=o.group?this._normalizePointer(o.group,e):e;if(this._checkTarget(s,o,e)){(i=t[n]).subTargetCheck\\\\u0026\\\\u0026i instanceof T.Group\\\\u0026\\\\u0026(r=this._searchPossibleTargets(i._objects,e))\\\\u0026\\\\u0026this.targets.push(r);break}}return i},restorePointerVpt:function(t){return T.util.transformPoint(t,T.util.invertTransform(this.viewportTransform))},getPointer:function(e,i){if(this._absolutePointer\\\\u0026\\\\u0026!i)return this._absolutePointer;if(this._pointer\\\\u0026\\\\u0026i)return this._pointer;var r,n=t(e),o=this.upperCanvasEl,s=o.getBoundingClientRect(),a=s.width||0,h=s.height||0;a\\\\u0026\\\\u0026h||(\\\\\\\"top\\\\\\\"in s\\\\u0026\\\\u0026\\\\\\\"bottom\\\\\\\"in s\\\\u0026\\\\u0026(h=Math.abs(s.top-s.bottom)),\\\\\\\"right\\\\\\\"in s\\\\u0026\\\\u0026\\\\\\\"left\\\\\\\"in s\\\\u0026\\\\u0026(a=Math.abs(s.right-s.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var c=this.getRetinaScaling();return 1!==c\\\\u0026\\\\u0026(n.x/=c,n.y/=c),r=0===a||0===h?{width:1,height:1}:{width:o.width/a,height:o.height/h},{x:n.x*r.width,y:n.y*r.height}},_createUpperCanvas:function(){var t=this.lowerCanvasEl.className.replace(/\\\\\\\\s*lower-canvas\\\\\\\\s*/,\\\\\\\"\\\\\\\"),e=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className=\\\\\\\"\\\\\\\":(i=this._createCanvasElement(),this.upperCanvasEl=i),T.util.addClass(i,\\\\\\\"upper-canvas \\\\\\\"+t),this.wrapperEl.appendChild(i),this._copyCanvasStyle(e,i),this._applyCanvasStyle(i),this.contextTop=i.getContext(\\\\\\\"2d\\\\\\\")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute(\\\\\\\"width\\\\\\\",this.width),this.cacheCanvasEl.setAttribute(\\\\\\\"height\\\\\\\",this.height),this.contextCache=this.cacheCanvasEl.getContext(\\\\\\\"2d\\\\\\\")},_initWrapperElement:function(){this.wrapperEl=T.util.wrapElement(this.lowerCanvasEl,\\\\\\\"div\\\\\\\",{class:this.containerClass}),T.util.setStyle(this.wrapperEl,{width:this.width+\\\\\\\"px\\\\\\\",height:this.height+\\\\\\\"px\\\\\\\",position:\\\\\\\"relative\\\\\\\"}),T.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(t){var e=this.width||t.width,i=this.height||t.height;T.util.setStyle(t,{position:\\\\\\\"absolute\\\\\\\",width:e+\\\\\\\"px\\\\\\\",height:i+\\\\\\\"px\\\\\\\",left:0,top:0,\\\\\\\"touch-action\\\\\\\":this.allowTouchScrolling?\\\\\\\"manipulation\\\\\\\":\\\\\\\"none\\\\\\\",\\\\\\\"-ms-touch-action\\\\\\\":this.allowTouchScrolling?\\\\\\\"manipulation\\\\\\\":\\\\\\\"none\\\\\\\"}),t.width=e,t.height=i,T.util.makeElementUnselectable(t)},_copyCanvasStyle:function(t,e){e.style.cssText=t.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var t=this._activeObject;return t?\\\\\\\"activeSelection\\\\\\\"===t.type\\\\u0026\\\\u0026t._objects?t._objects.slice(0):[t]:[]},_onObjectRemoved:function(t){t===this._activeObject\\\\u0026\\\\u0026(this.fire(\\\\\\\"before:selection:cleared\\\\\\\",{target:t}),this._discardActiveObject(),this.fire(\\\\\\\"selection:cleared\\\\\\\",{target:t}),t.fire(\\\\\\\"deselected\\\\\\\")),t===this._hoveredTarget\\\\u0026\\\\u0026(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper(\\\\\\\"_onObjectRemoved\\\\\\\",t)},_fireSelectionEvents:function(t,e){var i=!1,r=this.getActiveObjects(),n=[],o=[];t.forEach((function(t){-1===r.indexOf(t)\\\\u0026\\\\u0026(i=!0,t.fire(\\\\\\\"deselected\\\\\\\",{e:e,target:t}),o.push(t))})),r.forEach((function(r){-1===t.indexOf(r)\\\\u0026\\\\u0026(i=!0,r.fire(\\\\\\\"selected\\\\\\\",{e:e,target:r}),n.push(r))})),t.length\\\\u003e0\\\\u0026\\\\u0026r.length\\\\u003e0?i\\\\u0026\\\\u0026this.fire(\\\\\\\"selection:updated\\\\\\\",{e:e,selected:n,deselected:o,updated:n[0]||o[0],target:this._activeObject}):r.length\\\\u003e0?this.fire(\\\\\\\"selection:created\\\\\\\",{e:e,selected:n,target:this._activeObject}):t.length\\\\u003e0\\\\u0026\\\\u0026this.fire(\\\\\\\"selection:cleared\\\\\\\",{e:e,deselected:o})},setActiveObject:function(t,e){var i=this.getActiveObjects();return this._setActiveObject(t,e),this._fireSelectionEvents(i,e),this},_setActiveObject:function(t,e){return this._activeObject!==t\\\\u0026\\\\u0026(!!this._discardActiveObject(e,t)\\\\u0026\\\\u0026(!t.onSelect({e:e})\\\\u0026\\\\u0026(this._activeObject=t,!0)))},_discardActiveObject:function(t,e){var i=this._activeObject;if(i){if(i.onDeselect({e:t,object:e}))return!1;this._activeObject=null}return!0},discardActiveObject:function(t){var e=this.getActiveObjects(),i=this.getActiveObject();return e.length\\\\u0026\\\\u0026this.fire(\\\\\\\"before:selection:cleared\\\\\\\",{target:i,e:t}),this._discardActiveObject(t),this._fireSelectionEvents(e,t),this},dispose:function(){var t=this.wrapperEl;return this.removeListeners(),t.removeChild(this.upperCanvasEl),t.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,[\\\\\\\"upperCanvasEl\\\\\\\",\\\\\\\"cacheCanvasEl\\\\\\\"].forEach(function(t){T.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this)),t.parentNode\\\\u0026\\\\u0026t.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,T.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper(\\\\\\\"clear\\\\\\\")},drawControls:function(t){var e=this._activeObject;e\\\\u0026\\\\u0026e._renderControls(t)},_toObject:function(t,e,i){var r=this._realizeGroupTransformOnObject(t),n=this.callSuper(\\\\\\\"_toObject\\\\\\\",t,e,i);return this._unwindGroupTransformOnObject(t,r),n},_realizeGroupTransformOnObject:function(t){if(t.group\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===t.group.type\\\\u0026\\\\u0026this._activeObject===t.group){var e={};return[\\\\\\\"angle\\\\\\\",\\\\\\\"flipX\\\\\\\",\\\\\\\"flipY\\\\\\\",\\\\\\\"left\\\\\\\",\\\\\\\"scaleX\\\\\\\",\\\\\\\"scaleY\\\\\\\",\\\\\\\"skewX\\\\\\\",\\\\\\\"skewY\\\\\\\",\\\\\\\"top\\\\\\\"].forEach((function(i){e[i]=t[i]})),T.util.addTransformToObject(t,this._activeObject.calcOwnMatrix()),e}return null},_unwindGroupTransformOnObject:function(t,e){e\\\\u0026\\\\u0026t.set(e)},_setSVGObject:function(t,e,i){var r=this._realizeGroupTransformOnObject(e);this.callSuper(\\\\\\\"_setSVGObject\\\\\\\",t,e,i),this._unwindGroupTransformOnObject(e,r)},setViewportTransform:function(t){this.renderOnAddRemove\\\\u0026\\\\u0026this._activeObject\\\\u0026\\\\u0026this._activeObject.isEditing\\\\u0026\\\\u0026this._activeObject.clearContextTop(),T.StaticCanvas.prototype.setViewportTransform.call(this,t)}}),T.StaticCanvas)\\\\\\\"prototype\\\\\\\"!==r\\\\u0026\\\\u0026(T.Canvas[r]=T.StaticCanvas[r])}(),function(){var t=T.util.addListener,e=T.util.removeListener,i={passive:!1};function r(t,e){return t.button\\\\u0026\\\\u0026t.button===e-1}T.util.object.extend(T.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(t,\\\\\\\"add\\\\\\\")},_getEventPrefix:function(){return this.enablePointerEvents?\\\\\\\"pointer\\\\\\\":\\\\\\\"mouse\\\\\\\"},addOrRemove:function(t,e){var r=this.upperCanvasEl,n=this._getEventPrefix();t(T.window,\\\\\\\"resize\\\\\\\",this._onResize),t(r,n+\\\\\\\"down\\\\\\\",this._onMouseDown),t(r,n+\\\\\\\"move\\\\\\\",this._onMouseMove,i),t(r,n+\\\\\\\"out\\\\\\\",this._onMouseOut),t(r,n+\\\\\\\"enter\\\\\\\",this._onMouseEnter),t(r,\\\\\\\"wheel\\\\\\\",this._onMouseWheel),t(r,\\\\\\\"contextmenu\\\\\\\",this._onContextMenu),t(r,\\\\\\\"dblclick\\\\\\\",this._onDoubleClick),t(r,\\\\\\\"dragover\\\\\\\",this._onDragOver),t(r,\\\\\\\"dragenter\\\\\\\",this._onDragEnter),t(r,\\\\\\\"dragleave\\\\\\\",this._onDragLeave),t(r,\\\\\\\"drop\\\\\\\",this._onDrop),this.enablePointerEvents||t(r,\\\\\\\"touchstart\\\\\\\",this._onTouchStart,i),void 0!==P\\\\u0026\\\\u0026e in P\\\\u0026\\\\u0026(P[e](r,\\\\\\\"gesture\\\\\\\",this._onGesture),P[e](r,\\\\\\\"drag\\\\\\\",this._onDrag),P[e](r,\\\\\\\"orientation\\\\\\\",this._onOrientationChange),P[e](r,\\\\\\\"shake\\\\\\\",this._onShake),P[e](r,\\\\\\\"longpress\\\\\\\",this._onLongPress))},removeListeners:function(){this.addOrRemove(e,\\\\\\\"remove\\\\\\\");var t=this._getEventPrefix();e(T.document,t+\\\\\\\"up\\\\\\\",this._onMouseUp),e(T.document,\\\\\\\"touchend\\\\\\\",this._onTouchEnd,i),e(T.document,t+\\\\\\\"move\\\\\\\",this._onMouseMove,i),e(T.document,\\\\\\\"touchmove\\\\\\\",this._onMouseMove,i)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,\\\\\\\"dragenter\\\\\\\"),this._onDragLeave=this._simpleEventHandler.bind(this,\\\\\\\"dragleave\\\\\\\"),this._onDrop=this._simpleEventHandler.bind(this,\\\\\\\"drop\\\\\\\"),this.eventsBound=!0)},_onGesture:function(t,e){this.__onTransformGesture\\\\u0026\\\\u0026this.__onTransformGesture(t,e)},_onDrag:function(t,e){this.__onDrag\\\\u0026\\\\u0026this.__onDrag(t,e)},_onMouseWheel:function(t){this.__onMouseWheel(t)},_onMouseOut:function(t){var e=this._hoveredTarget;this.fire(\\\\\\\"mouse:out\\\\\\\",{target:e,e:t}),this._hoveredTarget=null,e\\\\u0026\\\\u0026e.fire(\\\\\\\"mouseout\\\\\\\",{e:t});var i=this;this._hoveredTargets.forEach((function(r){i.fire(\\\\\\\"mouse:out\\\\\\\",{target:e,e:t}),r\\\\u0026\\\\u0026e.fire(\\\\\\\"mouseout\\\\\\\",{e:t})})),this._hoveredTargets=[],this._iTextInstances\\\\u0026\\\\u0026this._iTextInstances.forEach((function(t){t.isEditing\\\\u0026\\\\u0026t.hiddenTextarea.focus()}))},_onMouseEnter:function(t){this._currentTransform||this.findTarget(t)||(this.fire(\\\\\\\"mouse:over\\\\\\\",{target:null,e:t}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(t,e){this.__onOrientationChange\\\\u0026\\\\u0026this.__onOrientationChange(t,e)},_onShake:function(t,e){this.__onShake\\\\u0026\\\\u0026this.__onShake(t,e)},_onLongPress:function(t,e){this.__onLongPress\\\\u0026\\\\u0026this.__onLongPress(t,e)},_onDragOver:function(t){t.preventDefault();var e=this._simpleEventHandler(\\\\\\\"dragover\\\\\\\",t);this._fireEnterLeaveEvents(e,t)},_onContextMenu:function(t){return this.stopContextMenu\\\\u0026\\\\u0026(t.stopPropagation(),t.preventDefault()),!1},_onDoubleClick:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\\\\\"dblclick\\\\\\\"),this._resetTransformEventData(t)},getPointerId:function(t){var e=t.changedTouches;return e?e[0]\\\\u0026\\\\u0026e[0].identifier:this.enablePointerEvents?t.pointerId:-1},_isMainEvent:function(t){return!0===t.isPrimary||!1!==t.isPrimary\\\\u0026\\\\u0026(\\\\\\\"touchend\\\\\\\"===t.type\\\\u0026\\\\u00260===t.touches.length||(!t.changedTouches||t.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(r){r.preventDefault(),null===this.mainTouchId\\\\u0026\\\\u0026(this.mainTouchId=this.getPointerId(r)),this.__onMouseDown(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();t(T.document,\\\\\\\"touchend\\\\\\\",this._onTouchEnd,i),t(T.document,\\\\\\\"touchmove\\\\\\\",this._onMouseMove,i),e(n,o+\\\\\\\"down\\\\\\\",this._onMouseDown)},_onMouseDown:function(r){this.__onMouseDown(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();e(n,o+\\\\\\\"move\\\\\\\",this._onMouseMove,i),t(T.document,o+\\\\\\\"up\\\\\\\",this._onMouseUp),t(T.document,o+\\\\\\\"move\\\\\\\",this._onMouseMove,i)},_onTouchEnd:function(r){if(!(r.touches.length\\\\u003e0)){this.__onMouseUp(r),this._resetTransformEventData(),this.mainTouchId=null;var n=this._getEventPrefix();e(T.document,\\\\\\\"touchend\\\\\\\",this._onTouchEnd,i),e(T.document,\\\\\\\"touchmove\\\\\\\",this._onMouseMove,i);var o=this;this._willAddMouseDown\\\\u0026\\\\u0026clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){t(o.upperCanvasEl,n+\\\\\\\"down\\\\\\\",o._onMouseDown),o._willAddMouseDown=0}),400)}},_onMouseUp:function(r){this.__onMouseUp(r),this._resetTransformEventData();var n=this.upperCanvasEl,o=this._getEventPrefix();this._isMainEvent(r)\\\\u0026\\\\u0026(e(T.document,o+\\\\\\\"up\\\\\\\",this._onMouseUp),e(T.document,o+\\\\\\\"move\\\\\\\",this._onMouseMove,i),t(n,o+\\\\\\\"move\\\\\\\",this._onMouseMove,i))},_onMouseMove:function(t){!this.allowTouchScrolling\\\\u0026\\\\u0026t.preventDefault\\\\u0026\\\\u0026t.preventDefault(),this.__onMouseMove(t)},_onResize:function(){this.calcOffset()},_shouldRender:function(t){var e=this._activeObject;return!!(!!e!=!!t||e\\\\u0026\\\\u0026t\\\\u0026\\\\u0026e!==t)||(e\\\\u0026\\\\u0026e.isEditing,!1)},__onMouseUp:function(t){var e,i=this._currentTransform,n=this._groupSelector,o=!1,s=!n||0===n.left\\\\u0026\\\\u00260===n.top;if(this._cacheTransformEventData(t),e=this._target,this._handleEvent(t,\\\\\\\"up:before\\\\\\\"),r(t,3))this.fireRightClick\\\\u0026\\\\u0026this._handleEvent(t,\\\\\\\"up\\\\\\\",3,s);else{if(r(t,2))return this.fireMiddleClick\\\\u0026\\\\u0026this._handleEvent(t,\\\\\\\"up\\\\\\\",2,s),void this._resetTransformEventData();if(this.isDrawingMode\\\\u0026\\\\u0026this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(t);else if(this._isMainEvent(t)){if(i\\\\u0026\\\\u0026(this._finalizeCurrentTransform(t),o=i.actionPerformed),!s){var a=e===this._activeObject;this._maybeGroupObjects(t),o||(o=this._shouldRender(e)||!a\\\\u0026\\\\u0026e===this._activeObject)}if(e){if(e.selectable\\\\u0026\\\\u0026e!==this._activeObject\\\\u0026\\\\u0026\\\\\\\"up\\\\\\\"===e.activeOn)this.setActiveObject(e,t),o=!0;else{var h=e._findTargetCorner(this.getPointer(t,!0),T.util.isTouchEvent(t)),c=e.controls[h],l=c\\\\u0026\\\\u0026c.getMouseUpHandler(t,e,c);if(l){var u=this.getPointer(t);l(t,i,u.x,u.y)}}e.isMoving=!1}this._setCursorFromEvent(t,e),this._handleEvent(t,\\\\\\\"up\\\\\\\",1,s),this._groupSelector=null,this._currentTransform=null,e\\\\u0026\\\\u0026(e.__corner=0),o?this.requestRenderAll():s||this.renderTop()}}},_simpleEventHandler:function(t,e){var i=this.findTarget(e),r=this.targets,n={e:e,target:i,subTargets:r};if(this.fire(t,n),i\\\\u0026\\\\u0026i.fire(t,n),!r)return i;for(var o=0;o\\\\u003cr.length;o++)r[o].fire(t,n);return i},_handleEvent:function(t,e,i,r){var n=this._target,o=this.targets||[],s={e:t,target:n,subTargets:o,button:i||1,isClick:r||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};\\\\\\\"up\\\\\\\"===e\\\\u0026\\\\u0026(s.currentTarget=this.findTarget(t),s.currentSubTargets=this.targets),this.fire(\\\\\\\"mouse:\\\\\\\"+e,s),n\\\\u0026\\\\u0026n.fire(\\\\\\\"mouse\\\\\\\"+e,s);for(var a=0;a\\\\u003co.length;a++)o[a].fire(\\\\\\\"mouse\\\\\\\"+e,s)},_finalizeCurrentTransform:function(t){var e,i=this._currentTransform,r=i.target,n={e:t,target:r,transform:i,action:i.action};r._scaling\\\\u0026\\\\u0026(r._scaling=!1),r.setCoords(),(i.actionPerformed||this.stateful\\\\u0026\\\\u0026r.hasStateChanged())\\\\u0026\\\\u0026(i.actionPerformed\\\\u0026\\\\u0026(e=this._addEventOptions(n,i),this._fire(e,n)),this._fire(\\\\\\\"modified\\\\\\\",n))},_addEventOptions:function(t,e){var i,r;switch(e.action){case\\\\\\\"scaleX\\\\\\\":i=\\\\\\\"scaled\\\\\\\",r=\\\\\\\"x\\\\\\\";break;case\\\\\\\"scaleY\\\\\\\":i=\\\\\\\"scaled\\\\\\\",r=\\\\\\\"y\\\\\\\";break;case\\\\\\\"skewX\\\\\\\":i=\\\\\\\"skewed\\\\\\\",r=\\\\\\\"x\\\\\\\";break;case\\\\\\\"skewY\\\\\\\":i=\\\\\\\"skewed\\\\\\\",r=\\\\\\\"y\\\\\\\";break;case\\\\\\\"scale\\\\\\\":i=\\\\\\\"scaled\\\\\\\",r=\\\\\\\"equally\\\\\\\";break;case\\\\\\\"rotate\\\\\\\":i=\\\\\\\"rotated\\\\\\\";break;case\\\\\\\"drag\\\\\\\":i=\\\\\\\"moved\\\\\\\"}return t.by=r,i},_onMouseDownInDrawingMode:function(t){this._isCurrentlyDrawing=!0,this.getActiveObject()\\\\u0026\\\\u0026this.discardActiveObject(t).requestRenderAll();var e=this.getPointer(t);this.freeDrawingBrush.onMouseDown(e,{e:t,pointer:e}),this._handleEvent(t,\\\\\\\"down\\\\\\\")},_onMouseMoveInDrawingMode:function(t){if(this._isCurrentlyDrawing){var e=this.getPointer(t);this.freeDrawingBrush.onMouseMove(e,{e:t,pointer:e})}this.setCursor(this.freeDrawingCursor),this._handleEvent(t,\\\\\\\"move\\\\\\\")},_onMouseUpInDrawingMode:function(t){var e=this.getPointer(t);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:t,pointer:e}),this._handleEvent(t,\\\\\\\"up\\\\\\\")},__onMouseDown:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\\\\\"down:before\\\\\\\");var e=this._target;if(r(t,3))this.fireRightClick\\\\u0026\\\\u0026this._handleEvent(t,\\\\\\\"down\\\\\\\",3);else if(r(t,2))this.fireMiddleClick\\\\u0026\\\\u0026this._handleEvent(t,\\\\\\\"down\\\\\\\",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(t);else if(this._isMainEvent(t)\\\\u0026\\\\u0026!this._currentTransform){var i=this._pointer;this._previousPointer=i;var n=this._shouldRender(e),o=this._shouldGroup(t,e);if(this._shouldClearSelection(t,e)?this.discardActiveObject(t):o\\\\u0026\\\\u0026(this._handleGrouping(t,e),e=this._activeObject),!this.selection||e\\\\u0026\\\\u0026(e.selectable||e.isEditing||e===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),e){var s=e===this._activeObject;e.selectable\\\\u0026\\\\u0026\\\\\\\"down\\\\\\\"===e.activeOn\\\\u0026\\\\u0026this.setActiveObject(e,t);var a=e._findTargetCorner(this.getPointer(t,!0),T.util.isTouchEvent(t));if(e.__corner=a,e===this._activeObject\\\\u0026\\\\u0026(a||!o)){this._setupCurrentTransform(t,e,s);var h=e.controls[a],c=(i=this.getPointer(t),h\\\\u0026\\\\u0026h.getMouseDownHandler(t,e,h));c\\\\u0026\\\\u0026c(t,this._currentTransform,i.x,i.y)}}this._handleEvent(t,\\\\\\\"down\\\\\\\"),(n||o)\\\\u0026\\\\u0026this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(t){this._resetTransformEventData(),this._pointer=this.getPointer(t,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(t)||null},_beforeTransform:function(t){var e=this._currentTransform;this.stateful\\\\u0026\\\\u0026e.target.saveState(),this.fire(\\\\\\\"before:transform\\\\\\\",{e:t,transform:e})},__onMouseMove:function(t){var e,i;if(this._handleEvent(t,\\\\\\\"move:before\\\\\\\"),this._cacheTransformEventData(t),this.isDrawingMode)this._onMouseMoveInDrawingMode(t);else if(this._isMainEvent(t)){var r=this._groupSelector;r?(i=this._absolutePointer,r.left=i.x-r.ex,r.top=i.y-r.ey,this.renderTop()):this._currentTransform?this._transformObject(t):(e=this.findTarget(t)||null,this._setCursorFromEvent(t,e),this._fireOverOutEvents(e,t)),this._handleEvent(t,\\\\\\\"move\\\\\\\"),this._resetTransformEventData()}},_fireOverOutEvents:function(t,e){var i=this._hoveredTarget,r=this._hoveredTargets,n=this.targets,o=Math.max(r.length,n.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:i,evtOut:\\\\\\\"mouseout\\\\\\\",canvasEvtOut:\\\\\\\"mouse:out\\\\\\\",evtIn:\\\\\\\"mouseover\\\\\\\",canvasEvtIn:\\\\\\\"mouse:over\\\\\\\"});for(var s=0;s\\\\u003co;s++)this.fireSyntheticInOutEvents(n[s],e,{oldTarget:r[s],evtOut:\\\\\\\"mouseout\\\\\\\",evtIn:\\\\\\\"mouseover\\\\\\\"});this._hoveredTarget=t,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(t,e){var i=this._draggedoverTarget,r=this._hoveredTargets,n=this.targets,o=Math.max(r.length,n.length);this.fireSyntheticInOutEvents(t,e,{oldTarget:i,evtOut:\\\\\\\"dragleave\\\\\\\",evtIn:\\\\\\\"dragenter\\\\\\\"});for(var s=0;s\\\\u003co;s++)this.fireSyntheticInOutEvents(n[s],e,{oldTarget:r[s],evtOut:\\\\\\\"dragleave\\\\\\\",evtIn:\\\\\\\"dragenter\\\\\\\"});this._draggedoverTarget=t},fireSyntheticInOutEvents:function(t,e,i){var r,n,o,s=i.oldTarget,a=s!==t,h=i.canvasEvtIn,c=i.canvasEvtOut;a\\\\u0026\\\\u0026(r={e:e,target:t,previousTarget:s},n={e:e,target:s,nextTarget:t}),o=t\\\\u0026\\\\u0026a,s\\\\u0026\\\\u0026a\\\\u0026\\\\u0026(c\\\\u0026\\\\u0026this.fire(c,n),s.fire(i.evtOut,n)),o\\\\u0026\\\\u0026(h\\\\u0026\\\\u0026this.fire(h,r),t.fire(i.evtIn,r))},__onMouseWheel:function(t){this._cacheTransformEventData(t),this._handleEvent(t,\\\\\\\"wheel\\\\\\\"),this._resetTransformEventData()},_transformObject:function(t){var e=this.getPointer(t),i=this._currentTransform;i.reset=!1,i.shiftKey=t.shiftKey,i.altKey=t[this.centeredKey],this._performTransformAction(t,i,e),i.actionPerformed\\\\u0026\\\\u0026this.requestRenderAll()},_performTransformAction:function(t,e,i){var r=i.x,n=i.y,o=e.action,s=!1,a=e.actionHandler;a\\\\u0026\\\\u0026(s=a(t,e,r,n)),\\\\\\\"drag\\\\\\\"===o\\\\u0026\\\\u0026s\\\\u0026\\\\u0026(e.target.isMoving=!0,this.setCursor(e.target.moveCursor||this.moveCursor)),e.actionPerformed=e.actionPerformed||s},_fire:T.controlsUtils.fireEvent,_setCursorFromEvent:function(t,e){if(!e)return this.setCursor(this.defaultCursor),!1;var i=e.hoverCursor||this.hoverCursor,r=this._activeObject\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===this._activeObject.type?this._activeObject:null,n=(!r||!r.contains(e))\\\\u0026\\\\u0026e._findTargetCorner(this.getPointer(t,!0));n?this.setCursor(this.getCornerCursor(n,e,t)):(e.subTargetCheck\\\\u0026\\\\u0026this.targets.concat().reverse().map((function(t){i=t.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(t,e,i){var r=e.controls[t];return r.cursorStyleHandler(i,r,e)}})}(),b=Math.min,x=Math.max,T.util.object.extend(T.Canvas.prototype,{_shouldGroup:function(t,e){var i=this._activeObject;return i\\\\u0026\\\\u0026this._isSelectionKeyPressed(t)\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e.selectable\\\\u0026\\\\u0026this.selection\\\\u0026\\\\u0026(i!==e||\\\\\\\"activeSelection\\\\\\\"===i.type)\\\\u0026\\\\u0026!e.onSelect({e:t})},_handleGrouping:function(t,e){var i=this._activeObject;i.__corner||(e!==i||(e=this.findTarget(t,!0))\\\\u0026\\\\u0026e.selectable)\\\\u0026\\\\u0026(i\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"===i.type?this._updateActiveSelection(e,t):this._createActiveSelection(e,t))},_updateActiveSelection:function(t,e){var i=this._activeObject,r=i._objects.slice(0);i.contains(t)?(i.removeWithUpdate(t),this._hoveredTarget=t,this._hoveredTargets=this.targets.concat(),1===i.size()\\\\u0026\\\\u0026this._setActiveObject(i.item(0),e)):(i.addWithUpdate(t),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(r,e)},_createActiveSelection:function(t,e){var i=this.getActiveObjects(),r=this._createGroup(t);this._hoveredTarget=r,this._setActiveObject(r,e),this._fireSelectionEvents(i,e)},_createGroup:function(t){var e=this._objects,i=e.indexOf(this._activeObject)\\\\u003ce.indexOf(t)?[this._activeObject,t]:[t,this._activeObject];return this._activeObject.isEditing\\\\u0026\\\\u0026this._activeObject.exitEditing(),new T.ActiveSelection(i,{canvas:this})},_groupSelectedObjects:function(t){var e,i=this._collectObjects(t);1===i.length?this.setActiveObject(i[0],t):i.length\\\\u003e1\\\\u0026\\\\u0026(e=new T.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(e,t))},_collectObjects:function(t){for(var e,i=[],r=this._groupSelector.ex,n=this._groupSelector.ey,o=r+this._groupSelector.left,s=n+this._groupSelector.top,a=new T.Point(b(r,o),b(n,s)),h=new T.Point(x(r,o),x(n,s)),c=!this.selectionFullyContained,l=r===o\\\\u0026\\\\u0026n===s,u=this._objects.length;u--\\\\u0026\\\\u0026!((e=this._objects[u])\\\\u0026\\\\u0026e.selectable\\\\u0026\\\\u0026e.visible\\\\u0026\\\\u0026(c\\\\u0026\\\\u0026e.intersectsWithRect(a,h,!0)||e.isContainedWithinRect(a,h,!0)||c\\\\u0026\\\\u0026e.containsPoint(a,null,!0)||c\\\\u0026\\\\u0026e.containsPoint(h,null,!0))\\\\u0026\\\\u0026(i.push(e),l)););return i.length\\\\u003e1\\\\u0026\\\\u0026(i=i.filter((function(e){return!e.onSelect({e:t})}))),i},_maybeGroupObjects:function(t){this.selection\\\\u0026\\\\u0026this._groupSelector\\\\u0026\\\\u0026this._groupSelectedObjects(t),this.setCursor(this.defaultCursor),this._groupSelector=null}}),T.util.object.extend(T.StaticCanvas.prototype,{toDataURL:function(t){t||(t={});var e=t.format||\\\\\\\"png\\\\\\\",i=t.quality||1,r=(t.multiplier||1)*(t.enableRetinaScaling?this.getRetinaScaling():1),n=this.toCanvasElement(r,t);return T.util.toDataURL(n,e,i)},toCanvasElement:function(t,e){t=t||1;var i=((e=e||{}).width||this.width)*t,r=(e.height||this.height)*t,n=this.getZoom(),o=this.width,s=this.height,a=n*t,h=this.viewportTransform,c=(h[4]-(e.left||0))*t,l=(h[5]-(e.top||0))*t,u=this.interactive,f=[a,0,0,a,c,l],d=this.enableRetinaScaling,g=T.util.createCanvasElement(),p=this.contextTop;return g.width=i,g.height=r,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=f,this.width=i,this.height=r,this.calcViewportBoundaries(),this.renderCanvas(g.getContext(\\\\\\\"2d\\\\\\\"),this._objects),this.viewportTransform=h,this.width=o,this.height=s,this.calcViewportBoundaries(),this.interactive=u,this.enableRetinaScaling=d,this.contextTop=p,g}}),T.util.object.extend(T.StaticCanvas.prototype,{loadFromJSON:function(t,e,i){if(t){var r=\\\\\\\"string\\\\\\\"==typeof t?JSON.parse(t):T.util.object.clone(t),n=this,o=r.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete r.clipPath,this._enlivenObjects(r.objects,(function(t){n.clear(),n._setBgOverlay(r,(function(){o?n._enlivenObjects([o],(function(i){n.clipPath=i[0],n.__setupCanvas.call(n,r,t,s,e)})):n.__setupCanvas.call(n,r,t,s,e)}))}),i),this}},__setupCanvas:function(t,e,i,r){var n=this;e.forEach((function(t,e){n.insertAt(t,e)})),this.renderOnAddRemove=i,delete t.objects,delete t.backgroundImage,delete t.overlayImage,delete t.background,delete t.overlay,this._setOptions(t),this.renderAll(),r\\\\u0026\\\\u0026r()},_setBgOverlay:function(t,e){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(t.backgroundImage||t.overlayImage||t.background||t.overlay){var r=function(){i.backgroundImage\\\\u0026\\\\u0026i.overlayImage\\\\u0026\\\\u0026i.backgroundColor\\\\u0026\\\\u0026i.overlayColor\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e()};this.__setBgOverlay(\\\\\\\"backgroundImage\\\\\\\",t.backgroundImage,i,r),this.__setBgOverlay(\\\\\\\"overlayImage\\\\\\\",t.overlayImage,i,r),this.__setBgOverlay(\\\\\\\"backgroundColor\\\\\\\",t.background,i,r),this.__setBgOverlay(\\\\\\\"overlayColor\\\\\\\",t.overlay,i,r)}else e\\\\u0026\\\\u0026e()},__setBgOverlay:function(t,e,i,r){var n=this;if(!e)return i[t]=!0,void(r\\\\u0026\\\\u0026r());\\\\\\\"backgroundImage\\\\\\\"===t||\\\\\\\"overlayImage\\\\\\\"===t?T.util.enlivenObjects([e],(function(e){n[t]=e[0],i[t]=!0,r\\\\u0026\\\\u0026r()})):this[\\\\\\\"set\\\\\\\"+T.util.string.capitalize(t,!0)](e,(function(){i[t]=!0,r\\\\u0026\\\\u0026r()}))},_enlivenObjects:function(t,e,i){t\\\\u0026\\\\u00260!==t.length?T.util.enlivenObjects(t,(function(t){e\\\\u0026\\\\u0026e(t)}),null,i):e\\\\u0026\\\\u0026e([])},_toDataURL:function(t,e){this.clone((function(i){e(i.toDataURL(t))}))},_toDataURLWithMultiplier:function(t,e,i){this.clone((function(r){i(r.toDataURLWithMultiplier(t,e))}))},clone:function(t,e){var i=JSON.stringify(this.toJSON(e));this.cloneWithoutData((function(e){e.loadFromJSON(i,(function(){t\\\\u0026\\\\u0026t(e)}))}))},cloneWithoutData:function(t){var e=T.util.createCanvasElement();e.width=this.width,e.height=this.height;var i=new T.Canvas(e);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),t\\\\u0026\\\\u0026t(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):t\\\\u0026\\\\u0026t(i)}}),C=T.util.degreesToRadians,w=T.util.radiansToDegrees,T.util.object.extend(T.Canvas.prototype,{__onTransformGesture:function(t,e){if(!this.isDrawingMode\\\\u0026\\\\u0026t.touches\\\\u0026\\\\u00262===t.touches.length\\\\u0026\\\\u0026\\\\\\\"gesture\\\\\\\"===e.gesture){var i=this.findTarget(t);void 0!==i\\\\u0026\\\\u0026(this.__gesturesParams={e:t,self:e,target:i},this.__gesturesRenderer()),this.fire(\\\\\\\"touch:gesture\\\\\\\",{target:i,e:t,self:e})}},__gesturesParams:null,__gesturesRenderer:function(){if(null!==this.__gesturesParams\\\\u0026\\\\u0026null!==this._currentTransform){var t=this.__gesturesParams.self,e=this._currentTransform,i=this.__gesturesParams.e;e.action=\\\\\\\"scale\\\\\\\",e.originX=e.originY=\\\\\\\"center\\\\\\\",this._scaleObjectBy(t.scale,i),0!==t.rotation\\\\u0026\\\\u0026(e.action=\\\\\\\"rotate\\\\\\\",this._rotateObjectByAngle(t.rotation,i)),this.requestRenderAll(),e.action=\\\\\\\"drag\\\\\\\"}},__onDrag:function(t,e){this.fire(\\\\\\\"touch:drag\\\\\\\",{e:t,self:e})},__onOrientationChange:function(t,e){this.fire(\\\\\\\"touch:orientation\\\\\\\",{e:t,self:e})},__onShake:function(t,e){this.fire(\\\\\\\"touch:shake\\\\\\\",{e:t,self:e})},__onLongPress:function(t,e){this.fire(\\\\\\\"touch:longpress\\\\\\\",{e:t,self:e})},_scaleObjectBy:function(t,e){var i=this._currentTransform,r=i.target;return i.gestureScale=t,r._scaling=!0,T.controlsUtils.scalingEqually(e,i,0,0)},_rotateObjectByAngle:function(t,e){var i=this._currentTransform;i.target.get(\\\\\\\"lockRotation\\\\\\\")||(i.target.rotate(w(C(t)+i.theta)),this._fire(\\\\\\\"rotating\\\\\\\",{target:i.target,e:e,transform:i}))}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n=e.util.toFixed,o=e.util.string.capitalize,s=e.util.degreesToRadians,a=!e.isLikelyNode;e.Object||(e.Object=e.util.createClass(e.CommonMethods,{type:\\\\\\\"object\\\\\\\",originX:\\\\\\\"left\\\\\\\",originY:\\\\\\\"top\\\\\\\",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:\\\\\\\"rgb(178,204,255)\\\\\\\",borderDashArray:null,cornerColor:\\\\\\\"rgb(178,204,255)\\\\\\\",cornerStrokeColor:null,cornerStyle:\\\\\\\"rect\\\\\\\",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:\\\\\\\"rgb(0,0,0)\\\\\\\",fillRule:\\\\\\\"nonzero\\\\\\\",globalCompositeOperation:\\\\\\\"source-over\\\\\\\",backgroundColor:\\\\\\\"\\\\\\\",selectionBackgroundColor:\\\\\\\"\\\\\\\",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:\\\\\\\"butt\\\\\\\",strokeLineJoin:\\\\\\\"miter\\\\\\\",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:a,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:\\\\\\\"fill\\\\\\\",activeOn:\\\\\\\"down\\\\\\\",stateProperties:\\\\\\\"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform\\\\\\\".split(\\\\\\\" \\\\\\\"),cacheProperties:\\\\\\\"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath\\\\\\\".split(\\\\\\\" \\\\\\\"),colorProperties:\\\\\\\"fill stroke backgroundColor\\\\\\\".split(\\\\\\\" \\\\\\\"),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(t){t\\\\u0026\\\\u0026this.setOptions(t)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=e.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext(\\\\\\\"2d\\\\\\\"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(t){var i=e.perfLimitSizeTotal,r=t.width,n=t.height,o=e.maxCacheSideLimit,s=e.minCacheSideLimit;if(r\\\\u003c=o\\\\u0026\\\\u0026n\\\\u003c=o\\\\u0026\\\\u0026r*n\\\\u003c=i)return r\\\\u003cs\\\\u0026\\\\u0026(t.width=s),n\\\\u003cs\\\\u0026\\\\u0026(t.height=s),t;var a=r/n,h=e.util.limitDimsByArea(a,i),c=e.util.capValue,l=c(s,h.x,o),u=c(s,h.y,o);return r\\\\u003el\\\\u0026\\\\u0026(t.zoomX/=r/l,t.width=l,t.capped=!0),n\\\\u003eu\\\\u0026\\\\u0026(t.zoomY/=n/u,t.height=u,t.capped=!0),t},_getCacheCanvasDimensions:function(){var t=this.getTotalObjectScaling(),e=this._getTransformedDimensions(0,0),i=e.x*t.scaleX/this.scaleX,r=e.y*t.scaleY/this.scaleY;return{width:i+2,height:r+2,zoomX:t.scaleX,zoomY:t.scaleY,x:i,y:r}},_updateCacheCanvas:function(){var t=this.canvas;if(this.noScaleCache\\\\u0026\\\\u0026t\\\\u0026\\\\u0026t._currentTransform){var i=t._currentTransform.target,r=t._currentTransform.action;if(this===i\\\\u0026\\\\u0026r.slice\\\\u0026\\\\u0026\\\\\\\"scale\\\\\\\"===r.slice(0,5))return!1}var n,o,s=this._cacheCanvas,a=this._limitCacheSize(this._getCacheCanvasDimensions()),h=e.minCacheSideLimit,c=a.width,l=a.height,u=a.zoomX,f=a.zoomY,d=c!==this.cacheWidth||l!==this.cacheHeight,g=this.zoomX!==u||this.zoomY!==f,p=d||g,v=0,m=0,y=!1;if(d){var _=this._cacheCanvas.width,b=this._cacheCanvas.height,x=c\\\\u003e_||l\\\\u003eb;y=x||(c\\\\u003c.9*_||l\\\\u003c.9*b)\\\\u0026\\\\u0026_\\\\u003eh\\\\u0026\\\\u0026b\\\\u003eh,x\\\\u0026\\\\u0026!a.capped\\\\u0026\\\\u0026(c\\\\u003eh||l\\\\u003eh)\\\\u0026\\\\u0026(v=.1*c,m=.1*l)}return this instanceof e.Text\\\\u0026\\\\u0026this.path\\\\u0026\\\\u0026(p=!0,y=!0,v+=this.getHeightOfLine(0)*this.zoomX,m+=this.getHeightOfLine(0)*this.zoomY),!!p\\\\u0026\\\\u0026(y?(s.width=Math.ceil(c+v),s.height=Math.ceil(l+m)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,s.width,s.height)),n=a.x/2,o=a.y/2,this.cacheTranslationX=Math.round(s.width/2-n)+n,this.cacheTranslationY=Math.round(s.height/2-o)+o,this.cacheWidth=c,this.cacheHeight=l,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(u,f),this.zoomX=u,this.zoomY=f,!0)},setOptions:function(t){this._setOptions(t),this._initGradient(t.fill,\\\\\\\"fill\\\\\\\"),this._initGradient(t.stroke,\\\\\\\"stroke\\\\\\\"),this._initPattern(t.fill,\\\\\\\"fill\\\\\\\"),this._initPattern(t.stroke,\\\\\\\"stroke\\\\\\\")},transform:function(t){var e=this.group\\\\u0026\\\\u0026!this.group._transformDone||this.group\\\\u0026\\\\u0026this.canvas\\\\u0026\\\\u0026t===this.canvas.contextTop,i=this.calcTransformMatrix(!e);t.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(t){var i=e.Object.NUM_FRACTION_DIGITS,r={type:this.type,version:e.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill\\\\u0026\\\\u0026this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke\\\\u0026\\\\u0026this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow\\\\u0026\\\\u0026this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath\\\\u0026\\\\u0026!this.clipPath.excludeFromExport\\\\u0026\\\\u0026(r.clipPath=this.clipPath.toObject(t),r.clipPath.inverted=this.clipPath.inverted,r.clipPath.absolutePositioned=this.clipPath.absolutePositioned),e.util.populateWithProperties(this,r,t),this.includeDefaultValues||(r=this._removeDefaultValues(r)),r},toDatalessObject:function(t){return this.toObject(t)},_removeDefaultValues:function(t){var i=e.util.getKlass(t.type).prototype;return i.stateProperties.forEach((function(e){\\\\\\\"left\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"top\\\\\\\"!==e\\\\u0026\\\\u0026(t[e]===i[e]\\\\u0026\\\\u0026delete t[e],\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(t[e])\\\\u0026\\\\u0026\\\\\\\"[object Array]\\\\\\\"===Object.prototype.toString.call(i[e])\\\\u0026\\\\u00260===t[e].length\\\\u0026\\\\u00260===i[e].length\\\\u0026\\\\u0026delete t[e])})),t},toString:function(){return\\\\\\\"#\\\\u003cfabric.\\\\\\\"+o(this.type)+\\\\\\\"\\\\u003e\\\\\\\"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var t=e.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(t.scaleX),scaleY:Math.abs(t.scaleY)}},getTotalObjectScaling:function(){var t=this.getObjectScaling(),e=t.scaleX,i=t.scaleY;if(this.canvas){var r=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();e*=r*n,i*=r*n}return{scaleX:e,scaleY:i}},getObjectOpacity:function(){var t=this.opacity;return this.group\\\\u0026\\\\u0026(t*=this.group.getObjectOpacity()),t},_set:function(t,i){var r=\\\\\\\"scaleX\\\\\\\"===t||\\\\\\\"scaleY\\\\\\\"===t,n=this[t]!==i,o=!1;return r\\\\u0026\\\\u0026(i=this._constrainScale(i)),\\\\\\\"scaleX\\\\\\\"===t\\\\u0026\\\\u0026i\\\\u003c0?(this.flipX=!this.flipX,i*=-1):\\\\\\\"scaleY\\\\\\\"===t\\\\u0026\\\\u0026i\\\\u003c0?(this.flipY=!this.flipY,i*=-1):\\\\\\\"shadow\\\\\\\"!==t||!i||i instanceof e.Shadow?\\\\\\\"dirty\\\\\\\"===t\\\\u0026\\\\u0026this.group\\\\u0026\\\\u0026this.group.set(\\\\\\\"dirty\\\\\\\",i):i=new e.Shadow(i),this[t]=i,n\\\\u0026\\\\u0026(o=this.group\\\\u0026\\\\u0026this.group.isOnACache(),this.cacheProperties.indexOf(t)\\\\u003e-1?(this.dirty=!0,o\\\\u0026\\\\u0026this.group.set(\\\\\\\"dirty\\\\\\\",!0)):o\\\\u0026\\\\u0026this.stateProperties.indexOf(t)\\\\u003e-1\\\\u0026\\\\u0026this.group.set(\\\\\\\"dirty\\\\\\\",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.viewportTransform?this.canvas.viewportTransform:e.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width\\\\u0026\\\\u0026!this.height\\\\u0026\\\\u00260===this.strokeWidth||!this.visible},render:function(t){this.isNotVisible()||this.canvas\\\\u0026\\\\u0026this.canvas.skipOffscreen\\\\u0026\\\\u0026!this.group\\\\u0026\\\\u0026!this.isOnScreen()||(t.save(),this._setupCompositeOperation(t),this.drawSelectionBackground(t),this.transform(t),this._setOpacity(t),this._setShadow(t,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(t)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(t),this.objectCaching\\\\u0026\\\\u0026this.statefullCache\\\\u0026\\\\u0026this.saveState({propertySet:\\\\\\\"cacheProperties\\\\\\\"})),t.restore())},renderCache:function(t){t=t||{},this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()\\\\u0026\\\\u0026(this.statefullCache\\\\u0026\\\\u0026this.saveState({propertySet:\\\\\\\"cacheProperties\\\\\\\"}),this.drawObject(this._cacheContext,t.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke\\\\u0026\\\\u0026\\\\\\\"transparent\\\\\\\"!==this.stroke\\\\u0026\\\\u00260!==this.strokeWidth},hasFill:function(){return this.fill\\\\u0026\\\\u0026\\\\\\\"transparent\\\\\\\"!==this.fill},needsItsOwnCache:function(){return!(\\\\\\\"stroke\\\\\\\"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||\\\\\\\"object\\\\\\\"!=typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching\\\\u0026\\\\u0026(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow\\\\u0026\\\\u0026(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(t){var i=this.clipPath;if(t.save(),i.inverted?t.globalCompositeOperation=\\\\\\\"destination-out\\\\\\\":t.globalCompositeOperation=\\\\\\\"destination-in\\\\\\\",i.absolutePositioned){var r=e.util.invertTransform(this.calcTransformMatrix());t.transform(r[0],r[1],r[2],r[3],r[4],r[5])}i.transform(t),t.scale(1/i.zoomX,1/i.zoomY),t.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),t.restore()},drawObject:function(t,e){var i=this.fill,r=this.stroke;e?(this.fill=\\\\\\\"black\\\\\\\",this.stroke=\\\\\\\"\\\\\\\",this._setClippingProperties(t)):this._renderBackground(t),this._render(t),this._drawClipPath(t),this.fill=i,this.stroke=r},_drawClipPath:function(t){var e=this.clipPath;e\\\\u0026\\\\u0026(e.canvas=this.canvas,e.shouldCache(),e._transformDone=!0,e.renderCache({forClipping:!0}),this.drawClipPathOnCache(t))},drawCacheOnCanvas:function(t){t.scale(1/this.zoomX,1/this.zoomY),t.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(t){if(this.isNotVisible())return!1;if(this._cacheCanvas\\\\u0026\\\\u0026!t\\\\u0026\\\\u0026this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath\\\\u0026\\\\u0026this.clipPath.absolutePositioned||this.statefullCache\\\\u0026\\\\u0026this.hasStateChanged(\\\\\\\"cacheProperties\\\\\\\")){if(this._cacheCanvas\\\\u0026\\\\u0026!t){var e=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-e/2,-i/2,e,i)}return!0}return!1},_renderBackground:function(t){if(this.backgroundColor){var e=this._getNonTransformedDimensions();t.fillStyle=this.backgroundColor,t.fillRect(-e.x/2,-e.y/2,e.x,e.y),this._removeShadow(t)}},_setOpacity:function(t){this.group\\\\u0026\\\\u0026!this.group._transformDone?t.globalAlpha=this.getObjectOpacity():t.globalAlpha*=this.opacity},_setStrokeStyles:function(t,e){var i=e.stroke;i\\\\u0026\\\\u0026(t.lineWidth=e.strokeWidth,t.lineCap=e.strokeLineCap,t.lineDashOffset=e.strokeDashOffset,t.lineJoin=e.strokeLineJoin,t.miterLimit=e.strokeMiterLimit,i.toLive?\\\\\\\"percentage\\\\\\\"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(t,i):(t.strokeStyle=i.toLive(t,this),this._applyPatternGradientTransform(t,i)):t.strokeStyle=e.stroke)},_setFillStyles:function(t,e){var i=e.fill;i\\\\u0026\\\\u0026(i.toLive?(t.fillStyle=i.toLive(t,this),this._applyPatternGradientTransform(t,e.fill)):t.fillStyle=i)},_setClippingProperties:function(t){t.globalAlpha=1,t.strokeStyle=\\\\\\\"transparent\\\\\\\",t.fillStyle=\\\\\\\"#000000\\\\\\\"},_setLineDash:function(t,e){e\\\\u0026\\\\u00260!==e.length\\\\u0026\\\\u0026(1\\\\u0026e.length\\\\u0026\\\\u0026e.push.apply(e,e),t.setLineDash(e))},_renderControls:function(t,i){var r,n,o,a=this.getViewportTransform(),h=this.calcTransformMatrix();n=void 0!==(i=i||{}).hasBorders?i.hasBorders:this.hasBorders,o=void 0!==i.hasControls?i.hasControls:this.hasControls,h=e.util.multiplyTransformMatrices(a,h),r=e.util.qrDecompose(h),t.save(),t.translate(r.translateX,r.translateY),t.lineWidth=1*this.borderScaleFactor,this.group||(t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),t.rotate(s(r.angle)),i.forActiveSelection||this.group?n\\\\u0026\\\\u0026this.drawBordersInGroup(t,r,i):n\\\\u0026\\\\u0026this.drawBorders(t,i),o\\\\u0026\\\\u0026this.drawControls(t,i),t.restore()},_setShadow:function(t){if(this.shadow){var i,r=this.shadow,n=this.canvas,o=n\\\\u0026\\\\u0026n.viewportTransform[0]||1,s=n\\\\u0026\\\\u0026n.viewportTransform[3]||1;i=r.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n\\\\u0026\\\\u0026n._isRetinaScaling()\\\\u0026\\\\u0026(o*=e.devicePixelRatio,s*=e.devicePixelRatio),t.shadowColor=r.color,t.shadowBlur=r.blur*e.browserShadowBlurConstant*(o+s)*(i.scaleX+i.scaleY)/4,t.shadowOffsetX=r.offsetX*o*i.scaleX,t.shadowOffsetY=r.offsetY*s*i.scaleY}},_removeShadow:function(t){this.shadow\\\\u0026\\\\u0026(t.shadowColor=\\\\\\\"\\\\\\\",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0)},_applyPatternGradientTransform:function(t,e){if(!e||!e.toLive)return{offsetX:0,offsetY:0};var i=e.gradientTransform||e.patternTransform,r=-this.width/2+e.offsetX||0,n=-this.height/2+e.offsetY||0;return\\\\\\\"percentage\\\\\\\"===e.gradientUnits?t.transform(this.width,0,0,this.height,r,n):t.transform(1,0,0,1,r,n),i\\\\u0026\\\\u0026t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:r,offsetY:n}},_renderPaintInOrder:function(t){\\\\\\\"stroke\\\\\\\"===this.paintFirst?(this._renderStroke(t),this._renderFill(t)):(this._renderFill(t),this._renderStroke(t))},_render:function(){},_renderFill:function(t){this.fill\\\\u0026\\\\u0026(t.save(),this._setFillStyles(t,this),\\\\\\\"evenodd\\\\\\\"===this.fillRule?t.fill(\\\\\\\"evenodd\\\\\\\"):t.fill(),t.restore())},_renderStroke:function(t){if(this.stroke\\\\u0026\\\\u00260!==this.strokeWidth){if(this.shadow\\\\u0026\\\\u0026!this.shadow.affectStroke\\\\u0026\\\\u0026this._removeShadow(t),t.save(),this.strokeUniform\\\\u0026\\\\u0026this.group){var e=this.getObjectScaling();t.scale(1/e.scaleX,1/e.scaleY)}else this.strokeUniform\\\\u0026\\\\u0026t.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(t,this.strokeDashArray),this._setStrokeStyles(t,this),t.stroke(),t.restore()}},_applyPatternForTransformedGradient:function(t,i){var r,n=this._limitCacheSize(this._getCacheCanvasDimensions()),o=e.util.createCanvasElement(),s=this.canvas.getRetinaScaling(),a=n.x/this.scaleX/s,h=n.y/this.scaleY/s;o.width=a,o.height=h,(r=o.getContext(\\\\\\\"2d\\\\\\\")).beginPath(),r.moveTo(0,0),r.lineTo(a,0),r.lineTo(a,h),r.lineTo(0,h),r.closePath(),r.translate(a/2,h/2),r.scale(n.zoomX/this.scaleX/s,n.zoomY/this.scaleY/s),this._applyPatternGradientTransform(r,i),r.fillStyle=i.toLive(t),r.fill(),t.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),t.scale(s*this.scaleX/n.zoomX,s*this.scaleY/n.zoomY),t.strokeStyle=r.createPattern(o,\\\\\\\"no-repeat\\\\\\\")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var t=e.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set(\\\\\\\"scaleX\\\\\\\",t.scaleX),this.set(\\\\\\\"scaleY\\\\\\\",t.scaleY),this.angle=t.angle,this.skewX=t.skewX,this.skewY=0}},_removeTransformMatrix:function(t){var i=this._findCenterFromElement();this.transformMatrix\\\\u0026\\\\u0026(this._assignTransformMatrixProps(),i=e.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,t\\\\u0026\\\\u0026(this.scaleX*=t.scaleX,this.scaleY*=t.scaleY,this.cropX=t.cropX,this.cropY=t.cropY,i.x+=t.offsetLeft,i.y+=t.offsetTop,this.width=t.width,this.height=t.height),this.setPositionByOrigin(i,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\")},clone:function(t,i){var r=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(r,t):e.Object._fromObject(\\\\\\\"Object\\\\\\\",r,t)},cloneAsImage:function(t,i){var r=this.toCanvasElement(i);return t\\\\u0026\\\\u0026t(new e.Image(r)),this},toCanvasElement:function(t){t||(t={});var i=e.util,r=i.saveObjectTransform(this),n=this.group,o=this.shadow,s=Math.abs,a=(t.multiplier||1)*(t.enableRetinaScaling?e.devicePixelRatio:1);delete this.group,t.withoutTransform\\\\u0026\\\\u0026i.resetObjectTransform(this),t.withoutShadow\\\\u0026\\\\u0026(this.shadow=null);var h,c,l,u,f=e.util.createCanvasElement(),d=this.getBoundingRect(!0,!0),g=this.shadow,p={x:0,y:0};g\\\\u0026\\\\u0026(c=g.blur,h=g.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),p.x=2*Math.round(s(g.offsetX)+c)*s(h.scaleX),p.y=2*Math.round(s(g.offsetY)+c)*s(h.scaleY)),l=d.width+p.x,u=d.height+p.y,f.width=Math.ceil(l),f.height=Math.ceil(u);var v=new e.StaticCanvas(f,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});\\\\\\\"jpeg\\\\\\\"===t.format\\\\u0026\\\\u0026(v.backgroundColor=\\\\\\\"#fff\\\\\\\"),this.setPositionByOrigin(new e.Point(v.width/2,v.height/2),\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\");var m=this.canvas;v.add(this);var y=v.toCanvasElement(a||1,t);return this.shadow=o,this.set(\\\\\\\"canvas\\\\\\\",m),n\\\\u0026\\\\u0026(this.group=n),this.set(r).setCoords(),v._objects=[],v.dispose(),v=null,y},toDataURL:function(t){return t||(t={}),e.util.toDataURL(this.toCanvasElement(t),t.format||\\\\\\\"png\\\\\\\",t.quality||1)},isType:function(t){return this.type===t},complexity:function(){return 1},toJSON:function(t){return this.toObject(t)},rotate:function(t){var e=(\\\\\\\"center\\\\\\\"!==this.originX||\\\\\\\"center\\\\\\\"!==this.originY)\\\\u0026\\\\u0026this.centeredRotation;return e\\\\u0026\\\\u0026this._setOriginToCenter(),this.set(\\\\\\\"angle\\\\\\\",t),e\\\\u0026\\\\u0026this._resetOrigin(),this},centerH:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas\\\\u0026\\\\u0026this.canvas.viewportCenterObject(this),this},getLocalPointer:function(t,i){i=i||this.canvas.getPointer(t);var r=new e.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle\\\\u0026\\\\u0026(r=e.util.rotatePoint(r,n,s(-this.angle))),{x:r.x-n.x,y:r.y-n.y}},_setupCompositeOperation:function(t){this.globalCompositeOperation\\\\u0026\\\\u0026(t.globalCompositeOperation=this.globalCompositeOperation)}}),e.util.createAccessors\\\\u0026\\\\u0026e.util.createAccessors(e.Object),i(e.Object.prototype,e.Observable),e.Object.NUM_FRACTION_DIGITS=2,e.Object._fromObject=function(t,i,n,o){var s=e[t];i=r(i,!0),e.util.enlivenPatterns([i.fill,i.stroke],(function(t){void 0!==t[0]\\\\u0026\\\\u0026(i.fill=t[0]),void 0!==t[1]\\\\u0026\\\\u0026(i.stroke=t[1]),e.util.enlivenObjects([i.clipPath],(function(t){i.clipPath=t[0];var e=o?new s(i[o],i):new s(i);n\\\\u0026\\\\u0026n(e)}))}))},e.Object.__uid=0)}(t),function(){var t=T.util.degreesToRadians,e={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};T.util.object.extend(T.Object.prototype,{translateToGivenOrigin:function(t,r,n,o,s){var a,h,c,l=t.x,u=t.y;return\\\\\\\"string\\\\\\\"==typeof r?r=e[r]:r-=.5,\\\\\\\"string\\\\\\\"==typeof o?o=e[o]:o-=.5,\\\\\\\"string\\\\\\\"==typeof n?n=i[n]:n-=.5,\\\\\\\"string\\\\\\\"==typeof s?s=i[s]:s-=.5,h=s-n,((a=o-r)||h)\\\\u0026\\\\u0026(c=this._getTransformedDimensions(),l=t.x+a*c.x,u=t.y+h*c.y),new T.Point(l,u)},translateToCenterPoint:function(e,i,r){var n=this.translateToGivenOrigin(e,i,r,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\");return this.angle?T.util.rotatePoint(n,e,t(this.angle)):n},translateToOriginPoint:function(e,i,r){var n=this.translateToGivenOrigin(e,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\",i,r);return this.angle?T.util.rotatePoint(n,e,t(this.angle)):n},getCenterPoint:function(){var t=new T.Point(this.left,this.top);return this.translateToCenterPoint(t,this.originX,this.originY)},getPointByOrigin:function(t,e){var i=this.getCenterPoint();return this.translateToOriginPoint(i,t,e)},toLocalPoint:function(e,i,r){var n,o,s=this.getCenterPoint();return n=void 0!==i\\\\u0026\\\\u0026void 0!==r?this.translateToGivenOrigin(s,\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\",i,r):new T.Point(this.left,this.top),o=new T.Point(e.x,e.y),this.angle\\\\u0026\\\\u0026(o=T.util.rotatePoint(o,s,-t(this.angle))),o.subtractEquals(n)},setPositionByOrigin:function(t,e,i){var r=this.translateToCenterPoint(t,e,i),n=this.translateToOriginPoint(r,this.originX,this.originY);this.set(\\\\\\\"left\\\\\\\",n.x),this.set(\\\\\\\"top\\\\\\\",n.y)},adjustPosition:function(i){var r,n,o=t(this.angle),s=this.getScaledWidth(),a=T.util.cos(o)*s,h=T.util.sin(o)*s;r=\\\\\\\"string\\\\\\\"==typeof this.originX?e[this.originX]:this.originX-.5,n=\\\\\\\"string\\\\\\\"==typeof i?e[i]:i-.5,this.left+=a*(n-r),this.top+=h*(n-r),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var t=this.getCenterPoint();this.originX=\\\\\\\"center\\\\\\\",this.originY=\\\\\\\"center\\\\\\\",this.left=t.x,this.top=t.y},_resetOrigin:function(){var t=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=t.x,this.top=t.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),\\\\\\\"left\\\\\\\",\\\\\\\"top\\\\\\\")}})}(),function(){var t=T.util,e=t.degreesToRadians,i=t.multiplyTransformMatrices,r=t.transformPoint;t.object.extend(T.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(t,e){return e?t?this.calcACoords():this.calcLineCoords():(this.aCoords\\\\u0026\\\\u0026this.lineCoords||this.setCoords(!0),t?this.aCoords:this.lineCoords)},getCoords:function(t,e){return i=this._getCoords(t,e),[new T.Point(i.tl.x,i.tl.y),new T.Point(i.tr.x,i.tr.y),new T.Point(i.br.x,i.br.y),new T.Point(i.bl.x,i.bl.y)];var i},intersectsWithRect:function(t,e,i,r){var n=this.getCoords(i,r);return\\\\\\\"Intersection\\\\\\\"===T.Intersection.intersectPolygonRectangle(n,t,e).status},intersectsWithObject:function(t,e,i){return\\\\\\\"Intersection\\\\\\\"===T.Intersection.intersectPolygonPolygon(this.getCoords(e,i),t.getCoords(e,i)).status||t.isContainedWithinObject(this,e,i)||this.isContainedWithinObject(t,e,i)},isContainedWithinObject:function(t,e,i){for(var r=this.getCoords(e,i),n=e?t.aCoords:t.lineCoords,o=0,s=t._getImageLines(n);o\\\\u003c4;o++)if(!t.containsPoint(r[o],s))return!1;return!0},isContainedWithinRect:function(t,e,i,r){var n=this.getBoundingRect(i,r);return n.left\\\\u003e=t.x\\\\u0026\\\\u0026n.left+n.width\\\\u003c=e.x\\\\u0026\\\\u0026n.top\\\\u003e=t.y\\\\u0026\\\\u0026n.top+n.height\\\\u003c=e.y},containsPoint:function(t,e,i,r){var n=this._getCoords(i,r),o=(e=e||this._getImageLines(n),this._findCrossPoints(t,e));return 0!==o\\\\u0026\\\\u0026o%2==1},isOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.getCoords(!0,t).some((function(t){return t.x\\\\u003c=i.x\\\\u0026\\\\u0026t.x\\\\u003e=e.x\\\\u0026\\\\u0026t.y\\\\u003c=i.y\\\\u0026\\\\u0026t.y\\\\u003e=e.y}))||(!!this.intersectsWithRect(e,i,!0,t)||this._containsCenterOfCanvas(e,i,t))},_containsCenterOfCanvas:function(t,e,i){var r={x:(t.x+e.x)/2,y:(t.y+e.y)/2};return!!this.containsPoint(r,null,!0,i)},isPartiallyOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;return!!this.intersectsWithRect(e,i,!0,t)||this.getCoords(!0,t).every((function(t){return(t.x\\\\u003e=i.x||t.x\\\\u003c=e.x)\\\\u0026\\\\u0026(t.y\\\\u003e=i.y||t.y\\\\u003c=e.y)}))\\\\u0026\\\\u0026this._containsCenterOfCanvas(e,i,t)},_getImageLines:function(t){return{topline:{o:t.tl,d:t.tr},rightline:{o:t.tr,d:t.br},bottomline:{o:t.br,d:t.bl},leftline:{o:t.bl,d:t.tl}}},_findCrossPoints:function(t,e){var i,r,n,o=0;for(var s in e)if(!((n=e[s]).o.y\\\\u003ct.y\\\\u0026\\\\u0026n.d.y\\\\u003ct.y||n.o.y\\\\u003e=t.y\\\\u0026\\\\u0026n.d.y\\\\u003e=t.y||(n.o.x===n.d.x\\\\u0026\\\\u0026n.o.x\\\\u003e=t.x?r=n.o.x:(0,i=(n.d.y-n.o.y)/(n.d.x-n.o.x),r=-(t.y-0*t.x-(n.o.y-i*n.o.x))/(0-i)),r\\\\u003e=t.x\\\\u0026\\\\u0026(o+=1),2!==o)))break;return o},getBoundingRect:function(e,i){var r=this.getCoords(e,i);return t.makeBoundingBoxFromPoints(r)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(t){return Math.abs(t)\\\\u003cthis.minScaleLimit?t\\\\u003c0?-this.minScaleLimit:this.minScaleLimit:0===t?1e-4:t},scale:function(t){return this._set(\\\\\\\"scaleX\\\\\\\",t),this._set(\\\\\\\"scaleY\\\\\\\",t),this.setCoords()},scaleToWidth:function(t,e){var i=this.getBoundingRect(e).width/this.getScaledWidth();return this.scale(t/this.width/i)},scaleToHeight:function(t,e){var i=this.getBoundingRect(e).height/this.getScaledHeight();return this.scale(t/this.height/i)},calcCoords:function(t){return t?this.calcACoords():this.calcOCoords()},calcLineCoords:function(){var i=this.getViewportTransform(),n=this.padding,o=e(this.angle),s=t.cos(o)*n,a=t.sin(o)*n,h=s+a,c=s-a,l=this.calcACoords(),u={tl:r(l.tl,i),tr:r(l.tr,i),bl:r(l.bl,i),br:r(l.br,i)};return n\\\\u0026\\\\u0026(u.tl.x-=c,u.tl.y-=h,u.tr.x+=h,u.tr.y-=c,u.bl.x-=h,u.bl.y+=c,u.br.x+=c,u.br.y+=h),u},calcOCoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),r=this.getViewportTransform(),n=i(r,e),o=i(n,t),s=(o=i(o,[1/r[0],0,0,1/r[3],0,0]),this._calculateCurrentDimensions()),a={};return this.forEachControl((function(t,e,i){a[e]=t.positionHandler(s,o,i)})),a},calcACoords:function(){var t=this._calcRotateMatrix(),e=this._calcTranslateMatrix(),n=i(e,t),o=this._getTransformedDimensions(),s=o.x/2,a=o.y/2;return{tl:r({x:-s,y:-a},n),tr:r({x:s,y:-a},n),bl:r({x:-s,y:a},n),br:r({x:s,y:a},n)}},setCoords:function(t){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),t||(this.oCoords=this.calcOCoords(),this._setCornerCoords\\\\u0026\\\\u0026this._setCornerCoords()),this},_calcRotateMatrix:function(){return t.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var t=this.getCenterPoint();return[1,0,0,1,t.x,t.y]},transformMatrixKey:function(t){var e=\\\\\\\"_\\\\\\\",i=\\\\\\\"\\\\\\\";return!t\\\\u0026\\\\u0026this.group\\\\u0026\\\\u0026(i=this.group.transformMatrixKey(t)+e),i+this.top+e+this.left+e+this.scaleX+e+this.scaleY+e+this.skewX+e+this.skewY+e+this.angle+e+this.originX+e+this.originY+e+this.width+e+this.height+e+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(t){var e=this.calcOwnMatrix();if(t||!this.group)return e;var r=this.transformMatrixKey(t),n=this.matrixCache||(this.matrixCache={});return n.key===r?n.value:(this.group\\\\u0026\\\\u0026(e=i(this.group.calcTransformMatrix(!1),e)),n.key=r,n.value=e,e)},calcOwnMatrix:function(){var e=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===e)return i.value;var r=this._calcTranslateMatrix(),n={angle:this.angle,translateX:r[4],translateY:r[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=e,i.value=t.composeMatrix(n),i.value},_calcDimensionsTransformMatrix:function(e,i,r){return t.calcDimensionsMatrix({skewX:e,skewY:i,scaleX:this.scaleX*(r\\\\u0026\\\\u0026this.flipX?-1:1),scaleY:this.scaleY*(r\\\\u0026\\\\u0026this.flipY?-1:1)})},_getNonTransformedDimensions:function(){var t=this.strokeWidth;return{x:this.width+t,y:this.height+t}},_getTransformedDimensions:function(e,i){void 0===e\\\\u0026\\\\u0026(e=this.skewX),void 0===i\\\\u0026\\\\u0026(i=this.skewY);var r,n,o,s=0===e\\\\u0026\\\\u00260===i;if(this.strokeUniform?(n=this.width,o=this.height):(n=(r=this._getNonTransformedDimensions()).x,o=r.y),s)return this._finalizeDimensions(n*this.scaleX,o*this.scaleY);var a=t.sizeAfterTransform(n,o,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:e,skewY:i});return this._finalizeDimensions(a.x,a.y)},_finalizeDimensions:function(t,e){return this.strokeUniform?{x:t+this.strokeWidth,y:e+this.strokeWidth}:{x:t,y:e}},_calculateCurrentDimensions:function(){var t=this.getViewportTransform(),e=this._getTransformedDimensions();return r(e,t,!0).scalarAdd(2*this.padding)}})}(),T.util.object.extend(T.Object.prototype,{sendToBack:function(){return this.group?T.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas\\\\u0026\\\\u0026this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?T.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas\\\\u0026\\\\u0026this.canvas.bringToFront(this),this},sendBackwards:function(t){return this.group?T.StaticCanvas.prototype.sendBackwards.call(this.group,this,t):this.canvas\\\\u0026\\\\u0026this.canvas.sendBackwards(this,t),this},bringForward:function(t){return this.group?T.StaticCanvas.prototype.bringForward.call(this.group,this,t):this.canvas\\\\u0026\\\\u0026this.canvas.bringForward(this,t),this},moveTo:function(t){return this.group\\\\u0026\\\\u0026\\\\\\\"activeSelection\\\\\\\"!==this.group.type?T.StaticCanvas.prototype.moveTo.call(this.group,this,t):this.canvas\\\\u0026\\\\u0026this.canvas.moveTo(this,t),this}}),function(){function t(t,e){if(e){if(e.toLive)return t+\\\\\\\": url(#SVGID_\\\\\\\"+e.id+\\\\\\\"); \\\\\\\";var i=new T.Color(e),r=t+\\\\\\\": \\\\\\\"+i.toRgb()+\\\\\\\"; \\\\\\\",n=i.getAlpha();return 1!==n\\\\u0026\\\\u0026(r+=t+\\\\\\\"-opacity: \\\\\\\"+n.toString()+\\\\\\\"; \\\\\\\"),r}return t+\\\\\\\": none; \\\\\\\"}var e=T.util.toFixed;T.util.object.extend(T.Object.prototype,{getSvgStyles:function(e){var i=this.fillRule?this.fillRule:\\\\\\\"nonzero\\\\\\\",r=this.strokeWidth?this.strokeWidth:\\\\\\\"0\\\\\\\",n=this.strokeDashArray?this.strokeDashArray.join(\\\\\\\" \\\\\\\"):\\\\\\\"none\\\\\\\",o=this.strokeDashOffset?this.strokeDashOffset:\\\\\\\"0\\\\\\\",s=this.strokeLineCap?this.strokeLineCap:\\\\\\\"butt\\\\\\\",a=this.strokeLineJoin?this.strokeLineJoin:\\\\\\\"miter\\\\\\\",h=this.strokeMiterLimit?this.strokeMiterLimit:\\\\\\\"4\\\\\\\",c=void 0!==this.opacity?this.opacity:\\\\\\\"1\\\\\\\",l=this.visible?\\\\\\\"\\\\\\\":\\\\\\\" visibility: hidden;\\\\\\\",u=e?\\\\\\\"\\\\\\\":this.getSvgFilter(),f=t(\\\\\\\"fill\\\\\\\",this.fill);return[t(\\\\\\\"stroke\\\\\\\",this.stroke),\\\\\\\"stroke-width: \\\\\\\",r,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-dasharray: \\\\\\\",n,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-linecap: \\\\\\\",s,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-dashoffset: \\\\\\\",o,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-linejoin: \\\\\\\",a,\\\\\\\"; \\\\\\\",\\\\\\\"stroke-miterlimit: \\\\\\\",h,\\\\\\\"; \\\\\\\",f,\\\\\\\"fill-rule: \\\\\\\",i,\\\\\\\"; \\\\\\\",\\\\\\\"opacity: \\\\\\\",c,\\\\\\\";\\\\\\\",u,l].join(\\\\\\\"\\\\\\\")},getSvgSpanStyles:function(e,i){var r=\\\\\\\"; \\\\\\\",n=e.fontFamily?\\\\\\\"font-family: \\\\\\\"+(-1===e.fontFamily.indexOf(\\\\\\\"'\\\\\\\")\\\\u0026\\\\u0026-1===e.fontFamily.indexOf('\\\\\\\"')?\\\\\\\"'\\\\\\\"+e.fontFamily+\\\\\\\"'\\\\\\\":e.fontFamily)+r:\\\\\\\"\\\\\\\",o=e.strokeWidth?\\\\\\\"stroke-width: \\\\\\\"+e.strokeWidth+r:\\\\\\\"\\\\\\\",s=(n=n,e.fontSize?\\\\\\\"font-size: \\\\\\\"+e.fontSize+\\\\\\\"px\\\\\\\"+r:\\\\\\\"\\\\\\\"),a=e.fontStyle?\\\\\\\"font-style: \\\\\\\"+e.fontStyle+r:\\\\\\\"\\\\\\\",h=e.fontWeight?\\\\\\\"font-weight: \\\\\\\"+e.fontWeight+r:\\\\\\\"\\\\\\\",c=e.fill?t(\\\\\\\"fill\\\\\\\",e.fill):\\\\\\\"\\\\\\\",l=e.stroke?t(\\\\\\\"stroke\\\\\\\",e.stroke):\\\\\\\"\\\\\\\",u=this.getSvgTextDecoration(e);return u\\\\u0026\\\\u0026(u=\\\\\\\"text-decoration: \\\\\\\"+u+r),[l,o,n,s,a,h,u,c,e.deltaY?\\\\\\\"baseline-shift: \\\\\\\"+-e.deltaY+\\\\\\\"; \\\\\\\":\\\\\\\"\\\\\\\",i?\\\\\\\"white-space: pre; \\\\\\\":\\\\\\\"\\\\\\\"].join(\\\\\\\"\\\\\\\")},getSvgTextDecoration:function(t){return[\\\\\\\"overline\\\\\\\",\\\\\\\"underline\\\\\\\",\\\\\\\"line-through\\\\\\\"].filter((function(e){return t[e.replace(\\\\\\\"-\\\\\\\",\\\\\\\"\\\\\\\")]})).join(\\\\\\\" \\\\\\\")},getSvgFilter:function(){return this.shadow?\\\\\\\"filter: url(#SVGID_\\\\\\\"+this.shadow.id+\\\\\\\");\\\\\\\":\\\\\\\"\\\\\\\"},getSvgCommons:function(){return[this.id?'id=\\\\\\\"'+this.id+'\\\\\\\" ':\\\\\\\"\\\\\\\",this.clipPath?'clip-path=\\\\\\\"url(#'+this.clipPath.clipPathId+')\\\\\\\" ':\\\\\\\"\\\\\\\"].join(\\\\\\\"\\\\\\\")},getSvgTransform:function(t,e){var i=t?this.calcTransformMatrix():this.calcOwnMatrix();return'transform=\\\\\\\"'+T.util.matrixToSVG(i)+(e||\\\\\\\"\\\\\\\")+'\\\\\\\" '},_setSVGBg:function(t){if(this.backgroundColor){var i=T.Object.NUM_FRACTION_DIGITS;t.push(\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\u003crect \\\\\\\",this._getFillAttributes(this.backgroundColor),' x=\\\\\\\"',e(-this.width/2,i),'\\\\\\\" y=\\\\\\\"',e(-this.height/2,i),'\\\\\\\" width=\\\\\\\"',e(this.width,i),'\\\\\\\" height=\\\\\\\"',e(this.height,i),'\\\\\\\"\\\\u003e\\\\u003c/rect\\\\u003e\\\\\\\\n')}},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(t),{reviver:t})},toClipPathSVG:function(t){return\\\\\\\"\\\\\\\\t\\\\\\\"+this._createBaseClipPathSVGMarkup(this._toSVG(t),{reviver:t})},_createBaseClipPathSVGMarkup:function(t,e){var i=(e=e||{}).reviver,r=e.additionalTransform||\\\\\\\"\\\\\\\",n=[this.getSvgTransform(!0,r),this.getSvgCommons()].join(\\\\\\\"\\\\\\\"),o=t.indexOf(\\\\\\\"COMMON_PARTS\\\\\\\");return t[o]=n,i?i(t.join(\\\\\\\"\\\\\\\")):t.join(\\\\\\\"\\\\\\\")},_createBaseSVGMarkup:function(t,e){var i,r,n=(e=e||{}).noStyle,o=e.reviver,s=n?\\\\\\\"\\\\\\\":'style=\\\\\\\"'+this.getSvgStyles()+'\\\\\\\" ',a=e.withShadow?'style=\\\\\\\"'+this.getSvgFilter()+'\\\\\\\" ':\\\\\\\"\\\\\\\",h=this.clipPath,c=this.strokeUniform?'vector-effect=\\\\\\\"non-scaling-stroke\\\\\\\" ':\\\\\\\"\\\\\\\",l=h\\\\u0026\\\\u0026h.absolutePositioned,u=this.stroke,f=this.fill,d=this.shadow,g=[],p=t.indexOf(\\\\\\\"COMMON_PARTS\\\\\\\"),v=e.additionalTransform;return h\\\\u0026\\\\u0026(h.clipPathId=\\\\\\\"CLIPPATH_\\\\\\\"+T.Object.__uid++,r='\\\\u003cclipPath id=\\\\\\\"'+h.clipPathId+'\\\\\\\" \\\\u003e\\\\\\\\n'+h.toClipPathSVG(o)+\\\\\\\"\\\\u003c/clipPath\\\\u003e\\\\\\\\n\\\\\\\"),l\\\\u0026\\\\u0026g.push(\\\\\\\"\\\\u003cg \\\\\\\",a,this.getSvgCommons(),\\\\\\\" \\\\u003e\\\\\\\\n\\\\\\\"),g.push(\\\\\\\"\\\\u003cg \\\\\\\",this.getSvgTransform(!1),l?\\\\\\\"\\\\\\\":a+this.getSvgCommons(),\\\\\\\" \\\\u003e\\\\\\\\n\\\\\\\"),i=[s,c,n?\\\\\\\"\\\\\\\":this.addPaintOrder(),\\\\\\\" \\\\\\\",v?'transform=\\\\\\\"'+v+'\\\\\\\" ':\\\\\\\"\\\\\\\"].join(\\\\\\\"\\\\\\\"),t[p]=i,f\\\\u0026\\\\u0026f.toLive\\\\u0026\\\\u0026g.push(f.toSVG(this)),u\\\\u0026\\\\u0026u.toLive\\\\u0026\\\\u0026g.push(u.toSVG(this)),d\\\\u0026\\\\u0026g.push(d.toSVG(this)),h\\\\u0026\\\\u0026g.push(r),g.push(t.join(\\\\\\\"\\\\\\\")),g.push(\\\\\\\"\\\\u003c/g\\\\u003e\\\\\\\\n\\\\\\\"),l\\\\u0026\\\\u0026g.push(\\\\\\\"\\\\u003c/g\\\\u003e\\\\\\\\n\\\\\\\"),o?o(g.join(\\\\\\\"\\\\\\\")):g.join(\\\\\\\"\\\\\\\")},addPaintOrder:function(){return\\\\\\\"fill\\\\\\\"!==this.paintFirst?' paint-order=\\\\\\\"'+this.paintFirst+'\\\\\\\" ':\\\\\\\"\\\\\\\"}})}(),function(){var t=T.util.object.extend,e=\\\\\\\"stateProperties\\\\\\\";function i(e,i,r){var n={};r.forEach((function(t){n[t]=e[t]})),t(e[i],n,!0)}function r(t,e,i){if(t===e)return!0;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0,o=t.length;n\\\\u003co;n++)if(!r(t[n],e[n]))return!1;return!0}if(t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t){var s,a=Object.keys(t);if(!e||\\\\\\\"object\\\\\\\"!=typeof e||!i\\\\u0026\\\\u0026a.length!==Object.keys(e).length)return!1;for(n=0,o=a.length;n\\\\u003co;n++)if(\\\\\\\"canvas\\\\\\\"!==(s=a[n])\\\\u0026\\\\u0026\\\\\\\"group\\\\\\\"!==s\\\\u0026\\\\u0026!r(t[s],e[s]))return!1;return!0}}T.util.object.extend(T.Object.prototype,{hasStateChanged:function(t){var i=\\\\\\\"_\\\\\\\"+(t=t||e);return Object.keys(this[i]).length\\\\u003cthis[t].length||!r(this[i],this,!0)},saveState:function(t){var r=t\\\\u0026\\\\u0026t.propertySet||e,n=\\\\\\\"_\\\\\\\"+r;return this[n]?(i(this,n,this[r]),t\\\\u0026\\\\u0026t.stateProperties\\\\u0026\\\\u0026i(this,n,t.stateProperties),this):this.setupState(t)},setupState:function(t){var i=(t=t||{}).propertySet||e;return t.propertySet=i,this[\\\\\\\"_\\\\\\\"+i]={},this.saveState(t),this}})}(),function(){var t=T.util.degreesToRadians;T.util.object.extend(T.Object.prototype,{_findTargetCorner:function(t,e){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,r,n,o=t.x,s=t.y,a=Object.keys(this.oCoords),h=a.length-1;for(this.__corner=0;h\\\\u003e=0;h--)if(n=a[h],this.isControlVisible(n)\\\\u0026\\\\u0026(r=this._getImageLines(e?this.oCoords[n].touchCorner:this.oCoords[n].corner),0!==(i=this._findCrossPoints({x:o,y:s},r))\\\\u0026\\\\u0026i%2==1))return this.__corner=n,n;return!1},forEachControl:function(t){for(var e in this.controls)t(this.controls[e],e,this)},_setCornerCoords:function(){var t=this.oCoords;for(var e in t){var i=this.controls[e];t[e].corner=i.calcCornerCoords(this.angle,this.cornerSize,t[e].x,t[e].y,!1),t[e].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,t[e].x,t[e].y,!0)}},drawSelectionBackground:function(e){if(!this.selectionBackgroundColor||this.canvas\\\\u0026\\\\u0026!this.canvas.interactive||this.canvas\\\\u0026\\\\u0026this.canvas._activeObject!==this)return this;e.save();var i=this.getCenterPoint(),r=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return e.translate(i.x,i.y),e.scale(1/n[0],1/n[3]),e.rotate(t(this.angle)),e.fillStyle=this.selectionBackgroundColor,e.fillRect(-r.x/2,-r.y/2,r.x,r.y),e.restore(),this},drawBorders:function(t,e){e=e||{};var i=this._calculateCurrentDimensions(),r=this.borderScaleFactor,n=i.x+r,o=i.y+r,s=void 0!==e.hasControls?e.hasControls:this.hasControls,a=!1;return t.save(),t.strokeStyle=e.borderColor||this.borderColor,this._setLineDash(t,e.borderDashArray||this.borderDashArray),t.strokeRect(-n/2,-o/2,n,o),s\\\\u0026\\\\u0026(t.beginPath(),this.forEachControl((function(e,i,r){e.withConnection\\\\u0026\\\\u0026e.getVisibility(r,i)\\\\u0026\\\\u0026(a=!0,t.moveTo(e.x*n,e.y*o),t.lineTo(e.x*n+e.offsetX,e.y*o+e.offsetY))})),a\\\\u0026\\\\u0026t.stroke()),t.restore(),this},drawBordersInGroup:function(t,e,i){i=i||{};var r=T.util.sizeAfterTransform(this.width,this.height,e),n=this.strokeWidth,o=this.strokeUniform,s=this.borderScaleFactor,a=r.x+n*(o?this.canvas.getZoom():e.scaleX)+s,h=r.y+n*(o?this.canvas.getZoom():e.scaleY)+s;return t.save(),this._setLineDash(t,i.borderDashArray||this.borderDashArray),t.strokeStyle=i.borderColor||this.borderColor,t.strokeRect(-a/2,-h/2,a,h),t.restore(),this},drawControls:function(t,e){e=e||{},t.save();var i,r,n=this.canvas.getRetinaScaling();return t.setTransform(n,0,0,n,0,0),t.strokeStyle=t.fillStyle=e.cornerColor||this.cornerColor,this.transparentCorners||(t.strokeStyle=e.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(t,e.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group\\\\u0026\\\\u0026(i=this.group.calcTransformMatrix()),this.forEachControl((function(n,o,s){r=s.oCoords[o],n.getVisibility(s,o)\\\\u0026\\\\u0026(i\\\\u0026\\\\u0026(r=T.util.transformPoint(r,i)),n.render(t,r.x,r.y,e,s))})),t.restore(),this},isControlVisible:function(t){return this.controls[t]\\\\u0026\\\\u0026this.controls[t].getVisibility(this,t)},setControlVisible:function(t,e){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[t]=e,this},setControlsVisibility:function(t){for(var e in t||(t={}),t)this.setControlVisible(e,t[e]);return this},onDeselect:function(){},onSelect:function(){}})}(),T.util.object.extend(T.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(e){t.set(\\\\\\\"left\\\\\\\",e),o.requestRenderAll(),n()},onComplete:function(){t.setCoords(),r()}}),this},fxCenterObjectV:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(e){t.set(\\\\\\\"top\\\\\\\",e),o.requestRenderAll(),n()},onComplete:function(){t.setCoords(),r()}}),this},fxRemove:function(t,e){var i=function(){},r=(e=e||{}).onComplete||i,n=e.onChange||i,o=this;return T.util.animate({startValue:t.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(e){t.set(\\\\\\\"opacity\\\\\\\",e),o.requestRenderAll(),n()},onComplete:function(){o.remove(t),r()}}),this}}),T.util.object.extend(T.Object.prototype,{animate:function(){if(arguments[0]\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof arguments[0]){var t,e,i=[];for(t in arguments[0])i.push(t);for(var r=0,n=i.length;r\\\\u003cn;r++)t=i[r],e=r!==n-1,this._animate(t,arguments[0][t],arguments[1],e)}else this._animate.apply(this,arguments);return this},_animate:function(t,e,i,r){var n,o=this;e=e.toString(),i=i?T.util.object.clone(i):{},~t.indexOf(\\\\\\\".\\\\\\\")\\\\u0026\\\\u0026(n=t.split(\\\\\\\".\\\\\\\"));var s=o.colorProperties.indexOf(t)\\\\u003e-1||n\\\\u0026\\\\u0026o.colorProperties.indexOf(n[1])\\\\u003e-1,a=n?this.get(n[0])[n[1]]:this.get(t);\\\\\\\"from\\\\\\\"in i||(i.from=a),s||(e=~e.indexOf(\\\\\\\"=\\\\\\\")?a+parseFloat(e.replace(\\\\\\\"=\\\\\\\",\\\\\\\"\\\\\\\")):parseFloat(e));var h={startValue:i.from,endValue:e,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort\\\\u0026\\\\u0026function(t,e,r){return i.abort.call(o,t,e,r)},onChange:function(e,s,a){n?o[n[0]][n[1]]=e:o.set(t,e),r||i.onChange\\\\u0026\\\\u0026i.onChange(e,s,a)},onComplete:function(t,e,n){r||(o.setCoords(),i.onComplete\\\\u0026\\\\u0026i.onComplete(t,e,n))}};return s?T.util.animateColor(h.startValue,h.endValue,h.duration,h):T.util.animate(h)}}),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function o(t,e){var i=t.origin,r=t.axis1,n=t.axis2,o=t.dimension,s=e.nearest,a=e.center,h=e.farthest;return function(){switch(this.get(i)){case s:return Math.min(this.get(r),this.get(n));case a:return Math.min(this.get(r),this.get(n))+.5*this.get(o);case h:return Math.max(this.get(r),this.get(n))}}}e.Line?e.warn(\\\\\\\"fabric.Line is already defined\\\\\\\"):(e.Line=e.util.createClass(e.Object,{type:\\\\\\\"line\\\\\\\",x1:0,y1:0,x2:0,y2:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"x1\\\\\\\",\\\\\\\"x2\\\\\\\",\\\\\\\"y1\\\\\\\",\\\\\\\"y2\\\\\\\"),initialize:function(t,e){t||(t=[0,0,0,0]),this.callSuper(\\\\\\\"initialize\\\\\\\",e),this.set(\\\\\\\"x1\\\\\\\",t[0]),this.set(\\\\\\\"y1\\\\\\\",t[1]),this.set(\\\\\\\"x2\\\\\\\",t[2]),this.set(\\\\\\\"y2\\\\\\\",t[3]),this._setWidthHeight(e)},_setWidthHeight:function(t){t||(t={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left=\\\\\\\"left\\\\\\\"in t?t.left:this._getLeftToOriginX(),this.top=\\\\\\\"top\\\\\\\"in t?t.top:this._getTopToOriginY()},_set:function(t,e){return this.callSuper(\\\\\\\"_set\\\\\\\",t,e),void 0!==n[t]\\\\u0026\\\\u0026this._setWidthHeight(),this},_getLeftToOriginX:o({origin:\\\\\\\"originX\\\\\\\",axis1:\\\\\\\"x1\\\\\\\",axis2:\\\\\\\"x2\\\\\\\",dimension:\\\\\\\"width\\\\\\\"},{nearest:\\\\\\\"left\\\\\\\",center:\\\\\\\"center\\\\\\\",farthest:\\\\\\\"right\\\\\\\"}),_getTopToOriginY:o({origin:\\\\\\\"originY\\\\\\\",axis1:\\\\\\\"y1\\\\\\\",axis2:\\\\\\\"y2\\\\\\\",dimension:\\\\\\\"height\\\\\\\"},{nearest:\\\\\\\"top\\\\\\\",center:\\\\\\\"center\\\\\\\",farthest:\\\\\\\"bottom\\\\\\\"}),_render:function(t){t.beginPath();var e=this.calcLinePoints();t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.lineWidth=this.strokeWidth;var i=t.strokeStyle;t.strokeStyle=this.stroke||t.fillStyle,this.stroke\\\\u0026\\\\u0026this._renderStroke(t),t.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(t){return i(this.callSuper(\\\\\\\"toObject\\\\\\\",t),this.calcLinePoints())},_getNonTransformedDimensions:function(){var t=this.callSuper(\\\\\\\"_getNonTransformedDimensions\\\\\\\");return\\\\\\\"butt\\\\\\\"===this.strokeLineCap\\\\u0026\\\\u0026(0===this.width\\\\u0026\\\\u0026(t.y-=this.strokeWidth),0===this.height\\\\u0026\\\\u0026(t.x-=this.strokeWidth)),t},calcLinePoints:function(){var t=this.x1\\\\u003c=this.x2?-1:1,e=this.y1\\\\u003c=this.y2?-1:1,i=t*this.width*.5,r=e*this.height*.5;return{x1:i,x2:t*this.width*-.5,y1:r,y2:e*this.height*-.5}},_toSVG:function(){var t=this.calcLinePoints();return[\\\\\\\"\\\\u003cline \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'x1=\\\\\\\"',t.x1,'\\\\\\\" y1=\\\\\\\"',t.y1,'\\\\\\\" x2=\\\\\\\"',t.x2,'\\\\\\\" y2=\\\\\\\"',t.y2,'\\\\\\\" /\\\\u003e\\\\\\\\n']}}),e.Line.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"x1 y1 x2 y2\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Line.fromElement=function(t,r,n){n=n||{};var o=e.parseAttributes(t,e.Line.ATTRIBUTE_NAMES),s=[o.x1||0,o.y1||0,o.x2||0,o.y2||0];r(new e.Line(s,i(o,n)))},e.Line.fromObject=function(t,i){var n=r(t,!0);n.points=[t.x1,t.y1,t.x2,t.y2],e.Object._fromObject(\\\\\\\"Line\\\\\\\",n,(function(t){delete t.points,i\\\\u0026\\\\u0026i(t)}),\\\\\\\"points\\\\\\\")})}(t),function(t){var e=t.fabric||(t.fabric={}),i=Math.PI;e.Circle?e.warn(\\\\\\\"fabric.Circle is already defined.\\\\\\\"):(e.Circle=e.util.createClass(e.Object,{type:\\\\\\\"circle\\\\\\\",radius:0,startAngle:0,endAngle:2*i,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"radius\\\\\\\",\\\\\\\"startAngle\\\\\\\",\\\\\\\"endAngle\\\\\\\"),_set:function(t,e){return this.callSuper(\\\\\\\"_set\\\\\\\",t,e),\\\\\\\"radius\\\\\\\"===t\\\\u0026\\\\u0026this.setRadius(e),this},toObject:function(t){return this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"radius\\\\\\\",\\\\\\\"startAngle\\\\\\\",\\\\\\\"endAngle\\\\\\\"].concat(t))},_toSVG:function(){var t,r=(this.endAngle-this.startAngle)%(2*i);if(0===r)t=[\\\\\\\"\\\\u003ccircle \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'cx=\\\\\\\"0\\\\\\\" cy=\\\\\\\"0\\\\\\\" ','r=\\\\\\\"',this.radius,'\\\\\\\" /\\\\u003e\\\\\\\\n'];else{var n=e.util.cos(this.startAngle)*this.radius,o=e.util.sin(this.startAngle)*this.radius,s=e.util.cos(this.endAngle)*this.radius,a=e.util.sin(this.endAngle)*this.radius,h=r\\\\u003ei?\\\\\\\"1\\\\\\\":\\\\\\\"0\\\\\\\";t=['\\\\u003cpath d=\\\\\\\"M '+n+\\\\\\\" \\\\\\\"+o,\\\\\\\" A \\\\\\\"+this.radius+\\\\\\\" \\\\\\\"+this.radius,\\\\\\\" 0 \\\\\\\",+h+\\\\\\\" 1\\\\\\\",\\\\\\\" \\\\\\\"+s+\\\\\\\" \\\\\\\"+a,'\\\\\\\" ',\\\\\\\"COMMON_PARTS\\\\\\\",\\\\\\\" /\\\\u003e\\\\\\\\n\\\\\\\"]}return t},_render:function(t){t.beginPath(),t.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(t)},getRadiusX:function(){return this.get(\\\\\\\"radius\\\\\\\")*this.get(\\\\\\\"scaleX\\\\\\\")},getRadiusY:function(){return this.get(\\\\\\\"radius\\\\\\\")*this.get(\\\\\\\"scaleY\\\\\\\")},setRadius:function(t){return this.radius=t,this.set(\\\\\\\"width\\\\\\\",2*t).set(\\\\\\\"height\\\\\\\",2*t)}}),e.Circle.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"cx cy r\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Circle.fromElement=function(t,i){var r,n=e.parseAttributes(t,e.Circle.ATTRIBUTE_NAMES);if(!(\\\\\\\"radius\\\\\\\"in(r=n)\\\\u0026\\\\u0026r.radius\\\\u003e=0))throw new Error(\\\\\\\"value of `r` attribute is required and can not be negative\\\\\\\");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new e.Circle(n))},e.Circle.fromObject=function(t,i){e.Object._fromObject(\\\\\\\"Circle\\\\\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={});e.Triangle?e.warn(\\\\\\\"fabric.Triangle is already defined\\\\\\\"):(e.Triangle=e.util.createClass(e.Object,{type:\\\\\\\"triangle\\\\\\\",width:100,height:100,_render:function(t){var e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,i),t.lineTo(0,-i),t.lineTo(e,i),t.closePath(),this._renderPaintInOrder(t)},_toSVG:function(){var t=this.width/2,e=this.height/2;return[\\\\\\\"\\\\u003cpolygon \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'points=\\\\\\\"',[-t+\\\\\\\" \\\\\\\"+e,\\\\\\\"0 \\\\\\\"+-e,t+\\\\\\\" \\\\\\\"+e].join(\\\\\\\",\\\\\\\"),'\\\\\\\" /\\\\u003e']}}),e.Triangle.fromObject=function(t,i){return e.Object._fromObject(\\\\\\\"Triangle\\\\\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=2*Math.PI;e.Ellipse?e.warn(\\\\\\\"fabric.Ellipse is already defined.\\\\\\\"):(e.Ellipse=e.util.createClass(e.Object,{type:\\\\\\\"ellipse\\\\\\\",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"),initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this.set(\\\\\\\"rx\\\\\\\",t\\\\u0026\\\\u0026t.rx||0),this.set(\\\\\\\"ry\\\\\\\",t\\\\u0026\\\\u0026t.ry||0)},_set:function(t,e){switch(this.callSuper(\\\\\\\"_set\\\\\\\",t,e),t){case\\\\\\\"rx\\\\\\\":this.rx=e,this.set(\\\\\\\"width\\\\\\\",2*e);break;case\\\\\\\"ry\\\\\\\":this.ry=e,this.set(\\\\\\\"height\\\\\\\",2*e)}return this},getRx:function(){return this.get(\\\\\\\"rx\\\\\\\")*this.get(\\\\\\\"scaleX\\\\\\\")},getRy:function(){return this.get(\\\\\\\"ry\\\\\\\")*this.get(\\\\\\\"scaleY\\\\\\\")},toObject:function(t){return this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"].concat(t))},_toSVG:function(){return[\\\\\\\"\\\\u003cellipse \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'cx=\\\\\\\"0\\\\\\\" cy=\\\\\\\"0\\\\\\\" ','rx=\\\\\\\"',this.rx,'\\\\\\\" ry=\\\\\\\"',this.ry,'\\\\\\\" /\\\\u003e\\\\\\\\n']},_render:function(t){t.beginPath(),t.save(),t.transform(1,0,0,this.ry/this.rx,0,0),t.arc(0,0,this.rx,0,i,!1),t.restore(),this._renderPaintInOrder(t)}}),e.Ellipse.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"cx cy rx ry\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Ellipse.fromElement=function(t,i){var r=e.parseAttributes(t,e.Ellipse.ATTRIBUTE_NAMES);r.left=(r.left||0)-r.rx,r.top=(r.top||0)-r.ry,i(new e.Ellipse(r))},e.Ellipse.fromObject=function(t,i){e.Object._fromObject(\\\\\\\"Ellipse\\\\\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend;e.Rect?e.warn(\\\\\\\"fabric.Rect is already defined\\\\\\\"):(e.Rect=e.util.createClass(e.Object,{stateProperties:e.Object.prototype.stateProperties.concat(\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"),type:\\\\\\\"rect\\\\\\\",rx:0,ry:0,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"),initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this._initRxRy()},_initRxRy:function(){this.rx\\\\u0026\\\\u0026!this.ry?this.ry=this.rx:this.ry\\\\u0026\\\\u0026!this.rx\\\\u0026\\\\u0026(this.rx=this.ry)},_render:function(t){var e=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,r=this.width,n=this.height,o=-this.width/2,s=-this.height/2,a=0!==e||0!==i,h=.4477152502;t.beginPath(),t.moveTo(o+e,s),t.lineTo(o+r-e,s),a\\\\u0026\\\\u0026t.bezierCurveTo(o+r-h*e,s,o+r,s+h*i,o+r,s+i),t.lineTo(o+r,s+n-i),a\\\\u0026\\\\u0026t.bezierCurveTo(o+r,s+n-h*i,o+r-h*e,s+n,o+r-e,s+n),t.lineTo(o+e,s+n),a\\\\u0026\\\\u0026t.bezierCurveTo(o+h*e,s+n,o,s+n-h*i,o,s+n-i),t.lineTo(o,s+i),a\\\\u0026\\\\u0026t.bezierCurveTo(o,s+h*i,o+h*e,s,o+e,s),t.closePath(),this._renderPaintInOrder(t)},toObject:function(t){return this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"rx\\\\\\\",\\\\\\\"ry\\\\\\\"].concat(t))},_toSVG:function(){return[\\\\\\\"\\\\u003crect \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'x=\\\\\\\"',-this.width/2,'\\\\\\\" y=\\\\\\\"',-this.height/2,'\\\\\\\" rx=\\\\\\\"',this.rx,'\\\\\\\" ry=\\\\\\\"',this.ry,'\\\\\\\" width=\\\\\\\"',this.width,'\\\\\\\" height=\\\\\\\"',this.height,'\\\\\\\" /\\\\u003e\\\\\\\\n']}}),e.Rect.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"x y rx ry width height\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Rect.fromElement=function(t,r,n){if(!t)return r(null);n=n||{};var o=e.parseAttributes(t,e.Rect.ATTRIBUTE_NAMES);o.left=o.left||0,o.top=o.top||0,o.height=o.height||0,o.width=o.width||0;var s=new e.Rect(i(n?e.util.object.clone(n):{},o));s.visible=s.visible\\\\u0026\\\\u0026s.width\\\\u003e0\\\\u0026\\\\u0026s.height\\\\u003e0,r(s)},e.Rect.fromObject=function(t,i){return e.Object._fromObject(\\\\\\\"Rect\\\\\\\",t,i)})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.util.array.min,n=e.util.array.max,o=e.util.toFixed;e.Polyline?e.warn(\\\\\\\"fabric.Polyline is already defined\\\\\\\"):(e.Polyline=e.util.createClass(e.Object,{type:\\\\\\\"polyline\\\\\\\",points:null,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"points\\\\\\\"),initialize:function(t,e){e=e||{},this.points=t||[],this.callSuper(\\\\\\\"initialize\\\\\\\",e),this._setPositionDimensions(e)},_setPositionDimensions:function(t){var e,i=this._calcDimensions(t);this.width=i.width,this.height=i.height,t.fromSVG||(e=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2,y:i.top-this.strokeWidth/2},\\\\\\\"left\\\\\\\",\\\\\\\"top\\\\\\\",this.originX,this.originY)),void 0===t.left\\\\u0026\\\\u0026(this.left=t.fromSVG?i.left:e.x),void 0===t.top\\\\u0026\\\\u0026(this.top=t.fromSVG?i.top:e.y),this.pathOffset={x:i.left+this.width/2,y:i.top+this.height/2}},_calcDimensions:function(){var t=this.points,e=r(t,\\\\\\\"x\\\\\\\")||0,i=r(t,\\\\\\\"y\\\\\\\")||0;return{left:e,top:i,width:(n(t,\\\\\\\"x\\\\\\\")||0)-e,height:(n(t,\\\\\\\"y\\\\\\\")||0)-i}},toObject:function(t){return i(this.callSuper(\\\\\\\"toObject\\\\\\\",t),{points:this.points.concat()})},_toSVG:function(){for(var t=[],i=this.pathOffset.x,r=this.pathOffset.y,n=e.Object.NUM_FRACTION_DIGITS,s=0,a=this.points.length;s\\\\u003ca;s++)t.push(o(this.points[s].x-i,n),\\\\\\\",\\\\\\\",o(this.points[s].y-r,n),\\\\\\\" \\\\\\\");return[\\\\\\\"\\\\u003c\\\\\\\"+this.type+\\\\\\\" \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'points=\\\\\\\"',t.join(\\\\\\\"\\\\\\\"),'\\\\\\\" /\\\\u003e\\\\\\\\n']},commonRender:function(t){var e,i=this.points.length,r=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;t.beginPath(),t.moveTo(this.points[0].x-r,this.points[0].y-n);for(var o=0;o\\\\u003ci;o++)e=this.points[o],t.lineTo(e.x-r,e.y-n);return!0},_render:function(t){this.commonRender(t)\\\\u0026\\\\u0026this._renderPaintInOrder(t)},complexity:function(){return this.get(\\\\\\\"points\\\\\\\").length}}),e.Polyline.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polyline.fromElementGenerator=function(t){return function(r,n,o){if(!r)return n(null);o||(o={});var s=e.parsePointsAttribute(r.getAttribute(\\\\\\\"points\\\\\\\")),a=e.parseAttributes(r,e[t].ATTRIBUTE_NAMES);a.fromSVG=!0,n(new e[t](s,i(a,o)))}},e.Polyline.fromElement=e.Polyline.fromElementGenerator(\\\\\\\"Polyline\\\\\\\"),e.Polyline.fromObject=function(t,i){return e.Object._fromObject(\\\\\\\"Polyline\\\\\\\",t,i,\\\\\\\"points\\\\\\\")})}(t),function(t){var e=t.fabric||(t.fabric={});e.Polygon?e.warn(\\\\\\\"fabric.Polygon is already defined\\\\\\\"):(e.Polygon=e.util.createClass(e.Polyline,{type:\\\\\\\"polygon\\\\\\\",_render:function(t){this.commonRender(t)\\\\u0026\\\\u0026(t.closePath(),this._renderPaintInOrder(t))}}),e.Polygon.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(),e.Polygon.fromElement=e.Polyline.fromElementGenerator(\\\\\\\"Polygon\\\\\\\"),e.Polygon.fromObject=function(t,i){e.Object._fromObject(\\\\\\\"Polygon\\\\\\\",t,i,\\\\\\\"points\\\\\\\")})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.array.min,r=e.util.array.max,n=e.util.object.extend,o=Object.prototype.toString,s=e.util.toFixed;e.Path?e.warn(\\\\\\\"fabric.Path is already defined\\\\\\\"):(e.Path=e.util.createClass(e.Object,{type:\\\\\\\"path\\\\\\\",path:null,cacheProperties:e.Object.prototype.cacheProperties.concat(\\\\\\\"path\\\\\\\",\\\\\\\"fillRule\\\\\\\"),stateProperties:e.Object.prototype.stateProperties.concat(\\\\\\\"path\\\\\\\"),initialize:function(t,i){i=i||{},this.callSuper(\\\\\\\"initialize\\\\\\\",i),t||(t=[]);var r=\\\\\\\"[object Array]\\\\\\\"===o.call(t);this.path=e.util.makePathSimpler(r?t:e.util.parsePath(t)),this.path\\\\u0026\\\\u0026e.Polyline.prototype._setPositionDimensions.call(this,i)},_renderPathCommands:function(t){var e,i=0,r=0,n=0,o=0,s=0,a=0,h=-this.pathOffset.x,c=-this.pathOffset.y;t.beginPath();for(var l=0,u=this.path.length;l\\\\u003cu;++l)switch((e=this.path[l])[0]){case\\\\\\\"L\\\\\\\":n=e[1],o=e[2],t.lineTo(n+h,o+c);break;case\\\\\\\"M\\\\\\\":i=n=e[1],r=o=e[2],t.moveTo(n+h,o+c);break;case\\\\\\\"C\\\\\\\":n=e[5],o=e[6],s=e[3],a=e[4],t.bezierCurveTo(e[1]+h,e[2]+c,s+h,a+c,n+h,o+c);break;case\\\\\\\"Q\\\\\\\":t.quadraticCurveTo(e[1]+h,e[2]+c,e[3]+h,e[4]+c),n=e[3],o=e[4],s=e[1],a=e[2];break;case\\\\\\\"z\\\\\\\":case\\\\\\\"Z\\\\\\\":n=i,o=r,t.closePath()}},_render:function(t){this._renderPathCommands(t),this._renderPaintInOrder(t)},toString:function(){return\\\\\\\"#\\\\u003cfabric.Path (\\\\\\\"+this.complexity()+'): { \\\\\\\"top\\\\\\\": '+this.top+', \\\\\\\"left\\\\\\\": '+this.left+\\\\\\\" }\\\\u003e\\\\\\\"},toObject:function(t){return n(this.callSuper(\\\\\\\"toObject\\\\\\\",t),{path:this.path.map((function(t){return t.slice()}))})},toDatalessObject:function(t){var e=this.toObject([\\\\\\\"sourcePath\\\\\\\"].concat(t));return e.sourcePath\\\\u0026\\\\u0026delete e.path,e},_toSVG:function(){return[\\\\\\\"\\\\u003cpath \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'d=\\\\\\\"',e.util.joinPath(this.path),'\\\\\\\" stroke-linecap=\\\\\\\"round\\\\\\\" ',\\\\\\\"/\\\\u003e\\\\\\\\n\\\\\\\"]},_getOffsetTransform:function(){var t=e.Object.NUM_FRACTION_DIGITS;return\\\\\\\" translate(\\\\\\\"+s(-this.pathOffset.x,t)+\\\\\\\", \\\\\\\"+s(-this.pathOffset.y,t)+\\\\\\\")\\\\\\\"},toClipPathSVG:function(t){var e=this._getOffsetTransform();return\\\\\\\"\\\\\\\\t\\\\\\\"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},toSVG:function(t){var e=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var t,n,o=[],s=[],a=0,h=0,c=0,l=0,u=0,f=this.path.length;u\\\\u003cf;++u){switch((t=this.path[u])[0]){case\\\\\\\"L\\\\\\\":c=t[1],l=t[2],n=[];break;case\\\\\\\"M\\\\\\\":a=c=t[1],h=l=t[2],n=[];break;case\\\\\\\"C\\\\\\\":n=e.util.getBoundsOfCurve(c,l,t[1],t[2],t[3],t[4],t[5],t[6]),c=t[5],l=t[6];break;case\\\\\\\"Q\\\\\\\":n=e.util.getBoundsOfCurve(c,l,t[1],t[2],t[1],t[2],t[3],t[4]),c=t[3],l=t[4];break;case\\\\\\\"z\\\\\\\":case\\\\\\\"Z\\\\\\\":c=a,l=h}n.forEach((function(t){o.push(t.x),s.push(t.y)})),o.push(c),s.push(l)}var d=i(o)||0,g=i(s)||0;return{left:d,top:g,width:(r(o)||0)-d,height:(r(s)||0)-g}}}),e.Path.fromObject=function(t,i){if(\\\\\\\"string\\\\\\\"==typeof t.sourcePath){var r=t.sourcePath;e.loadSVGFromURL(r,(function(e){var r=e[0];r.setOptions(t),i\\\\u0026\\\\u0026i(r)}))}else e.Object._fromObject(\\\\\\\"Path\\\\\\\",t,i,\\\\\\\"path\\\\\\\")},e.Path.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat([\\\\\\\"d\\\\\\\"]),e.Path.fromElement=function(t,i,r){var o=e.parseAttributes(t,e.Path.ATTRIBUTE_NAMES);o.fromSVG=!0,i(new e.Path(o.d,n(o,r)))})}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.array.min,r=e.util.array.max;e.Group||(e.Group=e.util.createClass(e.Object,e.Collection,{type:\\\\\\\"group\\\\\\\",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(t,e,i){e=e||{},this._objects=[],i\\\\u0026\\\\u0026this.callSuper(\\\\\\\"initialize\\\\\\\",e),this._objects=t||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;if(i)this._updateObjectsACoords();else{var n=e\\\\u0026\\\\u0026e.centerPoint;void 0!==e.originX\\\\u0026\\\\u0026(this.originX=e.originX),void 0!==e.originY\\\\u0026\\\\u0026(this.originY=e.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete e.centerPoint,this.callSuper(\\\\\\\"initialize\\\\\\\",e)}this.setCoords()},_updateObjectsACoords:function(){for(var t=this._objects.length;t--;)this._objects[t].setCoords(true)},_updateObjectsCoords:function(t){t=t||this.getCenterPoint();for(var e=this._objects.length;e--;)this._updateObjectCoords(this._objects[e],t)},_updateObjectCoords:function(t,e){var i=t.left,r=t.top;t.set({left:i-e.x,top:r-e.y}),t.group=this,t.setCoords(!0)},toString:function(){return\\\\\\\"#\\\\u003cfabric.Group: (\\\\\\\"+this.complexity()+\\\\\\\")\\\\u003e\\\\\\\"},addWithUpdate:function(t){var i=!!this.group;return this._restoreObjectsState(),e.util.resetObjectTransform(this),t\\\\u0026\\\\u0026(i\\\\u0026\\\\u0026e.util.removeTransformFromObject(t,this.group.calcTransformMatrix()),this._objects.push(t),t.group=this,t._set(\\\\\\\"canvas\\\\\\\",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(t){return this._restoreObjectsState(),e.util.resetObjectTransform(this),this.remove(t),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(t){this.dirty=!0,t.group=this,t._set(\\\\\\\"canvas\\\\\\\",this.canvas)},_onObjectRemoved:function(t){this.dirty=!0,delete t.group},_set:function(t,i){var r=this._objects.length;if(this.useSetOnGroup)for(;r--;)this._objects[r].setOnGroup(t,i);if(\\\\\\\"canvas\\\\\\\"===t)for(;r--;)this._objects[r]._set(t,i);e.Object.prototype._set.call(this,t,i)},toObject:function(t){var i=this.includeDefaultValues,r=this._objects.filter((function(t){return!t.excludeFromExport})).map((function(e){var r=e.includeDefaultValues;e.includeDefaultValues=i;var n=e.toObject(t);return e.includeDefaultValues=r,n})),n=e.Object.prototype.toObject.call(this,t);return n.objects=r,n},toDatalessObject:function(t){var i,r=this.sourcePath;if(r)i=r;else{var n=this.includeDefaultValues;i=this._objects.map((function(e){var i=e.includeDefaultValues;e.includeDefaultValues=n;var r=e.toDatalessObject(t);return e.includeDefaultValues=i,r}))}var o=e.Object.prototype.toDatalessObject.call(this,t);return o.objects=i,o},render:function(t){this._transformDone=!0,this.callSuper(\\\\\\\"render\\\\\\\",t),this._transformDone=!1},shouldCache:function(){var t=e.Object.prototype.shouldCache.call(this);if(t)for(var i=0,r=this._objects.length;i\\\\u003cr;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return t},willDrawShadow:function(){if(e.Object.prototype.willDrawShadow.call(this))return!0;for(var t=0,i=this._objects.length;t\\\\u003ci;t++)if(this._objects[t].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group\\\\u0026\\\\u0026this.group.isOnACache()},drawObject:function(t){for(var e=0,i=this._objects.length;e\\\\u003ci;e++)this._objects[e].render(t);this._drawClipPath(t)},isCacheDirty:function(t){if(this.callSuper(\\\\\\\"isCacheDirty\\\\\\\",t))return!0;if(!this.statefullCache)return!1;for(var e=0,i=this._objects.length;e\\\\u003ci;e++)if(this._objects[e].isCacheDirty(!0)){if(this._cacheCanvas){var r=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-r/2,-n/2,r,n)}return!0}return!1},_restoreObjectsState:function(){var t=this.calcOwnMatrix();return this._objects.forEach((function(i){e.util.addTransformToObject(i,t),delete i.group,i.setCoords()})),this},realizeTransform:function(t,i){return e.util.addTransformToObject(t,i),t},destroy:function(){return this._objects.forEach((function(t){t.set(\\\\\\\"dirty\\\\\\\",!0)})),this._restoreObjectsState()},toActiveSelection:function(){if(this.canvas){var t=this._objects,i=this.canvas;this._objects=[];var r=this.toObject();delete r.objects;var n=new e.ActiveSelection([]);return n.set(r),n.type=\\\\\\\"activeSelection\\\\\\\",i.remove(this),t.forEach((function(t){t.group=n,t.dirty=!0,i.add(t)})),n.canvas=i,n._objects=t,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject((function(t){t.setCoords(true)})),this},_calcBounds:function(t){for(var e,i,r,n,o=[],s=[],a=[\\\\\\\"tr\\\\\\\",\\\\\\\"br\\\\\\\",\\\\\\\"bl\\\\\\\",\\\\\\\"tl\\\\\\\"],h=0,c=this._objects.length,l=a.length;h\\\\u003cc;++h){for(r=(e=this._objects[h]).calcACoords(),n=0;n\\\\u003cl;n++)i=a[n],o.push(r[i].x),s.push(r[i].y);e.aCoords=r}this._getBounds(o,s,t)},_getBounds:function(t,n,o){var s=new e.Point(i(t),i(n)),a=new e.Point(r(t),r(n)),h=s.y||0,c=s.x||0,l=a.x-s.x||0,u=a.y-s.y||0;this.width=l,this.height=u,o||this.setPositionByOrigin({x:c,y:h},\\\\\\\"left\\\\\\\",\\\\\\\"top\\\\\\\")},_toSVG:function(t){for(var e=[\\\\\\\"\\\\u003cg \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",\\\\\\\" \\\\u003e\\\\\\\\n\\\\\\\"],i=0,r=this._objects.length;i\\\\u003cr;i++)e.push(\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\\\\",this._objects[i].toSVG(t));return e.push(\\\\\\\"\\\\u003c/g\\\\u003e\\\\\\\\n\\\\\\\"),e},getSvgStyles:function(){var t=void 0!==this.opacity\\\\u0026\\\\u00261!==this.opacity?\\\\\\\"opacity: \\\\\\\"+this.opacity+\\\\\\\";\\\\\\\":\\\\\\\"\\\\\\\",e=this.visible?\\\\\\\"\\\\\\\":\\\\\\\" visibility: hidden;\\\\\\\";return[t,this.getSvgFilter(),e].join(\\\\\\\"\\\\\\\")},toClipPathSVG:function(t){for(var e=[],i=0,r=this._objects.length;i\\\\u003cr;i++)e.push(\\\\\\\"\\\\\\\\t\\\\\\\",this._objects[i].toClipPathSVG(t));return this._createBaseClipPathSVGMarkup(e,{reviver:t})}}),e.Group.fromObject=function(t,i){var r=t.objects,n=e.util.object.clone(t,!0);delete n.objects,\\\\\\\"string\\\\\\\"!=typeof r?e.util.enlivenObjects(r,(function(r){e.util.enlivenObjects([t.clipPath],(function(n){var o=e.util.object.clone(t,!0);o.clipPath=n[0],delete o.objects,i\\\\u0026\\\\u0026i(new e.Group(r,o,!0))}))})):e.loadSVGFromURL(r,(function(o){var s=e.util.groupSVGElements(o,t,r);s.set(n),i\\\\u0026\\\\u0026i(s)}))})}(t),function(t){var e=t.fabric||(t.fabric={});e.ActiveSelection||(e.ActiveSelection=e.util.createClass(e.Group,{type:\\\\\\\"activeSelection\\\\\\\",initialize:function(t,i){i=i||{},this._objects=t||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;i.originX\\\\u0026\\\\u0026(this.originX=i.originX),i.originY\\\\u0026\\\\u0026(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),e.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var t=this._objects.concat();this._objects=[];var i=e.Object.prototype.toObject.call(this),r=new e.Group([]);if(delete i.type,r.set(i),t.forEach((function(t){t.canvas.remove(t),t.group=r})),r._objects=t,!this.canvas)return r;var n=this.canvas;return n.add(r),n._activeObject=r,r.setCoords(),r},onDeselect:function(){return this.destroy(),!1},toString:function(){return\\\\\\\"#\\\\u003cfabric.ActiveSelection: (\\\\\\\"+this.complexity()+\\\\\\\")\\\\u003e\\\\\\\"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(t,e,i){t.save(),t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper(\\\\\\\"_renderControls\\\\\\\",t,e),void 0===(i=i||{}).hasControls\\\\u0026\\\\u0026(i.hasControls=!1),i.forActiveSelection=!0;for(var r=0,n=this._objects.length;r\\\\u003cn;r++)this._objects[r]._renderControls(t,i);t.restore()}}),e.ActiveSelection.fromObject=function(t,i){e.util.enlivenObjects(t.objects,(function(r){delete t.objects,i\\\\u0026\\\\u0026i(new e.ActiveSelection(r,t,!0))}))})}(t),function(t){var e=T.util.object.extend;t.fabric||(t.fabric={}),t.fabric.Image?T.warn(\\\\\\\"fabric.Image is already defined.\\\\\\\"):(T.Image=T.util.createClass(T.Object,{type:\\\\\\\"image\\\\\\\",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:T.Object.prototype.stateProperties.concat(\\\\\\\"cropX\\\\\\\",\\\\\\\"cropY\\\\\\\"),cacheProperties:T.Object.prototype.cacheProperties.concat(\\\\\\\"cropX\\\\\\\",\\\\\\\"cropY\\\\\\\"),cacheKey:\\\\\\\"\\\\\\\",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(t,e){e||(e={}),this.filters=[],this.cacheKey=\\\\\\\"texture\\\\\\\"+T.Object.__uid++,this.callSuper(\\\\\\\"initialize\\\\\\\",e),this._initElement(t,e)},getElement:function(){return this._element||{}},setElement:function(t,e){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+\\\\\\\"_filtered\\\\\\\"),this._element=t,this._originalElement=t,this._initConfig(e),0!==this.filters.length\\\\u0026\\\\u0026this.applyFilters(),this.resizeFilter\\\\u0026\\\\u0026this.applyResizeFilters(),this},removeTexture:function(t){var e=T.filterBackend;e\\\\u0026\\\\u0026e.evictCachesForKey\\\\u0026\\\\u0026e.evictCachesForKey(t)},dispose:function(){this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+\\\\\\\"_filtered\\\\\\\"),this._cacheContext=void 0,[\\\\\\\"_originalElement\\\\\\\",\\\\\\\"_element\\\\\\\",\\\\\\\"_filteredEl\\\\\\\",\\\\\\\"_cacheCanvas\\\\\\\"].forEach(function(t){T.util.cleanUpJsdomNode(this[t]),this[t]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement\\\\u0026\\\\u0026(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var t=this.getElement();return{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height}},_stroke:function(t){if(this.stroke\\\\u0026\\\\u00260!==this.strokeWidth){var e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,-i),t.lineTo(e,-i),t.lineTo(e,i),t.lineTo(-e,i),t.lineTo(-e,-i),t.closePath()}},toObject:function(t){var i=[];this.filters.forEach((function(t){t\\\\u0026\\\\u0026i.push(t.toObject())}));var r=e(this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"cropX\\\\\\\",\\\\\\\"cropY\\\\\\\"].concat(t)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter\\\\u0026\\\\u0026(r.resizeFilter=this.resizeFilter.toObject()),r},hasCrop:function(){return this.cropX||this.cropY||this.width\\\\u003cthis._element.width||this.height\\\\u003cthis._element.height},_toSVG:function(){var t,e=[],i=[],r=this._element,n=-this.width/2,o=-this.height/2,s=\\\\\\\"\\\\\\\",a=\\\\\\\"\\\\\\\";if(!r)return[];if(this.hasCrop()){var h=T.Object.__uid++;e.push('\\\\u003cclipPath id=\\\\\\\"imageCrop_'+h+'\\\\\\\"\\\\u003e\\\\\\\\n','\\\\\\\\t\\\\u003crect x=\\\\\\\"'+n+'\\\\\\\" y=\\\\\\\"'+o+'\\\\\\\" width=\\\\\\\"'+this.width+'\\\\\\\" height=\\\\\\\"'+this.height+'\\\\\\\" /\\\\u003e\\\\\\\\n',\\\\\\\"\\\\u003c/clipPath\\\\u003e\\\\\\\\n\\\\\\\"),s=' clip-path=\\\\\\\"url(#imageCrop_'+h+')\\\\\\\" '}if(this.imageSmoothing||(a='\\\\\\\" image-rendering=\\\\\\\"optimizeSpeed'),i.push(\\\\\\\"\\\\\\\\t\\\\u003cimage \\\\\\\",\\\\\\\"COMMON_PARTS\\\\\\\",'xlink:href=\\\\\\\"',this.getSvgSrc(!0),'\\\\\\\" x=\\\\\\\"',n-this.cropX,'\\\\\\\" y=\\\\\\\"',o-this.cropY,'\\\\\\\" width=\\\\\\\"',r.width||r.naturalWidth,'\\\\\\\" height=\\\\\\\"',r.height||r.height,a,'\\\\\\\"',s,\\\\\\\"\\\\u003e\\\\u003c/image\\\\u003e\\\\\\\\n\\\\\\\"),this.stroke||this.strokeDashArray){var c=this.fill;this.fill=null,t=[\\\\\\\"\\\\\\\\t\\\\u003crect \\\\\\\",'x=\\\\\\\"',n,'\\\\\\\" y=\\\\\\\"',o,'\\\\\\\" width=\\\\\\\"',this.width,'\\\\\\\" height=\\\\\\\"',this.height,'\\\\\\\" style=\\\\\\\"',this.getSvgStyles(),'\\\\\\\"/\\\\u003e\\\\\\\\n'],this.fill=c}return e=\\\\\\\"fill\\\\\\\"!==this.paintFirst?e.concat(t,i):e.concat(i,t)},getSrc:function(t){var e=t?this._element:this._originalElement;return e?e.toDataURL?e.toDataURL():this.srcFromAttribute?e.getAttribute(\\\\\\\"src\\\\\\\"):e.src:this.src||\\\\\\\"\\\\\\\"},setSrc:function(t,e,i){return T.util.loadImage(t,(function(t,r){this.setElement(t,i),this._setWidthHeight(),e\\\\u0026\\\\u0026e(this,r)}),this,i\\\\u0026\\\\u0026i.crossOrigin),this},toString:function(){return'#\\\\u003cfabric.Image: { src: \\\\\\\"'+this.getSrc()+'\\\\\\\" }\\\\u003e'},applyResizeFilters:function(){var t=this.resizeFilter,e=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),r=i.scaleX,n=i.scaleY,o=this._filteredEl||this._originalElement;if(this.group\\\\u0026\\\\u0026this.set(\\\\\\\"dirty\\\\\\\",!0),!t||r\\\\u003ee\\\\u0026\\\\u0026n\\\\u003ee)return this._element=o,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=r,void(this._lastScaleY=n);T.filterBackend||(T.filterBackend=T.initFilterBackend());var s=T.util.createCanvasElement(),a=this._filteredEl?this.cacheKey+\\\\\\\"_filtered\\\\\\\":this.cacheKey,h=o.width,c=o.height;s.width=h,s.height=c,this._element=s,this._lastScaleX=t.scaleX=r,this._lastScaleY=t.scaleY=n,T.filterBackend.applyFilters([t],o,h,c,this._element,a),this._filterScalingX=s.width/this._originalElement.width,this._filterScalingY=s.height/this._originalElement.height},applyFilters:function(t){if(t=(t=t||this.filters||[]).filter((function(t){return t\\\\u0026\\\\u0026!t.isNeutralState()})),this.set(\\\\\\\"dirty\\\\\\\",!0),this.removeTexture(this.cacheKey+\\\\\\\"_filtered\\\\\\\"),0===t.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var e=this._originalElement,i=e.naturalWidth||e.width,r=e.naturalHeight||e.height;if(this._element===this._originalElement){var n=T.util.createCanvasElement();n.width=i,n.height=r,this._element=n,this._filteredEl=n}else this._element=this._filteredEl,this._filteredEl.getContext(\\\\\\\"2d\\\\\\\").clearRect(0,0,i,r),this._lastScaleX=1,this._lastScaleY=1;return T.filterBackend||(T.filterBackend=T.initFilterBackend()),T.filterBackend.applyFilters(t,this._originalElement,i,r,this._element,this.cacheKey),this._originalElement.width===this._element.width\\\\u0026\\\\u0026this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(t){T.util.setImageSmoothing(t,this.imageSmoothing),!0!==this.isMoving\\\\u0026\\\\u0026this.resizeFilter\\\\u0026\\\\u0026this._needsResize()\\\\u0026\\\\u0026this.applyResizeFilters(),this._stroke(t),this._renderPaintInOrder(t)},drawCacheOnCanvas:function(t){T.util.setImageSmoothing(t,this.imageSmoothing),T.Object.prototype.drawCacheOnCanvas.call(this,t)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(t){var e=this._element;if(e){var i=this._filterScalingX,r=this._filterScalingY,n=this.width,o=this.height,s=Math.min,a=Math.max,h=a(this.cropX,0),c=a(this.cropY,0),l=e.naturalWidth||e.width,u=e.naturalHeight||e.height,f=h*i,d=c*r,g=s(n*i,l-f),p=s(o*r,u-d),v=-n/2,m=-o/2,y=s(n,l/i-h),_=s(o,u/r-c);e\\\\u0026\\\\u0026t.drawImage(e,f,d,g,p,v,m,y,_)}},_needsResize:function(){var t=this.getTotalObjectScaling();return t.scaleX!==this._lastScaleX||t.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(t,e){this.setElement(T.util.getById(t),e),T.util.addClass(this.getElement(),T.Image.CSS_CANVAS)},_initConfig:function(t){t||(t={}),this.setOptions(t),this._setWidthHeight(t)},_initFilters:function(t,e){t\\\\u0026\\\\u0026t.length?T.util.enlivenObjects(t,(function(t){e\\\\u0026\\\\u0026e(t)}),\\\\\\\"fabric.Image.filters\\\\\\\"):e\\\\u0026\\\\u0026e()},_setWidthHeight:function(t){t||(t={});var e=this.getElement();this.width=t.width||e.naturalWidth||e.width||0,this.height=t.height||e.naturalHeight||e.height||0},parsePreserveAspectRatioAttribute:function(){var t,e=T.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||\\\\\\\"\\\\\\\"),i=this._element.width,r=this._element.height,n=1,o=1,s=0,a=0,h=0,c=0,l=this.width,u=this.height,f={width:l,height:u};return!e||\\\\\\\"none\\\\\\\"===e.alignX\\\\u0026\\\\u0026\\\\\\\"none\\\\\\\"===e.alignY?(n=l/i,o=u/r):(\\\\\\\"meet\\\\\\\"===e.meetOrSlice\\\\u0026\\\\u0026(t=(l-i*(n=o=T.util.findScaleToFit(this._element,f)))/2,\\\\\\\"Min\\\\\\\"===e.alignX\\\\u0026\\\\u0026(s=-t),\\\\\\\"Max\\\\\\\"===e.alignX\\\\u0026\\\\u0026(s=t),t=(u-r*o)/2,\\\\\\\"Min\\\\\\\"===e.alignY\\\\u0026\\\\u0026(a=-t),\\\\\\\"Max\\\\\\\"===e.alignY\\\\u0026\\\\u0026(a=t)),\\\\\\\"slice\\\\\\\"===e.meetOrSlice\\\\u0026\\\\u0026(t=i-l/(n=o=T.util.findScaleToCover(this._element,f)),\\\\\\\"Mid\\\\\\\"===e.alignX\\\\u0026\\\\u0026(h=t/2),\\\\\\\"Max\\\\\\\"===e.alignX\\\\u0026\\\\u0026(h=t),t=r-u/o,\\\\\\\"Mid\\\\\\\"===e.alignY\\\\u0026\\\\u0026(c=t/2),\\\\\\\"Max\\\\\\\"===e.alignY\\\\u0026\\\\u0026(c=t),i=l/n,r=u/o)),{width:i,height:r,scaleX:n,scaleY:o,offsetLeft:s,offsetTop:a,cropX:h,cropY:c}}}),T.Image.CSS_CANVAS=\\\\\\\"canvas-img\\\\\\\",T.Image.prototype.getSvgSrc=T.Image.prototype.getSrc,T.Image.fromObject=function(t,e){var i=T.util.object.clone(t);T.util.loadImage(i.src,(function(t,r){r?e\\\\u0026\\\\u0026e(null,!0):T.Image.prototype._initFilters.call(i,i.filters,(function(r){i.filters=r||[],T.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(r){i.resizeFilter=r[0],T.util.enlivenObjects([i.clipPath],(function(r){i.clipPath=r[0];var n=new T.Image(t,i);e(n,!1)}))}))}))}),null,i.crossOrigin)},T.Image.fromURL=function(t,e,i){T.util.loadImage(t,(function(t,r){e\\\\u0026\\\\u0026e(new T.Image(t,i),r)}),null,i\\\\u0026\\\\u0026i.crossOrigin)},T.Image.ATTRIBUTE_NAMES=T.SHARED_ATTRIBUTES.concat(\\\\\\\"x y width height preserveAspectRatio xlink:href crossOrigin image-rendering\\\\\\\".split(\\\\\\\" \\\\\\\")),T.Image.fromElement=function(t,i,r){var n=T.parseAttributes(t,T.Image.ATTRIBUTE_NAMES);T.Image.fromURL(n[\\\\\\\"xlink:href\\\\\\\"],i,e(r?T.util.object.clone(r):{},n))})}(t),T.util.object.extend(T.Object.prototype,{_getAngleValueForStraighten:function(){var t=this.angle%360;return t\\\\u003e0?90*Math.round((t-1)/90):90*Math.round(t/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(t){var e=function(){},i=(t=t||{}).onComplete||e,r=t.onChange||e,n=this;return T.util.animate({startValue:this.get(\\\\\\\"angle\\\\\\\"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(t){n.rotate(t),r()},onComplete:function(){n.setCoords(),i()}}),this}}),T.util.object.extend(T.StaticCanvas.prototype,{straightenObject:function(t){return t.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(t){return t.fxStraighten({onChange:this.requestRenderAllBound}),this}}),function(){function t(t,e){var i=\\\\\\\"precision \\\\\\\"+e+\\\\\\\" float;\\\\\\\\nvoid main(){}\\\\\\\",r=t.createShader(t.FRAGMENT_SHADER);return t.shaderSource(r,i),t.compileShader(r),!!t.getShaderParameter(r,t.COMPILE_STATUS)}function e(t){t\\\\u0026\\\\u0026t.tileSize\\\\u0026\\\\u0026(this.tileSize=t.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}T.isWebglSupported=function(e){if(T.isLikelyNode)return!1;e=e||T.WebglFilterBackend.prototype.tileSize;var i=document.createElement(\\\\\\\"canvas\\\\\\\"),r=i.getContext(\\\\\\\"webgl\\\\\\\")||i.getContext(\\\\\\\"experimental-webgl\\\\\\\"),n=!1;if(r){T.maxTextureSize=r.getParameter(r.MAX_TEXTURE_SIZE),n=T.maxTextureSize\\\\u003e=e;for(var o=[\\\\\\\"highp\\\\\\\",\\\\\\\"mediump\\\\\\\",\\\\\\\"lowp\\\\\\\"],s=0;s\\\\u003c3;s++)if(t(r,o[s])){T.webGlPrecision=o[s];break}}return this.isSupported=n,n},T.WebglFilterBackend=e,e.prototype={tileSize:2048,resources:{},setupGLContext:function(t,e){this.dispose(),this.createWebGLCanvas(t,e),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(t,e)},chooseFastestCopyGLTo2DMethod:function(t,e){var i,r=void 0!==window.performance;try{new ImageData(1,1),i=!0}catch(t){i=!1}var n=\\\\\\\"undefined\\\\\\\"!=typeof ArrayBuffer,o=\\\\\\\"undefined\\\\\\\"!=typeof Uint8ClampedArray;if(r\\\\u0026\\\\u0026i\\\\u0026\\\\u0026n\\\\u0026\\\\u0026o){var s=T.util.createCanvasElement(),a=new ArrayBuffer(t*e*4);if(T.forceGLPutImageData)return this.imageBuffer=a,void(this.copyGLTo2D=A);var h,c,l={imageBuffer:a,destinationWidth:t,destinationHeight:e,targetCanvas:s};s.width=t,s.height=e,h=window.performance.now(),k.call(l,this.gl,l),c=window.performance.now()-h,h=window.performance.now(),A.call(l,this.gl,l),c\\\\u003ewindow.performance.now()-h?(this.imageBuffer=a,this.copyGLTo2D=A):this.copyGLTo2D=k}},createWebGLCanvas:function(t,e){var i=T.util.createCanvasElement();i.width=t,i.height=e;var r={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},n=i.getContext(\\\\\\\"webgl\\\\\\\",r);n||(n=i.getContext(\\\\\\\"experimental-webgl\\\\\\\",r)),n\\\\u0026\\\\u0026(n.clearColor(0,0,0,0),this.canvas=i,this.gl=n)},applyFilters:function(t,e,i,r,n,o){var s,a=this.gl;o\\\\u0026\\\\u0026(s=this.getCachedTexture(o,e));var h={originalWidth:e.width||e.originalWidth,originalHeight:e.height||e.originalHeight,sourceWidth:i,sourceHeight:r,destinationWidth:i,destinationHeight:r,context:a,sourceTexture:this.createTexture(a,i,r,!s\\\\u0026\\\\u0026e),targetTexture:this.createTexture(a,i,r),originalTexture:s||this.createTexture(a,i,r,!s\\\\u0026\\\\u0026e),passes:t.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},c=a.createFramebuffer();return a.bindFramebuffer(a.FRAMEBUFFER,c),t.forEach((function(t){t\\\\u0026\\\\u0026t.applyTo(h)})),function(t){var e=t.targetCanvas,i=e.width,r=e.height,n=t.destinationWidth,o=t.destinationHeight;i===n\\\\u0026\\\\u0026r===o||(e.width=n,e.height=o)}(h),this.copyGLTo2D(a,h),a.bindTexture(a.TEXTURE_2D,null),a.deleteTexture(h.sourceTexture),a.deleteTexture(h.targetTexture),a.deleteFramebuffer(c),n.getContext(\\\\\\\"2d\\\\\\\").setTransform(1,0,0,1,0,0),h},dispose:function(){this.canvas\\\\u0026\\\\u0026(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(t,e,i,r){var n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),r?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),n},getCachedTexture:function(t,e){if(this.textureCache[t])return this.textureCache[t];var i=this.createTexture(this.gl,e.width,e.height,e);return this.textureCache[t]=i,i},evictCachesForKey:function(t){this.textureCache[t]\\\\u0026\\\\u0026(this.gl.deleteTexture(this.textureCache[t]),delete this.textureCache[t])},copyGLTo2D:k,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var t=this.gl,e={renderer:\\\\\\\"\\\\\\\",vendor:\\\\\\\"\\\\\\\"};if(!t)return e;var i=t.getExtension(\\\\\\\"WEBGL_debug_renderer_info\\\\\\\");if(i){var r=t.getParameter(i.UNMASKED_RENDERER_WEBGL),n=t.getParameter(i.UNMASKED_VENDOR_WEBGL);r\\\\u0026\\\\u0026(e.renderer=r.toLowerCase()),n\\\\u0026\\\\u0026(e.vendor=n.toLowerCase())}return this.gpuInfo=e,e}}}(),function(){var t=function(){};function e(){}T.Canvas2dFilterBackend=e,e.prototype={evictCachesForKey:t,dispose:t,clearWebGLCaches:t,resources:{},applyFilters:function(t,e,i,r,n){var o=n.getContext(\\\\\\\"2d\\\\\\\");o.drawImage(e,0,0,i,r);var s={sourceWidth:i,sourceHeight:r,imageData:o.getImageData(0,0,i,r),originalEl:e,originalImageData:o.getImageData(0,0,i,r),canvasEl:n,ctx:o,filterBackend:this};return t.forEach((function(t){t.applyTo(s)})),s.imageData.width===i\\\\u0026\\\\u0026s.imageData.height===r||(n.width=s.imageData.width,n.height=s.imageData.height),o.putImageData(s.imageData,0,0),s}}}(),T.Image=T.Image||{},T.Image.filters=T.Image.filters||{},T.Image.filters.BaseFilter=T.util.createClass({type:\\\\\\\"BaseFilter\\\\\\\",vertexSource:\\\\\\\"attribute vec2 aPosition;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvTexCoord = aPosition;\\\\\\\\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\\\\\\\\n}\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nvoid main() {\\\\\\\\ngl_FragColor = texture2D(uTexture, vTexCoord);\\\\\\\\n}\\\\\\\",initialize:function(t){t\\\\u0026\\\\u0026this.setOptions(t)},setOptions:function(t){for(var e in t)this[e]=t[e]},createProgram:function(t,e,i){e=e||this.fragmentSource,i=i||this.vertexSource,\\\\\\\"highp\\\\\\\"!==T.webGlPrecision\\\\u0026\\\\u0026(e=e.replace(/precision highp float/g,\\\\\\\"precision \\\\\\\"+T.webGlPrecision+\\\\\\\" float\\\\\\\"));var r=t.createShader(t.VERTEX_SHADER);if(t.shaderSource(r,i),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS))throw new Error(\\\\\\\"Vertex shader compile error for \\\\\\\"+this.type+\\\\\\\": \\\\\\\"+t.getShaderInfoLog(r));var n=t.createShader(t.FRAGMENT_SHADER);if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error(\\\\\\\"Fragment shader compile error for \\\\\\\"+this.type+\\\\\\\": \\\\\\\"+t.getShaderInfoLog(n));var o=t.createProgram();if(t.attachShader(o,r),t.attachShader(o,n),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS))throw new Error('Shader link error for \\\\\\\"${this.type}\\\\\\\" '+t.getProgramInfoLog(o));var s=this.getAttributeLocations(t,o),a=this.getUniformLocations(t,o)||{};return a.uStepW=t.getUniformLocation(o,\\\\\\\"uStepW\\\\\\\"),a.uStepH=t.getUniformLocation(o,\\\\\\\"uStepH\\\\\\\"),{program:o,attributeLocations:s,uniformLocations:a}},getAttributeLocations:function(t,e){return{aPosition:t.getAttribLocation(e,\\\\\\\"aPosition\\\\\\\")}},getUniformLocations:function(){return{}},sendAttributeData:function(t,e,i){var r=e.aPosition,n=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,n),t.enableVertexAttribArray(r),t.vertexAttribPointer(r,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW)},_setupFrameBuffer:function(t){var e,i,r=t.context;t.passes\\\\u003e1?(e=t.destinationWidth,i=t.destinationHeight,t.sourceWidth===e\\\\u0026\\\\u0026t.sourceHeight===i||(r.deleteTexture(t.targetTexture),t.targetTexture=t.filterBackend.createTexture(r,e,i)),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,t.targetTexture,0)):(r.bindFramebuffer(r.FRAMEBUFFER,null),r.finish())},_swapTextures:function(t){t.passes--,t.pass++;var e=t.targetTexture;t.targetTexture=t.sourceTexture,t.sourceTexture=e},isNeutralState:function(){var t=this.mainParameter,e=T.Image.filters[this.type].prototype;if(t){if(Array.isArray(e[t])){for(var i=e[t].length;i--;)if(this[t][i]!==e[t][i])return!1;return!0}return e[t]===this[t]}return!1},applyTo:function(t){t.webgl?(this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},retrieveShader:function(t){return t.programCache.hasOwnProperty(this.type)||(t.programCache[this.type]=this.createProgram(t.context)),t.programCache[this.type]},applyToWebGL:function(t){var e=t.context,i=this.retrieveShader(t);0===t.pass\\\\u0026\\\\u0026t.originalTexture?e.bindTexture(e.TEXTURE_2D,t.originalTexture):e.bindTexture(e.TEXTURE_2D,t.sourceTexture),e.useProgram(i.program),this.sendAttributeData(e,i.attributeLocations,t.aPosition),e.uniform1f(i.uniformLocations.uStepW,1/t.sourceWidth),e.uniform1f(i.uniformLocations.uStepH,1/t.sourceHeight),this.sendUniformData(e,i.uniformLocations),e.viewport(0,0,t.destinationWidth,t.destinationHeight),e.drawArrays(e.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(t,e,i){t.activeTexture(i),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE0)},unbindAdditionalTexture:function(t,e){t.activeTexture(e),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(t){this[this.mainParameter]=t},sendUniformData:function(){},createHelpLayer:function(t){if(!t.helpLayer){var e=document.createElement(\\\\\\\"canvas\\\\\\\");e.width=t.sourceWidth,e.height=t.sourceHeight,t.helpLayer=e}},toObject:function(){var t={type:this.type},e=this.mainParameter;return e\\\\u0026\\\\u0026(t[e]=this[e]),t},toJSON:function(){return this.toObject()}}),T.Image.filters.BaseFilter.fromObject=function(t,e){var i=new T.Image.filters[t.type](t);return e\\\\u0026\\\\u0026e(i),i},function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.ColorMatrix=r(i.BaseFilter,{type:\\\\\\\"ColorMatrix\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nuniform mat4 uColorMatrix;\\\\\\\\nuniform vec4 uConstants;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\ncolor *= uColorMatrix;\\\\\\\\ncolor += uConstants;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:\\\\\\\"matrix\\\\\\\",colorsOnly:!0,initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this.matrix=this.matrix.slice(0)},applyTo2d:function(t){var e,i,r,n,o,s=t.imageData.data,a=s.length,h=this.matrix,c=this.colorsOnly;for(o=0;o\\\\u003ca;o+=4)e=s[o],i=s[o+1],r=s[o+2],c?(s[o]=e*h[0]+i*h[1]+r*h[2]+255*h[4],s[o+1]=e*h[5]+i*h[6]+r*h[7]+255*h[9],s[o+2]=e*h[10]+i*h[11]+r*h[12]+255*h[14]):(n=s[o+3],s[o]=e*h[0]+i*h[1]+r*h[2]+n*h[3]+255*h[4],s[o+1]=e*h[5]+i*h[6]+r*h[7]+n*h[8]+255*h[9],s[o+2]=e*h[10]+i*h[11]+r*h[12]+n*h[13]+255*h[14],s[o+3]=e*h[15]+i*h[16]+r*h[17]+n*h[18]+255*h[19])},getUniformLocations:function(t,e){return{uColorMatrix:t.getUniformLocation(e,\\\\\\\"uColorMatrix\\\\\\\"),uConstants:t.getUniformLocation(e,\\\\\\\"uConstants\\\\\\\")}},sendUniformData:function(t,e){var i=this.matrix,r=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];t.uniformMatrix4fv(e.uColorMatrix,!1,r),t.uniform4fv(e.uConstants,n)}}),e.Image.filters.ColorMatrix.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Brightness=r(i.BaseFilter,{type:\\\\\\\"Brightness\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uBrightness;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\ncolor.rgb += uBrightness;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",brightness:0,mainParameter:\\\\\\\"brightness\\\\\\\",applyTo2d:function(t){if(0!==this.brightness){var e,i=t.imageData.data,r=i.length,n=Math.round(255*this.brightness);for(e=0;e\\\\u003cr;e+=4)i[e]=i[e]+n,i[e+1]=i[e+1]+n,i[e+2]=i[e+2]+n}},getUniformLocations:function(t,e){return{uBrightness:t.getUniformLocation(e,\\\\\\\"uBrightness\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uBrightness,this.brightness)}}),e.Image.filters.Brightness.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.Convolute=n(r.BaseFilter,{type:\\\\\\\"Convolute\\\\\\\",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[9];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 3.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 3.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",Convolute_3_0:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[9];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 3.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 3.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\\\\\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.a = alpha;\\\\\\\\n}\\\\\\\",Convolute_5_1:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[25];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 5.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 5.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",Convolute_5_0:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[25];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 5.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 5.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\\\\\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.a = alpha;\\\\\\\\n}\\\\\\\",Convolute_7_1:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[49];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 7.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 7.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",Convolute_7_0:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[49];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 7.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 7.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\\\\\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.a = alpha;\\\\\\\\n}\\\\\\\",Convolute_9_1:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[81];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 0);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 9.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 9.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",Convolute_9_0:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uMatrix[81];\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0, 0, 0, 1);\\\\\\\\nfor (float h = 0.0; h \\\\u003c 9.0; h+=1.0) {\\\\\\\\nfor (float w = 0.0; w \\\\u003c 9.0; w+=1.0) {\\\\\\\\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\\\\\\\\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\\\\\\\\n}\\\\\\\\n}\\\\\\\\nfloat alpha = texture2D(uTexture, vTexCoord).a;\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.a = alpha;\\\\\\\\n}\\\\\\\"},retrieveShader:function(t){var e=Math.sqrt(this.matrix.length),i=this.type+\\\\\\\"_\\\\\\\"+e+\\\\\\\"_\\\\\\\"+(this.opaque?1:0),r=this.fragmentSource[i];return t.programCache.hasOwnProperty(i)||(t.programCache[i]=this.createProgram(t.context,r)),t.programCache[i]},applyTo2d:function(t){var e,i,r,n,o,s,a,h,c,l,u,f,d,g=t.imageData,p=g.data,v=this.matrix,m=Math.round(Math.sqrt(v.length)),y=Math.floor(m/2),_=g.width,b=g.height,x=t.ctx.createImageData(_,b),C=x.data,w=this.opaque?1:0;for(u=0;u\\\\u003cb;u++)for(l=0;l\\\\u003c_;l++){for(o=4*(u*_+l),e=0,i=0,r=0,n=0,d=0;d\\\\u003cm;d++)for(f=0;f\\\\u003cm;f++)s=l+f-y,(a=u+d-y)\\\\u003c0||a\\\\u003e=b||s\\\\u003c0||s\\\\u003e=_||(h=4*(a*_+s),c=v[d*m+f],e+=p[h]*c,i+=p[h+1]*c,r+=p[h+2]*c,w||(n+=p[h+3]*c));C[o]=e,C[o+1]=i,C[o+2]=r,C[o+3]=w?p[o+3]:n}t.imageData=x},getUniformLocations:function(t,e){return{uMatrix:t.getUniformLocation(e,\\\\\\\"uMatrix\\\\\\\"),uOpaque:t.getUniformLocation(e,\\\\\\\"uOpaque\\\\\\\"),uHalfSize:t.getUniformLocation(e,\\\\\\\"uHalfSize\\\\\\\"),uSize:t.getUniformLocation(e,\\\\\\\"uSize\\\\\\\")}},sendUniformData:function(t,e){t.uniform1fv(e.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper(\\\\\\\"toObject\\\\\\\"),{opaque:this.opaque,matrix:this.matrix})}}),e.Image.filters.Convolute.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Grayscale=r(i.BaseFilter,{type:\\\\\\\"Grayscale\\\\\\\",fragmentSource:{average:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat average = (color.r + color.b + color.g) / 3.0;\\\\\\\\ngl_FragColor = vec4(average, average, average, color.a);\\\\\\\\n}\\\\\\\",lightness:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform int uMode;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 col = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\\\\\\\\ngl_FragColor = vec4(average, average, average, col.a);\\\\\\\\n}\\\\\\\",luminosity:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform int uMode;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 col = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\\\\\\\\ngl_FragColor = vec4(average, average, average, col.a);\\\\\\\\n}\\\\\\\"},mode:\\\\\\\"average\\\\\\\",mainParameter:\\\\\\\"mode\\\\\\\",applyTo2d:function(t){var e,i,r=t.imageData.data,n=r.length,o=this.mode;for(e=0;e\\\\u003cn;e+=4)\\\\\\\"average\\\\\\\"===o?i=(r[e]+r[e+1]+r[e+2])/3:\\\\\\\"lightness\\\\\\\"===o?i=(Math.min(r[e],r[e+1],r[e+2])+Math.max(r[e],r[e+1],r[e+2]))/2:\\\\\\\"luminosity\\\\\\\"===o\\\\u0026\\\\u0026(i=.21*r[e]+.72*r[e+1]+.07*r[e+2]),r[e]=i,r[e+1]=i,r[e+2]=i},retrieveShader:function(t){var e=this.type+\\\\\\\"_\\\\\\\"+this.mode;if(!t.programCache.hasOwnProperty(e)){var i=this.fragmentSource[this.mode];t.programCache[e]=this.createProgram(t.context,i)}return t.programCache[e]},getUniformLocations:function(t,e){return{uMode:t.getUniformLocation(e,\\\\\\\"uMode\\\\\\\")}},sendUniformData:function(t,e){t.uniform1i(e.uMode,1)},isNeutralState:function(){return!1}}),e.Image.filters.Grayscale.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Invert=r(i.BaseFilter,{type:\\\\\\\"Invert\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform int uInvert;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nif (uInvert == 1) {\\\\\\\\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\\\\\\\\n} else {\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\\n}\\\\\\\",invert:!0,mainParameter:\\\\\\\"invert\\\\\\\",applyTo2d:function(t){var e,i=t.imageData.data,r=i.length;for(e=0;e\\\\u003cr;e+=4)i[e]=255-i[e],i[e+1]=255-i[e+1],i[e+2]=255-i[e+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(t,e){return{uInvert:t.getUniformLocation(e,\\\\\\\"uInvert\\\\\\\")}},sendUniformData:function(t,e){t.uniform1i(e.uInvert,this.invert)}}),e.Image.filters.Invert.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.Noise=n(r.BaseFilter,{type:\\\\\\\"Noise\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uStepH;\\\\\\\\nuniform float uNoise;\\\\\\\\nuniform float uSeed;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nfloat rand(vec2 co, float seed, float vScale) {\\\\\\\\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\\\\\\\\n}\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",mainParameter:\\\\\\\"noise\\\\\\\",noise:0,applyTo2d:function(t){if(0!==this.noise){var e,i,r=t.imageData.data,n=r.length,o=this.noise;for(e=0,n=r.length;e\\\\u003cn;e+=4)i=(.5-Math.random())*o,r[e]+=i,r[e+1]+=i,r[e+2]+=i}},getUniformLocations:function(t,e){return{uNoise:t.getUniformLocation(e,\\\\\\\"uNoise\\\\\\\"),uSeed:t.getUniformLocation(e,\\\\\\\"uSeed\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uNoise,this.noise/255),t.uniform1f(e.uSeed,Math.random())},toObject:function(){return i(this.callSuper(\\\\\\\"toObject\\\\\\\"),{noise:this.noise})}}),e.Image.filters.Noise.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Pixelate=r(i.BaseFilter,{type:\\\\\\\"Pixelate\\\\\\\",blocksize:4,mainParameter:\\\\\\\"blocksize\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uBlocksize;\\\\\\\\nuniform float uStepW;\\\\\\\\nuniform float uStepH;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nfloat blockW = uBlocksize * uStepW;\\\\\\\\nfloat blockH = uBlocksize * uStepW;\\\\\\\\nint posX = int(vTexCoord.x / blockW);\\\\\\\\nint posY = int(vTexCoord.y / blockH);\\\\\\\\nfloat fposX = float(posX);\\\\\\\\nfloat fposY = float(posY);\\\\\\\\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\\\\\\\\nvec4 color = texture2D(uTexture, squareCoords);\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",applyTo2d:function(t){var e,i,r,n,o,s,a,h,c,l,u,f=t.imageData,d=f.data,g=f.height,p=f.width;for(i=0;i\\\\u003cg;i+=this.blocksize)for(r=0;r\\\\u003cp;r+=this.blocksize)for(n=d[e=4*i*p+4*r],o=d[e+1],s=d[e+2],a=d[e+3],l=Math.min(i+this.blocksize,g),u=Math.min(r+this.blocksize,p),h=i;h\\\\u003cl;h++)for(c=r;c\\\\u003cu;c++)d[e=4*h*p+4*c]=n,d[e+1]=o,d[e+2]=s,d[e+3]=a},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(t,e){return{uBlocksize:t.getUniformLocation(e,\\\\\\\"uBlocksize\\\\\\\"),uStepW:t.getUniformLocation(e,\\\\\\\"uStepW\\\\\\\"),uStepH:t.getUniformLocation(e,\\\\\\\"uStepH\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uBlocksize,this.blocksize)}}),e.Image.filters.Pixelate.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.extend,r=e.Image.filters,n=e.util.createClass;r.RemoveColor=n(r.BaseFilter,{type:\\\\\\\"RemoveColor\\\\\\\",color:\\\\\\\"#FFFFFF\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec4 uLow;\\\\\\\\nuniform vec4 uHigh;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\ngl_FragColor = texture2D(uTexture, vTexCoord);\\\\\\\\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) \\\\u0026\\\\u0026 all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\\\\\\\\ngl_FragColor.a = 0.0;\\\\\\\\n}\\\\\\\\n}\\\\\\\",distance:.02,useAlpha:!1,applyTo2d:function(t){var i,r,n,o,s=t.imageData.data,a=255*this.distance,h=new e.Color(this.color).getSource(),c=[h[0]-a,h[1]-a,h[2]-a],l=[h[0]+a,h[1]+a,h[2]+a];for(i=0;i\\\\u003cs.length;i+=4)r=s[i],n=s[i+1],o=s[i+2],r\\\\u003ec[0]\\\\u0026\\\\u0026n\\\\u003ec[1]\\\\u0026\\\\u0026o\\\\u003ec[2]\\\\u0026\\\\u0026r\\\\u003cl[0]\\\\u0026\\\\u0026n\\\\u003cl[1]\\\\u0026\\\\u0026o\\\\u003cl[2]\\\\u0026\\\\u0026(s[i+3]=0)},getUniformLocations:function(t,e){return{uLow:t.getUniformLocation(e,\\\\\\\"uLow\\\\\\\"),uHigh:t.getUniformLocation(e,\\\\\\\"uHigh\\\\\\\")}},sendUniformData:function(t,i){var r=new e.Color(this.color).getSource(),n=parseFloat(this.distance),o=[0+r[0]/255-n,0+r[1]/255-n,0+r[2]/255-n,1],s=[r[0]/255+n,r[1]/255+n,r[2]/255+n,1];t.uniform4fv(i.uLow,o),t.uniform4fv(i.uHigh,s)},toObject:function(){return i(this.callSuper(\\\\\\\"toObject\\\\\\\"),{color:this.color,distance:this.distance})}}),e.Image.filters.RemoveColor.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var o in n)i[o]=r(i.ColorMatrix,{type:o,matrix:n[o],mainParameter:!1,colorsOnly:!0}),e.Image.filters[o].fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric,i=e.Image.filters,r=e.util.createClass;i.BlendColor=r(i.BaseFilter,{type:\\\\\\\"BlendColor\\\\\\\",color:\\\\\\\"#F95C63\\\\\\\",mode:\\\\\\\"multiply\\\\\\\",alpha:1,fragmentSource:{multiply:\\\\\\\"gl_FragColor.rgb *= uColor.rgb;\\\\\\\\n\\\\\\\",screen:\\\\\\\"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\\\\\\\\n\\\\\\\",add:\\\\\\\"gl_FragColor.rgb += uColor.rgb;\\\\\\\\n\\\\\\\",diff:\\\\\\\"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\\\\\\\\n\\\\\\\",subtract:\\\\\\\"gl_FragColor.rgb -= uColor.rgb;\\\\\\\\n\\\\\\\",lighten:\\\\\\\"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\\\\\\\\n\\\\\\\",darken:\\\\\\\"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\\\\\\\\n\\\\\\\",exclusion:\\\\\\\"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\\\\\\\\n\\\\\\\",overlay:\\\\\\\"if (uColor.r \\\\u003c 0.5) {\\\\\\\\ngl_FragColor.r *= 2.0 * uColor.r;\\\\\\\\n} else {\\\\\\\\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\\\\\\\\n}\\\\\\\\nif (uColor.g \\\\u003c 0.5) {\\\\\\\\ngl_FragColor.g *= 2.0 * uColor.g;\\\\\\\\n} else {\\\\\\\\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\\\\\\\\n}\\\\\\\\nif (uColor.b \\\\u003c 0.5) {\\\\\\\\ngl_FragColor.b *= 2.0 * uColor.b;\\\\\\\\n} else {\\\\\\\\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\\\\\\\\n}\\\\\\\\n\\\\\\\",tint:\\\\\\\"gl_FragColor.rgb *= (1.0 - uColor.a);\\\\\\\\ngl_FragColor.rgb += uColor.rgb;\\\\\\\\n\\\\\\\"},buildSource:function(t){return\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec4 uColor;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\ngl_FragColor = color;\\\\\\\\nif (color.a \\\\u003e 0.0) {\\\\\\\\n\\\\\\\"+this.fragmentSource[t]+\\\\\\\"}\\\\\\\\n}\\\\\\\"},retrieveShader:function(t){var e,i=this.type+\\\\\\\"_\\\\\\\"+this.mode;return t.programCache.hasOwnProperty(i)||(e=this.buildSource(this.mode),t.programCache[i]=this.createProgram(t.context,e)),t.programCache[i]},applyTo2d:function(t){var i,r,n,o,s,a,h,c=t.imageData.data,l=c.length,u=1-this.alpha;i=(h=new e.Color(this.color).getSource())[0]*this.alpha,r=h[1]*this.alpha,n=h[2]*this.alpha;for(var f=0;f\\\\u003cl;f+=4)switch(o=c[f],s=c[f+1],a=c[f+2],this.mode){case\\\\\\\"multiply\\\\\\\":c[f]=o*i/255,c[f+1]=s*r/255,c[f+2]=a*n/255;break;case\\\\\\\"screen\\\\\\\":c[f]=255-(255-o)*(255-i)/255,c[f+1]=255-(255-s)*(255-r)/255,c[f+2]=255-(255-a)*(255-n)/255;break;case\\\\\\\"add\\\\\\\":c[f]=o+i,c[f+1]=s+r,c[f+2]=a+n;break;case\\\\\\\"diff\\\\\\\":case\\\\\\\"difference\\\\\\\":c[f]=Math.abs(o-i),c[f+1]=Math.abs(s-r),c[f+2]=Math.abs(a-n);break;case\\\\\\\"subtract\\\\\\\":c[f]=o-i,c[f+1]=s-r,c[f+2]=a-n;break;case\\\\\\\"darken\\\\\\\":c[f]=Math.min(o,i),c[f+1]=Math.min(s,r),c[f+2]=Math.min(a,n);break;case\\\\\\\"lighten\\\\\\\":c[f]=Math.max(o,i),c[f+1]=Math.max(s,r),c[f+2]=Math.max(a,n);break;case\\\\\\\"overlay\\\\\\\":c[f]=i\\\\u003c128?2*o*i/255:255-2*(255-o)*(255-i)/255,c[f+1]=r\\\\u003c128?2*s*r/255:255-2*(255-s)*(255-r)/255,c[f+2]=n\\\\u003c128?2*a*n/255:255-2*(255-a)*(255-n)/255;break;case\\\\\\\"exclusion\\\\\\\":c[f]=i+o-2*i*o/255,c[f+1]=r+s-2*r*s/255,c[f+2]=n+a-2*n*a/255;break;case\\\\\\\"tint\\\\\\\":c[f]=i+o*u,c[f+1]=r+s*u,c[f+2]=n+a*u}},getUniformLocations:function(t,e){return{uColor:t.getUniformLocation(e,\\\\\\\"uColor\\\\\\\")}},sendUniformData:function(t,i){var r=new e.Color(this.color).getSource();r[0]=this.alpha*r[0]/255,r[1]=this.alpha*r[1]/255,r[2]=this.alpha*r[2]/255,r[3]=this.alpha,t.uniform4fv(i.uColor,r)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendColor.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric,i=e.Image.filters,r=e.util.createClass;i.BlendImage=r(i.BaseFilter,{type:\\\\\\\"BlendImage\\\\\\\",image:null,mode:\\\\\\\"multiply\\\\\\\",alpha:1,vertexSource:\\\\\\\"attribute vec2 aPosition;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvarying vec2 vTexCoord2;\\\\\\\\nuniform mat3 uTransformMatrix;\\\\\\\\nvoid main() {\\\\\\\\nvTexCoord = aPosition;\\\\\\\\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\\\\\\\\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\\\\\\\\n}\\\\\\\",fragmentSource:{multiply:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform sampler2D uImage;\\\\\\\\nuniform vec4 uColor;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvarying vec2 vTexCoord2;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nvec4 color2 = texture2D(uImage, vTexCoord2);\\\\\\\\ncolor.rgba *= color2.rgba;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",mask:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform sampler2D uImage;\\\\\\\\nuniform vec4 uColor;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvarying vec2 vTexCoord2;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nvec4 color2 = texture2D(uImage, vTexCoord2);\\\\\\\\ncolor.a = color2.a;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\"},retrieveShader:function(t){var e=this.type+\\\\\\\"_\\\\\\\"+this.mode,i=this.fragmentSource[this.mode];return t.programCache.hasOwnProperty(e)||(t.programCache[e]=this.createProgram(t.context,i)),t.programCache[e]},applyToWebGL:function(t){var e=t.context,i=this.createTexture(t.filterBackend,this.image);this.bindAdditionalTexture(e,i,e.TEXTURE1),this.callSuper(\\\\\\\"applyToWebGL\\\\\\\",t),this.unbindAdditionalTexture(e,e.TEXTURE1)},createTexture:function(t,e){return t.getCachedTexture(e.cacheKey,e._element)},calculateMatrix:function(){var t=this.image,e=t._element.width,i=t._element.height;return[1/t.scaleX,0,0,0,1/t.scaleY,0,-t.left/e,-t.top/i,1]},applyTo2d:function(t){var i,r,n,o,s,a,h,c,l,u,f,d=t.imageData,g=t.filterBackend.resources,p=d.data,v=p.length,m=d.width,y=d.height,_=this.image;g.blendImage||(g.blendImage=e.util.createCanvasElement()),u=(l=g.blendImage).getContext(\\\\\\\"2d\\\\\\\"),l.width!==m||l.height!==y?(l.width=m,l.height=y):u.clearRect(0,0,m,y),u.setTransform(_.scaleX,0,0,_.scaleY,_.left,_.top),u.drawImage(_._element,0,0,m,y),f=u.getImageData(0,0,m,y).data;for(var b=0;b\\\\u003cv;b+=4)switch(s=p[b],a=p[b+1],h=p[b+2],c=p[b+3],i=f[b],r=f[b+1],n=f[b+2],o=f[b+3],this.mode){case\\\\\\\"multiply\\\\\\\":p[b]=s*i/255,p[b+1]=a*r/255,p[b+2]=h*n/255,p[b+3]=c*o/255;break;case\\\\\\\"mask\\\\\\\":p[b+3]=o}},getUniformLocations:function(t,e){return{uTransformMatrix:t.getUniformLocation(e,\\\\\\\"uTransformMatrix\\\\\\\"),uImage:t.getUniformLocation(e,\\\\\\\"uImage\\\\\\\")}},sendUniformData:function(t,e){var i=this.calculateMatrix();t.uniform1i(e.uImage,1),t.uniformMatrix3fv(e.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image\\\\u0026\\\\u0026this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),e.Image.filters.BlendImage.fromObject=function(t,i){e.Image.fromObject(t.image,(function(r){var n=e.util.object.clone(t);n.image=r,i(new e.Image.filters.BlendImage(n))}))}}(t),function(t){var e=t.fabric||(t.fabric={}),i=Math.pow,r=Math.floor,n=Math.sqrt,o=Math.abs,s=Math.round,a=Math.sin,h=Math.ceil,c=e.Image.filters,l=e.util.createClass;c.Resize=l(c.BaseFilter,{type:\\\\\\\"Resize\\\\\\\",resizeType:\\\\\\\"hermite\\\\\\\",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(t,e){return{uDelta:t.getUniformLocation(e,\\\\\\\"uDelta\\\\\\\"),uTaps:t.getUniformLocation(e,\\\\\\\"uTaps\\\\\\\")}},sendUniformData:function(t,e){t.uniform2fv(e.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),t.uniform1fv(e.uTaps,this.taps)},retrieveShader:function(t){var e=this.getFilterWindow(),i=this.type+\\\\\\\"_\\\\\\\"+e;if(!t.programCache.hasOwnProperty(i)){var r=this.generateShader(e);t.programCache[i]=this.createProgram(t.context,r)}return t.programCache[i]},getFilterWindow:function(){var t=this.tempScale;return Math.ceil(this.lanczosLobes/t)},getTaps:function(){for(var t=this.lanczosCreate(this.lanczosLobes),e=this.tempScale,i=this.getFilterWindow(),r=new Array(i),n=1;n\\\\u003c=i;n++)r[n-1]=t(n*e);return r},generateShader:function(t){for(var e=new Array(t),i=this.fragmentSourceTOP,r=1;r\\\\u003c=t;r++)e[r-1]=r+\\\\\\\".0 * uDelta\\\\\\\";return i+=\\\\\\\"uniform float uTaps[\\\\\\\"+t+\\\\\\\"];\\\\\\\\n\\\\\\\",i+=\\\\\\\"void main() {\\\\\\\\n\\\\\\\",i+=\\\\\\\"  vec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\n\\\\\\\",i+=\\\\\\\"  float sum = 1.0;\\\\\\\\n\\\\\\\",e.forEach((function(t,e){i+=\\\\\\\"  color += texture2D(uTexture, vTexCoord + \\\\\\\"+t+\\\\\\\") * uTaps[\\\\\\\"+e+\\\\\\\"];\\\\\\\\n\\\\\\\",i+=\\\\\\\"  color += texture2D(uTexture, vTexCoord - \\\\\\\"+t+\\\\\\\") * uTaps[\\\\\\\"+e+\\\\\\\"];\\\\\\\\n\\\\\\\",i+=\\\\\\\"  sum += 2.0 * uTaps[\\\\\\\"+e+\\\\\\\"];\\\\\\\\n\\\\\\\"})),i+=\\\\\\\"  gl_FragColor = color / sum;\\\\\\\\n\\\\\\\",i+=\\\\\\\"}\\\\\\\"},fragmentSourceTOP:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec2 uDelta;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\n\\\\\\\",applyTo:function(t){t.webgl?(t.passes++,this.width=t.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=t.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),t.destinationWidth=this.dW,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceWidth=t.destinationWidth,this.height=t.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),t.destinationHeight=this.dH,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceHeight=t.destinationHeight):this.applyTo2d(t)},isNeutralState:function(){return 1===this.scaleX\\\\u0026\\\\u00261===this.scaleY},lanczosCreate:function(t){return function(e){if(e\\\\u003e=t||e\\\\u003c=-t)return 0;if(e\\\\u003c1.1920929e-7\\\\u0026\\\\u0026e\\\\u003e-1.1920929e-7)return 1;var i=(e*=Math.PI)/t;return a(e)/e*a(i)/i}},applyTo2d:function(t){var e=t.imageData,i=this.scaleX,r=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/r;var n,o=e.width,a=e.height,h=s(o*i),c=s(a*r);\\\\\\\"sliceHack\\\\\\\"===this.resizeType?n=this.sliceByTwo(t,o,a,h,c):\\\\\\\"hermite\\\\\\\"===this.resizeType?n=this.hermiteFastResize(t,o,a,h,c):\\\\\\\"bilinear\\\\\\\"===this.resizeType?n=this.bilinearFiltering(t,o,a,h,c):\\\\\\\"lanczos\\\\\\\"===this.resizeType\\\\u0026\\\\u0026(n=this.lanczosResize(t,o,a,h,c)),t.imageData=n},sliceByTwo:function(t,i,n,o,s){var a,h,c=t.imageData,l=.5,u=!1,f=!1,d=i*l,g=n*l,p=e.filterBackend.resources,v=0,m=0,y=i,_=0;for(p.sliceByTwo||(p.sliceByTwo=document.createElement(\\\\\\\"canvas\\\\\\\")),((a=p.sliceByTwo).width\\\\u003c1.5*i||a.height\\\\u003cn)\\\\u0026\\\\u0026(a.width=1.5*i,a.height=n),(h=a.getContext(\\\\\\\"2d\\\\\\\")).clearRect(0,0,1.5*i,n),h.putImageData(c,0,0),o=r(o),s=r(s);!u||!f;)i=d,n=g,o\\\\u003cr(d*l)?d=r(d*l):(d=o,u=!0),s\\\\u003cr(g*l)?g=r(g*l):(g=s,f=!0),h.drawImage(a,v,m,i,n,y,_,d,g),v=y,m=_,_+=g;return h.getImageData(v,m,o,s)},lanczosResize:function(t,e,s,a,c){var l=t.imageData.data,u=t.ctx.createImageData(a,c),f=u.data,d=this.lanczosCreate(this.lanczosLobes),g=this.rcpScaleX,p=this.rcpScaleY,v=2/this.rcpScaleX,m=2/this.rcpScaleY,y=h(g*this.lanczosLobes/2),_=h(p*this.lanczosLobes/2),b={},x={},C={};return function t(h){var w,S,T,O,P,E,k,A,D,M,j;for(x.x=(h+.5)*g,C.x=r(x.x),w=0;w\\\\u003cc;w++){for(x.y=(w+.5)*p,C.y=r(x.y),P=0,E=0,k=0,A=0,D=0,S=C.x-y;S\\\\u003c=C.x+y;S++)if(!(S\\\\u003c0||S\\\\u003e=e)){M=r(1e3*o(S-x.x)),b[M]||(b[M]={});for(var F=C.y-_;F\\\\u003c=C.y+_;F++)F\\\\u003c0||F\\\\u003e=s||(j=r(1e3*o(F-x.y)),b[M][j]||(b[M][j]=d(n(i(M*v,2)+i(j*m,2))/1e3)),(T=b[M][j])\\\\u003e0\\\\u0026\\\\u0026(P+=T,E+=T*l[O=4*(F*e+S)],k+=T*l[O+1],A+=T*l[O+2],D+=T*l[O+3]))}f[O=4*(w*a+h)]=E/P,f[O+1]=k/P,f[O+2]=A/P,f[O+3]=D/P}return++h\\\\u003ca?t(h):u}(0)},bilinearFiltering:function(t,e,i,n,o){var s,a,h,c,l,u,f,d,g,p=0,v=this.rcpScaleX,m=this.rcpScaleY,y=4*(e-1),_=t.imageData.data,b=t.ctx.createImageData(n,o),x=b.data;for(h=0;h\\\\u003co;h++)for(c=0;c\\\\u003cn;c++)for(l=v*c-(s=r(v*c)),u=m*h-(a=r(m*h)),g=4*(a*e+s),f=0;f\\\\u003c4;f++)d=_[g+f]*(1-l)*(1-u)+_[g+4+f]*l*(1-u)+_[g+y+f]*u*(1-l)+_[g+y+4+f]*l*u,x[p++]=d;return b},hermiteFastResize:function(t,e,i,s,a){for(var c=this.rcpScaleX,l=this.rcpScaleY,u=h(c/2),f=h(l/2),d=t.imageData.data,g=t.ctx.createImageData(s,a),p=g.data,v=0;v\\\\u003ca;v++)for(var m=0;m\\\\u003cs;m++){for(var y=4*(m+v*s),_=0,b=0,x=0,C=0,w=0,S=0,T=0,O=(v+.5)*l,P=r(v*l);P\\\\u003c(v+1)*l;P++)for(var E=o(O-(P+.5))/f,k=(m+.5)*c,A=E*E,D=r(m*c);D\\\\u003c(m+1)*c;D++){var M=o(k-(D+.5))/u,j=n(A+M*M);j\\\\u003e1\\\\u0026\\\\u0026j\\\\u003c-1||(_=2*j*j*j-3*j*j+1)\\\\u003e0\\\\u0026\\\\u0026(T+=_*d[(M=4*(D+P*e))+3],x+=_,d[M+3]\\\\u003c255\\\\u0026\\\\u0026(_=_*d[M+3]/250),C+=_*d[M],w+=_*d[M+1],S+=_*d[M+2],b+=_)}p[y]=C/b,p[y+1]=w/b,p[y+2]=S/b,p[y+3]=T/x}return g},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),e.Image.filters.Resize.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Contrast=r(i.BaseFilter,{type:\\\\\\\"Contrast\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uContrast;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\\\\\\\\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",contrast:0,mainParameter:\\\\\\\"contrast\\\\\\\",applyTo2d:function(t){if(0!==this.contrast){var e,i=t.imageData.data,r=i.length,n=Math.floor(255*this.contrast),o=259*(n+255)/(255*(259-n));for(e=0;e\\\\u003cr;e+=4)i[e]=o*(i[e]-128)+128,i[e+1]=o*(i[e+1]-128)+128,i[e+2]=o*(i[e+2]-128)+128}},getUniformLocations:function(t,e){return{uContrast:t.getUniformLocation(e,\\\\\\\"uContrast\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uContrast,this.contrast)}}),e.Image.filters.Contrast.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Saturation=r(i.BaseFilter,{type:\\\\\\\"Saturation\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uSaturation;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat rgMax = max(color.r, color.g);\\\\\\\\nfloat rgbMax = max(rgMax, color.b);\\\\\\\\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\\\\\\\\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\\\\\\\\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",saturation:0,mainParameter:\\\\\\\"saturation\\\\\\\",applyTo2d:function(t){if(0!==this.saturation){var e,i,r=t.imageData.data,n=r.length,o=-this.saturation;for(e=0;e\\\\u003cn;e+=4)i=Math.max(r[e],r[e+1],r[e+2]),r[e]+=i!==r[e]?(i-r[e])*o:0,r[e+1]+=i!==r[e+1]?(i-r[e+1])*o:0,r[e+2]+=i!==r[e+2]?(i-r[e+2])*o:0}},getUniformLocations:function(t,e){return{uSaturation:t.getUniformLocation(e,\\\\\\\"uSaturation\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uSaturation,-this.saturation)}}),e.Image.filters.Saturation.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Vibrance=r(i.BaseFilter,{type:\\\\\\\"Vibrance\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform float uVibrance;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nfloat max = max(color.r, max(color.g, color.b));\\\\\\\\nfloat avg = (color.r + color.g + color.b) / 3.0;\\\\\\\\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\\\\\\\\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\\\\\\\\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\\\\\\\\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\\\\\\\\ngl_FragColor = color;\\\\\\\\n}\\\\\\\",vibrance:0,mainParameter:\\\\\\\"vibrance\\\\\\\",applyTo2d:function(t){if(0!==this.vibrance){var e,i,r,n,o=t.imageData.data,s=o.length,a=-this.vibrance;for(e=0;e\\\\u003cs;e+=4)i=Math.max(o[e],o[e+1],o[e+2]),r=(o[e]+o[e+1]+o[e+2])/3,n=2*Math.abs(i-r)/255*a,o[e]+=i!==o[e]?(i-o[e])*n:0,o[e+1]+=i!==o[e+1]?(i-o[e+1])*n:0,o[e+2]+=i!==o[e+2]?(i-o[e+2])*n:0}},getUniformLocations:function(t,e){return{uVibrance:t.getUniformLocation(e,\\\\\\\"uVibrance\\\\\\\")}},sendUniformData:function(t,e){t.uniform1f(e.uVibrance,-this.vibrance)}}),e.Image.filters.Vibrance.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Blur=r(i.BaseFilter,{type:\\\\\\\"Blur\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec2 uDelta;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nconst float nSamples = 15.0;\\\\\\\\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\\\\\\\\nfloat random(vec3 scale) {\\\\\\\\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\\\\\\\\n}\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = vec4(0.0);\\\\\\\\nfloat total = 0.0;\\\\\\\\nfloat offset = random(v3offset);\\\\\\\\nfor (float t = -nSamples; t \\\\u003c= nSamples; t++) {\\\\\\\\nfloat percent = (t + offset - 0.5) / nSamples;\\\\\\\\nfloat weight = 1.0 - abs(percent);\\\\\\\\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\\\\\\\\ntotal += weight;\\\\\\\\n}\\\\\\\\ngl_FragColor = color / total;\\\\\\\\n}\\\\\\\",blur:0,mainParameter:\\\\\\\"blur\\\\\\\",applyTo:function(t){t.webgl?(this.aspectRatio=t.sourceWidth/t.sourceHeight,t.passes++,this._setupFrameBuffer(t),this.horizontal=!0,this.applyToWebGL(t),this._swapTextures(t),this._setupFrameBuffer(t),this.horizontal=!1,this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},applyTo2d:function(t){t.imageData=this.simpleBlur(t)},simpleBlur:function(t){var i,r,n=t.filterBackend.resources,o=t.imageData.width,s=t.imageData.height;n.blurLayer1||(n.blurLayer1=e.util.createCanvasElement(),n.blurLayer2=e.util.createCanvasElement()),i=n.blurLayer1,r=n.blurLayer2,i.width===o\\\\u0026\\\\u0026i.height===s||(r.width=i.width=o,r.height=i.height=s);var a,h,c,l,u=i.getContext(\\\\\\\"2d\\\\\\\"),f=r.getContext(\\\\\\\"2d\\\\\\\"),d=15,g=.06*this.blur*.5;for(u.putImageData(t.imageData,0,0),f.clearRect(0,0,o,s),l=-15;l\\\\u003c=d;l++)c=g*(h=l/d)*o+(a=(Math.random()-.5)/4),f.globalAlpha=1-Math.abs(h),f.drawImage(i,c,a),u.drawImage(r,0,0),f.globalAlpha=1,f.clearRect(0,0,r.width,r.height);for(l=-15;l\\\\u003c=d;l++)c=g*(h=l/d)*s+(a=(Math.random()-.5)/4),f.globalAlpha=1-Math.abs(h),f.drawImage(i,a,c),u.drawImage(r,0,0),f.globalAlpha=1,f.clearRect(0,0,r.width,r.height);t.ctx.drawImage(i,0,0);var p=t.ctx.getImageData(0,0,i.width,i.height);return u.globalAlpha=1,u.clearRect(0,0,i.width,i.height),p},getUniformLocations:function(t,e){return{delta:t.getUniformLocation(e,\\\\\\\"uDelta\\\\\\\")}},sendUniformData:function(t,e){var i=this.chooseRightDelta();t.uniform2fv(e.delta,i)},chooseRightDelta:function(){var t,e=1,i=[0,0];return this.horizontal?this.aspectRatio\\\\u003e1\\\\u0026\\\\u0026(e=1/this.aspectRatio):this.aspectRatio\\\\u003c1\\\\u0026\\\\u0026(e=this.aspectRatio),t=e*this.blur*.12,this.horizontal?i[0]=t:i[1]=t,i}}),i.Blur.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Gamma=r(i.BaseFilter,{type:\\\\\\\"Gamma\\\\\\\",fragmentSource:\\\\\\\"precision highp float;\\\\\\\\nuniform sampler2D uTexture;\\\\\\\\nuniform vec3 uGamma;\\\\\\\\nvarying vec2 vTexCoord;\\\\\\\\nvoid main() {\\\\\\\\nvec4 color = texture2D(uTexture, vTexCoord);\\\\\\\\nvec3 correction = (1.0 / uGamma);\\\\\\\\ncolor.r = pow(color.r, correction.r);\\\\\\\\ncolor.g = pow(color.g, correction.g);\\\\\\\\ncolor.b = pow(color.b, correction.b);\\\\\\\\ngl_FragColor = color;\\\\\\\\ngl_FragColor.rgb *= color.a;\\\\\\\\n}\\\\\\\",gamma:[1,1,1],mainParameter:\\\\\\\"gamma\\\\\\\",initialize:function(t){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,t)},applyTo2d:function(t){var e,i=t.imageData.data,r=this.gamma,n=i.length,o=1/r[0],s=1/r[1],a=1/r[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),e=0,n=256;e\\\\u003cn;e++)this.rVals[e]=255*Math.pow(e/255,o),this.gVals[e]=255*Math.pow(e/255,s),this.bVals[e]=255*Math.pow(e/255,a);for(e=0,n=i.length;e\\\\u003cn;e+=4)i[e]=this.rVals[i[e]],i[e+1]=this.gVals[i[e+1]],i[e+2]=this.bVals[i[e+2]]},getUniformLocations:function(t,e){return{uGamma:t.getUniformLocation(e,\\\\\\\"uGamma\\\\\\\")}},sendUniformData:function(t,e){t.uniform3fv(e.uGamma,this.gamma)}}),e.Image.filters.Gamma.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.Composed=r(i.BaseFilter,{type:\\\\\\\"Composed\\\\\\\",subFilters:[],initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this.subFilters=this.subFilters.slice(0)},applyTo:function(t){t.passes+=this.subFilters.length-1,this.subFilters.forEach((function(e){e.applyTo(t)}))},toObject:function(){return e.util.object.extend(this.callSuper(\\\\\\\"toObject\\\\\\\"),{subFilters:this.subFilters.map((function(t){return t.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(t){return!t.isNeutralState()}))}}),e.Image.filters.Composed.fromObject=function(t,i){var r=(t.subFilters||[]).map((function(t){return new e.Image.filters[t.type](t)})),n=new e.Image.filters.Composed({subFilters:r});return i\\\\u0026\\\\u0026i(n),n}}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.Image.filters,r=e.util.createClass;i.HueRotation=r(i.ColorMatrix,{type:\\\\\\\"HueRotation\\\\\\\",rotation:0,mainParameter:\\\\\\\"rotation\\\\\\\",calculateMatrix:function(){var t=this.rotation*Math.PI,i=e.util.cos(t),r=e.util.sin(t),n=1/3,o=Math.sqrt(n)*r,s=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+s/3,this.matrix[1]=n*s-o,this.matrix[2]=n*s+o,this.matrix[5]=n*s+o,this.matrix[6]=i+n*s,this.matrix[7]=n*s-o,this.matrix[10]=n*s-o,this.matrix[11]=n*s+o,this.matrix[12]=i+n*s},isNeutralState:function(t){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,t)},applyTo:function(t){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,t)}}),e.Image.filters.HueRotation.fromObject=e.Image.filters.BaseFilter.fromObject}(t),function(t){var e=t.fabric||(t.fabric={}),i=e.util.object.clone;if(e.Text)e.warn(\\\\\\\"fabric.Text is already defined\\\\\\\");else{var r=\\\\\\\"fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide\\\\\\\".split(\\\\\\\" \\\\\\\");e.Text=e.util.createClass(e.Object,{_dimensionAffectingProps:[\\\\\\\"fontSize\\\\\\\",\\\\\\\"fontWeight\\\\\\\",\\\\\\\"fontFamily\\\\\\\",\\\\\\\"fontStyle\\\\\\\",\\\\\\\"lineHeight\\\\\\\",\\\\\\\"text\\\\\\\",\\\\\\\"charSpacing\\\\\\\",\\\\\\\"textAlign\\\\\\\",\\\\\\\"styles\\\\\\\",\\\\\\\"path\\\\\\\",\\\\\\\"pathStartOffset\\\\\\\",\\\\\\\"pathSide\\\\\\\"],_reNewline:/\\\\\\\\r?\\\\\\\\n/,_reSpacesAndTabs:/[ \\\\\\\\t\\\\\\\\r]/g,_reSpaceAndTab:/[ \\\\\\\\t\\\\\\\\r]/,_reWords:/\\\\\\\\S+/g,type:\\\\\\\"text\\\\\\\",fontSize:40,fontWeight:\\\\\\\"normal\\\\\\\",fontFamily:\\\\\\\"Times New Roman\\\\\\\",underline:!1,overline:!1,linethrough:!1,textAlign:\\\\\\\"left\\\\\\\",fontStyle:\\\\\\\"normal\\\\\\\",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:\\\\\\\"\\\\\\\",stateProperties:e.Object.prototype.stateProperties.concat(r),cacheProperties:e.Object.prototype.cacheProperties.concat(r),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:\\\\\\\"left\\\\\\\",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:\\\\\\\"ltr\\\\\\\",_styleProperties:[\\\\\\\"stroke\\\\\\\",\\\\\\\"strokeWidth\\\\\\\",\\\\\\\"fill\\\\\\\",\\\\\\\"fontFamily\\\\\\\",\\\\\\\"fontSize\\\\\\\",\\\\\\\"fontWeight\\\\\\\",\\\\\\\"fontStyle\\\\\\\",\\\\\\\"underline\\\\\\\",\\\\\\\"overline\\\\\\\",\\\\\\\"linethrough\\\\\\\",\\\\\\\"deltaY\\\\\\\",\\\\\\\"textBackgroundColor\\\\\\\"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(t,e){this.styles=e\\\\u0026\\\\u0026e.styles||{},this.text=t,this.__skipDimension=!0,this.callSuper(\\\\\\\"initialize\\\\\\\",e),this.path\\\\u0026\\\\u0026this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:\\\\\\\"_dimensionAffectingProps\\\\\\\"})},setPathInfo:function(){var t=this.path;t\\\\u0026\\\\u0026(t.segmentsInfo=e.util.getPathSegmentsInfo(t.path))},getMeasuringContext:function(){return e._measuringContext||(e._measuringContext=this.canvas\\\\u0026\\\\u0026this.canvas.contextCache||e.util.createCanvasElement().getContext(\\\\\\\"2d\\\\\\\")),e._measuringContext},_splitText:function(){var t=this._splitTextIntoLines(this.text);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,t},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\")\\\\u0026\\\\u0026this.enlargeSpaces(),this.saveState({propertySet:\\\\\\\"_dimensionAffectingProps\\\\\\\"}))},enlargeSpaces:function(){for(var t,e,i,r,n,o,s,a=0,h=this._textLines.length;a\\\\u003ch;a++)if((\\\\\\\"justify\\\\\\\"===this.textAlign||a!==h-1\\\\u0026\\\\u0026!this.isEndOfWrapping(a))\\\\u0026\\\\u0026(r=0,n=this._textLines[a],(e=this.getLineWidth(a))\\\\u003cthis.width\\\\u0026\\\\u0026(s=this.textLines[a].match(this._reSpacesAndTabs)))){i=s.length,t=(this.width-e)/i;for(var c=0,l=n.length;c\\\\u003c=l;c++)o=this.__charBounds[a][c],this._reSpaceAndTab.test(n[c])?(o.width+=t,o.kernedWidth+=t,o.left+=r,r+=t):o.left+=r}},isEndOfWrapping:function(t){return t===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return\\\\\\\"#\\\\u003cfabric.Text (\\\\\\\"+this.complexity()+'): { \\\\\\\"text\\\\\\\": \\\\\\\"'+this.text+'\\\\\\\", \\\\\\\"fontFamily\\\\\\\": \\\\\\\"'+this.fontFamily+'\\\\\\\" }\\\\u003e'},_getCacheCanvasDimensions:function(){var t=this.callSuper(\\\\\\\"_getCacheCanvasDimensions\\\\\\\"),e=this.fontSize;return t.width+=e*t.zoomX,t.height+=e*t.zoomY,t},_render:function(t){var e=this.path;e\\\\u0026\\\\u0026!e.isNotVisible()\\\\u0026\\\\u0026e._render(t),this._setTextStyles(t),this._renderTextLinesBackground(t),this._renderTextDecoration(t,\\\\\\\"underline\\\\\\\"),this._renderText(t),this._renderTextDecoration(t,\\\\\\\"overline\\\\\\\"),this._renderTextDecoration(t,\\\\\\\"linethrough\\\\\\\")},_renderText:function(t){\\\\\\\"stroke\\\\\\\"===this.paintFirst?(this._renderTextStroke(t),this._renderTextFill(t)):(this._renderTextFill(t),this._renderTextStroke(t))},_setTextStyles:function(t,e,i){t.textBaseline=\\\\\\\"alphabetic\\\\\\\",t.font=this._getFontDeclaration(e,i)},calcTextWidth:function(){for(var t=this.getLineWidth(0),e=1,i=this._textLines.length;e\\\\u003ci;e++){var r=this.getLineWidth(e);r\\\\u003et\\\\u0026\\\\u0026(t=r)}return t},_renderTextLine:function(t,e,i,r,n,o){this._renderChars(t,e,i,r,n,o)},_renderTextLinesBackground:function(t){if(this.textBackgroundColor||this.styleHas(\\\\\\\"textBackgroundColor\\\\\\\")){for(var e,i,r,n,o,s,a,h=t.fillStyle,c=this._getLeftOffset(),l=this._getTopOffset(),u=0,f=0,d=this.path,g=0,p=this._textLines.length;g\\\\u003cp;g++)if(e=this.getHeightOfLine(g),this.textBackgroundColor||this.styleHas(\\\\\\\"textBackgroundColor\\\\\\\",g)){r=this._textLines[g],i=this._getLineLeftOffset(g),f=0,u=0,n=this.getValueOfPropertyAt(g,0,\\\\\\\"textBackgroundColor\\\\\\\");for(var v=0,m=r.length;v\\\\u003cm;v++)o=this.__charBounds[g][v],s=this.getValueOfPropertyAt(g,v,\\\\\\\"textBackgroundColor\\\\\\\"),d?(t.save(),t.translate(o.renderLeft,o.renderTop),t.rotate(o.angle),t.fillStyle=s,s\\\\u0026\\\\u0026t.fillRect(-o.width/2,-e/this.lineHeight*(1-this._fontSizeFraction),o.width,e/this.lineHeight),t.restore()):s!==n?(a=c+i+u,\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(a=this.width-a-f),t.fillStyle=n,n\\\\u0026\\\\u0026t.fillRect(a,l,f,e/this.lineHeight),u=o.left,f=o.width,n=s):f+=o.kernedWidth;s\\\\u0026\\\\u0026!d\\\\u0026\\\\u0026(a=c+i+u,\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(a=this.width-a-f),t.fillStyle=s,t.fillRect(a,l,f,e/this.lineHeight)),l+=e}else l+=e;t.fillStyle=h,this._removeShadow(t)}},getFontCache:function(t){var i=t.fontFamily.toLowerCase();e.charWidthsCache[i]||(e.charWidthsCache[i]={});var r=e.charWidthsCache[i],n=t.fontStyle.toLowerCase()+\\\\\\\"_\\\\\\\"+(t.fontWeight+\\\\\\\"\\\\\\\").toLowerCase();return r[n]||(r[n]={}),r[n]},_measureChar:function(t,e,i,r){var n,o,s,a,h=this.getFontCache(e),c=i+t,l=this._getFontDeclaration(e)===this._getFontDeclaration(r),u=e.fontSize/this.CACHE_FONT_SIZE;if(i\\\\u0026\\\\u0026void 0!==h[i]\\\\u0026\\\\u0026(s=h[i]),void 0!==h[t]\\\\u0026\\\\u0026(a=n=h[t]),l\\\\u0026\\\\u0026void 0!==h[c]\\\\u0026\\\\u0026(a=(o=h[c])-s),void 0===n||void 0===s||void 0===o){var f=this.getMeasuringContext();this._setTextStyles(f,e,!0)}return void 0===n\\\\u0026\\\\u0026(a=n=f.measureText(t).width,h[t]=n),void 0===s\\\\u0026\\\\u0026l\\\\u0026\\\\u0026i\\\\u0026\\\\u0026(s=f.measureText(i).width,h[i]=s),l\\\\u0026\\\\u0026void 0===o\\\\u0026\\\\u0026(o=f.measureText(c).width,h[c]=o,a=o-s),{width:n*u,kernedWidth:a*u}},getHeightOfChar:function(t,e){return this.getValueOfPropertyAt(t,e,\\\\\\\"fontSize\\\\\\\")},measureLine:function(t){var e=this._measureLine(t);return 0!==this.charSpacing\\\\u0026\\\\u0026(e.width-=this._getWidthOfCharSpacing()),e.width\\\\u003c0\\\\u0026\\\\u0026(e.width=0),e},_measureLine:function(t){var i,r,n,o,s,a,h=0,c=this._textLines[t],l=new Array(c.length),u=0,f=this.path,d=\\\\\\\"right\\\\\\\"===this.pathSide;for(this.__charBounds[t]=l,i=0;i\\\\u003cc.length;i++)r=c[i],o=this._getGraphemeBox(r,t,i,n),l[i]=o,h+=o.kernedWidth,n=r;if(l[i]={left:o?o.left+o.width:0,width:0,kernedWidth:0,height:this.fontSize},f){switch(a=f.segmentsInfo[f.segmentsInfo.length-1].length,(s=e.util.getPointOnPath(f.path,0,f.segmentsInfo)).x+=f.pathOffset.x,s.y+=f.pathOffset.y,this.textAlign){case\\\\\\\"left\\\\\\\":u=d?a-h:0;break;case\\\\\\\"center\\\\\\\":u=(a-h)/2;break;case\\\\\\\"right\\\\\\\":u=d?0:a-h}for(u+=this.pathStartOffset*(d?-1:1),i=d?c.length-1:0;d?i\\\\u003e=0:i\\\\u003cc.length;d?i--:i++)o=l[i],u\\\\u003ea?u%=a:u\\\\u003c0\\\\u0026\\\\u0026(u+=a),this._setGraphemeOnPath(u,o,s),u+=o.kernedWidth}return{width:h,numOfSpaces:0}},_setGraphemeOnPath:function(t,i,r){var n=t+i.kernedWidth/2,o=this.path,s=e.util.getPointOnPath(o.path,n,o.segmentsInfo);i.renderLeft=s.x-r.x,i.renderTop=s.y-r.y,i.angle=s.angle+(\\\\\\\"right\\\\\\\"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(t,e,i,r,n){var o,s=this.getCompleteStyleDeclaration(e,i),a=r?this.getCompleteStyleDeclaration(e,i-1):{},h=this._measureChar(t,s,r,a),c=h.kernedWidth,l=h.width;0!==this.charSpacing\\\\u0026\\\\u0026(l+=o=this._getWidthOfCharSpacing(),c+=o);var u={width:l,left:0,height:s.fontSize,kernedWidth:c,deltaY:s.deltaY};if(i\\\\u003e0\\\\u0026\\\\u0026!n){var f=this.__charBounds[e][i-1];u.left=f.left+f.width+h.kernedWidth-h.width}return u},getHeightOfLine:function(t){if(this.__lineHeights[t])return this.__lineHeights[t];for(var e=this._textLines[t],i=this.getHeightOfChar(t,0),r=1,n=e.length;r\\\\u003cn;r++)i=Math.max(this.getHeightOfChar(t,r),i);return this.__lineHeights[t]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var t,e=0,i=0,r=this._textLines.length;i\\\\u003cr;i++)t=this.getHeightOfLine(i),e+=i===r-1?t/this.lineHeight:t;return e},_getLeftOffset:function(){return\\\\\\\"ltr\\\\\\\"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(t,e){t.save();for(var i=0,r=this._getLeftOffset(),n=this._getTopOffset(),o=0,s=this._textLines.length;o\\\\u003cs;o++){var a=this.getHeightOfLine(o),h=a/this.lineHeight,c=this._getLineLeftOffset(o);this._renderTextLine(e,t,this._textLines[o],r+c,n+i+h,o),i+=a}t.restore()},_renderTextFill:function(t){(this.fill||this.styleHas(\\\\\\\"fill\\\\\\\"))\\\\u0026\\\\u0026this._renderTextCommon(t,\\\\\\\"fillText\\\\\\\")},_renderTextStroke:function(t){(this.stroke\\\\u0026\\\\u00260!==this.strokeWidth||!this.isEmptyStyles())\\\\u0026\\\\u0026(this.shadow\\\\u0026\\\\u0026!this.shadow.affectStroke\\\\u0026\\\\u0026this._removeShadow(t),t.save(),this._setLineDash(t,this.strokeDashArray),t.beginPath(),this._renderTextCommon(t,\\\\\\\"strokeText\\\\\\\"),t.closePath(),t.restore())},_renderChars:function(t,e,i,r,n,o){var s,a,h,c,l,u=this.getHeightOfLine(o),f=-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\"),d=\\\\\\\"\\\\\\\",g=0,p=this.path,v=!f\\\\u0026\\\\u00260===this.charSpacing\\\\u0026\\\\u0026this.isEmptyStyles(o)\\\\u0026\\\\u0026!p,m=\\\\\\\"ltr\\\\\\\"===this.direction,y=\\\\\\\"ltr\\\\\\\"===this.direction?1:-1;if(e.save(),n-=u*this._fontSizeFraction/this.lineHeight,v)return e.canvas.setAttribute(\\\\\\\"dir\\\\\\\",m?\\\\\\\"ltr\\\\\\\":\\\\\\\"rtl\\\\\\\"),e.direction=m?\\\\\\\"ltr\\\\\\\":\\\\\\\"rtl\\\\\\\",e.textAlign=m?\\\\\\\"left\\\\\\\":\\\\\\\"right\\\\\\\",this._renderChar(t,e,o,0,i.join(\\\\\\\"\\\\\\\"),r,n,u),void e.restore();for(var _=0,b=i.length-1;_\\\\u003c=b;_++)c=_===b||this.charSpacing||p,d+=i[_],h=this.__charBounds[o][_],0===g?(r+=y*(h.kernedWidth-h.width),g+=h.width):g+=h.kernedWidth,f\\\\u0026\\\\u0026!c\\\\u0026\\\\u0026this._reSpaceAndTab.test(i[_])\\\\u0026\\\\u0026(c=!0),c||(s=s||this.getCompleteStyleDeclaration(o,_),a=this.getCompleteStyleDeclaration(o,_+1),c=this._hasStyleChanged(s,a)),c\\\\u0026\\\\u0026(p?(e.save(),e.translate(h.renderLeft,h.renderTop),e.rotate(h.angle),this._renderChar(t,e,o,_,d,-g/2,0,u),e.restore()):(l=r,e.canvas.setAttribute(\\\\\\\"dir\\\\\\\",m?\\\\\\\"ltr\\\\\\\":\\\\\\\"rtl\\\\\\\"),e.direction=m?\\\\\\\"ltr\\\\\\\":\\\\\\\"rtl\\\\\\\",e.textAlign=m?\\\\\\\"left\\\\\\\":\\\\\\\"right\\\\\\\",this._renderChar(t,e,o,_,d,l,n,u)),d=\\\\\\\"\\\\\\\",s=a,r+=y*g,g=0);e.restore()},_applyPatternGradientTransformText:function(t){var i,r=e.util.createCanvasElement(),n=this.width+this.strokeWidth,o=this.height+this.strokeWidth;return r.width=n,r.height=o,(i=r.getContext(\\\\\\\"2d\\\\\\\")).beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,o),i.lineTo(0,o),i.closePath(),i.translate(n/2,o/2),i.fillStyle=t.toLive(i),this._applyPatternGradientTransform(i,t),i.fill(),i.createPattern(r,\\\\\\\"no-repeat\\\\\\\")},handleFiller:function(t,e,i){var r,n;return i.toLive?\\\\\\\"percentage\\\\\\\"===i.gradientUnits||i.gradientTransform||i.patternTransform?(r=-this.width/2,n=-this.height/2,t.translate(r,n),t[e]=this._applyPatternGradientTransformText(i),{offsetX:r,offsetY:n}):(t[e]=i.toLive(t,this),this._applyPatternGradientTransform(t,i)):(t[e]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(t,e){return t.lineWidth=e.strokeWidth,t.lineCap=this.strokeLineCap,t.lineDashOffset=this.strokeDashOffset,t.lineJoin=this.strokeLineJoin,t.miterLimit=this.strokeMiterLimit,this.handleFiller(t,\\\\\\\"strokeStyle\\\\\\\",e.stroke)},_setFillStyles:function(t,e){return this.handleFiller(t,\\\\\\\"fillStyle\\\\\\\",e.fill)},_renderChar:function(t,e,i,r,n,o,s){var a,h,c=this._getStyleDeclaration(i,r),l=this.getCompleteStyleDeclaration(i,r),u=\\\\\\\"fillText\\\\\\\"===t\\\\u0026\\\\u0026l.fill,f=\\\\\\\"strokeText\\\\\\\"===t\\\\u0026\\\\u0026l.stroke\\\\u0026\\\\u0026l.strokeWidth;(f||u)\\\\u0026\\\\u0026(e.save(),u\\\\u0026\\\\u0026(a=this._setFillStyles(e,l)),f\\\\u0026\\\\u0026(h=this._setStrokeStyles(e,l)),e.font=this._getFontDeclaration(l),c\\\\u0026\\\\u0026c.textBackgroundColor\\\\u0026\\\\u0026this._removeShadow(e),c\\\\u0026\\\\u0026c.deltaY\\\\u0026\\\\u0026(s+=c.deltaY),u\\\\u0026\\\\u0026e.fillText(n,o-a.offsetX,s-a.offsetY),f\\\\u0026\\\\u0026e.strokeText(n,o-h.offsetX,s-h.offsetY),e.restore())},setSuperscript:function(t,e){return this._setScript(t,e,this.superscript)},setSubscript:function(t,e){return this._setScript(t,e,this.subscript)},_setScript:function(t,e,i){var r=this.get2DCursorLocation(t,!0),n=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,\\\\\\\"fontSize\\\\\\\"),o=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,\\\\\\\"deltaY\\\\\\\"),s={fontSize:n*i.size,deltaY:o+n*i.baseline};return this.setSelectionStyles(s,t,e),this},_hasStyleChanged:function(t,e){return t.fill!==e.fill||t.stroke!==e.stroke||t.strokeWidth!==e.strokeWidth||t.fontSize!==e.fontSize||t.fontFamily!==e.fontFamily||t.fontWeight!==e.fontWeight||t.fontStyle!==e.fontStyle||t.deltaY!==e.deltaY},_hasStyleChangedForSvg:function(t,e){return this._hasStyleChanged(t,e)||t.overline!==e.overline||t.underline!==e.underline||t.linethrough!==e.linethrough},_getLineLeftOffset:function(t){var e=this.getLineWidth(t),i=this.width-e,r=this.textAlign,n=this.direction,o=0,s=this.isEndOfWrapping(t);return\\\\\\\"justify\\\\\\\"===r||\\\\\\\"justify-center\\\\\\\"===r\\\\u0026\\\\u0026!s||\\\\\\\"justify-right\\\\\\\"===r\\\\u0026\\\\u0026!s||\\\\\\\"justify-left\\\\\\\"===r\\\\u0026\\\\u0026!s?0:(\\\\\\\"center\\\\\\\"===r\\\\u0026\\\\u0026(o=i/2),\\\\\\\"right\\\\\\\"===r\\\\u0026\\\\u0026(o=i),\\\\\\\"justify-center\\\\\\\"===r\\\\u0026\\\\u0026(o=i/2),\\\\\\\"justify-right\\\\\\\"===r\\\\u0026\\\\u0026(o=i),\\\\\\\"rtl\\\\\\\"===n\\\\u0026\\\\u0026(o-=i),o)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var t=this._forceClearCache;return t||(t=this.hasStateChanged(\\\\\\\"_dimensionAffectingProps\\\\\\\")),t\\\\u0026\\\\u0026(this.dirty=!0,this._forceClearCache=!1),t},getLineWidth:function(t){return this.__lineWidths[t]?this.__lineWidths[t]:(e=\\\\\\\"\\\\\\\"===this._textLines[t]?0:this.measureLine(t).width,this.__lineWidths[t]=e,e);var e},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(t,e,i){var r=this._getStyleDeclaration(t,e);return r\\\\u0026\\\\u0026void 0!==r[i]?r[i]:this[i]},_renderTextDecoration:function(t,e){if(this[e]||this.styleHas(e)){for(var i,r,n,o,s,a,h,c,l,u,f,d,g,p,v,m,y=this._getLeftOffset(),_=this._getTopOffset(),b=this.path,x=this._getWidthOfCharSpacing(),C=this.offsets[e],w=0,S=this._textLines.length;w\\\\u003cS;w++)if(i=this.getHeightOfLine(w),this[e]||this.styleHas(e,w)){h=this._textLines[w],p=i/this.lineHeight,o=this._getLineLeftOffset(w),u=0,f=0,c=this.getValueOfPropertyAt(w,0,e),m=this.getValueOfPropertyAt(w,0,\\\\\\\"fill\\\\\\\"),l=_+p*(1-this._fontSizeFraction),r=this.getHeightOfChar(w,0),s=this.getValueOfPropertyAt(w,0,\\\\\\\"deltaY\\\\\\\");for(var T=0,O=h.length;T\\\\u003cO;T++)if(d=this.__charBounds[w][T],g=this.getValueOfPropertyAt(w,T,e),v=this.getValueOfPropertyAt(w,T,\\\\\\\"fill\\\\\\\"),n=this.getHeightOfChar(w,T),a=this.getValueOfPropertyAt(w,T,\\\\\\\"deltaY\\\\\\\"),b\\\\u0026\\\\u0026g\\\\u0026\\\\u0026v)t.save(),t.fillStyle=m,t.translate(d.renderLeft,d.renderTop),t.rotate(d.angle),t.fillRect(-d.kernedWidth/2,C*n+a,d.kernedWidth,this.fontSize/15),t.restore();else if((g!==c||v!==m||n!==r||a!==s)\\\\u0026\\\\u0026f\\\\u003e0){var P=y+o+u;\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(P=this.width-P-f),c\\\\u0026\\\\u0026m\\\\u0026\\\\u0026(t.fillStyle=m,t.fillRect(P,l+C*r+s,f,this.fontSize/15)),u=d.left,f=d.width,c=g,m=v,r=n,s=a}else f+=d.kernedWidth;P=y+o+u;\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(P=this.width-P-f),t.fillStyle=v,g\\\\u0026\\\\u0026v\\\\u0026\\\\u0026t.fillRect(P,l+C*r+s,f-x,this.fontSize/15),_+=i}else _+=i;this._removeShadow(t)}},_getFontDeclaration:function(t,i){var r=t||this,n=this.fontFamily,o=e.Text.genericFonts.indexOf(n.toLowerCase())\\\\u003e-1,s=void 0===n||n.indexOf(\\\\\\\"'\\\\\\\")\\\\u003e-1||n.indexOf(\\\\\\\",\\\\\\\")\\\\u003e-1||n.indexOf('\\\\\\\"')\\\\u003e-1||o?r.fontFamily:'\\\\\\\"'+r.fontFamily+'\\\\\\\"';return[e.isLikelyNode?r.fontWeight:r.fontStyle,e.isLikelyNode?r.fontStyle:r.fontWeight,i?this.CACHE_FONT_SIZE+\\\\\\\"px\\\\\\\":r.fontSize+\\\\\\\"px\\\\\\\",s].join(\\\\\\\" \\\\\\\")},render:function(t){this.visible\\\\u0026\\\\u0026(this.canvas\\\\u0026\\\\u0026this.canvas.skipOffscreen\\\\u0026\\\\u0026!this.group\\\\u0026\\\\u0026!this.isOnScreen()||(this._shouldClearDimensionCache()\\\\u0026\\\\u0026this.initDimensions(),this.callSuper(\\\\\\\"render\\\\\\\",t)))},_splitTextIntoLines:function(t){for(var i=t.split(this._reNewline),r=new Array(i.length),n=[\\\\\\\"\\\\\\\\n\\\\\\\"],o=[],s=0;s\\\\u003ci.length;s++)r[s]=e.util.string.graphemeSplit(i[s]),o=o.concat(r[s],n);return o.pop(),{_unwrappedLines:r,lines:i,graphemeText:o,graphemeLines:r}},toObject:function(t){var e=r.concat(t),n=this.callSuper(\\\\\\\"toObject\\\\\\\",e);return n.styles=i(this.styles,!0),n.path\\\\u0026\\\\u0026(n.path=this.path.toObject()),n},set:function(t,e){this.callSuper(\\\\\\\"set\\\\\\\",t,e);var i=!1,r=!1;if(\\\\\\\"object\\\\\\\"==typeof t)for(var n in t)\\\\\\\"path\\\\\\\"===n\\\\u0026\\\\u0026this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),r=r||\\\\\\\"path\\\\\\\"===n;else i=-1!==this._dimensionAffectingProps.indexOf(t),r=\\\\\\\"path\\\\\\\"===t;return r\\\\u0026\\\\u0026this.setPathInfo(),i\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),e.Text.ATTRIBUTE_NAMES=e.SHARED_ATTRIBUTES.concat(\\\\\\\"x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor\\\\\\\".split(\\\\\\\" \\\\\\\")),e.Text.DEFAULT_SVG_FONT_SIZE=16,e.Text.fromElement=function(t,r,n){if(!t)return r(null);var o=e.parseAttributes(t,e.Text.ATTRIBUTE_NAMES),s=o.textAnchor||\\\\\\\"left\\\\\\\";if((n=e.util.object.extend(n?i(n):{},o)).top=n.top||0,n.left=n.left||0,o.textDecoration){var a=o.textDecoration;-1!==a.indexOf(\\\\\\\"underline\\\\\\\")\\\\u0026\\\\u0026(n.underline=!0),-1!==a.indexOf(\\\\\\\"overline\\\\\\\")\\\\u0026\\\\u0026(n.overline=!0),-1!==a.indexOf(\\\\\\\"line-through\\\\\\\")\\\\u0026\\\\u0026(n.linethrough=!0),delete n.textDecoration}\\\\\\\"dx\\\\\\\"in o\\\\u0026\\\\u0026(n.left+=o.dx),\\\\\\\"dy\\\\\\\"in o\\\\u0026\\\\u0026(n.top+=o.dy),\\\\\\\"fontSize\\\\\\\"in n||(n.fontSize=e.Text.DEFAULT_SVG_FONT_SIZE);var h=\\\\\\\"\\\\\\\";\\\\\\\"textContent\\\\\\\"in t?h=t.textContent:\\\\\\\"firstChild\\\\\\\"in t\\\\u0026\\\\u0026null!==t.firstChild\\\\u0026\\\\u0026\\\\\\\"data\\\\\\\"in t.firstChild\\\\u0026\\\\u0026null!==t.firstChild.data\\\\u0026\\\\u0026(h=t.firstChild.data),h=h.replace(/^\\\\\\\\s+|\\\\\\\\s+$|\\\\\\\\n+/g,\\\\\\\"\\\\\\\").replace(/\\\\\\\\s+/g,\\\\\\\" \\\\\\\");var c=n.strokeWidth;n.strokeWidth=0;var l=new e.Text(h,n),u=l.getScaledHeight()/l.height,f=((l.height+l.strokeWidth)*l.lineHeight-l.height)*u,d=l.getScaledHeight()+f,g=0;\\\\\\\"center\\\\\\\"===s\\\\u0026\\\\u0026(g=l.getScaledWidth()/2),\\\\\\\"right\\\\\\\"===s\\\\u0026\\\\u0026(g=l.getScaledWidth()),l.set({left:l.left-g,top:l.top-(d-l.fontSize*(.07+l._fontSizeFraction))/l.lineHeight,strokeWidth:void 0!==c?c:1}),r(l)},e.Text.fromObject=function(t,r){var n=i(t),o=t.path;return delete n.path,e.Object._fromObject(\\\\\\\"Text\\\\\\\",n,(function(t){o?e.Object._fromObject(\\\\\\\"Path\\\\\\\",o,(function(e){t.set(\\\\\\\"path\\\\\\\",e),r(t)}),\\\\\\\"path\\\\\\\"):r(t)}),\\\\\\\"text\\\\\\\")},e.Text.genericFonts=[\\\\\\\"sans-serif\\\\\\\",\\\\\\\"serif\\\\\\\",\\\\\\\"cursive\\\\\\\",\\\\\\\"fantasy\\\\\\\",\\\\\\\"monospace\\\\\\\"],e.util.createAccessors\\\\u0026\\\\u0026e.util.createAccessors(e.Text)}}(t),T.util.object.extend(T.Text.prototype,{isEmptyStyles:function(t){if(!this.styles)return!0;if(void 0!==t\\\\u0026\\\\u0026!this.styles[t])return!0;var e=void 0===t?this.styles:{line:this.styles[t]};for(var i in e)for(var r in e[i])for(var n in e[i][r])return!1;return!0},styleHas:function(t,e){if(!this.styles||!t||\\\\\\\"\\\\\\\"===t)return!1;if(void 0!==e\\\\u0026\\\\u0026!this.styles[e])return!1;var i=void 0===e?this.styles:{0:this.styles[e]};for(var r in i)for(var n in i[r])if(void 0!==i[r][n][t])return!0;return!1},cleanStyle:function(t){if(!this.styles||!t||\\\\\\\"\\\\\\\"===t)return!1;var e,i,r=this.styles,n=0,o=!0,s=0;for(var a in r){for(var h in e=0,r[a]){var c;n++,(c=r[a][h]).hasOwnProperty(t)?(i?c[t]!==i\\\\u0026\\\\u0026(o=!1):i=c[t],c[t]===this[t]\\\\u0026\\\\u0026delete c[t]):o=!1,0!==Object.keys(c).length?e++:delete r[a][h]}0===e\\\\u0026\\\\u0026delete r[a]}for(var l=0;l\\\\u003cthis._textLines.length;l++)s+=this._textLines[l].length;o\\\\u0026\\\\u0026n===s\\\\u0026\\\\u0026(this[t]=i,this.removeStyle(t))},removeStyle:function(t){if(this.styles\\\\u0026\\\\u0026t\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!==t){var e,i,r,n=this.styles;for(i in n){for(r in e=n[i])delete e[r][t],0===Object.keys(e[r]).length\\\\u0026\\\\u0026delete e[r];0===Object.keys(e).length\\\\u0026\\\\u0026delete n[i]}}},_extendStyles:function(t,e){var i=this.get2DCursorLocation(t);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),T.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),e)},get2DCursorLocation:function(t,e){void 0===t\\\\u0026\\\\u0026(t=this.selectionStart);for(var i=e?this._unwrappedTextLines:this._textLines,r=i.length,n=0;n\\\\u003cr;n++){if(t\\\\u003c=i[n].length)return{lineIndex:n,charIndex:t};t-=i[n].length+this.missingNewlineOffset(n)}return{lineIndex:n-1,charIndex:i[n-1].length\\\\u003ct?i[n-1].length:t}},getSelectionStyles:function(t,e,i){void 0===t\\\\u0026\\\\u0026(t=this.selectionStart||0),void 0===e\\\\u0026\\\\u0026(e=this.selectionEnd||t);for(var r=[],n=t;n\\\\u003ce;n++)r.push(this.getStyleAtPosition(n,i));return r},getStyleAtPosition:function(t,e){var i=this.get2DCursorLocation(t);return(e?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex))||{}},setSelectionStyles:function(t,e,i){void 0===e\\\\u0026\\\\u0026(e=this.selectionStart||0),void 0===i\\\\u0026\\\\u0026(i=this.selectionEnd||e);for(var r=e;r\\\\u003ci;r++)this._extendStyles(r,t);return this._forceClearCache=!0,this},_getStyleDeclaration:function(t,e){var i=this.styles\\\\u0026\\\\u0026this.styles[t];return i?i[e]:null},getCompleteStyleDeclaration:function(t,e){for(var i,r=this._getStyleDeclaration(t,e)||{},n={},o=0;o\\\\u003cthis._styleProperties.length;o++)n[i=this._styleProperties[o]]=void 0===r[i]?this[i]:r[i];return n},_setStyleDeclaration:function(t,e,i){this.styles[t][e]=i},_deleteStyleDeclaration:function(t,e){delete this.styles[t][e]},_getLineStyle:function(t){return!!this.styles[t]},_setLineStyle:function(t){this.styles[t]={}},_deleteLineStyle:function(t){delete this.styles[t]}}),function(){function t(t){t.textDecoration\\\\u0026\\\\u0026(t.textDecoration.indexOf(\\\\\\\"underline\\\\\\\")\\\\u003e-1\\\\u0026\\\\u0026(t.underline=!0),t.textDecoration.indexOf(\\\\\\\"line-through\\\\\\\")\\\\u003e-1\\\\u0026\\\\u0026(t.linethrough=!0),t.textDecoration.indexOf(\\\\\\\"overline\\\\\\\")\\\\u003e-1\\\\u0026\\\\u0026(t.overline=!0),delete t.textDecoration)}T.IText=T.util.createClass(T.Text,T.Observable,{type:\\\\\\\"i-text\\\\\\\",selectionStart:0,selectionEnd:0,selectionColor:\\\\\\\"rgba(17,119,255,0.3)\\\\\\\",isEditing:!1,editable:!0,editingBorderColor:\\\\\\\"rgba(102,153,255,0.25)\\\\\\\",cursorWidth:2,cursorColor:\\\\\\\"\\\\\\\",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\\\\\\\\s|\\\\\\\\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(t,e){this.callSuper(\\\\\\\"initialize\\\\\\\",t,e),this.initBehavior()},setSelectionStart:function(t){t=Math.max(t,0),this._updateAndFire(\\\\\\\"selectionStart\\\\\\\",t)},setSelectionEnd:function(t){t=Math.min(t,this.text.length),this._updateAndFire(\\\\\\\"selectionEnd\\\\\\\",t)},_updateAndFire:function(t,e){this[t]!==e\\\\u0026\\\\u0026(this._fireSelectionChanged(),this[t]=e),this._updateTextarea()},_fireSelectionChanged:function(){this.fire(\\\\\\\"selection:changed\\\\\\\"),this.canvas\\\\u0026\\\\u0026this.canvas.fire(\\\\\\\"text:selection:changed\\\\\\\",{target:this})},initDimensions:function(){this.isEditing\\\\u0026\\\\u0026this.initDelayedCursor(),this.clearContextTop(),this.callSuper(\\\\\\\"initDimensions\\\\\\\")},render:function(t){this.clearContextTop(),this.callSuper(\\\\\\\"render\\\\\\\",t),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(t){this.callSuper(\\\\\\\"_render\\\\\\\",t)},clearContextTop:function(t){if(this.isEditing\\\\u0026\\\\u0026this.canvas\\\\u0026\\\\u0026this.canvas.contextTop){var e=this.canvas.contextTop,i=this.canvas.viewportTransform;e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(e),this._clearTextArea(e),t||e.restore()}},renderCursorOrSelection:function(){if(this.isEditing\\\\u0026\\\\u0026this.canvas\\\\u0026\\\\u0026this.canvas.contextTop){var t=this._getCursorBoundaries(),e=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(t,e):this.renderSelection(t,e),e.restore()}},_clearTextArea:function(t){var e=this.width+4,i=this.height+4;t.clearRect(-e/2,-i/2,e,i)},_getCursorBoundaries:function(t){void 0===t\\\\u0026\\\\u0026(t=this.selectionStart);var e=this._getLeftOffset(),i=this._getTopOffset(),r=this._getCursorBoundariesOffsets(t);return{left:e,top:i,leftOffset:r.left,topOffset:r.top}},_getCursorBoundariesOffsets:function(t){if(this.cursorOffsetCache\\\\u0026\\\\u0026\\\\\\\"top\\\\\\\"in this.cursorOffsetCache)return this.cursorOffsetCache;var e,i,r,n,o=0,s=0,a=this.get2DCursorLocation(t);r=a.charIndex,i=a.lineIndex;for(var h=0;h\\\\u003ci;h++)o+=this.getHeightOfLine(h);e=this._getLineLeftOffset(i);var c=this.__charBounds[i][r];return c\\\\u0026\\\\u0026(s=c.left),0!==this.charSpacing\\\\u0026\\\\u0026r===this._textLines[i].length\\\\u0026\\\\u0026(s-=this._getWidthOfCharSpacing()),n={top:o,left:e+(s\\\\u003e0?s:0)},\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(t,e){var i=this.get2DCursorLocation(),r=i.lineIndex,n=i.charIndex\\\\u003e0?i.charIndex-1:0,o=this.getValueOfPropertyAt(r,n,\\\\\\\"fontSize\\\\\\\"),s=this.scaleX*this.canvas.getZoom(),a=this.cursorWidth/s,h=t.topOffset,c=this.getValueOfPropertyAt(r,n,\\\\\\\"deltaY\\\\\\\");h+=(1-this._fontSizeFraction)*this.getHeightOfLine(r)/this.lineHeight-o*(1-this._fontSizeFraction),this.inCompositionMode\\\\u0026\\\\u0026this.renderSelection(t,e),e.fillStyle=this.cursorColor||this.getValueOfPropertyAt(r,n,\\\\\\\"fill\\\\\\\"),e.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,e.fillRect(t.left+t.leftOffset-a/2,h+t.top+c,a,o)},renderSelection:function(t,e){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,r=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\"),o=this.get2DCursorLocation(i),s=this.get2DCursorLocation(r),a=o.lineIndex,h=s.lineIndex,c=o.charIndex\\\\u003c0?0:o.charIndex,l=s.charIndex\\\\u003c0?0:s.charIndex,u=a;u\\\\u003c=h;u++){var f,d=this._getLineLeftOffset(u)||0,g=this.getHeightOfLine(u),p=0,v=0;if(u===a\\\\u0026\\\\u0026(p=this.__charBounds[a][c].left),u\\\\u003e=a\\\\u0026\\\\u0026u\\\\u003ch)v=n\\\\u0026\\\\u0026!this.isEndOfWrapping(u)?this.width:this.getLineWidth(u)||5;else if(u===h)if(0===l)v=this.__charBounds[h][l].left;else{var m=this._getWidthOfCharSpacing();v=this.__charBounds[h][l-1].left+this.__charBounds[h][l-1].width-m}f=g,(this.lineHeight\\\\u003c1||u===h\\\\u0026\\\\u0026this.lineHeight\\\\u003e1)\\\\u0026\\\\u0026(g/=this.lineHeight);var y=t.left+d+p,_=v-p,b=g,x=0;this.inCompositionMode?(e.fillStyle=this.compositionColor||\\\\\\\"black\\\\\\\",b=1,x=g):e.fillStyle=this.selectionColor,\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(y=this.width-y-_),e.fillRect(y,t.top+t.topOffset+x,_,b),t.topOffset+=f}},getCurrentCharFontSize:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,\\\\\\\"fontSize\\\\\\\")},getCurrentCharColor:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,\\\\\\\"fill\\\\\\\")},_getCurrentCharIndex:function(){var t=this.get2DCursorLocation(this.selectionStart,!0),e=t.charIndex\\\\u003e0?t.charIndex-1:0;return{l:t.lineIndex,c:e}}}),T.IText.fromObject=function(e,i){if(t(e),e.styles)for(var r in e.styles)for(var n in e.styles[r])t(e.styles[r][n]);T.Object._fromObject(\\\\\\\"IText\\\\\\\",e,i,\\\\\\\"text\\\\\\\")}}(),S=T.util.object.clone,T.util.object.extend(T.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing\\\\u0026\\\\u0026this.exitEditing(),this.selected=!1},initAddedHandler:function(){var t=this;this.on(\\\\\\\"added\\\\\\\",(function(){var e=t.canvas;e\\\\u0026\\\\u0026(e._hasITextHandlers||(e._hasITextHandlers=!0,t._initCanvasHandlers(e)),e._iTextInstances=e._iTextInstances||[],e._iTextInstances.push(t))}))},initRemovedHandler:function(){var t=this;this.on(\\\\\\\"removed\\\\\\\",(function(){var e=t.canvas;e\\\\u0026\\\\u0026(e._iTextInstances=e._iTextInstances||[],T.util.removeFromArray(e._iTextInstances,t),0===e._iTextInstances.length\\\\u0026\\\\u0026(e._hasITextHandlers=!1,t._removeCanvasHandlers(e)))}))},_initCanvasHandlers:function(t){t._mouseUpITextHandler=function(){t._iTextInstances\\\\u0026\\\\u0026t._iTextInstances.forEach((function(t){t.__isMousedown=!1}))},t.on(\\\\\\\"mouse:up\\\\\\\",t._mouseUpITextHandler)},_removeCanvasHandlers:function(t){t.off(\\\\\\\"mouse:up\\\\\\\",t._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,\\\\\\\"_onTickComplete\\\\\\\")},_animateCursor:function(t,e,i,r){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},t.animate(\\\\\\\"_currentCursorOpacity\\\\\\\",e,{duration:i,onComplete:function(){n.isAborted||t[r]()},onChange:function(){t.canvas\\\\u0026\\\\u0026t.selectionStart===t.selectionEnd\\\\u0026\\\\u0026t.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var t=this;this._cursorTimeout1\\\\u0026\\\\u0026clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){t._currentTickCompleteState=t._animateCursor(t,0,this.cursorDuration/2,\\\\\\\"_tick\\\\\\\")}),100)},initDelayedCursor:function(t){var e=this,i=t?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){e._tick()}),i)},abortCursorAnimation:function(){var t=this._currentTickState||this._currentTickCompleteState,e=this.canvas;this._currentTickState\\\\u0026\\\\u0026this._currentTickState.abort(),this._currentTickCompleteState\\\\u0026\\\\u0026this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,t\\\\u0026\\\\u0026e\\\\u0026\\\\u0026e.clearContext(e.contextTop||e.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join(\\\\\\\"\\\\\\\")},findWordBoundaryLeft:function(t){var e=0,i=t-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i--;for(;/\\\\\\\\S/.test(this._text[i])\\\\u0026\\\\u0026i\\\\u003e-1;)e++,i--;return t-e},findWordBoundaryRight:function(t){var e=0,i=t;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i++;for(;/\\\\\\\\S/.test(this._text[i])\\\\u0026\\\\u0026i\\\\u003cthis._text.length;)e++,i++;return t+e},findLineBoundaryLeft:function(t){for(var e=0,i=t-1;!/\\\\\\\\n/.test(this._text[i])\\\\u0026\\\\u0026i\\\\u003e-1;)e++,i--;return t-e},findLineBoundaryRight:function(t){for(var e=0,i=t;!/\\\\\\\\n/.test(this._text[i])\\\\u0026\\\\u0026i\\\\u003cthis._text.length;)e++,i++;return t+e},searchWordBoundary:function(t,e){for(var i=this._text,r=this._reSpace.test(i[t])?t-1:t,n=i[r],o=T.reNonWord;!o.test(n)\\\\u0026\\\\u0026r\\\\u003e0\\\\u0026\\\\u0026r\\\\u003ci.length;)n=i[r+=e];return o.test(n)\\\\u0026\\\\u0026(r+=1===e?0:1),r},selectWord:function(t){t=t||this.selectionStart;var e=this.searchWordBoundary(t,-1),i=this.searchWordBoundary(t,1);this.selectionStart=e,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(t){t=t||this.selectionStart;var e=this.findLineBoundaryLeft(t),i=this.findLineBoundaryRight(t);return this.selectionStart=e,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(t){if(!this.isEditing\\\\u0026\\\\u0026this.editable)return this.canvas\\\\u0026\\\\u0026(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(t),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire(\\\\\\\"editing:entered\\\\\\\"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire(\\\\\\\"text:editing:entered\\\\\\\",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(t){t._iTextInstances\\\\u0026\\\\u0026t._iTextInstances.forEach((function(t){t.selected=!1,t.isEditing\\\\u0026\\\\u0026t.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on(\\\\\\\"mouse:move\\\\\\\",this.mouseMoveHandler)},mouseMoveHandler:function(t){if(this.__isMousedown\\\\u0026\\\\u0026this.isEditing){var e=this.getSelectionStartFromPointer(t.e),i=this.selectionStart,r=this.selectionEnd;(e===this.__selectionStartOnMouseDown\\\\u0026\\\\u0026i!==r||i!==e\\\\u0026\\\\u0026r!==e)\\\\u0026\\\\u0026(e\\\\u003ethis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=e):(this.selectionStart=e,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i\\\\u0026\\\\u0026this.selectionEnd===r||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor=\\\\\\\"text\\\\\\\",this.canvas\\\\u0026\\\\u0026(this.canvas.defaultCursor=this.canvas.moveCursor=\\\\\\\"text\\\\\\\"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(t,e,i){var r=i.slice(0,t),n=T.util.string.graphemeSplit(r).length;if(t===e)return{selectionStart:n,selectionEnd:n};var o=i.slice(t,e);return{selectionStart:n,selectionEnd:n+T.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(t,e,i){var r=i.slice(0,t).join(\\\\\\\"\\\\\\\").length;return t===e?{selectionStart:r,selectionEnd:r}:{selectionStart:r,selectionEnd:r+i.slice(t,e).join(\\\\\\\"\\\\\\\").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var t=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=t.selectionStart,this.hiddenTextarea.selectionEnd=t.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords());var t=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=t.selectionEnd,this.inCompositionMode||(this.selectionStart=t.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var t=this._calcTextareaPosition();this.hiddenTextarea.style.left=t.left,this.hiddenTextarea.style.top=t.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var t=this.inCompositionMode?this.compositionStart:this.selectionStart,e=this._getCursorBoundaries(t),i=this.get2DCursorLocation(t),r=i.lineIndex,n=i.charIndex,o=this.getValueOfPropertyAt(r,n,\\\\\\\"fontSize\\\\\\\")*this.lineHeight,s=e.leftOffset,a=this.calcTransformMatrix(),h={x:e.left+s,y:e.top+e.topOffset+o},c=this.canvas.getRetinaScaling(),l=this.canvas.upperCanvasEl,u=l.width/c,f=l.height/c,d=u-o,g=f-o,p=l.clientWidth/u,v=l.clientHeight/f;return h=T.util.transformPoint(h,a),(h=T.util.transformPoint(h,this.canvas.viewportTransform)).x*=p,h.y*=v,h.x\\\\u003c0\\\\u0026\\\\u0026(h.x=0),h.x\\\\u003ed\\\\u0026\\\\u0026(h.x=d),h.y\\\\u003c0\\\\u0026\\\\u0026(h.y=0),h.y\\\\u003eg\\\\u0026\\\\u0026(h.y=g),h.x+=this.canvas._offset.left,h.y+=this.canvas._offset.top,{left:h.x+\\\\\\\"px\\\\\\\",top:h.y+\\\\\\\"px\\\\\\\",fontSize:o+\\\\\\\"px\\\\\\\",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas\\\\u0026\\\\u0026this.canvas.defaultCursor,moveCursor:this.canvas\\\\u0026\\\\u0026this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps\\\\u0026\\\\u0026(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas\\\\u0026\\\\u0026(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var t=this._textBeforeEdit!==this.text,e=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,e\\\\u0026\\\\u0026(e.blur\\\\u0026\\\\u0026e.blur(),e.parentNode\\\\u0026\\\\u0026e.parentNode.removeChild(e)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords()),this.fire(\\\\\\\"editing:exited\\\\\\\"),t\\\\u0026\\\\u0026this.fire(\\\\\\\"modified\\\\\\\"),this.canvas\\\\u0026\\\\u0026(this.canvas.off(\\\\\\\"mouse:move\\\\\\\",this.mouseMoveHandler),this.canvas.fire(\\\\\\\"text:editing:exited\\\\\\\",{target:this}),t\\\\u0026\\\\u0026this.canvas.fire(\\\\\\\"object:modified\\\\\\\",{target:this})),this},_removeExtraneousStyles:function(){for(var t in this.styles)this._textLines[t]||delete this.styles[t]},removeStyleFromTo:function(t,e){var i,r,n=this.get2DCursorLocation(t,!0),o=this.get2DCursorLocation(e,!0),s=n.lineIndex,a=n.charIndex,h=o.lineIndex,c=o.charIndex;if(s!==h){if(this.styles[s])for(i=a;i\\\\u003cthis._unwrappedTextLines[s].length;i++)delete this.styles[s][i];if(this.styles[h])for(i=c;i\\\\u003cthis._unwrappedTextLines[h].length;i++)(r=this.styles[h][i])\\\\u0026\\\\u0026(this.styles[s]||(this.styles[s]={}),this.styles[s][a+i-c]=r);for(i=s+1;i\\\\u003c=h;i++)delete this.styles[i];this.shiftLineStyles(h,s-h)}else if(this.styles[s]){r=this.styles[s];var l,u,f=c-a;for(i=a;i\\\\u003cc;i++)delete r[i];for(u in this.styles[s])(l=parseInt(u,10))\\\\u003e=c\\\\u0026\\\\u0026(r[l-f]=r[u],delete r[u])}},shiftLineStyles:function(t,e){var i=S(this.styles);for(var r in this.styles){var n=parseInt(r,10);n\\\\u003et\\\\u0026\\\\u0026(this.styles[n+e]=i[n],i[n-e]||delete this.styles[n])}},restartCursorIfNeeded:function(){this._currentTickState\\\\u0026\\\\u0026!this._currentTickState.isAborted\\\\u0026\\\\u0026this._currentTickCompleteState\\\\u0026\\\\u0026!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,e,i,r){var n,o={},s=!1,a=this._unwrappedTextLines[t].length===e;for(var h in i||(i=1),this.shiftLineStyles(t,i),this.styles[t]\\\\u0026\\\\u0026(n=this.styles[t][0===e?e:e-1]),this.styles[t]){var c=parseInt(h,10);c\\\\u003e=e\\\\u0026\\\\u0026(s=!0,o[c-e]=this.styles[t][h],a\\\\u0026\\\\u00260===e||delete this.styles[t][h])}var l=!1;for(s\\\\u0026\\\\u0026!a\\\\u0026\\\\u0026(this.styles[t+i]=o,l=!0),l\\\\u0026\\\\u0026i--;i\\\\u003e0;)r\\\\u0026\\\\u0026r[i-1]?this.styles[t+i]={0:S(r[i-1])}:n?this.styles[t+i]={0:S(n)}:delete this.styles[t+i],i--;this._forceClearCache=!0},insertCharStyleObject:function(t,e,i,r){this.styles||(this.styles={});var n=this.styles[t],o=n?S(n):{};for(var s in i||(i=1),o){var a=parseInt(s,10);a\\\\u003e=e\\\\u0026\\\\u0026(n[a+i]=o[a],o[a-i]||delete n[a])}if(this._forceClearCache=!0,r)for(;i--;)Object.keys(r[i]).length\\\\u0026\\\\u0026(this.styles[t]||(this.styles[t]={}),this.styles[t][e+i]=S(r[i]));else if(n)for(var h=n[e?e-1:1];h\\\\u0026\\\\u0026i--;)this.styles[t][e+i]=S(h)},insertNewStyleBlock:function(t,e,i){for(var r=this.get2DCursorLocation(e,!0),n=[0],o=0,s=0;s\\\\u003ct.length;s++)\\\\\\\"\\\\\\\\n\\\\\\\"===t[s]?n[++o]=0:n[o]++;for(n[0]\\\\u003e0\\\\u0026\\\\u0026(this.insertCharStyleObject(r.lineIndex,r.charIndex,n[0],i),i=i\\\\u0026\\\\u0026i.slice(n[0]+1)),o\\\\u0026\\\\u0026this.insertNewlineStyleObject(r.lineIndex,r.charIndex+n[0],o),s=1;s\\\\u003co;s++)n[s]\\\\u003e0?this.insertCharStyleObject(r.lineIndex+s,0,n[s],i):i\\\\u0026\\\\u0026(this.styles[r.lineIndex+s][0]=i[0]),i=i\\\\u0026\\\\u0026i.slice(n[s]+1);n[s]\\\\u003e0\\\\u0026\\\\u0026this.insertCharStyleObject(r.lineIndex+s,0,n[s],i)},setSelectionStartEndWithShift:function(t,e,i){i\\\\u003c=t?(e===t?this._selectionDirection=\\\\\\\"left\\\\\\\":\\\\\\\"right\\\\\\\"===this._selectionDirection\\\\u0026\\\\u0026(this._selectionDirection=\\\\\\\"left\\\\\\\",this.selectionEnd=t),this.selectionStart=i):i\\\\u003et\\\\u0026\\\\u0026i\\\\u003ce?\\\\\\\"right\\\\\\\"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(e===t?this._selectionDirection=\\\\\\\"right\\\\\\\":\\\\\\\"left\\\\\\\"===this._selectionDirection\\\\u0026\\\\u0026(this._selectionDirection=\\\\\\\"right\\\\\\\",this.selectionStart=e),this.selectionEnd=i)},setSelectionInBoundaries:function(){var t=this.text.length;this.selectionStart\\\\u003et?this.selectionStart=t:this.selectionStart\\\\u003c0\\\\u0026\\\\u0026(this.selectionStart=0),this.selectionEnd\\\\u003et?this.selectionEnd=t:this.selectionEnd\\\\u003c0\\\\u0026\\\\u0026(this.selectionEnd=0)}}),T.util.object.extend(T.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on(\\\\\\\"mousedown\\\\\\\",this.onMouseDown)},onMouseDown:function(t){if(this.canvas){this.__newClickTime=+new Date;var e=t.pointer;this.isTripleClick(e)\\\\u0026\\\\u0026(this.fire(\\\\\\\"tripleclick\\\\\\\",t),this._stopEvent(t.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=e,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(t){return this.__newClickTime-this.__lastClickTime\\\\u003c500\\\\u0026\\\\u0026this.__lastClickTime-this.__lastLastClickTime\\\\u003c500\\\\u0026\\\\u0026this.__lastPointer.x===t.x\\\\u0026\\\\u0026this.__lastPointer.y===t.y},_stopEvent:function(t){t.preventDefault\\\\u0026\\\\u0026t.preventDefault(),t.stopPropagation\\\\u0026\\\\u0026t.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(t){this.isEditing\\\\u0026\\\\u0026this.selectWord(this.getSelectionStartFromPointer(t.e))},tripleClickHandler:function(t){this.isEditing\\\\u0026\\\\u0026this.selectLine(this.getSelectionStartFromPointer(t.e))},initClicks:function(){this.on(\\\\\\\"mousedblclick\\\\\\\",this.doubleClickHandler),this.on(\\\\\\\"tripleclick\\\\\\\",this.tripleClickHandler)},_mouseDownHandler:function(t){!this.canvas||!this.editable||t.e.button\\\\u0026\\\\u00261!==t.e.button||(this.__isMousedown=!0,this.selected\\\\u0026\\\\u0026(this.inCompositionMode=!1,this.setCursorByClick(t.e)),this.isEditing\\\\u0026\\\\u0026(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd\\\\u0026\\\\u0026this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(t){!this.canvas||!this.editable||t.e.button\\\\u0026\\\\u00261!==t.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on(\\\\\\\"mousedown\\\\\\\",this._mouseDownHandler),this.on(\\\\\\\"mousedown:before\\\\\\\",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on(\\\\\\\"mouseup\\\\\\\",this.mouseUpHandler)},mouseUpHandler:function(t){if(this.__isMousedown=!1,!(!this.editable||this.group||t.transform\\\\u0026\\\\u0026t.transform.actionPerformed||t.e.button\\\\u0026\\\\u00261!==t.e.button)){if(this.canvas){var e=this.canvas._activeObject;if(e\\\\u0026\\\\u0026e!==this)return}this.__lastSelected\\\\u0026\\\\u0026!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(t.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(t){var e=this.getSelectionStartFromPointer(t),i=this.selectionStart,r=this.selectionEnd;t.shiftKey?this.setSelectionStartEndWithShift(i,r,e):(this.selectionStart=e,this.selectionEnd=e),this.isEditing\\\\u0026\\\\u0026(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(t){for(var e,i=this.getLocalPointer(t),r=0,n=0,o=0,s=0,a=0,h=0,c=this._textLines.length;h\\\\u003cc\\\\u0026\\\\u0026o\\\\u003c=i.y;h++)o+=this.getHeightOfLine(h)*this.scaleY,a=h,h\\\\u003e0\\\\u0026\\\\u0026(s+=this._textLines[h-1].length+this.missingNewlineOffset(h-1));n=this._getLineLeftOffset(a)*this.scaleX,e=this._textLines[a],\\\\\\\"rtl\\\\\\\"===this.direction\\\\u0026\\\\u0026(i.x=this.width*this.scaleX-i.x+n);for(var l=0,u=e.length;l\\\\u003cu\\\\u0026\\\\u0026(r=n,(n+=this.__charBounds[a][l].kernedWidth*this.scaleX)\\\\u003c=i.x);l++)s++;return this._getNewSelectionStartFromOffset(i,r,n,s,u)},_getNewSelectionStartFromOffset:function(t,e,i,r,n){var o=t.x-e,s=i-t.x,a=r+(s\\\\u003eo||s\\\\u003c0?0:1);return this.flipX\\\\u0026\\\\u0026(a=n-a),a\\\\u003ethis._text.length\\\\u0026\\\\u0026(a=this._text.length),a}}),T.util.object.extend(T.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=T.document.createElement(\\\\\\\"textarea\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"autocapitalize\\\\\\\",\\\\\\\"off\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"autocorrect\\\\\\\",\\\\\\\"off\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"autocomplete\\\\\\\",\\\\\\\"off\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"spellcheck\\\\\\\",\\\\\\\"false\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"data-fabric-hiddentextarea\\\\\\\",\\\\\\\"\\\\\\\"),this.hiddenTextarea.setAttribute(\\\\\\\"wrap\\\\\\\",\\\\\\\"off\\\\\\\");var t=this._calcTextareaPosition();this.hiddenTextarea.style.cssText=\\\\\\\"position: absolute; top: \\\\\\\"+t.top+\\\\\\\"; left: \\\\\\\"+t.left+\\\\\\\"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding\\uff70top: \\\\\\\"+t.fontSize+\\\\\\\";\\\\\\\",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):T.document.body.appendChild(this.hiddenTextarea),T.util.addListener(this.hiddenTextarea,\\\\\\\"keydown\\\\\\\",this.onKeyDown.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"keyup\\\\\\\",this.onKeyUp.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"input\\\\\\\",this.onInput.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"copy\\\\\\\",this.copy.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"cut\\\\\\\",this.copy.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"paste\\\\\\\",this.paste.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"compositionstart\\\\\\\",this.onCompositionStart.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"compositionupdate\\\\\\\",this.onCompositionUpdate.bind(this)),T.util.addListener(this.hiddenTextarea,\\\\\\\"compositionend\\\\\\\",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized\\\\u0026\\\\u0026this.canvas\\\\u0026\\\\u0026(T.util.addListener(this.canvas.upperCanvasEl,\\\\\\\"click\\\\\\\",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:\\\\\\\"exitEditing\\\\\\\",27:\\\\\\\"exitEditing\\\\\\\",33:\\\\\\\"moveCursorUp\\\\\\\",34:\\\\\\\"moveCursorDown\\\\\\\",35:\\\\\\\"moveCursorRight\\\\\\\",36:\\\\\\\"moveCursorLeft\\\\\\\",37:\\\\\\\"moveCursorLeft\\\\\\\",38:\\\\\\\"moveCursorUp\\\\\\\",39:\\\\\\\"moveCursorRight\\\\\\\",40:\\\\\\\"moveCursorDown\\\\\\\"},keysMapRtl:{9:\\\\\\\"exitEditing\\\\\\\",27:\\\\\\\"exitEditing\\\\\\\",33:\\\\\\\"moveCursorUp\\\\\\\",34:\\\\\\\"moveCursorDown\\\\\\\",35:\\\\\\\"moveCursorLeft\\\\\\\",36:\\\\\\\"moveCursorRight\\\\\\\",37:\\\\\\\"moveCursorRight\\\\\\\",38:\\\\\\\"moveCursorUp\\\\\\\",39:\\\\\\\"moveCursorLeft\\\\\\\",40:\\\\\\\"moveCursorDown\\\\\\\"},ctrlKeysMapUp:{67:\\\\\\\"copy\\\\\\\",88:\\\\\\\"cut\\\\\\\"},ctrlKeysMapDown:{65:\\\\\\\"selectAll\\\\\\\"},onClick:function(){this.hiddenTextarea\\\\u0026\\\\u0026this.hiddenTextarea.focus()},onKeyDown:function(t){if(this.isEditing){var e=\\\\\\\"rtl\\\\\\\"===this.direction?this.keysMapRtl:this.keysMap;if(t.keyCode in e)this[e[t.keyCode]](t);else{if(!(t.keyCode in this.ctrlKeysMapDown)||!t.ctrlKey\\\\u0026\\\\u0026!t.metaKey)return;this[this.ctrlKeysMapDown[t.keyCode]](t)}t.stopImmediatePropagation(),t.preventDefault(),t.keyCode\\\\u003e=33\\\\u0026\\\\u0026t.keyCode\\\\u003c=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas\\\\u0026\\\\u0026this.canvas.requestRenderAll()}},onKeyUp:function(t){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:t.keyCode in this.ctrlKeysMapUp\\\\u0026\\\\u0026(t.ctrlKey||t.metaKey)\\\\u0026\\\\u0026(this[this.ctrlKeysMapUp[t.keyCode]](t),t.stopImmediatePropagation(),t.preventDefault(),this.canvas\\\\u0026\\\\u0026this.canvas.requestRenderAll())},onInput:function(t){var e=this.fromPaste;if(this.fromPaste=!1,t\\\\u0026\\\\u0026t.stopPropagation(),this.isEditing){var i,r,n,o,s,a=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,h=this._text.length,c=a.length,l=c-h,u=this.selectionStart,f=this.selectionEnd,d=u!==f;if(\\\\\\\"\\\\\\\"===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire(\\\\\\\"changed\\\\\\\"),void(this.canvas\\\\u0026\\\\u0026(this.canvas.fire(\\\\\\\"text:changed\\\\\\\",{target:this}),this.canvas.requestRenderAll()));var g=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),p=u\\\\u003eg.selectionStart;d?(i=this._text.slice(u,f),l+=f-u):c\\\\u003ch\\\\u0026\\\\u0026(i=p?this._text.slice(f+l,f):this._text.slice(u,u-l)),r=a.slice(g.selectionEnd-l,g.selectionEnd),i\\\\u0026\\\\u0026i.length\\\\u0026\\\\u0026(r.length\\\\u0026\\\\u0026(n=this.getSelectionStyles(u,u+1,!1),n=r.map((function(){return n[0]}))),d?(o=u,s=f):p?(o=f-i.length,s=f):(o=f,s=f+i.length),this.removeStyleFromTo(o,s)),r.length\\\\u0026\\\\u0026(e\\\\u0026\\\\u0026r.join(\\\\\\\"\\\\\\\")===T.copiedText\\\\u0026\\\\u0026!T.disableStyleCopyPaste\\\\u0026\\\\u0026(n=T.copiedTextStyle),this.insertNewStyleBlock(r,u,n)),this.updateFromTextArea(),this.fire(\\\\\\\"changed\\\\\\\"),this.canvas\\\\u0026\\\\u0026(this.canvas.fire(\\\\\\\"text:changed\\\\\\\",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(t){this.compositionStart=t.target.selectionStart,this.compositionEnd=t.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd\\\\u0026\\\\u0026(T.copiedText=this.getSelectedText(),T.disableStyleCopyPaste?T.copiedTextStyle=null:T.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(t){return t\\\\u0026\\\\u0026t.clipboardData||T.window.clipboardData},_getWidthBeforeCursor:function(t,e){var i,r=this._getLineLeftOffset(t);return e\\\\u003e0\\\\u0026\\\\u0026(r+=(i=this.__charBounds[t][e-1]).left+i.width),r},getDownCursorOffset:function(t,e){var i=this._getSelectionForOffset(t,e),r=this.get2DCursorLocation(i),n=r.lineIndex;if(n===this._textLines.length-1||t.metaKey||34===t.keyCode)return this._text.length-i;var o=r.charIndex,s=this._getWidthBeforeCursor(n,o),a=this._getIndexOnLine(n+1,s);return this._textLines[n].slice(o).length+a+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(t,e){return t.shiftKey\\\\u0026\\\\u0026this.selectionStart!==this.selectionEnd\\\\u0026\\\\u0026e?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(t,e){var i=this._getSelectionForOffset(t,e),r=this.get2DCursorLocation(i),n=r.lineIndex;if(0===n||t.metaKey||33===t.keyCode)return-i;var o=r.charIndex,s=this._getWidthBeforeCursor(n,o),a=this._getIndexOnLine(n-1,s),h=this._textLines[n].slice(0,o),c=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+a-h.length+(1-c)},_getIndexOnLine:function(t,e){for(var i,r,n=this._textLines[t],o=this._getLineLeftOffset(t),s=0,a=0,h=n.length;a\\\\u003ch;a++)if((o+=i=this.__charBounds[t][a].width)\\\\u003ee){r=!0;var c=o-i,l=o,u=Math.abs(c-e);s=Math.abs(l-e)\\\\u003cu?a:a-1;break}return r||(s=n.length-1),s},moveCursorDown:function(t){this.selectionStart\\\\u003e=this._text.length\\\\u0026\\\\u0026this.selectionEnd\\\\u003e=this._text.length||this._moveCursorUpOrDown(\\\\\\\"Down\\\\\\\",t)},moveCursorUp:function(t){0===this.selectionStart\\\\u0026\\\\u00260===this.selectionEnd||this._moveCursorUpOrDown(\\\\\\\"Up\\\\\\\",t)},_moveCursorUpOrDown:function(t,e){var i=this[\\\\\\\"get\\\\\\\"+t+\\\\\\\"CursorOffset\\\\\\\"](e,\\\\\\\"right\\\\\\\"===this._selectionDirection);e.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i\\\\u0026\\\\u0026(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(t){var e=\\\\\\\"left\\\\\\\"===this._selectionDirection?this.selectionStart+t:this.selectionEnd+t;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,e),0!==t},moveCursorWithoutShift:function(t){return t\\\\u003c0?(this.selectionStart+=t,this.selectionEnd=this.selectionStart):(this.selectionEnd+=t,this.selectionStart=this.selectionEnd),0!==t},moveCursorLeft:function(t){0===this.selectionStart\\\\u0026\\\\u00260===this.selectionEnd||this._moveCursorLeftOrRight(\\\\\\\"Left\\\\\\\",t)},_move:function(t,e,i){var r;if(t.altKey)r=this[\\\\\\\"findWordBoundary\\\\\\\"+i](this[e]);else{if(!t.metaKey\\\\u0026\\\\u002635!==t.keyCode\\\\u0026\\\\u002636!==t.keyCode)return this[e]+=\\\\\\\"Left\\\\\\\"===i?-1:1,!0;r=this[\\\\\\\"findLineBoundary\\\\\\\"+i](this[e])}if(void 0!==typeof r\\\\u0026\\\\u0026this[e]!==r)return this[e]=r,!0},_moveLeft:function(t,e){return this._move(t,e,\\\\\\\"Left\\\\\\\")},_moveRight:function(t,e){return this._move(t,e,\\\\\\\"Right\\\\\\\")},moveCursorLeftWithoutShift:function(t){var e=!0;return this._selectionDirection=\\\\\\\"left\\\\\\\",this.selectionEnd===this.selectionStart\\\\u0026\\\\u00260!==this.selectionStart\\\\u0026\\\\u0026(e=this._moveLeft(t,\\\\\\\"selectionStart\\\\\\\")),this.selectionEnd=this.selectionStart,e},moveCursorLeftWithShift:function(t){return\\\\\\\"right\\\\\\\"===this._selectionDirection\\\\u0026\\\\u0026this.selectionStart!==this.selectionEnd?this._moveLeft(t,\\\\\\\"selectionEnd\\\\\\\"):0!==this.selectionStart?(this._selectionDirection=\\\\\\\"left\\\\\\\",this._moveLeft(t,\\\\\\\"selectionStart\\\\\\\")):void 0},moveCursorRight:function(t){this.selectionStart\\\\u003e=this._text.length\\\\u0026\\\\u0026this.selectionEnd\\\\u003e=this._text.length||this._moveCursorLeftOrRight(\\\\\\\"Right\\\\\\\",t)},_moveCursorLeftOrRight:function(t,e){var i=\\\\\\\"moveCursor\\\\\\\"+t+\\\\\\\"With\\\\\\\";this._currentCursorOpacity=1,e.shiftKey?i+=\\\\\\\"Shift\\\\\\\":i+=\\\\\\\"outShift\\\\\\\",this[i](e)\\\\u0026\\\\u0026(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(t){return\\\\\\\"left\\\\\\\"===this._selectionDirection\\\\u0026\\\\u0026this.selectionStart!==this.selectionEnd?this._moveRight(t,\\\\\\\"selectionStart\\\\\\\"):this.selectionEnd!==this._text.length?(this._selectionDirection=\\\\\\\"right\\\\\\\",this._moveRight(t,\\\\\\\"selectionEnd\\\\\\\")):void 0},moveCursorRightWithoutShift:function(t){var e=!0;return this._selectionDirection=\\\\\\\"right\\\\\\\",this.selectionStart===this.selectionEnd?(e=this._moveRight(t,\\\\\\\"selectionStart\\\\\\\"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,e},removeChars:function(t,e){void 0===e\\\\u0026\\\\u0026(e=t+1),this.removeStyleFromTo(t,e),this._text.splice(t,e-t),this.text=this._text.join(\\\\\\\"\\\\\\\"),this.set(\\\\\\\"dirty\\\\\\\",!0),this._shouldClearDimensionCache()\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(t,e,i,r){void 0===r\\\\u0026\\\\u0026(r=i),r\\\\u003ei\\\\u0026\\\\u0026this.removeStyleFromTo(i,r);var n=T.util.string.graphemeSplit(t);this.insertNewStyleBlock(n,i,e),this._text=[].concat(this._text.slice(0,i),n,this._text.slice(r)),this.text=this._text.join(\\\\\\\"\\\\\\\"),this.set(\\\\\\\"dirty\\\\\\\",!0),this._shouldClearDimensionCache()\\\\u0026\\\\u0026(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var t=T.util.toFixed,e=/  +/g;T.util.object.extend(T.Text.prototype,{_toSVG:function(){var t=this._getSVGLeftTopOffsets(),e=this._getSVGTextAndBg(t.textTop,t.textLeft);return this._wrapSVGTextAndBg(e)},toSVG:function(t){return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(t){var e=this.getSvgTextDecoration(this);return[t.textBgRects.join(\\\\\\\"\\\\\\\"),'\\\\\\\\t\\\\\\\\t\\\\u003ctext xml:space=\\\\\\\"preserve\\\\\\\" ',this.fontFamily?'font-family=\\\\\\\"'+this.fontFamily.replace(/\\\\\\\"/g,\\\\\\\"'\\\\\\\")+'\\\\\\\" ':\\\\\\\"\\\\\\\",this.fontSize?'font-size=\\\\\\\"'+this.fontSize+'\\\\\\\" ':\\\\\\\"\\\\\\\",this.fontStyle?'font-style=\\\\\\\"'+this.fontStyle+'\\\\\\\" ':\\\\\\\"\\\\\\\",this.fontWeight?'font-weight=\\\\\\\"'+this.fontWeight+'\\\\\\\" ':\\\\\\\"\\\\\\\",e?'text-decoration=\\\\\\\"'+e+'\\\\\\\" ':\\\\\\\"\\\\\\\",'style=\\\\\\\"',this.getSvgStyles(!0),'\\\\\\\"',this.addPaintOrder(),\\\\\\\" \\\\u003e\\\\\\\",t.textSpans.join(\\\\\\\"\\\\\\\"),\\\\\\\"\\\\u003c/text\\\\u003e\\\\\\\\n\\\\\\\"]},_getSVGTextAndBg:function(t,e){var i,r=[],n=[],o=t;this._setSVGBg(n);for(var s=0,a=this._textLines.length;s\\\\u003ca;s++)i=this._getLineLeftOffset(s),(this.textBackgroundColor||this.styleHas(\\\\\\\"textBackgroundColor\\\\\\\",s))\\\\u0026\\\\u0026this._setSVGTextLineBg(n,s,e+i,o),this._setSVGTextLineText(r,s,e+i,o),o+=this.getHeightOfLine(s);return{textSpans:r,textBgRects:n}},_createTextCharSpan:function(i,r,n,o){var s=i!==i.trim()||i.match(e),a=this.getSvgSpanStyles(r,s),h=a?'style=\\\\\\\"'+a+'\\\\\\\"':\\\\\\\"\\\\\\\",c=r.deltaY,l=\\\\\\\"\\\\\\\",u=T.Object.NUM_FRACTION_DIGITS;return c\\\\u0026\\\\u0026(l=' dy=\\\\\\\"'+t(c,u)+'\\\\\\\" '),['\\\\u003ctspan x=\\\\\\\"',t(n,u),'\\\\\\\" y=\\\\\\\"',t(o,u),'\\\\\\\" ',l,h,\\\\\\\"\\\\u003e\\\\\\\",T.util.string.escapeXml(i),\\\\\\\"\\\\u003c/tspan\\\\u003e\\\\\\\"].join(\\\\\\\"\\\\\\\")},_setSVGTextLineText:function(t,e,i,r){var n,o,s,a,h,c=this.getHeightOfLine(e),l=-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\"),u=\\\\\\\"\\\\\\\",f=0,d=this._textLines[e];r+=c*(1-this._fontSizeFraction)/this.lineHeight;for(var g=0,p=d.length-1;g\\\\u003c=p;g++)h=g===p||this.charSpacing,u+=d[g],s=this.__charBounds[e][g],0===f?(i+=s.kernedWidth-s.width,f+=s.width):f+=s.kernedWidth,l\\\\u0026\\\\u0026!h\\\\u0026\\\\u0026this._reSpaceAndTab.test(d[g])\\\\u0026\\\\u0026(h=!0),h||(n=n||this.getCompleteStyleDeclaration(e,g),o=this.getCompleteStyleDeclaration(e,g+1),h=this._hasStyleChangedForSvg(n,o)),h\\\\u0026\\\\u0026(a=this._getStyleDeclaration(e,g)||{},t.push(this._createTextCharSpan(u,a,i,r)),u=\\\\\\\"\\\\\\\",n=o,i+=f,f=0)},_pushTextBgRect:function(e,i,r,n,o,s){var a=T.Object.NUM_FRACTION_DIGITS;e.push(\\\\\\\"\\\\\\\\t\\\\\\\\t\\\\u003crect \\\\\\\",this._getFillAttributes(i),' x=\\\\\\\"',t(r,a),'\\\\\\\" y=\\\\\\\"',t(n,a),'\\\\\\\" width=\\\\\\\"',t(o,a),'\\\\\\\" height=\\\\\\\"',t(s,a),'\\\\\\\"\\\\u003e\\\\u003c/rect\\\\u003e\\\\\\\\n')},_setSVGTextLineBg:function(t,e,i,r){for(var n,o,s=this._textLines[e],a=this.getHeightOfLine(e)/this.lineHeight,h=0,c=0,l=this.getValueOfPropertyAt(e,0,\\\\\\\"textBackgroundColor\\\\\\\"),u=0,f=s.length;u\\\\u003cf;u++)n=this.__charBounds[e][u],(o=this.getValueOfPropertyAt(e,u,\\\\\\\"textBackgroundColor\\\\\\\"))!==l?(l\\\\u0026\\\\u0026this._pushTextBgRect(t,l,i+c,r,h,a),c=n.left,h=n.width,l=o):h+=n.kernedWidth;o\\\\u0026\\\\u0026this._pushTextBgRect(t,o,i+c,r,h,a)},_getFillAttributes:function(t){var e=t\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"==typeof t?new T.Color(t):\\\\\\\"\\\\\\\";return e\\\\u0026\\\\u0026e.getSource()\\\\u0026\\\\u00261!==e.getAlpha()?'opacity=\\\\\\\"'+e.getAlpha()+'\\\\\\\" fill=\\\\\\\"'+e.setAlpha(1).toRgb()+'\\\\\\\"':'fill=\\\\\\\"'+t+'\\\\\\\"'},_getSVGLineTopOffset:function(t){for(var e,i=0,r=0;r\\\\u003ct;r++)i+=this.getHeightOfLine(r);return e=this.getHeightOfLine(r),{lineTop:i,offset:(this._fontSizeMult-this._fontSizeFraction)*e/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(t){return T.Object.prototype.getSvgStyles.call(this,t)+\\\\\\\" white-space: pre;\\\\\\\"}})}(),function(t){var e=t.fabric||(t.fabric={});e.Textbox=e.util.createClass(e.IText,e.Observable,{type:\\\\\\\"textbox\\\\\\\",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:e.Text.prototype._dimensionAffectingProps.concat(\\\\\\\"width\\\\\\\"),_wordJoiners:/[ \\\\\\\\t\\\\\\\\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing\\\\u0026\\\\u0026this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth\\\\u003ethis.width\\\\u0026\\\\u0026this._set(\\\\\\\"width\\\\\\\",this.dynamicMinWidth),-1!==this.textAlign.indexOf(\\\\\\\"justify\\\\\\\")\\\\u0026\\\\u0026this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:\\\\\\\"_dimensionAffectingProps\\\\\\\"}))},_generateStyleMap:function(t){for(var e=0,i=0,r=0,n={},o=0;o\\\\u003ct.graphemeLines.length;o++)\\\\\\\"\\\\\\\\n\\\\\\\"===t.graphemeText[r]\\\\u0026\\\\u0026o\\\\u003e0?(i=0,r++,e++):!this.splitByGrapheme\\\\u0026\\\\u0026this._reSpaceAndTab.test(t.graphemeText[r])\\\\u0026\\\\u0026o\\\\u003e0\\\\u0026\\\\u0026(i++,r++),n[o]={line:e,offset:i},r+=t.graphemeLines[o].length,i+=t.graphemeLines[o].length;return n},styleHas:function(t,i){if(this._styleMap\\\\u0026\\\\u0026!this.isWrapping){var r=this._styleMap[i];r\\\\u0026\\\\u0026(i=r.line)}return e.Text.prototype.styleHas.call(this,t,i)},isEmptyStyles:function(t){if(!this.styles)return!0;var e,i,r=0,n=!1,o=this._styleMap[t],s=this._styleMap[t+1];for(var a in o\\\\u0026\\\\u0026(t=o.line,r=o.offset),s\\\\u0026\\\\u0026(n=s.line===t,e=s.offset),i=void 0===t?this.styles:{line:this.styles[t]})for(var h in i[a])if(h\\\\u003e=r\\\\u0026\\\\u0026(!n||h\\\\u003ce))for(var c in i[a][h])return!1;return!0},_getStyleDeclaration:function(t,e){if(this._styleMap\\\\u0026\\\\u0026!this.isWrapping){var i=this._styleMap[t];if(!i)return null;t=i.line,e=i.offset+e}return this.callSuper(\\\\\\\"_getStyleDeclaration\\\\\\\",t,e)},_setStyleDeclaration:function(t,e,i){var r=this._styleMap[t];t=r.line,e=r.offset+e,this.styles[t][e]=i},_deleteStyleDeclaration:function(t,e){var i=this._styleMap[t];t=i.line,e=i.offset+e,delete this.styles[t][e]},_getLineStyle:function(t){var e=this._styleMap[t];return!!this.styles[e.line]},_setLineStyle:function(t){var e=this._styleMap[t];this.styles[e.line]={}},_wrapText:function(t,e){var i,r=[];for(this.isWrapping=!0,i=0;i\\\\u003ct.length;i++)r=r.concat(this._wrapLine(t[i],i,e));return this.isWrapping=!1,r},_measureWord:function(t,e,i){var r,n=0;i=i||0;for(var o=0,s=t.length;o\\\\u003cs;o++){n+=this._getGraphemeBox(t[o],e,o+i,r,true).kernedWidth,r=t[o]}return n},_wrapLine:function(t,i,r,n){var o=0,s=this.splitByGrapheme,a=[],h=[],c=s?e.util.string.graphemeSplit(t):t.split(this._wordJoiners),l=\\\\\\\"\\\\\\\",u=0,f=s?\\\\\\\"\\\\\\\":\\\\\\\" \\\\\\\",d=0,g=0,p=0,v=!0,m=this._getWidthOfCharSpacing();n=n||0;0===c.length\\\\u0026\\\\u0026c.push([]),r-=n;for(var y=0;y\\\\u003cc.length;y++)l=s?c[y]:e.util.string.graphemeSplit(c[y]),d=this._measureWord(l,i,u),u+=l.length,(o+=g+d-m)\\\\u003er\\\\u0026\\\\u0026!v?(a.push(h),h=[],o=d,v=!0):o+=m,v||s||h.push(f),h=h.concat(l),g=s?0:this._measureWord([f],i,u),u++,v=!1,d\\\\u003ep\\\\u0026\\\\u0026(p=d);return y\\\\u0026\\\\u0026a.push(h),p+n\\\\u003ethis.dynamicMinWidth\\\\u0026\\\\u0026(this.dynamicMinWidth=p-m+n),a},isEndOfWrapping:function(t){return!this._styleMap[t+1]||this._styleMap[t+1].line!==this._styleMap[t].line},missingNewlineOffset:function(t){return this.splitByGrapheme?this.isEndOfWrapping(t)?1:0:1},_splitTextIntoLines:function(t){for(var i=e.Text.prototype._splitTextIntoLines.call(this,t),r=this._wrapText(i.lines,this.width),n=new Array(r.length),o=0;o\\\\u003cr.length;o++)n[o]=r[o].join(\\\\\\\"\\\\\\\");return i.lines=n,i.graphemeLines=r,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var t={};for(var e in this._styleMap)this._textLines[e]\\\\u0026\\\\u0026(t[this._styleMap[e].line]=1);for(var e in this.styles)t[e]||delete this.styles[e]},toObject:function(t){return this.callSuper(\\\\\\\"toObject\\\\\\\",[\\\\\\\"minWidth\\\\\\\",\\\\\\\"splitByGrapheme\\\\\\\"].concat(t))}}),e.Textbox.fromObject=function(t,i){return e.Object._fromObject(\\\\\\\"Textbox\\\\\\\",t,i,\\\\\\\"text\\\\\\\")}}(t),function(){var t=T.controlsUtils,e=t.scaleSkewCursorStyleHandler,i=t.scaleCursorStyleHandler,r=t.scalingEqually,n=t.scalingYOrSkewingX,o=t.scalingXOrSkewingY,s=t.scaleOrSkewActionName,a=T.Object.prototype.controls;if(a.ml=new T.Control({x:-.5,y:0,cursorStyleHandler:e,actionHandler:o,getActionName:s}),a.mr=new T.Control({x:.5,y:0,cursorStyleHandler:e,actionHandler:o,getActionName:s}),a.mb=new T.Control({x:0,y:.5,cursorStyleHandler:e,actionHandler:n,getActionName:s}),a.mt=new T.Control({x:0,y:-.5,cursorStyleHandler:e,actionHandler:n,getActionName:s}),a.tl=new T.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:r}),a.tr=new T.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:r}),a.bl=new T.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:r}),a.br=new T.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:r}),a.mtr=new T.Control({x:0,y:-.5,actionHandler:t.rotationWithSnapping,cursorStyleHandler:t.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:\\\\\\\"rotate\\\\\\\"}),T.Textbox){var h=T.Textbox.prototype.controls={};h.mtr=a.mtr,h.tr=a.tr,h.br=a.br,h.tl=a.tl,h.bl=a.bl,h.mt=a.mt,h.mb=a.mb,h.mr=new T.Control({x:.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:\\\\\\\"resizing\\\\\\\"}),h.ml=new T.Control({x:-.5,y:0,actionHandler:t.changeWidth,cursorStyleHandler:e,actionName:\\\\\\\"resizing\\\\\\\"})}}(),function(){var t=T.Object.prototype._set,e=T.Object.prototype.render,i=T.Object.prototype.toObject,r=T.Object.prototype._createBaseSVGMarkup;T.util.object.extend(T.Object.prototype,{erasable:!0,getEraser:function(){return this.clipPath\\\\u0026\\\\u0026this.clipPath.eraser?this.clipPath:void 0},getClipPath:function(){var t=this.getEraser();return t?t._objects[0].clipPath:this.clipPath},setClipPath:function(t){var e=this.getEraser();(e?e._objects[0]:this).set(\\\\\\\"clipPath\\\\\\\",t),this.set(\\\\\\\"dirty\\\\\\\",!0)},_updateEraserDimensions:function(t,e){var i=this.getEraser();if(i){var r=i._objects[0],n={width:r.width,height:r.height},o=this._getNonTransformedDimensions(),s=T.util.object.extend({width:o.x,height:o.y},t);if(n.width===s.width\\\\u0026\\\\u0026n.height===s.height)return;var a=new T.Point((n.width-s.width)/2,(n.height-s.height)/2);i.set(s),i.setPositionByOrigin(new T.Point(0,0),\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\"),r.set(s),i.set(\\\\\\\"dirty\\\\\\\",!0),e||i.getObjects(\\\\\\\"path\\\\\\\").forEach((function(t){t.setPositionByOrigin(t.getCenterPoint().add(a),\\\\\\\"center\\\\\\\",\\\\\\\"center\\\\\\\")})),this.setCoords()}},_set:function(e,i){return t.call(this,e,i),\\\\\\\"width\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"height\\\\\\\"!==e||this._updateEraserDimensions(),this},render:function(t){this._updateEraserDimensions(),e.call(this,t)},toObject:function(t){return i.call(this,[\\\\\\\"erasable\\\\\\\"].concat(t))},eraserToSVG:function(t){var e=this.getEraser();if(e){var i=e._objects[0].fill;e._objects[0].fill=\\\\\\\"white\\\\\\\",e.clipPathId=\\\\\\\"CLIPPATH_\\\\\\\"+T.Object.__uid++;var r=[\\\\\\\"\\\\u003cdefs\\\\u003e\\\\\\\",\\\\\\\"\\\\u003cmask \\\\\\\"+['id=\\\\\\\"'+e.clipPathId+'\\\\\\\"'].join(\\\\\\\" \\\\\\\")+\\\\\\\" \\\\u003e\\\\\\\",e.toSVG(t.reviver),\\\\\\\"\\\\u003c/mask\\\\u003e\\\\\\\",\\\\\\\"\\\\u003c/defs\\\\u003e\\\\\\\"];return e._objects[0].fill=i,r.join(\\\\\\\"\\\\\\\\n\\\\\\\")}return\\\\\\\"\\\\\\\"},_createBaseSVGMarkup:function(t,e){var i=this.getEraser();if(i){var n=this.eraserToSVG(e);this.clipPath=null;var o=r.call(this,t,e);return this.clipPath=i,[n,o.replace(\\\\\\\"\\\\u003e\\\\\\\",'mask=\\\\\\\"url(#'+i.clipPathId+')\\\\\\\" \\\\u003e')].join(\\\\\\\"\\\\\\\\n\\\\\\\")}return r.call(this,t,e)}});var n=T.Group.prototype._restoreObjectsState,o=T.Group.prototype.toObject,s=T.Group.prototype._getBounds;T.util.object.extend(T.Group.prototype,{_getBounds:function(t,e,i){if(this.eraser)return this.width=this._objects[0].width,void(this.height=this._objects[0].height);s.call(this,t,e,i)},_addEraserPathToObjects:function(t){this._objects.forEach((function(e){T.EraserBrush.prototype._addPathToObjectEraser.call(T.EraserBrush.prototype,e,t)}))},applyEraserToObjects:function(){var t=this;if(this.getEraser()){var e=t.calcTransformMatrix();t.getEraser().clone((function(i){var r=i._objects[0].clipPath;t.clipPath=r||void 0,i.getObjects(\\\\\\\"path\\\\\\\").forEach((function(i){var n=T.util.multiplyTransformMatrices(e,i.calcTransformMatrix());T.util.applyTransformToObject(i,n),r?r.clone((function(r){T.EraserBrush.prototype.applyClipPathToPath.call(T.EraserBrush.prototype,i,r,e),t._addEraserPathToObjects(i)})):t._addEraserPathToObjects(i)}))}))}},_restoreObjectsState:function(){return!0===this.erasable\\\\u0026\\\\u0026this.applyEraserToObjects(),n.call(this)},toObject:function(t){return o.call(this,[\\\\\\\"eraser\\\\\\\"].concat(t))}}),T.util.object.extend(T.Canvas.prototype,{isErasing:function(){return this.isDrawingMode\\\\u0026\\\\u0026this.freeDrawingBrush\\\\u0026\\\\u0026\\\\\\\"eraser\\\\\\\"===this.freeDrawingBrush.type\\\\u0026\\\\u0026this.freeDrawingBrush._isErasing},renderAll:function(){if(!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),!this.isErasing()){this.hasLostContext\\\\u0026\\\\u0026this.renderTopLayer(this.contextTop);var t=this.contextContainer;return this.renderCanvas(t,this._chooseObjectsToRender()),this}this.freeDrawingBrush._render()}}),T.EraserBrush=T.util.createClass(T.PencilBrush,{type:\\\\\\\"eraser\\\\\\\",_ready:!1,_drawOverlayOnTop:!1,_isErasing:!1,initialize:function(t){this.callSuper(\\\\\\\"initialize\\\\\\\",t),this._renderBound=this._render.bind(this),this.render=this.render.bind(this)},hideObject:function(t){t\\\\u0026\\\\u0026(t._originalOpacity=t.opacity,t.set({opacity:0}))},restoreObjectVisibility:function(t){t\\\\u0026\\\\u0026t._originalOpacity\\\\u0026\\\\u0026(t.set({opacity:t._originalOpacity}),t._originalOpacity=void 0)},_isErasable:function(t){return!1!==t.erasable},prepareCanvasBackgroundForLayer:function(t){if(\\\\\\\"overlay\\\\\\\"!==t){var e=this.canvas.backgroundImage,i=\\\\\\\"top\\\\\\\"===t;e\\\\u0026\\\\u0026this._isErasable(e)===!i\\\\u0026\\\\u0026this.hideObject(e)}},prepareCanvasOverlayForLayer:function(t){var e=this.canvas,i=e.overlayImage,r=!!e.overlayColor;if(e.overlayColor\\\\u0026\\\\u0026\\\\\\\"overlay\\\\\\\"!==t\\\\u0026\\\\u0026(this.__overlayColor=e.overlayColor,delete e.overlayColor),\\\\\\\"bottom\\\\\\\"===t)return this.hideObject(i),!1;var n=\\\\\\\"top\\\\\\\"===t,o=i\\\\u0026\\\\u0026!this._isErasable(i)||r;return i\\\\u0026\\\\u0026this._isErasable(i)===!n\\\\u0026\\\\u0026this.hideObject(i),o},restoreCanvasDrawables:function(){var t=this.canvas;this.__overlayColor\\\\u0026\\\\u0026(t.overlayColor=this.__overlayColor,delete this.__overlayColor),this.restoreObjectVisibility(t.backgroundImage),this.restoreObjectVisibility(t.overlayImage)},prepareCollectionTraversal:function(t){var e=this;t.forEachObject((function(t){t.forEachObject\\\\u0026\\\\u0026\\\\\\\"deep\\\\\\\"===t.erasable?e.prepareCollectionTraversal(t):t.erasable\\\\u0026\\\\u0026e.hideObject(t)}))},restoreCollectionTraversal:function(t){var e=this;t.forEachObject((function(t){t.forEachObject\\\\u0026\\\\u0026\\\\\\\"deep\\\\\\\"===t.erasable?e.restoreCollectionTraversal(t):e.restoreObjectVisibility(t)}))},prepareCanvasObjectsForLayer:function(t){\\\\\\\"bottom\\\\\\\"===t\\\\u0026\\\\u0026this.prepareCollectionTraversal(this.canvas)},restoreCanvasObjectsFromLayer:function(t){\\\\\\\"bottom\\\\\\\"===t\\\\u0026\\\\u0026this.restoreCollectionTraversal(this.canvas)},prepareCanvasForLayer:function(t){return this.prepareCanvasBackgroundForLayer(t),this.prepareCanvasObjectsForLayer(t),this.prepareCanvasOverlayForLayer(t)},restoreCanvasFromLayer:function(t){this.restoreCanvasDrawables(),this.restoreCanvasObjectsFromLayer(t)},renderBottomLayer:function(){var t=this.canvas;this.prepareCanvasForLayer(\\\\\\\"bottom\\\\\\\"),t.renderCanvas(t.getContext(),t.getObjects().filter((function(t){return!t.erasable||t.forEachObject}))),this.restoreCanvasFromLayer(\\\\\\\"bottom\\\\\\\")},renderTopLayer:function(){var t=this.canvas;this._drawOverlayOnTop=this.prepareCanvasForLayer(\\\\\\\"top\\\\\\\"),t.renderCanvas(t.contextTop,t.getObjects()),this.callSuper(\\\\\\\"_render\\\\\\\"),this.restoreCanvasFromLayer(\\\\\\\"top\\\\\\\")},renderOverlay:function(){this.prepareCanvasForLayer(\\\\\\\"overlay\\\\\\\");var t=this.canvas,e=t.contextTop;t._renderOverlay(e),this.restoreCanvasFromLayer(\\\\\\\"overlay\\\\\\\")},_saveAndTransform:function(t){this.callSuper(\\\\\\\"_saveAndTransform\\\\\\\",t),t.globalCompositeOperation=\\\\\\\"destination-out\\\\\\\"},needsFullRender:function(){return this.callSuper(\\\\\\\"needsFullRender\\\\\\\")||this._drawOverlayOnTop},onMouseDown:function(t,e){this.canvas._isMainEvent(e.e)\\\\u0026\\\\u0026(this._prepareForDrawing(t),this._captureDrawingPath(t),this._isErasing=!0,this.canvas.fire(\\\\\\\"erasing:start\\\\\\\"),this._ready=!0,this._render())},_render:function(){this._ready\\\\u0026\\\\u0026(this.isRendering=1,this.renderBottomLayer(),this.renderTopLayer(),this.renderOverlay(),this.isRendering=0)},render:function(){return!!this._isErasing\\\\u0026\\\\u0026(this.isRendering?this.isRendering=T.util.requestAnimFrame(this._renderBound):this._render(),!0)},applyClipPathToPath:function(t,e,i){var r=t.calcTransformMatrix(),n=e.calcTransformMatrix(),o=T.util.multiplyTransformMatrices(T.util.invertTransform(r),i);return T.util.applyTransformToObject(e,T.util.multiplyTransformMatrices(o,n)),t.clipPath=e,t},clonePathWithClipPath:function(t,e,i){var r=e.calcTransformMatrix(),n=e.getClipPath(),o=this;t.clone((function(t){n.clone((function(e){i(o.applyClipPathToPath(t,e,r))}))}))},_addPathToObjectEraser:function(t,e){var i,r=this;if(t.forEachObject\\\\u0026\\\\u0026\\\\\\\"deep\\\\\\\"===t.erasable){var n=t._objects.filter((function(t){return t.erasable}));n.length\\\\u003e0\\\\u0026\\\\u0026t.clipPath?this.clonePathWithClipPath(e,t,(function(t){n.forEach((function(e){r._addPathToObjectEraser(e,t)}))})):n.length\\\\u003e0\\\\u0026\\\\u0026n.forEach((function(t){r._addPathToObjectEraser(t,e)}))}else{if(t.getEraser())i=t.clipPath;else{var o=t._getNonTransformedDimensions(),s=new T.Rect({fill:\\\\\\\"rgb(0,0,0)\\\\\\\",width:o.x,height:o.y,clipPath:t.clipPath,originX:\\\\\\\"center\\\\\\\",originY:\\\\\\\"center\\\\\\\"});i=new T.Group([s],{eraser:!0})}e.clone((function(e){e.globalCompositeOperation=\\\\\\\"destination-out\\\\\\\";var n=T.util.multiplyTransformMatrices(T.util.invertTransform(t.calcTransformMatrix()),e.calcTransformMatrix());T.util.applyTransformToObject(e,n),i.addWithUpdate(e),t.set({clipPath:i,dirty:!0}),t.fire(\\\\\\\"erasing:end\\\\\\\",{path:e}),t.group\\\\u0026\\\\u0026Array.isArray(r.__subTargets)\\\\u0026\\\\u0026r.__subTargets.push(t)}))}},applyEraserToCanvas:function(t){var e=this.canvas,i={};return[\\\\\\\"backgroundImage\\\\\\\",\\\\\\\"overlayImage\\\\\\\"].forEach((function(r){var n=e[r];n\\\\u0026\\\\u0026n.erasable\\\\u0026\\\\u0026(this._addPathToObjectEraser(n,t),i[r]=n)}),this),i},_finalizeAndAddPath:function(){var t=this.canvas.contextTop,e=this.canvas;t.closePath(),this.decimate\\\\u0026\\\\u0026(this._points=this.decimatePoints(this._points,this.decimate)),e.clearContext(e.contextTop),this._isErasing=!1;var i=this._points\\\\u0026\\\\u0026this._points.length\\\\u003e1?this.convertPointsToSVGPath(this._points):null;if(!i||this._isEmptySVGPath(i))return e.fire(\\\\\\\"erasing:end\\\\\\\"),void e.requestRenderAll();var r=this.createPath(i);r.setCoords(),e.fire(\\\\\\\"before:path:created\\\\\\\",{path:r});var n=this.applyEraserToCanvas(r),o=this;this.__subTargets=[];var s=[];e.forEachObject((function(t){t.erasable\\\\u0026\\\\u0026t.intersectsWithObject(r,!0,!0)\\\\u0026\\\\u0026(o._addPathToObjectEraser(t,r),s.push(t))})),e.fire(\\\\\\\"erasing:end\\\\\\\",{path:r,targets:s,subTargets:this.__subTargets,drawables:n}),delete this.__subTargets,e.requestRenderAll(),r.setCoords(),this._resetShadow(),e.fire(\\\\\\\"path:created\\\\\\\",{path:r})}})}()}(tt);var rt=tt.fabric;export{tt as default,rt as fabric};\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$socket4\\\",\\n                \\\"$socket_stage_recv\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v1/lib/fabric.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$socket4\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 29050\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 102737\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 102797\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 129362\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 129422\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 139859\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 142603\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 142652\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 142699\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 142742\\n                                }\\n                            ]\\n                        },\\n                        {\\n                            \\\"identifier\\\": \\\"$socket_stage_recv\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"var e,i,r,n,o,s,a,h,c,l,u,f,d,g,v,m,y,_,b,x,C,w,S,T=T||{version:\\\\\\\"4.6.0\\\\\\\"};if(t.fabric=T,\\\\\\\"undefined\\\\\\\"!=typeof document\\\\u0026\\\\u0026\\\\\\\"undefined\\\\\\\"!=typeof window)document instanceof(\\\\\\\"undefined\\\\\\\"!=typeof HTMLDocument?HTMLDocument:Document)?T.document=document:T.document=docum\\\",\\n                                    \\\"line_number\\\": 9,\\n                                    \\\"matched_data\\\": \\\"o.send(\\\",\\n                                    \\\"matched_length\\\": 7,\\n                                    \\\"offset\\\": 55051\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\",\\n            \\\"any-network-requests\\\",\\n            \\\"credential-access\\\",\\n            \\\"obfuscated-code\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1 | var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i)=\\\\u003e(y(e,t,\\\\\\\"read from private field\\\\\\\"),i?i.call(e):t.get(e)),b=(e,t,i)=\\\\u003et.has(e)?g(\\\\\\\"Cannot add the same private member more than once\\\\\\\"):t instanceof WeakSet?t.add(e):t.set(e,i),_=(e,t,i,s)=\\\\u003e(y(e,t,\\\\\\\"write to private field\\\\\\\"),s?s.call(e,i):t.set(e,i),i);import{d as S,h as x,s as L,a as k,T as E,b as N,c as C,e as I,f as T,g as O,i as M,j as D}from\\\\\\\"./vendor-DrOEdrAG.js\\\\\\\";import{c as R}from\\\\\\\"./lodash-DkvwM0Z9.js\\\\\\\";import{r as P,m as G,w as z,o as V,a as j,c as U,b as W,d as F,u as X,e as Z,f as H,g as q,h as Y,F as K,i as J,n as B,j as Q,v as $,t as ee,k as te,l as ie,p as se,q as ne,s as ae,x as oe,y as le,z as re,A as de,B as ue}from\\\\\\\"./vue-DfGw76ex.js\\\\\\\";import{u as ce,a as Ae,b as pe,c as he}from\\\\\\\"./vueuse-Bf7Wy5dB.js\\\\\\\";import{P as me}from\\\\\\\"./primevue-keNb8gkp.js\\\\\\\";let fe=(null==(t=null==(e=window.comfyAPI)?void 0:e.app)?void 0:t.app)||null,ge=(null==(s=null==(i=window.comfyAPI)?void 0:i.api)?void 0:s.api)||null,ve=(null==(a=null==(n=window.comfyAPI)?void 0:n.ui)?void 0:a.$el)||null,ye=(null==(l=null==(o=window.comfyAPI)?void 0:o.dialog)?void 0:l.ComfyDialog)||null,we=(null==(d=null==(r=window.comfyAPI)?void 0:r.widgets)?void 0:d.ComfyWidgets)||null,be=(null==(c=null==(u=window.comfyAPI)?void 0:u.utils)?void 0:c.applyTextReplacements)||null,_e=(null==(p=null==(A=window.comfyAPI)?void 0:A.groupNode)?void 0:p.GroupNodeConfig)||null;const Se=e=\\\\u003e{var t,i;return e?null==(i=null==(t=null==fe?void 0:fe.ui)?void 0:t.settings)?void 0:i.getSettingValue(e):null};function xe(e,t=null){try{let i=e?Se(e):null;return null==i\\\\u0026\\\\u0026(i=t?localStorage[t]:localStorage[e]||null),i}catch(i){return null}}function Le(e,t=e=\\\\u003e{}){var i;const s=null==(i=fe.ui.settings.settingsLookup)?void 0:i[e];s\\\\u0026\\\\u0026(s.onChange=e=\\\\u003et(e))}async function ke(e,t,i=null){var s,n;if(!e)throw new Error(\\\\\\\"Invalid arguments\\\\\\\");try{(null==(n=null==(s=null==fe?void 0:fe.ui)?void 0:s.settings)?void 0:n.setSettingValue)?fe.ui.settings.setSettingValue(e,t):await ge.storeSetting(e,t),i\\\\u0026\\\\u0026(localStorage[i]=\\\\\\\"object\\\\\\\"==typeof t?JSON.stringify(t):t)}catch(a){}}const Ee={\\\\\\\"Workflow created by\\\\\\\":\\\\\\\"\\u5de5\\u4f5c\\u6d41\\u521b\\u5efa\\u8005\\\\\\\",\\\\\\\"Watch more video content\\\\\\\":\\\\\\\"\\u89c2\\u770b\\u66f4\\u591a\\u89c6\\u9891\\u5185\\u5bb9\\\\\\\",\\\\\\\"Workflow Guide\\\\\\\":\\\\\\\"\\u5de5\\u4f5c\\u6d41\\u6307\\u5357\\\\\\\",\\\\\\\"\\ud83d\\udc8e View Checkpoint Info...\\\\\\\":\\\\\\\"\\ud83d\\udc8e \\u67e5\\u770b Checkpoint \\u4fe1\\u606f...\\\\\\\",\\\\\\\"\\ud83d\\udc8e View Lora Info...\\\\\\\":\\\\\\\"\\ud83d\\udc8e \\u67e5\\u770b Lora \\u4fe1\\u606f...\\\\\\\",\\\\\\\"\\ud83d\\udd03 Reload Node\\\\\\\":\\\\\\\"\\ud83d\\udd03 \\u5237\\u65b0\\u8282\\u70b9\\\\\\\",\\\\\\\"Updated At:\\\\\\\":\\\\\\\"\\u6700\\u8fd1\\u66f4\\u65b0\\uff1a\\\\\\\",\\\\\\\"Created At:\\\\\\\":\\\\\\\"\\u9996\\u6b21\\u53d1\\u5e03\\uff1a\\\\\\\",\\\\\\\"\\u270f\\ufe0f Edit\\\\\\\":\\\\\\\"\\u270f\\ufe0f \\u7f16\\u8f91\\\\\\\",\\\\\\\"\\ud83d\\udcbe Save\\\\\\\":\\\\\\\"\\ud83d\\udcbe \\u4fdd\\u5b58\\\\\\\",\\\\\\\"No notes\\\\\\\":\\\\\\\"\\u5f53\\u524d\\u8fd8\\u6ca1\\u6709\\u5907\\u6ce8\\u5185\\u5bb9\\\\\\\",\\\\\\\"Saving Notes...\\\\\\\":\\\\\\\"\\u6b63\\u5728\\u4fdd\\u5b58\\u5907\\u6ce8...\\\\\\\",\\\\\\\"Type your notes here\\\\\\\":\\\\\\\"\\u5728\\u8fd9\\u91cc\\u8f93\\u5165\\u5907\\u6ce8\\u5185\\u5bb9\\\\\\\",ModelName:\\\\\\\"\\u6a21\\u578b\\u540d\\u79f0\\\\\\\",\\\\\\\"Models Required\\\\\\\":\\\\\\\"\\u6240\\u9700\\u6a21\\u578b\\\\\\\",\\\\\\\"Download Model\\\\\\\":\\\\\\\"\\u4e0b\\u8f7d\\u6a21\\u578b\\\\\\\",\\\\\\\"Source Url\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u6e90\\u5730\\u5740\\\\\\\",Notes:\\\\\\\"\\u5907\\u6ce8\\\\\\\",Type:\\\\\\\"\\u7c7b\\u578b\\\\\\\",\\\\\\\"Trained Words\\\\\\\":\\\\\\\"\\u8bad\\u7ec3\\u8bcd\\\\\\\",BaseModel:\\\\\\\"\\u57fa\\u7840\\u7b97\\u6cd5\\\\\\\",Details:\\\\\\\"\\u8be6\\u60c5\\\\\\\",Description:\\\\\\\"\\u63cf\\u8ff0\\\\\\\",Download:\\\\\\\"\\u4e0b\\u8f7d\\u91cf\\\\\\\",Source:\\\\\\\"\\u6765\\u6e90\\\\\\\",\\\\\\\"Saving Preview...\\\\\\\":\\\\\\\"\\u6b63\\u5728\\u4fdd\\u5b58\\u9884\\u89c8\\u56fe...\\\\\\\",\\\\\\\"Saving Succeed\\\\\\\":\\\\\\\"\\u4fdd\\u5b58\\u6210\\u529f\\\\\\\",\\\\\\\"Clean SuccessFully\\\\\\\":\\\\\\\"\\u6e05\\u7406\\u6210\\u529f\\\\\\\",\\\\\\\"Clean Failed\\\\\\\":\\\\\\\"\\u6e05\\u7406\\u5931\\u8d25\\\\\\\",\\\\\\\"Saving Failed\\\\\\\":\\\\\\\"\\u4fdd\\u5b58\\u5931\\u8d25\\\\\\\",\\\\\\\"No COMBO link\\\\\\\":\\\\\\\"\\u6c92\\u6709\\u627e\\u5230COMBO\\u8fde\\u63a5\\\\\\\",\\\\\\\"Reboot ComfyUI\\\\\\\":\\\\\\\"\\u91cd\\u542fComfyUI\\\\\\\",\\\\\\\"Are you sure you'd like to reboot the server?\\\\\\\":\\\\\\\"\\u662f\\u5426\\u8981\\u91cd\\u542fComfyUI\\uff1f\\\\\\\",\\\\\\\"NODES MAP\\\\\\\":\\\\\\\"\\u7ba1\\u7406\\u8282\\u70b9\\u4e0e\\u7ec4\\\\\\\",NodesMap:\\\\\\\"\\u8282\\u70b9\\u4e0e\\u7ec4\\\\\\\",\\\\\\\"Nodes map sorting mode\\\\\\\":\\\\\\\"\\u7ba1\\u7406\\u8282\\u70b9\\u7ec4\\u6392\\u5e8f\\u6a21\\u5f0f\\\\\\\",\\\\\\\"Search by Node ID/Name...\\\\\\\":\\\\\\\"\\u901a\\u8fc7\\u8282\\u70b9ID/\\u540d\\u79f0\\u641c\\u7d22...\\\\\\\",\\\\\\\"No Nodes\\\\\\\":\\\\\\\"\\u672a\\u627e\\u5230\\u8282\\u70b9\\\\\\\",\\\\\\\"No nodes found in the map\\\\\\\":\\\\\\\"\\u5728\\u5de5\\u4f5c\\u6d41\\u7a0b\\u4e2d\\u6ca1\\u6709\\u627e\\u5230\\u8282\\u70b9\\\\\\\",\\\\\\\"No nodes found in the search\\\\\\\":\\\\\\\"\\u672a\\u627e\\u5230\\u4e0e\\u641c\\u7d22\\u5339\\u914d\\u7684\\u8282\\u70b9\\\\\\\",\\\\\\\"Jump to this node\\\\\\\":\\\\\\\"\\u8df3\\u8f6c\\u5230\\u8be5\\u8282\\u70b9\\\\\\\",\\\\\\\"Rename node\\\\\\\":\\\\\\\"\\u91cd\\u547d\\u540d\\u8282\\u70b9\\\\\\\",\\\\\\\"Delete node\\\\\\\":\\\\\\\"\\u5220\\u9664\\u8282\\u70b9\\\\\\\",\\\\\\\"Rename group\\\\\\\":\\\\\\\"\\u91cd\\u547d\\u540d\\u7ec4\\\\\\\",\\\\\\\"Delete group\\\\\\\":\\\\\\\"\\u5220\\u9664\\u7ec4\\\\\\\",\\\\\\\"Expand All\\\\\\\":\\\\\\\"\\u5c55\\u5f00\\u6240\\u6709\\u7ec4\\\\\\\",\\\\\\\"Collapse All\\\\\\\":\\\\\\\"\\u6298\\u53e0\\u6240\\u6709\\u7ec4\\\\\\\",Close:\\\\\\\"\\u5173\\u95ed\\\\\\\",\\\\\\\"Default automatic sorting, if set to manual, groups can be dragged and dropped and the sorting results saved.\\\\\\\":\\\\\\\"\\u9ed8\\u8ba4\\u81ea\\u52a8\\u6392\\u5e8f\\uff0c\\u5982\\u679c\\u8bbe\\u7f6e\\u4e3a\\u624b\\u52a8\\uff0c\\u7ec4\\u53ef\\u4ee5\\u62d6\\u653e\\u5e76\\u4fdd\\u5b58\\u6392\\u5e8f\\u7ed3\\u679c\\u3002\\\\\\\",\\\\\\\"For drag and drop sorting, please find Nodes map sorting mode in Settings-\\\\u003eEasyUse and change it to manual\\\\\\\":\\\\\\\"\\u5982\\u9700\\u62d6\\u62fd\\u6392\\u5e8f\\u8bf7\\u5728\\u8bbe\\u7f6e-\\\\u003eEasyUse\\u8282\\u70b9\\u4e2d\\u627e\\u5230\\u7ba1\\u7406\\u8282\\u70b9\\u7ec4\\u6392\\u5e8f\\u6a21\\u5f0f\\u5e76\\u4fee\\u6539\\u6210 manual\\\\\\\",Queue:\\\\\\\"\\u961f\\u5217\\\\\\\",\\\\\\\"Cleanup Of VRAM Usage\\\\\\\":\\\\\\\"\\u6e05\\u7406\\u663e\\u5b58\\u5360\\u7528\\\\\\\",\\\\\\\"Please stop all running tasks before cleaning GPU\\\\\\\":\\\\\\\"\\u8bf7\\u5728\\u6e05\\u7406GPU\\u4e4b\\u524d\\u505c\\u6b62\\u6240\\u6709\\u8fd0\\u884c\\u4e2d\\u7684\\u4efb\\u52a1\\\\\\\",Always:\\\\\\\"\\u542f\\u7528\\u4e2d\\\\\\\",Bypass:\\\\\\\"\\u5df2\\u5ffd\\u7565\\\\\\\",Never:\\\\\\\"\\u5df2\\u505c\\u7528\\\\\\\",\\\\\\\"Auto Sorting\\\\\\\":\\\\\\\"\\u81ea\\u52a8\\u6392\\u5e8f\\\\\\\",\\\\\\\"Toggle `Show/Hide` can set mode of group, LongPress can set group nodes to never\\\\\\\":\\\\\\\"\\u70b9\\u51fb`\\u542f\\u7528\\u4e2d/\\u5df2\\u5ffd\\u7565`\\u53ef\\u8bbe\\u7f6e\\u7ec4\\u6a21\\u5f0f, \\u957f\\u6309\\u53ef\\u505c\\u7528\\u8be5\\u7ec4\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Shift+Up/Down/Left/Right key and Shift+Ctrl+Alt+Left/Right to align selected nodes\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+\\u4e0a/\\u4e0b/\\u5de6/\\u53f3 \\u548c Shift+Ctrl+Alt+\\u5de6/\\u53f3 \\u952e\\u5bf9\\u9f50\\u9009\\u4e2d\\u7684\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Shift+Ctrl+Left/Right key to normalize selected nodes\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+Ctrl+\\u5de6/\\u53f3 \\u952e\\u89c4\\u8303\\u5316\\u9009\\u4e2d\\u7684\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Shift+g to add selected nodes to a group\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+g \\u952e\\u5c06\\u9009\\u4e2d\\u7684\\u8282\\u70b9\\u6dfb\\u52a0\\u4e00\\u4e2a\\u7ec4\\\\\\\",\\\\\\\"Enable Shift+r to unload models and node cache\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+r \\u952e\\u5378\\u8f7d\\u6a21\\u578b\\u548c\\u8282\\u70b9\\u7f13\\u5b58\\\\\\\",\\\\\\\"Enable Shift+m to toggle nodes map\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+m \\u952e\\u663e\\u9690\\u7ba1\\u7406\\u8282\\u70b9\\u7ec4\\\\\\\",\\\\\\\"Enable Up/Down/Left/Right key to jump nearest nodes\\\\\\\":\\\\\\\"\\u542f\\u7528 \\u4e0a/\\u4e0b/\\u5de6/\\u53f3 \\u952e\\u8df3\\u8f6c\\u5230\\u6700\\u8fd1\\u7684\\u524d\\u540e\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Alt+1~9 to paste nodes from nodes template\\\\\\\":\\\\\\\"\\u542f\\u7528 Alt+1~9 \\u4ece\\u8282\\u70b9\\u6a21\\u677f\\u7c98\\u8d34\\u5230\\u5de5\\u4f5c\\u6d41\\u4e2d\\\\\\\",\\\\\\\"Enable contextMenu auto nest subdirectories\\\\\\\":\\\\\\\"\\u542f\\u7528\\u4e0a\\u4e0b\\u6587\\u83dc\\u5355\\u81ea\\u52a8\\u5d4c\\u5957\\u5b50\\u76ee\\u5f55\\\\\\\",\\\\\\\"Enable right-click menu to add node A~Z sorting\\\\\\\":\\\\\\\"\\u542f\\u7528\\u53f3\\u952e\\u83dc\\u5355\\u4e2d\\u65b0\\u5efa\\u8282\\u70b9A~Z\\u6392\\u5e8f\\\\\\\",\\\\\\\"Enable model thumbnails display\\\\\\\":\\\\\\\"\\u542f\\u52a8\\u6a21\\u578b\\u9884\\u89c8\\u56fe\\u663e\\u793a\\\\\\\",\\\\\\\"Enable nodes runtime display\\\\\\\":\\\\\\\"\\u542f\\u52a8\\u8282\\u70b9\\u8fd0\\u884c\\u65f6\\u95f4\\u663e\\u793a\\\\\\\",\\\\\\\"Enable chain get node and set node with parent nodes\\\\\\\":\\\\\\\"\\u542f\\u7528\\u5c06\\u83b7\\u53d6\\u70b9\\u548c\\u8bbe\\u7f6e\\u70b9\\u4e0e\\u7236\\u8282\\u70b9\\u94fe\\u5728\\u4e00\\u8d77\\\\\\\",\\\\\\\"Maximum number of model thumbnails displayed\\\\\\\":\\\\\\\"\\u663e\\u793a\\u7684\\u6a21\\u578b\\u7f29\\u7565\\u56fe\\u7684\\u6700\\u5927\\u6570\\u91cf\\\\\\\",\\\\\\\"Too many thumbnails will affect the first loading time, set the maximum value to not load the thumbnail function when there are too many models's thumbnail\\\\\\\":\\\\\\\"\\u592a\\u591a\\u7684\\u7f29\\u7565\\u56fe\\u4f1a\\u5f71\\u54cd\\u9996\\u6b21\\u52a0\\u8f7d\\u65f6\\u95f4\\uff0c\\u5f53\\u6a21\\u578b\\u7f29\\u7565\\u56fe\\u592a\\u591a\\u65f6\\uff0c\\u8bbe\\u7f6e\\u6700\\u5927\\u503c\\u4ee5\\u4e0d\\u52a0\\u8f7d\\u7f29\\u7565\\u56fe\\u529f\\u80fd\\\\\\\",\\\\\\\"Too many thumbnails, have closed the display\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u7f29\\u7565\\u56fe\\u592a\\u591a\\u5566\\uff0c\\u4e3a\\u60a8\\u5173\\u95ed\\u4e86\\u663e\\u793a\\\\\\\",\\\\\\\"Shift+Up/Down/Left/Right can align selected nodes, Shift+Ctrl+Alt+Left/Right can distribute horizontal/vertical nodes\\\\\\\":\\\\\\\"Shift+\\u4e0a/\\u4e0b/\\u5de6/\\u53f3 \\u53ef\\u4ee5\\u5bf9\\u9f50\\u9009\\u4e2d\\u7684\\u8282\\u70b9, Shift+Ctrl+Alt+\\u5de6/\\u53f3 \\u53ef\\u4ee5\\u6c34\\u5e73/\\u5782\\u76f4\\u5206\\u5e03\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Shift+Ctrl+Left key to normalize width and Shift+Ctrl+Right key to normalize height\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+Ctrl+\\u5de6 \\u952e\\u89c4\\u8303\\u5316\\u5bbd\\u5ea6\\u548c Shift+Ctrl+\\u53f3 \\u952e\\u89c4\\u8303\\u5316\\u9ad8\\u5ea6\\\\\\\",\\\\\\\"After v1.2.39, Ctrl+g can be used instead of it\\\\\\\":\\\\\\\"\\u4ecev1.2.39\\u5f00\\u59cb\\uff0c\\u53ef\\u4ee5\\u4f7f\\u7528Ctrl+g\\u4ee3\\u66ff\\\\\\\",\\\\\\\"Styles Selector Display Type\\\\\\\":\\\\\\\"\\u6837\\u5f0f\\u9009\\u62e9\\u5668\\u663e\\u793a\\u7c7b\\u578b\\\\\\\",\\\\\\\"Styles Selector Display Type, if set to 'Grid', it will display as a Grid, if set to 'List', it will display as a list\\\\\\\":\\\\\\\"\\u6837\\u5f0f\\u9009\\u62e9\\u5668\\u663e\\u793a\\u7c7b\\u578b\\uff0c\\u5982\\u679c\\u8bbe\\u7f6e\\u4e3a\\u201c\\u7f51\\u683c\\u201d\\uff0c\\u5219\\u663e\\u793a\\u4e3a\\u7f51\\u683c\\uff0c\\u5982\\u679c\\u8bbe\\u7f6e\\u4e3a\\u201c\\u5217\\u8868\\u201d\\uff0c\\u5219\\u663e\\u793a\\u4e3a\\u5217\\u8868\\\\\\\",\\\\\\\"Use three shortcut buttons in the right-click menu\\\\\\\":\\\\\\\"\\u5728\\u53f3\\u952e\\u83dc\\u5355\\u4e2d\\u4f7f\\u7528\\u4e09\\u4e2a\\u5feb\\u6377\\u6309\\u94ae\\\\\\\",\\\\\\\"Enable Nodes Map\\\\\\\":\\\\\\\"\\u542f\\u7528\\u8282\\u70b9\\u7ec4\\u7ba1\\u7406\\\\\\\",\\\\\\\"Display Groups Only\\\\\\\":\\\\\\\"\\u4ec5\\u663e\\u793a\\u7ec4\\\\\\\",\\\\\\\"Display Node ID\\\\\\\":\\\\\\\"\\u663e\\u793a\\u8282\\u70b9ID\\\\\\\",\\\\\\\"You need to refresh the page to update successfully\\\\\\\":\\\\\\\"\\u60a8\\u9700\\u8981\\u5237\\u65b0\\u9875\\u9762\\u4ee5\\u6210\\u529f\\u66f4\\u65b0\\\\\\\",\\\\\\\"Get styles list Failed\\\\\\\":\\\\\\\"\\u83b7\\u53d6\\u6837\\u5f0f\\u5217\\u8868\\u5931\\u8d25\\\\\\\",\\\\\\\"Get style image Failed\\\\\\\":\\\\\\\"\\u83b7\\u53d6\\u6837\\u5f0f\\u56fe\\u7247\\u5931\\u8d25\\\\\\\",\\\\\\\"Empty All\\\\\\\":\\\\\\\"\\u6e05\\u7a7a\\u6240\\u6709\\\\\\\",\\\\\\\"Type here to search styles ...\\\\\\\":\\\\\\\"\\u5728\\u6b64\\u5904\\u8f93\\u5165\\u4ee5\\u641c\\u7d22\\u6837\\u5f0f ...\\\\\\\",\\\\\\\"Loading UserInfo...\\\\\\\":\\\\\\\"\\u6b63\\u5728\\u83b7\\u53d6\\u7528\\u6237\\u4fe1\\u606f...\\\\\\\",\\\\\\\"Please set the APIKEY first\\\\\\\":\\\\\\\"\\u8bf7\\u5148\\u8bbe\\u7f6eAPIKEY\\\\\\\",\\\\\\\"Setting APIKEY\\\\\\\":\\\\\\\"\\u8bbe\\u7f6eAPIKEY\\\\\\\",\\\\\\\"Save Account Info\\\\\\\":\\\\\\\"\\u4fdd\\u5b58\\u8d26\\u53f7\\u4fe1\\u606f\\\\\\\",Choose:\\\\\\\"\\u9009\\u62e9\\\\\\\",Delete:\\\\\\\"\\u5220\\u9664\\\\\\\",Edit:\\\\\\\"\\u7f16\\u8f91\\\\\\\",\\\\\\\"At least one account is required\\\\\\\":\\\\\\\"\\u5220\\u9664\\u5931\\u8d25: \\u81f3\\u5c11\\u9700\\u8981\\u4e00\\u4e2a\\u8d26\\u6237\\\\\\\",\\\\\\\"APIKEY is not Empty\\\\\\\":\\\\\\\"APIKEY \\u4e0d\\u80fd\\u4e3a\\u7a7a\\\\\\\",\\\\\\\"Add Account\\\\\\\":\\\\\\\"\\u6dfb\\u52a0\\u8d26\\u53f7\\\\\\\",\\\\\\\"Getting Your APIKEY\\\\\\\":\\\\\\\"\\u83b7\\u53d6\\u60a8\\u7684APIKEY\\\\\\\",Canceling:\\\\\\\"\\u6b63\\u5728\\u53d6\\u6d88\\\\\\\",\\\\\\\"Cancel current run\\\\\\\":\\\\\\\"\\u53d6\\u6d88\\u5f53\\u524d\\u8fd0\\u884c\\\\\\\",\\\\\\\"Waiting for selection...\\\\\\\":\\\\\\\"\\u7b49\\u5f85\\u9009\\u62e9\\u4e2d...\\\\\\\",\\\\\\\"Using last selection\\\\\\\":\\\\\\\"\\u4f7f\\u7528\\u4e0a\\u6b21\\u9009\\u62e9\\\\\\\",\\\\\\\"Pass Through\\\\\\\":\\\\\\\"\\u8df3\\u8fc7\\u9009\\u62e9\\\\\\\",\\\\\\\"Unknown Mode\\\\\\\":\\\\\\\"\\u672a\\u77e5\\u6a21\\u5f0f\\\\\\\",\\\\\\\"Choose Selected Images\\\\\\\":\\\\\\\"\\u9009\\u62e9\\u9009\\u4e2d\\u7684\\u56fe\\u7247\\\\\\\",\\\\\\\"Choose images to continue\\\\\\\":\\\\\\\"\\u9009\\u62e9\\u56fe\\u7247\\u4ee5\\u7ee7\\u7eed\\\\\\\",\\\\\\\"Please run first\\\\\\\":\\\\\\\"\\u8bf7\\u5148\\u8fd0\\u884c\\u961f\\u5217\\\\\\\",\\\\\\\"Progress selected\\\\\\\":\\\\\\\"\\u5904\\u7406\\u9009\\u4e2d\\u7684\\u56fe\\u7247\\\\\\\",\\\\\\\"Progress selected image\\\\\\\":\\\\\\\"\\u5904\\u7406\\u9009\\u4e2d\\u7684\\u56fe\\u7247\\\\\\\",\\\\\\\"Please select images to continue\\\\\\\":\\\\\\\"\\u8bf7\\u9009\\u62e9\\u56fe\\u7247\\u4ee5\\u7ee7\\u7eed\\\\\\\",Background:\\\\\\\"\\u80cc\\u666f\\\\\\\",Hat:\\\\\\\"\\u5e3d\\u5b50\\\\\\\",Hair:\\\\\\\"\\u5934\\u53d1\\\\\\\",Body:\\\\\\\"\\u8eab\\u4f53\\\\\\\",Face:\\\\\\\"\\u8138\\u90e8\\\\\\\",Clothes:\\\\\\\"\\u8863\\u670d\\\\\\\",Others:\\\\\\\"\\u5176\\u4ed6\\\\\\\",Glove:\\\\\\\"\\u624b\\u5957\\\\\\\",Glasses:\\\\\\\"\\u773c\\u955c\\\\\\\",Sunglasses:\\\\\\\"\\u592a\\u9633\\u955c\\\\\\\",\\\\\\\"Upper-clothes\\\\\\\":\\\\\\\"\\u4e0a\\u8863\\\\\\\",\\\\\\\"Top-clothes\\\\\\\":\\\\\\\"\\u4e0a\\u8863\\\\\\\",\\\\\\\"Bottom-clothes\\\\\\\":\\\\\\\"\\u4e0b\\u8eab\\u88c5\\\\\\\",\\\\\\\"Torso-skin\\\\\\\":\\\\\\\"\\u76ae\\u80a4\\\\\\\",Dress:\\\\\\\"\\u8fde\\u8863\\u88d9\\\\\\\",Belt:\\\\\\\"\\u8170\\u5e26\\\\\\\",Coat:\\\\\\\"\\u5916\\u5957\\\\\\\",Socks:\\\\\\\"\\u889c\\u5b50\\\\\\\",Pants:\\\\\\\"\\u88e4\\u5b50\\\\\\\",Jumpsuits:\\\\\\\"\\u8fde\\u4f53\\u8863\\\\\\\",Bag:\\\\\\\"\\u5305\\\\\\\",Scarf:\\\\\\\"\\u56f4\\u5dfe\\\\\\\",Skirt:\\\\\\\"\\u88d9\\u5b50\\\\\\\",\\\\\\\"Left-arm\\\\\\\":\\\\\\\"\\u5de6\\u81c2\\\\\\\",\\\\\\\"Right-arm\\\\\\\":\\\\\\\"\\u53f3\\u81c2\\\\\\\",\\\\\\\"Left-leg\\\\\\\":\\\\\\\"\\u5de6\\u817f\\\\\\\",\\\\\\\"Right-leg\\\\\\\":\\\\\\\"\\u53f3\\u817f\\\\\\\",\\\\\\\"Left-foot\\\\\\\":\\\\\\\"\\u5de6\\u811a\\\\\\\",\\\\\\\"Right-foot\\\\\\\":\\\\\\\"\\u53f3\\u811a\\\\\\\",\\\\\\\"Left-shoe\\\\\\\":\\\\\\\"\\u5de6\\u978b\\\\\\\",\\\\\\\"Right-shoe\\\\\\\":\\\\\\\"\\u53f3\\u978b\\\\\\\",\\\\\\\"select mask components\\\\\\\":\\\\\\\"\\u9009\\u62e9\\u5206\\u5272\\u90e8\\u4f4d\\\\\\\",\\\\\\\"select items\\\\\\\":\\\\\\\"\\u9009\\u62e9\\u9879\\\\\\\",Unlabelled:\\\\\\\"\\u672a\\u6807\\u8bb0\\\\\\\",\\\\\\\"shirt, blouse\\\\\\\":\\\\\\\"\\u886c\\u886b\\uff0c\\u5973\\u5f0f\\u886c\\u886b\\\\\\\",\\\\\\\"top, t-shirt, sweatshirt\\\\\\\":\\\\\\\"\\u4e0a\\u8863\\uff0cT\\u6064\\uff0c\\u8fd0\\u52a8\\u886b\\\\\\\",sweater:\\\\\\\"\\u6bdb\\u8863\\\\\\\",cardigan:\\\\\\\"\\u5f00\\u895f\\u6bdb\\u8863\\\\\\\",jacket:\\\\\\\"\\u5939\\u514b\\\\\\\",vest:\\\\\\\"\\u80cc\\u5fc3\\\\\\\",pants:\\\\\\\"\\u957f\\u88e4\\\\\\\",shorts:\\\\\\\"\\u77ed\\u88e4\\\\\\\",skirt:\\\\\\\"\\u88d9\\u5b50\\\\\\\",coat:\\\\\\\"\\u5916\\u5957\\\\\\\",dress:\\\\\\\"\\u8fde\\u8863\\u88d9\\\\\\\",jumpsuit:\\\\\\\"\\u8fde\\u4f53\\u8863\\\\\\\",cape:\\\\\\\"\\u6597\\u7bf7\\\\\\\",glasses:\\\\\\\"\\u773c\\u955c\\\\\\\",hat:\\\\\\\"\\u5e3d\\u5b50\\\\\\\",\\\\\\\"headband, head covering, hair accessory\\\\\\\":\\\\\\\"\\u5934\\u5e26\\uff0c\\u5934\\u9970\\uff0c\\u53d1\\u9970\\\\\\\",tie:\\\\\\\"\\u9886\\u5e26\\\\\\\",glove:\\\\\\\"\\u624b\\u5957\\\\\\\",watch:\\\\\\\"\\u624b\\u8868\\\\\\\",belt:\\\\\\\"\\u8170\\u5e26\\\\\\\",\\\\\\\"leg warmer\\\\\\\":\\\\\\\"\\u62a4\\u817f\\\\\\\",\\\\\\\"tights, stockings\\\\\\\":\\\\\\\"\\u7d27\\u8eab\\u889c\\uff0c\\u4e1d\\u889c\\\\\\\",sock:\\\\\\\"\\u889c\\u5b50\\\\\\\",shoe:\\\\\\\"\\u978b\\u5b50\\\\\\\",\\\\\\\"bag, wallet\\\\\\\":\\\\\\\"\\u5305\\uff0c\\u94b1\\u5305\\\\\\\",scarf:\\\\\\\"\\u56f4\\u5dfe\\\\\\\",umbrella:\\\\\\\"\\u96e8\\u4f1e\\\\\\\",hood:\\\\\\\"\\u5e3d\\u515c\\\\\\\",collar:\\\\\\\"\\u9886\\u5b50\\\\\\\",lapel:\\\\\\\"\\u7ffb\\u9886\\\\\\\",epaulette:\\\\\\\"\\u80a9\\u7ae0\\\\\\\",sleeve:\\\\\\\"\\u8896\\u5b50\\\\\\\",pocket:\\\\\\\"\\u53e3\\u888b\\\\\\\",neckline:\\\\\\\"\\u9886\\u53e3\\\\\\\",buckle:\\\\\\\"\\u6263\\u73af\\\\\\\",zipper:\\\\\\\"\\u62c9\\u94fe\\\\\\\",applique:\\\\\\\"\\u8d34\\u82b1\\\\\\\",bead:\\\\\\\"\\u73e0\\u5b50\\\\\\\",bow:\\\\\\\"\\u8774\\u8776\\u7ed3\\\\\\\",flower:\\\\\\\"\\u82b1\\u6735\\u88c5\\u9970\\\\\\\",fringe:\\\\\\\"\\u6d41\\u82cf\\\\\\\",ribbon:\\\\\\\"\\u4e1d\\u5e26\\\\\\\",rivet:\\\\\\\"\\u94c6\\u9489\\\\\\\",ruffle:\\\\\\\"\\u8936\\u8fb9\\\\\\\",sequin:\\\\\\\"\\u4eae\\u7247\\\\\\\",tassel:\\\\\\\"\\u6d41\\u82cf\\u7a57\\\\\\\",background:\\\\\\\"\\u80cc\\u666f\\\\\\\",skin:\\\\\\\"\\u76ae\\u80a4\\\\\\\",nose:\\\\\\\"\\u9f3b\\u5b50\\\\\\\",eyeglasses:\\\\\\\"\\u773c\\u955c\\\\\\\",left_eye:\\\\\\\"\\u5de6\\u773c\\\\\\\",right_eye:\\\\\\\"\\u53f3\\u773c\\\\\\\",left_eyebrow:\\\\\\\"\\u5de6\\u7709\\u6bdb\\\\\\\",right_eyebrow:\\\\\\\"\\u53f3\\u7709\\u6bdb\\\\\\\",left_ear:\\\\\\\"\\u5de6\\u8033\\\\\\\",right_ear:\\\\\\\"\\u53f3\\u8033\\\\\\\",mouth:\\\\\\\"\\u5634\\u5df4\\\\\\\",upper_lip:\\\\\\\"\\u4e0a\\u5507\\\\\\\",lower_lip:\\\\\\\"\\u4e0b\\u5507\\\\\\\",hair:\\\\\\\"\\u5934\\u53d1\\\\\\\",earring:\\\\\\\"\\u8033\\u73af\\\\\\\",necklace:\\\\\\\"\\u9879\\u94fe\\\\\\\",neck:\\\\\\\"\\u8116\\u5b50\\\\\\\",clothing:\\\\\\\"\\u670d\\u88c5\\\\\\\",s:\\\\\\\"\\u79d2\\\\\\\",\\\\\\\"No Node Templates Found\\\\\\\":\\\\\\\"\\u672a\\u627e\\u5230\\u8282\\u70b9\\u6a21\\u677f\\u9884\\u8bbe\\\\\\\",\\\\\\\"Get Node Templates File Failed\\\\\\\":\\\\\\\"\\u83b7\\u53d6\\u8282\\u70b9\\u6a21\\u677f\\u6587\\u4ef6\\u5931\\u8d25\\\\\\\",\\\\\\\"Node template with {key} not set\\\\\\\":\\\\\\\"\\u672a\\u8bbe\\u7f6e\\u5feb\\u6377\\u952e\\u4e3a{key}\\u7684\\u8282\\u70b9\\u9884\\u8bbe\\\\\\\",\\\\\\\"ComfyUI Basic\\\\\\\":\\\\\\\"ComfyUI \\u57fa\\u7840\\u8282\\u70b9\\\\\\\",\\\\\\\"Recommend Nodes\\\\\\\":\\\\\\\"\\u63a8\\u8350\\u8282\\u70b9\\\\\\\",\\\\\\\"Others A~Z\\\\\\\":\\\\\\\"\\u5176\\u4ed6\\u8282\\u70b9 A~Z\\\\\\\",\\\\\\\"The maximum number of inputs is 20\\\\\\\":\\\\\\\"\\u8f93\\u5165\\u6570\\u91cf\\u6700\\u592720\\u4e2a\\\\\\\",\\\\\\\"The maximum number of outputs is 20\\\\\\\":\\\\\\\"\\u8f93\\u51fa\\u6570\\u91cf\\u6700\\u592720\\u4e2a\\\\\\\",\\\\\\\"Stop recording\\\\\\\":\\\\\\\"\\u505c\\u6b62\\u5f55\\u97f3\\\\\\\",\\\\\\\"Voice input\\\\\\\":\\\\\\\"\\u8bed\\u97f3\\u8f93\\u5165\\\\\\\",Continue:\\\\\\\"\\u7ee7\\u7eed\\\\\\\",Stop:\\\\\\\"\\u505c\\u6b62\\\\\\\",now:\\\\\\\"\\u5f53\\u524d\\\\\\\",prev:\\\\\\\"\\u4e0a\\u4e00\\u6b65\\\\\\\",\\\\\\\"Add New Tab\\\\\\\":\\\\\\\"\\u6dfb\\u52a0\\u65b0\\u6807\\u7b7e\\\\\\\",\\\\\\\"Add Angle Prompt\\\\\\\":\\\\\\\"\\u6dfb\\u52a0\\u89d2\\u5ea6\\u63d0\\u793a\\u8bcd\\\\\\\",\\\\\\\"Invert Rotate Mode\\\\\\\":\\\\\\\"\\u53cd\\u8f6c\\u65cb\\u8f6c\\\\\\\",Hollow:\\\\\\\"\\u9542\\u7a7a\\u5c55\\u793a\\\\\\\",Reset:\\\\\\\"\\u91cd\\u7f6e\\\\\\\",\\\\\\\"Angle Prompt\\\\\\\":\\\\\\\"\\u89d2\\u5ea6\\u8bcd\\\\\\\",Image:\\\\\\\"\\u56fe\\u50cf\\\\\\\",F:\\\\\\\"\\u524d\\\\\\\",B:\\\\\\\"\\u540e\\\\\\\",U:\\\\\\\"\\u9876\\\\\\\",D:\\\\\\\"\\u5e95\\\\\\\",L:\\\\\\\"\\u5de6\\\\\\\",R:\\\\\\\"\\u53f3\\\\\\\",Rotate:\\\\\\\"\\u65cb\\u8f6c\\\\\\\",Vertical:\\\\\\\"\\u5782\\u76f4\\\\\\\",Zoom:\\\\\\\"\\u7f29\\u653e\\\\\\\"},Ne=(e,t=!1)=\\\\u003e{switch(xe(\\\\\\\"Comfy.Locale\\\\\\\")){case\\\\\\\"zh-CN\\\\\\\":case\\\\\\\"zh\\\\\\\":return Ee[e]||e;default:return e}};const Ce=\\\\\\\"comfyui-easyuse-\\\\\\\",Ie=\\\\\\\"dark-theme\\\\\\\",Te={PIPE_LINE:\\\\\\\"#7737AA\\\\\\\",PIPE_LINE_SDXL:\\\\\\\"#7737AA\\\\\\\",INT:\\\\\\\"#29699C\\\\\\\",X_Y:\\\\\\\"#38291f\\\\\\\",XYPLOT:\\\\\\\"#74DA5D\\\\\\\",LORA_STACK:\\\\\\\"#94dccd\\\\\\\",CONTROL_NET_STACK:\\\\\\\"#94dccd\\\\\\\",FLOW_CONTROL:\\\\\\\"#373780\\\\\\\"},Oe=0x4000000000000,Me=[\\\\\\\"loaders\\\\\\\",\\\\\\\"latent\\\\\\\",\\\\\\\"image\\\\\\\",\\\\\\\"mask\\\\\\\",\\\\\\\"sampling\\\\\\\",\\\\\\\"_for_testing\\\\\\\",\\\\\\\"advanced\\\\\\\",\\\\\\\"utils\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"api node\\\\\\\",\\\\\\\"\\u52a0\\u8f7d\\u5668\\\\\\\",\\\\\\\"Latent\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u906e\\u7f69\\\\\\\",\\\\\\\"\\u91c7\\u6837\\\\\\\",\\\\\\\"_\\u7528\\u4e8e\\u6d4b\\u8bd5\\\\\\\",\\\\\\\"\\u9ad8\\u7ea7\\\\\\\",\\\\\\\"\\u5de5\\u5177\\\\\\\",\\\\\\\"API\\\\\\\",\\\\\\\"api \\u8282\\u70b9\\\\\\\",\\\\\\\"chargeurs\\\\\\\",\\\\\\\"latent\\\\\\\",\\\\\\\"image\\\\\\\",\\\\\\\"masque\\\\\\\",\\\\\\\"\\u00e9chantillonnage\\\\\\\",\\\\\\\"_pour_test\\\\\\\",\\\\\\\"avanc\\u00e9\\\\\\\",\\\\\\\"outils\\\\\\\",\\\\\\\"n\\u0153ud api\\\\\\\",\\\\\\\"\\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u0447\\u0438\\u043a\\u0438\\\\\\\",\\\\\\\"\\u043b\\u0430\\u0442\\u0435\\u043d\\u0442\\u043d\\u044b\\u0439\\\\\\\",\\\\\\\"\\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435\\\\\\\",\\\\\\\"\\u043c\\u0430\\u0441\\u043a\\u0430\\\\\\\",\\\\\\\"\\u0432\\u044b\\u0431\\u043e\\u0440\\u043a\\u0430\\\\\\\",\\\\\\\"_\\u0434\\u043b\\u044f_\\u0442\\u0435\\u0441\\u0442\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d\\u0438\\u044f\\\\\\\",\\\\\\\"\\u0440\\u0430\\u0441\\u0448\\u0438\\u0440\\u0435\\u043d\\u043d\\u044b\\u0439\\\\\\\",\\\\\\\"\\u0438\\u043d\\u0441\\u0442\\u0440\\u0443\\u043c\\u0435\\u043d\\u0442\\u044b\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"api \\u0443\\u0437\\u0435\\u043b\\\\\\\",\\\\\\\"\\ub85c\\ub354\\\\\\\",\\\\\\\"\\uc7a0\\uc7ac\\\\\\\",\\\\\\\"\\uc774\\ubbf8\\uc9c0\\\\\\\",\\\\\\\"\\ub9c8\\uc2a4\\ud06c\\\\\\\",\\\\\\\"\\uc0d8\\ud50c\\ub9c1\\\\\\\",\\\\\\\"_\\ud14c\\uc2a4\\ud2b8\\uc6a9\\\\\\\",\\\\\\\"\\uace0\\uae09\\\\\\\",\\\\\\\"\\ub3c4\\uad6c\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"api \\ub178\\ub4dc\\\\\\\",\\\\\\\"\\u30ed\\u30fc\\u30c0\\u30fc\\\\\\\",\\\\\\\"\\u6f5c\\u5728\\\\\\\",\\\\\\\"\\u753b\\u50cf\\\\\\\",\\\\\\\"\\u30de\\u30b9\\u30af\\\\\\\",\\\\\\\"\\u30b5\\u30f3\\u30d7\\u30ea\\u30f3\\u30b0\\\\\\\",\\\\\\\"_\\u30c6\\u30b9\\u30c8\\u7528\\\\\\\",\\\\\\\"\\u9ad8\\u5ea6\\u306a\\\\\\\",\\\\\\\"\\u30c4\\u30fc\\u30eb\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"api\\u30ce\\u30fc\\u30c9\\\\\\\",\\\\\\\"cargadores\\\\\\\",\\\\\\\"latente\\\\\\\",\\\\\\\"imagen\\\\\\\",\\\\\\\"m\\u00e1scara\\\\\\\",\\\\\\\"muestreo\\\\\\\",\\\\\\\"_para_pruebas\\\\\\\",\\\\\\\"avanzado\\\\\\\",\\\\\\\"herramientas\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"nodo api\\\\\\\"],De={selfie_multiclass_256x256:[\\\\\\\"Background\\\\\\\",\\\\\\\"Hair\\\\\\\",\\\\\\\"Body\\\\\\\",\\\\\\\"Face\\\\\\\",\\\\\\\"Clothes\\\\\\\",\\\\\\\"Others\\\\\\\"],human_parsing_lip:[\\\\\\\"Background\\\\\\\",\\\\\\\"Hat\\\\\\\",\\\\\\\"Hair\\\\\\\",\\\\\\\"Glove\\\\\\\",\\\\\\\"Sunglasses\\\\\\\",\\\\\\\"Upper-clothes\\\\\\\",\\\\\\\"Dress\\\\\\\",\\\\\\\"Coat\\\\\\\",\\\\\\\"Socks\\\\\\\",\\\\\\\"Pants\\\\\\\",\\\\\\\"Jumpsuits\\\\\\\",\\\\\\\"Scarf\\\\\\\",\\\\\\\"Skirt\\\\\\\",\\\\\\\"Face\\\\\\\",\\\\\\\"Left-arm\\\\\\\",\\\\\\\"Right-arm\\\\\\\",\\\\\\\"Left-leg\\\\\\\",\\\\\\\"Right-leg\\\\\\\",\\\\\\\"Left-shoe\\\\\\\",\\\\\\\"Right-shoe\\\\\\\"],\\\\\\\"human_parts (deeplabv3p)\\\\\\\":[\\\\\\\"Background\\\\\\\",\\\\\\\"Face\\\\\\\",\\\\\\\"Hair\\\\\\\",\\\\\\\"Glasses\\\\\\\",\\\\\\\"Top-clothes\\\\\\\",\\\\\\\"Bottom-clothes\\\\\\\",\\\\\\\"Torso-skin\\\\\\\",\\\\\\\"Left-arm\\\\\\\",\\\\\\\"Right-arm\\\\\\\",\\\\\\\"Left-leg\\\\\\\",\\\\\\\"Right-leg\\\\\\\",\\\\\\\"Left-foot\\\\\\\",\\\\\\\"Right-foot\\\\\\\"],segformer_b3_clothes:{Background:0,Hat:1,Hair:2,Sunglasses:3,\\\\\\\"Upper-clothes\\\\\\\":4,Skirt:5,Pants:6,Dress:7,Belt:8,\\\\\\\"Left-shoe\\\\\\\":9,\\\\\\\"Right-shoe\\\\\\\":10,Face:11,\\\\\\\"Left-leg\\\\\\\":12,\\\\\\\"Right-leg\\\\\\\":13,\\\\\\\"Left-arm\\\\\\\":14,\\\\\\\"Right-arm\\\\\\\":15,Bag:16,Scarf:17},segformer_b3_fashion:{Unlabelled:0,\\\\\\\"shirt, blouse\\\\\\\":1,\\\\\\\"top, t-shirt, sweatshirt\\\\\\\":2,sweater:3,cardigan:4,jacket:5,vest:6,pants:7,shorts:8,skirt:9,coat:10,dress:11,jumpsuit:12,cape:13,glasses:14,hat:15,\\\\\\\"headband, head covering, hair accessory\\\\\\\":16,tie:17,glove:18,watch:19,belt:20,\\\\\\\"leg warmer\\\\\\\":21,\\\\\\\"tights, stockings\\\\\\\":22,sock:23,shoe:24,\\\\\\\"bag, wallet\\\\\\\":25,scarf:26,umbrella:27,hood:28,collar:29,lapel:30,epaulette:31,sleeve:32,pocket:33,neckline:34,buckle:35,zipper:36,applique:37,bead:38,bow:39,flower:40,fringe:41,ribbon:42,rivet:43,ruffle:44,sequin:45,tassel:46},face_parsing:[\\\\\\\"background\\\\\\\",\\\\\\\"skin\\\\\\\",\\\\\\\"nose\\\\\\\",\\\\\\\"eyeglasses\\\\\\\",\\\\\\\"left_eye\\\\\\\",\\\\\\\"right_eye\\\\\\\",\\\\\\\"left_eyebrow\\\\\\\",\\\\\\\"right_eyebrow\\\\\\\",\\\\\\\"left_ear\\\\\\\",\\\\\\\"right_ear\\\\\\\",\\\\\\\"mouth\\\\\\\",\\\\\\\"upper_lip\\\\\\\",\\\\\\\"lower_lip\\\\\\\",\\\\\\\"hair\\\\\\\",\\\\\\\"hat\\\\\\\",\\\\\\\"earring\\\\\\\",\\\\\\\"necklace\\\\\\\",\\\\\\\"neck\\\\\\\",\\\\\\\"clothing\\\\\\\"]},Re={ALWAYS:0,NEVER:2,BYPASS:4},Pe=\\\\\\\"easyuse_nodes_map\\\\\\\",Ge=\\\\\\\"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMyaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA5LjEtYzAwMSA3OS4xNDYyODk5Nzc3LCAyMDIzLzA2LzI1LTIzOjU3OjE0ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjUuMyAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2RkFERDc2MUNDRkIxMUVGQjFENkE0NzFCNTUzRkQ0MCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2RkFERDc2MkNDRkIxMUVGQjFENkE0NzFCNTUzRkQ0MCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjUyMkMxRkIyQ0M0QzExRUZCMUQ2QTQ3MUI1NTNGRDQwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjZGQURENzYwQ0NGQjExRUZCMUQ2QTQ3MUI1NTNGRDQwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgICAwMDAwMDAwMDAwEBAQEBAQECAQECAgIBAgIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD/8AAEQgBgAGAAwERAAIRAQMRAf/EAMoAAQADAQEBAQEBAQAAAAAAAAAICQoHBgUEAwECAQEAAwEBAQEAAAAAAAAAAAAABQYHBAMCARAAAAYCAQIDBAQJBwoGAwAAAAECAwQFBgcIERITFAkhFRZXIpYXGTEy1bbWd5cYOEEjM9Q2djdRsbMktHWVtbd4QlIlJ9dYNJQ5EQACAQICBQYJCQYFAwUBAAAAAQIRAwQFITFREgZBYXGBkROhsdEiMpJTFBbBQlJy0nNUFTXworIjMzThYoKDJMLidPFDk7MmNv/aAAwDAQACEQMRAD8AxHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+lZU1vSrht3FVZVLljWwbmvRZQZUFc6otGEya21hplNNHJrbGMonGH0dzTyDJSFGXtH1KE4UU002k1VUqnqa5nyM+YyjKu606Omjata6T5o+T6LYfT19PfAOY+B59lmXZ7mGJTMQy6Hj0WJjkOlfiyosmmYsjkyHLOPId8cnXTT0T2pJKSP2mfst3DnDmHzrD3L165OEoTUfNS2V5Sv5xnF7LbsLduEZKUa6a7acg9Qr098A4cYHgOWYjnuYZbMy/LpmPSomRw6ViLFixqZ+yKTHcrI8d3xzdaJPRXck0qM/YZe1xHw5h8lw9u9ZuTnKc3HzktleQZPnF7Mrs7dyEYqMa6K7acpU8KiWA/fAqrS1OYVXWz7I6+BKtZ5QIciYcGrgoJybZTCjtuHGgQ0GSnXl9rbZH1UZD6jCc67iboquirRLW+jnPxyjGm80qunXsPwD5P0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC1T0sOKGpeR20re72pk1HZRNblDuYWmnnTTa5wvxEdlzbsvEhEzCKaUptEqOwbipEhxtuR4bCuyTbOE8oweZ4uU8XOLVqjVvllzvbFcqWt0TotcBn+YYjBWFDDxac9G/yR5l/mfJ4NOq/Dmtwc19y616zWeFXYls3Eq9xrXGcMQ0oRXIQk1oxW+ZiN+LMw6a57DbQlTkBxXjxyM/FZf0HPMhw+cYbd0QxUF5kqav8AK9sX4Na5U6jlea3suvb2mViT86Pyrn8ep82P3amq880rnd/rfZWPTMZy3HJao0+vlp6tvNH1VFsq2WjrHsqixY6OxpTKlsvtKJSVGQxvF4TEYHESw2Ki43ovSvlW1Pka0M0fD4izirSv2JKVuX7UexrlRog9DH/Bvdv6zaj81Yo0fgP+yv8A3q/hRTeK/wC5tfUfjHrnf4N6S/Wbb/mrKDjz+ysfev8AhY4U/ubv1F4zO/qvVeebqzug1vrXHpmTZbkctMaBXxE9G2Wi6KlWVlLX0j1tRXMdXZMp5SGWGkmpSiIZxhMJiMdiI4bCxcr0noXyvYlyt6EXLEYizhbTv35KNuP7UW1vkRr/AOF3BfXXEzXEulejVeZ7HzOsKLs3MpkBt+PbR32/5/EaWNNaUqNhUVSjSbLiSXYLLxpKf6JljZMkyHDZRhnBpTxM158mtf8AlVfm+PW+RLOMzzW9mF9SVY2IvzY7Od/5vFqXPQD6oXErWPGbalVY6vymkj02xW5l2rUvm1O5FgR+MolS4jCScMsItJCXEQDfWh1p1pxlHiob7kZ5xVk+FyvFqWFnHcuVfd8sP+18ledaaFvyHMb+Ow7jfi96Gjf5Jf8AcuXtKvBVSeAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPY6+2BmOq8yx/YGAX87GMvxee3ZUtzXOEh+NIQSm3G3G1pWxLhS47i2ZEd1K2JDDi23EqQpST9sPiL2EvxxGHk43oOqa/bVyNamtDPK9ZtYi07N5KVuSo0/2/9DTFr71i9OzuONnsDP4XkN34yzHppWqapTrSc1yKQysq+6xee+mSiDiM1bSnZy3zcfqe1bRpkqOKqVqGH4zwUsseIxCpj46O7XznyOL5Ivlrpjq06K0e9w3iVjVZsuuFlp3381bHz7NvNppnS33vnY3JDZVztHZ1sVlfWZJiwocdKmajHKKO8+7XY5QQ1LcOFT1pyVmhJqW4444t51bjzjjis2zDMMTmeKli8U63HqXJFckUuRL/ABelsumEwlnBWFYsKkF2t7Xzv/DUNZ8iN5aarLKm1VtTNMAqreeizs4GMXUmrjTrBuOmKiXIbYUROPpjISjr/wCVJf5CDC5lj8FBwwl2duEnVqLpVn5fwWExMlLEW4zklRVVRszkRvLctZW021dqZpn9VUT12dZAye6k2kaDYOR1RVy47b6jJt9UZakdf/Ko/wDKYYrMsfjYKGLuzuQi6pSdaMWMFhMNJyw9uMJNUdFQaE3zsbjfsqm2jrG2KtvqwlRZsOQlT1RkdFIeYdsccv4aVtnNp7I4yDWklIcbcbQ80tt5ttxLL8wxOWYqOLwrpcWtcklyxa5U/wDFaUj9xeEs42w7F9Vg+1Paudf4ajRbsH1i9OweONZsDAIXn935MzIpouqbVTrqcKyKOygrC6yiewmMidiMJbqXYK2Dbftu5DRJjKKUqLpOI4zwUcsWIw6rj5aO7fzXyuT5Yrkpplq0aaUuzw3iXjXZvOmFjp3185bFz7dnPormd2DsDMdqZlkGwM/v52T5flE9yyurmxcJb8mQsktttttoShiJCiR20Mx47SUMR2G0NtpShKUll+IxF7F35YjEScr03Vt/tq5EtSWhF4s2bWHtKzZSjbiqJL9v/U8cPE9QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACWfG3hNyE5UrlStW4kynF6+ScKyzrKJxUOHw5pIStUJuwWzJm201pC0m6zAjS3WErSbqUJUkzl8syPMc2q8JD+UnRzk6RT2V1t8yTpykfjc0weX6MRL+Y9UVpf8Ah1tE5vuQeTvs/wDcXSH4C6/+t5x+H+Uv7B/yGJ74FzX2ljtl9givinAfQu9kftD7kHk78xdH/wDGs4/QMPgXNfaWO2X2B8U4D6F3sj9ofcg8nfmLo/8A41nH6Bh8C5r7Sx2y+wPinAfQu9kftD7kHk78xdH/APGs4/QMPgXNfaWO2X2B8U4D6F3sj9ofcg8nfmLo/wD41nH6Bh8C5r7Sx2y+wPinAfQu9kftD7kHk77f/cXSH4D6f+t5x+H+Qv7B/wAph8C5r7Sx2y+wPinAfQu9kftEHOSvCPkFxS8jN2ljEN3F7SV7vrc4xWx9+4nKsTQ66mudmHHhWFXPdZYWtpqbFjKfQlRtd/YvtgszyLMcppLFwXdN0Uousa7ORp9KVeQlMDmmDzCqsSfeLXFqjpt2PqbIkiHJEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOxaB0plfIfbuFagw0kN3GX2hRnbF9px2FR1EVl2dd39glr6Zw6eqjOvqSRkp1SSbT9NaSPty/A3syxkMHY9Ob18iWtt8yWnwHNjMVbweGlibvoxXa+RdbNxWrdaYjp3XuJaywStRVYrhtNFpqqMXap5xEdPWRPnPJSjzVpZy1rkSnjLuekOrWftUN2wmFs4LDQwuHVLMI0XlfO9bfKzLMRfuYm9K/ddbknV/tsXIRcu/Ui4S47dW+P2u+6Buzo7KZU2KIeP5vaw0ToD640pEW0qcYm1diwh5tRJejvOsudOqFqT0MRVzibI7c3bniI70W06KTVVzqLT6U6HdDJM0nFTjZe61VaUvA3VdZ8z7zrgt8/aj6obG/Q4fHxTkP4iPqz+yfX5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8p9Ok9SPhNkV1UY/U74o37W9s4NPWMv43ndew7PsZLcSG09PscWi18JpyQ6lJuvutst9eq1JSRmPuHE2R3JxtwxEd+TSXmyWl6tLjRdeg/J5JmkIucrT3UqvTHUusk/tbWOI7m11l+r86rm7PF8zpZdNZMqQ0p+N46O6JaV63m3URranmoblQ3ySamJLKHC9qSEpi8LZxuGnhcQq2pxo/KudPSnyM4MPfuYa9G/adLkXVeToep8xh75AaUyrjxt7N9RZg0s7PEbd6NEsfBNiNf0UgilUORwEmtwih3dS81ISnuUplS1NL6OIWRYVmOBu5bjLmDvelCWvauSS5mtPgNTweKt4zDQxNv0ZLVsfKupnGxxHSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABqS9H/iYnVmrZHIPMa5TWebfr22cXjTYqW5WN62ZlKeiOsqWgn2pGcSmm5zntNKoLEI09qjcI9W4Nyj3TCPMby/5F5ebX5sP+7X0KPOULiPMPeMR7nbf8m29PPL/t1dNTuPqd8sS416GlUOL2hwtsbbasMYwxUcz83SU7aI7eXZclZJ7Y7lXXzkR4i+5LhTpbTiCUllzt7+Kc3/ACzL3btOmLvVjHmXzpdSdFztPkZy5Fl/v2L37irh7dHLnfIut6+Zc5j8GNGjgAAAAAAABsB9MLli3yR0JBx3JrEn9q6iYrsTy1MqV41jkFK1GJrFs1X4i1yH1WkKOqNMdWpS12MR5xXal5sj2ThbN/zPL1buv/l2aRlta+bLrWh86b5UZxnuX+5Ytzgv+Pcq1sT5Y9WtczWw4h6wHExG09WNchcPrvFz3T9YtvKm2CPxr3VqH5M2etSSIyck4VNlu2CD6oIoLswzNSktJHDxllHveE/MbK/5Fledz29b9V6eje5jq4czD3fEe53H/JuPRzT/AO7V00MtoykvoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABN7gDxWlcrN+0eM2cN9zWuInHyzaE1txyOg8eiPl5XHm5LS2nW52WT0Jho8JaXm45vvo/oDE7w9lLzbMI2pp+6w86b5tnTJ6NtKvkIvN8wWX4N3Iv+fLRHp29WvsXKbLbi4xvBsZsby7nVWMYlilNIsLKwlLYraaioqaGp6Q+6v+bjQoFfCYM+hESUIT0Iv5BtU52rFp3JtQswjVvUkl4kkZpGM7s1CKcrknRLW22YneZfJS05U76yzZ75TYmM97VBgFFNcJSqLDaglNVrK2kqW2zOtX1Oz5aUqWRS5biUqNCUdMOzrM55tmE8U6q1qgnyRWrret87NPyzAxy/CRsKjnrk9snr7NS5kRWESSAAAAAAAAASr4Y8lLXitv3EtnRzffxl1w8a2HUsEa1W+C3MiMVy200SkeLYVTkdmwhp7kEqZDaSo/DUsjlskzOeU5hDFKvdejNbYPX1rQ1zpchH5ngY5hhJWH6euL2SWrqep8zNr1Pb4znuK1t5Ty6zJ8PzGhi2VbMaJqfT3+PX0BEiM+lDqFMy6+yr5RH2rSaVtr6KL2mQ3GE7WItK5Bqdmcap60014U0ZhKM7NxwlWNyLo9qa8jMa3qA8WZHFXkDe4zWRn/ALOcwJ7MdaTlNOeCigsJbpSsbVIPvbcnYjYd0RZd5urjeXfWSfMJIYrxDlLynMZWor/jT86D5m/R6YvR0UfKaVk+PWYYNTl/Wj5sunb16+mq5CD4giVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADXh6SeoqPXPELFMtix4qsk29Y22Z5FZIjNImORYdnPx/HKhyWk1PSINZW1xvNNqMktPzZBpSRrUati4QwdvDZNC8ku9vNyk+XQ2kuhJV6WzOuIsTO9mMrb9C2lFLqq31t+BFkt3R0uS1M+hyOorL+jtY64lpTXUCLaVVlEc6eJFn105p+JMjOdPpNuIUhX8pCzXLcLsHbuxUrbWlNVT6U9ZCRlKElODamtTWhrrOYfu6cfPkVpv9mOE/kMcv5bl34ex6kfIe/vuM9rd9aXlH7unHz5Fab/ZjhP5DD8ty78PY9SPkHvuM9rd9aXlH7unHz5Fab/ZjhP5DD8ty78PY9SPkHvuM9rd9aXlKDfVm4QXtHnNHu/R+sULwG4x2HS5xRa7xhCGsYyankPMxr+VRUEJtEWpyCokx2TfbZNCJUNw31JU+13Z9xfkVy3fjjsBa/48o0koR9GS5aJamqKtNa060W7h7NYTtPC4q5/OUqxcnrT5KvlTr1PRqZ/vpL8I7y8zfId27w1iprBKfHpFHg1HsTFm1xMryC7eNiwvYlLfxlFKrcdq4jrJPOR/CckzUmytS2HOxwhkVy5fljsfa/48Y0gpx9JvW6PkitFaa3o1McQ5pCNqOFwtz+a5Vk4vUlyVXK34Fp1l+P7unHz5Fab/AGY4T+QxoP5bl34ex6kfIVH33Ge1u+tLyj93Tj58itN/sxwn8hh+W5d+HsepHyD33Ge1u+tLyj93Tj58itN/sxwn8hh+W5d+HsepHyD33Ge1u+tLynUKWjpcaqoFDjtRWUNHVx0RKympoEWrqq6I318OLAr4TTESHGb6/RbbQlCf5CHVC3C1BW7aUbaWhJUS6EtR4SnKcnObbm9belvrK2/Vp1Dj+xuIWW5dPYJOSagnVWaYvYIS2TzaJlrXY/kNY64ror3fY1Nkbq2yMu6REYV7ewiFZ4vwdvE5NO9L+rZalF9LSa6Gn2pE1w9iZ2MxjbXoXE4vsbT6muxsyGjHTRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2oenH/BHx6/udM/Oa+G38NfoWG+o/4mZjnX6pe+t8iKzvVF5qcmOPnI2lwbUOy3sQxaTqvGsifq2saxC2J24sMhy6FLmKlX1BaTSU5Gq2E9hOE2kkdSSRmZnV+Ks8zTLsyjYwd3ctO1F03YvS3JV0pvkROZDlmBxmCd3Ew3riuNVq1oSWxraVw/ekc6vnpK+o2tf0OFa+K8+9v+5D7JNfkGU+y/el9ofekc6vnpK+o2tf0OD4rz72/7kPsj8gyn2X70vtErOIPq5bYx7Z7VZyny9/NtY5M2zWvXrON0FfZ4BYm8go2QojYvSVz9xSdqlInxux2Qls0vMdy2zYflsm4wxdvF7ubT38LPRXdScHt81Kq2rXyrVRx+Y8O4edjewEd2/HTSraktmluj2Pqe1aWMQzLE8/x6tyzCMkpcsxm3YRJrb3H7GLaVkxpaSV1alxHHWvER3dFoMyW2rqlREZGQ06zfs4i2r1iUZ2pamnVPsKRctXLM3buxcZrWmqMZfmWJ4Bj1llmcZJS4njNQwuTZXuQWMWqrIbSEmr+dlzHGmvEX29EIIzW4r6KSMzIgvX7OHtu9flGFpa23ReEW7Vy9NW7UXKb1JKrM0/L71ctr5DtByt4sZdIwnWWMtSaxm9exygsLLYFgb5ePkTkXKKSxep6ZCWiRAj9jUhTZqekElbqWGMxznjDF3MXu5TPcwsNFd1Nze3zk6LYtfK9dFd8u4dw8LFcfHevy00q6RWzQ1V7fBtcU/vSOdXz0lfUbWv6HCJ+K8+9v+5D7JIfkGU+y/el9ofekc6vnpK+o2tf0OD4rz72/7kPsj8gyn2X70vtFj3pdc1OTHIPkbdYNt7Zb2X4tG1XkuRMVbuNYhUk1cV+Q4jCiTEyqGgq5pqbjWj6ew3DbUS+ppMyIysvCueZpmOZSsYy7v2lak6bsVpTiq6Enyshc+yzA4PBK7hobtx3Eq1b0NPa3sLMfUc/gj5C/3Oh/nNQi0cS/oWJ+ov4kQeS/qln63yMxXjEDTgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2oenH/BHx6/udM/Oa+G38NfoWG+o/wCJmY51+qXvrfIiij1rP4use/Uhhv51Z8KDxx+sR+4j/FMtfC/6dL72XiiVDCnFjAAAD2mI7I2Hr9x57A88zPCXZCiVIcxLKLvHFyFERJI31U86GbxkkiL6XX2D3s4nE4d1w9ydtv6MnHxNHlcsWb2i9CMlzpPxjL9kbE2C6y/nueZnmz0bp5d3Lcnu8jcjmSCaI2F3E6YpoybLt+j09nsC9icTiXXEXJza+lJvxti3Ys2dFmEYrmSXiPFjwPUAAALefRT/AIush/UhmX51YCLjwP8ArEvuJfxQK5xR+nR+9j4pF6/qOfwR8hf7nQ/zmoRfuJf0LE/UX8SKpkv6pZ+t8jMV4xA04AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANiHpV7Ix3POGWtKmolMKt9cqvMJymtS8lcmuso13YWsF15v2OIZtKWzjyG1dO0zWpJGZoV02bhPE28RklqEH59qsZLY6trtTTM3z+xOzmc5S9GdJJ7VSngaaOr744IcbOSeax9g7cxG3vsoi0EDGWJkLLslo2G6itl2M6LH8nT2UOMpaJNq+o1mk1q7iIz6EQ7MwyDLMzvrEYyDldUVGqlJaFV6k1tZz4TNsdgbXc4eSVtuupPS6bVzHFvuj+Dfy1yH9o+dfl0cPwfkPspevPynT8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIPuj+Dfy1yH9o+dfl0Pg/IfZS9eflHxFmv04+rHyD7o/g38tch/aPnX5dD4PyH2UvXn5R8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIPuj+Dfy1yH9o+dfl0Pg/IfZS9eflHxFmv04+rHyD7o/g38tch/aPnX5dD4PyH2UvXn5R8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIdq0NwS418a80lbA1Jh1rRZRMoJuMvTp2XZNete6LCZXT5bCIdvZy4iXHZNUwfidnekkmRGRKPr3ZfkGWZZfeIwcHG64uNXKT0Np6m+ZHNi82x2OtdziJJ2066ktKrsXOcm9VTZOOYFwz2TT3EpgrnZCqXCsVrDfbRKsLB+7rrWwfaaNXirj1VNWvvuqSk0kokIUZG4nrx8WYq1h8kuwm/Pu0jFbXVN9iTZ0ZBYnezOEorzYVk3s0NLtZjwGMmkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB3vj5yY3Fxhy9zMdRZS7SyZrbEe+pJjRWOMZRCjKdUxDyGkeWmPNTHN9zwHkm3KjeKs2HWzWozkMuzTG5Ve77Bz3W9aemMlsa5eZ61yNHJjMDhsfb7rExqlqeprof7J8pahC9c7cDcZpFho/W0qWSUk8/Du8ngx3FElJKU3FedsHGiNZGZEby+hGRdT6dTtkePMal51i03zOS8pAPhTDV0XZ06Efq+/R2n8h8A+s+Rf1cfvx7i/w9v1mfnwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7Efmmeuft9yM6iv0fraLLNKiZfl3mTzo7azQokKcisu17jqUrMjMidR1IjLqXXqX5LjzGNebYtJ87k/Ifq4Uw1dN2dOhFWfInk7uHlHmDWY7byT3o9AZdiY/QVrCq3FsXhPm0qTGoKYnXkRTlrYQp99xb0qQbaPFdWTaCTVMyzTG5re77GSq1qS0RiuZc/K9b5WT2CwOGwFrusPGietvS30v8AZIj+I47AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmTwx4dX/MrMcvw/H81p8JfxHGmMlfm3FXNtGZjL9pGqyistQpEdbTiVyCX3GZl0Lp0E3kmS3M6vTs27ituEa1abrppyEZmeZRyy3G5KDmpSpodOSp7Dmb6fmzeG8PEr+8va3O8Nyp6RV/FVDWza+JTZGylySzRWseY9IcZesa5pb8Vzu7XiZeSREbR93tnfDuKyWMLk5K5Yno3kmqPY+laV0M8sszixmTlCKcLsdNG61W1dD19RAYV4mD2OvMQe2DsDBsBjTWq2Rm+Y4ziDFi+yuQzXvZLdQqZqa8w2ttb7UVc0nFISpJqJPQjLr1HvhrLxOJt4dOjuTjGuzeaVfCeV64rNmd5qqhFunQqlh/Lb0xcx4m6lVti82pjOYQU5LS417nqsftK2X41yiatuV5mZMfZ8NjyR9ye3qfcXQxZM44WvZRg/fJ3ozjvJUUWtfWQ2XZ7bzDE+7xtuL3W6tp6uoq/FUJ4AAAAAAAAAAu3wv0UNiZnh2J5hH3phcFjK8aoslYhPYpeOvQ2b2ri2jcV11FilDjkdEokKURERmXUiF6s8DYi9ZheWIglOKdN18qrtKtd4otW7krbsybjJr0lyOmw9N9xZsn5+4P9UL78pD1+AsT+Ih6r8p5/Fdn2MvWXkPMZR6HW96+CuRiW29W5LMbLuOBbMZPjBukXf3IjymqzIWVPH0T2k54SDMz6qT09vld4Ex8Y1s3rUpbGpR8NJHpb4qwrdLtu5Fc1H5CrbevHTcXG3KmsQ3Dhk7FbGa1Jk0003YtjR5DBiv8Al3Z1Dd1z0musGUKUg3GyWUiOTqCebbUokiqZhluNyy73ONg4Sep61JbU1ofjXKkT+ExuGx1vvMNJSS18jXSv2T5DiQ4DqAAAAAAAAAAAAAAALAeD/ADMeaLmX2cTNa3XWFYZIr62xyOXSuZNPnXVkw9KarKqgZt6PxiixGUuSHXpbCEE82SPEM1kixZFw7ezvfmritWINJypvNt8iVVqWurWvlIfNc4t5ZuxcXO7LTStNG1uj8RzrmTw+zThxsauwrJb2sy2kySoO9xHLauM5Wpt4LEg4U9iwpX5Mx+ntK+WkicaJ+SyppxtaHlGpaW+bOsmv5LiVYuyU7clWMloqtTqtNGulrVp2e2WZlazKy7sE4zi6NPTTZp5U+oiGIYkgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwvQz/xt3R+qyB+dtYL3wH/e3/ul/EVXir+1tfePxGgTcut9c7/wbO9E5wuLPjX+MwZFrXsOx1XdAxbS7RrFssgtupd8pMiXmOyHYLykKbVIgrSZKSS0nomNw2GzCxcwF+jjKKquVVruyXOmnR7UVDDX72DuwxdrQ1LRsdKVXY9PSYn+QOjsx457ay/Umbx1ptMZsFIg2ZRnI0HJKGSZvUmS1RLU4S6+4gmlwiJazZd72Vn4jSyLDsxwF7LcZPB3/Si9D5JLkkuZrsdVrRp+DxdvG4eOItejJaVsfKn0f4n9eNf8Rmgf116r/PqiDK/1PD/f2/40Md/ZXvup/wALNMPrL/wbOfrTwb/QXw1DjT9Ef3sPlKPw1+p/7cvkMmYyE0I6RrzTu2Nty3IOsNbZxn8hl1DMr4Sxi4vWIK3CSaTsZdfEfiVrfaojNb620ER9TMiHVhsFjMY93CWrlx/5Yt06WtC6zwvYnD4ZVvzhDpaXZtOg5lxH5P6/rFXWYaD2vS0zTUh6TbO4VeSqyCzFShbztlPgRJUWsaShfUlSFtEskqNPXsV06b+TZrh4797D3lDbutpdLVadZ42sxwF6W7bvW3LZvKvVXX1EdhGHaAAAAAbb7zJ73CeBdvmeL2C6nJsR4i2GT47atNR5DlZe0OmnrWosG2JjMiI8uHYRG3CQ62ttRp6KSpPUj3S7duWMglftOl2GDck9jVuqenYzLoW4Xc2Vq4qwliEmtqc6MzAfebc6Pn/dfVPXn6IDK/inPvxEvVh9kvf5FlXsV2y8p0rWHq4cxsGyGLYZbmVVtbHfMNKssXyrGsaqykxiUkpCa+9xelp7atmOMkZNrWqSw2v6SmF+0j6cJxhnWHuKV6avW+WMoxXY4pNeFcx4Yjh3LbsKW4u3Pkabfam2n4Okvv5c4ZhPMDgpkeV10BM0p+qmt46xlyW4zVpV3ddiy8tqo7b8okogSrOvU7Vy+5SCJqU6lRp6dydBzixYznIZXYqtbPew2pqO8teqq819LKjl127luaxtydKXNyWxqtH001roRj7xzC8xzA5acSxPJcpVXkwc9OOUVpdnCKUbpRjllWRZRxikHHc7O/t7+xXTr0PpjVqxfv17mE5017qbp00NHuXbVqneyjGu1peM+tXau2Xb5ZHwKr17m9hnEpKHI+Hw8VvH8neacSlxDyKJuCqzNlTayV3+F29p9evT2j7jhMXO8sPC1cd9/N3XvdlKny8RYjb76U4K19Kqp26j2myuNW/9O1Ma/wBoaf2BhFDLlJgs3l9jdhFpvPOEamYTtqTS4EeZISlRtNOOJcdJCjQSiSrp74rK8xwUFcxdm5C23SrTpXZXUeVjHYPEy3LFyEp7E9PYcerKuzurCHU01dOtrWwfRFgVlZEkT7CdJdPtbjw4cVt2TJfcP2JQhKlGf4CHFCE7klC2nKb1JKrfQjqlKMIuU2lFcr0IktH4R8vZdSm6Y43biXBXEcmoJWDXbc9yO2lazNuodiot3HnEo6ttJYN13qXYlXcnrKLIc5cO8WGvbtK+i69mvqpU4XmuWqW479utfpKnbqI85Ji2T4bbP0OX45fYpeRSSqTTZJUWFHbR0r6khT9daR4sxol9p9DUguvQRt2zdsT7u/GULi5JJp9j0nZbuW7sd+1JShtTTXaj+2O4bl+YLlt4limSZQ5ASyucjHaK0u1w0SDcSwuWmsiyVR0vqaWSDX0JRpPp16GP21Yv369zCc6a91N06aH5cu2rVO9lGNdrS8Z+e/xjJMTmorcpx68xqxcjImNwL+pn001yI64603KRFsY8Z9cZx1haUrJPaakKIj6kY/Llq7ZluXoyhKlaNNOnWfsLlu4t63JSjtTT8R8MeZ9nv06n2mutTco1rn66hcErNNqnDciVWqrVMeaTYJnFXHFOCcU/EJ0leH4f0uvT2jp9zxm7v91d3KVruypTbWmo8PecNvbveQ3q0pvKtdmsm5wC5k7n4vzc3qcA1TO3Rh+THW2mQ4nXR7pqwqbeIl6JBuod1SU18uuTMiqWy82/Eebf8Js0GhSFd07w9nWOyt3IYey79mVG4qtU9SdUnSq0Oq06CLzjLcLjlCV64rVyNUm6Ua2UbVe05nzi5M7Y5ObVgZJtHCH9Zox7H2ajE8BkRLWM9T08mS9MkT5ci5iV820n201SjXJKOw0ptltCGy8MzVy59mmMzTFq5i7btKMaRhR6Ft0pNtvlotS2HvlWBw+Bw7hh595vOrlo0vZorSmwhgIMlCReHcROUGwKlu9xDQe1bqlfQy5FtmsNuY1dOafR4rT1dLnRYrFiwpvofewpxBEZdTLqXWTs5Nm2Ih3lnD3XDbutJ9FaV6jiuZlgLMty5etqWyq8NNRznYGoNraolphbN1tnOASHJDsaOWX4tdY+zNdZNXf7vk2cOPGsWjSg1JcYW42tH0kqNJkY5cTgsZg3TFWrlt1p50Wq9Dao+o9rOJw+IVbE4T6Gn201Hi6mntr+xjVFFV2N1bTVLRDq6mFJsbGWttpbziI0KG09JfUhltSzJCTMkpM/wEY8IQnckoW05TepJVfYj1lKMI702lFcr0I+9kOvs+xKIzYZXhGX4zAkSUw2JuQ41c0sR6Wtp15MVmTZQozLklTLC1kglGo0oUfToRj1u4bE2Y7163OEW6VlFpV60fEL9m6923OMnzNPxHkB4Hqe4stY7Kpqp29t9e5xVUbDTL79zZYnfwapliQttth52xlV7URtp9x5CUKNZEo1kRdTMh0SwmKhDvJ2ritrlcWl20oeMcRh5S3Izg57FJV7Knhxznse9qtVbQvK+LbUmt89uKqa2bsKzqsPyGwr5bRLU2bkWZErno0hsnEGnqhRl1Iy/kHTDB4u5FTt2rkoPU1GTT66HjLE4eEt2dyCkuRySfjPDOtOsOuMvNuMvMuLadadQpt1p1tRocbcbWRLQ4hZGRkZEZGXQxztNOj1nsmmqrUfzH4AAAAAAAAAAAAAAAC8L0M/8bd0fqsgfnbWC98B/wB7f+6X8RVeKv7W194/ESB538psk4meozqLYFeubOw+x4+YdRbIxeO6Xh5FiUnZ+1zkKaYcUlg7ujcPzle4ZoMn2zaNaWXniVI5/m1zKOJbOIjV2Hhoqcdsd+54VrXZqbOPKcvhmOS3LLorqvNxex7sPA9T7daRIr1C+LuM819AUG6dOOR8m2BimMnlOu7OlUTidgYRZtNWlhihpNKXH5jjRHJrW1kTrM4nI/ag5LvSS4jyq1nmXRxuDpLEQjvQa+fF6XH5Y7Ho5WcWT4+eV4x4bE+bZlKkk/myWivyPm08iMz/ABuQtvkdoRtxKkLRu3VqFoWk0rQtOd0RKSpJkRpUky6GR+0jGYZYqZnh09ff2/40XnG/2V77qf8ACzS/6y/8Gzn608G/0F8NP40/RH97D5Sj8Nfqf+3L5CiD0+uIv73W7Cx2+dnQtaYVAayfYc+vcJiXIhKlJjVWMwZRko4s/I5aVp8UkmpqKw+tJktKOtA4dyf84x3d3KrC21vTa8EVzy8SZbM4zH8uwu/CjvzdI18L6vHQ0DcqOamjvTyxjFNT4FryutspeqPPY5rLF3oWMUOO0JvOx27rJbFqJPfinZzGXTaSmM/KnONOrcWj+kVombZ5gOHLUMJYtp3d2sYRpFJbZPTSr1aG3pKfl+V4vObksRdm1brpk9Lb2Lo6aIipov1tMdyzNarF92ati6+oLucxBbzrHcmft66gdkqSyy/kNPZVkR9NSl9RG/LZlKVHb6qNhZEZlE4Djm1evq1jrSt25Om8pVS+smlo2uujYSGL4XuW7TuYW5vzS9FqjfQ6vTzeE/l6rPBPC7PX9nyj01j9dTZDjhMWezajHmo8WmynFJaiS7mkWDEQUVN5TvPNuy3WSQmXBU4851cZI3Pzi3ILE8O81wUVG7DTNLVKP0qbVrb5VV8g4fza7G8sBiW3bloi3rT+j0Pk2PpM3gzMuwAAAbW84hTbP08cvrq6JKsLCw4YZBCgQIUd2VNmzZWj5bEWJEisIcfkypL7iUNtoSpa1qIiIzMbjiIynw7cjFNyeCkklrb7p6EZfZajnEZSdIrEqr/1mPH7FNy/KTZv1Cyr8lDGfcMd7G76kvIaR73hfa2/WXlOk6x4d8mtuZFBxzENLbB8SZKbjP3V9jFzjeL1KVLaJ6TcZHdQodVBZjNvE4pBuKfWj+jbWoySfThclzXGXVas2Lml63FxiultJfLsR438zwGHg53LsNHImm30JaTVXut+j4m+n7k+Oz7WJI+z3j63q+mmTlLJq/yyTiLeE0hFHStmQ8VrfykOrabNCksmsyNCUmpOtY128o4enbbX8rD7ib5Zbu6u1lAwqnmGbxmk/PvbzpyKu8+xFXHoR/2i5K/7l1b/ALdngqfAP9TFfVt+OZPcWehY6Z/9Javv/dHGfhdZZRvDY5KLYm2Cr4MWHTQIltn2VV+HU9bWR6LH2X3oDUPHqk1JkPuSJDEZMqZ1ccNSmUFbsxx2V5JKWOxP9xdotCrOSikqLVoWt1aVXpeor+DwuOzNRwtn+jb26IqrrV877aLpKbec3qRai5e6GVqDX+DbRpsxlZ5iNxWNX9Tjz0KzahHZRnoUZdDklvPOzdentEy0UcydMzIlEroR0rPeJsHnOXvBYe3djfdyLVUtNK6NEm66dhZcqyTE5bi/eb07btKDTo3o7UtBZNxh426Z9OjjtZbg2w3U/aJAxor/AGZnZwkWFnWOzksoYwDC1OEb6IyJclqAhLJtKtJqvEd7UG22zZ8qyzBcN5a8Zi6e8KNbk6Va/wAsebk0ek9L5oTH43E5zjVh8PXuXKkY8n1n4+ZEG7n117lORSFY9x3rHcTbfNMVq5z+UxkUuKnuInpEiDjUmtrn3/Yo2ktykte1PiOfjCBnx9PvH3eGXc889Pgi0vCSseFI7nn3n3nNHR46+In4hnjV6r3HCfZs0yqy+gLm00SwsokIs91PmjMcpMXtmw3VefpJiX23vCJw4lhGWZLQ2+gyZsNMr4tyxySpNVVXTfty6uTl2Nc+qIrjuH8ao1rF6dHozj5fCnza6SfTxzzIOJnO5rWOePFUMZDe3+h89jKlPJrGb47XyuOWLPipYYktpzGsitR5TiE9IM11aDJLhkqjcOX7mUZ/7piPNUpO1PTorXzXz+ckk9je0tGc2oZjlPvFnS4pXI7aU0rsbqtqJ4euFpMp+Naq5A1cM1S6Ce/rLLZDMdtTh09uU2+xSTLkJ6PNxK22Ynsp7u5Hi2KSI0qV0XP8dYHes2sxgvOi9yXQ6uNeh1X+oieFsVu3LmDk9ElvLpWh9qp2FFHH/Vc3d+7NYangk53ZzmVNSznmVpbchUi5KZGQ2SVqSsi910MeTJ/FUZk17CM+hHQcuwjx+PtYRf8AuTSfR859Sqy2YzELC4W5iH8yLfXydroakPVN29B0Xw4vcNx426202gmBqHG4TCVKRExqRDUrKiSg+vSGjD4D0DqauqVzGz9o1bivGRwGSys29E7tLcVzP0v3U11ooWQ4Z4vMo3J6Y2/PfTyfvUfUV2ehZ/iTv3+4+If8+shW+Av7nEfUj42TPFf9Gz9aXiRHn1kv4zJv6ssE/wA1uI3jX9a/2o/KdvDP6b/uS+QmX6THBTFJuJQ+U24aGvvpVvJlfZNjd7CJ+tp62pmPQ5Od2EKc35eVZTbCK4mt70Kbjx2fNIUpbzSmZvhDIbTsrNsZFSlJ/wAtNaElo3mnyt+jsWnl0RnEOa3FceAwzaS9Nrlb+b0Ll59HJp9Vvv1r6DC88ucR0tq6HsGix+wk1sjOchySTUV19JiLNiQ7j1RAq5Mg6lMhCvBlvSCVJR0UTKEmSle2YccWrGIlZwVpXIRdN5yonTYkno529Ow88JwxO7ZVzE3NyclXdSq10uuvm5CSPFrm7o71D6TKNL7K1nApcpXSSLC119kcqNk+OZNSNvKiSLPGLhcOsmJsqkpDTjiDjxpcQ3ScjuuE2txuTynPcBxHbngsTaUbu7Vwl5yktVYui0rl0Jquius4swyvFZNOOJszbt10SWhp7GtOvpafKUY8ldQ3Xp5czsbsMSenS8boL/Gds6ylvSF+bn4qi5cVJxuzmKZNpyTElVsysk9e/wAeKaHXEkT/AGFQszwc+G87hOzV2oyjchzxrpi31OL2qjestWBxMc5yyUblO8acJdNNa8D6egv+9RPEqXkLwKzfKsWejW0SrxfHN64bZoJEplypo47OQTrGO5HU8j/WsCnWCUuIUaCJ3qauzqY0PiOzDMeH7l2004qCuxevQvOb64V7SoZNclg82hbuaG5O21zvRT1qGVTj3rF7c+8dU6sabWtrN86x6jsjQ4ppTFG/YMuZBMJxBktPkaNqQ99H6X837Pb0GS5bhXjsfZwnJO4k+ivndiqaBjb/ALrhLmI5YwbXTyeGhte3prmp25pbaumGlRG38o1vb0cOG0tpK6p+0rbGLith5YjLwo8a5rCWyaiJClRVJLr2q6bjj8NDGYK7gtFZ2muiqai+1aOgy/C3pYfE28T9GafTR6fB4zCazV2MizapWYMpdu/ORVtVpMOFOXYuSCiIglGUknSlKkqJvwzIld/s6dRgahNz7tJ77dKctdVDV3KKjvtrdpWvMbMtoZBF4P8AAeX5CVHZuNUaco8KxySpLi0Ttgzq2Di9TPU1E8J1/wA1l1iU1/wzb6N+IrubSRqTteLuLIuH3utb9myox550UU9G2Tq/kM0sQeaZsq+jcuuT+rWr8CojGCta3FqccUpa1qUta1qNS1rUZmpSlGZmpSjPqZn7TMYk3XS9Zpp/yAAAAAAAAAAAAAAAALwvQz/xt3R+qyB+dtYL3wH/AHt/7pfxFV4q/tbX3j8R431vv4rtff8Ab1in/UjbI8OOv1e3/wCNH+O4evC36fP75/wwOnekDzTPFb1vivsq57cayaY7I09YzT/mqXKZbr0mzwx2UtXRqvydxZvwEq6JRYktpPcuWgk9fBued1P8pxUv5cn/AC2+SXLHoetc9Vyo5+I8s34/mFhefFefzrkl1cvN0HsObnC8tU8xNCcjdd1TiNe7J5BauTnVbBiF5PD8/m51RvLsi8AukamzZwlvdVp7GbMnUd5FIjtJ989yT3TOsPmeGX/Hu4m3vpL0Zua09Ev4ulI88rzP3jLb2CvP+dCzPdb5Y7r0dMfF0Ml96y/8Gzn608G/0F8JjjT9Ef3sPlI7hr9T/wBuXyHHfQ0pYDGkNz5E2yhNpabVhUsyQSEEt2BQ4jUzq1lThJ8RSGJGSSlJIzMkm4ZkRGZ9eLgOEVgL9xek71OpRTXjZ08VSbxdqHzVbr2t18SKavUVyOzybmpyBl2kh19ddmqschJcdU4iNWY1WV9JXx2Eq6JZaKPBJXakiLvWo/aZmZ0viW7K7nmIc3qnuroSSRZclhG3ldlR5Y1622yFQgiUNm/Fd09p+ndrqDmDiLFjItBW+H3Dln/rzcqph1FziHWeTy2zlIXVQk+IS1kai69Vf+IbZlT974dtRvaVLDuLrpqqOOnqRmWPXu+cTdvQ43k1TbVPxmMgYmaaAAAG6HFc5rtYcTcc2VcRJs+o15x3p85tYNYlhVjNrsS1rHv50SvTKfjRlTZEavUhonHG2zcMu5SS6mW9W78cLlMcVNNwt4dSaWtqMKunPoMpnalfzB2I0Up3nFV1VcqFb334vHP5U7r/AP08F/TQVn47yz2V/sh9om/hXG+0tfvfZPIZL66OsI8OWeH6Jz24nl0KC3kuSY9jcNzqj6Tkt6rayp5nw1/gQhtzvIvxk9fZ43ePMIovucPclLk3nGK8G8ekOFMQ3/MuwUeZN+OhTzyz5y7q5e2kNGczIOP4NSS3JmO66xkn2MfgS1k40m1s35Djs7IL0ojnheYkK8NpJr8uywTrpLpmcZ9js5klfajh4uqhHUud8rfO9XIlVlky7KsLl0X3VZXnrk9fQti/Ztll/oR/2i5K/wC5dW/7dngs/AP9TFfVt+OZB8WehY6Z/wDSRa9Y6+tLXmXZ1c6Ut6BjGvMHqqaOal+FEiTYkq/lEhBqNBOPWVu8tSiIjUXaR/ikIrjS5OedOEn5sbUUuur8bO/hqEY5apLXKcm/F8hErhRR12R8t+OdTatG/Ad27hUt5jqRJfVV3Ma1YZdJSVEuO7IhIS4np9JszLqXXqIjIrcbucYaE9Me+i+x1+Qkc0nKGXXpR193Lwqhrl5e6a1LvnVDGvN07JttZYTLyuotHrSnynEMSfurGqi2b0ChkWOZ0t7XPxFuLOYbLTSJCnYaFEsm0OJXsGcYLCZhhPdsbdlasOadVKMatVoqyTVOXRp0dJneXYnEYTEd9hoKd1Rao03StNNItPm2aSsH7rT05P8A7R5l+23RX/x6Kt8J8N/irn/y2vsE7+f517CPqXPtExuJmlOIPDdWclrHkXHvWNgFj3vmHnm29XWkSK9jZ3HkZNW1j9RjHl5DyLt1LynDe70pQREnt9s1lGAyfJe891xO8rlKqdyDXm1pSijt09RG5hisxzLc7+zRwrTdhJa6a6t7Cg31PpGNwObOaZprfJ6q0j5BX4FmMe5xS7g2kSBkMSgrquQ5Dn1SltR5qJ1CUpZeK44l5019xdxITn3FTtwz2d/DTT3lCVYtOjSS0Ncvm16S25CpyyuNq/Frdco0apVVry9NDQLbLgc/PTwlSYrMSVf7L1QcxiOkvGRXbaw9Xj+UbNlKH2kR8/x02SNKUrXGV+IaV9h6HPd4h4dbVHO7Z7LkfJNdhUI72UZxR13Ldztg/wDtZU96JmknMh3DsLd1tEWmDrDH04pj5vxkkR5dmhPtWD8d5wjW3Ip8YgSGHkJIldtojqoi6pVUeBsC7mMu46a821HdX1pa+yKo/rFg4oxW5h4YWL03HV9C1dr8Ry/1j93Fsjk1D1rWyEvUGj8eRRK7O5SV5hlSIN7lLyFmrtNLMJushrSSSNL8NzqZ+wi5ONMd7zmiwsf6diNP9UqOXg3V0pnRw1he5wLvy9O7Kv8ApWheGr6zt3oWf4k79/uPiH/PrId/AX9ziPqR8bOTiv8Ao2frS8SI8+sl/GZN/Vlgn+a3Ebxr+tf7UflO3hn9N/3JfIaPNVYjjcPiBr7CHbuXhuLr4743QTMnhz6ytscdrJ2u4kSwyRi0tocunh2cBuQ5MKTKjux0Pp73G1I7knpeEs245Pbsbzha93it5NJxW5StWmqrXVqldaKViLk3mM7tFKffN000b3tVFpo9VFpKs/utPTk/+0eZftt0V/8AHoqnwnw3+Kuf/La+wT/5/nXsI+pc+0di0Fwk4K8cdsYtuLA+TlzMybEjtvJQMi3NpyVQzmbqksaGbGtYlTiVLOkxzh2a1pSiS10eQhRmfb0Pty7IsiyzFwxuHxUndhXQ7lujqmnWkU+XbrObGZrmuNw8sNesJQlTVCddDT0Vb2bCLnrY2+tM4xzQuXYdm2H5Pd0d3muOT2MZyeku5JVV3Ao7OM7OjVj8x5DESXRrJpaltpSqQsuizURoiuOZYa/aw96zOEpxlKL3ZJ6Gk9NOjwnfwvG/auXrdyMoxai9Ka0ptcvT4CZPpR7Nhbv4YlrbJlKspWtpmQ6qvI8lLJKm4jbRV2WP9Cb7kKhIorpda2akpWfkFdxK/HXNcJYpY7JPdrul2m7b54vSuqj3eojOILDwuZ99DQppTXTqfhVesrr9LLjjPoOdm2mr+IbzfGiPnFCUqYx0d+KrC7l4NSyUN9PCIrDHm7WQ26RqSaUpNHUlEoq3wplkrWf3lcWjC7y0/Sb3U+uO8yZz7GqeU2tx6b+6+pLefY6E9OP3Kj409TzlBq5yeh7HJmJVOGYklDpqbReaNffauoSEKcNC3pNnlORPqW2RfzcdKTJXTuFgy/Nu/wCKcVhG62txRj02ta7ZT7CJxmA7rIrGIp5+82+ierwKPaV9VXFbt9YV/XqqhfwfX7Jk786Gskwm8b93FsyvQgjNtb1ajMJDFR4aSX9LqhXVBLWK7DKf/wBn7vu/yFc77mpTfXVv0j/gTEsw/wDzfe1/muHd9dd3t3dJIX1xdzeUodRaCrJna/cTZu0MsjMzPDdTXVaZWO4gxLiN/TkQrGwlWjxeIZNk9XoUSVKSRtyHHeN3bdnL4PTJuctPItEarY3vPpj2cfCuGrO5jJLQlurpel9ip2mdAZsXQAAAAAAAAAAAAAAAAC8L0M/8bd0fqsgfnbWC98B/3t/7pfxFV4q/tbX3j8R431vv4rtff9vWKf8AUjbI8OOv1e3/AONH+O4evC36fP75/wAMCnmFNm1k2JY10uVX2FfKjzYE+FIdizYU2K6h+LLiSmFtvxpUZ9tK23EKStC0kZGRkKZGUoSUotqSdU1rT2osjSknGSrF60bA+AfKrHeaGimqXPk11ltHATo67Y9LLQylVxIq5UewxbYcGM0TSW0Wk2rbkKUylvydtGc7CQgmFK2bh7Nred4Dcv0eKt0U1tppjNdNK80k+YzfN8vnlmL3rVVYnVxeyuuPVWnOn0nPvWX/AINnP1p4N/oL4c3Gn6I/vYfKe/DX6n/ty+Qgb6JW+qbGc02NoDIZ0WC7sJuBmOCqkLaY89kWPRJMTIqRpxayVJnWFCpmUw0RexuufPr1MiFf4GzCFq9dy640ncpKHO0qSXS1RroZLcUYSU7cMZBN7nmy5k9T7arrR8T1ZeFWx6/cVxyK1xid1l2C5/Er5eaFj8J+1m4fltbCi1EmRPrYbTs1uhvYUNiQiWlLjTcvx0PG0RseL8cX5HiVjXmWFhKdi4lvUVXGSVNKWmjVHXbWtNFfrh7NLDwywV+Sjdg/Nroqnp17U+TZTnKvdD8ZNz8jcwrcR1nhdxYlLnph2mTya+fHxHF2EOITNn5Jf+WXCr2ILa+5TXVUl1XRtptx1SUKquX5VjsyvKzhoSabo5NPdjtbepU2a9iqT2Lx+FwVt3L8ktGhV0voX7I1Pcnc0wzg/wAE5mI1tk2mdVazj6b1szJUhNlkGVWGPOUaLfy3iEbrsVJyLeZ29EJS0si6dySPWM0v2MiyF2ovzo2u7htcmqV8cmUHA2rua5qrkloc9+WxKtafIjHIMWNKAAADajsX/wDnJnf/AGT5P/0KnDcMV/8Azdz/AMGX/wBTMwsfrUP/ACl/9hiuGHmngAABf16Ef9ouSv8AuXVv+3Z4NC4B/qYr6tvxzKhxZ6Fjpn/0kQfV9/jbzP8Aubr382owh+Mv1yf3cPESPDn6XH60vGQE1Nn03Ve0ddbLr0uuzMAzfF8wZjsu+CqX8PXUK1cgqX+L4U9qKplxKuqFIWaVEaTMhXsHiJYTF2sVHXbuRl00adOvUTGJsrEYedh6pwa7VTwGubmjqODzj4cOFqedAyKwsI+Obb1RKN1DUe4sYMKSpquJ155hqBYXGPXE6AkpBoTGlvkl7s7VmnYc7wcc9yamEalJqNy29rXJzNptadTekzrLMS8qzL/kJqKrCfMv8GkzIneau2VjOUJwnIdf5pS5i5Ifis4vZYzcxL+TIjGvx24lU9DTNlm2SDMzbQsu0uvXp7RjtzCYq1d7i5buRvV9FxdXTYqaeo0WGIsXLfewnB2tqap2l4XCf0lMczfVk3PeV1Tm+J3d/Nak4liMO3Ti9tRYvFjLNyxyuFLrJEmBZW8l01JivdjkaOwhTiUrdUhF7yPhC1fwjxGbxnC5J+bGu61HbJU0N7HqS2sq2acRTtYhWcvcZQitLpVN82nUtvKymPkBB1TVbm2JU6PesZeqqjIX6fDrC1sW7eVawKphivlXSbJpphEuDdWcZ+XFUSE/6q82Rl1IUnMY4OGOuQwFXhIypFt1qlobrypurXNQs2DeIlhYSxdFiHGrSVKV00pzLQ+cvL9D/efm6faPHa3mGp+ofb2hhjLz3eo62eqFQ5jCjNqaLwWINiVdISgnFEpya8skJ6LUq+cC4/et3ctm9MXvx6Hokup0fWyqcU4Sk7eNitD82XStK7VVdRabQ4XrbhPpve+cQmyaoTyja2+chQRJbcem3Lj9nCx+EajJS/Agw4dbDQZ9VLJJfhUZnbLdnC5Jg79+Oi3vXLsul6aLqSSICd2/meJtWn6e7C2urRXxtmKvM8sus9y/Kc4yN8pV/mGQ3OT3UhPidjtpe2EiznrbJ5151LRyZKuxKlqNKehdT6DD796eIvTxF3TcnJyfS3Vmn2rcbNqNqHoRikuhKhdx6Fn+JO/f7j4h/wA+sheuAv7nEfUj42Vbiv8Ao2frS8SI8+sl/GZN/Vlgn+a3Ebxr+tf7UflO3hn9N/3JfIXc8E9iYnyr4L4/hFrOTPl1mup+g9l1jjpvWEZELHHMTZfmdykPPlkGIvR5aXuvRxbziDWbjbnS9ZBibObZDGzN1atu1NcuhbunpjR9ZVs2s3MvzWVyKonPvIvrr4HoMuPIHjHuDjbmd7iexsQu4UGssX41TmKKqb8JZRXeOtuvuKS7Jtde+xYsklfg+L47CzNp1KHUqSWVZjlWNyy/K1iYSUU9EqPdkuRp6tOzWtT0l9wePw2OtK5Zkt5rTGulPlTWsm36f3pwZPyIyublO7cVzTDNK09ZLJqU+1KxS6zPIJTRNVsTHDtK5b8inriWuRKmttmz4jSGEqUpbhNznDvDN3Mbzu4+E4YGK54uT5KVWpa29XJtpFZxndvB21bwsoyxTfSorlrR63qS69hzT1HtHcdOOe18d1PoqRkky6p6B202Y5e5Cxfor7K6VDfxujb8GHDVBsYtQ0uXIQoj7mZ8c+vsMhzcTYDLMtxccJgN7vIxrOrrRum6uZ00vmaPfJMVjcbh5YjF03G6RoqVprfRXR1M7T6Mu5kYDyXt9ZWUtqNTbqxR6sjJc8VJOZjhpS8gx0jdI/AbJymdt2Ek4RG48+2lCiUZIc7eCcasPmcsLJ0hfhT/AFRq14N7rp18vE2G77Aq/H0rUv3ZaH4d00E2GI4PxmRyx5KmiO29mkKLsnJ0JjEg/A1trpmthVhONJKRJXYWkabJSgjPrIsF9v0lmNElZw+WLF5norNb8v8ARCiXam+llPVy7jvd8FyRe6v9Uq18S6jIrxk3XY615Was3Xf2aVvx9nRbXM7eWpMcnajLpsiqzqe8pjwGWVvUd7NWfQiaJR+1PZ1SMeyrHSw2b2sddenvayb2SdJPsbNFx+Fjfy+5hYLR3dIrnjpiu1I2Sx9J4w1yDn8iENM/FM/UlfqjvQnqaqqNlczKXpRn+J4z61x2u8uq1NspSZ9qUkNpWBtLMHmK/rOyrfVvOXk7DNXirnuawf8A7aub/XShkG587qXvjldtrMWJXmcfqr53BsP7DbVHLGMKUujiSoq2+prj3c2NIsiNSlK7ppl7CIkpxviHHe/5vevJ1txluR+rHR4XWXWaNk+F90y+3bfptbz6ZafAqLqIciFJMAAAAAAAAAAAAAAAACcPBnmZ+5fm2aZj9m/2k/F+Kx8Z93fGHwd7u8C3i2nnfOfC2Veb7vLeH4fhNdO7u7/Z0OeyHO/yS/cvd13u/DdpvbtNNa+jKpFZrln5najb39zdlWtN6uim1Hxub/LX98ra+P7P+z/7OPcWvKnA/cfxV8X+a915JlmQ+9fefw3i/geP8UeD4Hl19vgd/iH39qPPPc4/OsXHFd33W7bUKb29qlJ1rux+lqpyaz7yrLvyzDuxv79ZuVaU1pKlKvYQ3EKSRILjFyNzbi1t3HtrYUZTFQFHX5Ljb8lUWvy/FJjrKrjHJz6WZPlfNIZS5Hk+E6cSW008SF9nYqRyrM7+U4yOLsaaaJR5JR5U/kfI6PTqOPH4K1j8M8Pd0V0p8qfI/KuVaCcnMv1RP3uNNK1J9hv2fd2VUWTfEH2mfFfT3KiejyXur7Psa/8AyfPdfE8z9Dt/EV19k9nXFf5xgvc+47vz1Ku/vauSm5HxkVlmQ/l2J9473f8ANapu018+8/EVV01zbY7bVt9Q2U6mu6adFs6m2rJT0GxrbGC8iRDnQZkdbb8WVFfbStC0KJSVERkYqdu5O1NXLbcbkXVNaGmuVE/KMZxcJpODVGnqaL0dC+tvleO0ldj3ILWys9kwY6WHM/wqfAo7+xJrw0oeuMUlxWaGXYPJNRuPxJVeyZkRFHLqaivuX8c3bcFbzG13jS9OLSb6Y6q86aXMVTF8LQnNzwc9xP5stKXQ9fan0ncMw9c/V0aqeVgGj8+ubs0EmO1mF3j2M1Ta1K7TdekUr2Wy3kNIPu7EtNm4Zdvejr3l3XuPMIof8exclc/zOMV4N5+A5bfCmIcv512ChzJt+GhR3yW5U7e5WZqWYbRum3Y8An2MYxKpQ7DxXEoMg2jejUtc48+4b8s2UKkSn3HpUhSUktzsQ2hFEzTN8Zm9/vsVLzV6MV6MVzLxt6X2FpwOX4bL7Xd2FpetvW+n5FqI4CMO4AAALqcj9YH3/wAcr3j/APu8eU996TtNO/Fv2teP5b3lgj+FfEXuH7MmfG8HxvM+T86ju6eH45f0gvF3jPvctll/u1N6w7e93m2O7Wm510rzVKxDhvcxqxnfVpdU6bmyW9Su91Vp1FKwo5ZwAAAn7wR5y/uUWOyrD7LvtM+0OFi0Pwvjb4M9z/DT9894nifCOV+8PO+++nTtY8PwuvVXd9Gw5Bn35HK7Luu97xR+du03a/5ZVrXmIjNsq/NIwXebm4383erWnOthyDl9yP8A3rN3XO4/g34C9702PVHw58RfFHl/cNa1XeY97+4sd8Xzfh9/Z5VPh9encr8I485zP83xzxu53dYpUrvalTXSPiOjLcF+X4VYbe36NutKa+ar8ZGERR3lg/Df1FtvcQ40jFYtfE2PqyZLdsFYDfWcmsXTT5BqXLl4lftRrFyg94PGS5LKosqK651cJpDq3HFWPJeJcZk6dlJXcI3XcbpR/wCV6aV5VRrlpWpDZnkuHzF943uYhfOSrXpWitOTSn1FtEX1ytErgE5O07tuPaeEozhxX8OmQPHJHVDZWT17BkG0pz2GvynUk+3tM/oi3rjzL92srN7e/wBNO2q8RXnwri66Llvd/wBXk+Ur/wCWPq27a33jtpr3WuPp03gVw1Ig3smNcLuc4ySqfbNl2uk3bcOti0NZOaUfmGIbSnlpPwzkqaNaHK9m/GGLzC28NhY9zh5aG61m1sroST5UtPPQmMv4dw+Emr1997dWrRSKfRyvp7CpAU4sRILi5yBu+MG7sO3LS1asgPG12ce1xo7RVMzklJcVcursKiRZFAtSipWiUl5tw4z5NSGW19hmkhI5TmM8qx0MbBb27Wsa03k1RqtH06npRx4/Bxx+FlhpOm9SjpWjTrWlV4yeHMH1W7zlNpex03U6eLWEK+vKOfkdz9ozuXrtKWkkLtG6JFe3hOJJjeYu48OQp5bzySRGNHhGaycbsGc8XXM1wLwULPdRlJOT396qWmlN2PLR1q9VKETlvD8MBiliZXe8cU6LdpRvRX0nyV7dZUaKcWIndwV5sfuV5Ln+Q/Zn9pXxzR09N5P4z+DfdfuqfJneZ8x8KZV53zHmO3s7Gezp17j69Cn8gzz8juXLndd73kUvS3aUbf0ZV8BE5tlf5pCEO83Nxt+jvVr1o57zJ5Ofvbbmf278EfZ/42MUWOfD3xL8V9vuQpZec97e4Mb6+Z81/R+WLs7fxldfZz51mv5xjffO77vzFGm9vaq6a0jt2HtlmA/LsN7vv7/nN1pTXzVfjPN8auT+1uKufJzzV1s00qWwiBkuMWqHpeMZbVIWpxuDeV7T8da3Ijq1LjSWltSYy1K8NZIcdQ55ZXmuLynEe8YV69Eov0ZLY1zcj1rrdfvHYDD5hZ7q+tWprWnzfKtT7C8vD/XP1dJqmVZ/o/Pqa7JBpkNYfd49k1U4tKu0nWZF09iUtlDqC7uxTThtmfb3r6d53yzx5hHD/kWLkbn+VxkvDuvwFVucKYhS/k3YOHOmn4KnHd6et5fXdJYUXH/V7uHz50d6OznWe2EG2tKsnTNspNXiVay9UIsWmvptuSpsthLh9FMOJT9Ljx/HU523by61uSfzptNroitFeltczOnCcLRjNTxlzeS+bHQn0t6exLpKKMjyO+y++t8oyi3sL/Ir+wk2t1dWsl2ZY2djMdU9Jly5LylOOvOuKMzMz9n4C6EREKDdu3L1yV27JyuydW3rbLXCELUFbtpRhFUSWpI+1rfObjWOwcJ2Nj6zTd4LlVDllYXirZQ7LobONZNRnlt9VeWlnH8J0uhkptakmRkZkf3hcRPCYm3ibfp25qS6nWnXqPm/ajfszsT9GcWn1qha5yn9XO15H6OzHTFVpE9cfGnueNZZOjZ6sodbqq26gXMyuaq06+xrqVt7vTHcWckiJha0mlXd7LdmvGM8ywE8FCx3XeUTlv72hNNqm5HXSmvUV/AcOxwWKjiZXd/dro3aaaUrXeerXqKbxSiyl4kf1rcui6YY1y1pJBZzH1o1hbezT2es0lkzOMpo0ZueKlr4lGv3ikp3kfef43834/T6Yvi45vLBe7qx/PVrd39/527Te3dzbppvc1Sqvhe28T33e/yt/e3d3krXdrvbNFadRR2KGWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/9k=\\\\\\\",ze=\\\\\\\"rgba(24,24,27,.9)\\\\\\\",Ve={ColorPalette:{version:112,id:\\\\\\\"obsidian\\\\\\\",name:\\\\\\\"Obsidian\\\\\\\",colors:{node_slot:{CLIP:\\\\\\\"#FFD500\\\\\\\",CLIP_VISION:\\\\\\\"#A8DADC\\\\\\\",CLIP_VISION_OUTPUT:\\\\\\\"#ad7452\\\\\\\",CONDITIONING:\\\\\\\"#FFA931\\\\\\\",CONTROL_NET:\\\\\\\"#6EE7B7\\\\\\\",IMAGE:\\\\\\\"#64B5F6\\\\\\\",LATENT:\\\\\\\"#FF9CF9\\\\\\\",MASK:\\\\\\\"#81C784\\\\\\\",MODEL:\\\\\\\"#B39DDB\\\\\\\",STYLE_MODEL:\\\\\\\"#C2FFAE\\\\\\\",VAE:\\\\\\\"#FF6E6E\\\\\\\",TAESD:\\\\\\\"#DCC274\\\\\\\",PIPE_LINE:\\\\\\\"#7737AA\\\\\\\",PIPE_LINE_SDXL:\\\\\\\"#7737AA\\\\\\\",INT:\\\\\\\"#29699C\\\\\\\",X_Y:\\\\\\\"#38291f\\\\\\\",XYPLOT:\\\\\\\"#74DA5D\\\\\\\",LORA_STACK:\\\\\\\"#94dccd\\\\\\\",CONTROL_NET_STACK:\\\\\\\"#94dccd\\\\\\\",FAST_MODEL_LOADER:\\\\\\\"#ffd399\\\\\\\",SAMPLING:\\\\\\\"#60a5fa\\\\\\\"},litegraph_base:{BACKGROUND_IMAGE:\\\\\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQBJREFUeNrs1rEKwjAUhlETUkj3vP9rdmr1Ysammk2w5wdxuLgcMHyptfawuZX4pJSWZTnfnu/lnIe/jNNxHHGNn//HNbbv+4dr6V+11uF527arU7+u63qfa/bnmh8sWLBgwYJlqRf8MEptXPBXJXa37BSl3ixYsGDBMliwFLyCV/DeLIMFCxYsWLBMwSt4Be/NggXLYMGCBUvBK3iNruC9WbBgwYJlsGApeAWv4L1ZBgsWLFiwYJmCV/AK3psFC5bBggULloJX8BpdwXuzYMGCBctgwVLwCl7Be7MMFixYsGDBsu8FH1FaSmExVfAxBa/gvVmwYMGCZbBg/W4vAQYA5tRF9QYlv/QAAAAASUVORK5CYII=\\\\\\\",CLEAR_BACKGROUND_COLOR:\\\\\\\"#222222\\\\\\\",NODE_TITLE_COLOR:\\\\\\\"#d4d4d8\\\\\\\",NODE_SELECTED_TITLE_COLOR:\\\\\\\"#ffffff\\\\\\\",NODE_TEXT_SIZE:14,NODE_TEXT_COLOR:\\\\\\\"#ffffff\\\\\\\",NODE_SUBTEXT_SIZE:12,NODE_DEFAULT_COLOR:\\\\\\\"#09090b\\\\\\\",NODE_DEFAULT_BGCOLOR:\\\\\\\"rgba(24,24,27,.9)\\\\\\\",NODE_DEFAULT_BOXCOLOR:\\\\\\\"rgba(255,255,255,.75)\\\\\\\",NODE_DEFAULT_SHAPE:2,NODE_BOX_OUTLINE_COLOR:\\\\\\\"#60a5fa\\\\\\\",NODE_BYPASS_BGCOLOR:\\\\\\\"#FF00FF\\\\\\\",NODE_ERROR_COLOUR:\\\\\\\"#E00\\\\\\\",DEFAULT_SHADOW_COLOR:\\\\\\\"rgba(0,0,0,0)\\\\\\\",DEFAULT_GROUP_FONT:24,WIDGET_BGCOLOR:\\\\\\\"#242427\\\\\\\",WIDGET_OUTLINE_COLOR:\\\\\\\"#3f3f46\\\\\\\",WIDGET_TEXT_COLOR:\\\\\\\"#d4d4d8\\\\\\\",WIDGET_SECONDARY_TEXT_COLOR:\\\\\\\"#d4d4d8\\\\\\\",LINK_COLOR:\\\\\\\"#9A9\\\\\\\",EVENT_LINK_COLOR:\\\\\\\"#A86\\\\\\\",CONNECTING_LINK_COLOR:\\\\\\\"#AFA\\\\\\\"},comfy_base:{\\\\\\\"fg-color\\\\\\\":\\\\\\\"#fff\\\\\\\",\\\\\\\"bg-color\\\\\\\":\\\\\\\"#09090b\\\\\\\",\\\\\\\"comfy-menu-bg\\\\\\\":\\\\\\\"rgba(24,24,24,.9)\\\\\\\",\\\\\\\"comfy-input-bg\\\\\\\":\\\\\\\"#262626\\\\\\\",\\\\\\\"input-text\\\\\\\":\\\\\\\"#ddd\\\\\\\",\\\\\\\"descrip-text\\\\\\\":\\\\\\\"#999\\\\\\\",\\\\\\\"drag-text\\\\\\\":\\\\\\\"#ccc\\\\\\\",\\\\\\\"error-text\\\\\\\":\\\\\\\"#ff4444\\\\\\\",\\\\\\\"border-color\\\\\\\":\\\\\\\"#29292c\\\\\\\",\\\\\\\"tr-even-bg-color\\\\\\\":\\\\\\\"rgba(28,28,28,.9)\\\\\\\",\\\\\\\"tr-odd-bg-color\\\\\\\":\\\\\\\"rgba(19,19,19,.9)\\\\\\\"}}},NODE_COLORS:{red:{color:\\\\\\\"#af3535\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#A88\\\\\\\"},brown:{color:\\\\\\\"#38291f\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#b06634\\\\\\\"},green:{color:\\\\\\\"#346434\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#8A8\\\\\\\"},blue:{color:\\\\\\\"#1f1f48\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#88A\\\\\\\"},pale_blue:{color:\\\\\\\"#006691\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#3f789e\\\\\\\"},cyan:{color:\\\\\\\"#008181\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#8AA\\\\\\\"},purple:{color:\\\\\\\"#422342\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#a1309b\\\\\\\"},yellow:{color:\\\\\\\"#c09430\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#b58b2a\\\\\\\"},black:{color:\\\\\\\"rgba(0,0,0,.8)\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#444\\\\\\\"}}};let je=JSON.parse(JSON.stringify(Ve));delete je.NODE_COLORS,je.ColorPalette.id=\\\\\\\"obsidian_dark\\\\\\\",je.ColorPalette.name=\\\\\\\"Obsidian Dark\\\\\\\",je.ColorPalette.colors.litegraph_base.BACKGROUND_IMAGE=\\\\\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGlmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4xLWMwMDEgNzkuMTQ2Mjg5OSwgMjAyMy8wNi8yNS0yMDowMTo1NSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDI1LjEgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAyMy0xMS0xM1QwMDoxODowMiswMTowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmIyYzRhNjA5LWJmYTctYTg0MC1iOGFlLTk3MzE2ZjM1ZGIyNyIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjk0ZmNlZGU4LTE1MTctZmQ0MC04ZGU3LWYzOTgxM2E3ODk5ZiIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjIzMWIxMGIwLWI0ZmItMDI0ZS1iMTJlLTMwNTMwM2NkMDdjOCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjMxYjEwYjAtYjRmYi0wMjRlLWIxMmUtMzA1MzAzY2QwN2M4IiBzdEV2dDp3aGVuPSIyMDIzLTExLTEzVDAwOjE4OjAyKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoV2luZG93cykiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjQ4OWY1NzlmLTJkNjUtZWQ0Zi04OTg0LTA4NGE2MGE1ZTMzNSIgc3RFdnQ6d2hlbj0iMjAyMy0xMS0xNVQwMjowNDo1OSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDI1LjEgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpiMmM0YTYwOS1iZmE3LWE4NDAtYjhhZS05NzMxNmYzNWRiMjciIHN0RXZ0OndoZW49IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyNS4xIChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4OTe6GAAAAx0lEQVR42u3WMQoAIQxFwRzJys77X8vSLiRgITif7bYbgrwYc/mKXyBoY4VVBgsWLFiwYFmOlTv+9jfDOjHmr8u6eVkGCxYsWLBgmc5S8ApewXvgYRksWLBgKXidpeBdloL3wMOCBctgwVLwCl7BuyyDBQsWLFiwTGcpeAWv4D3wsAwWLFiwFLzOUvAuS8F74GHBgmWwYCl4Ba/gXZbBggULFixYprMUvIJX8B54WAYLFixYCl5nKXiXpeA98LBgwTJYsGC9tg1o8f4TTtqzNQAAAABJRU5ErkJggg==\\\\\\\",je.ColorPalette.colors.litegraph_base.CLEAR_BACKGROUND_COLOR=\\\\\\\"#09090b\\\\\\\";const Ue=\\\\\\\"#FFFFFF\\\\\\\",We={ColorPalette:{id:\\\\\\\"milk_white\\\\\\\",name:\\\\\\\"Milk White\\\\\\\",colors:{node_slot:{CLIP:\\\\\\\"#FFA726\\\\\\\",CLIP_VISION:\\\\\\\"#5C6BC0\\\\\\\",CLIP_VISION_OUTPUT:\\\\\\\"#8D6E63\\\\\\\",CONDITIONING:\\\\\\\"#EF5350\\\\\\\",CONTROL_NET:\\\\\\\"#66BB6A\\\\\\\",IMAGE:\\\\\\\"#42A5F5\\\\\\\",LATENT:\\\\\\\"#AB47BC\\\\\\\",MASK:\\\\\\\"#9CCC65\\\\\\\",MODEL:\\\\\\\"#7E57C2\\\\\\\",STYLE_MODEL:\\\\\\\"#D4E157\\\\\\\",VAE:\\\\\\\"#FF7043\\\\\\\",PIPE_LINE:\\\\\\\"#7737AA\\\\\\\",PIPE_LINE_SDXL:\\\\\\\"#7737AA\\\\\\\",INT:\\\\\\\"#29699C\\\\\\\",X_Y:\\\\\\\"#38291f\\\\\\\",XYPLOT:\\\\\\\"#74DA5D\\\\\\\",LORA_STACK:\\\\\\\"#94dccd\\\\\\\",CONTROL_NET_STACK:\\\\\\\"#94dccd\\\\\\\",FAST_MODEL_LOADER:\\\\\\\"#ffd399\\\\\\\",SAMPLING:\\\\\\\"#60a5fa\\\\\\\"},litegraph_base:{BACKGROUND_IMAGE:\\\\\\\"data:image/gif;base64,R0lGODlhZABkALMAAAAAAP///+vr6+rq6ujo6Ofn5+bm5uXl5d3d3f///wAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAkALAAAAABkAGQAAAT/UMhJq7046827HkcoHkYxjgZhnGG6si5LqnIM0/fL4qwwIMAg0CAsEovBIxKhRDaNy2GUOX0KfVFrssrNdpdaqTeKBX+dZ+jYvEaTf+y4W66mC8PUdrE879f9d2mBeoNLfH+IhYBbhIx2jkiHiomQlGKPl4uZe3CaeZifnnijgkESBqipqqusra6vsLGys62SlZO4t7qbuby7CLa+wqGWxL3Gv3jByMOkjc2lw8vOoNSi0czAncXW3Njdx9Pf48/Z4Kbbx+fQ5evZ4u3k1fKR6cn03vHlp7T9/v8A/8Gbp4+gwXoFryXMB2qgwoMMHyKEqA5fxX322FG8tzBcRnMW/zlulPbRncmQGidKjMjyYsOSKEF2FBlJQMCbOHP6c9iSZs+UnGYCdbnSo1CZI5F64kn0p1KnTH02nSoV3dGTV7FFHVqVq1dtWcMmVQZTbNGu72zqXMuW7danVL+6e4t1bEy6MeueBYLXrNO5Ze36jQtWsOG97wIj1vt3St/DjTEORss4nNq2mDP3e7w4r1bFkSET5hy6s2TRlD2/mSxXtSHQhCunXo26NevCpmvD/UU6tuullzULH76q92zdZG/Ltv1a+W+osI/nRmyc+fRi1Xdbh+68+0vv10dH3+77KD/i6IdnX669/frn5Zsjh4/2PXju8+8bzc9/6fj27LFnX11/+IUnXWl7BJfegm79FyB9JOl3oHgSklefgxAC+FmFGpqHIYcCfkhgfCohSKKJVo044YUMttggiBkmp6KFXw1oII24oYhjiDByaKOOHcp3Y5BD/njikSkO+eBREQAAOw==\\\\\\\",CLEAR_BACKGROUND_COLOR:\\\\\\\"lightgray\\\\\\\",NODE_TITLE_COLOR:\\\\\\\"#222\\\\\\\",NODE_SELECTED_TITLE_COLOR:\\\\\\\"#000\\\\\\\",NODE_TEXT_SIZE:14,NODE_TEXT_COLOR:\\\\\\\"#444\\\\\\\",NODE_SUBTEXT_SIZE:12,NODE_DEFAULT_COLOR:\\\\\\\"#F7F7F7\\\\\\\",NODE_DEFAULT_BGCOLOR:\\\\\\\"#F5F5F5\\\\\\\",NODE_DEFAULT_BOXCOLOR:\\\\\\\"#555\\\\\\\",NODE_DEFAULT_SHAPE:2,NODE_BOX_OUTLINE_COLOR:\\\\\\\"#000\\\\\\\",DEFAULT_SHADOW_COLOR:\\\\\\\"rgba(0,0,0,0.1)\\\\\\\",DEFAULT_GROUP_FONT:24,WIDGET_BGCOLOR:\\\\\\\"#D4D4D4\\\\\\\",WIDGET_OUTLINE_COLOR:\\\\\\\"#999\\\\\\\",WIDGET_TEXT_COLOR:\\\\\\\"#222\\\\\\\",WIDGET_SECONDARY_TEXT_COLOR:\\\\\\\"#555\\\\\\\",LINK_COLOR:\\\\\\\"#9A9\\\\\\\",EVENT_LINK_COLOR:\\\\\\\"#FF9800\\\\\\\",CONNECTING_LINK_COLOR:\\\\\\\"#222\\\\\\\"},comfy_base:{\\\\\\\"fg-color\\\\\\\":\\\\\\\"#222\\\\\\\",\\\\\\\"bg-color\\\\\\\":\\\\\\\"#DDD\\\\\\\",\\\\\\\"comfy-menu-bg\\\\\\\":\\\\\\\"#F5F5F5\\\\\\\",\\\\\\\"comfy-input-bg\\\\\\\":\\\\\\\"#C9C9C9\\\\\\\",\\\\\\\"input-text\\\\\\\":\\\\\\\"#222\\\\\\\",\\\\\\\"descrip-text\\\\\\\":\\\\\\\"#444\\\\\\\",\\\\\\\"drag-text\\\\\\\":\\\\\\\"#555\\\\\\\",\\\\\\\"error-text\\\\\\\":\\\\\\\"#F44336\\\\\\\",\\\\\\\"border-color\\\\\\\":\\\\\\\"#bbb\\\\\\\",\\\\\\\"tr-even-bg-color\\\\\\\":\\\\\\\"#f9f9f9\\\\\\\",\\\\\\\"tr-odd-bg-color\\\\\\\":\\\\\\\"#fff\\\\\\\",\\\\\\\"content-bg\\\\\\\":\\\\\\\"#e0e0e0\\\\\\\",\\\\\\\"content-fg\\\\\\\":\\\\\\\"#222\\\\\\\",\\\\\\\"content-hover-bg\\\\\\\":\\\\\\\"#adadad\\\\\\\",\\\\\\\"content-hover-fg\\\\\\\":\\\\\\\"#222\\\\\\\"}}},NODE_COLORS:{red:{color:\\\\\\\"#af3535\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#A88\\\\\\\"},brown:{color:\\\\\\\"#38291f\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#b06634\\\\\\\"},green:{color:\\\\\\\"#346434\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#8A8\\\\\\\"},blue:{color:\\\\\\\"#1f1f48\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#88A\\\\\\\"},pale_blue:{color:\\\\\\\"#006691\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#3f789e\\\\\\\"},cyan:{color:\\\\\\\"#008181\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#8AA\\\\\\\"},purple:{color:\\\\\\\"#422342\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#a1309b\\\\\\\"},yellow:{color:\\\\\\\"#c09430\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#b58b2a\\\\\\\"},black:{color:\\\\\\\"rgba(0,0,0,.8)\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#444\\\\\\\"}}},Fe={addGroup:{id:\\\\\\\"EasyUse.Hotkeys.AddGroup\\\\\\\",name:\\\\\\\"Enable Shift+g to add selected nodes to a group\\\\\\\",tooltip:\\\\\\\"After v1.2.39, Ctrl+g can be used instead of it\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},cleanVRAMUsed:{id:\\\\\\\"EasyUse.Hotkeys.cleanVRAMUsed\\\\\\\",name:\\\\\\\"Enable Shift+r to unload models and node cache\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},toggleSiteMap:{id:\\\\\\\"EasyUse.Hotkeys.toggleNodesMap\\\\\\\",name:\\\\\\\"Enable Shift+m to toggle nodes map\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},alignSelectedNodes:{id:\\\\\\\"EasyUse.Hotkeys.AlignSelectedNodes\\\\\\\",name:\\\\\\\"Enable Shift+Up/Down/Left/Right key and Shift+Ctrl+Alt+Left/Right to align selected nodes\\\\\\\",tooltip:\\\\\\\"Shift+Up/Down/Left/Right can align selected nodes, Shift+Ctrl+Alt+Left/Right can distribute horizontal/vertical nodes\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},NormalizeSelectedNodes:{id:\\\\\\\"EasyUse.Hotkeys.NormalizeSelectedNodes\\\\\\\",name:\\\\\\\"Enable Shift+Ctrl+Left/Right key to normalize selected nodes\\\\\\\",tooltip:\\\\\\\"Enable Shift+Ctrl+Left key to normalize width and Shift+Ctrl+Right key to normalize height\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},nodesTemplate:{id:\\\\\\\"EasyUse.Hotkeys.NodesTemplate\\\\\\\",name:\\\\\\\"Enable Alt+1~9 to paste nodes from nodes template\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},jumpNearestNodes:{id:\\\\\\\"EasyUse.Hotkeys.JumpNearestNodes\\\\\\\",name:\\\\\\\"Enable Up/Down/Left/Right key to jump nearest nodes\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},subDirectories:{id:\\\\\\\"EasyUse.ContextMenu.SubDirectories\\\\\\\",name:\\\\\\\"Enable contextMenu auto nest subdirectories\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},modelsThumbnails:{id:\\\\\\\"EasyUse.ContextMenu.ModelsThumbnails\\\\\\\",name:\\\\\\\"Enable model thumbnails display\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},rightMenuNodesSort:{id:\\\\\\\"EasyUse.ContextMenu.NodesSort\\\\\\\",name:\\\\\\\"Enable right-click menu to add node A~Z sorting\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},quickOptions:{id:\\\\\\\"EasyUse.ContextMenu.QuickOptions\\\\\\\",name:\\\\\\\"Use three shortcut buttons in the right-click menu\\\\\\\",type:\\\\\\\"combo\\\\\\\",options:[\\\\\\\"At the forefront\\\\\\\",\\\\\\\"At the end\\\\\\\",\\\\\\\"Disable\\\\\\\"],defaultValue:\\\\\\\"At the forefront\\\\\\\"},nodesRuntime:{id:\\\\\\\"EasyUse.Nodes.Runtime\\\\\\\",name:\\\\\\\"Enable nodes runtime display\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},chainGetSet:{id:\\\\\\\"EasyUse.Nodes.ChainGetSet\\\\\\\",name:\\\\\\\"Enable chain get node and set node with parent nodes\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},nodesMap:{id:\\\\\\\"EasyUse.NodesMap.Sorting\\\\\\\",name:\\\\\\\"Nodes map sorting mode\\\\\\\",tooltip:\\\\\\\"Default automatic sorting, if set to manual, groups can be dragged and dropped and the sorting results saved.\\\\\\\",type:\\\\\\\"combo\\\\\\\",options:[\\\\\\\"Auto sorting\\\\\\\",\\\\\\\"Manual drag\\\\u0026drop sorting\\\\\\\"],defaultValue:\\\\\\\"Auto sorting\\\\\\\"},displayNodesID:{id:\\\\\\\"EasyUse.NodesMap.DisplayNodeID\\\\\\\",name:\\\\\\\"Display Node ID\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},onlyDisplayGroup:{id:\\\\\\\"EasyUse.NodesMap.DisplayGroupOnly\\\\\\\",name:\\\\\\\"Display Groups Only\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},enableNodesMap:{id:\\\\\\\"EasyUse.NodesMap.Enable\\\\\\\",name:\\\\\\\"Enable Nodes Map\\\\\\\",tooltip:\\\\\\\"You need to refresh the page to update successfully\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},stylesSelectorDisplay:{id:\\\\\\\"EasyUse.StylesSelector.DisplayType\\\\\\\",name:\\\\\\\"Styles Selector Display Type\\\\\\\",tooltip:\\\\\\\"Styles Selector Display Type, if set to 'Grid', it will display as a Grid, if set to 'List', it will display as a list\\\\\\\",type:\\\\\\\"combo\\\\\\\",options:[\\\\\\\"Grid\\\\\\\",\\\\\\\"List\\\\\\\"],defaultValue:\\\\\\\"Grid\\\\\\\"},enableAddAnglePrompt:{id:\\\\\\\"EasyUse.MultiAngle.AddAnglePrompt\\\\\\\",name:\\\\\\\"Add angle prompt in easy multiAngle\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},enableHollowMode:{id:\\\\\\\"EasyUse.MultiAngle.HollowMode\\\\\\\",name:\\\\\\\"Enable hollow display mode in easy multiAngle\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},enableInvertRotate:{id:\\\\\\\"EasyUse.MultiAngle.InvertRotate\\\\\\\",name:\\\\\\\"Invert rotate mode in easy multiAngle\\\\\\\",tooltip:\\\\\\\"Enable invert rotate mode in easy multiAngle to match the rotation direction of most 3D software\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1}};function Xe(e=100,t){return new Promise((i=\\\\u003e{setTimeout((()=\\\\u003e{i(t)}),e)}))}function Ze(e,t){if(e=\\\\\\\"number\\\\\\\"==typeof e?e:e instanceof Date?e.getTime():parseInt(e),isNaN(e))return null;let i=new Date(e);(e=i.toString().split(/[\\\\\\\\s\\\\\\\\:]/g).slice(0,-2))[1]=[\\\\\\\"01\\\\\\\",\\\\\\\"02\\\\\\\",\\\\\\\"03\\\\\\\",\\\\\\\"04\\\\\\\",\\\\\\\"05\\\\\\\",\\\\\\\"06\\\\\\\",\\\\\\\"07\\\\\\\",\\\\\\\"08\\\\\\\",\\\\\\\"09\\\\\\\",\\\\\\\"10\\\\\\\",\\\\\\\"11\\\\\\\",\\\\\\\"12\\\\\\\"][i.getMonth()];let s={MM:1,dd:2,yyyy:3,hh:4,mm:5,ss:6};return t.replace(/([Mmdhs]|y{2})\\\\\\\\1/g,(t=\\\\u003ee[s[t]]))}const He=/Mac|iPod|iPhone|iPad/.test(navigator.platform),qe=e=\\\\u003eHe?e.replace(/Ctrl/g,\\\\\\\"\\u2318\\\\\\\").replace(/Alt/g,\\\\\\\"\\u2325\\\\\\\").replace(/Shift/g,\\\\\\\"\\u21e7\\\\\\\"):e;const Ye=new class{constructor(){v(this,\\\\\\\"element\\\\\\\",ve(`div.${Ce}toast`)),v(this,\\\\\\\"children\\\\\\\",HTMLElement),v(this,\\\\\\\"container\\\\\\\",document.body),v(this,\\\\\\\"info_icon\\\\\\\",`mdi mdi-information ${Ce}theme`),v(this,\\\\\\\"success_icon\\\\\\\",`mdi mdi-check-circle ${Ce}success`),v(this,\\\\\\\"error_icon\\\\\\\",`mdi mdi-close-circle ${Ce}error`),v(this,\\\\\\\"warn_icon\\\\\\\",`mdi mdi-alert-circle ${Ce}warning`),v(this,\\\\\\\"loading_icon\\\\\\\",\\\\\\\"mdi mdi-rotate-right loading\\\\\\\"),this.container.appendChild(this.element)}async show(e){let t=ve(`div.${Ce}toast-container`,[ve(\\\\\\\"div\\\\\\\",[ve(\\\\\\\"span\\\\\\\",[...e.icon?[ve(\\\\\\\"i\\\\\\\",{className:e.icon})]:[],ve(\\\\\\\"span\\\\\\\",e.content)])])]);t.setAttribute(\\\\\\\"toast-id\\\\\\\",e.id),this.element.replaceChildren(t),this.container.appendChild(this.element),await Xe(64),t.style.marginTop=`-${t.offsetHeight}px`,await Xe(64),t.classList.add(\\\\\\\"show\\\\\\\"),e.duration\\\\u0026\\\\u0026(await Xe(e.duration),this.hide(e.id))}async hide(e){const t=document.querySelector(`.${Ce}toast \\\\u003e [toast-id=\\\\\\\"${e}\\\\\\\"]`);(null==t?void 0:t.classList.contains(\\\\\\\"show\\\\\\\"))\\\\u0026\\\\u0026(t.classList.remove(\\\\\\\"show\\\\\\\"),await Xe(750)),t\\\\u0026\\\\u0026t.remove()}async clearAllMessages(){let e=document.querySelector(`.${Ce}container`);e\\\\u0026\\\\u0026(e.innerHTML=\\\\\\\"\\\\\\\")}async info(e,t=3e3,i=[]){this.show({id:\\\\\\\"toast-info\\\\\\\",icon:this.info_icon,content:e,duration:t})}async success(e,t=3e3){this.show({id:\\\\\\\"toast-success\\\\\\\",icon:this.success_icon,content:e,duration:t})}async error(e,t=3e3){this.show({id:\\\\\\\"toast-error\\\\\\\",icon:this.error_icon,content:e,duration:t})}async warn(e,t=3e3){this.show({id:\\\\\\\"toast-warn\\\\\\\",icon:this.warn_icon,content:e,duration:t})}async showLoading(e,t=0){this.show({id:\\\\\\\"toast-loading\\\\\\\",icon:this.loading_icon,content:e,duration:t})}async hideLoading(){this.hide(\\\\\\\"toast-loading\\\\\\\")}},Ke=S(\\\\\\\"groups\\\\\\\",{state:e=\\\\u003e({groups:[],nodes:[],isWatching:!1}),getters:{groups_nodes(){var e;let t=[],i=[];const s=e=\\\\u003e{var t;return{info:e,children:(null==(t=e.sub_groups)?void 0:t.length)\\\\u003e0?e.sub_groups.map(s):[],bounds:{x1:e.pos[0],y1:e.pos[1],x2:e.pos[0]+e.size[0],y2:e.pos[1]+e.size[1]}}};if(t=this.groups.map(s),(null==(e=this.nodes)?void 0:e.length)\\\\u003e0){const e=(e,t)=\\\\u003ee[0]\\\\u003e=t.x1\\\\u0026\\\\u0026e[0]\\\\u003c=t.x2\\\\u0026\\\\u0026e[1]\\\\u003e=t.y1\\\\u0026\\\\u0026e[1]\\\\u003c=t.y2,s=(t,i)=\\\\u003e{let s=null,n=-1;const a=(i,o)=\\\\u003e{i.bounds\\\\u0026\\\\u0026e(t.pos,i.bounds)\\\\u0026\\\\u0026(o\\\\u003en\\\\u0026\\\\u0026(n=o,s=i),i.children.forEach((e=\\\\u003ea(e,o+1))))};return i.forEach((e=\\\\u003ea(e,0))),s};this.nodes.forEach((e=\\\\u003e{const n=s(e,t);n?(n.children||(n.children=[]),n.children.push(e)):i.push({info:e})}))}return[...t,...i]}},actions:{setGroups(e){let t=R(e.map((e=\\\\u003enew Object({id:e.id,pos:Array.isArray(e.pos)?[...e.pos]:e.pos,size:Array.isArray(e.size)?[...e.size]:e.size,title:e.title,pinned:e.pinned,show_nodes:e.show_nodes}))));t.forEach((e=\\\\u003e{e.sub_groups=[],t.forEach((t=\\\\u003e{t!==e\\\\u0026\\\\u0026t.pos[0]\\\\u003ee.pos[0]\\\\u0026\\\\u0026t.pos[0]\\\\u003ce.pos[0]+e.size[0]\\\\u0026\\\\u0026t.pos[1]\\\\u003ee.pos[1]\\\\u0026\\\\u0026t.pos[1]\\\\u003ce.pos[1]+e.size[1]\\\\u0026\\\\u0026e.sub_groups.push(t)})),e.sub_groups.forEach((e=\\\\u003e{t=t.filter((t=\\\\u003et!==e))}))})),this.groups=\\\\\\\"Manual drag\\\\u0026drop sorting\\\\\\\"==xe(\\\\\\\"EasyUse.NodesMap.Sorting\\\\\\\")?R(t):R(t.sort(((e,t)=\\\\u003ee.pos[0]-t.pos[0])).sort(((e,t)=\\\\u003ee.pos[1]-t.pos[1])))},setNodes(e){this.nodes=R(e.map((e=\\\\u003enew Object({id:e.id,pos:e.pos,size:e.size,type:e.type,is_edit:e.is_edit,title:e.title,mode:e.mode}))))},update(){var e,t,i;(((null==(e=fe.extensionManager)?void 0:e.activeSidebarTab)||(null==(i=null==(t=fe.extensionManager.sidebarTab)?void 0:t.activeSidebarTab)?void 0:i.id))===Pe||this.isWatching)\\\\u0026\\\\u0026setTimeout((e=\\\\u003e{this.setGroups(fe.canvas.graph._groups),this.setNodes(fe.canvas.graph._nodes)}),1)},watchGraph(e=!1){e\\\\u0026\\\\u0026(this.isWatching=!0);let t=this;this.update();const i=fe.graph.onNodeAdded;fe.graph.onNodeAdded=function(e){t.update();const s=e.onRemoved;return e.onRemoved=function(){return t.update(),null==s?void 0:s.apply(this,arguments)},null==i?void 0:i.apply(this,arguments)},fe.canvas.onNodeMoved=function(e){t.update()};const s=LGraphCanvas.onNodeAlign;LGraphCanvas.onNodeAlign=function(e){return t.update(),null==s?void 0:s.apply(this,arguments)};const n=LGraphCanvas.onGroupAdd;LGraphCanvas.onGroupAdd=function(){return t.update(),null==n?void 0:n.apply(this,arguments)};const a=LGraphCanvas.onGroupAlign;LGraphCanvas.onGroupAlign=function(e){return t.update(),null==a?void 0:a.apply(this,arguments)};const o=LGraphCanvas.onMenuNodeRemove;LGraphCanvas.onMenuNodeRemove=function(e){return t.update(),null==o?void 0:o.apply(this,arguments)}},unwatchGraph(){this.isWatching=!1}}});const Je={BOX:1,ROUND:2,CIRCLE:3,CARD:4,ARROW:5,GRID:6,HollowCircle:7};function Be(e,t,i={}){const{shape:s=Je.BOX,round_radius:n=LiteGraph.ROUND_RADIUS,title_height:a=LiteGraph.NODE_TITLE_HEIGHT,title_mode:o=LiteGraph.NORMAL_TITLE,color:l=LiteGraph.NODE_BOX_OUTLINE_COLOR,padding:r=6,collapsed:d=!1,thickness:u=1}=i;o===LiteGraph.TRANSPARENT_TITLE\\\\u0026\\\\u0026(t[1]-=a,t[3]+=a);const{lineWidth:c,strokeStyle:A}=e;e.lineWidth=u,e.globalAlpha=.8,e.strokeStyle=l,e.beginPath();const[p,h,m,f]=t;switch(s){case Je.BOX:e.rect(p-r,h-r,m+2*r,f+2*r);break;case Je.ROUND:case Je.CARD:{const t=n+r,i=s===Je.CARD\\\\u0026\\\\u0026d||s===Je.ROUND?[t]:[t,2,t,2];e.roundRect(p-r,h-r,m+2*r,f+2*r,i);break}case Je.CIRCLE:{const t=p+m/2,i=h+f/2,s=Math.max(m,f)/2+r;e.arc(t,i,s,0,2*Math.PI);break}}e.stroke(),e.lineWidth=c,e.strokeStyle=A,e.globalAlpha=1}function Qe(e,t,i){var s,n;let a=0,o=null==(s=e[0])?void 0:s.naturalWidth,l=null==(n=e[0])?void 0:n.naturalHeight;const r=e.length;let d,u,c,A,p;for(let h=1;h\\\\u003c=r;h++){const e=Math.ceil(r/h),s=t/h,n=s/o,m=i/e/l,f=Math.min(n,m,1),g=o*f,v=l*f,y=g*v*r;y\\\\u003ea\\\\u0026\\\\u0026(a=y,d=g,u=v,c=h,A=e,p=h*((s-g)/2))}return{cellWidth:d,cellHeight:u,cols:c,rows:A,shiftX:p}}class $e{constructor(e,t){this.type=\\\\\\\"custom\\\\\\\",this.name=e,this.options=t,this.value=\\\\\\\"\\\\\\\"}draw(e,t,i,s,n){((e,t,i)=\\\\u003e{const s=fe.canvas,n=s.graph_mouse;!s.pointer_is_down\\\\u0026\\\\u0026t.pointerDown\\\\u0026\\\\u0026(n[0]===t.pointerDown.pos[0]\\\\u0026\\\\u0026n[1]===t.pointerDown.pos[1]\\\\u0026\\\\u0026(t.imageIndex=t.pointerDown.index),t.pointerDown=null);const a=t.imgs??[];let{imageIndex:o}=t;const l=a.length;1!==l||o||(t.imageIndex=o=0);const r=t.size[0],d=t.size[1]-i-15;if(null==o){let o,u,c,A,p;const h=(e=\\\\u003e{if(!e.length||1===e.length)return!0;const t=e[0].naturalWidth/e[0].naturalHeight;for(let i=1;i\\\\u003ce.length;i++)if(t!=e[i].naturalWidth/e[i].naturalHeight)return!1;return!0})(a);if(h)A=0,({cellWidth:o,cellHeight:u,cols:p,shiftX:c}=Qe(a,r,d));else{A=2;const e=a.reduce(((e,t)=\\\\u003eMath.max(e,t.naturalWidth,t.naturalHeight)),0),t=[];t.length=a.length,t[0]={naturalWidth:e,naturalHeight:e},({cellWidth:o,cellHeight:u,cols:p,shiftX:c}=Qe(t,r,d))}let m=!1;t.imageRects=[];for(let r=0;r\\\\u003cl;r++){const l=a[r],d=Math.floor(r/p),f=r%p,g=f*o+c,v=d*u+i;if(!m\\\\u0026\\\\u0026(m=LiteGraph.isInsideRectangle(n[0],n[1],g+t.pos[0],v+t.pos[1],o,u),m)){t.overIndex=r;let i=110;s.pointer_is_down\\\\u0026\\\\u0026(t.pointerDown\\\\u0026\\\\u0026t.pointerDown.index===r||(t.pointerDown={index:r,pos:[...n]}),i=125),e.filter=`contrast(${i}%) brightness(${i}%)`,s.canvas.style.cursor=\\\\\\\"pointer\\\\\\\"}t.imageRects.push([g,v,o,u]);const y=o/l.width,w=u/l.height,b=Math.min(y,w),_=b*l.height,S=d*u+i+(u-_)/2,x=b*l.width,L=f*o+c+(o-x)/2;e.drawImage(l,L+A,S+A,x-2*A,_-2*A),h||(e.strokeStyle=\\\\\\\"#8F8F8F\\\\\\\",e.lineWidth=1,e.strokeRect(g+A,v+A,o-2*A,u-2*A)),e.filter=\\\\\\\"none\\\\\\\"}return void(m||(t.pointerDown=null,t.overIndex=null))}const u=a[o];if(!u)return;let c=null==u?void 0:u.naturalWidth,A=null==u?void 0:u.naturalHeight;const p=r/c,h=d/A,m=Math.min(p,h,1);c*=m,A*=m;const f=(r-c)/2,g=(d-A)/2+i;e.drawImage(u,f,g,c,A),e.fillStyle=LiteGraph.NODE_TEXT_COLOR,e.textAlign=\\\\\\\"center\\\\\\\",e.font=\\\\\\\"10px sans-serif\\\\\\\";const v=`${Math.round(u.naturalWidth)} \\u00d7 ${Math.round(u.naturalHeight)}`,y=g+A+10;e.fillText(v,f+c/2,y);const w=(i,a,o,l)=\\\\u003e{let r=\\\\\\\"#333\\\\\\\",d=\\\\\\\"#fff\\\\\\\",u=!1;return LiteGraph.isInsideRectangle(n[0],n[1],i+t.pos[0],a+t.pos[1],o,o)\\\\u0026\\\\u0026(s.canvas.style.cursor=\\\\\\\"pointer\\\\\\\",s.pointer_is_down?(r=\\\\\\\"#1e90ff\\\\\\\",u=!0):(r=\\\\\\\"#eee\\\\\\\",d=\\\\\\\"#000\\\\\\\")),e.fillStyle=r,e.beginPath(),e.roundRect(i,a,o,o,[4]),e.fill(),e.fillStyle=d,e.font=\\\\\\\"12px Arial\\\\\\\",e.textAlign=\\\\\\\"center\\\\\\\",e.fillText(l,i+15,a+20),u};if(!(l\\\\u003e1))return;const b=(t.imageIndex??0)+1;if(w(r-40,d+i-40,30,`${b}/${l}`)){const e=b\\\\u003e=l?0:b;t.pointerDown\\\\u0026\\\\u0026t.pointerDown.index===e||(t.pointerDown={index:e,pos:[...n]})}w(r-40,i+10,30,\\\\\\\"x\\\\\\\")\\\\u0026\\\\u0026(t.pointerDown\\\\u0026\\\\u0026null===t.pointerDown.index||(t.pointerDown={index:null,pos:[...n]}))})(e,t,s)}computeLayoutSize(e,t){return{minHeight:220,minWidth:1}}}const et=()=\\\\u003e(e,t)=\\\\u003ee.addCustomWidget(new $e(t.name,{serialize:!1}));function tt(e,t,i,s,n,a){return e\\\\u003e=i\\\\u0026\\\\u0026e\\\\u003ci+n\\\\u0026\\\\u0026t\\\\u003e=s\\\\u0026\\\\u0026t\\\\u003cs+a}class it extends Float64Array{constructor(e=0,t=0,i=0,s=0){super(4),b(this,h),b(this,m),this[0]=e,this[1]=t,this[2]=i,this[3]=s}subarray(e=0,t){const i=e\\\\u003c\\\\u003c3,s=void 0===t?t:t-e;return new Float64Array(this.buffer,i,s)}get pos(){return w(this,h)??_(this,h,this.subarray(0,2)),w(this,h)}set pos(e){this[0]=e[0],this[1]=e[1]}get size(){return w(this,m)??_(this,m,this.subarray(2,4)),w(this,m)}set size(e){this[2]=e[0],this[3]=e[1]}get x(){return this[0]}set x(e){this[0]=e}get y(){return this[1]}set y(e){this[1]=e}get width(){return this[2]}set width(e){this[2]=e}get height(){return this[3]}set height(e){this[3]=e}get left(){return this[0]}set left(e){this[0]=e}get top(){return this[1]}set top(e){this[1]=e}get right(){return this[0]+this[2]}set right(e){this[0]=e-this[2]}get bottom(){return this[1]+this[3]}set bottom(e){this[1]=e-this[3]}get centreX(){return this[0]+.5*this[2]}get centreY(){return this[1]+.5*this[3]}updateTo(e){this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3]}containsXy(e,t){const{x:i,y:s,width:n,height:a}=this;return e\\\\u003e=i\\\\u0026\\\\u0026e\\\\u003ci+n\\\\u0026\\\\u0026t\\\\u003e=s\\\\u0026\\\\u0026t\\\\u003cs+a}containsPoint(e){return this.x\\\\u003c=e[0]\\\\u0026\\\\u0026this.y\\\\u003c=e[1]\\\\u0026\\\\u0026this.x+this.width\\\\u003e=e[0]\\\\u0026\\\\u0026this.y+this.height\\\\u003e=e[1]}containsRect(e){return this.x\\\\u003c=e[0]\\\\u0026\\\\u0026this.y\\\\u003c=e[1]\\\\u0026\\\\u0026this.x+this.width\\\\u003e=e[0]+e[2]\\\\u0026\\\\u0026this.y+this.height\\\\u003e=e[1]+e[3]}overlaps(e){return this.x\\\\u003ce[0]+e[2]\\\\u0026\\\\u0026this.y\\\\u003ce[1]+e[3]\\\\u0026\\\\u0026this.x+this.width\\\\u003ee[0]\\\\u0026\\\\u0026this.y+this.height\\\\u003ee[1]}findContainingCorner(e,t,i){return this.isInTopLeftCorner(e,t,i)?\\\\\\\"NW\\\\\\\":this.isInTopRightCorner(e,t,i)?\\\\\\\"NE\\\\\\\":this.isInBottomLeftCorner(e,t,i)?\\\\\\\"SW\\\\\\\":this.isInBottomRightCorner(e,t,i)?\\\\\\\"SE\\\\\\\":void 0}isInTopLeftCorner(e,t,i){return tt(e,t,this.x,this.y,i,i)}isInTopRightCorner(e,t,i){return tt(e,t,this.right-i,this.y,i,i)}isInBottomLeftCorner(e,t,i){return tt(e,t,this.x,this.bottom-i,i,i)}isInBottomRightCorner(e,t,i){return tt(e,t,this.right-i,this.bottom-i,i,i)}isInTopEdge(e,t,i){return tt(e,t,this.x,this.y,this.width,i)}isInBottomEdge(e,t,i){return tt(e,t,this.x,this.bottom-i,this.width,i)}isInLeftEdge(e,t,i){return tt(e,t,this.x,this.y,i,this.height)}isInRightEdge(e,t,i){return tt(e,t,this.right-i,this.y,i,this.height)}getCentre(){return[this.centreX,this.centreY]}getArea(){return this.width*this.height}getPerimeter(){return 2*(this.width+this.height)}getTopLeft(){return[this[0],this[1]]}getBottomRight(){return[this.right,this.bottom]}getSize(){return[this[2],this[3]]}getOffsetTo([e,t]){return[e-this[0],t-this[1]]}getOffsetFrom([e,t]){return[this[0]-e,this[1]-t]}resizeTopLeft(e,t){this[2]+=this[0]-e,this[3]+=this[1]-t,this[0]=e,this[1]=t}resizeBottomLeft(e,t){this[2]+=this[0]-e,this[3]=t-this[1],this[0]=e}resizeTopRight(e,t){this[2]=e-this[0],this[3]+=this[1]-t,this[1]=t}resizeBottomRight(e,t){this[2]=e-this[0],this[3]=t-this[1]}setWidthRightAnchored(e){const t=this[2];this[2]=e,this[0]+=t-e}setHeightBottomAnchored(e){const t=this[3];this[3]=e,this[1]+=t-e}toArray(){return this.export()}export(){return[this[0],this[1],this[2],this[3]]}_drawDebug(e,t=\\\\\\\"red\\\\\\\"){const{strokeStyle:i,lineWidth:s}=e;try{e.strokeStyle=t,e.lineWidth=.5,e.beginPath(),e.strokeRect(this[0],this[1],this[2],this[3])}finally{e.strokeStyle=i,e.lineWidth=s}}}h=new WeakMap,m=new WeakMap;const st=(e,...t)=\\\\u003efunction(...i){try{t.forEach((e=\\\\u003enull==e?void 0:e.call(this,...i)))}catch(s){null==e||e.call(this,...i,s)}};let nt=null;const at=new Image;at.src=\\\\\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-width='1.3' d='M9.18613 3.09999H6.81377M9.18613 12.9H7.55288c-3.08678 0-5.35171-2.99581-4.60305-6.08843l.3054-1.26158M14.7486 2.1721l-.5931 2.45c-.132.54533-.6065.92789-1.1508.92789h-2.2993c-.77173 0-1.33797-.74895-1.1508-1.5221l.5931-2.45c.132-.54533.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.74896 1.1508 1.52211Zm-8.3033 0-.59309 2.45c-.13201.54533-.60646.92789-1.15076.92789H2.4021c-.7717 0-1.33793-.74895-1.15077-1.5221l.59309-2.45c.13201-.54533.60647-.9279 1.15077-.9279h2.29935c.77169 0 1.33792.74896 1.15076 1.52211Zm8.3033 9.8-.5931 2.45c-.132.5453-.6065.9279-1.1508.9279h-2.2993c-.77173 0-1.33797-.749-1.1508-1.5221l.5931-2.45c.132-.5453.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.7489 1.1508 1.5221Z'/%3E%3C/svg%3E %3C/svg%3E\\\\\\\";const ot=[\\\\\\\"custom_obsidian\\\\\\\",\\\\\\\"custom_obsidian_dark\\\\\\\",\\\\\\\"custom_milk_white\\\\\\\",\\\\\\\"obsidian_dark\\\\\\\",\\\\\\\"obsidian\\\\\\\",\\\\\\\"milk_white\\\\\\\"],lt={\\\\\\\"easy positive\\\\\\\":\\\\\\\"green\\\\\\\",\\\\\\\"easy negative\\\\\\\":\\\\\\\"red\\\\\\\",\\\\\\\"easy promptList\\\\\\\":\\\\\\\"cyan\\\\\\\",\\\\\\\"easy promptLine\\\\\\\":\\\\\\\"cyan\\\\\\\",\\\\\\\"easy promptConcat\\\\\\\":\\\\\\\"cyan\\\\\\\",\\\\\\\"easy promptReplace\\\\\\\":\\\\\\\"cyan\\\\\\\",\\\\\\\"easy forLoopStart\\\\\\\":\\\\\\\"blue\\\\\\\",\\\\\\\"easy forLoopEnd\\\\\\\":\\\\\\\"blue\\\\\\\",\\\\\\\"easy whileLoopStart\\\\\\\":\\\\\\\"blue\\\\\\\",\\\\\\\"easy whileLoopEnd\\\\\\\":\\\\\\\"blue\\\\\\\",\\\\\\\"easy loadImagesForLoop\\\\\\\":\\\\\\\"blue\\\\\\\"};let rt=LGraphCanvas.node_colors,dt=null,ut=null,ct=null,At=new it;for(let Aa in Fe)pt=Fe[Aa],fe.ui.settings.settingsLookup[pt.id]||fe.ui.settings.addSetting(pt);var pt;function ht(e,t,i,s,n,a){var o,l,r;t.strokeStyle=s,t.fillStyle=n;const d=LiteGraph.NODE_TITLE_HEIGHT,{low_quality:u}=this,{collapsed:c}=e.flags,A=e.renderingShape,{title_mode:p}=e.constructor,h=p!=LiteGraph.TRANSPARENT_TITLE\\\\u0026\\\\u0026p!=LiteGraph.NO_TITLE,m=At;m.set(e.boundingRect),m[0]-=e.pos[0],m[1]-=e.pos[1];let f=t.globalAlpha;if(t.lineWidth=1,t.beginPath(),A==LiteGraph.BOX_SHAPE||u?t.fillRect(m[0],m[1],m[2],m[3]):A==LiteGraph.ROUND_SHAPE||A==LiteGraph.CARD_SHAPE?t.roundRect(m[0],m[1],m[2],m[3],A==LiteGraph.CARD_SHAPE?[this.round_radius,this.round_radius,0,0]:[this.round_radius]):A==LiteGraph.CIRCLE_SHAPE\\\\u0026\\\\u0026t.arc(.5*i[0],.5*i[1],.5*i[0],0,2*Math.PI),t.strokeStyle=LiteGraph.WIDGET_OUTLINE_COLOR,t.stroke(),t.strokeStyle=s,t.fill(),e.has_errors\\\\u0026\\\\u0026!LiteGraph.use_legacy_node_error_indicator\\\\u0026\\\\u0026Be(t,m,{shape:A,title_mode:p,title_height:d,padding:12,color:LiteGraph.NODE_ERROR_COLOUR,collapsed:c,thickness:10}),!c\\\\u0026\\\\u0026h\\\\u0026\\\\u0026(t.shadowColor=\\\\\\\"transparent\\\\\\\",t.fillStyle=\\\\\\\"rgba(0,0,0,0.2)\\\\\\\",t.fillRect(0,-1,m[2],2)),t.shadowColor=\\\\\\\"transparent\\\\\\\",e.onDrawBackground\\\\u0026\\\\u0026e.onDrawBackground(t,this,this.canvas,this.graph_mouse),h||p==LiteGraph.TRANSPARENT_TITLE){const s=\\\\\\\"dark\\\\\\\"==function(e){let t=e.replace(\\\\\\\"#\\\\\\\",\\\\\\\"\\\\\\\");return i=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16),.299*i+.587*s+.114*n\\\\u003e127.5?\\\\\\\"light\\\\\\\":\\\\\\\"dark\\\\\\\";var i,s,n}((null==e?void 0:e.color)||\\\\\\\"#ffffff\\\\\\\");e.drawTitleBarBackground(t,{scale:this.ds.scale,low_quality:u});let n=!1;LiteGraph.node_box_coloured_by_mode\\\\u0026\\\\u0026LiteGraph.NODE_MODES_COLORS[e.mode]\\\\u0026\\\\u0026(n=LiteGraph.NODE_MODES_COLORS[e.mode]),LiteGraph.node_box_coloured_when_on\\\\u0026\\\\u0026(n=e.action_triggered?\\\\\\\"#FFF\\\\\\\":e.execute_triggered?\\\\\\\"#AAA\\\\\\\":n);let l=10;if(e.onDrawTitleBox)e.onDrawTitleBox(t,d,i,this.ds.scale);else if([LiteGraph.ROUND_SHAPE,LiteGraph.CIRCLE_SHAPE,LiteGraph.CARD_SHAPE].includes(A))if(u\\\\u0026\\\\u0026(t.fillStyle=\\\\\\\"black\\\\\\\",t.beginPath(),t.arc(.5*d,-.5*d,.5*l+1,0,2*Math.PI),t.fill()),e.subgraph\\\\u0026\\\\u0026!e.skip_subgraph_button)t.save(),t.fillStyle=\\\\\\\"#3b82f6\\\\\\\",t.beginPath(),t.roundRect(6,-24.5,22,20,5),t.fill(),u||(t.translate(25,23),t.scale(-1.5,1.5),t.drawImage(at,0,-d,l,l)),t.restore();else{const i=s?\\\\\\\"#ffffff\\\\\\\":LiteGraph.NODE_SELECTED_TITLE_COLOR,o=s?\\\\\\\"#eeeeee\\\\\\\":e.boxcolor||n||LiteGraph.NODE_DEFAULT_BOXCOLOR;t.fillStyle=a?i:o,t.beginPath(),t.fillRect(10,0-1.05*l-1,1.1*l,.125*l),t.fillRect(10,0-1.45*l-1,1.1*l,.125*l),t.fillRect(10,0-1.85*l-1,1.1*l,.125*l)}else u\\\\u0026\\\\u0026(t.fillStyle=\\\\\\\"black\\\\\\\",t.fillRect(.5*(d-l)-1,-.5*(d+l)-1,l+2,l+2)),t.fillStyle=e.renderingBoxColor,t.fillRect(.5*(d-l),-.5*(d+l),l,l);if(t.globalAlpha=f,e.onDrawTitleText\\\\u0026\\\\u0026e.onDrawTitleText(t,d,i,this.ds.scale,this.title_text_font,a),!u){t.font=this.title_text_font;const i=e.getTitle()??`\\u274c ${e.type}`,n=String(i)+(e.pinned?\\\\\\\"\\ud83d\\udccc\\\\\\\":\\\\\\\"\\\\\\\");n\\\\u0026\\\\u0026(t.fillStyle=a?s?\\\\\\\"#ffffff\\\\\\\":LiteGraph.NODE_SELECTED_TITLE_COLOR:s?\\\\\\\"#ffffff\\\\\\\":e.constructor.title_text_color||this.node_title_color,e.flags.collapsed?(t.textAlign=\\\\\\\"left\\\\\\\",t.measureText(n),t.fillText(n.substr(0,20),d,LiteGraph.NODE_TITLE_TEXT_Y-d),t.textAlign=\\\\\\\"left\\\\\\\"):(t.textAlign=\\\\\\\"left\\\\\\\",t.fillText(n,d,LiteGraph.NODE_TITLE_TEXT_Y-d)))}null==(o=e.onDrawTitle)||o.call(e,t)}if(null==e?void 0:e.strokeStyles){for(const i of Object.values(e.strokeStyles)){const s=i.call(e);s\\\\u0026\\\\u0026Be(t,m,{shape:A,title_height:d,title_mode:p,collapsed:c,...s})}null==e||e.drawProgressBar(t)}else if(a){null==(l=e.onBounding)||l.call(e,m),p==LiteGraph.TRANSPARENT_TITLE\\\\u0026\\\\u0026(m[1]-=d,m[3]+=d),t.lineWidth=2,t.globalAlpha=.8,t.beginPath();let n=0,a=0,o=1;A==LiteGraph.BOX_SHAPE?t.rect(n+m[0],n+m[1],a+m[2],a+m[3]):A==LiteGraph.ROUND_SHAPE||A==LiteGraph.CARD_SHAPE\\\\u0026\\\\u0026e.flags.collapsed?t.roundRect(n+m[0],n+m[1],a+m[2],a+m[3],[this.round_radius*o]):A==LiteGraph.CARD_SHAPE?t.roundRect(n+m[0],n+m[1],a+m[2],a+m[3],[this.round_radius*o,o,this.round_radius*o,o]):A==LiteGraph.CIRCLE_SHAPE\\\\u0026\\\\u0026t.arc(.5*i[0],.5*i[1],.5*i[0]+6,0,2*Math.PI),t.strokeStyle=LiteGraph.NODE_BOX_OUTLINE_COLOR,t.stroke(),t.strokeStyle=s,t.globalAlpha=1}null==(r=e.drawProgressBar)||r.call(e,t),e.execute_triggered\\\\u003e0\\\\u0026\\\\u0026e.execute_triggered--,e.action_triggered\\\\u003e0\\\\u0026\\\\u0026e.action_triggered--}function mt(e,t,i,s,n){return new LiteGraph.ContextMenu(LiteGraph.NODE_MODES,{event:i,callback:function(e){if(!n)return;var t=Object.values(LiteGraph.NODE_MODES).indexOf(e),i=function(e){t\\\\u003e=0\\\\u0026\\\\u0026LiteGraph.NODE_MODES[t]?e.changeMode(t):e.changeMode(LiteGraph.ALWAYS),nt||(nt=Ke()),nt.update()},s=LGraphCanvas.active_canvas;if(!s.selected_nodes||Object.keys(s.selected_nodes).length\\\\u003c=1)i(n);else for(var a in s.selected_nodes)i(s.selected_nodes[a])},parentMenu:s,node:n}),!1}function ft(e,t,i,s,n){if(!n)throw\\\\\\\"no node for color\\\\\\\";var a=[];for(var o in a.push({value:null,content:\\\\\\\"\\\\u003cspan style='display: block; padding-left: 4px;'\\\\u003eNo color\\\\u003c/span\\\\u003e\\\\\\\"}),LGraphCanvas.node_colors){var l=LGraphCanvas.node_colors[o];e={value:o,content:\\\\\\\"\\\\u003cspan style='display: block; color: #999; padding-left: 4px; border-left: 8px solid \\\\\\\"+l.color+\\\\\\\"; background-color:\\\\\\\"+l.bgcolor+\\\\\\\"'\\\\u003e\\\\\\\"+o+\\\\\\\"\\\\u003c/span\\\\u003e\\\\\\\"};a.push(e)}return new LiteGraph.ContextMenu(a,{event:i,callback:function(e){if(!n)return;var t=e.value?LGraphCanvas.node_colors[e.value]:null,i=function(e){t?e.constructor===LiteGraph.LGraphGroup?e.color=t.groupcolor:(e.color=t.color,e.bgcolor=t.bgcolor):(delete e.color,delete e.bgcolor),nt||(nt=Ke()),nt.update()},s=LGraphCanvas.active_canvas;if(!s.selected_nodes||Object.keys(s.selected_nodes).length\\\\u003c=1)i(n);else for(var a in s.selected_nodes)i(s.selected_nodes[a]);n.setDirtyCanvas(!0,!0)},parentMenu:s,node:n}),!1}function gt(e,t,i,s,n){var a=e.property||\\\\\\\"title\\\\\\\",o=n[a],l=document.createElement(\\\\\\\"div\\\\\\\");l.is_modified=!1,l.className=\\\\\\\"graphdialog\\\\\\\",l.innerHTML=\\\\\\\"\\\\u003cspan class='name'\\\\u003e\\\\u003c/span\\\\u003e\\\\u003cinput autofocus type='text' class='value'/\\\\u003e\\\\u003cbutton\\\\u003eOK\\\\u003c/button\\\\u003e\\\\\\\",l.close=function(){l.parentNode\\\\u0026\\\\u0026l.parentNode.removeChild(l)},l.querySelector(\\\\\\\".name\\\\\\\").innerText=a;var r=l.querySelector(\\\\\\\".value\\\\\\\");r\\\\u0026\\\\u0026(r.value=o,r.addEventListener(\\\\\\\"blur\\\\\\\",(function(e){this.focus()})),r.addEventListener(\\\\\\\"keydown\\\\\\\",(function(e){if(l.is_modified=!0,27==e.keyCode)l.close();else if(13==e.keyCode)h();else if(13!=e.keyCode\\\\u0026\\\\u0026\\\\\\\"textarea\\\\\\\"!=e.target.localName)return;e.preventDefault(),e.stopPropagation()})));var d=LGraphCanvas.active_canvas.canvas,u=d.getBoundingClientRect(),c=-20,A=-20;u\\\\u0026\\\\u0026(c-=u.left,A-=u.top),event?(l.style.left=event.clientX+c+\\\\\\\"px\\\\\\\",l.style.top=event.clientY+A+\\\\\\\"px\\\\\\\"):(l.style.left=.5*d.width+c+\\\\\\\"px\\\\\\\",l.style.top=.5*d.height+A+\\\\\\\"px\\\\\\\"),l.querySelector(\\\\\\\"button\\\\\\\").addEventListener(\\\\\\\"click\\\\\\\",h),d.parentNode.appendChild(l),r\\\\u0026\\\\u0026r.focus();var p=null;function h(){r\\\\u0026\\\\u0026function(t){\\\\\\\"Number\\\\\\\"==e.type?t=Number(t):\\\\\\\"Boolean\\\\\\\"==e.type\\\\u0026\\\\u0026(t=Boolean(t));n[a]=t,l.parentNode\\\\u0026\\\\u0026l.parentNode.removeChild(l);n.setDirtyCanvas(!0,!0),nt||(nt=Ke());nt.update()}(r.value)}l.addEventListener(\\\\\\\"mouseleave\\\\\\\",(function(e){LiteGraph.dialog_close_on_mouse_leave\\\\u0026\\\\u0026!l.is_modified\\\\u0026\\\\u0026LiteGraph.dialog_close_on_mouse_leave\\\\u0026\\\\u0026(p=setTimeout(l.close,LiteGraph.dialog_close_on_mouse_leave_delay))})),l.addEventListener(\\\\\\\"mouseenter\\\\\\\",(function(e){LiteGraph.dialog_close_on_mouse_leave\\\\u0026\\\\u0026p\\\\u0026\\\\u0026clearTimeout(p)}))}(e=\\\\u003e{try{fe.registerExtension(e)}catch(t){}})({name:\\\\\\\"Comfy.EasyUse.UI\\\\\\\",init(){var e,t;const i=\\\\\\\"Comfy.CustomColorPalettes\\\\\\\",s=\\\\\\\"Comfy.Settings.Comfy.CustomColorPalettes\\\\\\\";if(dt||(dt=xe(i,s)),ut||(ut=xe(\\\\\\\"Comfy.ColorPalette\\\\\\\",\\\\\\\"Comfy.Settings.Comfy.ColorPalette\\\\\\\")||\\\\\\\"dark\\\\\\\"),(!(null==(e=null==dt?void 0:dt.obsidian)?void 0:e.version)||dt.obsidian.version\\\\u003cVe.ColorPalette.version)\\\\u0026\\\\u0026(dt.obsidian=Ve.ColorPalette,dt.obsidian_dark=je.ColorPalette,ke(i,dt,s)),(!dt||!(null==(t=null==dt?void 0:dt.milk_white)?void 0:t.version)||dt.milk_white.version\\\\u003cWe.ColorPalette.version)\\\\u0026\\\\u0026(dt.milk_white=We.ColorPalette,ke(i,dt,s)),ot.includes(ut)){switch(document.body.classList+=\\\\\\\" comfyui-easyuse\\\\\\\",function(e,t=!1){const i=document.createElement(\\\\\\\"link\\\\\\\");i.rel=\\\\\\\"preconnect\\\\\\\",i.href=e,t\\\\u0026\\\\u0026(i.crossorigin=\\\\\\\"\\\\\\\"),document.head.appendChild(i)}(\\\\\\\"https://fonts.googleapis.com\\\\\\\",!0),function(e,t=!0,i=\\\\\\\"ComfyUI-Easy-Use\\\\\\\"){const s=document.createElement(\\\\\\\"link\\\\\\\");s.rel=\\\\\\\"stylesheet\\\\\\\",s.type=\\\\\\\"text/css\\\\\\\",s.href=t?`extensions/${i}/${e}`:e,document.head.appendChild(s)}(\\\\\\\"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700\\\\u0026amp;family=JetBrains+Mono\\\\u0026amp;display=swap\\\\\\\",!1),ut){case\\\\\\\"obsidian\\\\\\\":case\\\\\\\"obsidian_dark\\\\\\\":case\\\\\\\"custom_obsidian\\\\\\\":case\\\\\\\"custom_obsidian_dark\\\\\\\":case\\\\\\\"dark\\\\\\\":LGraphCanvas.node_colors=Ve.NODE_COLORS;break;case\\\\\\\"custom_milk_white\\\\\\\":case\\\\\\\"milk_white\\\\\\\":case\\\\\\\"light\\\\\\\":LGraphCanvas.node_colors=We.NODE_COLORS}rt=LGraphCanvas.node_colors,LiteGraph.NODE_TEXT_SIZE=13,LGraphCanvas.prototype.drawNodeShape=st(LGraphCanvas.prototype.drawNodeShape,ht)}else document.body.classList.remove(\\\\\\\"comfyui-easyuse\\\\\\\");LGraphCanvas.onMenuNodeMode=st(LGraphCanvas.onMenuNodeMode,mt),LGraphCanvas.onMenuNodeColors=st(LGraphCanvas.onMenuNodeColors,ft),LGraphCanvas.onShowPropertyEditor=st(LGraphCanvas.onShowPropertyEditor,gt)},async setup(){var e;Object.assign(fe.canvas.default_connection_color_byType,Te),Object.assign(LGraphCanvas.link_type_colors,Te),\\\\\\\"custom_milk_white\\\\\\\"==ut\\\\u0026\\\\u0026document.body.classList.remove(Ie),fe.ui.settings.addEventListener(\\\\\\\"Comfy.ColorPalette.change\\\\\\\",(async({detail:e})=\\\\u003e{(null==e?void 0:e.value)\\\\u0026\\\\u0026(null==e?void 0:e.oldValue)\\\\u0026\\\\u0026(await Xe(1),Object.assign(fe.canvas.default_connection_color_byType,Te),Object.assign(LGraphCanvas.link_type_colors,Te)),\\\\\\\"custom_milk_white\\\\\\\"==e.value\\\\u0026\\\\u0026document.body.classList.remove(Ie)})),setTimeout((e=\\\\u003evt(xe(\\\\\\\"Comfy.UseNewMenu\\\\\\\")||\\\\\\\"Disabled\\\\\\\")),1);const t=null==(e=fe.ui.settings.settingsLookup)?void 0:e[\\\\\\\"Comfy.UseNewMenu\\\\\\\"];t\\\\u0026\\\\u0026(t.onChange=e=\\\\u003evt(e)),ge.addEventListener(\\\\\\\"easyuse-toast\\\\\\\",(e=\\\\u003e{const t=e.detail.content,i=e.detail.type,s=e.detail.duration;i?Ye.show({id:`toast-${i}`,icon:Ye[i+\\\\\\\"_icon\\\\\\\"],content:`${t}`,duration:s||3e3}):Ye.info(t,s)}))},async nodeCreated(e){if(lt.hasOwnProperty(e.comfyClass)){const t=lt[e.comfyClass],i=rt[t];if(!i)return;!e.bgcolor\\\\u0026\\\\u0026i.bgcolor\\\\u0026\\\\u0026(e.bgcolor=i.bgcolor),!e.color\\\\u0026\\\\u0026i.color\\\\u0026\\\\u0026(e.color=i.color)}}});const vt=e=\\\\u003e{var t;const i=(null==(t=document.getElementById(\\\\\\\"crystools-root\\\\\\\"))?void 0:t.children)||null,s=xe(\\\\\\\"Comfy.Workflow.WorkflowTabsPosition\\\\\\\",null);if((null==i?void 0:i.length)\\\\u003e0\\\\u0026\\\\u0026s)if(ct||(ct=document.getElementById(\\\\\\\"MonitorUI\\\\\\\")),\\\\\\\"Disabled\\\\\\\"==e){document.getElementById(\\\\\\\"crystools-root\\\\\\\").appendChild(ct)}else{let e=document.getElementById(\\\\\\\"crystools-root-easyuse\\\\\\\");if(e)e.appendChild(ct);else{const e=document.getElementsByClassName(\\\\\\\"comfyui-menu-right\\\\\\\");e.length\\\\u003e0\\\\u0026\\\\u0026e[0].before(ve(\\\\\\\"div\\\\\\\",{id:\\\\\\\"crystools-root-easyuse\\\\\\\"},ct))}}};let yt={};const wt=(e,t)=\\\\u003ee.widgets.find((e=\\\\u003ee.name===t)),bt=(e,t,i=!1,s=\\\\\\\"\\\\\\\")=\\\\u003e{var n;if(!t||((e,t,i)=\\\\u003e!!e.inputs\\\\u0026\\\\u0026e.inputs.some((e=\\\\u003ee.name===t\\\\u0026\\\\u0026e.link\\\\u0026\\\\u0026!i)))(e,t.name,i))return;yt[t.name]||(yt[t.name]={origType:t.type,origComputeSize:t.computeSize});const a=e.size;t.hidden=!i,t.type=i?yt[t.name].origType:\\\\\\\"easyHidden\\\\\\\"+s,t.computeSize=i?yt[t.name].origComputeSize:()=\\\\u003e[0,-4],null==(n=t.linkedWidgets)||n.forEach((s=\\\\u003ebt(e,s,\\\\\\\":\\\\\\\"+t.name,i)));const o=i?Math.max(e.computeSize()[1],a[1]):e.size[1];e.setSize([e.size[0],o])},_t=(e,t=0)=\\\\u003e{var i,s;if(e)return(null==(i=e.widgets)?void 0:i[t])?e.widgets[t].value:e.widgets_values?null==(s=e.widgets_values)?void 0:s[t]:void 0},St=e=\\\\u003ee.setSize([e.size[0],e.computeSize()[1]]),xt=(e,t)=\\\\u003egraph.getNodeById(e),Lt=e=\\\\u003e{var t;try{return Object.values(null==(t=null==graph?void 0:graph.list_of_graphcanvas[0])?void 0:t.selected_nodes)}catch(i){return[]}};function kt(e,t,i){return e+(s=i,(.5-.5*Math.cos(Math.PI*s))*(t-e));var s}const Et=(e,t=!0)=\\\\u003e{var i,s;const n=(null==(s=null==(i=e.graph)?void 0:i.list_of_graphcanvas)?void 0:s[0])||null;if(!n)return;const[a,o]=e.pos,[l,r]=e.size;(([e,t],i)=\\\\u003e{const s=i.ds,n=document.body.clientWidth,a=document.body.clientHeight,o=s.scale,l=.5*n/o-e,r=.5*a/o-t,d=Date.now()+250,u=s.offset[0],c=s.offset[1],A=()=\\\\u003e{const e=d-Date.now();if(!(Date.now()\\\\u003cd))return s.offset[0]=l,s.offset[1]=r,void i.setDirty(!0,!0);requestAnimationFrame(A);const t=1-e/250;s.offset[0]=kt(u,l,t),s.offset[1]=kt(c,r,t),i.setDirty(!0,!0)};requestAnimationFrame(A)})([a+l/2,o+r/2],n),t\\\\u0026\\\\u0026n.selectNode(e)},Nt=e=\\\\u003e{const t=xt(e);t\\\\u0026\\\\u0026Et(t)},Ct=(e,t=(()=\\\\u003egraph.links??[])())=\\\\u003et[e],It=e=\\\\u003ee.toLowerCase().replace(/_./g,(e=\\\\u003ee.replace(\\\\\\\"_\\\\\\\",\\\\\\\"\\\\\\\").toUpperCase())),Tt=e=\\\\u003e\\\\\\\"easy getNode\\\\\\\"===e.type,Ot=e=\\\\u003e\\\\\\\"easy setNode\\\\\\\"===e.type,Mt=e=\\\\u003eTt(e)||Ot(e),Dt=(e=(()=\\\\u003egraph._nodes??[])())=\\\\u003ee.filter((e=\\\\u003eMt(e)));let Rt={},Pt={};const Gt=(e,t,i=0)=\\\\u003e{e.widgets_values||(e.widgets_values=[]),e.widgets_values[i]=t,e.widgets[i].value=t},zt=e=\\\\u003egraph.add(e),Vt=e=\\\\u003egraph.remove(e),jt=(e,t=0)=\\\\u003e{var i,s;if(\\\\\\\"Reroute\\\\\\\"!==e.type)return[e,t];const n=e,a=null==(s=null==(i=n.inputs)?void 0:i[0])?void 0:s.link;if(!a)return[n,t];const o=Ct(a);if(!o)return[n,t];const l=xt(o.origin_id);return l?(setTimeout((()=\\\\u003e{Vt(n)})),jt(l,o.origin_slot)):[n,t]},Ut=e=\\\\u003e{var t,i,s;if(\\\\\\\"Reroute\\\\\\\"!==e.type)return e;const n=e,a=null==(i=null==(t=n.outputs)?void 0:t[0])?void 0:i.links;if(!a)return n;const o=a[0];if(!o)return n;const l=Ct(o);if(!l)return n;const r=xt(l.target_id);return r?(1===(null==(s=n.outputs[0].links)?void 0:s.length)\\\\u0026\\\\u0026setTimeout((()=\\\\u003e{Vt(n)})),Ut(r)):n},Wt=(e,t=\\\\\\\"width\\\\\\\")=\\\\u003e{var i;const s=e[0],n=\\\\\\\"width\\\\\\\"==t?0:1,a=null==(i=s.size)?void 0:i[n];a\\\\u0026\\\\u0026(e.forEach((e=\\\\u003e{e.size[n]=a})),LGraphCanvas.active_canvas.setDirty(!0,!0))},Ft=(e,t=\\\\\\\"horizontal\\\\\\\")=\\\\u003e{if(e.length\\\\u003c3)return;const i=\\\\\\\"horizontal\\\\\\\"===t?0:1;e.sort(((e,t)=\\\\u003ee.pos[i]-t.pos[i]));const s=Math.min(...e.map((e=\\\\u003ee.pos[i]))),n=(Math.max(...e.map((e=\\\\u003ee.pos[i]+e.size[i])))-s-e.reduce(((e,t)=\\\\u003ee+t.size[i]),0))/(e.length-1);let a=s;e.forEach((e=\\\\u003e{e.pos[i]=a,a+=e.size[i]+n})),LGraphCanvas.active_canvas.setDirty(!0,!0)},Xt=\\\\\\\"$$canvas-image-preview\\\\\\\";const Zt=\\\\\\\"$$comfy_animation_preview\\\\\\\";const Ht=\\\\\\\"video_upload\\\\\\\",qt=(e,t)=\\\\u003e{if(!e)return!1;const i=(e=\\\\u003e{var t;return null==(t=e.constructor)?void 0:t.nodeData})(e);if(!(null==i?void 0:i.input))return!1;return(e=\\\\u003e{if(!e)return[];const{required:t,optional:i}=e,s=[];if(t)for(const n of Object.values(t))s.push(n);if(i)for(const n of Object.values(i))s.push(n);return s})(i.input).some((e=\\\\u003e{var i;return null==(i=null==e?void 0:e[1])?void 0:i[t]}))};const Yt=e=\\\\u003enull==e?void 0:e.id.toString(),Kt=e=\\\\u003efe.nodeOutputs[Yt(e)],Jt=e=\\\\u003efe.nodePreviewImages[Yt(e)];function Bt(e){var t;const i=Jt(e),s=Kt(e);if((null==i?void 0:i.length)\\\\u0026\\\\u0026!e.isOutputFinal)return i;if(!(null==(t=null==s?void 0:s.images)?void 0:t.length))return(null==i?void 0:i.length)?i:void 0;const n=fe.getRandParam(),a=(e=\\\\u003ee.animatedImages?\\\\\\\"\\\\\\\":fe.getPreviewFormatParam())(e);return s.images.map((e=\\\\u003e{const t=new URLSearchParams(e);return ge.apiURL(`/view?${t}${a}${n}`)}))}const Qt=\\\\\\\"video-preview\\\\\\\",$t={playsInline:!0,controls:!0,loop:!0},ei=(e,t)=\\\\u003e{const{loadElement:i,onLoaded:s,onFailedLoading:n}=t,a=async(e,t=0)=\\\\u003e{const s=await Promise.race([i(e),(n=8192,new Promise((e=\\\\u003esetTimeout((()=\\\\u003ee(null)),n))))]);var n;return null===s\\\\u0026\\\\u0026t\\\\u003c1?a(e,t+1):s};return{showPreview:function(){var i;if(e.isLoading)return;const o=(null==(i=e.videos)?void 0:i.length)\\\\u003e0?e.videos.map((e=\\\\u003e{return t=e,ge.apiURL(`/view?filename=${encodeURIComponent(t.filename)}\\\\u0026type=${t.type}\\\\u0026subfolder=${t.subfolder}\\\\u0026rand=${Math.random()}`);var t})):Bt(e);(null==o?void 0:o.length)\\\\u0026\\\\u0026((null==t?void 0:t.block)\\\\u0026\\\\u0026(e.isLoading=!0),(async e=\\\\u003ePromise.all(e.map((e=\\\\u003ea(e)))))(o).then((e=\\\\u003e{const t=e.filter((e=\\\\u003enull!==e));t.length\\\\u0026\\\\u0026(null==s||s(t))})).catch((()=\\\\u003e{null==n||n()})).finally((()=\\\\u003e{e.isLoading=!1})))}}},ti=e=\\\\u003e{e.previewMediaType=\\\\\\\"image\\\\\\\";return ei(e,{loadElement:e=\\\\u003enew Promise((t=\\\\u003e{const i=new Image;i.onload=()=\\\\u003et(i),i.onerror=()=\\\\u003et(null),i.src=e})),onLoaded:t=\\\\u003e{e.imageIndex=null,e.imgs=t},onFailedLoading:()=\\\\u003e{e.imgs=void 0}})},ii=e=\\\\u003e{e.previewMediaType=\\\\\\\"video\\\\\\\";return ei(e,{loadElement:e=\\\\u003enew Promise((t=\\\\u003e{const i=document.createElement(\\\\\\\"video\\\\\\\");Object.assign(i,$t),i.onloadeddata=()=\\\\u003et(i),i.onerror=()=\\\\u003et(null),i.src=e})),onLoaded:t=\\\\u003e{const i=t[0];var s,n;i\\\\u0026\\\\u0026(e.videoContainer||(e.imgs\\\\u0026\\\\u0026(e.imgs=void 0),e.videoContainer=(()=\\\\u003e{const e=document.createElement(\\\\\\\"div\\\\\\\");return e.classList.add(\\\\\\\"comfy-img-preview\\\\\\\"),e})(),e.videoContainer.style.pointerEvents=\\\\\\\"auto\\\\\\\",s=e.videoContainer,(null==(n=e.widgets)?void 0:n.some((e=\\\\u003ee.name===Qt)))||e.addDOMWidget(Qt,\\\\\\\"video\\\\\\\",s,{hideOnZoom:!1,serialize:!1})),e.videoContainer.replaceChildren(i),e.imageOffset=64)},onFailedLoading:()=\\\\u003e{e.videoContainer=void 0}})};function si(e,t){var i;if(e.flags.collapsed)return;const{showCanvasImagePreview:s,removeCanvasImagePreview:n}=function(){const e=et();return{showCanvasImagePreview:function(t){var i;(null==(i=t.imgs)?void 0:i.length)\\\\u0026\\\\u0026t.widgets\\\\u0026\\\\u0026(t.widgets.find((e=\\\\u003ee.name===Xt))||e(t,{type:\\\\\\\"IMAGE_PREVIEW\\\\\\\",name:Xt}))},removeCanvasImagePreview:function(e){var t,i;if(!e.widgets)return;const s=e.widgets.findIndex((e=\\\\u003ee.name===Xt));s\\\\u003e-1\\\\u0026\\\\u0026(null==(i=(t=e.widgets[s]).onRemove)||i.call(t),e.widgets.splice(s,1))}}}(),{showVideoPreview:a,removeVideoPreview:o}={showVideoPreview:function(e){var t;(null==(t=e.video)?void 0:t.length)\\\\u0026\\\\u0026e.widgets\\\\u0026\\\\u0026e.widgets.findIndex((e=\\\\u003ee.name===Zt))},removeVideoPreview:function(e){var t,i;if(!e.widgets)return;const s=e.widgets.findIndex((e=\\\\u003e\\\\\\\"video-preview\\\\\\\"===e.name));s\\\\u003e-1\\\\u0026\\\\u0026(null==(i=(t=e.widgets[s]).onRemove)||i.call(t),e.widgets.splice(s,1))}},l=Kt(e),r=Jt(e),d=l\\\\u0026\\\\u0026(e.images!==l.images||e.videos!==l.videos),u=r\\\\u0026\\\\u0026e.preview!==r;if(u\\\\u0026\\\\u0026(e.isOutputFinal=!1,e.isTwiceRendered\\\\u0026\\\\u0026(e.isTwiceRendered=!1),e.preview=r),d\\\\u0026\\\\u0026(e.isOutputFinal=!0,l.images\\\\u0026\\\\u0026(e.images=l.images),l.videos\\\\u0026\\\\u0026(e.videos=l.videos)),d||u){e.animatedImages=null==l?void 0:l.animated;const t=e.animatedImages\\\\u0026\\\\u0026l.images.some((e=\\\\u003e{var t;return null==(t=e.filename)?void 0:t.includes(\\\\\\\"webp\\\\\\\")})),i=e.animatedImages\\\\u0026\\\\u0026!t||!!(c=this)\\\\u0026\\\\u0026(!!c.videoContainer||!!c.widgets\\\\u0026\\\\u0026qt(c,Ht));d\\\\u0026\\\\u0026(null==l?void 0:l.videos)||i?ii(e).showPreview():ti(e).showPreview()}var c;e.id!=fe.runningNodeId\\\\u0026\\\\u0026!e.isTwiceRendered\\\\u0026\\\\u0026e.isOutputFinal\\\\u0026\\\\u0026(e.videos?ii(e.videos):ti(e).showPreview(),e.isTwiceRendered=!0),(null==(i=e.imgs)?void 0:i.length)\\\\u0026\\\\u0026(e.animatedImages||d\\\\u0026\\\\u0026(null==l?void 0:l.videos)?(n(e),a(e)):(o(e),s(e)))}const ni=[\\\\\\\"rescale_after_model\\\\\\\",\\\\\\\"rescale\\\\\\\",\\\\\\\"lora_name\\\\\\\",\\\\\\\"upscale_method\\\\\\\",\\\\\\\"image_output\\\\\\\",\\\\\\\"add_noise\\\\\\\",\\\\\\\"info\\\\\\\",\\\\\\\"sampler_name\\\\\\\",\\\\\\\"ckpt_B_name\\\\\\\",\\\\\\\"ckpt_C_name\\\\\\\",\\\\\\\"save_model\\\\\\\",\\\\\\\"refiner_ckpt_name\\\\\\\",\\\\\\\"num_loras\\\\\\\",\\\\\\\"num_controlnet\\\\\\\",\\\\\\\"mode\\\\\\\",\\\\\\\"toggle\\\\\\\",\\\\\\\"resolution\\\\\\\",\\\\\\\"ratio\\\\\\\",\\\\\\\"target_parameter\\\\\\\",\\\\\\\"input_count\\\\\\\",\\\\\\\"replace_count\\\\\\\",\\\\\\\"downscale_mode\\\\\\\",\\\\\\\"range_mode\\\\\\\",\\\\\\\"text_combine_mode\\\\\\\",\\\\\\\"input_mode\\\\\\\",\\\\\\\"lora_count\\\\\\\",\\\\\\\"ckpt_count\\\\\\\",\\\\\\\"conditioning_mode\\\\\\\",\\\\\\\"preset\\\\\\\",\\\\\\\"use_tiled\\\\\\\",\\\\\\\"use_batch\\\\\\\",\\\\\\\"num_embeds\\\\\\\",\\\\\\\"easing_mode\\\\\\\",\\\\\\\"guider\\\\\\\",\\\\\\\"scheduler\\\\\\\",\\\\\\\"inpaint_mode\\\\\\\",\\\\\\\"t5_type\\\\\\\",\\\\\\\"rem_mode\\\\\\\",\\\\\\\"encode\\\\\\\",\\\\\\\"method\\\\\\\"],ai=[\\\\\\\"LIGHT - SD1.5 only (low strength)\\\\\\\",\\\\\\\"STANDARD (medium strength)\\\\\\\",\\\\\\\"VIT-G (medium strength)\\\\\\\",\\\\\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\\\\\",\\\\\\\"PLUS (high strength)\\\\\\\",\\\\\\\"PLUS (kolors genernal)\\\\\\\",\\\\\\\"PLUS FACE (portraits)\\\\\\\",\\\\\\\"FULL FACE - SD1.5 only (portraits stronger)\\\\\\\",\\\\\\\"COMPOSITION\\\\\\\"],oi=[\\\\\\\"FACEID\\\\\\\",\\\\\\\"FACEID PLUS - SD1.5 only\\\\\\\",\\\\\\\"FACEID PLUS V2\\\\\\\",\\\\\\\"FACEID PLUS KOLORS\\\\\\\",\\\\\\\"FACEID PORTRAIT (style transfer)\\\\\\\",\\\\\\\"FACEID PORTRAIT UNNORM - SDXL only (strong)\\\\\\\"],li=[\\\\\\\"easy seed\\\\\\\",\\\\\\\"easy latentNoisy\\\\\\\",\\\\\\\"easy wildcards\\\\\\\",\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingNoiseIn\\\\\\\",\\\\\\\"easy preSamplingSdTurbo\\\\\\\",\\\\\\\"easy preSamplingCascade\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",\\\\\\\"easy preSamplingLayerDiffusion\\\\\\\",\\\\\\\"easy fullkSampler\\\\\\\",\\\\\\\"easy fullCascadeKSampler\\\\\\\"],ri=[\\\\\\\"easy fullLoader\\\\\\\",\\\\\\\"easy a1111Loader\\\\\\\",\\\\\\\"easy comfyLoader\\\\\\\",\\\\\\\"easy hyditLoader\\\\\\\",\\\\\\\"easy pixArtLoader\\\\\\\"],di=[\\\\\\\"easy fullkSampler\\\\\\\",\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy kSamplerCustom\\\\\\\",\\\\\\\"easy kSamplerTiled\\\\\\\",\\\\\\\"easy kSamplerLayerDiffusion\\\\\\\",\\\\\\\"easy kSamplerInpainting\\\\\\\",\\\\\\\"easy kSamplerDownscaleUnet\\\\\\\",\\\\\\\"easy kSamplerSDTurbo\\\\\\\",\\\\\\\"easy fullCascadeKSampler\\\\\\\",\\\\\\\"easy cascadeKSampler\\\\\\\"],ui=[\\\\\\\"easy imageSize\\\\\\\",\\\\\\\"easy imageSizeBySide\\\\\\\",\\\\\\\"easy imageSizeByLongerSide\\\\\\\",\\\\\\\"easy imageSizeShow\\\\\\\",\\\\\\\"easy imageRatio\\\\\\\",\\\\\\\"easy imagePixelPerfect\\\\\\\"],ci=[\\\\\\\"easy forLoopStart\\\\\\\",\\\\\\\"easy forLoopEnd\\\\\\\",\\\\\\\"easy whileLoopStart\\\\\\\",\\\\\\\"easy whileLoopEnd\\\\\\\"],Ai=[\\\\\\\"easy anythingIndexSwitch\\\\\\\",\\\\\\\"easy imageIndexSwitch\\\\\\\",\\\\\\\"easy textIndexSwitch\\\\\\\",\\\\\\\"easy conditioningIndexSwitch\\\\\\\"],pi=[\\\\\\\"easy anythingInversedSwitch\\\\\\\"],hi=[\\\\\\\"easy loadImagesForLoop\\\\\\\",...ci,...Ai,...pi],mi={\\\\\\\"easy anythingInversedSwitch\\\\\\\":\\\\\\\"out\\\\\\\",\\\\\\\"easy anythingIndexSwitch\\\\\\\":\\\\\\\"value\\\\\\\",\\\\\\\"easy imageIndexSwitch\\\\\\\":\\\\\\\"image\\\\\\\",\\\\\\\"easy textIndexSwitch\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"easy conditioningIndexSwitch\\\\\\\":\\\\\\\"cond\\\\\\\"};function fi(e,t){var i;const s=e.comfyClass;let n=t.value;switch(t.name){case\\\\\\\"range_mode\\\\\\\":bt(e,wt(e,\\\\\\\"step\\\\\\\"),\\\\\\\"step\\\\\\\"==n),bt(e,wt(e,\\\\\\\"num_steps\\\\\\\"),\\\\\\\"num_steps\\\\\\\"==n),St(e);break;case\\\\\\\"text_combine_mode\\\\\\\":bt(e,wt(e,\\\\\\\"replace_text\\\\\\\"),\\\\\\\"replace\\\\\\\"==n);break;case\\\\\\\"lora_name\\\\\\\":[\\\\\\\"lora_model_strength\\\\\\\",\\\\\\\"lora_clip_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"None\\\\\\\"!==n)));break;case\\\\\\\"resolution\\\\\\\":\\\\\\\"\\u81ea\\u5b9a\\u4e49 x \\u81ea\\u5b9a\\u4e49\\\\\\\"===n\\\\u0026\\\\u0026(t.value=\\\\\\\"width x height (custom)\\\\\\\"),[\\\\\\\"empty_latent_width\\\\\\\",\\\\\\\"empty_latent_height\\\\\\\",\\\\\\\"width\\\\\\\",\\\\\\\"height\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"width x height (custom)\\\\\\\"===n)));break;case\\\\\\\"ratio\\\\\\\":[\\\\\\\"empty_latent_width\\\\\\\",\\\\\\\"empty_latent_height\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"custom\\\\\\\"===n)));break;case\\\\\\\"num_loras\\\\\\\":var a=n+1,o=null==(i=wt(e,\\\\\\\"mode\\\\\\\"))?void 0:i.value;requestAnimationFrame((t=\\\\u003e{for(let i=0;i\\\\u003ca;i++)bt(e,wt(e,\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_name\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_strength\\\\\\\"),\\\\\\\"simple\\\\\\\"===o),[\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_model_strength\\\\\\\",\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_clip_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"simple\\\\\\\"!==o)));for(let i=a;i\\\\u003c99;i++)[\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_name\\\\\\\",\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_strength\\\\\\\",\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_model_strength\\\\\\\",\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_clip_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1)));St(e)}));break;case\\\\\\\"num_controlnet\\\\\\\":a=n+1,o=wt(e,\\\\\\\"mode\\\\\\\").value;for(let t=0;t\\\\u003ca;t++)[\\\\\\\"controlnet_\\\\\\\"+t,\\\\\\\"controlnet_\\\\\\\"+t+\\\\\\\"_strength\\\\\\\",\\\\\\\"scale_soft_weight_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!0))),[\\\\\\\"start_percent_\\\\\\\"+t,\\\\\\\"end_percent_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"simple\\\\\\\"!==o)));for(let t=a;t\\\\u003c21;t++)[\\\\\\\"controlnet_\\\\\\\"+t,\\\\\\\"controlnet_\\\\\\\"+t+\\\\\\\"_strength\\\\\\\",\\\\\\\"scale_soft_weight_\\\\\\\"+t,\\\\\\\"start_percent_\\\\\\\"+t,\\\\\\\"end_percent_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\\\\\"mode\\\\\\\":switch(null==e?void 0:e.comfyClass){case\\\\\\\"easy loraStack\\\\\\\":a=wt(e,\\\\\\\"num_loras\\\\\\\").value+1,o=n;for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"lora_\\\\\\\"+t+\\\\\\\"_strength\\\\\\\"),\\\\\\\"simple\\\\\\\"===o),[\\\\\\\"lora_\\\\\\\"+t+\\\\\\\"_model_strength\\\\\\\",\\\\\\\"lora_\\\\\\\"+t+\\\\\\\"_clip_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"simple\\\\\\\"!==o)));St(e);break;case\\\\\\\"easy controlnetStack\\\\\\\":a=wt(e,\\\\\\\"num_controlnet\\\\\\\").value+1,o=n;for(let t=0;t\\\\u003ca;t++)[\\\\\\\"start_percent_\\\\\\\"+t,\\\\\\\"end_percent_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"simple\\\\\\\"!==o)));St(e);break;case\\\\\\\"easy icLightApply\\\\\\\":o=n;[\\\\\\\"lighting\\\\\\\",\\\\\\\"remove_bg\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"Foreground\\\\\\\"===o))),bt(e,wt(e,\\\\\\\"source\\\\\\\"),\\\\\\\"Foreground\\\\\\\"!==o),St(e)}break;case\\\\\\\"toggle\\\\\\\":t.type=\\\\\\\"toggle\\\\\\\",t.options={on:\\\\\\\"Enabled\\\\\\\",off:\\\\\\\"Disabled\\\\\\\"};break;case\\\\\\\"t5_type\\\\\\\":[\\\\\\\"clip_name\\\\\\\",\\\\\\\"padding\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"sd3\\\\\\\"==n))),[\\\\\\\"t5_name\\\\\\\",\\\\\\\"device\\\\\\\",\\\\\\\"dtype\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"t5v11\\\\\\\"==n))),St(e);break;case\\\\\\\"preset\\\\\\\":if(\\\\\\\"FLUX.1-dev\\\\\\\"==n\\\\u0026\\\\u0026(t.value=\\\\\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\\\\\"),ai.includes(n)){let t=wt(e,\\\\\\\"use_tiled\\\\\\\");bt(e,wt(e,\\\\\\\"lora_strength\\\\\\\")),bt(e,wt(e,\\\\\\\"provider\\\\\\\"),!![\\\\\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\\\\\"].includes(n)),bt(e,wt(e,\\\\\\\"weight_faceidv2\\\\\\\")),bt(e,wt(e,\\\\\\\"weight_kolors\\\\\\\")),bt(e,wt(e,\\\\\\\"use_tiled\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"sharpening\\\\\\\"),t\\\\u0026\\\\u0026t.value)}else oi.includes(n)\\\\u0026\\\\u0026(bt(e,wt(e,\\\\\\\"weight_faceidv2\\\\\\\"),!![\\\\\\\"FACEID PLUS V2\\\\\\\",\\\\\\\"FACEID PLUS KOLORS\\\\\\\"].includes(n)),bt(e,wt(e,\\\\\\\"weight_kolors\\\\\\\"),!![\\\\\\\"FACEID PLUS KOLORS\\\\\\\"].includes(t.value)),[\\\\\\\"FACEID PLUS KOLORS\\\\\\\",\\\\\\\"FACEID PORTRAIT (style transfer)\\\\\\\",\\\\\\\"FACEID PORTRAIT UNNORM - SDXL only (strong)\\\\\\\"].includes(n)?bt(e,wt(e,\\\\\\\"lora_strength\\\\\\\"),!1):bt(e,wt(e,\\\\\\\"lora_strength\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"provider\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"use_tiled\\\\\\\")),bt(e,wt(e,\\\\\\\"sharpening\\\\\\\")));St(e);break;case\\\\\\\"use_tiled\\\\\\\":bt(e,wt(e,\\\\\\\"sharpening\\\\\\\"),!!n),St(e);break;case\\\\\\\"num_embeds\\\\\\\":a=n+1;for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"weight\\\\\\\"+t),!0);for(let t=a;t\\\\u003c6;t++)bt(e,wt(e,\\\\\\\"weight\\\\\\\"+t));St(e);break;case\\\\\\\"inpaint_mode\\\\\\\":switch(n){case\\\\\\\"normal\\\\\\\":case\\\\\\\"fooocus_inpaint\\\\\\\":[\\\\\\\"dtype\\\\\\\",\\\\\\\"fitting\\\\\\\",\\\\\\\"function\\\\\\\",\\\\\\\"scale\\\\\\\",\\\\\\\"start_at\\\\\\\",\\\\\\\"end_at\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1)));break;case\\\\\\\"brushnet_random\\\\\\\":case\\\\\\\"brushnet_segmentation\\\\\\\":[\\\\\\\"dtype\\\\\\\",\\\\\\\"scale\\\\\\\",\\\\\\\"start_at\\\\\\\",\\\\\\\"end_at\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0))),[\\\\\\\"fitting\\\\\\\",\\\\\\\"function\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1)));break;case\\\\\\\"powerpaint\\\\\\\":[\\\\\\\"dtype\\\\\\\",\\\\\\\"fitting\\\\\\\",\\\\\\\"function\\\\\\\",\\\\\\\"scale\\\\\\\",\\\\\\\"start_at\\\\\\\",\\\\\\\"end_at\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0)))}St(e);break;case\\\\\\\"encode\\\\\\\":bt(e,wt(e,\\\\\\\"noise_mask\\\\\\\"),!![\\\\\\\"inpaint_model_conditioning\\\\\\\",\\\\\\\"different_diffusion\\\\\\\"].includes(n)),St(e);break;case\\\\\\\"image_output\\\\\\\":bt(e,wt(e,\\\\\\\"link_id\\\\\\\"),!![\\\\\\\"Sender\\\\\\\",\\\\\\\"Sender\\\\u0026Save\\\\\\\"].includes(n)),bt(e,wt(e,\\\\\\\"decode_vae_name\\\\\\\"),!![\\\\\\\"Hide\\\\\\\",\\\\\\\"Hide\\\\u0026Save\\\\\\\"].includes(n)),[\\\\\\\"save_prefix\\\\\\\",\\\\\\\"output_path\\\\\\\",\\\\\\\"embed_workflow\\\\\\\",\\\\\\\"number_padding\\\\\\\",\\\\\\\"overwrite_existing\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!![\\\\\\\"Save\\\\\\\",\\\\\\\"Hide\\\\u0026Save\\\\\\\",\\\\\\\"Sender\\\\u0026Save\\\\\\\"].includes(n))));break;case\\\\\\\"add_noise\\\\\\\":var l=wt(e,\\\\\\\"control_before_generate\\\\\\\"),r=wt(e,\\\\\\\"control_after_generate\\\\\\\")||l;\\\\\\\"disable\\\\\\\"===n?(bt(e,wt(e,\\\\\\\"seed\\\\\\\")),r\\\\u0026\\\\u0026(r.last_value=r.value,r.value=\\\\\\\"fixed\\\\\\\",bt(e,r))):(\\\\\\\"enable\\\\\\\"===n\\\\u0026\\\\u0026(t.value=\\\\\\\"enable (CPU)\\\\\\\"),bt(e,wt(e,\\\\\\\"seed\\\\\\\"),!0),r\\\\u0026\\\\u0026((null==r?void 0:r.last_value)\\\\u0026\\\\u0026(r.value=r.last_value),bt(e,r,!0))),St(e);break;case\\\\\\\"guider\\\\\\\":switch(n){case\\\\\\\"Basic\\\\\\\":case\\\\\\\"IP2P+Basic\\\\\\\":[\\\\\\\"cfg_negative\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t))));break;case\\\\\\\"CFG\\\\\\\":case\\\\\\\"IP2P+CFG\\\\\\\":bt(e,wt(e,\\\\\\\"cfg\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"cfg_negative\\\\\\\"));break;case\\\\\\\"DualCFG\\\\\\\":case\\\\\\\"IP2P+DualCFG\\\\\\\":[\\\\\\\"cfg\\\\\\\",\\\\\\\"cfg_negative\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0)))}St(e);break;case\\\\\\\"scheduler\\\\\\\":\\\\\\\"easy preSamplingCustom\\\\\\\"==s\\\\u0026\\\\u0026([\\\\\\\"karrasADV\\\\\\\",\\\\\\\"exponentialADV\\\\\\\",\\\\\\\"polyExponential\\\\\\\"].includes(n)?([\\\\\\\"sigma_max\\\\\\\",\\\\\\\"sigma_min\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0))),[\\\\\\\"denoise\\\\\\\",\\\\\\\"beta_d\\\\\\\",\\\\\\\"beta_min\\\\\\\",\\\\\\\"eps_s\\\\\\\",\\\\\\\"coeff\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t))),!1),bt(e,wt(e,\\\\\\\"rho\\\\\\\"),\\\\\\\"exponentialADV\\\\\\\"!=n)):\\\\\\\"vp\\\\\\\"==n?([\\\\\\\"sigma_max\\\\\\\",\\\\\\\"sigma_min\\\\\\\",\\\\\\\"denoise\\\\\\\",\\\\\\\"rho\\\\\\\",\\\\\\\"coeff\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t)))),[\\\\\\\"beta_d\\\\\\\",\\\\\\\"beta_min\\\\\\\",\\\\\\\"eps_s\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0)))):([\\\\\\\"sigma_max\\\\\\\",\\\\\\\"sigma_min\\\\\\\",\\\\\\\"beta_d\\\\\\\",\\\\\\\"beta_min\\\\\\\",\\\\\\\"eps_s\\\\\\\",\\\\\\\"rho\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t)))),bt(e,wt(e,\\\\\\\"coeff\\\\\\\"),\\\\\\\"gits\\\\\\\"==n),bt(e,wt(e,\\\\\\\"denoise\\\\\\\"),!0)),St(e));break;case\\\\\\\"conditioning_mode\\\\\\\":[\\\\\\\"replace\\\\\\\",\\\\\\\"concat\\\\\\\",\\\\\\\"combine\\\\\\\"].includes(n)?[\\\\\\\"average_strength\\\\\\\",\\\\\\\"old_cond_start\\\\\\\",\\\\\\\"old_cond_end\\\\\\\",\\\\\\\"new_cond_start\\\\\\\",\\\\\\\"new_cond_end\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t)))):\\\\\\\"average\\\\\\\"==n?(bt(e,wt(e,\\\\\\\"average_strength\\\\\\\"),!0),[\\\\\\\"old_cond_start\\\\\\\",\\\\\\\"old_cond_end\\\\\\\",\\\\\\\"new_cond_start\\\\\\\",\\\\\\\"new_cond_end\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1)))):\\\\\\\"timestep\\\\\\\"==n\\\\u0026\\\\u0026([\\\\\\\"average_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1))),[\\\\\\\"old_cond_start\\\\\\\",\\\\\\\"old_cond_end\\\\\\\",\\\\\\\"new_cond_start\\\\\\\",\\\\\\\"new_cond_end\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0))));break;case\\\\\\\"rescale\\\\\\\":wt(e,\\\\\\\"rescale_after_model\\\\\\\").value,bt(e,wt(e,\\\\\\\"width\\\\\\\"),\\\\\\\"to Width/Height\\\\\\\"===n),bt(e,wt(e,\\\\\\\"height\\\\\\\"),\\\\\\\"to Width/Height\\\\\\\"===n),bt(e,wt(e,\\\\\\\"percent\\\\\\\"),\\\\\\\"by percentage\\\\\\\"===n),bt(e,wt(e,\\\\\\\"longer_side\\\\\\\"),\\\\\\\"to longer side - maintain aspect\\\\\\\"===n),St(e);break;case\\\\\\\"upscale_method\\\\\\\":[\\\\\\\"factor\\\\\\\",\\\\\\\"crop\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"None\\\\\\\"!==n)));break;case\\\\\\\"target_parameter\\\\\\\":switch(s){case\\\\\\\"easy XYInputs: Steps\\\\\\\":[\\\\\\\"first_step\\\\\\\",\\\\\\\"last_step\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"steps\\\\\\\"==n))),[\\\\\\\"first_start_step\\\\\\\",\\\\\\\"last_start_step\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"start_at_step\\\\\\\"==n))),[\\\\\\\"first_end_step\\\\\\\",\\\\\\\"last_end_step\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"end_at_step\\\\\\\"==n)));break;case\\\\\\\"easy XYInputs: Sampler/Scheduler\\\\\\\":let t=wt(e,\\\\\\\"input_count\\\\\\\").value+1;for(let i=0;i\\\\u003ct;i++)bt(e,wt(e,\\\\\\\"sampler_\\\\\\\"+i),\\\\\\\"scheduler\\\\\\\"!==n),bt(e,wt(e,\\\\\\\"scheduler_\\\\\\\"+i),\\\\\\\"sampler\\\\\\\"!==n);St(e);break;case\\\\\\\"easy XYInputs: ControlNet\\\\\\\":[\\\\\\\"first_strength\\\\\\\",\\\\\\\"last_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"strength\\\\\\\"==n))),[\\\\\\\"first_start_percent\\\\\\\",\\\\\\\"last_start_percent\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"start_percent\\\\\\\"==n))),[\\\\\\\"first_end_percent\\\\\\\",\\\\\\\"last_end_percent\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"end_percent\\\\\\\"==n))),[\\\\\\\"strength\\\\\\\",\\\\\\\"start_percent\\\\\\\",\\\\\\\"end_percent\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),n!=t))),St(e)}case\\\\\\\"replace_count\\\\\\\":a=n+1;for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"replace_\\\\\\\"+t),!0);for(let t=a;t\\\\u003c31;t++)bt(e,wt(e,\\\\\\\"replace_\\\\\\\"+t));St(e);break;case\\\\\\\"lora_count\\\\\\\":a=n+1;var d=-1==wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"Weights\\\\\\\");for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"lora_name_\\\\\\\"+t),!0),[\\\\\\\"model_str_\\\\\\\"+t,\\\\\\\"clip_str_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!d)));for(let t=a;t\\\\u003c11;t++)[\\\\\\\"lora_name_\\\\\\\"+t,\\\\\\\"model_str_\\\\\\\"+t,\\\\\\\"clip_str_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\\\\\"ckpt_count\\\\\\\":a=n+1;var u=-1!=wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"ClipSkip\\\\\\\"),c=-1!=wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"VAE\\\\\\\");for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"ckpt_name_\\\\\\\"+t),!0),bt(e,wt(e,\\\\\\\"clip_skip_\\\\\\\"+t),!!u),bt(e,wt(e,\\\\\\\"vae_name_\\\\\\\"+t),!!c);for(let t=a;t\\\\u003c11;t++)[\\\\\\\"ckpt_name_\\\\\\\"+t,\\\\\\\"clip_skip_\\\\\\\"+t,\\\\\\\"vae_name_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\\\\\"input_count\\\\\\\":a=n+1;var A=wt(e,\\\\\\\"target_parameter\\\\\\\").value;for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"sampler_\\\\\\\"+t),\\\\\\\"scheduler\\\\\\\"!==A),bt(e,wt(e,\\\\\\\"scheduler_\\\\\\\"+t),\\\\\\\"sampler\\\\\\\"!==A);for(let t=a;t\\\\u003c31;t++)bt(e,wt(e,\\\\\\\"sampler_\\\\\\\"+t)),bt(e,wt(e,\\\\\\\"scheduler_\\\\\\\"+t));St(e);break;case\\\\\\\"input_mode\\\\\\\":switch(s){case\\\\\\\"easy XYInputs: Lora\\\\\\\":a=wt(e,\\\\\\\"lora_count\\\\\\\").value+1;const t=-1!=n.indexOf(\\\\\\\"Weights\\\\\\\");for(let i=0;i\\\\u003ca;i++)bt(e,wt(e,\\\\\\\"lora_name_\\\\\\\"+i),!0),[\\\\\\\"model_str_\\\\\\\"+i,\\\\\\\"clip_str_\\\\\\\"+i].map((i=\\\\u003ebt(e,wt(e,i),!!t)));[\\\\\\\"model_strength\\\\\\\",\\\\\\\"clip_strength\\\\\\\"].map((i=\\\\u003ebt(e,wt(e,i),!t)));break;case\\\\\\\"easy XYInputs: Checkpoint\\\\\\\":a=wt(e,\\\\\\\"ckpt_count\\\\\\\").value+1,u=-1!=wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"ClipSkip\\\\\\\"),c=-1!=wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"VAE\\\\\\\");for(let i=0;i\\\\u003ca;i++)bt(e,wt(e,\\\\\\\"ckpt_name_\\\\\\\"+i),!0),bt(e,wt(e,\\\\\\\"clip_skip_\\\\\\\"+i),!!u),bt(e,wt(e,\\\\\\\"vae_name_\\\\\\\"+i),!!c)}St(e);break;case\\\\\\\"rem_mode\\\\\\\":bt(e,wt(e,\\\\\\\"torchscript_jit\\\\\\\"),\\\\\\\"Inspyrenet\\\\\\\"===n),bt(e,wt(e,\\\\\\\"refine_foreground\\\\\\\"),\\\\\\\"BEN2\\\\\\\"===n),St(e)}}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.Widget\\\\\\\",async beforeRegisterNodeDef(e,t,i){var s;const n=t.name,a=e.prototype.onAdded,o=e.prototype.onNodeCreated,l=e.prototype.onConfigure,r=e.prototype.onExecuted,d=e.prototype.onConnectionsChange;if([\\\\\\\"easy showAnything\\\\\\\",\\\\\\\"easy showAnythingLazy\\\\\\\",\\\\\\\"easy showTensorShape\\\\\\\",\\\\\\\"easy showSpentTime\\\\\\\",\\\\\\\"easy imageInterrogator\\\\\\\",\\\\\\\"easy showLoaderSettingsNames\\\\\\\"].includes(n)){let s=function(e,t=\\\\\\\"text\\\\\\\"){var s,n;if(this.widgets){const e=this.widgets.findIndex((e=\\\\u003ee.name===t));if(-1!==e){for(let t=e;t\\\\u003cthis.widgets.length;t++)null==(n=(s=this.widgets[t]).onRemove)||n.call(s);this.widgets.length=e}}for(const a of e){const e=we.STRING(this,\\\\\\\"text\\\\\\\",[\\\\\\\"STRING\\\\\\\",{multiline:!0}],i).widget;e.element\\\\u0026\\\\u0026(e.element.readOnly=!0,e.element.style.opacity=.6),e.value=a}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments),s.call(this,e.text,\\\\\\\"text\\\\\\\")},[\\\\\\\"easy imageInterrogator\\\\\\\"].includes(t.name)||(e.prototype.onConfigure=function(){var e;null==l||l.apply(this,arguments);let t=\\\\\\\"text\\\\\\\";switch(n){case\\\\\\\"easy showLoaderSettingsNames\\\\\\\":t=\\\\\\\"names\\\\\\\";break;case\\\\\\\"easy showSpentTime\\\\\\\":t=\\\\\\\"spent_time\\\\\\\";break;default:t=\\\\\\\"text\\\\\\\"}(null==(e=this.widgets_values)?void 0:e.length)\\\\u0026\\\\u0026s.call(this,this.widgets_values,t)})}if(ui.includes(n)){let t=function(e){if(this.widgets){const t=this.widgets.findIndex((e=\\\\u003e\\\\\\\"info\\\\\\\"===e.name));if(-1!==t\\\\u0026\\\\u0026this.widgets[t]){this.widgets[t].value=e}}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments);var i=\\\\\\\"\\\\\\\";for(let t=0;t\\\\u003ce.text.length;t++)i+=e.text[t];t.call(this,i)}}if(\\\\\\\"easy promptLine\\\\\\\"==n\\\\u0026\\\\u0026(e.prototype.onAdded=async function(){a\\\\u0026\\\\u0026a.apply(this,[]);let e=this.widgets.find((e=\\\\u003e\\\\\\\"prompt\\\\\\\"==e.name));this.addWidget(\\\\\\\"button\\\\\\\",\\\\\\\"get values from COMBO link\\\\\\\",\\\\\\\"\\\\\\\",(()=\\\\u003e{var t,s;const n=(null==(s=null==(t=this.outputs[1])?void 0:t.links)?void 0:s.length)\\\\u003e0?this.outputs[1].links[0]:null,a=i.graph._nodes.find((e=\\\\u003e{var t;return null==(t=e.inputs)?void 0:t.find((e=\\\\u003ee.link==n))}));if(n\\\\u0026\\\\u0026a){const t=a.inputs.find((e=\\\\u003ee.link==n)).widget.name,i=a.widgets.find((e=\\\\u003ee.name==t));let s=(null==i?void 0:i.options.values)||null;s\\\\u0026\\\\u0026(s=s.join(\\\\\\\"\\\\\\\\n\\\\\\\"),e.value=s)}else Ye.error(Ne(\\\\\\\"No COMBO link\\\\\\\"),3e3)}),{serialize:!1})}),ri.includes(t.name)){let t=function(e){var t=\\\\\\\"\\\\\\\";for(let i=0;i\\\\u003ce.length;i++)t+=e[i];return t},i=function(e,t=\\\\\\\"positive\\\\\\\"){if(this.widgets){const i=this.widgets.findIndex((e=\\\\u003ee.name===t+\\\\\\\"_prompt\\\\\\\")),s=\\\\\\\"comfy-multiline-input wildcard_\\\\\\\"+t+\\\\\\\"_\\\\\\\"+this.id.toString();if(-1==i\\\\u0026\\\\u0026e){const i=document.createElement(\\\\\\\"textarea\\\\\\\");i.className=s,i.placeholder=\\\\\\\"Wildcard Prompt (\\\\\\\"+t+\\\\\\\")\\\\\\\";const n=this.addDOMWidget(t+\\\\\\\"_prompt\\\\\\\",\\\\\\\"customtext\\\\\\\",i,{getValue:e=\\\\u003ei.value,setValue(e){i.value=e},serialize:!1});n.inputEl=i,n.inputEl.readOnly=!0,i.addEventListener(\\\\\\\"input\\\\\\\",(()=\\\\u003e{var e;null==(e=n.callback)||e.call(n,n.value)})),n.value=e}else if(this.widgets[i])if(e){this.widgets[i].value=e}else{this.widgets.splice(i,1);const e=document.getElementsByClassName(s);e\\\\u0026\\\\u0026e[0]\\\\u0026\\\\u0026e[0].remove()}}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments);const s=t(e.positive),n=t(e.negative);i.call(this,s,\\\\\\\"positive\\\\\\\"),i.call(this,n,\\\\\\\"negative\\\\\\\")}}if([\\\\\\\"easy sv3dLoader\\\\\\\"].includes(t.name)){let t=function(e,t,i){switch(e){case\\\\\\\"azimuth\\\\\\\":return i.readOnly=!0,i.style.opacity=.6,\\\\\\\"0:(0.0,0.0)\\\\\\\"+(t\\\\u003e1?`\\\\\\\\n${t-1}:(360.0,0.0)`:\\\\\\\"\\\\\\\");case\\\\\\\"elevation\\\\\\\":return i.readOnly=!0,i.style.opacity=.6,\\\\\\\"0:(-90.0,0.0)\\\\\\\"+(t\\\\u003e1?`\\\\\\\\n${t-1}:(90.0,0.0)`:\\\\\\\"\\\\\\\");case\\\\\\\"custom\\\\\\\":return i.readOnly=!1,i.style.opacity=1,\\\\\\\"0:(0.0,0.0)\\\\\\\\n9:(180.0,0.0)\\\\\\\\n20:(360.0,0.0)\\\\\\\"}};e.prototype.onNodeCreated=async function(){o\\\\u0026\\\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\\\u003e\\\\\\\"easing_mode\\\\\\\"==e.name)),i=this.widgets.find((e=\\\\u003e\\\\\\\"batch_size\\\\\\\"==e.name)),s=this.widgets.find((e=\\\\u003e\\\\\\\"scheduler\\\\\\\"==e.name));setTimeout((n=\\\\u003e{s.value||(s.value=t(e.value,i.value,s.inputEl))}),1),e.callback=e=\\\\u003e{s.value=t(e,i.value,s.inputEl)},i.callback=i=\\\\u003e{s.value=t(e.value,i,s.inputEl)}}}if(li.includes(n)\\\\u0026\\\\u0026(e.prototype.onNodeCreated=async function(){o\\\\u0026\\\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\\\u003e[\\\\\\\"seed_num\\\\\\\",\\\\\\\"seed\\\\\\\"].includes(e.name))),s=this.widgets.find((e=\\\\u003e[\\\\\\\"control before generate\\\\\\\",\\\\\\\"control after generate\\\\\\\",\\\\\\\"control_before_generate\\\\\\\",\\\\\\\"control_after_generate\\\\\\\"].includes(e.name)));if(\\\\\\\"easy seed\\\\\\\"==t.name\\\\u0026\\\\u0026s){const t=this.addWidget(\\\\\\\"button\\\\\\\",\\\\\\\"\\ud83c\\udfb2 Manual Random Seed\\\\\\\",null,(t=\\\\u003e{\\\\\\\"fixed\\\\\\\"!=s.value\\\\u0026\\\\u0026(s.value=\\\\\\\"fixed\\\\\\\"),e.value=Math.floor(Math.random()*Oe),i.queuePrompt(0,1)}),{serialize:!1});e.linkedWidgets=[t,s]}},e.prototype.onAdded=async function(){a\\\\u0026\\\\u0026a.apply(this,[]);const e=this.widgets.find((e=\\\\u003e[\\\\\\\"seed_num\\\\\\\",\\\\\\\"seed\\\\\\\"].includes(e.name))),t=this.widgets.find((e=\\\\u003e[\\\\\\\"control before generate\\\\\\\",\\\\\\\"control after generate\\\\\\\",\\\\\\\"control_before_generate\\\\\\\",\\\\\\\"control_after_generate\\\\\\\"].includes(e.name)));t\\\\u0026\\\\u0026setTimeout((i=\\\\u003e{[\\\\\\\"control before generate\\\\\\\",\\\\\\\"control_before_generate\\\\\\\"].includes(t.name)\\\\u0026\\\\u00260===e.value\\\\u0026\\\\u0026(e.value=Math.floor(Math.random()*Oe))}),1)}),\\\\\\\"easy convertAnything\\\\\\\"==n\\\\u0026\\\\u0026(e.prototype.onNodeCreated=async function(){o\\\\u0026\\\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\\\u003e\\\\\\\"output_type\\\\\\\"==e.name)),t=t=\\\\u003e{this.outputs[0].type=e.value.toUpperCase(),this.outputs[0].name=e.value,this.outputs[0].label=e.value};setTimeout((e=\\\\u003et()),10),e.callback=e=\\\\u003et()}),\\\\\\\"easy imageInsetCrop\\\\\\\"==n){let t=function(e){const t=e.widgets[0];for(let i=1;i\\\\u003c=4;i++)\\\\\\\"Pixels\\\\\\\"===t.value?(e.widgets[i].options.step=80,void 0!==e.widgets[i].options.step2\\\\u0026\\\\u0026(e.widgets[i].options.step2=8),e.widgets[i].options.max=8192):(e.widgets[i].options.step=10,void 0!==e.widgets[i].options.step2\\\\u0026\\\\u0026(e.widgets[i].options.step2=1),e.widgets[i].options.max=99)};e.prototype.onAdded=async function(e){const i=this.widgets[0];let s=i.callback;i.callback=(...e)=\\\\u003e{t(this),s\\\\u0026\\\\u0026s.apply(i,[...e])},setTimeout((e=\\\\u003e{t(this)}),1)}}if(hi.includes(n)){const t=e=\\\\u003e{switch(n){case\\\\\\\"easy forLoopStart\\\\\\\":case\\\\\\\"easy whileLoopStart\\\\\\\":return 0;case\\\\\\\"easy forLoopEnd\\\\\\\":case\\\\\\\"easy whileLoopEnd\\\\\\\":return 1}},i=e=\\\\u003e{switch(n){case\\\\\\\"easy forLoopStart\\\\\\\":return 2;case\\\\\\\"easy forLoopEnd\\\\\\\":case\\\\\\\"easy whileLoopEnd\\\\\\\":return 0;case\\\\\\\"easy whileLoopStart\\\\\\\":return 1}};e.prototype.onNodeCreated=async function(){if(\\\\\\\"easy loadImagesForLoop\\\\\\\"==n\\\\u0026\\\\u0026(this.outputs[0].shape=5),ci.includes(n)){const e=this.inputs.findIndex((e=\\\\u003e\\\\\\\"flow\\\\\\\"===e.name)),s=this.outputs.findIndex((e=\\\\u003e\\\\\\\"flow\\\\\\\"===e.name));-1!==e\\\\u0026\\\\u0026(this.inputs[e].shape=5),-1!==s\\\\u0026\\\\u0026(this.outputs[s].shape=5),this.inputs=this.inputs.filter(((e,i)=\\\\u003ei\\\\u003c=t()||e.widget)),this.outputs=this.outputs.filter(((e,t)=\\\\u003et\\\\u003c=i())),St(this)}return Ai.includes(n)\\\\u0026\\\\u0026(\\\\\\\"easy textIndexSwitch\\\\\\\"==n\\\\u0026\\\\u0026(this.widgets=this.widgets.filter(((e,t)=\\\\u003et\\\\u003c=2))),this.inputs=this.inputs.filter(((e,t)=\\\\u003et\\\\u003c=1||e.widget)),St(this)),null==o?void 0:o.apply(this,arguments)},e.prototype.onConnectionsChange=function(e,s,a,o){var l,r;if(o)if(1==e){let e=this.inputs.every((e=\\\\u003enull!==e.link||e.widget)),i=this.inputs.filter((e=\\\\u003e![\\\\\\\"condition\\\\\\\",\\\\\\\"index\\\\\\\",\\\\\\\"total\\\\\\\"].includes(e.name)));if(ci.includes(n)){if(e){if(i.length\\\\u003e=20)return void Ye.warn(Ne(\\\\\\\"The maximum number of inputs is 20\\\\\\\"));let e=i[i.length-1],t=parseInt(e.name.split(\\\\\\\"initial_value\\\\\\\")[1])+1;if(this.inputs.find((e=\\\\u003ee.name===\\\\\\\"initial_value\\\\\\\"+t)))return;let s=\\\\\\\"initial_value\\\\\\\"+t,n=\\\\\\\"value\\\\\\\"+t;this.addInput(s,\\\\\\\"*\\\\\\\"),this.addOutput(n,\\\\\\\"*\\\\\\\")}else if(!a){const e=t();let i=this.inputs.findLastIndex((e=\\\\u003ee.link));if(s\\\\u003e=e\\\\u0026\\\\u0026(-1===i||s\\\\u003e=i)){let e=this.inputs[s];if(!e.name||[\\\\\\\"condition\\\\\\\",\\\\\\\"total\\\\\\\"].includes(e.name))return;let t=parseInt(e.name.split(\\\\\\\"initial_value\\\\\\\")[1])+1,i=this.inputs.findIndex((e=\\\\u003ee.name===\\\\\\\"initial_value\\\\\\\"+t)),n=this.outputs.findIndex((e=\\\\u003ee.name===\\\\\\\"value\\\\\\\"+t));-1!==i\\\\u0026\\\\u0026this.removeInput(i),-1!==n\\\\u0026\\\\u0026this.removeOutput(n)}}}else if(Ai.includes(n))if(e){if(i.length\\\\u003e=20)return void Ye.warn(Ne(\\\\\\\"The maximum number of inputs is 20\\\\\\\"));let e=mi[n]+i.length;this.addInput(e,\\\\\\\"*\\\\\\\")}else a||s==this.inputs.length-2\\\\u0026\\\\u0026this.removeInput(s+1)}else if(2==e){let e=this.outputs.filter((e=\\\\u003e![\\\\\\\"flow\\\\\\\",\\\\\\\"index\\\\\\\"].includes(e.name))),t=e.every((e=\\\\u003e{var t;return(null==(t=e.links)?void 0:t.length)\\\\u003e0}));if(ci.includes(n)){if(t){if(e.length\\\\u003e=20)return void Ye.warn(Ne(\\\\\\\"The maximum number of outputs is 20\\\\\\\"));let t=e[e.length-1],i=parseInt(t.name.split(\\\\\\\"value\\\\\\\")[1])+1;if(this.inputs.find((e=\\\\u003ee.name===\\\\\\\"initial_value\\\\\\\"+i)))return;if(this.outputs.find((e=\\\\u003ee.name===\\\\\\\"value\\\\\\\"+i)))return;let s=\\\\\\\"initial_value\\\\\\\"+i,n=\\\\\\\"value\\\\\\\"+i;this.addInput(s,\\\\\\\"*\\\\\\\"),this.addOutput(n,\\\\\\\"*\\\\\\\")}else if(!a){const e=i();let t=o.origin_slot,s=this.outputs.findLastIndex((e=\\\\u003e{var t;return(null==(t=e.links)?void 0:t.length)\\\\u003e0}));if(t\\\\u003e=e\\\\u0026\\\\u0026(-1===s||t\\\\u003e=s)){let e=this.outputs[t];if(!e.name||[\\\\\\\"flow\\\\\\\",\\\\\\\"index\\\\\\\"].includes(e.name))return;let i=parseInt(e.name.split(\\\\\\\"value\\\\\\\")[1])+1,s=this.inputs.findIndex((e=\\\\u003ee.name===\\\\\\\"initial_value\\\\\\\"+i)),n=this.outputs.findIndex((e=\\\\u003ee.name===\\\\\\\"value\\\\\\\"+i));if(-1!==s\\\\u0026\\\\u0026(null==(l=this.inputs[s])?void 0:l.link))return;-1!==s\\\\u0026\\\\u0026this.removeInput(s),-1!==n\\\\u0026\\\\u0026this.removeOutput(n)}}}else if(pi.includes(n))if(t){if(e.length\\\\u003e=20)return void Ye.warn(Ne(\\\\\\\"The maximum number of outputs is 20\\\\\\\"));let t=mi[n]+e.length;this.addOutput(t,\\\\\\\"*\\\\\\\")}else if(!a){let t=o.origin_slot;t==this.outputs.length-2\\\\u0026\\\\u00260==(null==(r=e[t].links)?void 0:r.length)\\\\u0026\\\\u0026this.removeOutput(t+1)}}}}if([\\\\\\\"easy fluxLoader\\\\\\\",\\\\\\\"easy fullLoader\\\\\\\"].includes(n)\\\\u0026\\\\u0026(e.prototype.onConnectionsChange=async function(e,t){d\\\\u0026\\\\u0026d.apply(this,[]);const i=this.inputs.find((e=\\\\u003e\\\\\\\"model_override\\\\\\\"===e.name)),s=this.inputs.find((e=\\\\u003e\\\\\\\"vae_override\\\\\\\"===e.name));let n=wt(this,\\\\\\\"ckpt_name\\\\\\\"),a=wt(this,\\\\\\\"vae_name\\\\\\\");if((null==i?void 0:i.link)\\\\u0026\\\\u00260==t){const e=(null==n?void 0:n.options.values)||[];setTimeout((t=\\\\u003e{this.widgets[0].value=(null==e?void 0:e[0])||\\\\\\\"None\\\\\\\",bt(this,n,!(null==i?void 0:i.link))}),1)}else bt(this,n,!(null==i?void 0:i.link));if(!(null==s?void 0:s.link)||1!=t\\\\u0026\\\\u00262!=t)bt(this,a,!(null==s?void 0:s.link));else{let e=this.widgets.findIndex((e=\\\\u003e\\\\\\\"vae_name\\\\\\\"==e.name));setTimeout((t=\\\\u003e{this.widgets[e].value=\\\\\\\"Baked VAE\\\\\\\",bt(this,a,!(null==s?void 0:s.link))}),1)}}),di.includes(n)||-1!==n.indexOf(\\\\\\\"workflow\\\\\\\")){const i=(null==(s=null==t?void 0:t.input)?void 0:s.required)||{};if(!i.image_output\\\\u0026\\\\u0026!i[\\\\\\\"\\u56fe\\u50cf\\u8f93\\u51fa\\\\\\\"]\\\\u0026\\\\u0026!i[\\\\\\\"\\u89c6\\u9891\\u8f93\\u51fa\\\\\\\"])return;e.prototype.onDrawBackground=function(e){try{si(this)}catch(t){}}}},nodeCreated(e){if(e.comfyClass.startsWith(\\\\\\\"easy \\\\\\\")){if(e.widgets)for(const i of e.widgets){if(!ni.includes(i.name))continue;let t=i.value;fi(e,i),Object.defineProperty(i,\\\\\\\"value\\\\\\\",{get:e=\\\\u003et,set(s){s!==t\\\\u0026\\\\u0026(t=s,requestAnimationFrame((t=\\\\u003e{fi(e,i)})))}})}const t=e.comfyClass;if(\\\\\\\"easy preDetailerFix\\\\\\\"==t){const t=e.widgets.find((e=\\\\u003e\\\\\\\"customtext\\\\\\\"===e.type));if(!t)return;t.dynamicPrompts=!1,t.inputEl.placeholder=\\\\\\\"wildcard spec: if kept empty, this option will be ignored\\\\\\\",t.serializeValue=()=\\\\u003et.value}if([\\\\\\\"easy wildcards\\\\\\\",\\\\\\\"easy wildcardsMatrix\\\\\\\"].includes(t)){const t=e.widgets.find((e=\\\\u003e\\\\\\\"text\\\\\\\"==e.name));let i=1;Object.defineProperty(e.widgets[i],\\\\\\\"value\\\\\\\",{set:e=\\\\u003e{if(\\\\\\\"Select the LoRA to add to the text\\\\\\\"!=e){let i=e;i.endsWith(\\\\\\\".safetensors\\\\\\\")\\\\u0026\\\\u0026(i=i.slice(0,-12)),t.value+=`\\\\u003clora:${i}\\\\u003e`}},get:e=\\\\u003e\\\\\\\"Select the LoRA to add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+1],\\\\\\\"value\\\\\\\",{set:e=\\\\u003e{\\\\\\\"Select the Wildcard to add to the text\\\\\\\"!=e\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"!=t.value\\\\u0026\\\\u0026(t.value+=\\\\\\\", \\\\\\\"),t.value+=e)},get:e=\\\\u003e\\\\\\\"Select the Wildcard to add to the text\\\\\\\"}),e.widgets[i].serializeValue=e=\\\\u003e\\\\\\\"Select the LoRA to add to the text\\\\\\\",e.widgets[i+1].serializeValue=e=\\\\u003e\\\\\\\"Select the Wildcard to add to the text\\\\\\\"}if(\\\\\\\"easy prompt\\\\\\\"==t){const t=e.widgets.find((e=\\\\u003e\\\\\\\"text\\\\\\\"==e.name));let i=1;Object.defineProperty(e.widgets[i],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"Select the prefix to add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\" \\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"Select the prefix to add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+1],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83d\\udc64Select the subject add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+1])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\" \\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83d\\udc64Select the subject add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+2],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83c\\udfacSelect the action add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+2])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\",\\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83c\\udfacSelect the action add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+3],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83d\\udc5aSelect the clothes add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+3])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\",\\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83d\\udc5aSelect the clothes add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+4],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\u2600\\ufe0fSelect the illumination environment add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+4])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\",\\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\u2600\\ufe0fSelect the illumination environment add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+5],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83c\\udf9e\\ufe0fSelect the background add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+5])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\" \\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83c\\udf9e\\ufe0fSelect the background add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+6],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83d\\udd1eSelect the nsfw add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+6])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\",\\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83d\\udd1eSelect the nsfw add to the text\\\\\\\"}),e.widgets[i].serializeValue=e=\\\\u003e\\\\\\\"Select the prefix add to the text\\\\\\\",e.widgets[i+1].serializeValue=e=\\\\u003e\\\\\\\"\\ud83d\\udc64Select the subject add to the text\\\\\\\",e.widgets[i+2].serializeValue=e=\\\\u003e\\\\\\\"\\ud83c\\udfacSelect the action add to the text\\\\\\\",e.widgets[i+3].serializeValue=e=\\\\u003e\\\\\\\"\\ud83d\\udc5aSelect the clothes add to the text\\\\\\\",e.widgets[i+4].serializeValue=e=\\\\u003e\\\\\\\"\\u2600\\ufe0fSelect the illumination environment add to the text\\\\\\\",e.widgets[i+5].serializeValue=e=\\\\u003e\\\\\\\"\\ud83c\\udf9e\\ufe0fSelect the background add to the text\\\\\\\",e.widgets[i+6].serializeValue=e=\\\\u003e\\\\\\\"\\ud83d\\udd1eSelect the nsfw add to the text\\\\\\\"}if(ui.includes(t)){const t=document.createElement(\\\\\\\"textarea\\\\\\\");t.className=\\\\\\\"comfy-multiline-input\\\\\\\",t.readOnly=!0;const i=e.addDOMWidget(\\\\\\\"info\\\\\\\",\\\\\\\"customtext\\\\\\\",t,{getValue:e=\\\\u003et.value,setValue:e=\\\\u003et.value=e,serialize:!1});i.inputEl=t,t.addEventListener(\\\\\\\"input\\\\\\\",(()=\\\\u003e{var e;null==(e=i.callback)||e.call(i,i.value)}))}}}});const gi=LiteGraph.LGraphNode;fe.registerExtension({name:\\\\\\\"easy bookmark\\\\\\\",registerCustomNodes(){class e extends gi{constructor(){super(\\\\\\\"\\ud83d\\udd16\\\\\\\"),v(this,\\\\\\\"type\\\\\\\",\\\\\\\"easy bookmark\\\\\\\"),v(this,\\\\\\\"title\\\\\\\",\\\\\\\"\\ud83d\\udd16\\\\\\\"),v(this,\\\\\\\"slot_start_y\\\\\\\",-20),v(this,\\\\\\\"___collapsed_width\\\\\\\",0),v(this,\\\\\\\"isVirtualNode\\\\\\\",!0),v(this,\\\\\\\"serialize_widgets\\\\\\\",!0),v(this,\\\\\\\"keypressBound\\\\\\\",null),this.addWidget(\\\\\\\"text\\\\\\\",\\\\\\\"shortcut_key\\\\\\\",\\\\\\\"1\\\\\\\",(e=\\\\u003e{\\\\\\\"\\\\\\\"!==(e=e.trim()[0]||\\\\\\\"1\\\\\\\")\\\\u0026\\\\u0026(this.title=\\\\\\\"\\ud83d\\udd16 \\\\\\\"+e)}),{y:8}),this.addWidget(\\\\\\\"number\\\\\\\",\\\\\\\"zoom\\\\\\\",1,(e=\\\\u003e{}),{y:8+LiteGraph.NODE_WIDGET_HEIGHT+4,max:2,min:.5,precision:2}),this.keypressBound=this.onKeypress.bind(this)}get _collapsed_width(){return this.___collapsed_width}set _collapsed_width(e){const t=fe.canvas,i=t.canvas.getContext(\\\\\\\"2d\\\\\\\");if(i){const e=i.font;i.font=t.title_text_font,this.___collapsed_width=40+i.measureText(this.title).width,i.font=e}}onAdded(){setTimeout((e=\\\\u003e{const t=this.widgets[0].value;t\\\\u0026\\\\u0026(this.title=\\\\\\\"\\ud83d\\udd16 \\\\\\\"+t)}),1),window.addEventListener(\\\\\\\"keydown\\\\\\\",this.keypressBound)}onRemoved(){window.removeEventListener(\\\\\\\"keydown\\\\\\\",this.keypressBound)}onKeypress(e){const t=e.target;[\\\\\\\"input\\\\\\\",\\\\\\\"textarea\\\\\\\"].includes(t.localName)||this.widgets[0]\\\\u0026\\\\u0026e.key.toLocaleLowerCase()===this.widgets[0].value.toLocaleLowerCase()\\\\u0026\\\\u0026this.canvasToBookmark()}canvasToBookmark(){var e,t;const i=fe.canvas;(null==(e=null==i?void 0:i.ds)?void 0:e.offset)\\\\u0026\\\\u0026(i.ds.offset[0]=16-this.pos[0],i.ds.offset[1]=40-this.pos[1]),null!=(null==(t=null==i?void 0:i.ds)?void 0:t.scale)\\\\u0026\\\\u0026(i.ds.scale=Number(this.widgets[1].value||1)),i.setDirty(!0,!0)}}LiteGraph.registerNodeType(\\\\\\\"easy bookmark\\\\\\\",Object.assign(e,{title:\\\\\\\"Bookmark \\ud83d\\udd16\\\\\\\"})),e.category=\\\\\\\"EasyUse/Util\\\\\\\"}}),fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.ChainNode\\\\\\\",init(){fe.canvas._mousemove_callback=e=\\\\u003e{xe(\\\\\\\"EasyUse.Nodes.ChainGetSet\\\\\\\",null)\\\\u0026\\\\u0026((e=!1,t={})=\\\\u003e{var i,s,n,a,o;const l=Dt();if(!l||l.length\\\\u003c1)return;const r=Lt();if(0===r.length)return;let d=t.inputX||160,u=t.ouputX||60;if(r.filter((e=\\\\u003eMt(e))).length\\\\u003e1)return;for(const A of r){let a=t.inputY||10,o=t.outputY||30;const l=[],c=A.id;if(A.graph){Rt[c]||(Rt[c]=[]);for(const e of A.inputs??[]){const t=e.link;if(!t)continue;const{origin_id:i,target_slot:s}=Ct(t),n=xt(i);if(!n)continue;if(!Mt(n))continue;let o=A.getConnectionPos(!0,s);Rt[c][s]||(Rt[c][s]=o),!Rt[c]||Rt[c][s][1]===o[1]\\\\u0026\\\\u0026Rt[c][s][0]===o[0]||(d=o[0]-Rt[c][s][0],a=o[1]-Rt[c][s][1],n.pos=[n.pos[0]+d,n.pos[1]+a]),Rt[c][s]=o,l.push(n)}Pt[c]||(Pt[c]=[]);for(const e of A.outputs??[])if(e.links\\\\u0026\\\\u0026A.graph)for(const t of e.links){const{target_id:e,target_slot:s,origin_slot:n}=Ct(t),a=xt(e);if(!a)continue;if(!Mt(a))continue;const r=null==(i=a.outputs)?void 0:i.links;if((null==r?void 0:r.length)\\\\u003e1)return;const d=A.getConnectionPos(!1,n);Pt[c][n]||(Pt[c][n]=d),!Pt[c]||Pt[c][n][0]===d[0]\\\\u0026\\\\u0026Pt[c][n][1]===d[1]||(u=d[0]-Pt[c][n][0],o=d[1]-Pt[c][n][1],a.pos=[a.pos[0]+u,a.pos[1]+o]),Pt[c][n]=d,l.push(a)}if(e\\\\u0026\\\\u00261===r.length){const e=[A,...l];(null==(n=null==(s=A.graph)?void 0:s.list_of_graphcanvas)?void 0:n[0]).selectNodes(e)}}}const c=r[0];if(!c)return;(null==(o=null==(a=c.graph)?void 0:a.list_of_graphcanvas)?void 0:o[0]).setDirty(!0,!0)})()};const e=LGraphCanvas.prototype.showLinkMenu;LGraphCanvas.prototype.showLinkMenu=st(e,(function(t,i){return i.shiftKey?(((e,t=!1)=\\\\u003e{var i,s,n,a,o,l,r,d,u,c;const{type:A}=e;if(\\\\\\\"*\\\\\\\"===A)return;let{origin_id:p,target_id:h,origin_slot:m,target_slot:f}=e,g=xt(p),v=xt(h);if(!g||!v)return!1;if(\\\\\\\"Reroute\\\\\\\"===g.type){let e=0;[g,e]=jt(g),p=null==g?void 0:g.id,m=e,void 0!==m\\\\u0026\\\\u0026-1!==m||(m=0)}if(\\\\\\\"Reroute\\\\\\\"===v.type\\\\u0026\\\\u0026(v=Ut(v),h=null==v?void 0:v.id,f=null==v?void 0:v.inputs.findIndex((e=\\\\u003ee.type===A)),void 0!==f\\\\u0026\\\\u0026-1!==f||(f=0)),void 0===p||void 0===h||!g||!v)return!1;if(t\\\\u0026\\\\u0026(Mt(g)||Mt(v)))return!1;let y=It((null==(i=v.getInputInfo(f))?void 0:i.name)??A.toLowerCase());y||(y=It((null==(n=null==(s=null==g?void 0:g.outputs)?void 0:s[m])?void 0:n.name)??(null==(o=null==(a=null==g?void 0:g.outputs)?void 0:a[m])?void 0:o.type.toString())??y+`_from_${p}_to_${h}`));let w,b=!1,_=!1;if(Mt(g))y=_t(g),_=!0;else{const e=null==(r=null==(l=g.outputs)?void 0:l[m])?void 0:r.links;if(e)for(const t of e){const e=xt((null==(d=Ct(t))?void 0:d.target_id)??-1);e\\\\u0026\\\\u0026Mt(e)\\\\u0026\\\\u0026Ot(e)\\\\u0026\\\\u0026(y=_t(e),_=!0)}if(!_){for(const e of Dt()){if(y!==_t(e)||!Ot(e))continue;const t=null==(u=e.inputs[0])?void 0:u.link;(null==(c=Ct(t))?void 0:c.origin_id)===g.id?_=!0:b=!0}b\\\\u0026\\\\u0026(y+=`_from_${p}_to_${h}`)}}if(!_){w=LiteGraph.createNode(\\\\\\\"easy setNode\\\\\\\"),w.is_auto_link=!0;const e=g.getConnectionPos(!1,m);w.pos=[e[0]+20,e[1]],w.inputs[0].name=y,w.inputs[0].type=A,w.inputs[0].widget=v.inputs[f].widget,Gt(w,y),zt(w),w.flags.collapsed=!0;let t=[];g.widgets?t=Object.values(g.widgets).map((e=\\\\u003ee.value)):g.widgets_values\\\\u0026\\\\u0026(t=JSON.parse(JSON.stringify(g.widgets_values))),g.connect(m,w,0),g.widgets_values=t,\\\\\\\"PrimitiveNode\\\\\\\"===g.type\\\\u0026\\\\u0026setTimeout((()=\\\\u003e{if(g){g.connect(m,w,0);for(const[e,i]of t.entries())Gt(g,i,e);null!==w\\\\u0026\\\\u0026w.setSize(w.computeSize())}}))}const S=LiteGraph.createNode(\\\\\\\"easy getNode\\\\\\\"),x=v.getConnectionPos(!0,f);S.pos=[x[0]-150,x[1]],S.outputs[0].name=y,S.outputs[0].type=A,S.outputs[0].widget=v.inputs[f].widget,zt(S),Gt(S,y),null===S||(S.flags.collapsed=!0,S.setSize(S.computeSize()),S.connect(0,v,f))})(t),!1):(e.apply(this,[t,i]),!1)}))}});const vi=async()=\\\\u003e{try{const{Running:e,Pending:t}=await ge.getQueue();if(e.length\\\\u003e0||t.length\\\\u003e0)return void Ye.error(Ne(\\\\\\\"Clean Failed\\\\\\\")+\\\\\\\":\\\\\\\"+Ne(\\\\\\\"Please stop all running tasks before cleaning GPU\\\\\\\"));200==(await ge.fetchApi(\\\\\\\"/easyuse/cleangpu\\\\\\\",{method:\\\\\\\"POST\\\\\\\"})).status?Ye.success(Ne(\\\\\\\"Clean SuccessFully\\\\\\\")):Ye.error(Ne(\\\\\\\"Clean Failed\\\\\\\"))}catch(e){}};let yi={},wi=!1;function bi(e,t,i,s,n){var a=LGraphCanvas.active_canvas,o=a.getCanvasWindow(),l=a.graph;if(l)return function e(t,s){var r=LiteGraph.getNodeTypesCategories(a.filter||l.filter).filter((function(e){return e.startsWith(t)})),d=[];r.map((function(i){if(i){var s=new RegExp(\\\\\\\"^(\\\\\\\"+t+\\\\\\\")\\\\\\\"),n=i.replace(s,\\\\\\\"\\\\\\\").split(\\\\\\\"/\\\\\\\")[0],a=\\\\\\\"\\\\\\\"===t?n+\\\\\\\"/\\\\\\\":t+n+\\\\\\\"/\\\\\\\",o=n;-1!=o.indexOf(\\\\\\\"::\\\\\\\")\\\\u0026\\\\u0026(o=o.split(\\\\\\\"::\\\\\\\")[1]),-1===d.findIndex((function(e){return e.value===a}))\\\\u0026\\\\u0026d.push({value:a,content:o,has_submenu:!0,callback:function(t,i,s,n){e(t.value,n)}})}})),LiteGraph.getNodeTypesInCategory(t.slice(0,-1),a.filter||l.filter).map((function(e){if(!e.skip_list){var t={value:e.type,content:e.title,has_submenu:!1,callback:function(e,t,i,s){var o=s.getFirstEvent();a.graph.beforeChange();var l=LiteGraph.createNode(e.value);l\\\\u0026\\\\u0026(l.pos=a.convertEventToCanvasOffset(o),a.graph.add(l)),n\\\\u0026\\\\u0026n(l),a.graph.afterChange()}};d.push(t)}}));const u=xe(\\\\\\\"EasyUse.ContextMenu.NodesSort\\\\\\\",null);\\\\\\\"\\\\\\\"===t\\\\u0026\\\\u0026u\\\\u0026\\\\u0026(d=function(e){let t=[],i=[];return e.forEach((e=\\\\u003e{(null==e?void 0:e.value)\\\\u0026\\\\u0026Me.includes(e.value.split(\\\\\\\"/\\\\\\\")[0])?t.push(e):i.push(e)})),[{title:Ne(\\\\\\\"ComfyUI Basic\\\\\\\"),is_category_title:!0},...t,{title:Ne(\\\\\\\"Others A~Z\\\\\\\"),is_category_title:!0},...i.sort(((e,t)=\\\\u003ee.content.localeCompare(t.content)))]}(d)),new LiteGraph.ContextMenu(d,{event:i,parentMenu:s},o)}(\\\\\\\"\\\\\\\",s),!1}function _i(e){try{return encodeURIComponent(e).replace(/[!'()*]/g,(e=\\\\u003e`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}catch(t){return e}}function Si(e,t,i){var s=this;i=i||{};var n=document.createElement(\\\\\\\"div\\\\\\\");n.className=\\\\\\\"litemenu-entry submenu\\\\\\\";var a=!1;function o(e){var t=this.value,n=!0;(s.current_submenu\\\\u0026\\\\u0026s.current_submenu.close(e),i.callback)\\\\u0026\\\\u0026(!0===i.callback.call(this,t,i,e,s,i.node)\\\\u0026\\\\u0026(n=!1));if(t){if(t.callback\\\\u0026\\\\u0026!i.ignore_item_callbacks\\\\u0026\\\\u0026!0!==t.disabled)!0===t.callback.call(this,t,i,e,s,i.extra)\\\\u0026\\\\u0026(n=!1);if(t.submenu){if(!t.submenu.options)throw\\\\\\\"ContextMenu submenu needs options\\\\\\\";new s.constructor(t.submenu.options,{callback:t.submenu.callback,event:e,parentMenu:s,ignore_item_callbacks:t.submenu.ignore_item_callbacks,title:t.submenu.title,extra:t.submenu.extra,autoopen:i.autoopen}),n=!1}}n\\\\u0026\\\\u0026!s.lock\\\\u0026\\\\u0026s.close()}return null===t?n.classList.add(\\\\\\\"separator\\\\\\\"):t.is_category_title?(n.classList.remove(\\\\\\\"litemenu-entry\\\\\\\"),n.classList.remove(\\\\\\\"submenu\\\\\\\"),n.classList.add(\\\\\\\"litemenu-title\\\\\\\"),n.innerHTML=t.title):(n.innerHTML=t\\\\u0026\\\\u0026t.title?t.title:e,n.value=t,t\\\\u0026\\\\u0026(t.disabled\\\\u0026\\\\u0026(a=!0,n.classList.add(\\\\\\\"disabled\\\\\\\")),(t.submenu||t.has_submenu)\\\\u0026\\\\u0026n.classList.add(\\\\\\\"has_submenu\\\\\\\")),\\\\\\\"function\\\\\\\"==typeof t?(n.dataset.value=e,n.onclick_callback=t):n.dataset.value=t,t.className\\\\u0026\\\\u0026(n.className+=\\\\\\\" \\\\\\\"+t.className)),n\\\\u0026\\\\u0026(null==t?void 0:t.thumbnail)\\\\u0026\\\\u0026(n.addEventListener(\\\\\\\"mouseenter\\\\\\\",Li(n,t,this.root),{passive:!0}),n.addEventListener(\\\\\\\"mouseleave\\\\\\\",ki(),{passive:!0}),n.addEventListener(\\\\\\\"click\\\\\\\",ki(),{passive:!0})),this.root.appendChild(n),a||n.addEventListener(\\\\\\\"click\\\\\\\",o),!a\\\\u0026\\\\u0026i.autoopen\\\\u0026\\\\u0026LiteGraph.pointerListenerAdd(n,\\\\\\\"enter\\\\\\\",(function(e){var t=this.value;if(!t||!t.has_submenu)return;o.call(this,e)})),n}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.ContextMenu\\\\\\\",async setup(){LGraphCanvas.onMenuAdd=bi,xi();const e=LiteGraph.ContextMenu;LiteGraph.ContextMenu=function(t,i){if(!(null==i?void 0:i.callback)||t.some((e=\\\\u003e\\\\\\\"string\\\\\\\"!=typeof e))){if(i.parentMenu);else if(i.extra);else if(i.scale);else{const e=xe(\\\\\\\"EasyUse.ContextMenu.QuickOptions\\\\\\\",null);if(i.hasOwnProperty(\\\\\\\"extra\\\\\\\")\\\\u0026\\\\u0026\\\\\\\"Disable\\\\\\\"!==e){if(\\\\\\\"At the forefront\\\\\\\"==e?t.unshift(null):t.push(null),s=window.location.host,[\\\\\\\"192.168.\\\\\\\",\\\\\\\"10.\\\\\\\",\\\\\\\"127.\\\\\\\",/^172\\\\\\\\.((1[6-9]|2[0-9]|3[0-1])\\\\\\\\.)/].some((e=\\\\u003e\\\\\\\"string\\\\\\\"==typeof e?s.startsWith(e):e.test(s)))){const i={content:`\\\\u003ci class=\\\\\\\"mdi mdi-refresh-circle comfyui-easyuse-error\\\\\\\" style=\\\\\\\"margin-right:2px;font-size:16px\\\\\\\"\\\\u003e\\\\u003c/i\\\\u003e${Ne(\\\\\\\"Reboot ComfyUI\\\\\\\")}`,callback:e=\\\\u003e(async()=\\\\u003e{if(confirm(Ne(\\\\\\\"Are you sure you'd like to reboot the server?\\\\\\\")))try{ge.fetchApi(\\\\\\\"/easyuse/reboot\\\\\\\")}catch(e){}})()};\\\\\\\"At the forefront\\\\\\\"==e?t.unshift(i):t.push(i)}const i=xe(\\\\\\\"EasyUse.Hotkeys.cleanVRAMUsed\\\\\\\",null)?\\\\\\\"(\\\\\\\"+qe(\\\\\\\"Shift+r\\\\\\\")+\\\\\\\")\\\\\\\":\\\\\\\"\\\\\\\",n={content:`\\\\u003ci class=\\\\\\\"mdi mdi-rocket comfyui-easyuse-theme\\\\\\\" style=\\\\\\\"margin-right:2px;font-size:16px\\\\\\\"\\\\u003e\\\\u003c/i\\\\u003e${Ne(\\\\\\\"Cleanup Of VRAM Usage\\\\\\\")} ${i}`,callback:e=\\\\u003evi()};\\\\\\\"At the forefront\\\\\\\"==e?t.unshift(n):t.push(n);const a=xe(\\\\\\\"EasyUse.Hotkeys.toggleNodesMap\\\\\\\",null)?\\\\\\\"(\\\\\\\"+qe(\\\\\\\"Shift+m\\\\\\\")+\\\\\\\")\\\\\\\":\\\\\\\"\\\\\\\",o={content:`\\\\u003ci class=\\\\\\\"mdi mdi-sitemap comfyui-easyuse-warning\\\\\\\" style=\\\\\\\"margin-right:2px;font-size:14px\\\\\\\"\\\\u003e\\\\u003c/i\\\\u003e${Ne(\\\\\\\"Nodes Map\\\\\\\")} ${a}`,callback:e=\\\\u003e{var t,i,s;const n=(null==(t=fe.extensionManager)?void 0:t.sidebarTab)||fe.extensionManager,a=(null==(i=fe.extensionManager.sidebarTab)?void 0:i.activeSidebarTabId)||(null==(s=fe.extensionManager)?void 0:s.activeSidebarTab);n.activeSidebarTabId=a==Pe?null:Pe}};\\\\\\\"At the forefront\\\\\\\"==e?t.unshift(o):t.push(o)}}return e.apply(this,[...arguments])}{const s=function(e,t){const i=xe(\\\\\\\"EasyUse.ContextMenu.ModelsThumbnails\\\\\\\",null),s=xe(\\\\\\\"EasyUse.ContextMenu.SubDirectories\\\\\\\",null);if(!i\\\\u0026\\\\u0026!s)return null;if(wi)return null;const n=[\\\\\\\"ckpt\\\\\\\",\\\\\\\"pt\\\\\\\",\\\\\\\"bin\\\\\\\",\\\\\\\"pth\\\\\\\",\\\\\\\"safetensors\\\\\\\",\\\\\\\"gguf\\\\\\\"];if((null==e?void 0:e.length)\\\\u003e0){const t=null==(a=e[e.length-1])?void 0:a.substring(a.lastIndexOf(\\\\\\\".\\\\\\\")+1);if(!n.includes(t))return null}var a;const o=t.callback,l=[...e];t.callback=null;const r=(e,t)=\\\\u003e{[\\\\\\\"None\\\\\\\",\\\\\\\"\\u65e0\\\\\\\",\\\\\\\"\\u7121\\\\\\\",\\\\\\\"\\u306a\\u3057\\\\\\\"].includes(e.content)?o(\\\\\\\"None\\\\\\\",t):o(l.find((t=\\\\u003et.endsWith(e.content)),t))};if(i\\\\u0026\\\\u0026!s)return e.map((e=\\\\u003e{var t,i;let s=null==(t=yi[e])?void 0:t.folder,n=null==(i=yi[e])?void 0:i.pathIndex;const a=window.location.protocol,o=window.location.host;let l=s?`${`${a}//${o}`}/api/experiment/models/preview/${s}/${n}/${_i(e)}`:\\\\\\\"\\\\\\\";return{folder:s,content:e,fullName:e,title:ve(\\\\\\\"div.comfyui-easyuse-contextmenu-model\\\\\\\",{},[ve(\\\\\\\"span\\\\\\\",{},e)]).outerHTML,thumbnail:l,callback:r}}));const d=e,u={},c=[],A=[];for(const f of d){const e=f.indexOf(\\\\\\\"/\\\\\\\")\\\\u003e-1?\\\\\\\"/\\\\\\\":\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\",t=f.split(e);if(t.length\\\\u003e1){const i=t.shift();u[i]=u[i]||[],u[i].push({value:t.join(e),fullValue:f})}else\\\\\\\"CHOOSE\\\\\\\"===f||f.startsWith(\\\\\\\"DISABLE \\\\\\\")?c.push({value:f,fullValue:f}):A.push({value:f,fullValue:f})}const p=Object.values(u).length,h=[],m=(e,t=\\\\\\\"\\\\\\\",s)=\\\\u003e{var n,a;let o;o=ve(\\\\\\\"div.comfyui-easyuse-contextmenu-model\\\\\\\",{},[ve(\\\\\\\"span\\\\\\\",{},e)]);let l=null==(n=yi[s])?void 0:n.folder,d=null==(a=yi[s])?void 0:a.pathIndex;const u=window.location.protocol,c=window.location.host;let A=l?`${`${u}//${c}`}/api/experiment/models/preview/${l}/${d}/${_i(s)}`:\\\\\\\"\\\\\\\";return{folder:l,content:e,fullName:s,thumbnail:i?A:null,title:o.outerHTML,callback:r}};if(p\\\\u003e0){const e=(t,i)=\\\\u003e{let s=[],n=[];const a=t.map((({value:e,fullValue:t})=\\\\u003e{const a={},o=e.indexOf(\\\\\\\"/\\\\\\\")\\\\u003e-1?\\\\\\\"/\\\\\\\":\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\",l=e.split(o);if(l.length\\\\u003e1){const e=l.shift();a[e]=a[e]||[],a[e].push({value:l.join(o),fullValue:t})}if(Object.values(u).length\\\\u003e0){let i=Object.keys(a)[0];i\\\\u0026\\\\u0026a[i]?s.push({key:i,value:a[i][0]}):n.push(m(e,i,t))}return m(e,i,t)}));if(s.length\\\\u003e0){let t={};return s.forEach((e=\\\\u003e{t[e.key]=t[e.key]||[],t[e.key].push(e.value)})),[...Object.entries(t).map((t=\\\\u003e({content:t[0],has_submenu:!0,callback:()=\\\\u003e{},submenu:{options:e(t[1],t[0])}}))),...n]}return a};for(const[t,i]of Object.entries(u))h.push({content:t,has_submenu:!0,callback:()=\\\\u003e{},submenu:{options:e(i,t)}})}h.push(...A.map((e=\\\\u003em(e.value,\\\\\\\"\\\\\\\",e.fullValue)))),c.length\\\\u003e0\\\\u0026\\\\u0026h.push(...c.map((e=\\\\u003em(e.value,\\\\\\\"\\\\\\\",e.fullValue))));return h}(t,i);return s?e.call(this,s,i):e.apply(this,[...arguments])}var s},LiteGraph.ContextMenu.prototype=e.prototype,xe(\\\\\\\"EasyUse.ContextMenu.NodesSort\\\\\\\")\\\\u0026\\\\u0026(LiteGraph.ContextMenu.prototype.addItem=Si),document.getElementById(\\\\\\\"graph-canvas\\\\\\\").addEventListener(\\\\\\\"mouseenter\\\\\\\",(e=\\\\u003e{setTimeout((e=\\\\u003e{const t=document.getElementById(\\\\\\\"easyuse-model-thumbnail\\\\\\\");t\\\\u0026\\\\u00260!=t.style.opacity\\\\u0026\\\\u0026(t.style.display=\\\\\\\"none\\\\\\\",t.style.opacity=0,t.style.left=\\\\\\\"0px\\\\\\\",t.style.top=\\\\\\\"0px\\\\\\\")}),100)}))},async beforeRegisterNodeDef(e,t,i){const s=e.prototype.onNodeCreated;[\\\\\\\"CheckpointLoader|pysssss\\\\\\\",\\\\\\\"LoraLoader|pysssss\\\\\\\"].includes(t.name)\\\\u0026\\\\u0026(e.prototype.onNodeCreated=async function(){s\\\\u0026\\\\u0026s.apply(this,[]);let e=wt(this,\\\\\\\"lora_name\\\\\\\")||wt(this,\\\\\\\"ckpt_name\\\\\\\");if(e){let t=e.onClick;e.onClick=function(e){return wi=!0,setTimeout((e=\\\\u003e{wi=!1}),500),t.call(this,e)}}})}});const xi=async()=\\\\u003e{[\\\\\\\"checkpoints\\\\\\\",\\\\\\\"loras\\\\\\\",\\\\\\\"diffusion_models\\\\\\\"].map((async e=\\\\u003e{const t=await ge.getModels(e);(null==t?void 0:t.length)\\\\u003e0\\\\u0026\\\\u0026t.map((t=\\\\u003e{yi[t.name]={folder:e,pathIndex:t.pathIndex}}))}))},Li=(e,t,i)=\\\\u003es=\\\\u003e{var n;const a=t=\\\\u003e{setTimeout((s=\\\\u003e{const n=i.getBoundingClientRect();if(!n)return;const a=document.body.getBoundingClientRect();if(!a)return;const{left:o,top:l}=((e,t,i)=\\\\u003e{const{x:s}=e.getBoundingClientRect();let{top:n,left:a}=t;const{width:o,height:l}=i;return s\\\\u003c=o\\\\u0026\\\\u0026(a+=t.width),t.top\\\\u003c=l||(n=l),{left:a,top:n}})(e,n,a),r=document.getElementById(\\\\\\\"easyuse-model-thumbnail\\\\\\\");r.src=t,r.style.left=`${o}px`,r.style.top=`${l}px`,r.style.display=\\\\\\\"block\\\\\\\",r.style.opacity=1,r.onerror=e=\\\\u003e{r.src=Ge}}),10)};if(null==(n=null==yi?void 0:yi[t.fullName])?void 0:n.img){let e=yi[t.fullName].img;a(\\\\\\\"no_preview_image\\\\\\\"==e?Ge:e.src)}else{let e=new Image;e.src=t.thumbnail,e.onload=i=\\\\u003e{yi[t.fullName].img=e,a(t.thumbnail)},e.onerror=i=\\\\u003e{e=null,yi[t.fullName].img=\\\\\\\"no_preview_image\\\\\\\",a(Ge)}}},ki=()=\\\\u003ee=\\\\u003e{const t=document.getElementById(\\\\\\\"easyuse-model-thumbnail\\\\\\\");t\\\\u0026\\\\u00260!=t.style.opacity\\\\u0026\\\\u0026(t.style.display=\\\\\\\"none\\\\\\\",t.style.opacity=0,t.style.left=\\\\\\\"0px\\\\\\\",t.style.top=\\\\\\\"0px\\\\\\\")};class Ei extends ye{constructor(){super(),this.element.classList.add(\\\\\\\"easyuse-model-metadata\\\\\\\")}show(e){super.show(ve(\\\\\\\"div\\\\\\\",Object.keys(e).map((t=\\\\u003eve(\\\\\\\"div\\\\\\\",[ve(\\\\\\\"label\\\\\\\",{textContent:t}),ve(\\\\\\\"span\\\\\\\",{textContent:e[t]})])))))}}class Ni extends ye{constructor(e){super(),this.name=e,this.element.classList.add(\\\\\\\"easyuse-model-info\\\\\\\")}get customNotes(){return this.metadata[\\\\\\\"easyuse.notes\\\\\\\"]}set customNotes(e){this.metadata[\\\\\\\"easyuse.notes\\\\\\\"]=e}get hash(){return this.metadata[\\\\\\\"easyuse.sha256\\\\\\\"]}async show(e,t){this.type=e;const i=ge.fetchApi(\\\\\\\"/easyuse/metadata/\\\\\\\"+encodeURIComponent(`${e}/${t}`));this.info=ve(\\\\\\\"div\\\\\\\",{style:{flex:\\\\\\\"auto\\\\\\\"}}),this.imgCurrent=0,this.imgList=ve(\\\\\\\"div.easyuse-preview-list\\\\\\\",{style:{display:\\\\\\\"none\\\\\\\"}}),this.imgWrapper=ve(\\\\\\\"div.easyuse-preview\\\\\\\",[ve(\\\\\\\"div.easyuse-preview-group\\\\\\\",[this.imgList])]),this.main=ve(\\\\\\\"main\\\\\\\",{style:{display:\\\\\\\"flex\\\\\\\"}},[this.imgWrapper,this.info]),this.content=ve(\\\\\\\"div.easyuse-model-content\\\\\\\",[ve(\\\\\\\"div.easyuse-model-header\\\\\\\",[ve(\\\\\\\"h2\\\\\\\",{textContent:this.name})]),this.main]);const s=ve(\\\\\\\"div\\\\\\\",{textContent:\\\\\\\"\\u2139\\ufe0f Loading...\\\\\\\",parent:this.content});super.show(this.content),this.metadata=await(await i).json(),this.viewMetadata.style.cursor=this.viewMetadata.style.opacity=\\\\\\\"\\\\\\\",this.viewMetadata.removeAttribute(\\\\\\\"disabled\\\\\\\"),s.remove(),this.addInfo()}createButtons(){const e=super.createButtons();return this.viewMetadata=ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:\\\\\\\"View raw metadata\\\\\\\",disabled:\\\\\\\"disabled\\\\\\\",style:{opacity:.5,cursor:\\\\\\\"not-allowed\\\\\\\"},onclick:e=\\\\u003e{this.metadata\\\\u0026\\\\u0026(new Ei).show(this.metadata)}}),e.unshift(this.viewMetadata),e}parseNote(){if(!this.customNotes)return[];let e=[];const t=new RegExp(\\\\\\\"(\\\\\\\\\\\\\\\\bhttps?:\\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\\/[^\\\\\\\\\\\\\\\\s]+)\\\\\\\",\\\\\\\"g\\\\\\\");let i,s=0;do{let n;i=t.exec(this.customNotes);let a=0;i?(n=i.index,a=i.index+i[0].length):n=this.customNotes.length;let o=this.customNotes.substring(s,n);o\\\\u0026\\\\u0026(o=o.replaceAll(\\\\\\\"\\\\\\\\n\\\\\\\",\\\\\\\"\\\\u003cbr\\\\u003e\\\\\\\"),e.push(ve(\\\\\\\"span\\\\\\\",{innerHTML:o}))),i\\\\u0026\\\\u0026e.push(ve(\\\\\\\"a\\\\\\\",{href:i[0],textContent:i[0],target:\\\\\\\"_blank\\\\\\\"})),s=a}while(i);return e}addInfoEntry(e,t){return ve(\\\\\\\"p\\\\\\\",{parent:this.info},[\\\\\\\"string\\\\\\\"==typeof e?ve(\\\\\\\"label\\\\\\\",{textContent:e+\\\\\\\": \\\\\\\"}):e,\\\\\\\"string\\\\\\\"==typeof t?ve(\\\\\\\"span\\\\\\\",{textContent:t}):t])}async getCivitaiDetails(){const e=await fetch(\\\\\\\"https://civitai.com/api/v1/model-versions/by-hash/\\\\\\\"+this.hash);if(200===e.status)return await e.json();throw 404===e.status?new Error(\\\\\\\"Model not found\\\\\\\"):new Error(`Error loading info (${e.status}) ${e.statusText}`)}addCivitaiInfo(){const e=this.getCivitaiDetails(),t=ve(\\\\\\\"span\\\\\\\",{textContent:\\\\\\\"\\u2139\\ufe0f Loading...\\\\\\\"});return this.addInfoEntry(ve(\\\\\\\"label\\\\\\\",[ve(\\\\\\\"img\\\\\\\",{style:{width:\\\\\\\"18px\\\\\\\",position:\\\\\\\"relative\\\\\\\",top:\\\\\\\"3px\\\\\\\",margin:\\\\\\\"0 5px 0 0\\\\\\\"},src:\\\\\\\"https://civitai.com/favicon.ico\\\\\\\"}),ve(\\\\\\\"span\\\\\\\",{textContent:\\\\\\\"Civitai: \\\\\\\"})]),t),e.then((e=\\\\u003e{var t,i;this.imgWrapper.style.display=\\\\\\\"block\\\\\\\";let s=this.element.querySelector(\\\\\\\".easyuse-model-header\\\\\\\");s\\\\u0026\\\\u0026s.replaceChildren(ve(\\\\\\\"h2\\\\\\\",{textContent:this.name}),ve(\\\\\\\"div.easyuse-model-header-remark\\\\\\\",[ve(\\\\\\\"h5\\\\\\\",{textContent:Ne(\\\\\\\"Updated At:\\\\\\\")+Ze(new Date(e.updatedAt),\\\\\\\"yyyy/MM/dd\\\\\\\")}),ve(\\\\\\\"h5\\\\\\\",{textContent:Ne(\\\\\\\"Created At:\\\\\\\")+Ze(new Date(e.updatedAt),\\\\\\\"yyyy/MM/dd\\\\\\\")})]));let n=null,a=this.parseNote.call(this),o=Ne(\\\\\\\"\\u270f\\ufe0f Edit\\\\\\\"),l=ve(\\\\\\\"div.easyuse-model-detail-textarea\\\\\\\",[ve(\\\\\\\"p\\\\\\\",(null==a?void 0:a.length)\\\\u003e0?a:{textContent:Ne(\\\\\\\"No notes\\\\\\\")})]);if(a\\\\u0026\\\\u00260!=a.length?l.classList.remove(\\\\\\\"empty\\\\\\\"):l.classList.add(\\\\\\\"empty\\\\\\\"),this.info.replaceChildren(ve(\\\\\\\"div.easyuse-model-detail\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-head.flex-b\\\\\\\",[ve(\\\\\\\"span\\\\\\\",Ne(\\\\\\\"Notes\\\\\\\")),ve(\\\\\\\"a\\\\\\\",{textContent:o,href:\\\\\\\"#\\\\\\\",style:{fontSize:\\\\\\\"12px\\\\\\\",float:\\\\\\\"right\\\\\\\",color:\\\\\\\"var(--warning-color)\\\\\\\",textDecoration:\\\\\\\"none\\\\\\\"},onclick:async e=\\\\u003e{if(e.preventDefault(),n){if(n.value!=this.customNotes){Ye.showLoading(Ne(\\\\\\\"Saving Notes...\\\\\\\")),this.customNotes=n.value;const e=await ge.fetchApi(\\\\\\\"/easyuse/metadata/notes/\\\\\\\"+encodeURIComponent(`${this.type}/${this.name}`),{method:\\\\\\\"POST\\\\\\\",body:this.customNotes});if(Ye.hideLoading(),200!==e.status)return Ye.error(Ne(\\\\\\\"Saving Failed\\\\\\\")),void alert(`Error saving notes (${e.status}) ${e.statusText}`);Ye.success(Ne(\\\\\\\"Saving Succeed\\\\\\\")),a=this.parseNote.call(this),l.replaceChildren(ve(\\\\\\\"p\\\\\\\",(null==a?void 0:a.length)\\\\u003e0?a:{textContent:Ne(\\\\\\\"No notes\\\\\\\")})),n.value?l.classList.remove(\\\\\\\"empty\\\\\\\"):l.classList.add(\\\\\\\"empty\\\\\\\")}else l.replaceChildren(ve(\\\\\\\"p\\\\\\\",{textContent:Ne(\\\\\\\"No notes\\\\\\\")})),l.classList.add(\\\\\\\"empty\\\\\\\");e.target.textContent=o,n.remove(),n=null}else e.target.textContent=\\\\\\\"\\ud83d\\udcbe Save\\\\\\\",n=ve(\\\\\\\"textarea\\\\\\\",{placeholder:Ne(\\\\\\\"Type your notes here\\\\\\\"),style:{width:\\\\\\\"100%\\\\\\\",minWidth:\\\\\\\"200px\\\\\\\",minHeight:\\\\\\\"50px\\\\\\\",height:\\\\\\\"100px\\\\\\\"},textContent:this.customNotes}),l.replaceChildren(n),n.focus()}})]),l]),ve(\\\\\\\"div.easyuse-model-detail\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-head\\\\\\\",{textContent:Ne(\\\\\\\"Details\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-body\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"Type\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",{textContent:e.model.type})]),ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"BaseModel\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",{textContent:e.baseModel})]),ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"Download\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",{textContent:(null==(t=e.stats)?void 0:t.downloadCount)||0})]),ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"Trained Words\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",{textContent:(null==e?void 0:e.trainedWords.join(\\\\\\\",\\\\\\\"))||\\\\\\\"-\\\\\\\"})]),ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"Source\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",[ve(\\\\\\\"label\\\\\\\",[ve(\\\\\\\"img\\\\\\\",{style:{width:\\\\\\\"14px\\\\\\\",position:\\\\\\\"relative\\\\\\\",top:\\\\\\\"3px\\\\\\\",margin:\\\\\\\"0 5px 0 0\\\\\\\"},src:\\\\\\\"https://civitai.com/favicon.ico\\\\\\\"}),ve(\\\\\\\"a\\\\\\\",{href:\\\\\\\"https://civitai.com/models/\\\\\\\"+e.modelId,textContent:\\\\\\\"View \\\\\\\"+e.model.name,target:\\\\\\\"_blank\\\\\\\"})])])])])])),null==(i=e.images)?void 0:i.length){this.imgCurrent=0,this.isSaving=!1,e.images.map((e=\\\\u003ee.url\\\\u0026\\\\u0026this.imgList.appendChild(ve(\\\\\\\"div.easyuse-preview-slide\\\\\\\",[ve(\\\\\\\"div.easyuse-preview-slide-content\\\\\\\",[ve(\\\\\\\"img\\\\\\\",{src:e.url}),ve(\\\\\\\"div.save\\\\\\\",{textContent:\\\\\\\"Save as preview\\\\\\\",onclick:async()=\\\\u003e{if(this.isSaving)return;this.isSaving=!0,Ye.showLoading(Ne(\\\\\\\"Saving Preview...\\\\\\\"));const t=await(await fetch(e.url)).blob(),i=\\\\\\\"temp_preview.\\\\\\\"+new URL(e.url).pathname.split(\\\\\\\".\\\\\\\")[1],s=new FormData;s.append(\\\\\\\"image\\\\\\\",new File([t],i)),s.append(\\\\\\\"overwrite\\\\\\\",\\\\\\\"true\\\\\\\"),s.append(\\\\\\\"type\\\\\\\",\\\\\\\"temp\\\\\\\");if(200!==(await ge.fetchApi(\\\\\\\"/upload/image\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:s})).status)return this.isSaving=!1,Ye.error(Ne(\\\\\\\"Saving Failed\\\\\\\")),Ye.hideLoading(),void alert(`Error saving preview (${req.status}) ${req.statusText}`);await ge.fetchApi(\\\\\\\"/easyuse/save/\\\\\\\"+encodeURIComponent(`${this.type}/${this.name}`),{method:\\\\\\\"POST\\\\\\\",body:JSON.stringify({filename:i,type:\\\\\\\"temp\\\\\\\"}),headers:{\\\\\\\"content-type\\\\\\\":\\\\\\\"application/json\\\\\\\"}}).then((e=\\\\u003e{Ye.success(Ne(\\\\\\\"Saving Succeed\\\\\\\")),Ye.hideLoading()})),this.isSaving=!1,app.refreshComboInNodes()}})])]))));let t=this;this.imgDistance=(-660*this.imgCurrent).toString(),this.imgList.style.display=\\\\\\\"\\\\\\\",this.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+this.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\",this.slides=this.imgList.querySelectorAll(\\\\\\\".easyuse-preview-slide\\\\\\\"),this.slideLeftButton=ve(\\\\\\\"button.left\\\\\\\",{parent:this.imgWrapper,style:{display:e.images.length\\\\u003c=2?\\\\\\\"none\\\\\\\":\\\\\\\"block\\\\\\\"},innerHTML:'\\\\u003csvg viewBox=\\\\\\\"0 0 15 15\\\\\\\" fill=\\\\\\\"none\\\\\\\" xmlns=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\" width=\\\\\\\"16\\\\\\\" height=\\\\\\\"16\\\\\\\" style=\\\\\\\"transform: rotate(90deg);\\\\\\\"\\\\u003e\\\\u003cpath d=\\\\\\\"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z\\\\\\\" fill=\\\\\\\"currentColor\\\\\\\" fill-rule=\\\\\\\"evenodd\\\\\\\" clip-rule=\\\\\\\"evenodd\\\\\\\"\\\\u003e\\\\u003c/path\\\\u003e\\\\u003c/svg\\\\u003e',onclick:()=\\\\u003e{e.images.length\\\\u003c=2||(t.imgList.classList.remove(\\\\\\\"no-transition\\\\\\\"),0==t.imgCurrent?(t.imgCurrent=e.images.length/2-1,this.slides[this.slides.length-1].style.transform=\\\\\\\"translate3d(\\\\\\\"+(-660*(this.imgCurrent+1)).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",this.slides[this.slides.length-2].style.transform=\\\\\\\"translate3d(\\\\\\\"+(-660*(this.imgCurrent+1)).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",t.imgList.style.transform=\\\\\\\"translate3d(660px, 0px, 0px)\\\\\\\",setTimeout((e=\\\\u003e{this.slides[this.slides.length-1].style.transform=\\\\\\\"translate3d(0px, 0px, 0px)\\\\\\\",this.slides[this.slides.length-2].style.transform=\\\\\\\"translate3d(0px, 0px, 0px)\\\\\\\",t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+t.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\",t.imgList.classList.add(\\\\\\\"no-transition\\\\\\\")}),500)):(t.imgCurrent=t.imgCurrent-1,t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+t.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\"))}}),this.slideRightButton=ve(\\\\\\\"button.right\\\\\\\",{parent:this.imgWrapper,style:{display:e.images.length\\\\u003c=2?\\\\\\\"none\\\\\\\":\\\\\\\"block\\\\\\\"},innerHTML:'\\\\u003csvg viewBox=\\\\\\\"0 0 15 15\\\\\\\" fill=\\\\\\\"none\\\\\\\" xmlns=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\" width=\\\\\\\"16\\\\\\\" height=\\\\\\\"16\\\\\\\" style=\\\\\\\"transform: rotate(-90deg);\\\\\\\"\\\\u003e\\\\u003cpath d=\\\\\\\"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z\\\\\\\" fill=\\\\\\\"currentColor\\\\\\\" fill-rule=\\\\\\\"evenodd\\\\\\\" clip-rule=\\\\\\\"evenodd\\\\\\\"\\\\u003e\\\\u003c/path\\\\u003e\\\\u003c/svg\\\\u003e',onclick:()=\\\\u003e{if(!(e.images.length\\\\u003c=2))if(t.imgList.classList.remove(\\\\\\\"no-transition\\\\\\\"),t.imgCurrent\\\\u003e=e.images.length/2-1){t.imgCurrent=0;const i=e.images.length/2;this.slides[0].style.transform=\\\\\\\"translate3d(\\\\\\\"+(660*i).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",this.slides[1].style.transform=\\\\\\\"translate3d(\\\\\\\"+(660*i).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+(-660*i).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",setTimeout((e=\\\\u003e{this.slides[0].style.transform=\\\\\\\"translate3d(0px, 0px, 0px)\\\\\\\",this.slides[1].style.transform=\\\\\\\"translate3d(0px, 0px, 0px)\\\\\\\",t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+t.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\",t.imgList.classList.add(\\\\\\\"no-transition\\\\\\\")}),500)}else t.imgCurrent=t.imgCurrent+1,t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+t.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\"}})}return e.description\\\\u0026\\\\u0026ve(\\\\\\\"div\\\\\\\",{parent:this.content,innerHTML:e.description,style:{marginTop:\\\\\\\"10px\\\\\\\"}}),e})).catch((e=\\\\u003e{this.imgWrapper.style.display=\\\\\\\"none\\\\\\\",t.textContent=\\\\\\\"\\u26a0\\ufe0f \\\\\\\"+e.message})).finally((e=\\\\u003e{}))}}class Ci extends Ni{async addInfo(){await this.addCivitaiInfo()}}class Ii extends Ni{getTagFrequency(){if(!this.metadata.ss_tag_frequency)return[];const e=JSON.parse(this.metadata.ss_tag_frequency),t={};for(const i in e){const s=e[i];for(const e in s)e in t?t[e]+=s[e]:t[e]=s[e]}return Object.entries(t).sort(((e,t)=\\\\u003et[1]-e[1]))}getResolutions(){let e=[];if(this.metadata.ss_bucket_info){const t=JSON.parse(this.metadata.ss_bucket_info);if(null==t?void 0:t.buckets)for(const{resolution:i,count:s}of Object.values(t.buckets))e.push([s,`${i.join(\\\\\\\"x\\\\\\\")} * ${s}`])}e=e.sort(((e,t)=\\\\u003et[0]-e[0])).map((e=\\\\u003ee[1]));let t=this.metadata.ss_resolution;if(t){const i=t.split(\\\\\\\",\\\\\\\"),s=i[0].replace(\\\\\\\"(\\\\\\\",\\\\\\\"\\\\\\\"),n=i[1].replace(\\\\\\\")\\\\\\\",\\\\\\\"\\\\\\\");e.push(`${s.trim()}x${n.trim()} (Base res)`)}else(t=this.metadata[\\\\\\\"modelspec.resolution\\\\\\\"])\\\\u0026\\\\u0026e.push(t+\\\\\\\" (Base res\\\\\\\");return e.length||e.push(\\\\\\\"\\u26a0\\ufe0f Unknown\\\\\\\"),e}getTagList(e){return e.map((e=\\\\u003eve(\\\\\\\"li.easyuse-model-tag\\\\\\\",{dataset:{tag:e[0]},$:e=\\\\u003e{e.onclick=()=\\\\u003e{e.classList.toggle(\\\\\\\"easyuse-model-tag--selected\\\\\\\")}}},[ve(\\\\\\\"p\\\\\\\",{textContent:e[0]}),ve(\\\\\\\"span\\\\\\\",{textContent:e[1]})])))}addTags(){let e,t=this.getTagFrequency();if(null==t?void 0:t.length){const i=t.length;let s;i\\\\u003e500\\\\u0026\\\\u0026(t=t.slice(0,500),e=ve(\\\\\\\"p\\\\\\\",[ve(\\\\\\\"span\\\\\\\",{textContent:\\\\\\\"\\u26a0\\ufe0f Only showing first 500 tags \\\\\\\"}),ve(\\\\\\\"a\\\\\\\",{href:\\\\\\\"#\\\\\\\",textContent:`Show all ${i}`,onclick:()=\\\\u003e{s.replaceChildren(...this.getTagList(this.getTagFrequency())),e.remove()}})])),s=ve(\\\\\\\"ol.easyuse-model-tags-list\\\\\\\",this.getTagList(t)),this.tags=ve(\\\\\\\"div\\\\\\\",[s])}else this.tags=ve(\\\\\\\"p\\\\\\\",{textContent:\\\\\\\"\\u26a0\\ufe0f No tag frequency metadata found\\\\\\\"});this.content.append(this.tags),e\\\\u0026\\\\u0026this.content.append(e)}async addInfo(){const e=this.addCivitaiInfo();this.addTags();const t=await e;t\\\\u0026\\\\u0026ve(\\\\\\\"div\\\\\\\",{parent:this.content,innerHTML:t.description,style:{maxHeight:\\\\\\\"250px\\\\\\\",overflow:\\\\\\\"auto\\\\\\\"}})}createButtons(){const e=super.createButtons();function t(e,t){const i=ve(\\\\\\\"textarea\\\\\\\",{parent:document.body,style:{position:\\\\\\\"fixed\\\\\\\"},textContent:t.map((e=\\\\u003ee.dataset.tag)).join(\\\\\\\", \\\\\\\")});i.select();try{document.execCommand(\\\\\\\"copy\\\\\\\"),e.target.dataset.text||(e.target.dataset.text=e.target.textContent),e.target.textContent=\\\\\\\"Copied \\\\\\\"+t.length+\\\\\\\" tags\\\\\\\",setTimeout((()=\\\\u003e{e.target.textContent=e.target.dataset.text}),1e3)}catch(s){prompt(\\\\\\\"Copy to clipboard: Ctrl+C, Enter\\\\\\\",text)}finally{document.body.removeChild(i)}}return e.unshift(ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:\\\\\\\"Copy Selected\\\\\\\",onclick:e=\\\\u003e{t(e,[...this.tags.querySelectorAll(\\\\\\\".easyuse-model-tag--selected\\\\\\\")])}}),ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:\\\\\\\"Copy All\\\\\\\",onclick:e=\\\\u003e{t(e,[...this.tags.querySelectorAll(\\\\\\\".easyuse-model-tag\\\\\\\")])}})),e}}const Ti={pipe:{category:\\\\\\\"Easy Pipe\\\\\\\",nodes:[\\\\\\\"easy pipeIn\\\\\\\",\\\\\\\"easy pipeOut\\\\\\\",\\\\\\\"easy pipeEdit\\\\\\\",\\\\\\\"easy pipeEditPrompt\\\\\\\",\\\\\\\"easy pipeBatchIndex\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\"},widget:{optional_positive:\\\\\\\"optional_positive\\\\\\\",optional_negative:\\\\\\\"optional_negative\\\\\\\"}},loaders:{category:\\\\\\\"Easy Loaders\\\\\\\",nodes:[\\\\\\\"easy fullLoader\\\\\\\",\\\\\\\"easy a1111Loader\\\\\\\",\\\\\\\"easy comfyLoader\\\\\\\",\\\\\\\"easy kolorsLoader\\\\\\\",\\\\\\\"easy hunyuanDiTLoader\\\\\\\",\\\\\\\"easy pixArtLoader\\\\\\\",\\\\\\\"easy fluxLoader\\\\\\\"],input:{optional_lora_stack:\\\\\\\"optional_lora_stack\\\\\\\",optional_controlnet_stack:\\\\\\\"optional_controlnet_stack\\\\\\\",positive:\\\\\\\"positive\\\\\\\",negative:\\\\\\\"negative\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\",model:\\\\\\\"model\\\\\\\",vae:\\\\\\\"vae\\\\\\\",clip:null,positive:null,negative:null,latent:null},widget:{ckpt_name:\\\\\\\"ckpt_name\\\\\\\",vae_name:\\\\\\\"vae_name\\\\\\\",clip_skip:\\\\\\\"clip_skip\\\\\\\",lora_name:\\\\\\\"lora_name\\\\\\\",resolution:\\\\\\\"resolution\\\\\\\",empty_latent_width:\\\\\\\"empty_latent_width\\\\\\\",empty_latent_height:\\\\\\\"empty_latent_height\\\\\\\",positive:\\\\\\\"positive\\\\\\\",negative:\\\\\\\"negative\\\\\\\",batch_size:\\\\\\\"batch_size\\\\\\\",a1111_prompt_style:\\\\\\\"a1111_prompt_style\\\\\\\"}},preSampling:{category:\\\\\\\"Easy PreSampling\\\\\\\",nodes:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",\\\\\\\"easy preSamplingNoiseIn\\\\\\\",\\\\\\\"easy preSamplingCustom\\\\\\\",\\\\\\\"easy preSamplingLayerDiffusion\\\\\\\",\\\\\\\"easy fullkSampler\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\",image_to_latent:\\\\\\\"image_to_latent\\\\\\\",latent:\\\\\\\"latent\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\"},widget:{steps:\\\\\\\"steps\\\\\\\",cfg:\\\\\\\"cfg\\\\\\\",cfg_scale_min:\\\\\\\"cfg\\\\\\\",sampler_name:\\\\\\\"sampler_name\\\\\\\",scheduler:\\\\\\\"scheduler\\\\\\\",denoise:\\\\\\\"denoise\\\\\\\",seed_num:\\\\\\\"seed_num\\\\\\\",seed:\\\\\\\"seed\\\\\\\"}},samplers:{category:\\\\\\\"Custom Sampler\\\\\\\",nodes:[\\\\\\\"KSamplerSelect\\\\\\\",\\\\\\\"SamplerEulerAncestral\\\\\\\",\\\\\\\"SamplerEulerAncestralCFG++\\\\\\\",\\\\\\\"SamplerLMS\\\\\\\",\\\\\\\"SamplerDPMPP_3M_SDE\\\\\\\",\\\\\\\"SamplerDPMPP_2M_SDE\\\\\\\",\\\\\\\"SamplerDPMPP_SDE\\\\\\\",\\\\\\\"SamplerDPMAdaptative\\\\\\\",\\\\\\\"SamplerLCMUpscale\\\\\\\",\\\\\\\"SamplerTCD\\\\\\\",\\\\\\\"SamplerTCD EulerA\\\\\\\"],output:{SAMPLER:\\\\\\\"SAMPLER\\\\\\\"}},sigmas:{category:\\\\\\\"Custom Sigmas\\\\\\\",nodes:[\\\\\\\"BasicScheduler\\\\\\\",\\\\\\\"KarrasScheduler\\\\\\\",\\\\\\\"ExponentialScheduler\\\\\\\",\\\\\\\"PolyexponentialScheduler\\\\\\\",\\\\\\\"VPScheduler\\\\\\\",\\\\\\\"BetaSamplingScheduler\\\\\\\",\\\\\\\"SDTurboScheduler\\\\\\\",\\\\\\\"SplitSigmas\\\\\\\",\\\\\\\"SplitSigmasDenoise\\\\\\\",\\\\\\\"FlipSigmas\\\\\\\",\\\\\\\"AlignYourStepsScheduler\\\\\\\",\\\\\\\"GITSScheduler\\\\\\\"],output:{SIGMAS:\\\\\\\"SIGMAS\\\\\\\"}},kSampler:{category:\\\\\\\"Easy kSampler\\\\\\\",nodes:[\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy kSamplerTiled\\\\\\\",\\\\\\\"easy kSamplerCustom\\\\\\\",\\\\\\\"easy kSamplerInpainting\\\\\\\",\\\\\\\"easy kSamplerDownscaleUnet\\\\\\\",\\\\\\\"easy kSamplerLayerDiffusion\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\",model:\\\\\\\"model\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\",image:\\\\\\\"image\\\\\\\"},widget:{image_output:\\\\\\\"image_output\\\\\\\",save_prefix:\\\\\\\"save_prefix\\\\\\\",link_id:\\\\\\\"link_id\\\\\\\"}},controlNet:{category:\\\\\\\"Easy ControlNet\\\\\\\",nodes:[\\\\\\\"easy controlnetLoader\\\\\\\",\\\\\\\"easy controlnetLoaderADV\\\\\\\",\\\\\\\"easy controlnetLoader++\\\\\\\",\\\\\\\"easy instantIDApply\\\\\\\",\\\\\\\"easy instantIDApplyADV\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\",image:\\\\\\\"image\\\\\\\",image_kps:\\\\\\\"image_kps\\\\\\\",control_net:\\\\\\\"control_net\\\\\\\",positive:\\\\\\\"positive\\\\\\\",negative:\\\\\\\"negative\\\\\\\",mask:\\\\\\\"mask\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\",positive:\\\\\\\"positive\\\\\\\",negative:\\\\\\\"negative\\\\\\\"},widget:{control_net_name:\\\\\\\"control_net_name\\\\\\\",strength:[\\\\\\\"strength\\\\\\\",\\\\\\\"cn_strength\\\\\\\"],scale_soft_weights:[\\\\\\\"scale_soft_weights\\\\\\\",\\\\\\\"cn_soft_weights\\\\\\\"],cn_strength:[\\\\\\\"strength\\\\\\\",\\\\\\\"cn_strength\\\\\\\"],cn_soft_weights:[\\\\\\\"scale_soft_weights\\\\\\\",\\\\\\\"cn_soft_weights\\\\\\\"]}},adapter:{category:\\\\\\\"Easy Adapter\\\\\\\",nodes:[\\\\\\\"easy ipadapterApply\\\\\\\",\\\\\\\"easy ipadapterApplyADV\\\\\\\",\\\\\\\"easy ipadapterApplyFaceIDKolors\\\\\\\",\\\\\\\"easy ipadapterStyleComposition\\\\\\\",\\\\\\\"easy ipadapterApplyFromParams\\\\\\\",\\\\\\\"easy pulIDApply\\\\\\\",\\\\\\\"easy pulIDApplyADV\\\\\\\"],input:{model:\\\\\\\"model\\\\\\\",image:\\\\\\\"image\\\\\\\",image_style:\\\\\\\"image\\\\\\\",attn_mask:\\\\\\\"attn_mask\\\\\\\",optional_ipadapter:\\\\\\\"optional_ipadapter\\\\\\\"},output:{model:\\\\\\\"model\\\\\\\",tiles:\\\\\\\"tiles\\\\\\\",masks:\\\\\\\"masks\\\\\\\",ipadapter:\\\\\\\"ipadapter\\\\\\\"},widget:{preset:\\\\\\\"preset\\\\\\\",lora_strength:\\\\\\\"lora_strength\\\\\\\",provider:\\\\\\\"provider\\\\\\\",weight:\\\\\\\"weight\\\\\\\",weight_faceidv2:\\\\\\\"weight_faceidv2\\\\\\\",start_at:\\\\\\\"start_at\\\\\\\",end_at:\\\\\\\"end_at\\\\\\\",cache_mode:\\\\\\\"cache_mode\\\\\\\",use_tiled:\\\\\\\"use_tiled\\\\\\\",insightface:\\\\\\\"insightface\\\\\\\",pulid_file:\\\\\\\"pulid_file\\\\\\\"}},positive:{category:\\\\\\\"Easy Positive\\\\\\\",nodes:[\\\\\\\"easy positive\\\\\\\",\\\\\\\"easy wildcards\\\\\\\"],input:{},output:{text:\\\\\\\"positive\\\\\\\",positive:\\\\\\\"text\\\\\\\"},widget:{text:\\\\\\\"positive\\\\\\\",positive:\\\\\\\"text\\\\\\\"}},loadImage:{category:\\\\\\\"Easy LoadImage\\\\\\\",nodes:[\\\\\\\"easy loadImageBase64\\\\\\\",\\\\\\\"LoadImage\\\\\\\",\\\\\\\"LoadImageMask\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\",image:\\\\\\\"image\\\\\\\",mask:\\\\\\\"mask\\\\\\\"},output:{IMAGE:\\\\\\\"IMAGE\\\\\\\",MASK:\\\\\\\"MASK\\\\\\\"},widget:{image:\\\\\\\"image\\\\\\\",base64_data:\\\\\\\"base64_data\\\\\\\",channel:\\\\\\\"channel\\\\\\\"}},saveImage:{category:\\\\\\\"Save/Preview Image\\\\\\\",nodes:[\\\\\\\"SaveImage\\\\\\\",\\\\\\\"PreviewImage\\\\\\\"]},inPaint:{category:\\\\\\\"Easy Inpaint\\\\\\\",nodes:[\\\\\\\"easy applyBrushNet\\\\\\\",\\\\\\\"easy applyPowerPaint\\\\\\\",\\\\\\\"easy applyInpaint\\\\\\\"],input:{},output:{pipe:\\\\\\\"pipe\\\\\\\"},widget:{dtype:\\\\\\\"dtype\\\\\\\",fitting:\\\\\\\"fitting\\\\\\\",function:\\\\\\\"function\\\\\\\",scale:\\\\\\\"scale\\\\\\\",start_at:\\\\\\\"start_at\\\\\\\",end_at:\\\\\\\"end_at\\\\\\\"}},showAny:{category:\\\\\\\"Show Anything\\\\\\\",nodes:[\\\\\\\"easy showAnything\\\\\\\",\\\\\\\"Preview Any\\\\\\\"],input:{anything:\\\\\\\"anything\\\\\\\"},output:{output:\\\\\\\"output\\\\\\\"}},saveText:{category:\\\\\\\"Save Text\\\\\\\",nodes:[\\\\\\\"easy saveText\\\\\\\"],input:{image:\\\\\\\"image\\\\\\\",text:\\\\\\\"text\\\\\\\",output_file_path:\\\\\\\"output_file_path\\\\\\\",file_name:\\\\\\\"file_name\\\\\\\",file_extension:\\\\\\\"file_extension\\\\\\\",overwrite:\\\\\\\"overwrite\\\\\\\"},output:{text:\\\\\\\"text\\\\\\\",image:\\\\\\\"image\\\\\\\"},widget:{image:\\\\\\\"image\\\\\\\",text:\\\\\\\"text\\\\\\\",output_file_path:\\\\\\\"output_file_path\\\\\\\",file_name:\\\\\\\"file_name\\\\\\\",file_extension:\\\\\\\"file_extension\\\\\\\",overwrite:\\\\\\\"overwrite\\\\\\\"}},persona:{category:\\\\\\\"LLM Party Persona\\\\\\\",nodes:[\\\\\\\"load_persona\\\\\\\",\\\\\\\"classify_persona\\\\\\\",\\\\\\\"classify_persona_plus\\\\\\\",\\\\\\\"custom_persona\\\\\\\",\\\\\\\"translate_persona\\\\\\\",\\\\\\\"flux_persona\\\\\\\"],input:{file_content:\\\\\\\"file_content\\\\\\\"},output:{system_prompt:\\\\\\\"system_prompt\\\\\\\"},widget:{is_enable:\\\\\\\"is_enable\\\\\\\"}},llmModelLoader:{category:\\\\\\\"LLM Model Loader\\\\\\\",nodes:[\\\\\\\"LLM_api_loader\\\\\\\",\\\\\\\"genai_api_loader\\\\\\\",\\\\\\\"LLM_local_loader\\\\\\\"],output:{model:\\\\\\\"model\\\\\\\"}},llmModelChain:{category:\\\\\\\"LLM Model Chain\\\\\\\",nodes:[\\\\\\\"LLM\\\\\\\",\\\\\\\"LLM_local\\\\\\\"],input:{model:\\\\\\\"model\\\\\\\",image:\\\\\\\"images\\\\\\\",images:\\\\\\\"image\\\\\\\",extra_parameters:\\\\\\\"extra_parameters\\\\\\\",system_prompt_input:\\\\\\\"system_prompt_input\\\\\\\",user_prompt_input:\\\\\\\"user_prompt_input\\\\\\\",tools:\\\\\\\"tools\\\\\\\",file_content:\\\\\\\"file_content\\\\\\\"},output:{assistant_response:\\\\\\\"assistant_response\\\\\\\",history:\\\\\\\"history\\\\\\\",tool:\\\\\\\"tool\\\\\\\",image:\\\\\\\"image\\\\\\\"},widget:{system_prompt:\\\\\\\"system_prompt\\\\\\\",user_prompt:\\\\\\\"user_prompt\\\\\\\",temperature:\\\\\\\"temperature\\\\\\\",is_memory:\\\\\\\"is_memory\\\\\\\",is_tools_in_sys_prompt:\\\\\\\"is_tools_in_sys_prompt\\\\\\\",max_length:\\\\\\\"max_length\\\\\\\",main_brain:\\\\\\\"main_brain\\\\\\\",conversation_rounds:\\\\\\\"conversation_rounds\\\\\\\",history_record:\\\\\\\"history_record\\\\\\\",is_enable:\\\\\\\"is_enable\\\\\\\"}},maskModify:{category:\\\\\\\"Mask Modify\\\\\\\",nodes:[\\\\\\\"CropMask\\\\\\\",\\\\\\\"ThresholdMask\\\\\\\",\\\\\\\"GrowMask\\\\\\\",\\\\\\\"FeatherMask\\\\\\\",\\\\\\\"LayerMask: MaskGrain\\\\\\\",\\\\\\\"LayerMask: MaskEdgeUltraDetail\\\\\\\",\\\\\\\"LayerMask: MaskEdgeUltraDetail V2\\\\\\\"],input:{mask:\\\\\\\"mask\\\\\\\"},output:{MASK:\\\\\\\"MASK\\\\\\\",mask:\\\\\\\"mask\\\\\\\",image:\\\\\\\"image\\\\\\\"}},maskModifyWAS:{category:\\\\\\\"Mask Modify (WAS)\\\\\\\",nodes:[\\\\\\\"Mask Dilate Region\\\\\\\",\\\\\\\"Mask Gaussian Region\\\\\\\"],input:{masks:\\\\\\\"masks\\\\\\\"},output:{MASKS:\\\\\\\"MASKS\\\\\\\"}},indextts_emotions:{category:\\\\\\\"IndexTTS Emotions\\\\\\\",nodes:[\\\\\\\"easy indexTTSEmotionVector\\\\\\\",\\\\\\\"easy indexTTSEmotionText\\\\\\\",\\\\\\\"easy indexTTSEmotionAudio\\\\\\\"],input:{reference_audio:\\\\\\\"reference_audio\\\\\\\"},output:{emotions:\\\\\\\"emotions\\\\\\\"}},indextts_generate:{category:\\\\\\\"IndexTTS Generate\\\\\\\",nodes:[\\\\\\\"easy indexTTSGenerate\\\\\\\",\\\\\\\"easy indexTTSGenerateSimple\\\\\\\"],input:{indextts_model:\\\\\\\"indextts_model\\\\\\\",reference_audio:\\\\\\\"reference_audio\\\\\\\",reference_audios:\\\\\\\"reference_audios\\\\\\\",emotions:\\\\\\\"emotions\\\\\\\"},output:{audio:\\\\\\\"audio\\\\\\\",seed:\\\\\\\"seed\\\\\\\",subtitle:\\\\\\\"subtitle\\\\\\\"},widget:{text:\\\\\\\"text\\\\\\\",unload_model:\\\\\\\"unload_model\\\\\\\",seed:\\\\\\\"seed\\\\\\\"}},fast_loaders:{category:\\\\\\\"Fast Loaders\\\\\\\",nodes:[\\\\\\\"fast ckptLoader\\\\\\\",\\\\\\\"fast unetLoader\\\\\\\"],input:{\\\\\\\"\\u5f00\\u59cb\\u52a0\\u8f7d\\\\\\\":\\\\\\\"\\u5f00\\u59cb\\u52a0\\u8f7d\\\\\\\"},output:{\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\",MODEL:\\\\\\\"MODEL\\\\\\\",VAE:\\\\\\\"VAE\\\\\\\",CLIP:\\\\\\\"CLIP\\\\\\\"}},fast_inputs:{category:\\\\\\\"Fast Inputs\\\\\\\",nodes:[\\\\\\\"fast sdInput\\\\\\\",\\\\\\\"fast fluxInput\\\\\\\",\\\\\\\"fast hiDreamInput\\\\\\\",\\\\\\\"fast videoInput\\\\\\\",\\\\\\\"fast qwenImageInput\\\\\\\"],input:{\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\",\\\\\\\"\\u66f4\\u591aControlnet\\\\\\\":\\\\\\\"\\u66f4\\u591aControlnet\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u906e\\u7f69\\\\\\\":\\\\\\\"\\u906e\\u7f69\\\\\\\",\\\\\\\"\\u529f\\u80fd\\u8282\\u70b9\\\\\\\":\\\\\\\"\\u529f\\u80fd\\u8282\\u70b9\\\\\\\"},output:{\\\\\\\"\\u91c7\\u6837\\\\\\\":\\\\\\\"\\u91c7\\u6837\\\\\\\",\\\\\\\"\\u6b63\\u9762\\u6761\\u4ef6\\\\\\\":\\\\\\\"\\u6b63\\u9762\\u6761\\u4ef6\\\\\\\",\\\\\\\"\\u8d1f\\u9762\\u6761\\u4ef6\\\\\\\":\\\\\\\"\\u8d1f\\u9762\\u6761\\u4ef6\\\\\\\",\\\\\\\"\\u6f5c\\u7a7a\\u95f4\\\\\\\":\\\\\\\"\\u6f5c\\u7a7a\\u95f4\\\\\\\"},widget:{Sigmas:\\\\\\\"Sigmas\\\\\\\",\\\\\\\"\\u5206\\u79bbSigmas\\u6b65\\u6570\\\\\\\":\\\\\\\"\\u5206\\u79bbSigmas\\u6b65\\u6570\\\\\\\",\\\\\\\"\\u5206\\u79bb\\u964d\\u566a\\\\\\\":\\\\\\\"\\u5206\\u79bb\\u964d\\u566a\\\\\\\",\\\\\\\"\\u964d\\u566a\\\\\\\":\\\\\\\"\\u964d\\u566a\\\\\\\",\\\\\\\"\\u6dfb\\u52a0\\u566a\\u58f0\\\\\\\":\\\\\\\"\\u6dfb\\u52a0\\u566a\\u58f0\\\\\\\",seed:\\\\\\\"seed\\\\\\\",\\\\\\\"\\u751f\\u6210\\u6570\\u91cf\\\\\\\":\\\\\\\"\\u751f\\u6210\\u6570\\u91cf\\\\\\\"}},fast_outputResult:{category:\\\\\\\"Fast Outputs\\\\\\\",nodes:[\\\\\\\"fast outputResult\\\\\\\",\\\\\\\"fast outputResultVideo\\\\\\\",\\\\\\\"fast outputLatent\\\\\\\"],input:{\\\\\\\"\\u91c7\\u6837\\\\\\\":\\\\\\\"\\u91c7\\u6837\\\\\\\",\\\\\\\"\\u566a\\u58f0\\\\\\\":\\\\\\\"\\u566a\\u58f0\\\\\\\",\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\"},output:{\\\\\\\"\\u56fe\\u50cf\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\u5e8f\\u5217\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\u5e8f\\u5217\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u8f93\\u51fa\\\\\\\":\\\\\\\"\\u8f93\\u51fa\\\\\\\",\\\\\\\"\\u964d\\u566a\\u8f93\\u51fa\\\\\\\":\\\\\\\"\\u964d\\u566a\\u8f93\\u51fa\\\\\\\",VAE:\\\\\\\"VAE\\\\\\\"},widget:{\\\\\\\"\\u91c7\\u6837\\u9884\\u89c8\\\\\\\":\\\\\\\"\\u91c7\\u6837\\u9884\\u89c8\\\\\\\",\\\\\\\"VAE\\u89e3\\u7801\\\\\\\":\\\\\\\"VAE\\u89e3\\u7801\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\u8f93\\u51fa\\\\\\\":\\\\\\\"\\u89c6\\u9891\\u8f93\\u51fa\\\\\\\",\\\\\\\"\\u89c6\\u9891\\u8f93\\u51fa\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\u8f93\\u51fa\\\\\\\",\\\\\\\"\\u4fdd\\u5b58\\u8def\\u5f84\\\\\\\":\\\\\\\"\\u4fdd\\u5b58\\u8def\\u5f84\\\\\\\"}},fast_loadImage:{category:\\\\\\\"Fast LoadImage\\\\\\\",nodes:[\\\\\\\"fast loadImage\\\\\\\",\\\\\\\"fast loadImageList\\\\\\\"],output:{\\\\\\\"\\u56fe\\u50cf\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u906e\\u7f69\\\\\\\":\\\\\\\"\\u906e\\u7f69\\\\\\\",\\\\\\\"\\u6587\\u4ef6\\u540d\\\\\\\":\\\\\\\"\\u6587\\u4ef6\\u540d\\\\\\\"},widget:{\\\\\\\"\\u6a21\\u5f0f\\\\\\\":\\\\\\\"\\u6a21\\u5f0f\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u8def\\u5f84\\\\\\\":\\\\\\\"\\u8def\\u5f84\\\\\\\",\\\\\\\"\\u6700\\u5927\\u5f20\\u6570\\\\\\\":\\\\\\\"\\u6700\\u5927\\u5f20\\u6570\\\\\\\",\\\\\\\"\\u5f00\\u59cb\\u7d22\\u5f15\\\\\\\":\\\\\\\"\\u5f00\\u59cb\\u7d22\\u5f15\\\\\\\",Base64:\\\\\\\"Base64\\\\\\\",\\\\\\\"\\u94fe\\u63a5\\\\\\\":\\\\\\\"\\u94fe\\u63a5\\\\\\\"}}};function Oi(e,t,i){return function(){!function(e,t,i){var s;const n=LiteGraph.createNode(t);if(n){if(fe.graph.add(n),n.pos=e.pos.slice(),n.size=e.size.slice(),(null==(s=e.widgets)?void 0:s.length)\\\\u003e0\\\\u0026\\\\u0026e.widgets.forEach((e=\\\\u003e{var t,s,a;if(null==(s=null==(t=Ti[i])?void 0:t.widget)?void 0:s[e.name]){const t=Ti[i].widget[e.name];if(t\\\\u0026\\\\u0026n.widgets){const i=(a=t,n.widgets.find((e=\\\\u003e\\\\\\\"object\\\\\\\"==typeof a?a.includes(e.name):e.name===a)));i\\\\u0026\\\\u0026(i.value=e.value,\\\\\\\"seed_num\\\\\\\"==e.name\\\\u0026\\\\u0026(i.linkedWidgets[0].value=e.linkedWidgets[0].value),\\\\\\\"converted-widget\\\\\\\"==e.type\\\\u0026\\\\u0026Vi(n,i,e))}}})),e.inputs\\\\u0026\\\\u0026e.inputs.forEach(((t,s)=\\\\u003e{var a,o,l;if(t\\\\u0026\\\\u0026t.link\\\\u0026\\\\u0026(null==(o=null==(a=Ti[i])?void 0:a.input)?void 0:o[t.name])){const s=null==(l=Ti[i])?void 0:l.input[t.name];if(null===s)return;const a=n.findInputSlot(s);if(-1!==a){const i=e.graph.links[t.link];if(i){const t=e.graph.getNodeById(i.origin_id);t\\\\u0026\\\\u0026t.connect(i.origin_slot,n,a)}}}})),e.outputs\\\\u0026\\\\u0026e.outputs.forEach(((t,s)=\\\\u003e{var a,o;if(t\\\\u0026\\\\u0026t.links\\\\u0026\\\\u0026(null==(o=null==(a=Ti[i])?void 0:a.output)?void 0:o[t.name])){const s=Ti[i].output[t.name];if(null===s)return;const a=n.findOutputSlot(s);-1!==a\\\\u0026\\\\u0026t.links.forEach((t=\\\\u003e{const i=e.graph.links[t];if(i){const t=e.graph.getNodeById(i.target_id);t\\\\u0026\\\\u0026n.connect(a,t,i.target_slot)}}))}})),fe.graph.remove(e),\\\\\\\"easy fullkSampler\\\\\\\"==n.type){const e=n.outputs[0].links;if(e\\\\u0026\\\\u0026e[0]){const t=fe.graph._nodes.find((t=\\\\u003et.inputs\\\\u0026\\\\u0026t.inputs[0]\\\\u0026\\\\u0026t.inputs[0].link==e[0]));t\\\\u0026\\\\u0026fe.graph.remove(t)}}else if(Ti.preSampling.nodes.includes(n.type)){const e=n.outputs[0].links;if(!e||!e[0]){const e=LiteGraph.createNode(\\\\\\\"easy kSampler\\\\\\\");fe.graph.add(e),e.pos=n.pos.slice(),e.pos[0]=e.pos[0]+n.size[0]+20;const t=n.findInputSlot(\\\\\\\"pipe\\\\\\\");-1!==t\\\\u0026\\\\u0026n\\\\u0026\\\\u0026n.connect(0,e,t)}}n.setSize([n.size[0],n.computeSize()[1]])}}(e,t,i)}}const Mi=(e,t)=\\\\u003e{const i=e.prototype.getExtraMenuOptions;e.prototype.getExtraMenuOptions=function(){const e=i.apply(this,arguments);return t.apply(this,arguments),e}},Di=(e,t,i,s,n=!0)=\\\\u003e{Mi(s,(function(s,a){a.unshift({content:e,has_submenu:n,callback:(e,s,n,a,o)=\\\\u003eRi(e,s,n,a,o,t,i)}),\\\\\\\"loaders\\\\\\\"==t\\\\u0026\\\\u0026(a.unshift({content:Ne(\\\\\\\"\\ud83d\\udc8e View Lora Info...\\\\\\\"),callback:(e,t,i,s,n)=\\\\u003e{let a=n.widgets.find((e=\\\\u003e\\\\\\\"lora_name\\\\\\\"==e.name)).value;a\\\\u0026\\\\u0026\\\\\\\"None\\\\\\\"!=a\\\\u0026\\\\u0026new Ii(a).show(\\\\\\\"loras\\\\\\\",a)}}),a.unshift({content:Ne(\\\\\\\"\\ud83d\\udc8e View Checkpoint Info...\\\\\\\"),callback:(e,t,i,s,n)=\\\\u003e{let a=n.widgets[0].value;a\\\\u0026\\\\u0026\\\\\\\"None\\\\\\\"!=a\\\\u0026\\\\u0026new Ci(a).show(\\\\\\\"checkpoints\\\\\\\",a)}}))}))},Ri=(e,t,i,s,n,a,o)=\\\\u003e{const l=[];return o.map((e=\\\\u003e{n.type!==e\\\\u0026\\\\u0026l.push({content:`${e}`,callback:Oi(n,e,a)})})),new LiteGraph.ContextMenu(l,{event:i,callback:null,parentMenu:s,node:n}),!1},Pi=\\\\\\\"converted-widget\\\\\\\",Gi=Symbol();function zi(e,t,i=\\\\\\\"\\\\\\\"){if(t.origType=t.type,t.origComputeSize=t.computeSize,t.origSerializeValue=t.serializeValue,t.computeSize=()=\\\\u003e[0,-4],t.type=Pi+i,t.serializeValue=()=\\\\u003e{if(!e.inputs)return;let i=e.inputs.find((e=\\\\u003e{var i;return(null==(i=e.widget)?void 0:i.name)===t.name}));return i\\\\u0026\\\\u0026i.link?t.origSerializeValue?t.origSerializeValue():t.value:void 0},t.linkedWidgets)for(const s of t.linkedWidgets)zi(e,s,\\\\\\\":\\\\\\\"+t.name)}function Vi(e,t,i){zi(e,t);const{type:s}=function(e){let t=e[0];t instanceof Array\\\\u0026\\\\u0026(t=\\\\\\\"COMBO\\\\\\\");return{type:t}}(i),n=e.size;t.options\\\\u0026\\\\u0026t.options.forceInput||e.addInput(t.name,s,{widget:{name:t.name,[Gi]:()=\\\\u003ei}});for(const a of e.widgets)a.last_y+=LiteGraph.NODE_SLOT_HEIGHT;e.setSize([Math.max(n[0],e.size[0]),Math.max(n[1],e.size[1])])}const ji=function(e){var t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f,g,v,y,w;const b=e.constructor.type,_=(null==(t=e.properties)?void 0:t.origVals)||{},S=_.title||e.title,x=_.color||e.color,L=_.bgcolor||e.bgcolor,k=e.graph||fe.graph,E={size:[...e.size],color:x,bgcolor:L,pos:[...e.pos]},N=e=\\\\u003e{var t,i,s,n;return(null==(t=k.getLink)?void 0:t.call(k,e))||(null==(s=null==(i=k.links)?void 0:i.get)?void 0:s.call(i,e))||(null==(n=k.links)?void 0:n[e])},C=[],I=[],T=new Map((null==(i=e.inputs)?void 0:i.map((e=\\\\u003e[e.name,e.label])))||[]),O=new Map((null==(s=e.outputs)?void 0:s.map((e=\\\\u003e[e.name,e.label])))||[]),M=(null==(n=e.widgets)?void 0:n.map((e=\\\\u003e({name:e.name,type:e.origType||e.type,value:e.value}))))||[],D=[];null==(a=e.inputs)||a.forEach(((e,t)=\\\\u003e{var i,s;if(null==e.link)return;const n=N(e.link);if(!n)return;const a=k.getNodeById(n.origin_id);C.push({inputName:e.name,inputSlot:t,originId:n.origin_id,originName:null==(s=null==(i=null==a?void 0:a.outputs)?void 0:i[n.origin_slot])?void 0:s.name,originSlot:n.origin_slot})})),null==(o=e.outputs)||o.forEach(((e,t)=\\\\u003e{var i,s;for(const n of e.links||[]){const a=N(n);if(!a)continue;const o=k.getNodeById(a.target_id);I.push({outputName:e.name,outputSlot:t,targetId:a.target_id,targetName:null==(s=null==(i=null==o?void 0:o.inputs)?void 0:i[a.target_slot])?void 0:s.name,targetSlot:a.target_slot})}})),null==(l=e.widgets)||l.forEach((t=\\\\u003e{var i,s,n;if(t.type!==Pi)return;const a=null==(i=e.inputs)?void 0:i.find((e=\\\\u003e{var i;return(null==(i=e.widget)?void 0:i.name)===t.name||e.name===t.name})),o=null==(n=null==(s=null==a?void 0:a.widget)?void 0:s[Gi])?void 0:n.call(s);o\\\\u0026\\\\u0026D.push({name:t.name,config:o})}));const R=LiteGraph.createNode(b,S,E);if(!R)return;k.remove(e),k.add(R);const P=(e,t,i)=\\\\u003e{var s,n,a,o,l,r,d;const u=e.origType||e.type;if(u!==t||null==i)return!1;const c=null==(s=e.options)?void 0:s.values;if(null!=c){const t=\\\\\\\"function\\\\\\\"==typeof c?c(e,R):c;return Array.isArray(t)?t.includes(i):!(!t||\\\\\\\"object\\\\\\\"!=typeof t)\\\\u0026\\\\u0026(Object.prototype.hasOwnProperty.call(t,i)||Number.isInteger(i)\\\\u0026\\\\u0026i\\\\u003e=0\\\\u0026\\\\u0026i\\\\u003cObject.keys(t).length)}if(\\\\\\\"number\\\\\\\"===u||\\\\\\\"slider\\\\\\\"===u){if(\\\\\\\"number\\\\\\\"!=typeof i||!Number.isFinite(i))return!1;const t=(null==(n=e.options)?void 0:n.min)??-1/0,s=(null==(a=e.options)?void 0:a.max)??1/0;return t\\\\u003c=i\\\\u0026\\\\u0026i\\\\u003c=s}if(\\\\\\\"number\\\\\\\"==typeof i){const t=(null==(o=e.options)?void 0:o.min)??-1/0,s=(null==(l=e.options)?void 0:l.max)??1/0;return Number.isFinite(i)\\\\u0026\\\\u0026t\\\\u003c=i\\\\u0026\\\\u0026i\\\\u003c=s}return\\\\\\\"boolean\\\\\\\"!=typeof i||(\\\\\\\"toggle\\\\\\\"===e.type||!(!(null==(r=e.options)?void 0:r.on)||!(null==(d=e.options)?void 0:d.off)))};for(const{name:G,type:z,value:V}of M){const e=null==(r=R.widgets)?void 0:r.find((e=\\\\u003ee.name===G));e\\\\u0026\\\\u0026P(e,z,V)\\\\u0026\\\\u0026(e.value=V)}for(const{name:G,config:z}of D){const e=null==(d=R.widgets)?void 0:d.find((e=\\\\u003ee.name===G));e\\\\u0026\\\\u0026Vi(R,e,z)}null==(u=R.inputs)||u.forEach((e=\\\\u003e{T.has(e.name)\\\\u0026\\\\u0026(e.label=T.get(e.name))})),null==(c=R.outputs)||c.forEach((e=\\\\u003e{O.has(e.name)\\\\u0026\\\\u0026(e.label=O.get(e.name))}));for(const{inputName:G,inputSlot:z,originId:V,originName:j,originSlot:U}of C){const e=k.getNodeById(V);if(!e)continue;const t=(null==(p=null==(A=e.outputs)?void 0:A[U])?void 0:p.name)===j?U:e.findOutputSlot(j),i=(null==(m=null==(h=R.inputs)?void 0:h[z])?void 0:m.name)===G?z:R.findInputSlot(G);t\\\\u003e=0\\\\u0026\\\\u0026i\\\\u003e=0\\\\u0026\\\\u0026e.connect(t,R,i)}for(const{outputName:G,outputSlot:z,targetId:V,targetName:j,targetSlot:U}of I){const e=k.getNodeById(V);if(!e)continue;const t=(null==(g=null==(f=R.outputs)?void 0:f[z])?void 0:g.name)===G?z:R.findOutputSlot(G),i=(null==(y=null==(v=e.inputs)?void 0:v[U])?void 0:y.name)===j?U:e.findInputSlot(j);t\\\\u003e=0\\\\u0026\\\\u0026i\\\\u003e=0\\\\u0026\\\\u0026R.connect(t,e,i)}R.setSize(E.size),null==(w=R.setDirtyCanvas)||w.call(R,!0,!0)};fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.ExtraMenu\\\\\\\",async beforeRegisterNodeDef(e,t,i){Mi(e,(function(e,i){i.unshift({content:Ne(\\\\\\\"\\ud83d\\udd03 Reload Node\\\\\\\"),callback:(e,t,i,s,n)=\\\\u003e{let a=LGraphCanvas.active_canvas;if(!a.selected_nodes||Object.keys(a.selected_nodes).length\\\\u003c=1)ji(n);else for(let o in a.selected_nodes)ji(a.selected_nodes[o])}}),\\\\\\\"easy ckptNames\\\\\\\"==t.name\\\\u0026\\\\u0026i.unshift({content:Ne(\\\\\\\"\\ud83d\\udc8e View Checkpoint Info...\\\\\\\"),callback:(e,t,i,s,n)=\\\\u003e{n.widgets[0].value}})}));for(const s in Ti)Ti[s].nodes.includes(t.name)\\\\u0026\\\\u0026Di(`\\u21aa\\ufe0f Swap ${Ti[s].category}`,s,Ti[s].nodes,e)}});const Ui=LiteGraph.LGraphNode,Wi=\\\\\\\"\\u27a1\\ufe0f\\\\\\\";fe.registerExtension({name:\\\\\\\"easy setNode\\\\\\\",registerCustomNodes(){class e extends Ui{constructor(t){super(\\\\\\\"Set\\\\\\\"),v(this,\\\\\\\"defaultVisibility\\\\\\\",!0),v(this,\\\\\\\"serialize_widgets\\\\\\\",!0),this.properties||(this.properties={previousName:\\\\\\\"\\\\\\\"}),this.properties.showOutputText=e.defaultVisibility;const i=this;i.color=LGraphCanvas.node_colors.blue.color,this.addWidget(\\\\\\\"text\\\\\\\",\\\\\\\"Constant\\\\\\\",\\\\\\\"\\\\\\\",((e,t,s,n,a)=\\\\u003e{i.validateName(i.graph),\\\\\\\"\\\\\\\"!==this.widgets[0].value\\\\u0026\\\\u0026(this.title=Wi+this.widgets[0].value),this.properties.previousName=this.widgets[0].value,this.update()}),{}),this.addInput(\\\\\\\"*\\\\\\\",\\\\\\\"*\\\\\\\"),this.onConnectionsChange=function(e,t,s,n,a){if(1!=e||s||(this.inputs[t].type=\\\\\\\"*\\\\\\\",this.inputs[t].name=\\\\\\\"*\\\\\\\",this.title=\\\\\\\"Set\\\\\\\"),n\\\\u0026\\\\u0026i.graph\\\\u0026\\\\u00261==e\\\\u0026\\\\u0026s){const e=i.graph._nodes.find((e=\\\\u003ee.id==n.origin_id)).outputs[n.origin_slot];if(!e)return;const t=e.type,s=i.is_auto_link?this.widgets[0].value:e.name;\\\\\\\"Set\\\\\\\"===this.title\\\\u0026\\\\u0026(this.title=Wi+s,this.widgets[0].value=s),\\\\\\\"*\\\\\\\"===this.widgets[0].value\\\\u0026\\\\u0026(this.widgets[0].value=s),this.validateName(i.graph),this.inputs[0]\\\\u0026\\\\u0026(this.inputs[0].type=t,this.inputs[0].name=s),setTimeout((e=\\\\u003e{this.title=Wi+this.widgets[0].value,this.properties.previousName=this.widgets[0].value}),1)}this.update()},this.validateName=function(e){let t=i.widgets[0].value;if(\\\\\\\"\\\\\\\"!=t){let s=0,n=[];do{n=e._nodes.filter((e=\\\\u003ee!=this\\\\u0026\\\\u0026(\\\\\\\"easy setNode\\\\\\\"==e.type\\\\u0026\\\\u0026e.widgets[0].value===t))),n.length\\\\u003e0\\\\u0026\\\\u0026(t=i.widgets[0].value+s),s++}while(n.length\\\\u003e0);i.widgets[0].value=t,this.update()}},this.clone=function(){const t=e.prototype.clone.apply(this);return t.inputs[0].name=\\\\\\\"*\\\\\\\",t.inputs[0].type=\\\\\\\"*\\\\\\\",t.properties.previousName=\\\\\\\"\\\\\\\",t.size=t.computeSize(),t},this.onAdded=function(e){this.validateName(e)},this.update=function(){if(i.graph){this.findGetters(i.graph).forEach((e=\\\\u003e{e.setType(this.inputs[0].type)})),this.widgets[0].value\\\\u0026\\\\u0026this.findGetters(i.graph,!0).forEach((e=\\\\u003e{e.setName(this.widgets[0].value)}));i.graph._nodes.filter((e=\\\\u003e\\\\\\\"easy getNode\\\\\\\"==e.type)).forEach((e=\\\\u003e{e.setComboValues\\\\u0026\\\\u0026e.setComboValues()}))}},this.findGetters=function(e,t){const i=t?this.properties.previousName:this.widgets[0].value;return e._nodes.filter((e=\\\\u003e\\\\\\\"easy getNode\\\\\\\"==e.type\\\\u0026\\\\u0026e.widgets[0].value===i\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=i))},this.isVirtualNode=!0}onRemoved(){this.graph._nodes.filter((e=\\\\u003e\\\\\\\"easy getNode\\\\\\\"==e.type)).forEach((e=\\\\u003e{e.setComboValues\\\\u0026\\\\u0026e.setComboValues([this])}))}}LiteGraph.registerNodeType(\\\\\\\"easy setNode\\\\\\\",Object.assign(e,{title:\\\\\\\"Set\\\\\\\"})),e.category=\\\\\\\"EasyUse/Util\\\\\\\"}}),fe.registerExtension({name:\\\\\\\"easy getNode\\\\\\\",registerCustomNodes(){class e extends Ui{constructor(t){super(\\\\\\\"Get\\\\\\\"),v(this,\\\\\\\"defaultVisibility\\\\\\\",!0),v(this,\\\\\\\"serialize_widgets\\\\\\\",!0),this.properties||(this.properties={}),this.properties.showOutputText=e.defaultVisibility;const i=this;i.color=LGraphCanvas.node_colors.blue.color,this.addWidget(\\\\\\\"combo\\\\\\\",\\\\\\\"Constant\\\\\\\",\\\\\\\"\\\\\\\",(e=\\\\u003e{this.onRename()}),{values:()=\\\\u003ei.graph._nodes.filter((e=\\\\u003e\\\\\\\"easy setNode\\\\\\\"==e.type)).map((e=\\\\u003ee.widgets[0].value)).sort()}),this.addOutput(\\\\\\\"*\\\\\\\",\\\\\\\"*\\\\\\\"),this.onConnectionsChange=function(e,t,i,s,n){this.validateLinks(),2!=e||i?(this.onRename(),setTimeout((e=\\\\u003e{this.title=\\\\\\\"\\u2b05\\ufe0f\\\\\\\"+this.widgets[0].value}),1)):(this.outputs[t].type=\\\\\\\"*\\\\\\\",this.outputs[t].name=\\\\\\\"*\\\\\\\",this.title=\\\\\\\"Get\\\\\\\")},this.setName=function(e){i.widgets[0].value=e,i.onRename(),i.serialize()},this.onRename=function(e=0){const t=this.findSetter(i.graph);if(t){const i=t.inputs[0].type,s=t.inputs[0].name;this.setType(i,s),this.outputs[e].type=i,this.outputs[e].name=s,this.title=\\\\\\\"\\u2b05\\ufe0f\\\\\\\"+t.widgets[0].value}else this.setType(\\\\\\\"*\\\\\\\",\\\\\\\"*\\\\\\\"),this.outputs[e].type=\\\\\\\"*\\\\\\\",this.outputs[e].name=\\\\\\\"*\\\\\\\"},this.clone=function(){const t=e.prototype.clone.apply(this);return t.size=t.computeSize(),t},this.validateLinks=function(){\\\\\\\"*\\\\\\\"!=this.outputs[0].type\\\\u0026\\\\u0026this.outputs[0].links\\\\u0026\\\\u0026this.outputs[0].links.forEach((e=\\\\u003e{const t=i.graph.links[e];t\\\\u0026\\\\u0026t.type!=this.outputs[0].type\\\\u0026\\\\u0026\\\\\\\"*\\\\\\\"!=t.type\\\\u0026\\\\u0026i.graph.removeLink(e)}))},this.setType=function(e,t){this.outputs[0].name=t,this.outputs[0].type=e,this.validateLinks()},this.findSetter=function(e){const t=this.widgets[0].value;return e._nodes.find((e=\\\\u003e\\\\\\\"easy setNode\\\\\\\"==e.type\\\\u0026\\\\u0026e.widgets[0].value===t\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=t))},this.isVirtualNode=!0}getInputLink(e){const t=this.findSetter(this.graph);if(t){const i=t.inputs[e];return this.graph.links[i.link]}throw new Error(\\\\\\\"No setter found for \\\\\\\"+this.widgets[0].value+\\\\\\\"(\\\\\\\"+this.type+\\\\\\\")\\\\\\\")}onAdded(e){}}LiteGraph.registerNodeType(\\\\\\\"easy getNode\\\\\\\",Object.assign(e,{title:\\\\\\\"Get\\\\\\\"})),e.category=\\\\\\\"EasyUse/Util\\\\\\\"}}),ge.addEventListener(\\\\\\\"easyuse-global-seed\\\\\\\",(function(e){let t=fe.graph._nodes_by_id;for(let i in t){let s=t[i];if(\\\\\\\"easy globalSeed\\\\\\\"==s.type){if(s.widgets){const t=s.widgets.find((e=\\\\u003e\\\\\\\"value\\\\\\\"==e.name));s.widgets.find((e=\\\\u003e\\\\\\\"last_seed\\\\\\\"==e.name)).value=t.value,t.value=e.detail.value}}else if(s.widgets){const t=s.widgets.find((e=\\\\u003e\\\\\\\"seed_num\\\\\\\"==e.name||\\\\\\\"seed\\\\\\\"==e.name||\\\\\\\"noise_seed\\\\\\\"==e.name));t\\\\u0026\\\\u0026null!=e.detail.seed_map[s.id]\\\\u0026\\\\u0026(t.value=e.detail.seed_map[s.id])}}}));const Fi=fe.graphToPrompt;fe.graphToPrompt=function(...e){const t=e[0]||fe.rootGraph||fe.graph;return Promise.resolve(Fi.apply(this,e)).then((e=\\\\u003efunction(e,t){const i=null==e?void 0:e.workflow;if(!i||\\\\\\\"object\\\\\\\"!=typeof i)return e;i.seed_widgets={};const s=(null==t?void 0:t._nodes_by_id)||{};for(let n in s){let e=s[n].widgets;if(e)for(let t in e)\\\\\\\"seed_num\\\\\\\"!=e[t].name\\\\u0026\\\\u0026\\\\\\\"seed\\\\\\\"!=e[t].name\\\\u0026\\\\u0026\\\\\\\"noise_seed\\\\\\\"!=e[t].name||\\\\\\\"converted-widget\\\\\\\"==e[t].type||(i.seed_widgets[n]=parseInt(t))}return e}(e,t)))};const Xi=[\\\\\\\"easy imageSave\\\\\\\",\\\\\\\"easy fullkSampler\\\\\\\",\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy kSamplerTiled\\\\\\\",\\\\\\\"easy kSamplerInpainting\\\\\\\",\\\\\\\"easy kSamplerDownscaleUnet\\\\\\\",\\\\\\\"easy kSamplerSDTurbo\\\\\\\",\\\\\\\"easy detailerFix\\\\\\\"];fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.SaveImageExtraOutput\\\\\\\",async beforeRegisterNodeDef(e,t,i){if(Xi.includes(t.name)){const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){const e=t?t.apply(this,arguments):void 0,s=this.widgets.find((e=\\\\u003e\\\\\\\"filename_prefix\\\\\\\"===e.name||\\\\\\\"save_prefix\\\\\\\"===e.name));return s.serializeValue=()=\\\\u003ebe(i,s.value),e}}else{const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){const e=t?t.apply(this,arguments):void 0;return this.properties\\\\u0026\\\\u0026\\\\\\\"Node name for S\\\\u0026R\\\\\\\"in this.properties||this.addProperty(\\\\\\\"Node name for S\\\\u0026R\\\\\\\",this.constructor.type,\\\\\\\"string\\\\\\\"),e}}}});const Zi=[\\\\\\\"easy wildcards\\\\\\\",\\\\\\\"easy positive\\\\\\\",\\\\\\\"easy negative\\\\\\\",\\\\\\\"easy stylesSelector\\\\\\\",\\\\\\\"easy promptConcat\\\\\\\",\\\\\\\"easy promptReplace\\\\\\\"],Hi=[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingNoiseIn\\\\\\\",\\\\\\\"easy preSamplingCustom\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",\\\\\\\"easy preSamplingSdTurbo\\\\\\\",\\\\\\\"easy preSamplingLayerDiffusion\\\\\\\"],qi=[\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy kSamplerTiled\\\\\\\",\\\\\\\"easy kSamplerInpainting\\\\\\\",\\\\\\\"easy kSamplerDownscaleUnet\\\\\\\",\\\\\\\"easy kSamplerSDTurbo\\\\\\\"],Yi=[\\\\\\\"easy controlnetLoader\\\\\\\",\\\\\\\"easy controlnetLoaderADV\\\\\\\"],Ki=[\\\\\\\"easy instantIDApply\\\\\\\",\\\\\\\"easy instantIDApplyADV\\\\\\\"],Ji=[\\\\\\\"easy ipadapterApply\\\\\\\",\\\\\\\"easy ipadapterApplyADV\\\\\\\",\\\\\\\"easy ipadapterApplyFaceIDKolors\\\\\\\",\\\\\\\"easy ipadapterStyleComposition\\\\\\\"],Bi=[\\\\\\\"easy pipeIn\\\\\\\",\\\\\\\"easy pipeOut\\\\\\\",\\\\\\\"easy pipeEdit\\\\\\\",\\\\\\\"easy pipeEditPrompt\\\\\\\"],Qi=[\\\\\\\"easy XYPlot\\\\\\\",\\\\\\\"easy XYPlotAdvanced\\\\\\\"],$i=[\\\\\\\"easy setNode\\\\\\\"],es=[\\\\\\\"RescaleCFG\\\\\\\",\\\\\\\"LoraLoaderModelOnly\\\\\\\",\\\\\\\"LoraLoader\\\\\\\",\\\\\\\"FreeU\\\\\\\",\\\\\\\"FreeU_v2\\\\\\\",...Ji,...$i],ts={\\\\\\\"easy seed\\\\\\\":{from:{INT:[...Hi,\\\\\\\"easy fullkSampler\\\\\\\"]}},\\\\\\\"easy positive\\\\\\\":{from:{STRING:[...Zi]}},\\\\\\\"easy negative\\\\\\\":{from:{STRING:[...Zi]}},\\\\\\\"easy wildcards\\\\\\\":{from:{STRING:[\\\\\\\"easy showAnything\\\\\\\",...Zi]}},\\\\\\\"easy stylesSelector\\\\\\\":{from:{STRING:[\\\\\\\"easy showAnything\\\\\\\",...Zi]}},\\\\\\\"easy promptConcat\\\\\\\":{from:{STRING:[\\\\\\\"easy showAnything\\\\\\\",...Zi]}},\\\\\\\"easy promptReplace\\\\\\\":{from:{STRING:[\\\\\\\"easy showAnything\\\\\\\",...Zi]}},\\\\\\\"easy fullLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,\\\\\\\"easy fullkSampler\\\\\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy a1111Loader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy comfyLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy hunyuanDiTLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy kolorsLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy pixArtLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy fluxLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy svdLoader\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy zero123Loader\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy sv3dLoader\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy preSampling\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingAdvanced\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingDynamicCFG\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingCustom\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingLayerDiffusion\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy kSamplerLayerDiffusion\\\\\\\",...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingNoiseIn\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy fullkSampler\\\\\\\":{from:{PIPE_LINE:[...Bi.reverse(),\\\\\\\"easy preDetailerFix\\\\\\\",\\\\\\\"easy preMaskDetailerFix\\\\\\\",...Hi,...$i]}},\\\\\\\"easy kSampler\\\\\\\":{from:{PIPE_LINE:[...Bi.reverse(),\\\\\\\"easy preDetailerFix\\\\\\\",\\\\\\\"easy preMaskDetailerFix\\\\\\\",\\\\\\\"easy hiresFix\\\\\\\",...Hi,...$i]}},\\\\\\\"easy controlnetLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\\\\\"easy controlnetLoaderADV\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\\\\\"easy instantIDApply\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy instantIDApplyADV\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy ipadapterApply\\\\\\\":{to:{COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy ipadapterApplyADV\\\\\\\":{to:{STRING:[\\\\\\\"easy sliderControl\\\\\\\",...Zi],COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy ipadapterStyleComposition\\\\\\\":{to:{COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy preDetailerFix\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy detailerFix\\\\\\\",...Bi,...$i]},to:{PIPE_LINE:[\\\\\\\"easy ultralyticsDetectorPipe\\\\\\\",\\\\\\\"easy samLoaderPipe\\\\\\\",\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy fullkSampler\\\\\\\"]}},\\\\\\\"easy preMaskDetailerFix\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy detailerFix\\\\\\\",...Bi,...$i]}},\\\\\\\"easy samLoaderPipe\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preDetailerFix\\\\\\\",...Bi,...$i]}},\\\\\\\"easy ultralyticsDetectorPipe\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preDetailerFix\\\\\\\",...Bi,...$i]}},\\\\\\\"easy cascadeLoader\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy fullCascadeKSampler\\\\\\\",\\\\\\\"easy preSamplingCascade\\\\\\\",...Yi,...Bi,...$i],MODEL:es.filter((e=\\\\u003e!Ji.includes(e)))}},\\\\\\\"easy fullCascadeKSampler\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",...Bi,...$i]}},\\\\\\\"easy preSamplingCascade\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy cascadeKSampler\\\\\\\",...Bi,...$i]}},\\\\\\\"easy cascadeKSampler\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",...Bi,...$i]}},\\\\\\\"easy pipeEdit\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...$i]},to:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\\\\\"easy pipeEditPrompt\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...$i]},to:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}}};class is extends Error{constructor(e=\\\\\\\"Attempted to access LGraph reference that was null or undefined.\\\\\\\",t){super(e,{cause:t}),this.name=\\\\\\\"NullGraphError\\\\\\\"}}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.Suggestions\\\\\\\",async setup(e){const t=LGraphCanvas.prototype.createDefaultNodeForSlot;LGraphCanvas.prototype.createDefaultNodeForSlot=function(e){var i;const s=Object.assign({nodeFrom:null,slotFrom:null,nodeTo:null,slotTo:null,position:[],nodeType:null,posAdd:[0,0],posSizeFix:[0,0]},e||{}),n=this,a=s.nodeFrom\\\\u0026\\\\u0026null!==s.slotFrom,o=!a\\\\u0026\\\\u0026s.nodeTo\\\\u0026\\\\u0026null!==s.slotTo,l=a?s.nodeFrom:s.nodeTo;if(!l||!Object.keys(ts).includes(l.type))return t.call(this,e);if(!a\\\\u0026\\\\u0026!o)return!1;if(!s.nodeType)return!1;const r=a?s.nodeFrom:s.nodeTo;if(!r)throw new TypeError(\\\\\\\"nodeX was null when creating default node for slot.\\\\\\\");const d=r.type;let u=a?s.slotFrom:s.slotTo,c=!1;switch(typeof u){case\\\\\\\"string\\\\\\\":c=a?r.findOutputSlot(u,!1):r.findInputSlot(u,!1),u=a?r.outputs[u]:r.inputs[u];break;case\\\\\\\"object\\\\\\\":if(null===u)return!1;c=a?r.findOutputSlot(u.name):r.findInputSlot(u.name);break;case\\\\\\\"number\\\\\\\":c=u,u=a?r.outputs[u]:r.inputs[u];break;default:return!1}var A=u.type==LiteGraph.EVENT?\\\\\\\"_event_\\\\\\\":u.type,p=a?LiteGraph.slot_types_default_out:LiteGraph.slot_types_default_in;if(null==p?void 0:p[A]){let e=!1;const t=a?\\\\\\\"from\\\\\\\":\\\\\\\"to\\\\\\\";if(ts[d]\\\\u0026\\\\u0026ts[d][t]\\\\u0026\\\\u0026(null==(i=ts[d][t][A])?void 0:i.length)\\\\u003e0){for(var h in ts[d][t][A])if(s.nodeType==ts[d][t][A][h]||\\\\\\\"AUTO\\\\\\\"==s.nodeType){e=ts[d][t][A][h];break}}else if(\\\\\\\"object\\\\\\\"==typeof p[A]||\\\\\\\"array\\\\\\\"==typeof p[A]){for(var h in p[A])if(s.nodeType==p[A][h]||\\\\\\\"AUTO\\\\\\\"==s.nodeType){e=p[A][h];break}}else s.nodeType!=p[A]\\\\u0026\\\\u0026\\\\\\\"AUTO\\\\\\\"!=s.nodeType||(e=p[A]);if(e){var m=!1;\\\\\\\"object\\\\\\\"==typeof e\\\\u0026\\\\u0026e.node\\\\u0026\\\\u0026(m=e,e=e.node);var f=LiteGraph.createNode(e);if(f){if(m){if(m.properties)for(var g in m.properties)f.addProperty(g,m.properties[g]);if(m.inputs)for(var g in f.inputs=[],m.inputs)f.addOutput(m.inputs[g][0],m.inputs[g][1]);if(m.outputs)for(var g in f.outputs=[],m.outputs)f.addOutput(m.outputs[g][0],m.outputs[g][1]);m.title\\\\u0026\\\\u0026(f.title=m.title),m.json\\\\u0026\\\\u0026f.configure(m.json)}n.graph.add(f),f.pos=[s.position[0]+s.posAdd[0]+(s.posSizeFix[0]?s.posSizeFix[0]*f.size[0]:0),s.position[1]+s.posAdd[1]+(s.posSizeFix[1]?s.posSizeFix[1]*f.size[1]:0)];const e={node:f,opts:s};if(!this.canvas.dispatchEvent(new CustomEvent(\\\\\\\"connect-new-default-node\\\\\\\",{detail:e,cancelable:!0})))return!0;if(a){if(!s.nodeFrom)throw new TypeError(\\\\\\\"createDefaultNodeForSlot - nodeFrom was null\\\\\\\");s.nodeFrom.connectByType(c,f,A)}else{if(!s.nodeTo)throw new TypeError(\\\\\\\"createDefaultNodeForSlot - nodeTo was null\\\\\\\");s.nodeTo.connectByTypeOutput(c,f,A)}return!0}}}return!1};let i=LGraphCanvas.prototype.showConnectionMenu;LGraphCanvas.prototype.showConnectionMenu=function(e){var t;const s=Object.assign({nodeFrom:null,slotFrom:null,nodeTo:null,slotTo:null,e:void 0,allow_searchbox:this.allow_searchbox,showSearchBox:this.showSearchBox},e||{}),n=this,{graph:a}=this,{afterRerouteId:o}=s,l=s.nodeFrom\\\\u0026\\\\u0026s.slotFrom,r=!l\\\\u0026\\\\u0026s.nodeTo\\\\u0026\\\\u0026s.slotTo,d=l?s.nodeFrom:s.nodeTo;if(!d||!Object.keys(ts).includes(d.type))return i.call(this,e);if(!l\\\\u0026\\\\u0026!r)return!1;const u=l?s.nodeFrom:s.nodeTo;if(!u)throw new TypeError(\\\\\\\"nodeX was null when creating default node for slot.\\\\\\\");let c=l?s.slotFrom:s.slotTo,A=!1;switch(typeof c){case\\\\\\\"string\\\\\\\":A=l?u.findOutputSlot(c,!1):u.findInputSlot(c,!1),c=l?u.outputs[c]:u.inputs[c];break;case\\\\\\\"object\\\\\\\":if(null===c)return;A=l?u.findOutputSlot(c.name):u.findInputSlot(c.name);break;case\\\\\\\"number\\\\\\\":A=c,c=l?u.outputs[c]:u.inputs[c];break;default:return!1}const p=[\\\\\\\"Add Node\\\\\\\",\\\\\\\"Add Reroute\\\\\\\",null];s.allow_searchbox\\\\u0026\\\\u0026p.push(\\\\\\\"Search\\\\\\\",null);var h=c.type==LiteGraph.EVENT?\\\\\\\"_event_\\\\\\\":c.type,m=l?LiteGraph.slot_types_default_out:LiteGraph.slot_types_default_in,f=u.type;if(m\\\\u0026\\\\u0026m[h]){const e=l?\\\\\\\"from\\\\\\\":\\\\\\\"to\\\\\\\";if(ts[f]\\\\u0026\\\\u0026ts[f][e]\\\\u0026\\\\u0026(null==(t=ts[f][e][h])?void 0:t.length)\\\\u003e0)for(var g in ts[f][e][h])p.push(ts[f][e][h][g]);else if(\\\\\\\"object\\\\\\\"==typeof m[h]||\\\\\\\"array\\\\\\\"==typeof m[h])for(var g in m[h])p.push(m[h][g]);else p.push(m[h])}var v=new LiteGraph.ContextMenu(p,{event:s.e,extra:c,title:(c\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=c.name?c.name+(h?\\\\\\\" | \\\\\\\":\\\\\\\"\\\\\\\"):\\\\\\\"\\\\\\\")+(c\\\\u0026\\\\u0026h?h:\\\\\\\"\\\\\\\"),callback:function(e,t,i){var r,d;switch(e){case\\\\\\\"Add Node\\\\\\\":LGraphCanvas.onMenuAdd(null,null,i,v,(function(e){var t,i;e\\\\u0026\\\\u0026(l?null==(t=s.nodeFrom)||t.connectByType(A,e,h,{afterRerouteId:o}):null==(i=s.nodeTo)||i.connectByTypeOutput(A,e,h,{afterRerouteId:o}))}));break;case\\\\\\\"Add Reroute\\\\\\\":const u=l?s.nodeFrom:s.nodeTo,p=t.extra;if(!a)throw new is;if(!u)throw new TypeError(\\\\\\\"Cannot add reroute: node was null\\\\\\\");if(!p)throw new TypeError(\\\\\\\"Cannot add reroute: slot was null\\\\\\\");if(!s.e)throw new TypeError(\\\\\\\"Cannot add reroute: CanvasPointerEvent was null\\\\\\\");if(!u.connectFloatingReroute([s.e.canvasX,s.e.canvasY],p,o))throw new Error(\\\\\\\"Failed to create reroute\\\\\\\");n.dirty_canvas=!0,n.dirty_bgcanvas=!0;break;case\\\\\\\"Search\\\\\\\":l?s.showSearchBox(i,{node_from:s.nodeFrom,slot_from:c,type_filter_in:h}):s.showSearchBox(i,{node_to:s.nodeTo,slot_from:c,type_filter_out:h});break;default:const m={position:[(null==(r=s.e)?void 0:r.canvasX)??0,(null==(d=s.e)?void 0:d.canvasY)??0],nodeType:e,afterRerouteId:o};n.createDefaultNodeForSlot(Object.assign(s,m))}}});return v}}}),fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.TimeTaken\\\\\\\",setup(){let e=new Map,t=0;ge.addEventListener(\\\\\\\"execution_start\\\\\\\",(e=\\\\u003e{graph\\\\u0026\\\\u0026graph._nodes.forEach((e=\\\\u003e{e.executionDuration\\\\u0026\\\\u0026delete e.executionDuration}))})),ge.addEventListener(\\\\\\\"executing\\\\\\\",(i=\\\\u003e{if(!xe(\\\\\\\"EasyUse.Nodes.Runtime\\\\\\\",null))return;const s=(null==i?void 0:i.node)||(null==i?void 0:i.detail)||null,n=e.get(t);if(e.delete(t),t\\\\u0026\\\\u0026n){const e=Date.now()-n,i=xt(t);i\\\\u0026\\\\u0026(i.executionDuration||(i.executionDuration=0),i.executionDuration=i.executionDuration+e/1e3)}t=s,e.set(s,Date.now())}))},beforeRegisterNodeDef(e,t){const i=e.prototype.onDrawForeground;e.prototype.onDrawForeground=function(...e){const[t]=e;return function(e,t){if(!t)return;t=parseFloat(t).toFixed(3)+Ne(\\\\\\\"s\\\\\\\"),e.save(),e.fillStyle=LiteGraph.NODE_DEFAULT_BGCOLOR,function(e,t,i,s,n,a){e.beginPath(),e.moveTo(t+a,i),e.lineTo(t+s-a,i),e.arcTo(t+s,i,t+s,i+a,a),e.lineTo(t+s,i+n-a),e.arcTo(t+s,i+n,t+s-a,i+n,a),e.lineTo(t+a,i+n),e.arcTo(t,i+n,t,i+n-a,a),e.lineTo(t,i+a),e.arcTo(t,i,t+a,i,a),e.closePath()}(e,0,-LiteGraph.NODE_TITLE_HEIGHT-20,e.measureText(t).width+10,LiteGraph.NODE_TITLE_HEIGHT-10,4),e.fill(),function(e,t,i,s,n=\\\\\\\"#000\\\\\\\",a=12,o=\\\\\\\"Inter\\\\\\\"){e.font=`${a}px ${o}`,e.fillStyle=n,e.fillText(t,i,s)}(e,t,8,-LiteGraph.NODE_TITLE_HEIGHT-6,LiteGraph.NODE_TITLE_COLOR),e.restore()}(t,this.executionDuration),null==i?void 0:i.apply(this,e)}}});let ss=null;fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.HotKeys\\\\\\\",setup(){if(void 0!==x){x(\\\\\\\"up,down,left,right\\\\\\\",(function(e,t){var i,s,n,a,o,l,r,d,u,c,A,p,h,m,f;e.preventDefault();if(!xe(\\\\\\\"EasyUse.Hotkeys.JumpNearestNodes\\\\\\\",null))return;const g=Lt();if(0===g.length)return;const v=g[0];switch(t.key){case\\\\\\\"up\\\\\\\":case\\\\\\\"left\\\\\\\":let e=null;if(Tt(v)){const e=null==(i=v.widgets_values)?void 0:i[0],t=null==(s=v.graph)?void 0:s._nodes,n=null==t?void 0:t.find((t=\\\\u003e{var i;if(Ot(t)){if((null==(i=t.widgets_values)?void 0:i[0])===e)return t}return null}));n\\\\u0026\\\\u0026Et(n)}else if((null==(n=v.inputs)?void 0:n.length)\\\\u003e0){for(let t=0;t\\\\u003cv.inputs.length;t++)if(v.inputs[t].link){e=v.inputs[t].link;break}if(e){const t=null==(a=v.graph)?void 0:a.links;if(t[e]){const i=null==(o=t[e])?void 0:o.origin_id,s=null==(r=null==(l=v.graph)?void 0:l._nodes_by_id)?void 0:r[i];s\\\\u0026\\\\u0026Et(s)}}}break;case\\\\\\\"down\\\\\\\":case\\\\\\\"right\\\\\\\":let t=null;if(Ot(v)){const e=null==(d=v.widgets_values)?void 0:d[0],t=null==(u=v.graph)?void 0:u._nodes,i=null==t?void 0:t.find((t=\\\\u003e{var i;if(Tt(t)){if((null==(i=t.widgets_values)?void 0:i[0])===e)return t}return null}));i\\\\u0026\\\\u0026Et(i)}else if((null==(c=v.outputs)?void 0:c.length)\\\\u003e0){for(let e=0;e\\\\u003cv.outputs.length;e++)if((null==(A=v.outputs[e].links)?void 0:A.length)\\\\u003e0\\\\u0026\\\\u0026v.outputs[e].links[0]){t=v.outputs[e].links[0];break}if(t){const e=null==(p=v.graph)?void 0:p.links;if(e[t]){const i=null==(h=e[t])?void 0:h.target_id,s=null==(f=null==(m=v.graph)?void 0:m._nodes_by_id)?void 0:f[i];s\\\\u0026\\\\u0026Et(s)}}}}})),x(\\\\\\\"shift+up,shift+down,shift+left,shift+right,shift+alt+\\u2318+left,shift+alt+\\u2318+right,shift+alt+ctrl+left,shift+alt+ctrl+right\\\\\\\",(function(e,t){e.preventDefault();if(!xe(\\\\\\\"EasyUse.Hotkeys.AlignSelectedNodes\\\\\\\",null))return;const i=Lt();if(i.length\\\\u003c=1)return;const s=i;switch(t.key){case\\\\\\\"shift+up\\\\\\\":LGraphCanvas.alignNodes(s,\\\\\\\"top\\\\\\\",s[0]);break;case\\\\\\\"shift+down\\\\\\\":LGraphCanvas.alignNodes(s,\\\\\\\"bottom\\\\\\\",s[0]);break;case\\\\\\\"shift+left\\\\\\\":LGraphCanvas.alignNodes(s,\\\\\\\"left\\\\\\\",s[0]);break;case\\\\\\\"shift+right\\\\\\\":LGraphCanvas.alignNodes(s,\\\\\\\"right\\\\\\\",s[0]);break;case\\\\\\\"shift+alt+ctrl+left\\\\\\\":case\\\\\\\"shift+alt+\\u2318+left\\\\\\\":Ft(s,\\\\\\\"horizontal\\\\\\\");break;case\\\\\\\"shift+alt+ctrl+right\\\\\\\":case\\\\\\\"shift+alt+\\u2318+right\\\\\\\":Ft(s,\\\\\\\"vertical\\\\\\\")}ss||(ss=Ke()),ss\\\\u0026\\\\u0026ss.update()})),x(\\\\\\\"shift+\\u2318+left,shift+\\u2318+right,shift+ctrl+left,shift+ctrl+right\\\\\\\",(function(e,t){e.preventDefault();if(!xe(\\\\\\\"EasyUse.Hotkeys.NormalizeSelectedNodes\\\\\\\",null))return;const i=Lt();if(i.length\\\\u003c=1)return;const s=i;switch(t.key){case\\\\\\\"shift+ctrl+left\\\\\\\":case\\\\\\\"shift+\\u2318+left\\\\\\\":Wt(s,\\\\\\\"width\\\\\\\");break;case\\\\\\\"shift+ctrl+right\\\\\\\":case\\\\\\\"shift+\\u2318+right\\\\\\\":Wt(s,\\\\\\\"height\\\\\\\")}ss||(ss=Ke()),ss\\\\u0026\\\\u0026ss.update()})),x(\\\\\\\"shift+g\\\\\\\",(function(e,t){e.preventDefault();xe(\\\\\\\"EasyUse.Hotkeys.AddGroup\\\\\\\",null)\\\\u0026\\\\u0026(as(),ss||(ss=Ke()),ss\\\\u0026\\\\u0026ss.update())})),x(\\\\\\\"shift+r\\\\\\\",(function(e,t){e.preventDefault();xe(\\\\\\\"EasyUse.Hotkeys.cleanVRAMused\\\\\\\",null)\\\\u0026\\\\u0026vi()})),x(\\\\\\\"shift+m\\\\\\\",(function(e,t){var i,s,n;if(!xe(\\\\\\\"EasyUse.Hotkeys.toggleNodesMap\\\\\\\",null))return;let a=(null==(i=fe.extensionManager)?void 0:i.sidebarTab)||fe.extensionManager,o=(null==(s=fe.extensionManager.sidebarTab)?void 0:s.activeSidebarTabId)||(null==(n=fe.extensionManager)?void 0:n.activeSidebarTab);a.activeSidebarTabId=o==Pe?null:Pe}));const e=[];Array.from(Array(10).keys()).forEach((t=\\\\u003ee.push(`alt+${t}`))),x(e.join(\\\\\\\",\\\\\\\"),(async function(e,t){e.preventDefault();if(!xe(\\\\\\\"EasyUse.Hotkeys.NodesTemplate\\\\\\\",null))return;const i=t.key;let s=parseInt(i.split(\\\\\\\"+\\\\\\\")[1]);const n=await ge.getUserData(\\\\\\\"comfy.templates.json\\\\\\\");let a=null;if(200==n.status)try{a=await n.json()}catch(l){Ye.error(Ne(\\\\\\\"Get Node Templates File Failed\\\\\\\"))}else localStorage[\\\\\\\"Comfy.NodeTemplates\\\\\\\"]?a=JSON.parse(localStorage[\\\\\\\"Comfy.NodeTemplates\\\\\\\"]):Ye.warn(Ne(\\\\\\\"No Node Templates Found\\\\\\\"));if(!a)return void Ye.warn(Ne(\\\\\\\"No Node Templates Found\\\\\\\"));s=0===s?9:s-1;const o=a[s];if(o)try{const e=(null==o?void 0:o.name)||\\\\\\\"Group\\\\\\\",t=(null==o?void 0:o.data)?JSON.parse(o.data):[];ns((async()=\\\\u003e{await _e.registerFromWorkflow(t.groupNodes,{}),localStorage.litegrapheditor_clipboard=o.data,fe.canvas.pasteFromClipboard(),t.groupNodes||as(e)}))}catch(l){Ye.error(l)}else Ye.warn(Ne(\\\\\\\"Node template with {key} not set\\\\\\\").replace(\\\\\\\"{key}\\\\\\\",i))}));const t=async function(e){if((\\\\\\\"b\\\\\\\"===e.key||\\\\\\\"m\\\\\\\"==e.key)\\\\u0026\\\\u0026(e.metaKey||e.ctrlKey)){if(0===Lt().length)return;ss||(ss=Ke()),ss\\\\u0026\\\\u0026ss.update()}};window.addEventListener(\\\\\\\"keydown\\\\\\\",t,!0)}}});const ns=async e=\\\\u003e{const t=localStorage.litegrapheditor_clipboard;await e(),localStorage.litegrapheditor_clipboard=t},as=e=\\\\u003e{const t=Lt();if(0===t.length)return;const i=t;let s=new LiteGraph.LGraphGroup;s.title=e||\\\\\\\"Group\\\\\\\",((e,t=[],i=20)=\\\\u003e{var s,n,a,o,l,r,d,u,c,A;for(var p of(n=a=o=l=-1,r=d=u=c=-1,[e._nodes,t]))for(var h in p)r=(A=p[h]).pos[0],d=A.pos[1],u=A.pos[0]+A.size[0],c=A.pos[1]+A.size[1],\\\\\\\"Reroute\\\\\\\"!=A.type\\\\u0026\\\\u0026(d-=LiteGraph.NODE_TITLE_HEIGHT),(null==(s=A.flags)?void 0:s.collapsed)\\\\u0026\\\\u0026(c=d+LiteGraph.NODE_TITLE_HEIGHT,(null==A?void 0:A._collapsed_width)\\\\u0026\\\\u0026(u=r+Math.round(A._collapsed_width))),(-1==n||r\\\\u003cn)\\\\u0026\\\\u0026(n=r),(-1==a||d\\\\u003ca)\\\\u0026\\\\u0026(a=d),(-1==o||u\\\\u003eo)\\\\u0026\\\\u0026(o=u),(-1==l||c\\\\u003el)\\\\u0026\\\\u0026(l=c);a-=Math.round(1.4*e.font_size),e.pos=[n-i,a-i],e.size=[o-n+2*i,l-a+2*i]})(s,i),fe.canvas.graph.add(s)},os=\\\\\\\"easy imageChooser\\\\\\\",ls=e=\\\\u003e(null==e?void 0:e.comfyClass)===os;fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.imageChooser\\\\\\\",setup(){const e=ge.interrupt;ge.interrupt=function(){var t;(null==(t=fe.graph)?void 0:t._nodes_by_id)\\\\u0026\\\\u0026(()=\\\\u003e{var e;Object.values(null==(e=fe.graph)?void 0:e._nodes_by_id).forEach((e=\\\\u003e{ls(e)\\\\u0026\\\\u0026e.cancelSelection(\\\\\\\"interrupt\\\\\\\")}))})(),e.apply(this,arguments)},ge.addEventListener(\\\\\\\"easyuse-image-choose\\\\\\\",(e=\\\\u003e{var t;const i=e.detail,s=fe.graph._nodes_by_id[i.id];if(!s||!ls(s))return;s.setExecutingState(!1),s.selected_images.clear(),s.anti_selected.clear(),s.isWaitingSelection=[\\\\\\\"Always Pause\\\\\\\",\\\\\\\"Keep Last Selection\\\\\\\"].includes(s.currentMode),s.isCanceling=!1,s.overIndex=null;const n=(null==(t=i.urls)?void 0:t.map(((e,t)=\\\\u003e({index:t,filename:e.filename,subfolder:e.subfolder,type:e.type}))))||[];s.imageData=n,s.imgs=[],n.forEach((e=\\\\u003e{const t=new Image;t.onload=()=\\\\u003e{fe.graph.setDirtyCanvas(!0)},t.src=`/view?filename=${encodeURIComponent(e.filename)}${(e=\\\\u003e`\\\\u0026type=${e.type}\\\\u0026subfolder=${e.subfolder}\\\\u0026rand=${e.random}`)(e)}`,s.imgs.push(t)})),s.update(),\\\\\\\"Always Pause\\\\\\\"===s.currentMode\\\\u0026\\\\u0026s.setExecutingState(!0)})),ge.addEventListener(\\\\\\\"easyuse-image-keep-selection\\\\\\\",(e=\\\\u003e{const t=e.detail,i=fe.graph._nodes_by_id[t.id];i\\\\u0026\\\\u0026ls(i)\\\\u0026\\\\u0026(i.isWaitingSelection=!1,i.isCancelling=!1,t.selected\\\\u0026\\\\u0026Array.isArray(t.selected)\\\\u0026\\\\u0026(i.selected_images.clear(),t.selected.forEach((e=\\\\u003e{i.selected_images.add(e)}))),i.update())}))},beforeRegisterNodeDef(e,t){if(t.name==os){e.prototype.confirmSelection=function(){ge.fetchApi(\\\\\\\"/easyuse/image_chooser_message\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:JSON.stringify({node_id:this.id.toString(),action:\\\\\\\"select\\\\\\\",selected:Array.from(this.selected_images)})}).catch((e=\\\\u003e{})).finally((e=\\\\u003e{this.isWaitingSelection=!1,this.update(),this.setExecutingState(!1)}))},e.prototype.cancelSelection=function(e){ge.fetchApi(\\\\\\\"/easyuse/image_chooser_message\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:JSON.stringify({node_id:this.id.toString(),action:\\\\\\\"cancel\\\\\\\",selected:[]})}).catch((e=\\\\u003e{})).finally((e=\\\\u003e{this.isCanceling=!1,this.isWaitingSelection=!1,this.update(),this.setExecutingState(!1)}))},e.prototype.updateWidgets=function(){var e;if(!this.confirm_button_widget||!this.cancel_button_widget)return;const t=this.selected_images.size,i=(null==(e=this.imgs)?void 0:e.length)||0;if(this.isCanceling)this.confirm_button_widget.name=Ne(\\\\\\\"Canceling\\\\\\\"),this.cancel_button_widget.name=\\\\\\\"\\\\\\\",this.confirm_button_widget.disabled=!0,this.cancel_button_widget.disabled=!0;else if(this.isWaitingSelection)t\\\\u003e0?(this.confirm_button_widget.name=t\\\\u003e1?`${Ne(\\\\\\\"Progress selected\\\\\\\")} (${t}/${i})`:`${Ne(\\\\\\\"Progress selected image\\\\\\\")}`,this.confirm_button_widget.disabled=!1):(this.confirm_button_widget.name=Ne(\\\\\\\"Please select images to continue\\\\\\\"),this.confirm_button_widget.disabled=!0),this.cancel_button_widget.name=Ne(\\\\\\\"Cancel current run\\\\\\\"),this.cancel_button_widget.disabled=!1;else{const e={\\\\\\\"Always Pause\\\\\\\":Ne(\\\\\\\"Waiting for selection...\\\\\\\"),\\\\\\\"Keep Last Selection\\\\\\\":Ne(\\\\\\\"Using last selection\\\\\\\")};this.confirm_button_widget.name=(t\\\\u003e0\\\\u0026\\\\u0026\\\\\\\"Always Pause\\\\\\\"==this.currentMode?Ne(\\\\\\\"Please run first\\\\\\\"):null==e?void 0:e[this.currentMode])||Ne(\\\\\\\"Unknown Mode\\\\\\\"),this.cancel_button_widget.name=\\\\\\\"\\\\\\\",this.confirm_button_widget.disabled=!0,this.cancel_button_widget.disabled=!0}this.setDirtyCanvas(!0,!0)},e.prototype.serialize=function(){const e=LiteGraph.LGraphNode.prototype.serialize.call(this);return e.isWaitingSelection=this.isWaitingSelection,e.currentMode=this.currentMode,this.imageData\\\\u0026\\\\u0026this.imageData.length\\\\u003e0\\\\u0026\\\\u0026(e.imageData=this.imageData),this.selected_images\\\\u0026\\\\u0026this.selected_images.size\\\\u003e0\\\\u0026\\\\u0026(e.selected_images=Array.from(this.selected_images)),e.isExecuting=this.isExecuting||!1,e},e.prototype.configure=function(e){LiteGraph.LGraphNode.prototype.configure.call(this,e),this.isWaitingSelection=e.isWaitingSelection||!1,this.currentMode=e.currentMode||\\\\\\\"Always Pause\\\\\\\",this.imgs=[],this.updateWidgets()},e.prototype.setExecutingState=function(e){this.isExecuting=e,fe.graph\\\\u0026\\\\u0026fe.graph.setDirtyCanvas(!0,!1)};const t=e.prototype.update;e.prototype.update=function(){null==t||t.call(this,arguments),this.updateWidgets()};const i=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){null==i||i.call(this,arguments),this.selected_images=new Set,this.anti_selected=new Set,this.currentMode=\\\\\\\"Always Pause\\\\\\\",this.isWaitingSelection=!1,this.isCanceling=!1,this.imageData=[],this.imgs,this.confirm_button_widget=this.addWidget(\\\\\\\"button\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",(()=\\\\u003e{this.confirmSelection()})),this.cancel_button_widget=this.addWidget(\\\\\\\"button\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",(()=\\\\u003e{this.cancelSelection()})),this.confirm_button_widget.serialize=!1,this.cancel_button_widget.serialize=!1,setTimeout((e=\\\\u003e{const t=wt(this,\\\\\\\"mode\\\\\\\");t.callback=e=\\\\u003e{requestAnimationFrame((t=\\\\u003e{this.currentMode=e,this.updateWidgets(),this.setDirtyCanvas(!0,!0)}))},this.currentMode=t.value||\\\\\\\"Always Pause\\\\\\\",this.updateWidgets()}),1),Object.defineProperty(this.confirm_button_widget,\\\\\\\"clicked\\\\\\\",{get:function(){return this._clicked},set:function(e){this._clicked=e\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=this.name}}),Object.defineProperty(this.cancel_button_widget,\\\\\\\"clicked\\\\\\\",{get:function(){return this._clicked},set:function(e){this._clicked=e\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=this.name}}),Object.defineProperty(this,\\\\\\\"imageIndex\\\\\\\",{get:function(){return null},set:function(e){this.overIndex=e}}),Object.defineProperty(this,\\\\\\\"imagey\\\\\\\",{get:function(){var e,t;return(null==(t=null==(e=this.widgets)?void 0:e[this.widgets.length-1])?void 0:t.last_y)+LiteGraph.NODE_WIDGET_HEIGHT},set:function(e){this.imagey=e}});const e=this.onMouseDown;this.onMouseDown=function(t,i,s){if(t.isPrimary){const e=rs(this,i);e\\\\u003e=0\\\\u0026\\\\u0026this.toggleImageSelection(e)}return e\\\\u0026\\\\u0026e.apply(this,arguments)},this.update()},e.prototype.onDrawBackground,e.prototype.onDrawBackground=function(e){!function(e,t,i=0){var s,n;if(!e.imgs||!e.imgs.length)return;const a=fe.canvas,o=a.graph_mouse,l=15,r=e.size[0];let d=e.size[1]-i-l;d\\\\u003c200\\\\u0026\\\\u0026(d=200,requestAnimationFrame((t=\\\\u003e{e.size[1]=i+l+200})));if(null==e.imageIndex){let n,l,u,c;if(us(e.imgs))({cellWidth:n,cellHeight:l,cols:c,shiftX:u}=cs(e.imgs,r,d));else{const t=e.imgs.reduce(((e,t)=\\\\u003eMath.max(e,t.naturalWidth,t.naturalHeight)),0),i=[];i.length=null==(s=e.imgs)?void 0:s.length,i[0]={naturalWidth:t,naturalHeight:t},({cellWidth:n,cellHeight:l,cols:c,shiftX:u}=cs(i,r,d))}let A=!1,p=e.imgs.length;e.imageRects=[];for(let s=0;s\\\\u003cp;s++){e.imgs[s];const r=s%c*n+u,d=Math.floor(s/c)*l+i;if(!A\\\\u0026\\\\u0026(A=LiteGraph.isInsideRectangle(o[0],o[1],r+e.pos[0],d+e.pos[1],n,l),A)){e.overIndex=s;let i=110;a.pointer_is_down\\\\u0026\\\\u0026(e.pointerDown\\\\u0026\\\\u0026e.pointerDown.index===s||(e.pointerDown={index:s,pos:[...o]}),i=125),t.filter=`contrast(${i}%) brightness(${i}%)`,a.canvas.style.cursor=\\\\\\\"pointer\\\\\\\"}e.imageRects.push([r,d,n,l])}}if(e.imageRects)for(let c=0;c\\\\u003ce.imgs.length;c++){t.fillStyle=\\\\\\\"#000\\\\\\\",t.fillRect(...e.imageRects[c]);const i=e.imgs[c],s=e.imageRects[c][2],n=e.imageRects[c][3];let a=s/i.width,o=n/i.height;var u=Math.min(a,o);let l=u*i.height,r=u*i.width;const d=e.imageRects[c][0]+(s-r)/2,A=e.imageRects[c][1]+(n-l)/2,p=2;t.drawImage(i,d+p,A+p,r-2*p,l-2*p)}t.lineWidth=2,t.strokeStyle=\\\\\\\"green\\\\\\\",e\\\\u0026\\\\u0026e.selected_images\\\\u0026\\\\u0026e.selected_images.forEach((i=\\\\u003e{ds(e,i,t)}));t.strokeStyle=\\\\\\\"#F88\\\\\\\",null==(n=null==e?void 0:e.anti_selected)||n.forEach((i=\\\\u003e{ds(e,i,t)}))}(this,e,this.imagey||0)},e.prototype.toggleImageSelection=function(e){this.selected_images.has(e)?this.selected_images.delete(e):this.selected_images.add(e),this.update()}}}});const rs=(e,t)=\\\\u003e{var i,s;if((null==(i=e.imgs)?void 0:i.length)\\\\u003e1)for(var n=0;n\\\\u003ce.imageRects.length;n++){const i=t[0]-e.imageRects[n][0],s=t[1]-e.imageRects[n][1];if(i\\\\u003e0\\\\u0026\\\\u0026i\\\\u003ce.imageRects[n][2]\\\\u0026\\\\u0026s\\\\u003e0\\\\u0026\\\\u0026s\\\\u003ce.imageRects[n][3])return n}else if(1==(null==(s=e.imgs)?void 0:s.length)\\\\u0026\\\\u0026t[1]\\\\u003ee.imagey)return 0;return-1};function ds(e,t,i){var s;if(e.imageRects)s=e.imageRects[t];else{const t=e.imagey;s=[1,t+1,e.size[0]-2,e.size[1]-t-2]}i.strokeRect(s[0]+1,s[1]+1,s[2]-2,s[3]-2)}const us=e=\\\\u003e{if(!e.length||1===e.length)return!0;const t=e[0].naturalWidth/e[0].naturalHeight;for(let i=1;i\\\\u003ce.length;i++){if(t!=e[i].naturalWidth/e[i].naturalHeight)return!1}return!0};function cs(e,t,i){let s=0,n=e[0].naturalWidth,a=e[0].naturalHeight;const o=e.length;let l,r,d,u,c;for(let A=1;A\\\\u003c=o;A++){const e=Math.ceil(o/A),p=t/A,h=p/n,m=i/e/a,f=Math.min(h,m,1),g=n*f,v=a*f,y=g*v*o;y\\\\u003es\\\\u0026\\\\u0026(s=y,l=g,r=v,d=A,u=e,c=A*((p-g)/2))}return{cellWidth:l,cellHeight:r,cols:d,rows:u,shiftX:c}}Number.prototype.div=function(e){return function(e,t){let i,s,n=0,a=0,o=\\\\\\\"string\\\\\\\"==typeof e?e:e.toString(),l=\\\\\\\"string\\\\\\\"==typeof t?t:t.toString();try{n=o.toString().split(\\\\\\\".\\\\\\\")[1].length}catch(r){}try{a=l.toString().split(\\\\\\\".\\\\\\\")[1].length}catch(r){}return i=Number(o.toString().replace(\\\\\\\".\\\\\\\",\\\\\\\"\\\\\\\")),s=Number(l.toString().replace(\\\\\\\".\\\\\\\",\\\\\\\"\\\\\\\")),i/s*Math.pow(10,a-n)}(this,e)};let As=[],ps=0;const hs={sd3:6.5,\\\\\\\"sd3-turbo\\\\\\\":4};class ms extends ye{constructor(){super(),this.lists=[],this.dialog_div=null,this.user_div=null}addItem(e,t){return ve(\\\\\\\"div.easyuse-account-dialog-item\\\\\\\",[ve(\\\\\\\"input\\\\\\\",{type:\\\\\\\"text\\\\\\\",placeholder:\\\\\\\"Enter name\\\\\\\",oninput:e=\\\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\\\\\".easyuse-account-dialog-item\\\\\\\"),e.target.parentNode);As[t].name=e.target.value},value:As[e].name}),ve(\\\\\\\"input.key\\\\\\\",{type:\\\\\\\"text\\\\\\\",oninput:e=\\\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\\\\\".easyuse-account-dialog-item\\\\\\\"),e.target.parentNode);As[t].key=e.target.value},placeholder:\\\\\\\"Enter APIKEY\\\\\\\",value:As[e].key}),ve(\\\\\\\"button.choose\\\\\\\",{textContent:Ne(\\\\\\\"Choose\\\\\\\"),onclick:async e=\\\\u003e{var i,s,n;const a=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\\\\\".easyuse-account-dialog-item\\\\\\\"),e.target.parentNode);let o=As[a].name,l=As[a].key;if(!o)return void Ye.error(Ne(\\\\\\\"Please enter the account name\\\\\\\"));if(!l)return void Ye.error(Ne(\\\\\\\"Please enter the APIKEY\\\\\\\"));let r=!0;for(let t=0;t\\\\u003cAs.length;t++)if(!As[t].key){r=!1;break}if(!r)return void Ye.error(Ne(\\\\\\\"APIKEY is not Empty\\\\\\\"));ps=a;const d=new FormData;d.append(\\\\\\\"api_keys\\\\\\\",JSON.stringify(As)),d.append(\\\\\\\"current\\\\\\\",ps);const u=await ge.fetchApi(\\\\\\\"/easyuse/stability/set_api_keys\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:d});if(200==u.status){const e=await u.json();if((null==e?void 0:e.account)\\\\u0026\\\\u0026(null==e?void 0:e.balance)){const a=(null==(i=e.account)?void 0:i.profile_picture)||null,o=(null==(s=e.account)?void 0:s.email)||null,l=(null==(n=e.balance)?void 0:n.credits)||0;t.replaceChildren(ve(\\\\\\\"div.easyuse-account-user-info\\\\\\\",{onclick:e=\\\\u003e{(new ms).show(t)}},[ve(\\\\\\\"div.user\\\\\\\",[ve(\\\\\\\"div.avatar\\\\\\\",a?[ve(\\\\\\\"img\\\\\\\",{src:a})]:\\\\\\\"\\ud83d\\ude00\\\\\\\"),ve(\\\\\\\"div.info\\\\\\\",[ve(\\\\\\\"h5.name\\\\\\\",o),ve(\\\\\\\"h6.remark\\\\\\\",\\\\\\\"Credits: \\\\\\\"+l)])]),ve(\\\\\\\"div.edit\\\\\\\",{textContent:Ne(\\\\\\\"Edit\\\\\\\")})])),Ye.success(Ne(\\\\\\\"Save Succeed\\\\\\\"))}else Ye.success(Ne(\\\\\\\"Save Succeed\\\\\\\"));this.close()}else Ye.error(Ne(\\\\\\\"Save Failed\\\\\\\"))}}),ve(\\\\\\\"button.delete\\\\\\\",{textContent:Ne(\\\\\\\"Delete\\\\\\\"),onclick:e=\\\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\\\\\".easyuse-account-dialog-item\\\\\\\"),e.target.parentNode);As.length\\\\u003c=1?Ye.error(Ne(\\\\\\\"At least one account is required\\\\\\\")):(As.splice(t,1),this.dialog_div.removeChild(e.target.parentNode))}})])}show(e){As.forEach(((t,i)=\\\\u003e{this.lists.push(this.addItem(i,e))})),this.dialog_div=ve(\\\\\\\"div.easyuse-account-dialog\\\\\\\",this.lists),super.show(ve(\\\\\\\"div.easyuse-account-dialog-main\\\\\\\",[ve(\\\\\\\"div\\\\\\\",[ve(\\\\\\\"a\\\\\\\",{href:\\\\\\\"https://platform.stability.ai/account/keys\\\\\\\",target:\\\\\\\"_blank\\\\\\\",textContent:Ne(\\\\\\\"Getting Your APIKEY\\\\\\\")})]),this.dialog_div]))}createButtons(){const e=super.createButtons();return e.unshift(ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:Ne(\\\\\\\"Save Account Info\\\\\\\"),onclick:e=\\\\u003e{let t=!0;for(let i=0;i\\\\u003cAs.length;i++)if(!As[i].key){t=!1;break}if(t){const e=new FormData;e.append(\\\\\\\"api_keys\\\\\\\",JSON.stringify(As)),ge.fetchApi(\\\\\\\"/easyuse/stability/set_api_keys\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:e}).then((e=\\\\u003e{200==e.status?Ye.success(Ne(\\\\\\\"Save Succeed\\\\\\\")):Ye.error(Ne(\\\\\\\"Save Failed\\\\\\\"))}))}else Ye.error(Ne(\\\\\\\"APIKEY is not Empty\\\\\\\"))}})),e.unshift(ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:Ne(\\\\\\\"Add Account\\\\\\\"),onclick:e=\\\\u003e{const t=\\\\\\\"Account \\\\\\\"+As.length.toString();As.push({name:t,key:\\\\\\\"\\\\\\\"});const i=this.addItem(As.length-1);this.lists.push(i),this.dialog_div.appendChild(i)}})),e}}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.API.SD3\\\\\\\",async beforeRegisterNodeDef(e,t,i){if(\\\\\\\"easy stableDiffusion3API\\\\\\\"==t.name){const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=async function(){var e,i,s;t\\\\u0026\\\\u0026(null==t||t.apply(this,arguments));const n=this.widgets.find((e=\\\\u003e[\\\\\\\"seed_num\\\\\\\",\\\\\\\"seed\\\\\\\"].includes(e.name))),a=this.widgets.find((e=\\\\u003e[\\\\\\\"control_before_generate\\\\\\\",\\\\\\\"control_after_generate\\\\\\\"].includes(e.name)));let o=this.widgets.find((e=\\\\u003e\\\\\\\"model\\\\\\\"==e.name));o.callback=e=\\\\u003e{l.value=\\\\\\\"-\\\\\\\"+hs[e]};const l=this.addWidget(\\\\\\\"text\\\\\\\",\\\\\\\"cost_credit\\\\\\\",\\\\\\\"0\\\\\\\",(e=\\\\u003e{}),{serialize:!1});l.disabled=!0,a\\\\u0026\\\\u0026setTimeout((e=\\\\u003e{\\\\\\\"control before generate\\\\\\\"==a.name\\\\u0026\\\\u00260===n.value\\\\u0026\\\\u0026(n.value=Math.floor(4294967294*Math.random())),l.value=\\\\\\\"-\\\\\\\"+hs[o.value]}),100);let r=ve(\\\\\\\"div.easyuse-account-user\\\\\\\",[Ne(\\\\\\\"Loading UserInfo...\\\\\\\")]);this.addDOMWidget(\\\\\\\"account\\\\\\\",\\\\\\\"btn\\\\\\\",ve(\\\\\\\"div.easyuse-account\\\\\\\",r)),ge.addEventListener(\\\\\\\"stable-diffusion-api-generate-succeed\\\\\\\",(async({detail:e})=\\\\u003e{var t;let i=r.querySelectorAll(\\\\\\\".remark\\\\\\\");if(i\\\\u0026\\\\u0026i[0]){const t=(null==e?void 0:e.model)?hs[e.model]:0;if(t){let e=function(e,t){let i,s,n,a,o,l;o=\\\\\\\"string\\\\\\\"==typeof e?e:e.toString(),l=\\\\\\\"string\\\\\\\"==typeof t?t:t.toString();try{i=o.split(\\\\\\\".\\\\\\\")[1].length}catch(r){i=0}try{s=l.split(\\\\\\\".\\\\\\\")[1].length}catch(r){s=0}return n=Math.pow(10,Math.max(i,s)),a=i\\\\u003e=s?i:s,((e*n-t*n)/n).toFixed(a)}(parseFloat(i[0].innerText.replace(/Credits: /g,\\\\\\\"\\\\\\\")),t);e\\\\u003e0\\\\u0026\\\\u0026(i[0].innerText=\\\\\\\"Credits: \\\\\\\"+e.toString())}}await Xe(1e4);const s=await ge.fetchApi(\\\\\\\"/easyuse/stability/balance\\\\\\\");if(200==s.status){const e=await s.json();if(null==e?void 0:e.balance){const s=(null==(t=e.balance)?void 0:t.credits)||0;i\\\\u0026\\\\u0026i[0]\\\\u0026\\\\u0026(i[0].innerText=\\\\\\\"Credits: \\\\\\\"+s)}}}));const d=await ge.fetchApi(\\\\\\\"/easyuse/stability/api_keys\\\\\\\");if(200==d.status){let t=await d.json();if(As=t.keys,ps=t.current,As.length\\\\u003e0\\\\u0026\\\\u0026void 0!==ps){const t=As[ps].key,n=As[ps].name;if(t){const t=await ge.fetchApi(\\\\\\\"/easyuse/stability/user_info\\\\\\\");if(200==t.status){const n=await t.json();if((null==n?void 0:n.account)\\\\u0026\\\\u0026(null==n?void 0:n.balance)){const t=(null==(e=n.account)?void 0:e.profile_picture)||null,a=(null==(i=n.account)?void 0:i.email)||null,o=(null==(s=n.balance)?void 0:s.credits)||0;r.replaceChildren(ve(\\\\\\\"div.easyuse-account-user-info\\\\\\\",{onclick:e=\\\\u003e{(new ms).show(r)}},[ve(\\\\\\\"div.user\\\\\\\",[ve(\\\\\\\"div.avatar\\\\\\\",t?[ve(\\\\\\\"img\\\\\\\",{src:t})]:\\\\\\\"\\ud83d\\ude00\\\\\\\"),ve(\\\\\\\"div.info\\\\\\\",[ve(\\\\\\\"h5.name\\\\\\\",a),ve(\\\\\\\"h6.remark\\\\\\\",\\\\\\\"Credits: \\\\\\\"+o)])]),ve(\\\\\\\"div.edit\\\\\\\",{textContent:Ne(\\\\\\\"Edit\\\\\\\")})]))}}}else r.replaceChildren(ve(\\\\\\\"div.easyuse-account-user-info\\\\\\\",{onclick:e=\\\\u003e{(new ms).show(r)}},[ve(\\\\\\\"div.user\\\\\\\",[ve(\\\\\\\"div.avatar\\\\\\\",\\\\\\\"\\ud83d\\ude00\\\\\\\"),ve(\\\\\\\"div.info\\\\\\\",[ve(\\\\\\\"h5.name\\\\\\\",n),ve(\\\\\\\"h6.remark\\\\\\\",Ne(\\\\\\\"Click to set the APIKEY first\\\\\\\"))])]),ve(\\\\\\\"div.edit\\\\\\\",{textContent:Ne(\\\\\\\"Edit\\\\\\\")})]))}}}}}});let fs=null;function gs(){fs\\\\u0026\\\\u0026(fs.removeEventListeners(),fs.dropdown.remove(),fs=null)}function vs(e,t,i,s=!1){gs(),new ys(e,t,i,s)}class ys{constructor(e,t,i,s=!1){this.dropdown=document.createElement(\\\\\\\"ul\\\\\\\"),this.dropdown.setAttribute(\\\\\\\"role\\\\\\\",\\\\\\\"listbox\\\\\\\"),this.dropdown.classList.add(\\\\\\\"easy-dropdown\\\\\\\"),this.selectedIndex=-1,this.inputEl=e,this.suggestions=t,this.onSelect=i,this.isDict=s,this.focusedDropdown=this.dropdown,this.buildDropdown(),this.onKeyDownBound=this.onKeyDown.bind(this),this.onWheelBound=this.onWheel.bind(this),this.onClickBound=this.onClick.bind(this),this.addEventListeners()}buildDropdown(){this.isDict?this.buildNestedDropdown(this.suggestions,this.dropdown):this.suggestions.forEach(((e,t)=\\\\u003e{this.addListItem(e,t,this.dropdown)}));const e=this.inputEl.getBoundingClientRect();this.dropdown.style.top=e.top+e.height-10+\\\\\\\"px\\\\\\\",this.dropdown.style.left=e.left+\\\\\\\"px\\\\\\\",document.body.appendChild(this.dropdown),fs=this}buildNestedDropdown(e,t){let i=0;Object.keys(e).forEach((s=\\\\u003e{const n=e[s];if(\\\\\\\"object\\\\\\\"==typeof n\\\\u0026\\\\u0026null!==n){const e=document.createElement(\\\\\\\"ul\\\\\\\");e.setAttribute(\\\\\\\"role\\\\\\\",\\\\\\\"listbox\\\\\\\"),e.classList.add(\\\\\\\"easy-nested-dropdown\\\\\\\");const a=document.createElement(\\\\\\\"li\\\\\\\");a.classList.add(\\\\\\\"folder\\\\\\\"),a.textContent=s,a.appendChild(e),a.addEventListener(\\\\\\\"mouseover\\\\\\\",this.onMouseOver.bind(this,i,t)),t.appendChild(a),this.buildNestedDropdown(n,e),i+=1}else{const e=document.createElement(\\\\\\\"li\\\\\\\");e.classList.add(\\\\\\\"item\\\\\\\"),e.setAttribute(\\\\\\\"role\\\\\\\",\\\\\\\"option\\\\\\\"),e.textContent=s,e.addEventListener(\\\\\\\"mouseover\\\\\\\",this.onMouseOver.bind(this,i,t)),e.addEventListener(\\\\\\\"mousedown\\\\\\\",this.onMouseDown.bind(this,s)),t.appendChild(e),i+=1}}))}addListItem(e,t,i){const s=document.createElement(\\\\\\\"li\\\\\\\");s.setAttribute(\\\\\\\"role\\\\\\\",\\\\\\\"option\\\\\\\"),s.textContent=e,s.addEventListener(\\\\\\\"mouseover\\\\\\\",this.onMouseOver.bind(this,t)),s.addEventListener(\\\\\\\"mousedown\\\\\\\",this.onMouseDown.bind(this,e)),i.appendChild(s)}addEventListeners(){document.addEventListener(\\\\\\\"keydown\\\\\\\",this.onKeyDownBound),this.dropdown.addEventListener(\\\\\\\"wheel\\\\\\\",this.onWheelBound),document.addEventListener(\\\\\\\"click\\\\\\\",this.onClickBound)}removeEventListeners(){document.removeEventListener(\\\\\\\"keydown\\\\\\\",this.onKeyDownBound),this.dropdown.removeEventListener(\\\\\\\"wheel\\\\\\\",this.onWheelBound),document.removeEventListener(\\\\\\\"click\\\\\\\",this.onClickBound)}onMouseOver(e,t){t\\\\u0026\\\\u0026(this.focusedDropdown=t),this.selectedIndex=e,this.updateSelection()}onMouseOut(){this.selectedIndex=-1,this.updateSelection()}onMouseDown(e,t){t.preventDefault(),this.onSelect(e),this.dropdown.remove(),this.removeEventListeners()}onKeyDown(e){const t=Array.from(this.focusedDropdown.children),i=t[this.selectedIndex];if(fs)if(38===e.keyCode)e.preventDefault(),this.selectedIndex=Math.max(0,this.selectedIndex-1),this.updateSelection();else if(40===e.keyCode)e.preventDefault(),this.selectedIndex=Math.min(t.length-1,this.selectedIndex+1),this.updateSelection();else if(39===e.keyCode){if(e.preventDefault(),i\\\\u0026\\\\u0026i.classList.contains(\\\\\\\"folder\\\\\\\")){const e=i.querySelector(\\\\\\\".easy-nested-dropdown\\\\\\\");e\\\\u0026\\\\u0026(this.focusedDropdown=e,this.selectedIndex=0,this.updateSelection())}}else if(37===e.keyCode\\\\u0026\\\\u0026this.focusedDropdown!==this.dropdown){const e=this.focusedDropdown.closest(\\\\\\\".easy-dropdown, .easy-nested-dropdown\\\\\\\").parentNode.closest(\\\\\\\".easy-dropdown, .easy-nested-dropdown\\\\\\\");e\\\\u0026\\\\u0026(this.focusedDropdown=e,this.selectedIndex=Array.from(e.children).indexOf(this.focusedDropdown.parentNode),this.updateSelection())}else if((13===e.keyCode||9===e.keyCode)\\\\u0026\\\\u0026this.selectedIndex\\\\u003e=0){e.preventDefault(),i.classList.contains(\\\\\\\"item\\\\\\\")\\\\u0026\\\\u0026(this.onSelect(t[this.selectedIndex].textContent),this.dropdown.remove(),this.removeEventListeners());const s=i.querySelector(\\\\\\\".easy-nested-dropdown\\\\\\\");s\\\\u0026\\\\u0026(this.focusedDropdown=s,this.selectedIndex=0,this.updateSelection())}else 27===e.keyCode\\\\u0026\\\\u0026(this.dropdown.remove(),this.removeEventListeners())}onWheel(e){const t=parseInt(this.dropdown.style.top);localStorage.getItem(\\\\\\\"Comfy.Settings.Comfy.InvertMenuScrolling\\\\\\\")?this.dropdown.style.top=t+(e.deltaY\\\\u003c0?10:-10)+\\\\\\\"px\\\\\\\":this.dropdown.style.top=t+(e.deltaY\\\\u003c0?-10:10)+\\\\\\\"px\\\\\\\"}onClick(e){this.dropdown.contains(e.target)||e.target===this.inputEl||(this.dropdown.remove(),this.removeEventListeners())}updateSelection(){Array.from(this.focusedDropdown.children).forEach(((e,t)=\\\\u003e{t===this.selectedIndex?e.classList.add(\\\\\\\"selected\\\\\\\"):e.classList.remove(\\\\\\\"selected\\\\\\\")}))}}function ws(e){const t=e.min||0,i=e.max||0,s=e.step||1;if(0===s)return[];const n=[];let a=t;for(;a\\\\u003c=i;){if(Number.isInteger(s))n.push(Math.round(a)+\\\\\\\"; \\\\\\\");else{let e=a.toFixed(3);-0==e\\\\u0026\\\\u0026(e=\\\\\\\"0.000\\\\\\\"),/\\\\\\\\.\\\\\\\\d{3}$/.test(e)||(e+=\\\\\\\"0\\\\\\\"),n.push(e+\\\\\\\"; \\\\\\\")}a+=s}return i\\\\u003e=0\\\\u0026\\\\u0026t\\\\u003e=0?n:n.reverse()}let bs={},_s={};function Ss(e,t){String(e.id);const i=t.name,s=t.value.replace(/^(loader|preSampling):\\\\\\\\s/,\\\\\\\"\\\\\\\");_s[i]?_s[i]!=bs[s]\\\\u0026\\\\u0026(_s[i]=bs[s]):_s={..._s,[i]:bs[s]}}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.XYPlot\\\\\\\",async beforeRegisterNodeDef(e,t,i){if(\\\\\\\"easy XYPlot\\\\\\\"===t.name){bs=t.input.hidden.plot_dict[0];for(const e in bs){const t=bs[e];if(Array.isArray(t)){let i=[];for(const e of t)i.push(e+\\\\\\\"; \\\\\\\");bs[e]=i}else bs[e]=\\\\\\\"object\\\\\\\"==typeof t?\\\\\\\"seed\\\\\\\"==e?t+\\\\\\\"; \\\\\\\":ws(t):t+\\\\\\\"; \\\\\\\"}bs.None=[],bs[\\\\\\\"---------------------\\\\\\\"]=[]}},nodeCreated(e){\\\\\\\"easy XYPlot\\\\\\\"===e.comfyClass\\\\u0026\\\\u0026(function(e){if(e.widgets)for(const t of e.widgets)if(\\\\\\\"x_axis\\\\\\\"===t.name||\\\\\\\"y_axis\\\\\\\"===t.name){let i=t.value;Object.defineProperty(t,\\\\\\\"value\\\\\\\",{get:()=\\\\u003ei,set(s){s!==i\\\\u0026\\\\u0026(i=s,Ss(e,t))}})}}(e),function(e){if(e.widgets){const t=e.widgets.filter((e=\\\\u003e\\\\\\\"customtext\\\\\\\"===e.type\\\\u0026\\\\u0026!1!==e.dynamicPrompts||e.dynamicPrompts));for(const e of t){let t=function(e,t,s,n){return e\\\\u0026\\\\u0026(t[s]=e),t.map((e=\\\\u003ei(e,n))).filter((e=\\\\u003e\\\\\\\"\\\\\\\"!==e)).join(\\\\\\\"\\\\\\\")},i=function(e,t){if(e=s(e),n(e,t))return e+\\\\\\\"; \\\\\\\";let i=a(e,t);return 1===i.length||2===i.length?i[0]:n(o(e),t)?o(e)+\\\\\\\"; \\\\\\\":\\\\\\\"\\\\\\\"},s=function(e){return e.replace(/(\\\\\\\\n|;| )/g,\\\\\\\"\\\\\\\")},n=function(e,t){return t.includes(e+\\\\\\\"; \\\\\\\")},a=function(e,t){return t.filter((t=\\\\u003et.toLowerCase().includes(e.toLowerCase())))},o=function(e){return Number(e)?Number(e).toFixed(3):[\\\\\\\"0\\\\\\\",\\\\\\\"0.\\\\\\\",\\\\\\\"0.0\\\\\\\",\\\\\\\"0.00\\\\\\\",\\\\\\\"00\\\\\\\"].includes(e)?\\\\\\\"0.000\\\\\\\":e};const l=function(){const i=e.name[0]+\\\\\\\"_axis\\\\\\\";let s=(null==_s?void 0:_s[i])||[];if(0===s.length)return;const n=e.inputEl.value,a=e.inputEl.selectionStart;let o=n.split(\\\\\\\"; \\\\\\\");const l=n.substring(0,a).split(\\\\\\\"; \\\\\\\").length-1,r=o[l].replace(/\\\\\\\\n/g,\\\\\\\"\\\\\\\").toLowerCase(),d=s.filter((e=\\\\u003ee.toLowerCase().includes(r))).map((e=\\\\u003ee.replace(/; /g,\\\\\\\"\\\\\\\")));if(d.length\\\\u003e0)vs(e.inputEl,d,(i=\\\\u003e{const n=t(i,o,l,s);e.inputEl.value=n}));else{gs();const i=t(null,o,l,s);e.inputEl.value=i}};e.inputEl.removeEventListener(\\\\\\\"input\\\\\\\",l),e.inputEl.addEventListener(\\\\\\\"input\\\\\\\",l),e.inputEl.removeEventListener(\\\\\\\"mouseup\\\\\\\",l),e.inputEl.addEventListener(\\\\\\\"mouseup\\\\\\\",l)}}}(e))}}),S(\\\\\\\"domWidget\\\\\\\",(()=\\\\u003e{const e=P(new Map);return{widgetStates:e,registerWidget:t=\\\\u003e{e.value.set(t.id,{widget:G(t),visible:!0,readonly:!1,zIndex:0,pos:[0,0],size:[0,0]})},unregisterWidget:t=\\\\u003e{e.value.delete(t)}}}));const xs={class:\\\\\\\"w-full flex justify-between items-center\\\\\\\"},Ls={class:\\\\\\\"flex justify-start items-center flex-1 gap-2\\\\\\\"},ks={class:\\\\\\\"flex justify-end items-center tool ml-2 position-relative\\\\\\\"},Es={__name:\\\\\\\"promptAwait\\\\\\\",props:[\\\\\\\"widget\\\\\\\"],setup(e){const t=P({select:\\\\\\\"now\\\\\\\",unlock:!0,last_seed:0,seed:0}),i=P(!1),s=P(!1);let n=null;const a=()=\\\\u003e{if(s.value)return;const t=window.SpeechRecognition||window.webkitSpeechRecognition;t\\\\u0026\\\\u0026(s.value=!0,n||(n=new t,n.interimResults=!1),n.start(),n.addEventListener(\\\\\\\"result\\\\\\\",(t=\\\\u003e{var i;const s=t.results[0][0].transcript;let n=null==(i=e.widget.value)?void 0:i.node,a=wt(n,\\\\\\\"prompt\\\\\\\");a\\\\u0026\\\\u0026(a.value+=s)})),n.addEventListener(\\\\\\\"end\\\\\\\",(()=\\\\u003e{s.value=!1,n=null})),n.addEventListener(\\\\\\\"error\\\\\\\",(e=\\\\u003e{})))},o=()=\\\\u003e{s.value\\\\u0026\\\\u0026n\\\\u0026\\\\u0026n.stop()};z((t=\\\\u003ee.widget.value),(e=\\\\u003e{t.value=\\\\\\\"object\\\\\\\"==typeof e?e:JSON.parse(e)}),{immediate:!0}),V((s=\\\\u003e{ge.addEventListener(\\\\\\\"easyuse_prompt_await\\\\\\\",(t=\\\\u003e{var s,n,a,o,l,d;const u=t.detail.id,c=-1!==(null==(s=e.widget.value)?void 0:s.node.id).toString().indexOf(\\\\\\\":\\\\\\\")?(null==(n=e.widget.value)?void 0:n.node.id).toString().split(\\\\\\\":\\\\\\\")[0]:null==(a=e.widget.value)?void 0:a.node.id;parseInt(u)===parseInt(c)\\\\u0026\\\\u0026(i.value=!0,r(\\\\\\\"last_seed\\\\\\\",(null==(o=e.widget.value.value)?void 0:o.seed)||0),(null==(l=e.widget.value.value)?void 0:l.unlock)?r(\\\\\\\"seed\\\\\\\",Math.floor(Math.random()*Oe)):r(\\\\\\\"seed\\\\\\\",(null==(d=e.widget.value.value)?void 0:d.last_seed)||0))}));const n=ge.interrupt;ge.interrupt=function(){!i.value\\\\u0026\\\\u0026fe.runningNodeId||(l(JSON.stringify({result:-1,prompt:\\\\\\\"\\\\\\\",select:\\\\\\\"now\\\\\\\"}),!0),i.value=!1),n.apply(this,arguments)},e.widget.serializeValue=async({node:e},i)=\\\\u003e{try{let s=JSON.stringify(t.value);return(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[i]=s,e.widgets[i].value=s),s}catch(s){return[]}}}));const l=(s,n)=\\\\u003e{var a,o,l,d,u,c,A,p,h;if(!i.value\\\\u0026\\\\u0026!n)return;const m=new FormData,f=null==(a=e.widget.value)?void 0:a.node,g=-1!==(null==(o=e.widget.value)?void 0:o.node.id).toString().indexOf(\\\\\\\":\\\\\\\")?(null==(l=e.widget.value)?void 0:l.node.id).toString().split(\\\\\\\":\\\\\\\")[0]:null==(d=e.widget.value)?void 0:d.node.id,v=(null==(u=wt(f,\\\\\\\"prompt\\\\\\\"))?void 0:u.value)||\\\\\\\"\\\\\\\";let y=null==(c=t.value)?void 0:c.select,w=(null==(A=t.value)?void 0:A.last_seed)||0,b=(null==(p=t.value)?void 0:p.seed)||0,_=(null==(h=t.value)?void 0:h.unlock)||!1;m.append(\\\\\\\"message\\\\\\\",JSON.stringify({result:s,prompt:v,select:y,last_seed:w,seed:b,unlock:_})),m.append(\\\\\\\"id\\\\\\\",g),i.value=!1,ge.fetchApi(\\\\\\\"/easyuse/message_callback\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:m}).then((e=\\\\u003e{r(\\\\\\\"select\\\\\\\",\\\\\\\"now\\\\\\\")}))},r=(e,i)=\\\\u003e{t.value.value||(t.value={}),t.value[e]=i};return(e,n)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",xs,[W(\\\\\\\"div\\\\\\\",Ls,[F(X(L),{disabled:!Boolean(i.value),label:X(Ne)(\\\\\\\"Continue\\\\\\\"),size:\\\\\\\"small\\\\\\\",style:{height:\\\\\\\"20px\\\\\\\",\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"white-space\\\\\\\":\\\\\\\"nowrap\\\\\\\",padding:\\\\\\\"0 8px\\\\\\\"},onClick:n[0]||(n[0]=e=\\\\u003el(1))},null,8,[\\\\\\\"disabled\\\\\\\",\\\\\\\"label\\\\\\\"]),F(X(L),{disabled:!Boolean(i.value),label:X(Ne)(\\\\\\\"Stop\\\\\\\"),severity:\\\\\\\"danger\\\\\\\",size:\\\\\\\"small\\\\\\\",style:{height:\\\\\\\"20px\\\\\\\",\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"white-space\\\\\\\":\\\\\\\"nowrap\\\\\\\",padding:\\\\\\\"0 8px\\\\\\\"},onClick:n[1]||(n[1]=e=\\\\u003el(-1))},null,8,[\\\\\\\"disabled\\\\\\\",\\\\\\\"label\\\\\\\"]),F(X(k),{class:\\\\\\\"easyuse-prompt-await-select\\\\\\\",modelValue:t.value.select,\\\\\\\"onUpdate:modelValue\\\\\\\":n[2]||(n[2]=e=\\\\u003et.value.select=e),options:[{name:X(Ne)(\\\\\\\"now\\\\\\\"),value:\\\\\\\"now\\\\\\\"},{name:X(Ne)(\\\\\\\"prev\\\\\\\"),value:\\\\\\\"prev\\\\\\\"}],optionLabel:\\\\\\\"name\\\\\\\",optionValue:\\\\\\\"value\\\\\\\",size:\\\\\\\"small\\\\\\\",style:{flex:\\\\\\\"1\\\\\\\",height:\\\\\\\"24px\\\\\\\",\\\\\\\"line-height\\\\\\\":\\\\\\\"10px\\\\\\\",\\\\\\\"min-width\\\\\\\":\\\\\\\"70px\\\\\\\",\\\\\\\"max-width\\\\\\\":\\\\\\\"100px\\\\\\\"}},null,8,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"options\\\\\\\"])]),W(\\\\\\\"div\\\\\\\",ks,[Z(F(X(L),{style:{\\\\\\\"--p-button-sm-font-size\\\\\\\":\\\\\\\"11px\\\\\\\"},size:\\\\\\\"small\\\\\\\",icon:t.value.unlock?\\\\\\\"pi pi-unlock\\\\\\\":\\\\\\\"pi pi-lock\\\\\\\",severity:t.value.unlock?\\\\\\\"contrast\\\\\\\":\\\\\\\"warn\\\\\\\",variant:\\\\\\\"text\\\\\\\",onClick:n[3]||(n[3]=e=\\\\u003et.value.unlock=!t.value.value.unlock),rounded:\\\\\\\"\\\\\\\"},null,8,[\\\\\\\"icon\\\\\\\",\\\\\\\"severity\\\\\\\"]),[[X(E),{value:t.value.unlock?\\\\\\\"\\u968f\\u673a\\u79cd\\u5b50\\\\\\\":\\\\\\\"\\u9501\\u5b9a\\u79cd\\u5b50\\u503c\\\\\\\",class:\\\\\\\"jm-tooltip\\\\\\\"},\\\\\\\"top\\\\\\\"]]),s.value?Z((j(),H(X(L),{key:0,size:\\\\\\\"small\\\\\\\",icon:\\\\\\\"pi pi-pause-circle\\\\\\\",severity:\\\\\\\"info\\\\\\\",variant:\\\\\\\"outlined\\\\\\\",onClick:o,rounded:\\\\\\\"\\\\\\\"},null,512)),[[X(E),{value:X(Ne)(\\\\\\\"Stop Recording\\\\\\\"),class:\\\\\\\"jm-tooltip\\\\\\\"},\\\\\\\"top\\\\\\\"]]):Z((j(),H(X(L),{key:1,size:\\\\\\\"small\\\\\\\",icon:\\\\\\\"pi pi-microphone\\\\\\\",severity:\\\\\\\"contrast\\\\\\\",variant:\\\\\\\"text\\\\\\\",onClick:a,rounded:\\\\\\\"\\\\\\\"},null,512)),[[X(E),{value:X(Ne)(\\\\\\\"Voice input\\\\\\\"),class:\\\\\\\"jm-tooltip\\\\\\\"},\\\\\\\"top\\\\\\\"]])])]))}},Ns={class:\\\\\\\"easyuse-multiselect\\\\\\\"},Cs={__name:\\\\\\\"multiSelectWidget\\\\\\\",props:[\\\\\\\"widget\\\\\\\"],setup(e){var t,i,s,n;const a=Object.keys(De).reduce(((e,t)=\\\\u003e(Array.isArray(De[t])?e[t]=De[t].map(((e,t)=\\\\u003e({label:e,value:t}))):\\\\\\\"object\\\\\\\"==typeof De[t]?e[t]=Object.entries(De[t]).map((([e,t])=\\\\u003e({label:e,value:t}))):e[t]=[],e)),{}),o=P([]),l=e.widget.inputSpec,r=(null==(t=null==l?void 0:l.multi_select)?void 0:t.max_selected_labels)??3,d=(null==l?void 0:l.optionLabel)??\\\\\\\"label\\\\\\\",u=(null==l?void 0:l.optionValue)??\\\\\\\"value\\\\\\\",c=(null==(i=null==l?void 0:l.multi_select)?void 0:i.placeholder)?Ne(null==(s=l.multi_select)?void 0:s.placeholder):Ne(\\\\\\\"select items\\\\\\\"),A=(null==(n=null==l?void 0:l.multi_select)?void 0:n.chip)?\\\\\\\"chip\\\\\\\":\\\\\\\"comma\\\\\\\",p=P((null==l?void 0:l.options)??[]),h=e=\\\\u003e{e\\\\u0026\\\\u0026a[e]?p.value=a[e].map(((e,t)=\\\\u003e({label:Ne(e.label),value:e.value}))):p.value=[]};return z((t=\\\\u003ee.widget.value),(e=\\\\u003e{o.value=e.split(\\\\\\\",\\\\\\\").map((e=\\\\u003ee\\\\u0026\\\\u0026parseInt(e.trim())))})),V((t=\\\\u003e{setTimeout((t=\\\\u003e{const i=wt(e.widget.node,\\\\\\\"method\\\\\\\");h(i.value),i.callback=e=\\\\u003e{o.value=[],h(e)}}),1),e.widget.serializeValue=async({node:e},t)=\\\\u003e{try{let i=o.value||[];return i=i.join(\\\\\\\",\\\\\\\"),(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[t]=i,e.widgets[t].value=i),i}catch(i){return[]}}})),(e,t)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",Ns,[F(X(N),{modelValue:o.value,\\\\\\\"onUpdate:modelValue\\\\\\\":t[0]||(t[0]=e=\\\\u003eo.value=e),options:p.value,optionLabel:X(d),optionValue:X(u),appendTo:\\\\\\\"self\\\\\\\",filter:\\\\\\\"\\\\\\\",placeholder:X(c),\\\\\\\"max-selected-labels\\\\\\\":X(r),display:X(A),class:\\\\\\\"w-full easyuse-multiselect-container\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"options\\\\\\\",\\\\\\\"optionLabel\\\\\\\",\\\\\\\"optionValue\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"max-selected-labels\\\\\\\",\\\\\\\"display\\\\\\\"])]))}},Is={class:\\\\\\\"flex flex-col easyuse-multiangle-widget\\\\\\\"},Ts={class:\\\\\\\"easyuse-multiangle-tabs flex items-center gap-1 px-1 relative z-10 overflow-x-auto no-scrollbar w-full min-w-0\\\\\\\"},Os=[\\\\\\\"onClick\\\\\\\"],Ms={class:\\\\\\\"tab-number\\\\\\\"},Ds=[\\\\\\\"onClick\\\\\\\"],Rs=[\\\\\\\"title\\\\\\\"],Ps={class:\\\\\\\"easyuse-multiangle-content flex flex-col gap-2\\\\\\\"},Gs=[\\\\\\\"title\\\\\\\"],zs={class:\\\\\\\"settings-item flex items-center\\\\\\\"},Vs={for:\\\\\\\"add-angle-prompt\\\\\\\",class:\\\\\\\"whitespace-nowrap\\\\\\\"},js={class:\\\\\\\"settings-item flex items-center\\\\\\\"},Us={for:\\\\\\\"hollow-mode\\\\\\\",class:\\\\\\\"whitespace-nowrap\\\\\\\"},Ws={class:\\\\\\\"settings-item flex items-center\\\\\\\"},Fs={for:\\\\\\\"rotate-3d-mode\\\\\\\",class:\\\\\\\"whitespace-nowrap\\\\\\\"},Xs=[\\\\\\\"title\\\\\\\"],Zs=[\\\\\\\"onDblclick\\\\\\\"],Hs={key:0},qs={key:0,style:{filter:\\\\\\\"grayscale(10)\\\\\\\"}},Ys={key:0,class:\\\\\\\"absolute inset-0 flex flex-col items-center justify-center\\\\\\\",style:{\\\\\\\"pointer-events\\\\\\\":\\\\\\\"none\\\\\\\"}},Ks={key:1,class:\\\\\\\"easyuse-cube-face-label\\\\\\\"},Js={class:\\\\\\\"flex flex-col gap-2 px-2 w-full easyuse-mulitangle-slider\\\\\\\"},Bs={class:\\\\\\\"flex flex-col gap-2 w-full\\\\\\\"},Qs={class:\\\\\\\"flex justify-between items-center\\\\\\\"},$s={class:\\\\\\\"font-semibold opacity-80\\\\\\\"},en={class:\\\\\\\"font-mono text-primary font-bold\\\\\\\"},tn={class:\\\\\\\"flex flex-col gap-2 w-full\\\\\\\"},sn={class:\\\\\\\"flex justify-between items-center\\\\\\\"},nn={class:\\\\\\\"font-semibold opacity-80\\\\\\\"},an={class:\\\\\\\"font-mono text-primary font-bold\\\\\\\"},on={class:\\\\\\\"flex flex-col gap-2 w-full\\\\\\\"},ln={class:\\\\\\\"flex justify-between items-center\\\\\\\"},rn={class:\\\\\\\"font-semibold opacity-80\\\\\\\"},dn={class:\\\\\\\"font-mono text-primary font-bold\\\\\\\"},un={__name:\\\\\\\"multiAngleWidget\\\\\\\",props:[\\\\\\\"widget\\\\\\\"],emits:[\\\\\\\"update:value\\\\\\\",\\\\\\\"change\\\\\\\"],setup(e,{emit:t}){const i=P([{rotate:0,vertical:0,zoom:5,add_angle_prompt:!1}]),s=P(0),n=i.value[s.value]||{rotate:0,vertical:0,zoom:5,add_angle_prompt:!1},a=P(n.rotate??0),o=P(n.vertical??0),l=P(n.zoom??5),r=P(n.add_angle_prompt??!1),d=P(xe(\\\\\\\"EasyUse.MultiAngle.HollowMode\\\\\\\")||!1),u=P(xe(\\\\\\\"EasyUse.MultiAngle.3DRotate\\\\\\\")||!1),c=P(!1),A=()=\\\\u003e{c.value=!c.value},p=()=\\\\u003e{c.value\\\\u0026\\\\u0026(c.value=!1)};V((()=\\\\u003e{window.addEventListener(\\\\\\\"click\\\\\\\",p)})),q((()=\\\\u003e{window.removeEventListener(\\\\\\\"click\\\\\\\",p),L()})),z((t=\\\\u003ee.widget.value),(e=\\\\u003e{Array.isArray(e)?i.value=e:i.value=JSON.parse(e)}),{immediate:!0}),z((()=\\\\u003e{var e;return null==(e=i.value)?void 0:e[s.value]}),(e=\\\\u003e{if(e){let t=xe(\\\\\\\"EasyUse.MultiAngle.AddAnglePrompt\\\\\\\")??!1;void 0!==e.rotate\\\\u0026\\\\u0026(a.value=e.rotate),void 0!==e.vertical\\\\u0026\\\\u0026(o.value=e.vertical),void 0!==e.zoom\\\\u0026\\\\u0026(l.value=e.zoom),null!=r\\\\u0026\\\\u0026(r.value=t)}}),{deep:!0}),z(d,(e=\\\\u003e{ke(\\\\\\\"EasyUse.MultiAngle.HollowMode\\\\\\\",e)})),z(u,(e=\\\\u003e{ke(\\\\\\\"EasyUse.MultiAngle.InvertRotate\\\\\\\",e)})),z(r,(e=\\\\u003e{ke(\\\\\\\"EasyUse.MultiAngle.AddAnglePrompt\\\\\\\",e),i.value.forEach((t=\\\\u003e{t.add_angle_prompt=e}))}));const h=e=\\\\u003e{s.value=e;const t=i.value[e];t\\\\u0026\\\\u0026(a.value=t.rotate??0,o.value=t.vertical??0,l.value=t.zoom??5,r.value=t.add_angle_prompt??!0)},m=()=\\\\u003e{i.value[s.value];const e={rotate:a.value,vertical:o.value,zoom:l.value,add_angle_prompt:r.value};i.value.push(JSON.parse(JSON.stringify(e))),s.value=i.value.length-1,h(s.value)},f=(e=!1)=\\\\u003e{e\\\\u0026\\\\u0026(c.value=!1);const t={rotate:a.value,vertical:o.value,zoom:l.value,add_angle_prompt:r.value};Array.isArray(i.value)||(i.value=[]),i.value[s.value]=JSON.parse(JSON.stringify(t))},g=()=\\\\u003e{a.value=0,o.value=0,l.value=5,f()},v=Y((()=\\\\u003e[{name:\\\\\\\"front\\\\\\\",text:\\\\\\\"\\\\\\\",style:{transform:\\\\\\\"translateZ(40px)\\\\\\\"}},{name:\\\\\\\"back\\\\\\\",text:Ne(\\\\\\\"B\\\\\\\"),style:{transform:\\\\\\\"rotateY(180deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"up\\\\\\\",text:Ne(\\\\\\\"U\\\\\\\"),style:{transform:\\\\\\\"rotateX(90deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"down\\\\\\\",text:Ne(\\\\\\\"D\\\\\\\"),style:{transform:\\\\\\\"rotateX(-90deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"left\\\\\\\",text:Ne(\\\\\\\"L\\\\\\\"),style:{transform:\\\\\\\"rotateY(-90deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"right\\\\\\\",text:Ne(\\\\\\\"R\\\\\\\"),style:{transform:\\\\\\\"rotateY(90deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"center\\\\\\\",style:{transform:\\\\\\\"translateZ(0.1px)\\\\\\\",border:\\\\\\\"none\\\\\\\",background:\\\\\\\"transparent\\\\\\\",backfaceVisibility:\\\\\\\"hidden\\\\\\\"}},{name:\\\\\\\"center-back\\\\\\\",style:{transform:\\\\\\\"rotateY(180deg) translateZ(0.1px)\\\\\\\",border:\\\\\\\"none\\\\\\\",backfaceVisibility:\\\\\\\"hidden\\\\\\\",background:\\\\\\\"transparent\\\\\\\"}}])),y=P(!1),w={x:0,y:0},b={rotate:0,vertical:0},_=e=\\\\u003e{const t=e.deltaY;let i=l.value-.05*t;i=Math.max(0,Math.min(10,i)),l.value=Math.round(10*i)/10,f()},S=e=\\\\u003e{y.value=!0,w.x=e.clientX??e.touches[0].clientX,w.y=e.clientY??e.touches[0].clientY,b.rotate=a.value,b.vertical=o.value,window.addEventListener(\\\\\\\"mousemove\\\\\\\",x),window.addEventListener(\\\\\\\"mouseup\\\\\\\",L),window.addEventListener(\\\\\\\"touchmove\\\\\\\",x),window.addEventListener(\\\\\\\"touchend\\\\\\\",L)},x=e=\\\\u003e{if(!y.value)return;const t=e.clientX??e.touches[0].clientX,i=e.clientY??e.touches[0].clientY;let s=t-w.x,n=i-w.y;u.value\\\\u0026\\\\u0026(s=-s,n=-n);let l=b.rotate+.5*s,r=b.vertical+.5*n;l=(l%360+360)%360,r=Math.max(-90,Math.min(90,r)),a.value=Math.round(l),o.value=Math.round(r),f()},L=()=\\\\u003e{y.value=!1,window.removeEventListener(\\\\\\\"mousemove\\\\\\\",x),window.removeEventListener(\\\\\\\"mouseup\\\\\\\",L),window.removeEventListener(\\\\\\\"touchmove\\\\\\\",x),window.removeEventListener(\\\\\\\"touchend\\\\\\\",L)},k=Y((()=\\\\u003e({transform:`scale(${1+.1*l.value}) rotateX(${-o.value}deg) rotateY(${-a.value}deg)`})));return V((t=\\\\u003e{d.value=xe(\\\\\\\"EasyUse.MultiAngle.HollowMode\\\\\\\"),u.value=xe(\\\\\\\"EasyUse.MultiAngle.InvertRotate\\\\\\\"),r.value=xe(\\\\\\\"EasyUse.MultiAngle.AddAnglePrompt\\\\\\\")||!1,e.widget.serializeValue=async({node:e},t)=\\\\u003e{try{let s=JSON.stringify(i.value);return(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[t]=s,e.widgets[t].value=s),s}catch(s){return[]}}})),(e,t)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",Is,[W(\\\\\\\"div\\\\\\\",Ts,[(j(!0),U(K,null,J(i.value,((e,t)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",{key:t,class:B([\\\\\\\"tab-item whitespace-nowrap flex-shrink-0\\\\\\\",{active:s.value===t}]),onClick:e=\\\\u003eh(t)},[W(\\\\\\\"span\\\\\\\",Ms,ee(t+1),1),i.value.length\\\\u003e1\\\\u0026\\\\u00260!==t?(j(),U(\\\\\\\"i\\\\\\\",{key:0,class:\\\\\\\"pi pi-times tab-close\\\\\\\",onClick:Q((e=\\\\u003e(e=\\\\u003e{i.value.length\\\\u003c=1||(i.value.splice(e,1),s.value\\\\u003e=i.value.length\\\\u0026\\\\u0026(s.value=i.value.length-1),h(s.value))})(t)),[\\\\\\\"stop\\\\\\\"])},null,8,Ds)):te(\\\\\\\"\\\\\\\",!0)],10,Os)))),128)),W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tab-add-btn flex-shrink-0\\\\\\\",onClick:m,title:X(Ne)(\\\\\\\"Add New Tab\\\\\\\")},t[10]||(t[10]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-plus\\\\\\\"},null,-1)]),8,Rs)]),W(\\\\\\\"div\\\\\\\",Ps,[W(\\\\\\\"div\\\\\\\",{class:B([\\\\\\\"easyuse-multiangle-cube w-full flex items-center justify-center bg-black overflow-hidden select-none\\\\\\\",{\\\\\\\"is-hollow\\\\\\\":d.value}]),onMousedown:S,onTouchstart:S,onWheel:Q(_,[\\\\\\\"prevent\\\\\\\"])},[W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"settings-icon\\\\\\\",onMousedown:t[5]||(t[5]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"])),onClick:Q(A,[\\\\\\\"stop\\\\\\\"]),title:X(Ne)(\\\\\\\"Settings\\\\\\\")},[t[11]||(t[11]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-cog\\\\\\\"},null,-1)),c.value?(j(),U(\\\\\\\"div\\\\\\\",{key:0,class:\\\\\\\"settings-dropdown\\\\\\\",onClick:t[4]||(t[4]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"]))},[W(\\\\\\\"div\\\\\\\",zs,[Z(W(\\\\\\\"input\\\\\\\",{type:\\\\\\\"checkbox\\\\\\\",\\\\\\\"onUpdate:modelValue\\\\\\\":t[0]||(t[0]=e=\\\\u003er.value=e),onChange:t[1]||(t[1]=e=\\\\u003ef(!1)),id:\\\\\\\"add-angle-prompt\\\\\\\"},null,544),[[$,r.value]]),W(\\\\\\\"label\\\\\\\",Vs,ee(X(Ne)(\\\\\\\"Angle Prompt\\\\\\\")),1)]),W(\\\\\\\"div\\\\\\\",js,[Z(W(\\\\\\\"input\\\\\\\",{type:\\\\\\\"checkbox\\\\\\\",\\\\\\\"onUpdate:modelValue\\\\\\\":t[2]||(t[2]=e=\\\\u003ed.value=e),id:\\\\\\\"hollow-mode\\\\\\\"},null,512),[[$,d.value]]),W(\\\\\\\"label\\\\\\\",Us,ee(X(Ne)(\\\\\\\"Hollow\\\\\\\")),1)]),W(\\\\\\\"div\\\\\\\",Ws,[Z(W(\\\\\\\"input\\\\\\\",{type:\\\\\\\"checkbox\\\\\\\",\\\\\\\"onUpdate:modelValue\\\\\\\":t[3]||(t[3]=e=\\\\u003eu.value=e),id:\\\\\\\"rotate-3d-mode\\\\\\\"},null,512),[[$,u.value]]),W(\\\\\\\"label\\\\\\\",Fs,ee(X(Ne)(\\\\\\\"Invert Rotate Mode\\\\\\\")),1)])])):te(\\\\\\\"\\\\\\\",!0)],40,Gs),W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"reset-icon\\\\\\\",onMousedown:t[6]||(t[6]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"])),onClick:Q(g,[\\\\\\\"stop\\\\\\\"]),title:X(Ne)(\\\\\\\"Reset\\\\\\\")},t[12]||(t[12]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-refresh\\\\\\\"},null,-1)]),40,Xs),W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"relative transition-transform duration-75 ease-out\\\\\\\",style:ie([{\\\\\\\"transform-style\\\\\\\":\\\\\\\"preserve-3d\\\\\\\",width:\\\\\\\"80px\\\\\\\",height:\\\\\\\"80px\\\\\\\"},k.value])},[(j(!0),U(K,null,J(v.value,(e=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",{key:e.name,class:\\\\\\\"absolute flex items-center justify-center font-bold text-xs easyuse-multiangle-cube-face\\\\\\\",style:ie([{width:\\\\\\\"80px\\\\\\\",height:\\\\\\\"80px\\\\\\\",\\\\\\\"backface-visibility\\\\\\\":\\\\\\\"visible\\\\\\\"},e.style]),onDblclick:Q((t=\\\\u003e(e=\\\\u003e{switch(e){case\\\\\\\"front\\\\\\\":a.value=0;break;case\\\\\\\"back\\\\\\\":a.value=180;break;case\\\\\\\"left\\\\\\\":a.value=270;break;case\\\\\\\"right\\\\\\\":a.value=90;break;case\\\\\\\"up\\\\\\\":o.value=90;break;case\\\\\\\"down\\\\\\\":o.value=-90}f()})(e.name)),[\\\\\\\"stop\\\\\\\"])},[\\\\\\\"center\\\\\\\"===e.name?(j(),U(K,{key:0},[d.value?(j(),U(\\\\\\\"div\\\\\\\",Hs,t[13]||(t[13]=[W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"20px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\"}},\\\\\\\"\\ud83e\\udd13\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc55\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc56\\\\\\\",-1)]))):te(\\\\\\\"\\\\\\\",!0)],64)):\\\\\\\"center-back\\\\\\\"===e.name?(j(),U(K,{key:1},[d.value?(j(),U(\\\\\\\"div\\\\\\\",qs,t[14]||(t[14]=[W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"20px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\"}},\\\\\\\"\\ud83c\\udf15\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc55\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc56\\\\\\\",-1)]))):te(\\\\\\\"\\\\\\\",!0)],64)):(j(),U(K,{key:2},[\\\\\\\"front\\\\\\\"!==e.name||d.value?te(\\\\\\\"\\\\\\\",!0):(j(),U(\\\\\\\"div\\\\\\\",Ys,t[15]||(t[15]=[W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"20px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\"}},\\\\\\\"\\ud83e\\udd13\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc55\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc56\\\\\\\",-1)]))),e.text?(j(),U(\\\\\\\"div\\\\\\\",Ks,ee(e.text),1)):te(\\\\\\\"\\\\\\\",!0)],64))],44,Zs)))),128))],4)],34),W(\\\\\\\"div\\\\\\\",Js,[W(\\\\\\\"div\\\\\\\",Bs,[W(\\\\\\\"div\\\\\\\",Qs,[W(\\\\\\\"span\\\\\\\",$s,ee(X(Ne)(\\\\\\\"Rotate\\\\\\\")),1),W(\\\\\\\"span\\\\\\\",en,ee(a.value)+\\\\\\\"\\u00b0\\\\\\\",1)]),F(X(C),{modelValue:a.value,\\\\\\\"onUpdate:modelValue\\\\\\\":[t[7]||(t[7]=e=\\\\u003ea.value=e),f],min:0,max:360,class:\\\\\\\"w-full\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\"])]),W(\\\\\\\"div\\\\\\\",tn,[W(\\\\\\\"div\\\\\\\",sn,[W(\\\\\\\"span\\\\\\\",nn,ee(X(Ne)(\\\\\\\"Vertical\\\\\\\")),1),W(\\\\\\\"span\\\\\\\",an,ee(o.value)+\\\\\\\"\\u00b0\\\\\\\",1)]),F(X(C),{modelValue:o.value,\\\\\\\"onUpdate:modelValue\\\\\\\":[t[8]||(t[8]=e=\\\\u003eo.value=e),f],min:-90,max:90,class:\\\\\\\"w-full\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\"])]),W(\\\\\\\"div\\\\\\\",on,[W(\\\\\\\"div\\\\\\\",ln,[W(\\\\\\\"span\\\\\\\",rn,ee(X(Ne)(\\\\\\\"Zoom\\\\\\\")),1),W(\\\\\\\"span\\\\\\\",dn,ee(l.value),1)]),F(X(C),{modelValue:l.value,\\\\\\\"onUpdate:modelValue\\\\\\\":[t[9]||(t[9]=e=\\\\u003el.value=e),f],min:0,max:10,step:.1,class:\\\\\\\"w-full\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\"])])])])]))}},cn=(e,t)=\\\\u003e{const i=e.__vccOpts||e;for(const[s,n]of t)i[s]=n;return i},An={class:\\\\\\\"tew-toolbar\\\\\\\"},pn={class:\\\\\\\"tew-mode-tabs\\\\\\\"},hn={key:0,class:\\\\\\\"tew-actions\\\\\\\"},mn={key:1,class:\\\\\\\"tew-actions\\\\\\\"},fn={key:0,class:\\\\\\\"tew-table-wrapper\\\\\\\"},gn={class:\\\\\\\"tew-table\\\\\\\"},vn={class:\\\\\\\"tew-cell-inner\\\\\\\"},yn=[\\\\\\\"value\\\\\\\",\\\\\\\"onInput\\\\\\\",\\\\\\\"onKeydown\\\\\\\"],wn=[\\\\\\\"onClick\\\\\\\"],bn={class:\\\\\\\"tew-row-handle\\\\\\\"},_n=[\\\\\\\"onClick\\\\\\\"],Sn=[\\\\\\\"value\\\\\\\",\\\\\\\"onInput\\\\\\\",\\\\\\\"onKeydown\\\\\\\"],xn={key:1,class:\\\\\\\"tew-md-wrapper\\\\\\\"},Ln=cn({__name:\\\\\\\"tableEditorWidget\\\\\\\",props:[\\\\\\\"widget\\\\\\\",\\\\\\\"node\\\\\\\"],setup(e){const t=P(\\\\\\\"table\\\\\\\"),i=se({headers:[\\\\\\\"\\u52171\\\\\\\",\\\\\\\"\\u52172\\\\\\\",\\\\\\\"\\u52173\\\\\\\"],rows:[[\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\"],[\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\"]]}),s=P(\\\\\\\"\\\\\\\");function n(e){const t=e.headers.map(((t,i)=\\\\u003e{let s=String(t).length;for(const n of e.rows)s=Math.max(s,String(n[i]??\\\\\\\"\\\\\\\").replace(/\\\\\\\\n/g,\\\\\\\"\\\\u003cbr\\\\u003e\\\\\\\").length);return Math.max(s,3)})),i=(e,t)=\\\\u003eString(e).padEnd(t,\\\\\\\" \\\\\\\");return[\\\\\\\"| \\\\\\\"+e.headers.map(((e,s)=\\\\u003ei(e,t[s]))).join(\\\\\\\" | \\\\\\\")+\\\\\\\" |\\\\\\\",\\\\\\\"| \\\\\\\"+t.map((e=\\\\u003e\\\\\\\"-\\\\\\\".repeat(e))).join(\\\\\\\" | \\\\\\\")+\\\\\\\" |\\\\\\\",...e.rows.map((s=\\\\u003e\\\\\\\"| \\\\\\\"+e.headers.map(((e,n)=\\\\u003ei(String(s[n]??\\\\\\\"\\\\\\\").replace(/\\\\\\\\n/g,\\\\\\\"\\\\u003cbr\\\\u003e\\\\\\\"),t[n]))).join(\\\\\\\" | \\\\\\\")+\\\\\\\" |\\\\\\\"))].join(\\\\\\\"\\\\\\\\n\\\\\\\")}function a(e){const t=e.split(\\\\\\\"\\\\\\\\n\\\\\\\").map((e=\\\\u003ee.trim())).filter(Boolean);if(t.length\\\\u003c2)return null;const i=e=\\\\u003ee.replace(/^\\\\\\\\||\\\\\\\\|$/g,\\\\\\\"\\\\\\\").split(\\\\\\\"|\\\\\\\").map((e=\\\\u003ee.trim().replace(/\\\\u003cbr\\\\\\\\s*\\\\\\\\/?\\\\u003e/gi,\\\\\\\"\\\\\\\\n\\\\\\\")));let s=-1;for(let r=0;r\\\\u003ct.length-1;r++)if(n=t[r+1],/^\\\\\\\\|?[\\\\\\\\s\\\\\\\\-|:]+\\\\\\\\|?$/.test(n)){s=r;break}var n;if(-1===s)return null;const a=i(t[s]),o=t.slice(s+2).map(i),l=a.length;return{headers:a,rows:o.map((e=\\\\u003e{for(;e.length\\\\u003cl;)e.push(\\\\\\\"\\\\\\\");return e.slice(0,l)}))}}function o(e){if(e!==t.value){if(\\\\\\\"markdown\\\\\\\"===e)s.value=n(i);else{const e=a(s.value);e\\\\u0026\\\\u0026(i.headers=e.headers,i.rows=e.rows)}t.value=e,y(),\\\\\\\"table\\\\\\\"===e\\\\u0026\\\\u0026oe((()=\\\\u003ev()))}}function l(e){let t=0;for(const i of String(e||\\\\\\\"\\\\\\\").replace(/\\\\\\\\*\\\\\\\\*/g,\\\\\\\"\\\\\\\"))t+=/[\\\\\\\\u4e00-\\\\\\\\u9fff\\\\\\\\u3000-\\\\\\\\u303f\\\\\\\\uff00-\\\\\\\\uffef]/.test(i)?14:8;return t}const r=Y((()=\\\\u003e{const e=Math.max(i.headers.length,...i.rows.map((e=\\\\u003ee.length)));return Array.from({length:e},((e,t)=\\\\u003e{let s=120;for(const n of i.rows){const e=String(n[t]??\\\\\\\"\\\\\\\");for(const t of e.split(\\\\\\\"\\\\\\\\n\\\\\\\"))s=Math.max(s,l(t)+28)}return Math.min(s,200)+\\\\\\\"px\\\\\\\"}))}));function d(e){if(!e)return;const t=Array.from(e.querySelectorAll(\\\\\\\".tew-cell-textarea\\\\\\\"));if(0===t.length)return;t.forEach((e=\\\\u003e{e.style.height=\\\\\\\"auto\\\\\\\"}));const i=Math.max(...t.map((e=\\\\u003ee.scrollHeight)));t.forEach((e=\\\\u003e{e.style.height=i+\\\\\\\"px\\\\\\\"}))}function u(){i.rows.push(Array(i.headers.length).fill(\\\\\\\"\\\\\\\")),y()}function c(){i.headers.push(`\\u5217${i.headers.length+1}`),i.rows.forEach((e=\\\\u003ee.push(\\\\\\\"\\\\\\\"))),y()}function A(e,t,s,n=!1){oe((()=\\\\u003e{const t=e.target.closest(\\\\\\\"table\\\\\\\");if(!t)return;const s=Array.from(t.querySelectorAll(\\\\\\\".tew-cell-input\\\\\\\")),a=s.indexOf(e.target);if(-1===a)return;const o=s[a+(n?i.headers.length:1)];o\\\\u0026\\\\u0026o.focus()}))}let p=null;function h(){clearTimeout(p),p=setTimeout((()=\\\\u003e{y()}),300)}function m(){const e=a(s.value);e\\\\u0026\\\\u0026(i.headers=e.headers,i.rows=e.rows,s.value=n(i)),y()}function f(){return JSON.stringify({mode:t.value,headers:i.headers,rows:i.rows,markdown:\\\\\\\"markdown\\\\\\\"===t.value?s.value:n(i)})}function g(e){try{const a=\\\\\\\"string\\\\\\\"==typeof e?JSON.parse(e):e;if(a\\\\u0026\\\\u0026a.headers)return i.headers=a.headers,i.rows=a.rows||[],t.value=a.mode||\\\\\\\"table\\\\\\\",s.value=a.markdown||n(i),void oe((()=\\\\u003ev()))}catch(o){}if(\\\\\\\"string\\\\\\\"==typeof e\\\\u0026\\\\u0026e.includes(\\\\\\\"|\\\\\\\")){const t=a(e);t\\\\u0026\\\\u0026(i.headers=t.headers,i.rows=t.rows,s.value=e,oe((()=\\\\u003ev())))}}function v(){const e=document.querySelector(\\\\\\\".tew-table\\\\\\\");if(!e)return;Array.from(e.querySelectorAll(\\\\\\\"tbody tr\\\\\\\")).forEach((e=\\\\u003ed(e)))}function y(){e.widget\\\\u0026\\\\u0026(e.widget.value=f())}return V((()=\\\\u003e{var a;(null==(a=e.widget)?void 0:a.value)\\\\u0026\\\\u0026g(e.widget.value),e.widget.serializeValue=async({node:e},a)=\\\\u003e{const o=\\\\\\\"markdown\\\\\\\"===t.value?s.value:n(i);return(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[a]=o,e.widgets[a].value=f()),o},z((()=\\\\u003ee.widget.value),(e=\\\\u003e{e!==f()\\\\u0026\\\\u0026g(e)}))})),(e,n)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",{class:\\\\\\\"table-editor-widget\\\\\\\",onMousedown:n[3]||(n[3]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"])),onWheel:n[4]||(n[4]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"]))},[W(\\\\\\\"div\\\\\\\",An,[W(\\\\\\\"div\\\\\\\",pn,[W(\\\\\\\"button\\\\\\\",{class:B([\\\\\\\"tew-tab\\\\\\\",\\\\\\\"table\\\\\\\"===t.value?\\\\\\\"active\\\\\\\":\\\\\\\"\\\\\\\"]),onClick:n[0]||(n[0]=e=\\\\u003eo(\\\\\\\"table\\\\\\\"))},n[5]||(n[5]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-table\\\\\\\"},null,-1),ne(\\\\\\\" \\u8868\\u683c \\\\\\\")]),2),W(\\\\\\\"button\\\\\\\",{class:B([\\\\\\\"tew-tab\\\\\\\",\\\\\\\"markdown\\\\\\\"===t.value?\\\\\\\"active\\\\\\\":\\\\\\\"\\\\\\\"]),onClick:n[1]||(n[1]=e=\\\\u003eo(\\\\\\\"markdown\\\\\\\"))},n[6]||(n[6]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-code\\\\\\\"},null,-1),ne(\\\\\\\" Markdown \\\\\\\")]),2)]),\\\\\\\"table\\\\\\\"===t.value?(j(),U(\\\\\\\"div\\\\\\\",hn,[W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-btn\\\\\\\",onClick:u,title:\\\\\\\"\\u6dfb\\u52a0\\u884c\\\\\\\"},n[7]||(n[7]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-plus\\\\\\\"},null,-1),ne(\\\\\\\" \\u884c \\\\\\\")])),W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-btn\\\\\\\",onClick:c,title:\\\\\\\"\\u6dfb\\u52a0\\u5217\\\\\\\"},n[8]||(n[8]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-plus\\\\\\\"},null,-1),ne(\\\\\\\" \\u5217 \\\\\\\")]))])):(j(),U(\\\\\\\"div\\\\\\\",mn,[W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-btn\\\\\\\",onClick:m,title:\\\\\\\"\\u683c\\u5f0f\\u5316\\\\\\\"},n[9]||(n[9]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-align-left\\\\\\\"},null,-1),ne(\\\\\\\" \\u683c\\u5f0f\\u5316 \\\\\\\")]))]))]),\\\\\\\"table\\\\\\\"===t.value?(j(),U(\\\\\\\"div\\\\\\\",fn,[W(\\\\\\\"table\\\\\\\",gn,[W(\\\\\\\"thead\\\\\\\",null,[W(\\\\\\\"tr\\\\\\\",null,[n[10]||(n[10]=W(\\\\\\\"th\\\\\\\",{class:\\\\\\\"tew-row-handle\\\\\\\"},null,-1)),(j(!0),U(K,null,J(i.headers,((e,t)=\\\\u003e(j(),U(\\\\\\\"th\\\\\\\",{key:\\\\\\\"h\\\\\\\"+t,class:\\\\\\\"tew-header-cell\\\\\\\",style:ie({width:r.value[t]})},[W(\\\\\\\"div\\\\\\\",vn,[W(\\\\\\\"input\\\\\\\",{class:\\\\\\\"tew-cell-input tew-header-input\\\\\\\",value:e,onInput:e=\\\\u003efunction(e,t){i.headers[e]=t,y()}(t,e.target.value),onKeydown:le(Q((e=\\\\u003eA(e)),[\\\\\\\"prevent\\\\\\\"]),[\\\\\\\"tab\\\\\\\"]),placeholder:\\\\\\\"\\u5217\\u6807\\u9898\\\\\\\"},null,40,yn),W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-col-del\\\\\\\",onClick:e=\\\\u003efunction(e){i.headers.length\\\\u003c=1||(i.headers.splice(e,1),i.rows.forEach((t=\\\\u003et.splice(e,1))),y())}(t),title:\\\\\\\"\\u5220\\u9664\\u5217\\\\\\\"},\\\\\\\"\\u00d7\\\\\\\",8,wn)])],4)))),128))])]),W(\\\\\\\"tbody\\\\\\\",null,[(j(!0),U(K,null,J(i.rows,((e,t)=\\\\u003e(j(),U(\\\\\\\"tr\\\\\\\",{key:\\\\\\\"r\\\\\\\"+t},[W(\\\\\\\"td\\\\\\\",bn,[W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-row-del\\\\\\\",onClick:e=\\\\u003efunction(e){i.rows.length\\\\u003c=1||(i.rows.splice(e,1),y())}(t),title:\\\\\\\"\\u5220\\u9664\\u884c\\\\\\\"},\\\\\\\"\\u00d7\\\\\\\",8,_n)]),(j(!0),U(K,null,J(e,((e,s)=\\\\u003e(j(),U(\\\\\\\"td\\\\\\\",{key:\\\\\\\"c\\\\\\\"+s,class:\\\\\\\"tew-body-cell\\\\\\\",style:ie({width:r.value[s]})},[W(\\\\\\\"textarea\\\\\\\",{class:\\\\\\\"tew-cell-input tew-cell-textarea\\\\\\\",value:e,onInput:e=\\\\u003e{var n;!function(e,t,s){i.rows[e][t]=s,y()}(t,s,e.target.value),(n=e.target)\\\\u0026\\\\u0026(n.style.height=\\\\\\\"auto\\\\\\\",n.style.height=n.scrollHeight+\\\\\\\"px\\\\\\\",d(n.closest(\\\\\\\"tr\\\\\\\")))},onKeydown:le(Q((e=\\\\u003eA(e)),[\\\\\\\"prevent\\\\\\\"]),[\\\\\\\"tab\\\\\\\"]),rows:\\\\\\\"1\\\\\\\"},null,40,Sn)],4)))),128))])))),128))])])])):(j(),U(\\\\\\\"div\\\\\\\",xn,[Z(W(\\\\\\\"textarea\\\\\\\",{class:\\\\\\\"tew-md-textarea\\\\\\\",\\\\\\\"onUpdate:modelValue\\\\\\\":n[2]||(n[2]=e=\\\\u003es.value=e),onInput:h,placeholder:\\\\\\\"| \\u52171 | \\u52172 | \\u52173 |\\\\\\\\n| --- | --- | --- |\\\\\\\\n| \\u503c1 | \\u503c2 | \\u503c3 |\\\\\\\",spellcheck:\\\\\\\"false\\\\\\\"},null,544),[[ae,s.value]])]))],32))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-7e0ef36e\\\\\\\"]]),kn={class:\\\\\\\"relative rounded-t-lg overflow-hidden select-none\\\\\\\"},En={key:1,class:\\\\\\\"w-full h-full flex items-center justify-center\\\\\\\"},Nn=cn({__name:\\\\\\\"baseThumbnail\\\\\\\",props:{hoverZoom:{type:\\\\\\\"number\\\\\\\",default:4},isHovered:{type:Boolean,default:!1}},setup(e){const t=P(!1),i=P(null);return V((()=\\\\u003e{var e;Array.from((null==(e=i.value)?void 0:e.getElementsByTagName(\\\\\\\"img\\\\\\\"))??[]).forEach((e=\\\\u003e{ce(e,\\\\\\\"error\\\\\\\",(()=\\\\u003e{t.value=!0}))}))})),(s,n)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",kn,[t.value?(j(),U(\\\\\\\"div\\\\\\\",En,n[0]||(n[0]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-file text-4xl\\\\\\\"},null,-1)]))):(j(),U(\\\\\\\"div\\\\\\\",{key:0,ref_key:\\\\\\\"contentRef\\\\\\\",ref:i,class:\\\\\\\"w-full h-full transform-gpu transition-transform duration-1000 ease-out\\\\\\\",style:ie(e.isHovered?{transform:`scale(${1+e.hoverZoom/100})`}:void 0)},[re(s.$slots,\\\\\\\"default\\\\\\\",{},void 0,!0)],4))]))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-604a4248\\\\\\\"]]),Cn=[\\\\\\\"src\\\\\\\",\\\\\\\"alt\\\\\\\"],In=cn({__name:\\\\\\\"lazyImage\\\\\\\",props:{src:{type:String,required:!0},alt:{type:String,default:\\\\\\\"\\\\\\\"},imageClass:{type:[String,Array,Object],default:\\\\\\\"\\\\\\\"},imageStyle:{type:[String,Object],default:()=\\\\u003e({})},placeholderClass:{type:[String,Array,Object],default:\\\\\\\"\\\\\\\"},errorClass:{type:[String,Array,Object],default:\\\\\\\"\\\\\\\"},rootMargin:{type:String,default:\\\\\\\"50px\\\\\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\\\\\"load\\\\\\\",\\\\\\\"error\\\\\\\",\\\\\\\"visible\\\\\\\"],setup(e,{emit:t}){const i=e,s=t,n=P(null),a=P(i.immediate),o=P(!1),l=P(!1),r=Y((()=\\\\u003ei.src));z((()=\\\\u003ei.src),(()=\\\\u003e{o.value=!1,l.value=!1,i.immediate||(a.value=!1)}),{immediate:!0});const{stop:d}=Ae(n,(([e])=\\\\u003e{(null==e?void 0:e.isIntersecting)\\\\u0026\\\\u0026!a.value\\\\u0026\\\\u0026(a.value=!0,s(\\\\\\\"visible\\\\\\\"),d())}),{rootMargin:i.rootMargin,threshold:i.threshold}),u=e=\\\\u003e{o.value=!0,l.value=!1,s(\\\\\\\"load\\\\\\\",e)},c=e=\\\\u003e{l.value=!0,o.value=!1,s(\\\\\\\"error\\\\\\\",e)};return(t,i)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",{ref_key:\\\\\\\"containerRef\\\\\\\",ref:n,class:\\\\\\\"lazy-image-container\\\\\\\"},[l.value?(j(),U(\\\\\\\"div\\\\\\\",{key:0,class:B([\\\\\\\"lazy-image-error\\\\\\\",\\\\\\\"w-full h-full flex items-center justify-center bg-surface-100 dark:bg-surface-800\\\\\\\",e.errorClass])},[re(t.$slots,\\\\\\\"error\\\\\\\",{},(()=\\\\u003e[i[0]||(i[0]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\\\\\"},null,-1))]),!0)],2)):a.value\\\\u0026\\\\u0026r.value?(j(),U(\\\\\\\"img\\\\\\\",{key:1,src:r.value,alt:e.alt,class:B(e.imageClass),style:ie(e.imageStyle),draggable:\\\\\\\"false\\\\\\\",onLoad:u,onError:c},null,46,Cn)):a.value?te(\\\\\\\"\\\\\\\",!0):(j(),U(\\\\\\\"div\\\\\\\",{key:2,class:B([\\\\\\\"lazy-image-placeholder\\\\\\\",\\\\\\\"w-full h-full flex items-center justify-center bg-surface-100 dark:bg-surface-800\\\\\\\",e.placeholderClass])},[re(t.$slots,\\\\\\\"placeholder\\\\\\\",{},(()=\\\\u003e[i[1]||(i[1]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-image text-2xl text-surface-400\\\\\\\"},null,-1))]),!0)],2))],512))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-4bfc03bf\\\\\\\"]]),Tn={class:\\\\\\\"overflow-hidden w-full h-full flex items-center justify-center\\\\\\\"},On={__name:\\\\\\\"defaultThumbnail\\\\\\\",props:{src:{type:String,required:!0},alt:{type:String,required:!0},hoverZoom:{type:Number,required:!0},isHovered:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},rootMargin:{type:String,default:\\\\\\\"50px\\\\\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\\\\\"load\\\\\\\",\\\\\\\"error\\\\\\\",\\\\\\\"visible\\\\\\\"],setup(e,{emit:t}){const i=e,{src:s,isVideo:n}=i;return n??(null==s||s.toLowerCase().endsWith(\\\\\\\".webp\\\\\\\")),(t,i)=\\\\u003e(j(),H(Nn,{\\\\\\\"hover-zoom\\\\\\\":e.hoverZoom,\\\\\\\"is-hovered\\\\\\\":e.isHovered},{default:de((()=\\\\u003e[W(\\\\\\\"div\\\\\\\",Tn,[F(In,{src:X(s),\\\\\\\"image-class\\\\\\\":[\\\\\\\"transform-gpu transition-transform duration-300 ease-out\\\\\\\",\\\\\\\"w-full h-full object-cover\\\\\\\"],\\\\\\\"image-style\\\\\\\":e.isHovered?{transform:`scale(${1+e.hoverZoom/100})`}:void 0,\\\\\\\"root-margin\\\\\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate,onLoad:i[0]||(i[0]=e=\\\\u003et.$emit(\\\\\\\"load\\\\\\\",e)),onError:i[1]||(i[1]=e=\\\\u003et.$emit(\\\\\\\"error\\\\\\\",e)),onVisible:i[2]||(i[2]=e=\\\\u003et.$emit(\\\\\\\"visible\\\\\\\",e))},{placeholder:de((()=\\\\u003e[re(t.$slots,\\\\\\\"placeholder\\\\\\\",{},(()=\\\\u003e[i[3]||(i[3]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-image text-2xl text-surface-400\\\\\\\"},null,-1))]))])),error:de((()=\\\\u003e[re(t.$slots,\\\\\\\"error\\\\\\\",{},(()=\\\\u003e[i[4]||(i[4]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\\\\\"},null,-1))]))])),_:3},8,[\\\\\\\"src\\\\\\\",\\\\\\\"image-style\\\\\\\",\\\\\\\"root-margin\\\\\\\",\\\\\\\"threshold\\\\\\\",\\\\\\\"immediate\\\\\\\"])])])),_:3},8,[\\\\\\\"hover-zoom\\\\\\\",\\\\\\\"is-hovered\\\\\\\"]))}},Mn={class:\\\\\\\"overflow-hidden w-full h-full flex items-center justify-center relative\\\\\\\"},Dn={__name:\\\\\\\"compareSliderThumbnail\\\\\\\",props:{baseImageSrc:{type:String,required:!0},overlayImageSrc:{type:String,required:!0},alt:{type:String,required:!0},isHovered:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},rootMargin:{type:String,default:\\\\\\\"50px\\\\\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\\\\\"load\\\\\\\",\\\\\\\"error\\\\\\\",\\\\\\\"visible\\\\\\\"],setup(e,{emit:t}){var i,s;const n=e;n.isVideo||(null==(i=n.baseImageSrc)?void 0:i.toLowerCase().endsWith(\\\\\\\".webp\\\\\\\"))||null==(s=n.overlayImageSrc)||s.toLowerCase().endsWith(\\\\\\\".webp\\\\\\\");const a=P(50),o=P(null),{elementX:l,elementWidth:r,isOutside:d}=pe(o);return z([()=\\\\u003en.isHovered,l,r,d],(([e,t,i,s])=\\\\u003e{e\\\\u0026\\\\u0026(s||(a.value=t/i*100))})),(t,i)=\\\\u003e(j(),H(Nn,{\\\\\\\"is-hovered\\\\\\\":e.isHovered},{default:de((()=\\\\u003e[W(\\\\\\\"div\\\\\\\",Mn,[F(In,{src:e.baseImageSrc,\\\\\\\"image-class\\\\\\\":[\\\\\\\"transform-gpu transition-transform duration-300 ease-out\\\\\\\",\\\\\\\"w-full h-full object-cover block\\\\\\\"],\\\\\\\"root-margin\\\\\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate,onLoad:i[0]||(i[0]=e=\\\\u003et.$emit(\\\\\\\"load\\\\\\\",e)),onError:i[1]||(i[1]=e=\\\\u003et.$emit(\\\\\\\"error\\\\\\\",e)),onVisible:i[2]||(i[2]=e=\\\\u003et.$emit(\\\\\\\"visible\\\\\\\",e))},{placeholder:de((()=\\\\u003e[re(t.$slots,\\\\\\\"placeholder\\\\\\\",{},(()=\\\\u003e[i[3]||(i[3]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-image text-2xl text-surface-400\\\\\\\"},null,-1))]))])),error:de((()=\\\\u003e[re(t.$slots,\\\\\\\"error\\\\\\\",{},(()=\\\\u003e[i[4]||(i[4]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\\\\\"},null,-1))]))])),_:3},8,[\\\\\\\"src\\\\\\\",\\\\\\\"root-margin\\\\\\\",\\\\\\\"threshold\\\\\\\",\\\\\\\"immediate\\\\\\\"]),W(\\\\\\\"div\\\\\\\",{ref_key:\\\\\\\"containerRef\\\\\\\",ref:o,class:\\\\\\\"absolute inset-0\\\\\\\"},[F(In,{src:e.overlayImageSrc,\\\\\\\"image-class\\\\\\\":[\\\\\\\"transform-gpu transition-transform duration-300 ease-out\\\\\\\",\\\\\\\"w-full h-full object-cover block\\\\\\\"],\\\\\\\"image-style\\\\\\\":{clipPath:`inset(0 ${100-a.value}% 0 0)`},\\\\\\\"root-margin\\\\\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate},{placeholder:de((()=\\\\u003e[re(t.$slots,\\\\\\\"placeholder\\\\\\\",{},(()=\\\\u003e[i[5]||(i[5]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-image text-2xl text-surface-400\\\\\\\"},null,-1))]))])),error:de((()=\\\\u003e[re(t.$slots,\\\\\\\"error\\\\\\\",{},(()=\\\\u003e[i[6]||(i[6]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\\\\\"},null,-1))]))])),_:3},8,[\\\\\\\"src\\\\\\\",\\\\\\\"image-style\\\\\\\",\\\\\\\"root-margin\\\\\\\",\\\\\\\"threshold\\\\\\\",\\\\\\\"immediate\\\\\\\"]),W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"absolute inset-y-0 bg-white/30 backdrop-blur-sm z-10 pointer-events-none\\\\\\\",style:ie({left:`${a.value}%`,width:\\\\\\\"1px\\\\\\\"})},null,4)],512)])])),_:3},8,[\\\\\\\"is-hovered\\\\\\\"]))}},Rn={class:\\\\\\\"selector-card-wrapper\\\\\\\"},Pn={class:\\\\\\\"card-image-container\\\\\\\"},Gn={key:2,class:\\\\\\\"selection-badge\\\\\\\"},zn={class:\\\\\\\"card-content\\\\\\\"},Vn={class:\\\\\\\"card-title\\\\\\\"},jn=cn({__name:\\\\\\\"selectorCard\\\\\\\",props:{item:{type:Object,required:!0},uniqueKey:{type:String,default:\\\\\\\"id\\\\\\\"},selectable:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!0},showMeta:{type:Boolean,default:!1},showActions:{type:Boolean,default:!1},actions:{type:Array,default:()=\\\\u003e[]},itemFields:{type:Object,default:()=\\\\u003e({id:\\\\\\\"id\\\\\\\",title:\\\\\\\"title\\\\\\\",description:\\\\\\\"description\\\\\\\",image:\\\\\\\"image\\\\\\\",meta:\\\\\\\"meta\\\\\\\"})},locale:{type:String,default:\\\\\\\"en\\\\\\\"}},emits:[\\\\\\\"select\\\\\\\",\\\\\\\"action\\\\\\\",\\\\\\\"item-hover\\\\\\\",\\\\\\\"item-leave\\\\\\\"],setup(e,{emit:t}){const i=e,s=t,n=P(null),a=he(n),o=()=\\\\u003e{i.selectable\\\\u0026\\\\u0026s(\\\\\\\"select\\\\\\\",i.item)},l=()=\\\\u003e{s(\\\\\\\"item-hover\\\\\\\",i.item)},r=()=\\\\u003e{s(\\\\\\\"item-leave\\\\\\\",i.item)};return(t,i)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",Rn,[W(\\\\\\\"div\\\\\\\",{ref_key:\\\\\\\"cardRef\\\\\\\",ref:n,class:B([\\\\\\\"card-item\\\\\\\",{selected:e.isSelected,clickable:e.selectable}]),onClick:o,onMouseenter:l,onMouseleave:r},[W(\\\\\\\"div\\\\\\\",Pn,[\\\\\\\"compareSlider\\\\\\\"===e.item.thumbnailVariant?(j(),H(Dn,{key:0,\\\\\\\"base-image-src\\\\\\\":e.item.thumbnail[0],\\\\\\\"overlay-image-src\\\\\\\":e.item.thumbnail[1],alt:t.title,\\\\\\\"is-hovered\\\\\\\":X(a),\\\\\\\"is-video\\\\\\\":\\\\\\\"video\\\\\\\"===e.item.mediaType||\\\\\\\"webp\\\\\\\"===e.item.mediaSubtype,class:\\\\\\\"card-image\\\\\\\"},null,8,[\\\\\\\"base-image-src\\\\\\\",\\\\\\\"overlay-image-src\\\\\\\",\\\\\\\"alt\\\\\\\",\\\\\\\"is-hovered\\\\\\\",\\\\\\\"is-video\\\\\\\"])):(j(),H(On,{key:1,src:e.item.thumbnail||\\\\\\\"\\\\\\\",alt:\\\\\\\"zh\\\\\\\"==e.locale?e.item.name_cn:e.item.name,\\\\\\\"hover-zoom\\\\\\\":4,\\\\\\\"is-hovered\\\\\\\":!1,class:\\\\\\\"card-image\\\\\\\"},null,8,[\\\\\\\"src\\\\\\\",\\\\\\\"alt\\\\\\\"])),e.selectable\\\\u0026\\\\u0026e.isSelected?(j(),U(\\\\\\\"div\\\\\\\",Gn,i[0]||(i[0]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-check text-white\\\\\\\"},null,-1)]))):te(\\\\\\\"\\\\\\\",!0)]),W(\\\\\\\"div\\\\\\\",zn,[W(\\\\\\\"div\\\\\\\",Vn,ee(\\\\\\\"zh\\\\\\\"==e.locale?e.item.name_cn:e.item.name),1)])],34)]))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-88af28b0\\\\\\\"]]),Un={class:\\\\\\\"list-item\\\\\\\"},Wn=[\\\\\\\"name\\\\\\\",\\\\\\\"checked\\\\\\\"],Fn={class:\\\\\\\"list-item-content\\\\\\\"},Xn={class:\\\\\\\"list-title\\\\\\\"},Zn=cn({__name:\\\\\\\"selectorList\\\\\\\",props:{item:{type:Object,required:!0},uniqueKey:{type:String,default:\\\\\\\"id\\\\\\\"},selectable:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!0},showActions:{type:Boolean,default:!1},actions:{type:Array,default:()=\\\\u003e[]},itemFields:{type:Object,default:()=\\\\u003e({id:\\\\\\\"id\\\\\\\",title:\\\\\\\"title\\\\\\\",description:\\\\\\\"description\\\\\\\"})},locale:{type:String,default:\\\\\\\"en\\\\\\\"}},emits:[\\\\\\\"select\\\\\\\",\\\\\\\"action\\\\\\\",\\\\\\\"item-hover\\\\\\\",\\\\\\\"item-leave\\\\\\\"],setup(e,{emit:t}){const i=e,s=t,n=()=\\\\u003e{i.selectable\\\\u0026\\\\u0026s(\\\\\\\"select\\\\\\\",i.item)},a=()=\\\\u003e{s(\\\\\\\"item-hover\\\\\\\",i.item)},o=()=\\\\u003e{s(\\\\\\\"item-leave\\\\\\\",i.item)};return(t,i)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",Un,[W(\\\\\\\"span\\\\\\\",{class:B([\\\\\\\"list-item__tag\\\\\\\",{selected:e.isSelected}]),onClick:n,onMouseenter:a,onMouseleave:o},[e.selectable?(j(),U(\\\\\\\"input\\\\\\\",{key:0,type:\\\\\\\"checkbox\\\\\\\",name:e.item.name,checked:e.isSelected,onClick:i[0]||(i[0]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"]))},null,8,Wn)):te(\\\\\\\"\\\\\\\",!0),W(\\\\\\\"span\\\\\\\",Fn,[W(\\\\\\\"div\\\\\\\",Xn,ee(\\\\\\\"zh\\\\\\\"==e.locale?e.item.name_cn:e.item.name),1)])],34)]))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-c93b1734\\\\\\\"]]),Hn=S(\\\\\\\"graphStore\\\\\\\",{state:e=\\\\u003e({selectors:[],selectors_styles:{},seg_selectors:[],slider_controls:[]}),actions:{setSelectors(e){this.selectors=R(e)},setStyles(e,t){this.selectors_styles[e]||(this.selectors_styles[e]=t)},setSegSelectors(e){this.seg_selectors=R(e)},setSliderControls(e){this.slider_controls=R(e)}}}),qn={class:\\\\\\\"easyuse-styles-selector\\\\\\\"},Yn={class:\\\\\\\"easyuse-styles-selector-header flex justify-between gap-2\\\\\\\"},Kn={class:\\\\\\\"flex align-center gap-1\\\\\\\"},Jn={class:\\\\\\\"flex-1\\\\\\\"},Bn={key:0,class:\\\\\\\"grid-container gap-2\\\\\\\"},Qn={key:1,class:\\\\\\\"list-container\\\\\\\"},$n={key:0,class:\\\\\\\"easyuse-styles-selector-previewer\\\\\\\"},ea={class:\\\\\\\"easyuse-styles-selector-previewer__text\\\\\\\"},ta=[\\\\\\\"src\\\\\\\"],ia={class:\\\\\\\"title\\\\\\\"},sa={class:\\\\\\\"easyuse-styles-selector-previewer__prompt\\\\\\\"},na={key:0},aa={class:\\\\\\\"comfyui-easyuse-success\\\\\\\"},oa={key:1},la={class:\\\\\\\"comfyui-easyuse-error\\\\\\\"},ra={__name:\\\\\\\"stylesSelector\\\\\\\",props:[\\\\\\\"widget\\\\\\\"],setup(e){const t=Hn(),{selectors_styles:i}=I(t),s=P(\\\\\\\"\\\\\\\"),n=P([]),a=Y((e=\\\\u003exe(\\\\\\\"Comfy.Locale\\\\\\\")||\\\\\\\"en\\\\\\\")),o=P(xe(\\\\\\\"EasyUse.StylesSelector.DisplayType\\\\\\\")||\\\\\\\"Grid\\\\\\\");\\\\\\\"Gird\\\\\\\"==o.value\\\\u0026\\\\u0026(o.value=\\\\\\\"Grid\\\\\\\",ke(\\\\\\\"EasyUse.StylesSelector.DisplayType\\\\\\\",\\\\\\\"Grid\\\\\\\"));const l=P([]),r=P(\\\\\\\"\\\\\\\");z((e=\\\\u003eo.value),(e=\\\\u003e{ke(\\\\\\\"EasyUse.StylesSelector.DisplayType\\\\\\\",e)})),z((t=\\\\u003ee.widget.value),(e=\\\\u003e{n.value=e.split(\\\\\\\",\\\\\\\").map((e=\\\\u003ee.trim()))}));const d=Y((()=\\\\u003e{if(!r.value.trim())return l.value;const e=n.value||[],t=r.value.toLowerCase(),i=[],s=[];return l.value.forEach((n=\\\\u003e{if(e.includes(n.name))i.push(n);else{const e=\\\\\\\"zh\\\\\\\"===a.value\\\\u0026\\\\u0026n.name_cn?n.name_cn:n.name,i=n.prompt||\\\\\\\"\\\\\\\",o=n.negative_prompt||\\\\\\\"\\\\\\\";(e.toLowerCase().includes(t)||i.toLowerCase().includes(t)||o.toLowerCase().includes(t))\\\\u0026\\\\u0026s.push(n)}})),[...i,...s]})),u=se({name:\\\\\\\"\\\\\\\",positive:\\\\\\\"\\\\\\\",negative:\\\\\\\"\\\\\\\",src:\\\\\\\"\\\\\\\"}),c=async e=\\\\u003e{if(i.value[e])return!0;const s=await ge.fetchApi(`/easyuse/prompt/styles?name=${e}`);if(200===s.status){let i=(await s.json()).map(((e,t)=\\\\u003e(e.index=t,e)));return await t.setStyles(e,i),!0}return Ye.error(Ne(\\\\\\\"Get styles list Failed\\\\\\\")),!1},A=e=\\\\u003e{var t,i;u.name=\\\\\\\"zh\\\\\\\"==a.value\\\\u0026\\\\u0026e.name_cn?e.name_cn:e.name,u.src=e.thumbnailVariant\\\\u0026\\\\u0026\\\\\\\"default\\\\\\\"!=e.thumbnailVariant?(null==(t=e.thumbnail)?void 0:t[1])||(null==(i=e.thumbnail)?void 0:i[0]):e.thumbnail,u.positive=e.prompt,u.negative=e.negative_prompt},p=()=\\\\u003e{u.name=\\\\\\\"\\\\\\\",u.src=\\\\\\\"\\\\\\\",u.positive=\\\\\\\"\\\\\\\",u.negative=\\\\\\\"\\\\\\\"},h=e=\\\\u003e{const t=n.value||[],a=R(i.value[s.value]);l.value=[...a.sort(((e,t)=\\\\u003ee.index-t.index)).sort(((e,i)=\\\\u003et.includes(i.name)-t.includes(e.name)))]},m=e=\\\\u003e(n.value||[]).includes(e.name),f=e=\\\\u003e{let t=[...n.value||[]];const i=e.name,s=t.findIndex((e=\\\\u003ee===i));s\\\\u003e-1?t.splice(s,1):t.push(i),n.value=t},g=()=\\\\u003e{n.value=[]};return V((t=\\\\u003e{setTimeout((t=\\\\u003e{const i=wt(e.widget.node,\\\\\\\"styles\\\\\\\");let n=i.value;s.value=n,c(n).then((e=\\\\u003ee\\\\u0026\\\\u0026h())),i.callback=e=\\\\u003e{s.value=e,g(),c(e).then((e=\\\\u003ee\\\\u0026\\\\u0026h()))}}),1),e.widget.serializeValue=async({node:e},t)=\\\\u003e{try{let i=n.value||[];return i=i.join(\\\\\\\",\\\\\\\"),(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[t]=i,e.widgets[t].value=i),i}catch(i){return[]}}})),(t,i)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",qn,[W(\\\\\\\"div\\\\\\\",Yn,[W(\\\\\\\"div\\\\\\\",Kn,[Z(F(X(L),{icon:\\\\\\\"pi pi-trash\\\\\\\",severity:\\\\\\\"secondary\\\\\\\",outlined:\\\\\\\"\\\\\\\",size:\\\\\\\"small\\\\\\\",onClick:g},null,512),[[X(E),X(Ne)(\\\\\\\"Reset\\\\\\\")]])]),W(\\\\\\\"div\\\\\\\",Jn,[F(X(M),null,{default:de((()=\\\\u003e[F(X(T),{class:\\\\\\\"pi pi-search\\\\\\\"}),F(X(O),{modelValue:r.value,\\\\\\\"onUpdate:modelValue\\\\\\\":i[0]||(i[0]=e=\\\\u003er.value=e),placeholder:X(Ne)(\\\\\\\"Search styles...\\\\\\\"),class:\\\\\\\"w-full\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"placeholder\\\\\\\"])])),_:1})]),F(X(D),{modelValue:o.value,\\\\\\\"onUpdate:modelValue\\\\\\\":i[1]||(i[1]=e=\\\\u003eo.value=e),options:[\\\\\\\"Grid\\\\\\\",\\\\\\\"List\\\\\\\"],\\\\\\\"allow-empty\\\\\\\":!1},{option:de((({option:e})=\\\\u003e[W(\\\\\\\"i\\\\\\\",{class:B([\\\\\\\"List\\\\\\\"===e?\\\\\\\"pi pi-bars\\\\\\\":\\\\\\\"pi pi-table\\\\\\\"])},null,2)])),_:1},8,[\\\\\\\"modelValue\\\\\\\"])]),W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"easyuse-styles-selector-content\\\\\\\",onMouseleave:i[2]||(i[2]=t=\\\\u003eh(e.widget.node.name))},[\\\\\\\"Grid\\\\\\\"===o.value?(j(),U(\\\\\\\"div\\\\\\\",Bn,[(j(!0),U(K,null,J(d.value,((e,t)=\\\\u003e(j(),H(jn,{key:`${e.name}-${t}`,item:e,\\\\\\\"unique-key\\\\\\\":\\\\\\\"name\\\\\\\",locale:a.value,selectable:!0,\\\\\\\"is-selected\\\\\\\":m(e),\\\\\\\"show-description\\\\\\\":!0,\\\\\\\"preview-enabled\\\\\\\":!0,onSelect:f,onItemHover:A,onItemLeave:p},null,8,[\\\\\\\"item\\\\\\\",\\\\\\\"locale\\\\\\\",\\\\\\\"is-selected\\\\\\\"])))),128))])):(j(),U(\\\\\\\"div\\\\\\\",Qn,[(j(!0),U(K,null,J(d.value,((e,t)=\\\\u003e(j(),H(Zn,{key:`${e.name}-${t}`,item:e,\\\\\\\"unique-key\\\\\\\":\\\\\\\"name\\\\\\\",locale:a.value,selectable:!0,\\\\\\\"is-selected\\\\\\\":m(e),\\\\\\\"show-description\\\\\\\":!0,onSelect:f,onItemHover:A,onItemLeave:p},null,8,[\\\\\\\"item\\\\\\\",\\\\\\\"locale\\\\\\\",\\\\\\\"is-selected\\\\\\\"])))),128))]))],32),(null==u?void 0:u.positive)||(null==u?void 0:u.negative)?(j(),U(\\\\\\\"div\\\\\\\",$n,[W(\\\\\\\"div\\\\\\\",ea,[W(\\\\\\\"img\\\\\\\",{src:u.src,alt:\\\\\\\"\\\\\\\",style:{width:\\\\\\\"100%\\\\\\\",height:\\\\\\\"auto\\\\\\\",\\\\\\\"object-fit\\\\\\\":\\\\\\\"contain\\\\\\\",\\\\\\\"border-radius\\\\\\\":\\\\\\\"6px\\\\\\\"}},null,8,ta),W(\\\\\\\"span\\\\\\\",ia,ee(u.name),1),W(\\\\\\\"div\\\\\\\",sa,[u.positive?(j(),U(\\\\\\\"h6\\\\\\\",na,[W(\\\\\\\"span\\\\\\\",aa,ee(X(Ne)(\\\\\\\"Positive\\\\\\\"))+\\\\\\\":\\\\\\\",1),W(\\\\\\\"span\\\\\\\",null,ee(u.positive),1)])):te(\\\\\\\"\\\\\\\",!0),u.negative?(j(),U(\\\\\\\"h6\\\\\\\",oa,[W(\\\\\\\"span\\\\\\\",la,ee(X(Ne)(\\\\\\\"Negative\\\\\\\"))+\\\\\\\":\\\\\\\",1),W(\\\\\\\"span\\\\\\\",null,ee(u.negative),1)])):te(\\\\\\\"\\\\\\\",!0)])])])):te(\\\\\\\"\\\\\\\",!0)]))}},da=new Map,ua={width:\\\\\\\"100%\\\\\\\",height:\\\\\\\"100%\\\\\\\",display:\\\\\\\"flex\\\\\\\",flexDirection:\\\\\\\"column\\\\\\\",overflow:\\\\\\\"hidden\\\\\\\"},ca=(e,t)=\\\\u003e{const i=document.createElement(\\\\\\\"div\\\\\\\"),s=e.node,n=e.options||{getMinHeight:()=\\\\u003e100,hideOnZoom:!0,serialize:!0},a=e.styles||null;i.id=`easyuse-vue-widget-${s.id}`,Object.assign(i.style,ua,a||{});const o=s.addDOMWidget(e.name||\\\\\\\"ustom_vue_component_basic\\\\\\\",\\\\\\\"vue-basic\\\\\\\",i,n);e.inputSpec\\\\u0026\\\\u0026(o.inputSpec=e.inputSpec);const l=ue(t,{widget:o,node:s});return l.use(me),l.mount(i),da.set(s.id,l),o.onRemove=()=\\\\u003e{const e=da.get(s.id);e\\\\u0026\\\\u0026(e.unmount(),da.delete(s.id))},{widget:o}};fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.CustomWidget\\\\\\\",getCustomWidgets:e=\\\\u003e({EASY_PROMPT_AWAIT_BAR:e=\\\\u003e{const t=P(JSON.stringify({select:\\\\\\\"now\\\\\\\",unlock:!0,last_seed:0,seed:0})),i=!![\\\\\\\"obsidian\\\\\\\",\\\\\\\"obsidian_dark\\\\\\\",\\\\\\\"milk_white\\\\\\\"].includes(xe(\\\\\\\"Comfy.ColorPalette\\\\\\\"))?48:54;return ca({name:\\\\\\\"toolbar\\\\\\\",node:e,options:{getMinHeight:()=\\\\u003ei,getMaxHeight:()=\\\\u003ei,getValue:()=\\\\u003et.value,setValue:e=\\\\u003e{try{t.value=\\\\\\\"object\\\\\\\"==typeof e?JSON.stringify(e):e}catch(i){}}}},Es)},EASY_PROMPT_STYLES:e=\\\\u003e{const t=P(\\\\\\\"\\\\\\\");return ca({name:\\\\\\\"select_styles\\\\\\\",node:e,options:{getMinHeight:()=\\\\u003e180,getMaxHeight:()=\\\\u003ee.size[1]-75,getValue:()=\\\\u003et.value,setValue:e=\\\\u003e{t.value=Array.isArray(e)?e.join(\\\\\\\",\\\\\\\"):e}},styles:{overflow:\\\\\\\"visible\\\\\\\"}},ra)},EASY_COMBO:(e,t,i)=\\\\u003e{const s=P(\\\\\\\"\\\\\\\"),n=!![\\\\\\\"obsidian\\\\\\\",\\\\\\\"obsidian_dark\\\\\\\",\\\\\\\"milk_white\\\\\\\"].includes(xe(\\\\\\\"Comfy.ColorPalette\\\\\\\"))?22:26;return ca({name:\\\\\\\"mask_components\\\\\\\",node:e,options:{margin:0,getMinHeight:()=\\\\u003en,getMaxHeight:()=\\\\u003en,getValue:()=\\\\u003es.value,setValue:e=\\\\u003e{s.value=Array.isArray(e)?e.join(\\\\\\\",\\\\\\\"):e}},inputSpec:null==i?void 0:i[1],styles:{overflow:\\\\\\\"visible\\\\\\\"}},Cs)},EASY_MULTI_ANGLE:e=\\\\u003e{const t=P(JSON.stringify([{rotate:0,vertical:0,zoom:5,add_angle_prompt:!0}]));return ca({name:\\\\\\\"multi_angle\\\\\\\",node:e,options:{getMinHeight:()=\\\\u003e350,getMaxHeight:()=\\\\u003ee.size[1]-80,getValue:()=\\\\u003et.value,setValue:e=\\\\u003e{try{t.value=Array.isArray(e)?JSON.stringify(e):e}catch(i){}}},styles:{overflow:\\\\\\\"visible\\\\\\\"}},un)},EASY_TABLE_EDITOR:(e,t,i,s)=\\\\u003e{const n=P(JSON.stringify({mode:\\\\\\\"table\\\\\\\",headers:[\\\\\\\"\\u52171\\\\\\\",\\\\\\\"\\u52172\\\\\\\",\\\\\\\"\\u52173\\\\\\\"],rows:[[\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\"],[\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\"]],markdown:\\\\\\\"| \\u52171 | \\u52172 | \\u52173 |\\\\\\\\n| --- | --- | --- |\\\\\\\\n|     |     |     |\\\\\\\\n|     |     |     |\\\\\\\"}));return ca({name:\\\\\\\"table_data\\\\\\\",node:e,options:{getMinHeight:()=\\\\u003e200,getMaxHeight:()=\\\\u003ee.size[1],getValue:()=\\\\u003en.value,setValue:e=\\\\u003e{n.value=\\\\\\\"object\\\\\\\"==typeof e?JSON.stringify(e):e}},styles:{overflow:\\\\\\\"hidden\\\\\\\"}},Ln)}})});export{Ne as $,Re as N,fe as a,Ke as b,xe as c,vi as d,Pe as e,ge as f,wt as g,Le as h,Nt as j,Xe as s,Ye as t,Hn as u};\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"web_version/v2/assets/extensions-DcWKQGos.js\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 1,\\n        \\\"line_snippet\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i)=\\\\u003e(y(e,t,\\\\\\\"read from private field\\\\\\\"),i?i.call(e):t.get(e)),b=(e,t,i)=\\\\u003et.has(e)?g(\\\\\\\"Cannot add the same private member more than once\\\\\\\"):t instanceof WeakSet?t.add(e):t.set(e,i),_=(e,t,i,s)=\\\\u003e(y(e,t,\\\\\\\"write to private field\\\\\\\"),s?s.call(e,i):t.set(e,i),i);import{d as S,h as x,s as L,a as k,T as E,b as N,c as C,e as I,f as T,g as O,i as M,j as D}from\\\\\\\"./vendor-DrOEdrAG.js\\\\\\\";import{c as R}from\\\\\\\"./lodash-DkvwM0Z9.js\\\\\\\";import{r as P,m as G,w as z,o as V,a as j,c as U,b as W,d as F,u as X,e as Z,f as H,g as q,h as Y,F as K,i as J,n as B,j as Q,v as $,t as ee,k as te,l as ie,p as se,q as ne,s as ae,x as oe,y as le,z as re,A as de,B as ue}from\\\\\\\"./vue-DfGw76ex.js\\\\\\\";import{u as ce,a as Ae,b as pe,c as he}from\\\\\\\"./vueuse-Bf7Wy5dB.js\\\\\\\";import{P as me}from\\\\\\\"./primevue-keNb8gkp.js\\\\\\\";let fe=(null==(t=null==(e=window.comfyAPI)?void 0:e.app)?void 0:t.app)||null,ge=(null==(s=null==(i=window.comfyAPI)?void 0:i.api)?void 0:s.api)||null,ve=(null==(a=null==(n=window.comfyAPI)?void 0:n.ui)?void 0:a.$el)||null,ye=(null==(l=null==(o=window.comfyAPI)?void 0:o.dialog)?void 0:l.ComfyDialog)||null,we=(null==(d=null==(r=window.comfyAPI)?void 0:r.widgets)?void 0:d.ComfyWidgets)||null,be=(null==(c=null==(u=window.comfyAPI)?void 0:u.utils)?void 0:c.applyTextReplacements)||null,_e=(null==(p=null==(A=window.comfyAPI)?void 0:A.groupNode)?void 0:p.GroupNodeConfig)||null;const Se=e=\\\\u003e{var t,i;return e?null==(i=null==(t=null==fe?void 0:fe.ui)?void 0:t.settings)?void 0:i.getSettingValue(e):null};function xe(e,t=null){try{let i=e?Se(e):null;return null==i\\\\u0026\\\\u0026(i=t?localStorage[t]:localStorage[e]||null),i}catch(i){return null}}function Le(e,t=e=\\\\u003e{}){var i;const s=null==(i=fe.ui.settings.settingsLookup)?void 0:i[e];s\\\\u0026\\\\u0026(s.onChange=e=\\\\u003et(e))}async function ke(e,t,i=null){var s,n;if(!e)throw new Error(\\\\\\\"Invalid arguments\\\\\\\");try{(null==(n=null==(s=null==fe?void 0:fe.ui)?void 0:s.settings)?void 0:n.setSettingValue)?fe.ui.settings.setSettingValue(e,t):await ge.storeSetting(e,t),i\\\\u0026\\\\u0026(localStorage[i]=\\\\\\\"object\\\\\\\"==typeof t?JSON.stringify(t):t)}catch(a){}}const Ee={\\\\\\\"Workflow created by\\\\\\\":\\\\\\\"\\u5de5\\u4f5c\\u6d41\\u521b\\u5efa\\u8005\\\\\\\",\\\\\\\"Watch more video content\\\\\\\":\\\\\\\"\\u89c2\\u770b\\u66f4\\u591a\\u89c6\\u9891\\u5185\\u5bb9\\\\\\\",\\\\\\\"Workflow Guide\\\\\\\":\\\\\\\"\\u5de5\\u4f5c\\u6d41\\u6307\\u5357\\\\\\\",\\\\\\\"\\ud83d\\udc8e View Checkpoint Info...\\\\\\\":\\\\\\\"\\ud83d\\udc8e \\u67e5\\u770b Checkpoint \\u4fe1\\u606f...\\\\\\\",\\\\\\\"\\ud83d\\udc8e View Lora Info...\\\\\\\":\\\\\\\"\\ud83d\\udc8e \\u67e5\\u770b Lora \\u4fe1\\u606f...\\\\\\\",\\\\\\\"\\ud83d\\udd03 Reload Node\\\\\\\":\\\\\\\"\\ud83d\\udd03 \\u5237\\u65b0\\u8282\\u70b9\\\\\\\",\\\\\\\"Updated At:\\\\\\\":\\\\\\\"\\u6700\\u8fd1\\u66f4\\u65b0\\uff1a\\\\\\\",\\\\\\\"Created At:\\\\\\\":\\\\\\\"\\u9996\\u6b21\\u53d1\\u5e03\\uff1a\\\\\\\",\\\\\\\"\\u270f\\ufe0f Edit\\\\\\\":\\\\\\\"\\u270f\\ufe0f \\u7f16\\u8f91\\\\\\\",\\\\\\\"\\ud83d\\udcbe Save\\\\\\\":\\\\\\\"\\ud83d\\udcbe \\u4fdd\\u5b58\\\\\\\",\\\\\\\"No notes\\\\\\\":\\\\\\\"\\u5f53\\u524d\\u8fd8\\u6ca1\\u6709\\u5907\\u6ce8\\u5185\\u5bb9\\\\\\\",\\\\\\\"Saving Notes...\\\\\\\":\\\\\\\"\\u6b63\\u5728\\u4fdd\\u5b58\\u5907\\u6ce8...\\\\\\\",\\\\\\\"Type your notes here\\\\\\\":\\\\\\\"\\u5728\\u8fd9\\u91cc\\u8f93\\u5165\\u5907\\u6ce8\\u5185\\u5bb9\\\\\\\",ModelName:\\\\\\\"\\u6a21\\u578b\\u540d\\u79f0\\\\\\\",\\\\\\\"Models Required\\\\\\\":\\\\\\\"\\u6240\\u9700\\u6a21\\u578b\\\\\\\",\\\\\\\"Download Model\\\\\\\":\\\\\\\"\\u4e0b\\u8f7d\\u6a21\\u578b\\\\\\\",\\\\\\\"Source Url\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u6e90\\u5730\\u5740\\\\\\\",Notes:\\\\\\\"\\u5907\\u6ce8\\\\\\\",Type:\\\\\\\"\\u7c7b\\u578b\\\\\\\",\\\\\\\"Trained Words\\\\\\\":\\\\\\\"\\u8bad\\u7ec3\\u8bcd\\\\\\\",BaseModel:\\\\\\\"\\u57fa\\u7840\\u7b97\\u6cd5\\\\\\\",Details:\\\\\\\"\\u8be6\\u60c5\\\\\\\",Description:\\\\\\\"\\u63cf\\u8ff0\\\\\\\",Download:\\\\\\\"\\u4e0b\\u8f7d\\u91cf\\\\\\\",Source:\\\\\\\"\\u6765\\u6e90\\\\\\\",\\\\\\\"Saving Preview...\\\\\\\":\\\\\\\"\\u6b63\\u5728\\u4fdd\\u5b58\\u9884\\u89c8\\u56fe...\\\\\\\",\\\\\\\"Saving Succeed\\\\\\\":\\\\\\\"\\u4fdd\\u5b58\\u6210\\u529f\\\\\\\",\\\\\\\"Clean SuccessFully\\\\\\\":\\\\\\\"\\u6e05\\u7406\\u6210\\u529f\\\\\\\",\\\\\\\"Clean Failed\\\\\\\":\\\\\\\"\\u6e05\\u7406\\u5931\\u8d25\\\\\\\",\\\\\\\"Saving Failed\\\\\\\":\\\\\\\"\\u4fdd\\u5b58\\u5931\\u8d25\\\\\\\",\\\\\\\"No COMBO link\\\\\\\":\\\\\\\"\\u6c92\\u6709\\u627e\\u5230COMBO\\u8fde\\u63a5\\\\\\\",\\\\\\\"Reboot ComfyUI\\\\\\\":\\\\\\\"\\u91cd\\u542fComfyUI\\\\\\\",\\\\\\\"Are you sure you'd like to reboot the server?\\\\\\\":\\\\\\\"\\u662f\\u5426\\u8981\\u91cd\\u542fComfyUI\\uff1f\\\\\\\",\\\\\\\"NODES MAP\\\\\\\":\\\\\\\"\\u7ba1\\u7406\\u8282\\u70b9\\u4e0e\\u7ec4\\\\\\\",NodesMap:\\\\\\\"\\u8282\\u70b9\\u4e0e\\u7ec4\\\\\\\",\\\\\\\"Nodes map sorting mode\\\\\\\":\\\\\\\"\\u7ba1\\u7406\\u8282\\u70b9\\u7ec4\\u6392\\u5e8f\\u6a21\\u5f0f\\\\\\\",\\\\\\\"Search by Node ID/Name...\\\\\\\":\\\\\\\"\\u901a\\u8fc7\\u8282\\u70b9ID/\\u540d\\u79f0\\u641c\\u7d22...\\\\\\\",\\\\\\\"No Nodes\\\\\\\":\\\\\\\"\\u672a\\u627e\\u5230\\u8282\\u70b9\\\\\\\",\\\\\\\"No nodes found in the map\\\\\\\":\\\\\\\"\\u5728\\u5de5\\u4f5c\\u6d41\\u7a0b\\u4e2d\\u6ca1\\u6709\\u627e\\u5230\\u8282\\u70b9\\\\\\\",\\\\\\\"No nodes found in the search\\\\\\\":\\\\\\\"\\u672a\\u627e\\u5230\\u4e0e\\u641c\\u7d22\\u5339\\u914d\\u7684\\u8282\\u70b9\\\\\\\",\\\\\\\"Jump to this node\\\\\\\":\\\\\\\"\\u8df3\\u8f6c\\u5230\\u8be5\\u8282\\u70b9\\\\\\\",\\\\\\\"Rename node\\\\\\\":\\\\\\\"\\u91cd\\u547d\\u540d\\u8282\\u70b9\\\\\\\",\\\\\\\"Delete node\\\\\\\":\\\\\\\"\\u5220\\u9664\\u8282\\u70b9\\\\\\\",\\\\\\\"Rename group\\\\\\\":\\\\\\\"\\u91cd\\u547d\\u540d\\u7ec4\\\\\\\",\\\\\\\"Delete group\\\\\\\":\\\\\\\"\\u5220\\u9664\\u7ec4\\\\\\\",\\\\\\\"Expand All\\\\\\\":\\\\\\\"\\u5c55\\u5f00\\u6240\\u6709\\u7ec4\\\\\\\",\\\\\\\"Collapse All\\\\\\\":\\\\\\\"\\u6298\\u53e0\\u6240\\u6709\\u7ec4\\\\\\\",Close:\\\\\\\"\\u5173\\u95ed\\\\\\\",\\\\\\\"Default automatic sorting, if set to manual, groups can be dragged and dropped and the sorting results saved.\\\\\\\":\\\\\\\"\\u9ed8\\u8ba4\\u81ea\\u52a8\\u6392\\u5e8f\\uff0c\\u5982\\u679c\\u8bbe\\u7f6e\\u4e3a\\u624b\\u52a8\\uff0c\\u7ec4\\u53ef\\u4ee5\\u62d6\\u653e\\u5e76\\u4fdd\\u5b58\\u6392\\u5e8f\\u7ed3\\u679c\\u3002\\\\\\\",\\\\\\\"For drag and drop sorting, please find Nodes map sorting mode in Settings-\\\\u003eEasyUse and change it to manual\\\\\\\":\\\\\\\"\\u5982\\u9700\\u62d6\\u62fd\\u6392\\u5e8f\\u8bf7\\u5728\\u8bbe\\u7f6e-\\\\u003eEasyUse\\u8282\\u70b9\\u4e2d\\u627e\\u5230\\u7ba1\\u7406\\u8282\\u70b9\\u7ec4\\u6392\\u5e8f\\u6a21\\u5f0f\\u5e76\\u4fee\\u6539\\u6210 manual\\\\\\\",Queue:\\\\\\\"\\u961f\\u5217\\\\\\\",\\\\\\\"Cleanup Of VRAM Usage\\\\\\\":\\\\\\\"\\u6e05\\u7406\\u663e\\u5b58\\u5360\\u7528\\\\\\\",\\\\\\\"Please stop all running tasks before cleaning GPU\\\\\\\":\\\\\\\"\\u8bf7\\u5728\\u6e05\\u7406GPU\\u4e4b\\u524d\\u505c\\u6b62\\u6240\\u6709\\u8fd0\\u884c\\u4e2d\\u7684\\u4efb\\u52a1\\\\\\\",Always:\\\\\\\"\\u542f\\u7528\\u4e2d\\\\\\\",Bypass:\\\\\\\"\\u5df2\\u5ffd\\u7565\\\\\\\",Never:\\\\\\\"\\u5df2\\u505c\\u7528\\\\\\\",\\\\\\\"Auto Sorting\\\\\\\":\\\\\\\"\\u81ea\\u52a8\\u6392\\u5e8f\\\\\\\",\\\\\\\"Toggle `Show/Hide` can set mode of group, LongPress can set group nodes to never\\\\\\\":\\\\\\\"\\u70b9\\u51fb`\\u542f\\u7528\\u4e2d/\\u5df2\\u5ffd\\u7565`\\u53ef\\u8bbe\\u7f6e\\u7ec4\\u6a21\\u5f0f, \\u957f\\u6309\\u53ef\\u505c\\u7528\\u8be5\\u7ec4\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Shift+Up/Down/Left/Right key and Shift+Ctrl+Alt+Left/Right to align selected nodes\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+\\u4e0a/\\u4e0b/\\u5de6/\\u53f3 \\u548c Shift+Ctrl+Alt+\\u5de6/\\u53f3 \\u952e\\u5bf9\\u9f50\\u9009\\u4e2d\\u7684\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Shift+Ctrl+Left/Right key to normalize selected nodes\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+Ctrl+\\u5de6/\\u53f3 \\u952e\\u89c4\\u8303\\u5316\\u9009\\u4e2d\\u7684\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Shift+g to add selected nodes to a group\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+g \\u952e\\u5c06\\u9009\\u4e2d\\u7684\\u8282\\u70b9\\u6dfb\\u52a0\\u4e00\\u4e2a\\u7ec4\\\\\\\",\\\\\\\"Enable Shift+r to unload models and node cache\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+r \\u952e\\u5378\\u8f7d\\u6a21\\u578b\\u548c\\u8282\\u70b9\\u7f13\\u5b58\\\\\\\",\\\\\\\"Enable Shift+m to toggle nodes map\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+m \\u952e\\u663e\\u9690\\u7ba1\\u7406\\u8282\\u70b9\\u7ec4\\\\\\\",\\\\\\\"Enable Up/Down/Left/Right key to jump nearest nodes\\\\\\\":\\\\\\\"\\u542f\\u7528 \\u4e0a/\\u4e0b/\\u5de6/\\u53f3 \\u952e\\u8df3\\u8f6c\\u5230\\u6700\\u8fd1\\u7684\\u524d\\u540e\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Alt+1~9 to paste nodes from nodes template\\\\\\\":\\\\\\\"\\u542f\\u7528 Alt+1~9 \\u4ece\\u8282\\u70b9\\u6a21\\u677f\\u7c98\\u8d34\\u5230\\u5de5\\u4f5c\\u6d41\\u4e2d\\\\\\\",\\\\\\\"Enable contextMenu auto nest subdirectories\\\\\\\":\\\\\\\"\\u542f\\u7528\\u4e0a\\u4e0b\\u6587\\u83dc\\u5355\\u81ea\\u52a8\\u5d4c\\u5957\\u5b50\\u76ee\\u5f55\\\\\\\",\\\\\\\"Enable right-click menu to add node A~Z sorting\\\\\\\":\\\\\\\"\\u542f\\u7528\\u53f3\\u952e\\u83dc\\u5355\\u4e2d\\u65b0\\u5efa\\u8282\\u70b9A~Z\\u6392\\u5e8f\\\\\\\",\\\\\\\"Enable model thumbnails display\\\\\\\":\\\\\\\"\\u542f\\u52a8\\u6a21\\u578b\\u9884\\u89c8\\u56fe\\u663e\\u793a\\\\\\\",\\\\\\\"Enable nodes runtime display\\\\\\\":\\\\\\\"\\u542f\\u52a8\\u8282\\u70b9\\u8fd0\\u884c\\u65f6\\u95f4\\u663e\\u793a\\\\\\\",\\\\\\\"Enable chain get node and set node with parent nodes\\\\\\\":\\\\\\\"\\u542f\\u7528\\u5c06\\u83b7\\u53d6\\u70b9\\u548c\\u8bbe\\u7f6e\\u70b9\\u4e0e\\u7236\\u8282\\u70b9\\u94fe\\u5728\\u4e00\\u8d77\\\\\\\",\\\\\\\"Maximum number of model thumbnails displayed\\\\\\\":\\\\\\\"\\u663e\\u793a\\u7684\\u6a21\\u578b\\u7f29\\u7565\\u56fe\\u7684\\u6700\\u5927\\u6570\\u91cf\\\\\\\",\\\\\\\"Too many thumbnails will affect the first loading time, set the maximum value to not load the thumbnail function when there are too many models's thumbnail\\\\\\\":\\\\\\\"\\u592a\\u591a\\u7684\\u7f29\\u7565\\u56fe\\u4f1a\\u5f71\\u54cd\\u9996\\u6b21\\u52a0\\u8f7d\\u65f6\\u95f4\\uff0c\\u5f53\\u6a21\\u578b\\u7f29\\u7565\\u56fe\\u592a\\u591a\\u65f6\\uff0c\\u8bbe\\u7f6e\\u6700\\u5927\\u503c\\u4ee5\\u4e0d\\u52a0\\u8f7d\\u7f29\\u7565\\u56fe\\u529f\\u80fd\\\\\\\",\\\\\\\"Too many thumbnails, have closed the display\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u7f29\\u7565\\u56fe\\u592a\\u591a\\u5566\\uff0c\\u4e3a\\u60a8\\u5173\\u95ed\\u4e86\\u663e\\u793a\\\\\\\",\\\\\\\"Shift+Up/Down/Left/Right can align selected nodes, Shift+Ctrl+Alt+Left/Right can distribute horizontal/vertical nodes\\\\\\\":\\\\\\\"Shift+\\u4e0a/\\u4e0b/\\u5de6/\\u53f3 \\u53ef\\u4ee5\\u5bf9\\u9f50\\u9009\\u4e2d\\u7684\\u8282\\u70b9, Shift+Ctrl+Alt+\\u5de6/\\u53f3 \\u53ef\\u4ee5\\u6c34\\u5e73/\\u5782\\u76f4\\u5206\\u5e03\\u8282\\u70b9\\\\\\\",\\\\\\\"Enable Shift+Ctrl+Left key to normalize width and Shift+Ctrl+Right key to normalize height\\\\\\\":\\\\\\\"\\u542f\\u7528 Shift+Ctrl+\\u5de6 \\u952e\\u89c4\\u8303\\u5316\\u5bbd\\u5ea6\\u548c Shift+Ctrl+\\u53f3 \\u952e\\u89c4\\u8303\\u5316\\u9ad8\\u5ea6\\\\\\\",\\\\\\\"After v1.2.39, Ctrl+g can be used instead of it\\\\\\\":\\\\\\\"\\u4ecev1.2.39\\u5f00\\u59cb\\uff0c\\u53ef\\u4ee5\\u4f7f\\u7528Ctrl+g\\u4ee3\\u66ff\\\\\\\",\\\\\\\"Styles Selector Display Type\\\\\\\":\\\\\\\"\\u6837\\u5f0f\\u9009\\u62e9\\u5668\\u663e\\u793a\\u7c7b\\u578b\\\\\\\",\\\\\\\"Styles Selector Display Type, if set to 'Grid', it will display as a Grid, if set to 'List', it will display as a list\\\\\\\":\\\\\\\"\\u6837\\u5f0f\\u9009\\u62e9\\u5668\\u663e\\u793a\\u7c7b\\u578b\\uff0c\\u5982\\u679c\\u8bbe\\u7f6e\\u4e3a\\u201c\\u7f51\\u683c\\u201d\\uff0c\\u5219\\u663e\\u793a\\u4e3a\\u7f51\\u683c\\uff0c\\u5982\\u679c\\u8bbe\\u7f6e\\u4e3a\\u201c\\u5217\\u8868\\u201d\\uff0c\\u5219\\u663e\\u793a\\u4e3a\\u5217\\u8868\\\\\\\",\\\\\\\"Use three shortcut buttons in the right-click menu\\\\\\\":\\\\\\\"\\u5728\\u53f3\\u952e\\u83dc\\u5355\\u4e2d\\u4f7f\\u7528\\u4e09\\u4e2a\\u5feb\\u6377\\u6309\\u94ae\\\\\\\",\\\\\\\"Enable Nodes Map\\\\\\\":\\\\\\\"\\u542f\\u7528\\u8282\\u70b9\\u7ec4\\u7ba1\\u7406\\\\\\\",\\\\\\\"Display Groups Only\\\\\\\":\\\\\\\"\\u4ec5\\u663e\\u793a\\u7ec4\\\\\\\",\\\\\\\"Display Node ID\\\\\\\":\\\\\\\"\\u663e\\u793a\\u8282\\u70b9ID\\\\\\\",\\\\\\\"You need to refresh the page to update successfully\\\\\\\":\\\\\\\"\\u60a8\\u9700\\u8981\\u5237\\u65b0\\u9875\\u9762\\u4ee5\\u6210\\u529f\\u66f4\\u65b0\\\\\\\",\\\\\\\"Get styles list Failed\\\\\\\":\\\\\\\"\\u83b7\\u53d6\\u6837\\u5f0f\\u5217\\u8868\\u5931\\u8d25\\\\\\\",\\\\\\\"Get style image Failed\\\\\\\":\\\\\\\"\\u83b7\\u53d6\\u6837\\u5f0f\\u56fe\\u7247\\u5931\\u8d25\\\\\\\",\\\\\\\"Empty All\\\\\\\":\\\\\\\"\\u6e05\\u7a7a\\u6240\\u6709\\\\\\\",\\\\\\\"Type here to search styles ...\\\\\\\":\\\\\\\"\\u5728\\u6b64\\u5904\\u8f93\\u5165\\u4ee5\\u641c\\u7d22\\u6837\\u5f0f ...\\\\\\\",\\\\\\\"Loading UserInfo...\\\\\\\":\\\\\\\"\\u6b63\\u5728\\u83b7\\u53d6\\u7528\\u6237\\u4fe1\\u606f...\\\\\\\",\\\\\\\"Please set the APIKEY first\\\\\\\":\\\\\\\"\\u8bf7\\u5148\\u8bbe\\u7f6eAPIKEY\\\\\\\",\\\\\\\"Setting APIKEY\\\\\\\":\\\\\\\"\\u8bbe\\u7f6eAPIKEY\\\\\\\",\\\\\\\"Save Account Info\\\\\\\":\\\\\\\"\\u4fdd\\u5b58\\u8d26\\u53f7\\u4fe1\\u606f\\\\\\\",Choose:\\\\\\\"\\u9009\\u62e9\\\\\\\",Delete:\\\\\\\"\\u5220\\u9664\\\\\\\",Edit:\\\\\\\"\\u7f16\\u8f91\\\\\\\",\\\\\\\"At least one account is required\\\\\\\":\\\\\\\"\\u5220\\u9664\\u5931\\u8d25: \\u81f3\\u5c11\\u9700\\u8981\\u4e00\\u4e2a\\u8d26\\u6237\\\\\\\",\\\\\\\"APIKEY is not Empty\\\\\\\":\\\\\\\"APIKEY \\u4e0d\\u80fd\\u4e3a\\u7a7a\\\\\\\",\\\\\\\"Add Account\\\\\\\":\\\\\\\"\\u6dfb\\u52a0\\u8d26\\u53f7\\\\\\\",\\\\\\\"Getting Your APIKEY\\\\\\\":\\\\\\\"\\u83b7\\u53d6\\u60a8\\u7684APIKEY\\\\\\\",Canceling:\\\\\\\"\\u6b63\\u5728\\u53d6\\u6d88\\\\\\\",\\\\\\\"Cancel current run\\\\\\\":\\\\\\\"\\u53d6\\u6d88\\u5f53\\u524d\\u8fd0\\u884c\\\\\\\",\\\\\\\"Waiting for selection...\\\\\\\":\\\\\\\"\\u7b49\\u5f85\\u9009\\u62e9\\u4e2d...\\\\\\\",\\\\\\\"Using last selection\\\\\\\":\\\\\\\"\\u4f7f\\u7528\\u4e0a\\u6b21\\u9009\\u62e9\\\\\\\",\\\\\\\"Pass Through\\\\\\\":\\\\\\\"\\u8df3\\u8fc7\\u9009\\u62e9\\\\\\\",\\\\\\\"Unknown Mode\\\\\\\":\\\\\\\"\\u672a\\u77e5\\u6a21\\u5f0f\\\\\\\",\\\\\\\"Choose Selected Images\\\\\\\":\\\\\\\"\\u9009\\u62e9\\u9009\\u4e2d\\u7684\\u56fe\\u7247\\\\\\\",\\\\\\\"Choose images to continue\\\\\\\":\\\\\\\"\\u9009\\u62e9\\u56fe\\u7247\\u4ee5\\u7ee7\\u7eed\\\\\\\",\\\\\\\"Please run first\\\\\\\":\\\\\\\"\\u8bf7\\u5148\\u8fd0\\u884c\\u961f\\u5217\\\\\\\",\\\\\\\"Progress selected\\\\\\\":\\\\\\\"\\u5904\\u7406\\u9009\\u4e2d\\u7684\\u56fe\\u7247\\\\\\\",\\\\\\\"Progress selected image\\\\\\\":\\\\\\\"\\u5904\\u7406\\u9009\\u4e2d\\u7684\\u56fe\\u7247\\\\\\\",\\\\\\\"Please select images to continue\\\\\\\":\\\\\\\"\\u8bf7\\u9009\\u62e9\\u56fe\\u7247\\u4ee5\\u7ee7\\u7eed\\\\\\\",Background:\\\\\\\"\\u80cc\\u666f\\\\\\\",Hat:\\\\\\\"\\u5e3d\\u5b50\\\\\\\",Hair:\\\\\\\"\\u5934\\u53d1\\\\\\\",Body:\\\\\\\"\\u8eab\\u4f53\\\\\\\",Face:\\\\\\\"\\u8138\\u90e8\\\\\\\",Clothes:\\\\\\\"\\u8863\\u670d\\\\\\\",Others:\\\\\\\"\\u5176\\u4ed6\\\\\\\",Glove:\\\\\\\"\\u624b\\u5957\\\\\\\",Glasses:\\\\\\\"\\u773c\\u955c\\\\\\\",Sunglasses:\\\\\\\"\\u592a\\u9633\\u955c\\\\\\\",\\\\\\\"Upper-clothes\\\\\\\":\\\\\\\"\\u4e0a\\u8863\\\\\\\",\\\\\\\"Top-clothes\\\\\\\":\\\\\\\"\\u4e0a\\u8863\\\\\\\",\\\\\\\"Bottom-clothes\\\\\\\":\\\\\\\"\\u4e0b\\u8eab\\u88c5\\\\\\\",\\\\\\\"Torso-skin\\\\\\\":\\\\\\\"\\u76ae\\u80a4\\\\\\\",Dress:\\\\\\\"\\u8fde\\u8863\\u88d9\\\\\\\",Belt:\\\\\\\"\\u8170\\u5e26\\\\\\\",Coat:\\\\\\\"\\u5916\\u5957\\\\\\\",Socks:\\\\\\\"\\u889c\\u5b50\\\\\\\",Pants:\\\\\\\"\\u88e4\\u5b50\\\\\\\",Jumpsuits:\\\\\\\"\\u8fde\\u4f53\\u8863\\\\\\\",Bag:\\\\\\\"\\u5305\\\\\\\",Scarf:\\\\\\\"\\u56f4\\u5dfe\\\\\\\",Skirt:\\\\\\\"\\u88d9\\u5b50\\\\\\\",\\\\\\\"Left-arm\\\\\\\":\\\\\\\"\\u5de6\\u81c2\\\\\\\",\\\\\\\"Right-arm\\\\\\\":\\\\\\\"\\u53f3\\u81c2\\\\\\\",\\\\\\\"Left-leg\\\\\\\":\\\\\\\"\\u5de6\\u817f\\\\\\\",\\\\\\\"Right-leg\\\\\\\":\\\\\\\"\\u53f3\\u817f\\\\\\\",\\\\\\\"Left-foot\\\\\\\":\\\\\\\"\\u5de6\\u811a\\\\\\\",\\\\\\\"Right-foot\\\\\\\":\\\\\\\"\\u53f3\\u811a\\\\\\\",\\\\\\\"Left-shoe\\\\\\\":\\\\\\\"\\u5de6\\u978b\\\\\\\",\\\\\\\"Right-shoe\\\\\\\":\\\\\\\"\\u53f3\\u978b\\\\\\\",\\\\\\\"select mask components\\\\\\\":\\\\\\\"\\u9009\\u62e9\\u5206\\u5272\\u90e8\\u4f4d\\\\\\\",\\\\\\\"select items\\\\\\\":\\\\\\\"\\u9009\\u62e9\\u9879\\\\\\\",Unlabelled:\\\\\\\"\\u672a\\u6807\\u8bb0\\\\\\\",\\\\\\\"shirt, blouse\\\\\\\":\\\\\\\"\\u886c\\u886b\\uff0c\\u5973\\u5f0f\\u886c\\u886b\\\\\\\",\\\\\\\"top, t-shirt, sweatshirt\\\\\\\":\\\\\\\"\\u4e0a\\u8863\\uff0cT\\u6064\\uff0c\\u8fd0\\u52a8\\u886b\\\\\\\",sweater:\\\\\\\"\\u6bdb\\u8863\\\\\\\",cardigan:\\\\\\\"\\u5f00\\u895f\\u6bdb\\u8863\\\\\\\",jacket:\\\\\\\"\\u5939\\u514b\\\\\\\",vest:\\\\\\\"\\u80cc\\u5fc3\\\\\\\",pants:\\\\\\\"\\u957f\\u88e4\\\\\\\",shorts:\\\\\\\"\\u77ed\\u88e4\\\\\\\",skirt:\\\\\\\"\\u88d9\\u5b50\\\\\\\",coat:\\\\\\\"\\u5916\\u5957\\\\\\\",dress:\\\\\\\"\\u8fde\\u8863\\u88d9\\\\\\\",jumpsuit:\\\\\\\"\\u8fde\\u4f53\\u8863\\\\\\\",cape:\\\\\\\"\\u6597\\u7bf7\\\\\\\",glasses:\\\\\\\"\\u773c\\u955c\\\\\\\",hat:\\\\\\\"\\u5e3d\\u5b50\\\\\\\",\\\\\\\"headband, head covering, hair accessory\\\\\\\":\\\\\\\"\\u5934\\u5e26\\uff0c\\u5934\\u9970\\uff0c\\u53d1\\u9970\\\\\\\",tie:\\\\\\\"\\u9886\\u5e26\\\\\\\",glove:\\\\\\\"\\u624b\\u5957\\\\\\\",watch:\\\\\\\"\\u624b\\u8868\\\\\\\",belt:\\\\\\\"\\u8170\\u5e26\\\\\\\",\\\\\\\"leg warmer\\\\\\\":\\\\\\\"\\u62a4\\u817f\\\\\\\",\\\\\\\"tights, stockings\\\\\\\":\\\\\\\"\\u7d27\\u8eab\\u889c\\uff0c\\u4e1d\\u889c\\\\\\\",sock:\\\\\\\"\\u889c\\u5b50\\\\\\\",shoe:\\\\\\\"\\u978b\\u5b50\\\\\\\",\\\\\\\"bag, wallet\\\\\\\":\\\\\\\"\\u5305\\uff0c\\u94b1\\u5305\\\\\\\",scarf:\\\\\\\"\\u56f4\\u5dfe\\\\\\\",umbrella:\\\\\\\"\\u96e8\\u4f1e\\\\\\\",hood:\\\\\\\"\\u5e3d\\u515c\\\\\\\",collar:\\\\\\\"\\u9886\\u5b50\\\\\\\",lapel:\\\\\\\"\\u7ffb\\u9886\\\\\\\",epaulette:\\\\\\\"\\u80a9\\u7ae0\\\\\\\",sleeve:\\\\\\\"\\u8896\\u5b50\\\\\\\",pocket:\\\\\\\"\\u53e3\\u888b\\\\\\\",neckline:\\\\\\\"\\u9886\\u53e3\\\\\\\",buckle:\\\\\\\"\\u6263\\u73af\\\\\\\",zipper:\\\\\\\"\\u62c9\\u94fe\\\\\\\",applique:\\\\\\\"\\u8d34\\u82b1\\\\\\\",bead:\\\\\\\"\\u73e0\\u5b50\\\\\\\",bow:\\\\\\\"\\u8774\\u8776\\u7ed3\\\\\\\",flower:\\\\\\\"\\u82b1\\u6735\\u88c5\\u9970\\\\\\\",fringe:\\\\\\\"\\u6d41\\u82cf\\\\\\\",ribbon:\\\\\\\"\\u4e1d\\u5e26\\\\\\\",rivet:\\\\\\\"\\u94c6\\u9489\\\\\\\",ruffle:\\\\\\\"\\u8936\\u8fb9\\\\\\\",sequin:\\\\\\\"\\u4eae\\u7247\\\\\\\",tassel:\\\\\\\"\\u6d41\\u82cf\\u7a57\\\\\\\",background:\\\\\\\"\\u80cc\\u666f\\\\\\\",skin:\\\\\\\"\\u76ae\\u80a4\\\\\\\",nose:\\\\\\\"\\u9f3b\\u5b50\\\\\\\",eyeglasses:\\\\\\\"\\u773c\\u955c\\\\\\\",left_eye:\\\\\\\"\\u5de6\\u773c\\\\\\\",right_eye:\\\\\\\"\\u53f3\\u773c\\\\\\\",left_eyebrow:\\\\\\\"\\u5de6\\u7709\\u6bdb\\\\\\\",right_eyebrow:\\\\\\\"\\u53f3\\u7709\\u6bdb\\\\\\\",left_ear:\\\\\\\"\\u5de6\\u8033\\\\\\\",right_ear:\\\\\\\"\\u53f3\\u8033\\\\\\\",mouth:\\\\\\\"\\u5634\\u5df4\\\\\\\",upper_lip:\\\\\\\"\\u4e0a\\u5507\\\\\\\",lower_lip:\\\\\\\"\\u4e0b\\u5507\\\\\\\",hair:\\\\\\\"\\u5934\\u53d1\\\\\\\",earring:\\\\\\\"\\u8033\\u73af\\\\\\\",necklace:\\\\\\\"\\u9879\\u94fe\\\\\\\",neck:\\\\\\\"\\u8116\\u5b50\\\\\\\",clothing:\\\\\\\"\\u670d\\u88c5\\\\\\\",s:\\\\\\\"\\u79d2\\\\\\\",\\\\\\\"No Node Templates Found\\\\\\\":\\\\\\\"\\u672a\\u627e\\u5230\\u8282\\u70b9\\u6a21\\u677f\\u9884\\u8bbe\\\\\\\",\\\\\\\"Get Node Templates File Failed\\\\\\\":\\\\\\\"\\u83b7\\u53d6\\u8282\\u70b9\\u6a21\\u677f\\u6587\\u4ef6\\u5931\\u8d25\\\\\\\",\\\\\\\"Node template with {key} not set\\\\\\\":\\\\\\\"\\u672a\\u8bbe\\u7f6e\\u5feb\\u6377\\u952e\\u4e3a{key}\\u7684\\u8282\\u70b9\\u9884\\u8bbe\\\\\\\",\\\\\\\"ComfyUI Basic\\\\\\\":\\\\\\\"ComfyUI \\u57fa\\u7840\\u8282\\u70b9\\\\\\\",\\\\\\\"Recommend Nodes\\\\\\\":\\\\\\\"\\u63a8\\u8350\\u8282\\u70b9\\\\\\\",\\\\\\\"Others A~Z\\\\\\\":\\\\\\\"\\u5176\\u4ed6\\u8282\\u70b9 A~Z\\\\\\\",\\\\\\\"The maximum number of inputs is 20\\\\\\\":\\\\\\\"\\u8f93\\u5165\\u6570\\u91cf\\u6700\\u592720\\u4e2a\\\\\\\",\\\\\\\"The maximum number of outputs is 20\\\\\\\":\\\\\\\"\\u8f93\\u51fa\\u6570\\u91cf\\u6700\\u592720\\u4e2a\\\\\\\",\\\\\\\"Stop recording\\\\\\\":\\\\\\\"\\u505c\\u6b62\\u5f55\\u97f3\\\\\\\",\\\\\\\"Voice input\\\\\\\":\\\\\\\"\\u8bed\\u97f3\\u8f93\\u5165\\\\\\\",Continue:\\\\\\\"\\u7ee7\\u7eed\\\\\\\",Stop:\\\\\\\"\\u505c\\u6b62\\\\\\\",now:\\\\\\\"\\u5f53\\u524d\\\\\\\",prev:\\\\\\\"\\u4e0a\\u4e00\\u6b65\\\\\\\",\\\\\\\"Add New Tab\\\\\\\":\\\\\\\"\\u6dfb\\u52a0\\u65b0\\u6807\\u7b7e\\\\\\\",\\\\\\\"Add Angle Prompt\\\\\\\":\\\\\\\"\\u6dfb\\u52a0\\u89d2\\u5ea6\\u63d0\\u793a\\u8bcd\\\\\\\",\\\\\\\"Invert Rotate Mode\\\\\\\":\\\\\\\"\\u53cd\\u8f6c\\u65cb\\u8f6c\\\\\\\",Hollow:\\\\\\\"\\u9542\\u7a7a\\u5c55\\u793a\\\\\\\",Reset:\\\\\\\"\\u91cd\\u7f6e\\\\\\\",\\\\\\\"Angle Prompt\\\\\\\":\\\\\\\"\\u89d2\\u5ea6\\u8bcd\\\\\\\",Image:\\\\\\\"\\u56fe\\u50cf\\\\\\\",F:\\\\\\\"\\u524d\\\\\\\",B:\\\\\\\"\\u540e\\\\\\\",U:\\\\\\\"\\u9876\\\\\\\",D:\\\\\\\"\\u5e95\\\\\\\",L:\\\\\\\"\\u5de6\\\\\\\",R:\\\\\\\"\\u53f3\\\\\\\",Rotate:\\\\\\\"\\u65cb\\u8f6c\\\\\\\",Vertical:\\\\\\\"\\u5782\\u76f4\\\\\\\",Zoom:\\\\\\\"\\u7f29\\u653e\\\\\\\"},Ne=(e,t=!1)=\\\\u003e{switch(xe(\\\\\\\"Comfy.Locale\\\\\\\")){case\\\\\\\"zh-CN\\\\\\\":case\\\\\\\"zh\\\\\\\":return Ee[e]||e;default:return e}};const Ce=\\\\\\\"comfyui-easyuse-\\\\\\\",Ie=\\\\\\\"dark-theme\\\\\\\",Te={PIPE_LINE:\\\\\\\"#7737AA\\\\\\\",PIPE_LINE_SDXL:\\\\\\\"#7737AA\\\\\\\",INT:\\\\\\\"#29699C\\\\\\\",X_Y:\\\\\\\"#38291f\\\\\\\",XYPLOT:\\\\\\\"#74DA5D\\\\\\\",LORA_STACK:\\\\\\\"#94dccd\\\\\\\",CONTROL_NET_STACK:\\\\\\\"#94dccd\\\\\\\",FLOW_CONTROL:\\\\\\\"#373780\\\\\\\"},Oe=0x4000000000000,Me=[\\\\\\\"loaders\\\\\\\",\\\\\\\"latent\\\\\\\",\\\\\\\"image\\\\\\\",\\\\\\\"mask\\\\\\\",\\\\\\\"sampling\\\\\\\",\\\\\\\"_for_testing\\\\\\\",\\\\\\\"advanced\\\\\\\",\\\\\\\"utils\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"api node\\\\\\\",\\\\\\\"\\u52a0\\u8f7d\\u5668\\\\\\\",\\\\\\\"Latent\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u906e\\u7f69\\\\\\\",\\\\\\\"\\u91c7\\u6837\\\\\\\",\\\\\\\"_\\u7528\\u4e8e\\u6d4b\\u8bd5\\\\\\\",\\\\\\\"\\u9ad8\\u7ea7\\\\\\\",\\\\\\\"\\u5de5\\u5177\\\\\\\",\\\\\\\"API\\\\\\\",\\\\\\\"api \\u8282\\u70b9\\\\\\\",\\\\\\\"chargeurs\\\\\\\",\\\\\\\"latent\\\\\\\",\\\\\\\"image\\\\\\\",\\\\\\\"masque\\\\\\\",\\\\\\\"\\u00e9chantillonnage\\\\\\\",\\\\\\\"_pour_test\\\\\\\",\\\\\\\"avanc\\u00e9\\\\\\\",\\\\\\\"outils\\\\\\\",\\\\\\\"n\\u0153ud api\\\\\\\",\\\\\\\"\\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u0447\\u0438\\u043a\\u0438\\\\\\\",\\\\\\\"\\u043b\\u0430\\u0442\\u0435\\u043d\\u0442\\u043d\\u044b\\u0439\\\\\\\",\\\\\\\"\\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435\\\\\\\",\\\\\\\"\\u043c\\u0430\\u0441\\u043a\\u0430\\\\\\\",\\\\\\\"\\u0432\\u044b\\u0431\\u043e\\u0440\\u043a\\u0430\\\\\\\",\\\\\\\"_\\u0434\\u043b\\u044f_\\u0442\\u0435\\u0441\\u0442\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d\\u0438\\u044f\\\\\\\",\\\\\\\"\\u0440\\u0430\\u0441\\u0448\\u0438\\u0440\\u0435\\u043d\\u043d\\u044b\\u0439\\\\\\\",\\\\\\\"\\u0438\\u043d\\u0441\\u0442\\u0440\\u0443\\u043c\\u0435\\u043d\\u0442\\u044b\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"api \\u0443\\u0437\\u0435\\u043b\\\\\\\",\\\\\\\"\\ub85c\\ub354\\\\\\\",\\\\\\\"\\uc7a0\\uc7ac\\\\\\\",\\\\\\\"\\uc774\\ubbf8\\uc9c0\\\\\\\",\\\\\\\"\\ub9c8\\uc2a4\\ud06c\\\\\\\",\\\\\\\"\\uc0d8\\ud50c\\ub9c1\\\\\\\",\\\\\\\"_\\ud14c\\uc2a4\\ud2b8\\uc6a9\\\\\\\",\\\\\\\"\\uace0\\uae09\\\\\\\",\\\\\\\"\\ub3c4\\uad6c\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"api \\ub178\\ub4dc\\\\\\\",\\\\\\\"\\u30ed\\u30fc\\u30c0\\u30fc\\\\\\\",\\\\\\\"\\u6f5c\\u5728\\\\\\\",\\\\\\\"\\u753b\\u50cf\\\\\\\",\\\\\\\"\\u30de\\u30b9\\u30af\\\\\\\",\\\\\\\"\\u30b5\\u30f3\\u30d7\\u30ea\\u30f3\\u30b0\\\\\\\",\\\\\\\"_\\u30c6\\u30b9\\u30c8\\u7528\\\\\\\",\\\\\\\"\\u9ad8\\u5ea6\\u306a\\\\\\\",\\\\\\\"\\u30c4\\u30fc\\u30eb\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"api\\u30ce\\u30fc\\u30c9\\\\\\\",\\\\\\\"cargadores\\\\\\\",\\\\\\\"latente\\\\\\\",\\\\\\\"imagen\\\\\\\",\\\\\\\"m\\u00e1scara\\\\\\\",\\\\\\\"muestreo\\\\\\\",\\\\\\\"_para_pruebas\\\\\\\",\\\\\\\"avanzado\\\\\\\",\\\\\\\"herramientas\\\\\\\",\\\\\\\"api\\\\\\\",\\\\\\\"nodo api\\\\\\\"],De={selfie_multiclass_256x256:[\\\\\\\"Background\\\\\\\",\\\\\\\"Hair\\\\\\\",\\\\\\\"Body\\\\\\\",\\\\\\\"Face\\\\\\\",\\\\\\\"Clothes\\\\\\\",\\\\\\\"Others\\\\\\\"],human_parsing_lip:[\\\\\\\"Background\\\\\\\",\\\\\\\"Hat\\\\\\\",\\\\\\\"Hair\\\\\\\",\\\\\\\"Glove\\\\\\\",\\\\\\\"Sunglasses\\\\\\\",\\\\\\\"Upper-clothes\\\\\\\",\\\\\\\"Dress\\\\\\\",\\\\\\\"Coat\\\\\\\",\\\\\\\"Socks\\\\\\\",\\\\\\\"Pants\\\\\\\",\\\\\\\"Jumpsuits\\\\\\\",\\\\\\\"Scarf\\\\\\\",\\\\\\\"Skirt\\\\\\\",\\\\\\\"Face\\\\\\\",\\\\\\\"Left-arm\\\\\\\",\\\\\\\"Right-arm\\\\\\\",\\\\\\\"Left-leg\\\\\\\",\\\\\\\"Right-leg\\\\\\\",\\\\\\\"Left-shoe\\\\\\\",\\\\\\\"Right-shoe\\\\\\\"],\\\\\\\"human_parts (deeplabv3p)\\\\\\\":[\\\\\\\"Background\\\\\\\",\\\\\\\"Face\\\\\\\",\\\\\\\"Hair\\\\\\\",\\\\\\\"Glasses\\\\\\\",\\\\\\\"Top-clothes\\\\\\\",\\\\\\\"Bottom-clothes\\\\\\\",\\\\\\\"Torso-skin\\\\\\\",\\\\\\\"Left-arm\\\\\\\",\\\\\\\"Right-arm\\\\\\\",\\\\\\\"Left-leg\\\\\\\",\\\\\\\"Right-leg\\\\\\\",\\\\\\\"Left-foot\\\\\\\",\\\\\\\"Right-foot\\\\\\\"],segformer_b3_clothes:{Background:0,Hat:1,Hair:2,Sunglasses:3,\\\\\\\"Upper-clothes\\\\\\\":4,Skirt:5,Pants:6,Dress:7,Belt:8,\\\\\\\"Left-shoe\\\\\\\":9,\\\\\\\"Right-shoe\\\\\\\":10,Face:11,\\\\\\\"Left-leg\\\\\\\":12,\\\\\\\"Right-leg\\\\\\\":13,\\\\\\\"Left-arm\\\\\\\":14,\\\\\\\"Right-arm\\\\\\\":15,Bag:16,Scarf:17},segformer_b3_fashion:{Unlabelled:0,\\\\\\\"shirt, blouse\\\\\\\":1,\\\\\\\"top, t-shirt, sweatshirt\\\\\\\":2,sweater:3,cardigan:4,jacket:5,vest:6,pants:7,shorts:8,skirt:9,coat:10,dress:11,jumpsuit:12,cape:13,glasses:14,hat:15,\\\\\\\"headband, head covering, hair accessory\\\\\\\":16,tie:17,glove:18,watch:19,belt:20,\\\\\\\"leg warmer\\\\\\\":21,\\\\\\\"tights, stockings\\\\\\\":22,sock:23,shoe:24,\\\\\\\"bag, wallet\\\\\\\":25,scarf:26,umbrella:27,hood:28,collar:29,lapel:30,epaulette:31,sleeve:32,pocket:33,neckline:34,buckle:35,zipper:36,applique:37,bead:38,bow:39,flower:40,fringe:41,ribbon:42,rivet:43,ruffle:44,sequin:45,tassel:46},face_parsing:[\\\\\\\"background\\\\\\\",\\\\\\\"skin\\\\\\\",\\\\\\\"nose\\\\\\\",\\\\\\\"eyeglasses\\\\\\\",\\\\\\\"left_eye\\\\\\\",\\\\\\\"right_eye\\\\\\\",\\\\\\\"left_eyebrow\\\\\\\",\\\\\\\"right_eyebrow\\\\\\\",\\\\\\\"left_ear\\\\\\\",\\\\\\\"right_ear\\\\\\\",\\\\\\\"mouth\\\\\\\",\\\\\\\"upper_lip\\\\\\\",\\\\\\\"lower_lip\\\\\\\",\\\\\\\"hair\\\\\\\",\\\\\\\"hat\\\\\\\",\\\\\\\"earring\\\\\\\",\\\\\\\"necklace\\\\\\\",\\\\\\\"neck\\\\\\\",\\\\\\\"clothing\\\\\\\"]},Re={ALWAYS:0,NEVER:2,BYPASS:4},Pe=\\\\\\\"easyuse_nodes_map\\\\\\\",Ge=\\\\\\\"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMyaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA5LjEtYzAwMSA3OS4xNDYyODk5Nzc3LCAyMDIzLzA2LzI1LTIzOjU3OjE0ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjUuMyAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo2RkFERDc2MUNDRkIxMUVGQjFENkE0NzFCNTUzRkQ0MCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2RkFERDc2MkNDRkIxMUVGQjFENkE0NzFCNTUzRkQ0MCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjUyMkMxRkIyQ0M0QzExRUZCMUQ2QTQ3MUI1NTNGRDQwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjZGQURENzYwQ0NGQjExRUZCMUQ2QTQ3MUI1NTNGRDQwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAgICAgICAgICAwMDAwMDAwMDAwEBAQEBAQECAQECAgIBAgIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD/8AAEQgBgAGAAwERAAIRAQMRAf/EAMoAAQADAQEBAQEBAQAAAAAAAAAICQoHBgUEAwECAQEAAwEBAQEAAAAAAAAAAAAABQYHBAMCARAAAAYCAQIDBAQJBwoGAwAAAAECAwQFBgcIERITFAkhFRZXIpYXGTEy1bbWd5cYOEEjM9Q2djdRsbMktHWVtbd4QlIlJ9dYNJQ5EQACAQICBQYJCQYFAwUBAAAAAQIRAwQFITFREgZBYXGBkROhsdEiMpJTFBbBQlJy0nNUFTXworIjMzThYoKDJMLidPFDk7MmNv/aAAwDAQACEQMRAD8AxHgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+lZU1vSrht3FVZVLljWwbmvRZQZUFc6otGEya21hplNNHJrbGMonGH0dzTyDJSFGXtH1KE4UU002k1VUqnqa5nyM+YyjKu606Omjata6T5o+T6LYfT19PfAOY+B59lmXZ7mGJTMQy6Hj0WJjkOlfiyosmmYsjkyHLOPId8cnXTT0T2pJKSP2mfst3DnDmHzrD3L165OEoTUfNS2V5Sv5xnF7LbsLduEZKUa6a7acg9Qr098A4cYHgOWYjnuYZbMy/LpmPSomRw6ViLFixqZ+yKTHcrI8d3xzdaJPRXck0qM/YZe1xHw5h8lw9u9ZuTnKc3HzktleQZPnF7Mrs7dyEYqMa6K7acpU8KiWA/fAqrS1OYVXWz7I6+BKtZ5QIciYcGrgoJybZTCjtuHGgQ0GSnXl9rbZH1UZD6jCc67iboquirRLW+jnPxyjGm80qunXsPwD5P0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC1T0sOKGpeR20re72pk1HZRNblDuYWmnnTTa5wvxEdlzbsvEhEzCKaUptEqOwbipEhxtuR4bCuyTbOE8oweZ4uU8XOLVqjVvllzvbFcqWt0TotcBn+YYjBWFDDxac9G/yR5l/mfJ4NOq/Dmtwc19y616zWeFXYls3Eq9xrXGcMQ0oRXIQk1oxW+ZiN+LMw6a57DbQlTkBxXjxyM/FZf0HPMhw+cYbd0QxUF5kqav8AK9sX4Na5U6jlea3suvb2mViT86Pyrn8ep82P3amq880rnd/rfZWPTMZy3HJao0+vlp6tvNH1VFsq2WjrHsqixY6OxpTKlsvtKJSVGQxvF4TEYHESw2Ki43ovSvlW1Pka0M0fD4izirSv2JKVuX7UexrlRog9DH/Bvdv6zaj81Yo0fgP+yv8A3q/hRTeK/wC5tfUfjHrnf4N6S/Wbb/mrKDjz+ysfev8AhY4U/ubv1F4zO/qvVeebqzug1vrXHpmTZbkctMaBXxE9G2Wi6KlWVlLX0j1tRXMdXZMp5SGWGkmpSiIZxhMJiMdiI4bCxcr0noXyvYlyt6EXLEYizhbTv35KNuP7UW1vkRr/AOF3BfXXEzXEulejVeZ7HzOsKLs3MpkBt+PbR32/5/EaWNNaUqNhUVSjSbLiSXYLLxpKf6JljZMkyHDZRhnBpTxM158mtf8AlVfm+PW+RLOMzzW9mF9SVY2IvzY7Od/5vFqXPQD6oXErWPGbalVY6vymkj02xW5l2rUvm1O5FgR+MolS4jCScMsItJCXEQDfWh1p1pxlHiob7kZ5xVk+FyvFqWFnHcuVfd8sP+18ledaaFvyHMb+Ow7jfi96Gjf5Jf8AcuXtKvBVSeAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPY6+2BmOq8yx/YGAX87GMvxee3ZUtzXOEh+NIQSm3G3G1pWxLhS47i2ZEd1K2JDDi23EqQpST9sPiL2EvxxGHk43oOqa/bVyNamtDPK9ZtYi07N5KVuSo0/2/9DTFr71i9OzuONnsDP4XkN34yzHppWqapTrSc1yKQysq+6xee+mSiDiM1bSnZy3zcfqe1bRpkqOKqVqGH4zwUsseIxCpj46O7XznyOL5Ivlrpjq06K0e9w3iVjVZsuuFlp3381bHz7NvNppnS33vnY3JDZVztHZ1sVlfWZJiwocdKmajHKKO8+7XY5QQ1LcOFT1pyVmhJqW4444t51bjzjjis2zDMMTmeKli8U63HqXJFckUuRL/ABelsumEwlnBWFYsKkF2t7Xzv/DUNZ8iN5aarLKm1VtTNMAqreeizs4GMXUmrjTrBuOmKiXIbYUROPpjISjr/wCVJf5CDC5lj8FBwwl2duEnVqLpVn5fwWExMlLEW4zklRVVRszkRvLctZW021dqZpn9VUT12dZAye6k2kaDYOR1RVy47b6jJt9UZakdf/Ko/wDKYYrMsfjYKGLuzuQi6pSdaMWMFhMNJyw9uMJNUdFQaE3zsbjfsqm2jrG2KtvqwlRZsOQlT1RkdFIeYdsccv4aVtnNp7I4yDWklIcbcbQ80tt5ttxLL8wxOWYqOLwrpcWtcklyxa5U/wDFaUj9xeEs42w7F9Vg+1Paudf4ajRbsH1i9OweONZsDAIXn935MzIpouqbVTrqcKyKOygrC6yiewmMidiMJbqXYK2Dbftu5DRJjKKUqLpOI4zwUcsWIw6rj5aO7fzXyuT5Yrkpplq0aaUuzw3iXjXZvOmFjp3185bFz7dnPormd2DsDMdqZlkGwM/v52T5flE9yyurmxcJb8mQsktttttoShiJCiR20Mx47SUMR2G0NtpShKUll+IxF7F35YjEScr03Vt/tq5EtSWhF4s2bWHtKzZSjbiqJL9v/U8cPE9QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACWfG3hNyE5UrlStW4kynF6+ScKyzrKJxUOHw5pIStUJuwWzJm201pC0m6zAjS3WErSbqUJUkzl8syPMc2q8JD+UnRzk6RT2V1t8yTpykfjc0weX6MRL+Y9UVpf8Ah1tE5vuQeTvs/wDcXSH4C6/+t5x+H+Uv7B/yGJ74FzX2ljtl9givinAfQu9kftD7kHk78xdH/wDGs4/QMPgXNfaWO2X2B8U4D6F3sj9ofcg8nfmLo/8A41nH6Bh8C5r7Sx2y+wPinAfQu9kftD7kHk78xdH/APGs4/QMPgXNfaWO2X2B8U4D6F3sj9ofcg8nfmLo/wD41nH6Bh8C5r7Sx2y+wPinAfQu9kftD7kHk77f/cXSH4D6f+t5x+H+Qv7B/wAph8C5r7Sx2y+wPinAfQu9kftEHOSvCPkFxS8jN2ljEN3F7SV7vrc4xWx9+4nKsTQ66mudmHHhWFXPdZYWtpqbFjKfQlRtd/YvtgszyLMcppLFwXdN0Uousa7ORp9KVeQlMDmmDzCqsSfeLXFqjpt2PqbIkiHJEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOxaB0plfIfbuFagw0kN3GX2hRnbF9px2FR1EVl2dd39glr6Zw6eqjOvqSRkp1SSbT9NaSPty/A3syxkMHY9Ob18iWtt8yWnwHNjMVbweGlibvoxXa+RdbNxWrdaYjp3XuJaywStRVYrhtNFpqqMXap5xEdPWRPnPJSjzVpZy1rkSnjLuekOrWftUN2wmFs4LDQwuHVLMI0XlfO9bfKzLMRfuYm9K/ddbknV/tsXIRcu/Ui4S47dW+P2u+6Buzo7KZU2KIeP5vaw0ToD640pEW0qcYm1diwh5tRJejvOsudOqFqT0MRVzibI7c3bniI70W06KTVVzqLT6U6HdDJM0nFTjZe61VaUvA3VdZ8z7zrgt8/aj6obG/Q4fHxTkP4iPqz+yfX5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8o+864LfP2o+qGxv0OD4pyH8RH1Z/ZH5FmvsX2x8p9Ok9SPhNkV1UY/U74o37W9s4NPWMv43ndew7PsZLcSG09PscWi18JpyQ6lJuvutst9eq1JSRmPuHE2R3JxtwxEd+TSXmyWl6tLjRdeg/J5JmkIucrT3UqvTHUusk/tbWOI7m11l+r86rm7PF8zpZdNZMqQ0p+N46O6JaV63m3URranmoblQ3ySamJLKHC9qSEpi8LZxuGnhcQq2pxo/KudPSnyM4MPfuYa9G/adLkXVeToep8xh75AaUyrjxt7N9RZg0s7PEbd6NEsfBNiNf0UgilUORwEmtwih3dS81ISnuUplS1NL6OIWRYVmOBu5bjLmDvelCWvauSS5mtPgNTweKt4zDQxNv0ZLVsfKupnGxxHSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABqS9H/iYnVmrZHIPMa5TWebfr22cXjTYqW5WN62ZlKeiOsqWgn2pGcSmm5zntNKoLEI09qjcI9W4Nyj3TCPMby/5F5ebX5sP+7X0KPOULiPMPeMR7nbf8m29PPL/t1dNTuPqd8sS416GlUOL2hwtsbbasMYwxUcz83SU7aI7eXZclZJ7Y7lXXzkR4i+5LhTpbTiCUllzt7+Kc3/ACzL3btOmLvVjHmXzpdSdFztPkZy5Fl/v2L37irh7dHLnfIut6+Zc5j8GNGjgAAAAAAABsB9MLli3yR0JBx3JrEn9q6iYrsTy1MqV41jkFK1GJrFs1X4i1yH1WkKOqNMdWpS12MR5xXal5sj2ThbN/zPL1buv/l2aRlta+bLrWh86b5UZxnuX+5Ytzgv+Pcq1sT5Y9WtczWw4h6wHExG09WNchcPrvFz3T9YtvKm2CPxr3VqH5M2etSSIyck4VNlu2CD6oIoLswzNSktJHDxllHveE/MbK/5Fledz29b9V6eje5jq4czD3fEe53H/JuPRzT/AO7V00MtoykvoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABN7gDxWlcrN+0eM2cN9zWuInHyzaE1txyOg8eiPl5XHm5LS2nW52WT0Jho8JaXm45vvo/oDE7w9lLzbMI2pp+6w86b5tnTJ6NtKvkIvN8wWX4N3Iv+fLRHp29WvsXKbLbi4xvBsZsby7nVWMYlilNIsLKwlLYraaioqaGp6Q+6v+bjQoFfCYM+hESUIT0Iv5BtU52rFp3JtQswjVvUkl4kkZpGM7s1CKcrknRLW22YneZfJS05U76yzZ75TYmM97VBgFFNcJSqLDaglNVrK2kqW2zOtX1Oz5aUqWRS5biUqNCUdMOzrM55tmE8U6q1qgnyRWrret87NPyzAxy/CRsKjnrk9snr7NS5kRWESSAAAAAAAAASr4Y8lLXitv3EtnRzffxl1w8a2HUsEa1W+C3MiMVy200SkeLYVTkdmwhp7kEqZDaSo/DUsjlskzOeU5hDFKvdejNbYPX1rQ1zpchH5ngY5hhJWH6euL2SWrqep8zNr1Pb4znuK1t5Ty6zJ8PzGhi2VbMaJqfT3+PX0BEiM+lDqFMy6+yr5RH2rSaVtr6KL2mQ3GE7WItK5Bqdmcap60014U0ZhKM7NxwlWNyLo9qa8jMa3qA8WZHFXkDe4zWRn/ALOcwJ7MdaTlNOeCigsJbpSsbVIPvbcnYjYd0RZd5urjeXfWSfMJIYrxDlLynMZWor/jT86D5m/R6YvR0UfKaVk+PWYYNTl/Wj5sunb16+mq5CD4giVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADXh6SeoqPXPELFMtix4qsk29Y22Z5FZIjNImORYdnPx/HKhyWk1PSINZW1xvNNqMktPzZBpSRrUati4QwdvDZNC8ku9vNyk+XQ2kuhJV6WzOuIsTO9mMrb9C2lFLqq31t+BFkt3R0uS1M+hyOorL+jtY64lpTXUCLaVVlEc6eJFn105p+JMjOdPpNuIUhX8pCzXLcLsHbuxUrbWlNVT6U9ZCRlKElODamtTWhrrOYfu6cfPkVpv9mOE/kMcv5bl34ex6kfIe/vuM9rd9aXlH7unHz5Fab/ZjhP5DD8ty78PY9SPkHvuM9rd9aXlH7unHz5Fab/ZjhP5DD8ty78PY9SPkHvuM9rd9aXlKDfVm4QXtHnNHu/R+sULwG4x2HS5xRa7xhCGsYyankPMxr+VRUEJtEWpyCokx2TfbZNCJUNw31JU+13Z9xfkVy3fjjsBa/48o0koR9GS5aJamqKtNa060W7h7NYTtPC4q5/OUqxcnrT5KvlTr1PRqZ/vpL8I7y8zfId27w1iprBKfHpFHg1HsTFm1xMryC7eNiwvYlLfxlFKrcdq4jrJPOR/CckzUmytS2HOxwhkVy5fljsfa/48Y0gpx9JvW6PkitFaa3o1McQ5pCNqOFwtz+a5Vk4vUlyVXK34Fp1l+P7unHz5Fab/AGY4T+QxoP5bl34ex6kfIVH33Ge1u+tLyj93Tj58itN/sxwn8hh+W5d+HsepHyD33Ge1u+tLyj93Tj58itN/sxwn8hh+W5d+HsepHyD33Ge1u+tLynUKWjpcaqoFDjtRWUNHVx0RKympoEWrqq6I318OLAr4TTESHGb6/RbbQlCf5CHVC3C1BW7aUbaWhJUS6EtR4SnKcnObbm9belvrK2/Vp1Dj+xuIWW5dPYJOSagnVWaYvYIS2TzaJlrXY/kNY64ror3fY1Nkbq2yMu6REYV7ewiFZ4vwdvE5NO9L+rZalF9LSa6Gn2pE1w9iZ2MxjbXoXE4vsbT6muxsyGjHTRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2oenH/BHx6/udM/Oa+G38NfoWG+o/4mZjnX6pe+t8iKzvVF5qcmOPnI2lwbUOy3sQxaTqvGsifq2saxC2J24sMhy6FLmKlX1BaTSU5Gq2E9hOE2kkdSSRmZnV+Ks8zTLsyjYwd3ctO1F03YvS3JV0pvkROZDlmBxmCd3Ew3riuNVq1oSWxraVw/ekc6vnpK+o2tf0OFa+K8+9v+5D7JNfkGU+y/el9ofekc6vnpK+o2tf0OD4rz72/7kPsj8gyn2X70vtErOIPq5bYx7Z7VZyny9/NtY5M2zWvXrON0FfZ4BYm8go2QojYvSVz9xSdqlInxux2Qls0vMdy2zYflsm4wxdvF7ubT38LPRXdScHt81Kq2rXyrVRx+Y8O4edjewEd2/HTSraktmluj2Pqe1aWMQzLE8/x6tyzCMkpcsxm3YRJrb3H7GLaVkxpaSV1alxHHWvER3dFoMyW2rqlREZGQ06zfs4i2r1iUZ2pamnVPsKRctXLM3buxcZrWmqMZfmWJ4Bj1llmcZJS4njNQwuTZXuQWMWqrIbSEmr+dlzHGmvEX29EIIzW4r6KSMzIgvX7OHtu9flGFpa23ReEW7Vy9NW7UXKb1JKrM0/L71ctr5DtByt4sZdIwnWWMtSaxm9exygsLLYFgb5ePkTkXKKSxep6ZCWiRAj9jUhTZqekElbqWGMxznjDF3MXu5TPcwsNFd1Nze3zk6LYtfK9dFd8u4dw8LFcfHevy00q6RWzQ1V7fBtcU/vSOdXz0lfUbWv6HCJ+K8+9v+5D7JIfkGU+y/el9ofekc6vnpK+o2tf0OD4rz72/7kPsj8gyn2X70vtFj3pdc1OTHIPkbdYNt7Zb2X4tG1XkuRMVbuNYhUk1cV+Q4jCiTEyqGgq5pqbjWj6ew3DbUS+ppMyIysvCueZpmOZSsYy7v2lak6bsVpTiq6Enyshc+yzA4PBK7hobtx3Eq1b0NPa3sLMfUc/gj5C/3Oh/nNQi0cS/oWJ+ov4kQeS/qln63yMxXjEDTgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2oenH/BHx6/udM/Oa+G38NfoWG+o/wCJmY51+qXvrfIiij1rP4use/Uhhv51Z8KDxx+sR+4j/FMtfC/6dL72XiiVDCnFjAAAD2mI7I2Hr9x57A88zPCXZCiVIcxLKLvHFyFERJI31U86GbxkkiL6XX2D3s4nE4d1w9ydtv6MnHxNHlcsWb2i9CMlzpPxjL9kbE2C6y/nueZnmz0bp5d3Lcnu8jcjmSCaI2F3E6YpoybLt+j09nsC9icTiXXEXJza+lJvxti3Ys2dFmEYrmSXiPFjwPUAAALefRT/AIush/UhmX51YCLjwP8ArEvuJfxQK5xR+nR+9j4pF6/qOfwR8hf7nQ/zmoRfuJf0LE/UX8SKpkv6pZ+t8jMV4xA04AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANiHpV7Ix3POGWtKmolMKt9cqvMJymtS8lcmuso13YWsF15v2OIZtKWzjyG1dO0zWpJGZoV02bhPE28RklqEH59qsZLY6trtTTM3z+xOzmc5S9GdJJ7VSngaaOr744IcbOSeax9g7cxG3vsoi0EDGWJkLLslo2G6itl2M6LH8nT2UOMpaJNq+o1mk1q7iIz6EQ7MwyDLMzvrEYyDldUVGqlJaFV6k1tZz4TNsdgbXc4eSVtuupPS6bVzHFvuj+Dfy1yH9o+dfl0cPwfkPspevPynT8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIPuj+Dfy1yH9o+dfl0Pg/IfZS9eflHxFmv04+rHyD7o/g38tch/aPnX5dD4PyH2UvXn5R8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIPuj+Dfy1yH9o+dfl0Pg/IfZS9eflHxFmv04+rHyD7o/g38tch/aPnX5dD4PyH2UvXn5R8RZr9OPqx8g+6P4N/LXIf2j51+XQ+D8h9lL15+UfEWa/Tj6sfIdq0NwS418a80lbA1Jh1rRZRMoJuMvTp2XZNete6LCZXT5bCIdvZy4iXHZNUwfidnekkmRGRKPr3ZfkGWZZfeIwcHG64uNXKT0Np6m+ZHNi82x2OtdziJJ2066ktKrsXOcm9VTZOOYFwz2TT3EpgrnZCqXCsVrDfbRKsLB+7rrWwfaaNXirj1VNWvvuqSk0kokIUZG4nrx8WYq1h8kuwm/Pu0jFbXVN9iTZ0ZBYnezOEorzYVk3s0NLtZjwGMmkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB3vj5yY3Fxhy9zMdRZS7SyZrbEe+pJjRWOMZRCjKdUxDyGkeWmPNTHN9zwHkm3KjeKs2HWzWozkMuzTG5Ve77Bz3W9aemMlsa5eZ61yNHJjMDhsfb7rExqlqeprof7J8pahC9c7cDcZpFho/W0qWSUk8/Du8ngx3FElJKU3FedsHGiNZGZEby+hGRdT6dTtkePMal51i03zOS8pAPhTDV0XZ06Efq+/R2n8h8A+s+Rf1cfvx7i/w9v1mfnwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7EPv0dp/IfAPrPkX9XD49xf4e36zHwph/az7Efmmeuft9yM6iv0fraLLNKiZfl3mTzo7azQokKcisu17jqUrMjMidR1IjLqXXqX5LjzGNebYtJ87k/Ifq4Uw1dN2dOhFWfInk7uHlHmDWY7byT3o9AZdiY/QVrCq3FsXhPm0qTGoKYnXkRTlrYQp99xb0qQbaPFdWTaCTVMyzTG5re77GSq1qS0RiuZc/K9b5WT2CwOGwFrusPGietvS30v8AZIj+I47AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmTwx4dX/MrMcvw/H81p8JfxHGmMlfm3FXNtGZjL9pGqyistQpEdbTiVyCX3GZl0Lp0E3kmS3M6vTs27ituEa1abrppyEZmeZRyy3G5KDmpSpodOSp7Dmb6fmzeG8PEr+8va3O8Nyp6RV/FVDWza+JTZGylySzRWseY9IcZesa5pb8Vzu7XiZeSREbR93tnfDuKyWMLk5K5Yno3kmqPY+laV0M8sszixmTlCKcLsdNG61W1dD19RAYV4mD2OvMQe2DsDBsBjTWq2Rm+Y4ziDFi+yuQzXvZLdQqZqa8w2ttb7UVc0nFISpJqJPQjLr1HvhrLxOJt4dOjuTjGuzeaVfCeV64rNmd5qqhFunQqlh/Lb0xcx4m6lVti82pjOYQU5LS417nqsftK2X41yiatuV5mZMfZ8NjyR9ye3qfcXQxZM44WvZRg/fJ3ozjvJUUWtfWQ2XZ7bzDE+7xtuL3W6tp6uoq/FUJ4AAAAAAAAAAu3wv0UNiZnh2J5hH3phcFjK8aoslYhPYpeOvQ2b2ri2jcV11FilDjkdEokKURERmXUiF6s8DYi9ZheWIglOKdN18qrtKtd4otW7krbsybjJr0lyOmw9N9xZsn5+4P9UL78pD1+AsT+Ih6r8p5/Fdn2MvWXkPMZR6HW96+CuRiW29W5LMbLuOBbMZPjBukXf3IjymqzIWVPH0T2k54SDMz6qT09vld4Ex8Y1s3rUpbGpR8NJHpb4qwrdLtu5Fc1H5CrbevHTcXG3KmsQ3Dhk7FbGa1Jk0003YtjR5DBiv8Al3Z1Dd1z0musGUKUg3GyWUiOTqCebbUokiqZhluNyy73ONg4Sep61JbU1ofjXKkT+ExuGx1vvMNJSS18jXSv2T5DiQ4DqAAAAAAAAAAAAAAALAeD/ADMeaLmX2cTNa3XWFYZIr62xyOXSuZNPnXVkw9KarKqgZt6PxiixGUuSHXpbCEE82SPEM1kixZFw7ezvfmritWINJypvNt8iVVqWurWvlIfNc4t5ZuxcXO7LTStNG1uj8RzrmTw+zThxsauwrJb2sy2kySoO9xHLauM5Wpt4LEg4U9iwpX5Mx+ntK+WkicaJ+SyppxtaHlGpaW+bOsmv5LiVYuyU7clWMloqtTqtNGulrVp2e2WZlazKy7sE4zi6NPTTZp5U+oiGIYkgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwvQz/xt3R+qyB+dtYL3wH/e3/ul/EVXir+1tfePxGgTcut9c7/wbO9E5wuLPjX+MwZFrXsOx1XdAxbS7RrFssgtupd8pMiXmOyHYLykKbVIgrSZKSS0nomNw2GzCxcwF+jjKKquVVruyXOmnR7UVDDX72DuwxdrQ1LRsdKVXY9PSYn+QOjsx457ay/Umbx1ptMZsFIg2ZRnI0HJKGSZvUmS1RLU4S6+4gmlwiJazZd72Vn4jSyLDsxwF7LcZPB3/Si9D5JLkkuZrsdVrRp+DxdvG4eOItejJaVsfKn0f4n9eNf8Rmgf116r/PqiDK/1PD/f2/40Md/ZXvup/wALNMPrL/wbOfrTwb/QXw1DjT9Ef3sPlKPw1+p/7cvkMmYyE0I6RrzTu2Nty3IOsNbZxn8hl1DMr4Sxi4vWIK3CSaTsZdfEfiVrfaojNb620ER9TMiHVhsFjMY93CWrlx/5Yt06WtC6zwvYnD4ZVvzhDpaXZtOg5lxH5P6/rFXWYaD2vS0zTUh6TbO4VeSqyCzFShbztlPgRJUWsaShfUlSFtEskqNPXsV06b+TZrh4797D3lDbutpdLVadZ42sxwF6W7bvW3LZvKvVXX1EdhGHaAAAAAbb7zJ73CeBdvmeL2C6nJsR4i2GT47atNR5DlZe0OmnrWosG2JjMiI8uHYRG3CQ62ttRp6KSpPUj3S7duWMglftOl2GDck9jVuqenYzLoW4Xc2Vq4qwliEmtqc6MzAfebc6Pn/dfVPXn6IDK/inPvxEvVh9kvf5FlXsV2y8p0rWHq4cxsGyGLYZbmVVtbHfMNKssXyrGsaqykxiUkpCa+9xelp7atmOMkZNrWqSw2v6SmF+0j6cJxhnWHuKV6avW+WMoxXY4pNeFcx4Yjh3LbsKW4u3Pkabfam2n4Okvv5c4ZhPMDgpkeV10BM0p+qmt46xlyW4zVpV3ddiy8tqo7b8okogSrOvU7Vy+5SCJqU6lRp6dydBzixYznIZXYqtbPew2pqO8teqq819LKjl127luaxtydKXNyWxqtH001roRj7xzC8xzA5acSxPJcpVXkwc9OOUVpdnCKUbpRjllWRZRxikHHc7O/t7+xXTr0PpjVqxfv17mE5017qbp00NHuXbVqneyjGu1peM+tXau2Xb5ZHwKr17m9hnEpKHI+Hw8VvH8neacSlxDyKJuCqzNlTayV3+F29p9evT2j7jhMXO8sPC1cd9/N3XvdlKny8RYjb76U4K19Kqp26j2myuNW/9O1Ma/wBoaf2BhFDLlJgs3l9jdhFpvPOEamYTtqTS4EeZISlRtNOOJcdJCjQSiSrp74rK8xwUFcxdm5C23SrTpXZXUeVjHYPEy3LFyEp7E9PYcerKuzurCHU01dOtrWwfRFgVlZEkT7CdJdPtbjw4cVt2TJfcP2JQhKlGf4CHFCE7klC2nKb1JKrfQjqlKMIuU2lFcr0IktH4R8vZdSm6Y43biXBXEcmoJWDXbc9yO2lazNuodiot3HnEo6ttJYN13qXYlXcnrKLIc5cO8WGvbtK+i69mvqpU4XmuWqW479utfpKnbqI85Ji2T4bbP0OX45fYpeRSSqTTZJUWFHbR0r6khT9daR4sxol9p9DUguvQRt2zdsT7u/GULi5JJp9j0nZbuW7sd+1JShtTTXaj+2O4bl+YLlt4limSZQ5ASyucjHaK0u1w0SDcSwuWmsiyVR0vqaWSDX0JRpPp16GP21Yv369zCc6a91N06aH5cu2rVO9lGNdrS8Z+e/xjJMTmorcpx68xqxcjImNwL+pn001yI64603KRFsY8Z9cZx1haUrJPaakKIj6kY/Llq7ZluXoyhKlaNNOnWfsLlu4t63JSjtTT8R8MeZ9nv06n2mutTco1rn66hcErNNqnDciVWqrVMeaTYJnFXHFOCcU/EJ0leH4f0uvT2jp9zxm7v91d3KVruypTbWmo8PecNvbveQ3q0pvKtdmsm5wC5k7n4vzc3qcA1TO3Rh+THW2mQ4nXR7pqwqbeIl6JBuod1SU18uuTMiqWy82/Eebf8Js0GhSFd07w9nWOyt3IYey79mVG4qtU9SdUnSq0Oq06CLzjLcLjlCV64rVyNUm6Ua2UbVe05nzi5M7Y5ObVgZJtHCH9Zox7H2ajE8BkRLWM9T08mS9MkT5ci5iV820n201SjXJKOw0ptltCGy8MzVy59mmMzTFq5i7btKMaRhR6Ft0pNtvlotS2HvlWBw+Bw7hh595vOrlo0vZorSmwhgIMlCReHcROUGwKlu9xDQe1bqlfQy5FtmsNuY1dOafR4rT1dLnRYrFiwpvofewpxBEZdTLqXWTs5Nm2Ih3lnD3XDbutJ9FaV6jiuZlgLMty5etqWyq8NNRznYGoNraolphbN1tnOASHJDsaOWX4tdY+zNdZNXf7vk2cOPGsWjSg1JcYW42tH0kqNJkY5cTgsZg3TFWrlt1p50Wq9Dao+o9rOJw+IVbE4T6Gn201Hi6mntr+xjVFFV2N1bTVLRDq6mFJsbGWttpbziI0KG09JfUhltSzJCTMkpM/wEY8IQnckoW05TepJVfYj1lKMI702lFcr0I+9kOvs+xKIzYZXhGX4zAkSUw2JuQ41c0sR6Wtp15MVmTZQozLklTLC1kglGo0oUfToRj1u4bE2Y7163OEW6VlFpV60fEL9m6923OMnzNPxHkB4Hqe4stY7Kpqp29t9e5xVUbDTL79zZYnfwapliQttth52xlV7URtp9x5CUKNZEo1kRdTMh0SwmKhDvJ2ritrlcWl20oeMcRh5S3Izg57FJV7Knhxznse9qtVbQvK+LbUmt89uKqa2bsKzqsPyGwr5bRLU2bkWZErno0hsnEGnqhRl1Iy/kHTDB4u5FTt2rkoPU1GTT66HjLE4eEt2dyCkuRySfjPDOtOsOuMvNuMvMuLadadQpt1p1tRocbcbWRLQ4hZGRkZEZGXQxztNOj1nsmmqrUfzH4AAAAAAAAAAAAAAAC8L0M/8bd0fqsgfnbWC98B/wB7f+6X8RVeKv7W194/ESB538psk4meozqLYFeubOw+x4+YdRbIxeO6Xh5FiUnZ+1zkKaYcUlg7ujcPzle4ZoMn2zaNaWXniVI5/m1zKOJbOIjV2Hhoqcdsd+54VrXZqbOPKcvhmOS3LLorqvNxex7sPA9T7daRIr1C+LuM819AUG6dOOR8m2BimMnlOu7OlUTidgYRZtNWlhihpNKXH5jjRHJrW1kTrM4nI/ag5LvSS4jyq1nmXRxuDpLEQjvQa+fF6XH5Y7Ho5WcWT4+eV4x4bE+bZlKkk/myWivyPm08iMz/ABuQtvkdoRtxKkLRu3VqFoWk0rQtOd0RKSpJkRpUky6GR+0jGYZYqZnh09ff2/40XnG/2V77qf8ACzS/6y/8Gzn608G/0F8NP40/RH97D5Sj8Nfqf+3L5CiD0+uIv73W7Cx2+dnQtaYVAayfYc+vcJiXIhKlJjVWMwZRko4s/I5aVp8UkmpqKw+tJktKOtA4dyf84x3d3KrC21vTa8EVzy8SZbM4zH8uwu/CjvzdI18L6vHQ0DcqOamjvTyxjFNT4FryutspeqPPY5rLF3oWMUOO0JvOx27rJbFqJPfinZzGXTaSmM/KnONOrcWj+kVombZ5gOHLUMJYtp3d2sYRpFJbZPTSr1aG3pKfl+V4vObksRdm1brpk9Lb2Lo6aIipov1tMdyzNarF92ati6+oLucxBbzrHcmft66gdkqSyy/kNPZVkR9NSl9RG/LZlKVHb6qNhZEZlE4Djm1evq1jrSt25Om8pVS+smlo2uujYSGL4XuW7TuYW5vzS9FqjfQ6vTzeE/l6rPBPC7PX9nyj01j9dTZDjhMWezajHmo8WmynFJaiS7mkWDEQUVN5TvPNuy3WSQmXBU4851cZI3Pzi3ILE8O81wUVG7DTNLVKP0qbVrb5VV8g4fza7G8sBiW3bloi3rT+j0Pk2PpM3gzMuwAAAbW84hTbP08cvrq6JKsLCw4YZBCgQIUd2VNmzZWj5bEWJEisIcfkypL7iUNtoSpa1qIiIzMbjiIynw7cjFNyeCkklrb7p6EZfZajnEZSdIrEqr/1mPH7FNy/KTZv1Cyr8lDGfcMd7G76kvIaR73hfa2/WXlOk6x4d8mtuZFBxzENLbB8SZKbjP3V9jFzjeL1KVLaJ6TcZHdQodVBZjNvE4pBuKfWj+jbWoySfThclzXGXVas2Lml63FxiultJfLsR438zwGHg53LsNHImm30JaTVXut+j4m+n7k+Oz7WJI+z3j63q+mmTlLJq/yyTiLeE0hFHStmQ8VrfykOrabNCksmsyNCUmpOtY128o4enbbX8rD7ib5Zbu6u1lAwqnmGbxmk/PvbzpyKu8+xFXHoR/2i5K/7l1b/ALdngqfAP9TFfVt+OZPcWehY6Z/9Javv/dHGfhdZZRvDY5KLYm2Cr4MWHTQIltn2VV+HU9bWR6LH2X3oDUPHqk1JkPuSJDEZMqZ1ccNSmUFbsxx2V5JKWOxP9xdotCrOSikqLVoWt1aVXpeor+DwuOzNRwtn+jb26IqrrV877aLpKbec3qRai5e6GVqDX+DbRpsxlZ5iNxWNX9Tjz0KzahHZRnoUZdDklvPOzdentEy0UcydMzIlEroR0rPeJsHnOXvBYe3djfdyLVUtNK6NEm66dhZcqyTE5bi/eb07btKDTo3o7UtBZNxh426Z9OjjtZbg2w3U/aJAxor/AGZnZwkWFnWOzksoYwDC1OEb6IyJclqAhLJtKtJqvEd7UG22zZ8qyzBcN5a8Zi6e8KNbk6Va/wAsebk0ek9L5oTH43E5zjVh8PXuXKkY8n1n4+ZEG7n117lORSFY9x3rHcTbfNMVq5z+UxkUuKnuInpEiDjUmtrn3/Yo2ktykte1PiOfjCBnx9PvH3eGXc889Pgi0vCSseFI7nn3n3nNHR46+In4hnjV6r3HCfZs0yqy+gLm00SwsokIs91PmjMcpMXtmw3VefpJiX23vCJw4lhGWZLQ2+gyZsNMr4tyxySpNVVXTfty6uTl2Nc+qIrjuH8ao1rF6dHozj5fCnza6SfTxzzIOJnO5rWOePFUMZDe3+h89jKlPJrGb47XyuOWLPipYYktpzGsitR5TiE9IM11aDJLhkqjcOX7mUZ/7piPNUpO1PTorXzXz+ckk9je0tGc2oZjlPvFnS4pXI7aU0rsbqtqJ4euFpMp+Naq5A1cM1S6Ce/rLLZDMdtTh09uU2+xSTLkJ6PNxK22Ynsp7u5Hi2KSI0qV0XP8dYHes2sxgvOi9yXQ6uNeh1X+oieFsVu3LmDk9ElvLpWh9qp2FFHH/Vc3d+7NYangk53ZzmVNSznmVpbchUi5KZGQ2SVqSsi910MeTJ/FUZk17CM+hHQcuwjx+PtYRf8AuTSfR859Sqy2YzELC4W5iH8yLfXydroakPVN29B0Xw4vcNx426202gmBqHG4TCVKRExqRDUrKiSg+vSGjD4D0DqauqVzGz9o1bivGRwGSys29E7tLcVzP0v3U11ooWQ4Z4vMo3J6Y2/PfTyfvUfUV2ehZ/iTv3+4+If8+shW+Av7nEfUj42TPFf9Gz9aXiRHn1kv4zJv6ssE/wA1uI3jX9a/2o/KdvDP6b/uS+QmX6THBTFJuJQ+U24aGvvpVvJlfZNjd7CJ+tp62pmPQ5Od2EKc35eVZTbCK4mt70Kbjx2fNIUpbzSmZvhDIbTsrNsZFSlJ/wAtNaElo3mnyt+jsWnl0RnEOa3FceAwzaS9Nrlb+b0Ll59HJp9Vvv1r6DC88ucR0tq6HsGix+wk1sjOchySTUV19JiLNiQ7j1RAq5Mg6lMhCvBlvSCVJR0UTKEmSle2YccWrGIlZwVpXIRdN5yonTYkno529Ow88JwxO7ZVzE3NyclXdSq10uuvm5CSPFrm7o71D6TKNL7K1nApcpXSSLC119kcqNk+OZNSNvKiSLPGLhcOsmJsqkpDTjiDjxpcQ3ScjuuE2txuTynPcBxHbngsTaUbu7Vwl5yktVYui0rl0Jquius4swyvFZNOOJszbt10SWhp7GtOvpafKUY8ldQ3Xp5czsbsMSenS8boL/Gds6ylvSF+bn4qi5cVJxuzmKZNpyTElVsysk9e/wAeKaHXEkT/AGFQszwc+G87hOzV2oyjchzxrpi31OL2qjestWBxMc5yyUblO8acJdNNa8D6egv+9RPEqXkLwKzfKsWejW0SrxfHN64bZoJEplypo47OQTrGO5HU8j/WsCnWCUuIUaCJ3qauzqY0PiOzDMeH7l2004qCuxevQvOb64V7SoZNclg82hbuaG5O21zvRT1qGVTj3rF7c+8dU6sabWtrN86x6jsjQ4ppTFG/YMuZBMJxBktPkaNqQ99H6X837Pb0GS5bhXjsfZwnJO4k+ivndiqaBjb/ALrhLmI5YwbXTyeGhte3prmp25pbaumGlRG38o1vb0cOG0tpK6p+0rbGLith5YjLwo8a5rCWyaiJClRVJLr2q6bjj8NDGYK7gtFZ2muiqai+1aOgy/C3pYfE28T9GafTR6fB4zCazV2MizapWYMpdu/ORVtVpMOFOXYuSCiIglGUknSlKkqJvwzIld/s6dRgahNz7tJ77dKctdVDV3KKjvtrdpWvMbMtoZBF4P8AAeX5CVHZuNUaco8KxySpLi0Ttgzq2Di9TPU1E8J1/wA1l1iU1/wzb6N+IrubSRqTteLuLIuH3utb9myox550UU9G2Tq/kM0sQeaZsq+jcuuT+rWr8CojGCta3FqccUpa1qUta1qNS1rUZmpSlGZmpSjPqZn7TMYk3XS9Zpp/yAAAAAAAAAAAAAAAALwvQz/xt3R+qyB+dtYL3wH/AHt/7pfxFV4q/tbX3j8R431vv4rtff8Ab1in/UjbI8OOv1e3/wCNH+O4evC36fP75/wwOnekDzTPFb1vivsq57cayaY7I09YzT/mqXKZbr0mzwx2UtXRqvydxZvwEq6JRYktpPcuWgk9fBued1P8pxUv5cn/AC2+SXLHoetc9Vyo5+I8s34/mFhefFefzrkl1cvN0HsObnC8tU8xNCcjdd1TiNe7J5BauTnVbBiF5PD8/m51RvLsi8AukamzZwlvdVp7GbMnUd5FIjtJ989yT3TOsPmeGX/Hu4m3vpL0Zua09Ev4ulI88rzP3jLb2CvP+dCzPdb5Y7r0dMfF0Ml96y/8Gzn608G/0F8JjjT9Ef3sPlI7hr9T/wBuXyHHfQ0pYDGkNz5E2yhNpabVhUsyQSEEt2BQ4jUzq1lThJ8RSGJGSSlJIzMkm4ZkRGZ9eLgOEVgL9xek71OpRTXjZ08VSbxdqHzVbr2t18SKavUVyOzybmpyBl2kh19ddmqschJcdU4iNWY1WV9JXx2Eq6JZaKPBJXakiLvWo/aZmZ0viW7K7nmIc3qnuroSSRZclhG3ldlR5Y1622yFQgiUNm/Fd09p+ndrqDmDiLFjItBW+H3Dln/rzcqph1FziHWeTy2zlIXVQk+IS1kai69Vf+IbZlT974dtRvaVLDuLrpqqOOnqRmWPXu+cTdvQ43k1TbVPxmMgYmaaAAAG6HFc5rtYcTcc2VcRJs+o15x3p85tYNYlhVjNrsS1rHv50SvTKfjRlTZEavUhonHG2zcMu5SS6mW9W78cLlMcVNNwt4dSaWtqMKunPoMpnalfzB2I0Up3nFV1VcqFb334vHP5U7r/AP08F/TQVn47yz2V/sh9om/hXG+0tfvfZPIZL66OsI8OWeH6Jz24nl0KC3kuSY9jcNzqj6Tkt6rayp5nw1/gQhtzvIvxk9fZ43ePMIovucPclLk3nGK8G8ekOFMQ3/MuwUeZN+OhTzyz5y7q5e2kNGczIOP4NSS3JmO66xkn2MfgS1k40m1s35Djs7IL0ojnheYkK8NpJr8uywTrpLpmcZ9js5klfajh4uqhHUud8rfO9XIlVlky7KsLl0X3VZXnrk9fQti/Ztll/oR/2i5K/wC5dW/7dngs/AP9TFfVt+OZB8WehY6Z/wDSRa9Y6+tLXmXZ1c6Ut6BjGvMHqqaOal+FEiTYkq/lEhBqNBOPWVu8tSiIjUXaR/ikIrjS5OedOEn5sbUUuur8bO/hqEY5apLXKcm/F8hErhRR12R8t+OdTatG/Ad27hUt5jqRJfVV3Ma1YZdJSVEuO7IhIS4np9JszLqXXqIjIrcbucYaE9Me+i+x1+Qkc0nKGXXpR193Lwqhrl5e6a1LvnVDGvN07JttZYTLyuotHrSnynEMSfurGqi2b0ChkWOZ0t7XPxFuLOYbLTSJCnYaFEsm0OJXsGcYLCZhhPdsbdlasOadVKMatVoqyTVOXRp0dJneXYnEYTEd9hoKd1Rao03StNNItPm2aSsH7rT05P8A7R5l+23RX/x6Kt8J8N/irn/y2vsE7+f517CPqXPtExuJmlOIPDdWclrHkXHvWNgFj3vmHnm29XWkSK9jZ3HkZNW1j9RjHl5DyLt1LynDe70pQREnt9s1lGAyfJe891xO8rlKqdyDXm1pSijt09RG5hisxzLc7+zRwrTdhJa6a6t7Cg31PpGNwObOaZprfJ6q0j5BX4FmMe5xS7g2kSBkMSgrquQ5Dn1SltR5qJ1CUpZeK44l5019xdxITn3FTtwz2d/DTT3lCVYtOjSS0Ncvm16S25CpyyuNq/Frdco0apVVry9NDQLbLgc/PTwlSYrMSVf7L1QcxiOkvGRXbaw9Xj+UbNlKH2kR8/x02SNKUrXGV+IaV9h6HPd4h4dbVHO7Z7LkfJNdhUI72UZxR13Ldztg/wDtZU96JmknMh3DsLd1tEWmDrDH04pj5vxkkR5dmhPtWD8d5wjW3Ip8YgSGHkJIldtojqoi6pVUeBsC7mMu46a821HdX1pa+yKo/rFg4oxW5h4YWL03HV9C1dr8Ry/1j93Fsjk1D1rWyEvUGj8eRRK7O5SV5hlSIN7lLyFmrtNLMJushrSSSNL8NzqZ+wi5ONMd7zmiwsf6diNP9UqOXg3V0pnRw1he5wLvy9O7Kv8ApWheGr6zt3oWf4k79/uPiH/PrId/AX9ziPqR8bOTiv8Ao2frS8SI8+sl/GZN/Vlgn+a3Ebxr+tf7UflO3hn9N/3JfIaPNVYjjcPiBr7CHbuXhuLr4743QTMnhz6ytscdrJ2u4kSwyRi0tocunh2cBuQ5MKTKjux0Pp73G1I7knpeEs245Pbsbzha93it5NJxW5StWmqrXVqldaKViLk3mM7tFKffN000b3tVFpo9VFpKs/utPTk/+0eZftt0V/8AHoqnwnw3+Kuf/La+wT/5/nXsI+pc+0di0Fwk4K8cdsYtuLA+TlzMybEjtvJQMi3NpyVQzmbqksaGbGtYlTiVLOkxzh2a1pSiS10eQhRmfb0Pty7IsiyzFwxuHxUndhXQ7lujqmnWkU+XbrObGZrmuNw8sNesJQlTVCddDT0Vb2bCLnrY2+tM4xzQuXYdm2H5Pd0d3muOT2MZyeku5JVV3Ao7OM7OjVj8x5DESXRrJpaltpSqQsuizURoiuOZYa/aw96zOEpxlKL3ZJ6Gk9NOjwnfwvG/auXrdyMoxai9Ka0ptcvT4CZPpR7Nhbv4YlrbJlKspWtpmQ6qvI8lLJKm4jbRV2WP9Cb7kKhIorpda2akpWfkFdxK/HXNcJYpY7JPdrul2m7b54vSuqj3eojOILDwuZ99DQppTXTqfhVesrr9LLjjPoOdm2mr+IbzfGiPnFCUqYx0d+KrC7l4NSyUN9PCIrDHm7WQ26RqSaUpNHUlEoq3wplkrWf3lcWjC7y0/Sb3U+uO8yZz7GqeU2tx6b+6+pLefY6E9OP3Kj409TzlBq5yeh7HJmJVOGYklDpqbReaNffauoSEKcNC3pNnlORPqW2RfzcdKTJXTuFgy/Nu/wCKcVhG62txRj02ta7ZT7CJxmA7rIrGIp5+82+ierwKPaV9VXFbt9YV/XqqhfwfX7Jk786Gskwm8b93FsyvQgjNtb1ajMJDFR4aSX9LqhXVBLWK7DKf/wBn7vu/yFc77mpTfXVv0j/gTEsw/wDzfe1/muHd9dd3t3dJIX1xdzeUodRaCrJna/cTZu0MsjMzPDdTXVaZWO4gxLiN/TkQrGwlWjxeIZNk9XoUSVKSRtyHHeN3bdnL4PTJuctPItEarY3vPpj2cfCuGrO5jJLQlurpel9ip2mdAZsXQAAAAAAAAAAAAAAAAC8L0M/8bd0fqsgfnbWC98B/3t/7pfxFV4q/tbX3j8R431vv4rtff9vWKf8AUjbI8OOv1e3/AONH+O4evC36fP75/wAMCnmFNm1k2JY10uVX2FfKjzYE+FIdizYU2K6h+LLiSmFtvxpUZ9tK23EKStC0kZGRkKZGUoSUotqSdU1rT2osjSknGSrF60bA+AfKrHeaGimqXPk11ltHATo67Y9LLQylVxIq5UewxbYcGM0TSW0Wk2rbkKUylvydtGc7CQgmFK2bh7Nred4Dcv0eKt0U1tppjNdNK80k+YzfN8vnlmL3rVVYnVxeyuuPVWnOn0nPvWX/AINnP1p4N/oL4c3Gn6I/vYfKe/DX6n/ty+Qgb6JW+qbGc02NoDIZ0WC7sJuBmOCqkLaY89kWPRJMTIqRpxayVJnWFCpmUw0RexuufPr1MiFf4GzCFq9dy640ncpKHO0qSXS1RroZLcUYSU7cMZBN7nmy5k9T7arrR8T1ZeFWx6/cVxyK1xid1l2C5/Er5eaFj8J+1m4fltbCi1EmRPrYbTs1uhvYUNiQiWlLjTcvx0PG0RseL8cX5HiVjXmWFhKdi4lvUVXGSVNKWmjVHXbWtNFfrh7NLDwywV+Sjdg/Nroqnp17U+TZTnKvdD8ZNz8jcwrcR1nhdxYlLnph2mTya+fHxHF2EOITNn5Jf+WXCr2ILa+5TXVUl1XRtptx1SUKquX5VjsyvKzhoSabo5NPdjtbepU2a9iqT2Lx+FwVt3L8ktGhV0voX7I1Pcnc0wzg/wAE5mI1tk2mdVazj6b1szJUhNlkGVWGPOUaLfy3iEbrsVJyLeZ29EJS0si6dySPWM0v2MiyF2ovzo2u7htcmqV8cmUHA2rua5qrkloc9+WxKtafIjHIMWNKAAADajsX/wDnJnf/AGT5P/0KnDcMV/8Azdz/AMGX/wBTMwsfrUP/ACl/9hiuGHmngAABf16Ef9ouSv8AuXVv+3Z4NC4B/qYr6tvxzKhxZ6Fjpn/0kQfV9/jbzP8Aubr382owh+Mv1yf3cPESPDn6XH60vGQE1Nn03Ve0ddbLr0uuzMAzfF8wZjsu+CqX8PXUK1cgqX+L4U9qKplxKuqFIWaVEaTMhXsHiJYTF2sVHXbuRl00adOvUTGJsrEYedh6pwa7VTwGubmjqODzj4cOFqedAyKwsI+Obb1RKN1DUe4sYMKSpquJ155hqBYXGPXE6AkpBoTGlvkl7s7VmnYc7wcc9yamEalJqNy29rXJzNptadTekzrLMS8qzL/kJqKrCfMv8GkzIneau2VjOUJwnIdf5pS5i5Ifis4vZYzcxL+TIjGvx24lU9DTNlm2SDMzbQsu0uvXp7RjtzCYq1d7i5buRvV9FxdXTYqaeo0WGIsXLfewnB2tqap2l4XCf0lMczfVk3PeV1Tm+J3d/Nak4liMO3Ti9tRYvFjLNyxyuFLrJEmBZW8l01JivdjkaOwhTiUrdUhF7yPhC1fwjxGbxnC5J+bGu61HbJU0N7HqS2sq2acRTtYhWcvcZQitLpVN82nUtvKymPkBB1TVbm2JU6PesZeqqjIX6fDrC1sW7eVawKphivlXSbJpphEuDdWcZ+XFUSE/6q82Rl1IUnMY4OGOuQwFXhIypFt1qlobrypurXNQs2DeIlhYSxdFiHGrSVKV00pzLQ+cvL9D/efm6faPHa3mGp+ofb2hhjLz3eo62eqFQ5jCjNqaLwWINiVdISgnFEpya8skJ6LUq+cC4/et3ctm9MXvx6Hokup0fWyqcU4Sk7eNitD82XStK7VVdRabQ4XrbhPpve+cQmyaoTyja2+chQRJbcem3Lj9nCx+EajJS/Agw4dbDQZ9VLJJfhUZnbLdnC5Jg79+Oi3vXLsul6aLqSSICd2/meJtWn6e7C2urRXxtmKvM8sus9y/Kc4yN8pV/mGQ3OT3UhPidjtpe2EiznrbJ5151LRyZKuxKlqNKehdT6DD796eIvTxF3TcnJyfS3Vmn2rcbNqNqHoRikuhKhdx6Fn+JO/f7j4h/wA+sheuAv7nEfUj42Vbiv8Ao2frS8SI8+sl/GZN/Vlgn+a3Ebxr+tf7UflO3hn9N/3JfIXc8E9iYnyr4L4/hFrOTPl1mup+g9l1jjpvWEZELHHMTZfmdykPPlkGIvR5aXuvRxbziDWbjbnS9ZBibObZDGzN1atu1NcuhbunpjR9ZVs2s3MvzWVyKonPvIvrr4HoMuPIHjHuDjbmd7iexsQu4UGssX41TmKKqb8JZRXeOtuvuKS7Jtde+xYsklfg+L47CzNp1KHUqSWVZjlWNyy/K1iYSUU9EqPdkuRp6tOzWtT0l9wePw2OtK5Zkt5rTGulPlTWsm36f3pwZPyIyublO7cVzTDNK09ZLJqU+1KxS6zPIJTRNVsTHDtK5b8inriWuRKmttmz4jSGEqUpbhNznDvDN3Mbzu4+E4YGK54uT5KVWpa29XJtpFZxndvB21bwsoyxTfSorlrR63qS69hzT1HtHcdOOe18d1PoqRkky6p6B202Y5e5Cxfor7K6VDfxujb8GHDVBsYtQ0uXIQoj7mZ8c+vsMhzcTYDLMtxccJgN7vIxrOrrRum6uZ00vmaPfJMVjcbh5YjF03G6RoqVprfRXR1M7T6Mu5kYDyXt9ZWUtqNTbqxR6sjJc8VJOZjhpS8gx0jdI/AbJymdt2Ek4RG48+2lCiUZIc7eCcasPmcsLJ0hfhT/AFRq14N7rp18vE2G77Aq/H0rUv3ZaH4d00E2GI4PxmRyx5KmiO29mkKLsnJ0JjEg/A1trpmthVhONJKRJXYWkabJSgjPrIsF9v0lmNElZw+WLF5norNb8v8ARCiXam+llPVy7jvd8FyRe6v9Uq18S6jIrxk3XY615Was3Xf2aVvx9nRbXM7eWpMcnajLpsiqzqe8pjwGWVvUd7NWfQiaJR+1PZ1SMeyrHSw2b2sddenvayb2SdJPsbNFx+Fjfy+5hYLR3dIrnjpiu1I2Sx9J4w1yDn8iENM/FM/UlfqjvQnqaqqNlczKXpRn+J4z61x2u8uq1NspSZ9qUkNpWBtLMHmK/rOyrfVvOXk7DNXirnuawf8A7aub/XShkG587qXvjldtrMWJXmcfqr53BsP7DbVHLGMKUujiSoq2+prj3c2NIsiNSlK7ppl7CIkpxviHHe/5vevJ1txluR+rHR4XWXWaNk+F90y+3bfptbz6ZafAqLqIciFJMAAAAAAAAAAAAAAAACcPBnmZ+5fm2aZj9m/2k/F+Kx8Z93fGHwd7u8C3i2nnfOfC2Veb7vLeH4fhNdO7u7/Z0OeyHO/yS/cvd13u/DdpvbtNNa+jKpFZrln5najb39zdlWtN6uim1Hxub/LX98ra+P7P+z/7OPcWvKnA/cfxV8X+a915JlmQ+9fefw3i/geP8UeD4Hl19vgd/iH39qPPPc4/OsXHFd33W7bUKb29qlJ1rux+lqpyaz7yrLvyzDuxv79ZuVaU1pKlKvYQ3EKSRILjFyNzbi1t3HtrYUZTFQFHX5Ljb8lUWvy/FJjrKrjHJz6WZPlfNIZS5Hk+E6cSW008SF9nYqRyrM7+U4yOLsaaaJR5JR5U/kfI6PTqOPH4K1j8M8Pd0V0p8qfI/KuVaCcnMv1RP3uNNK1J9hv2fd2VUWTfEH2mfFfT3KiejyXur7Psa/8AyfPdfE8z9Dt/EV19k9nXFf5xgvc+47vz1Ku/vauSm5HxkVlmQ/l2J9473f8ANapu018+8/EVV01zbY7bVt9Q2U6mu6adFs6m2rJT0GxrbGC8iRDnQZkdbb8WVFfbStC0KJSVERkYqdu5O1NXLbcbkXVNaGmuVE/KMZxcJpODVGnqaL0dC+tvleO0ldj3ILWys9kwY6WHM/wqfAo7+xJrw0oeuMUlxWaGXYPJNRuPxJVeyZkRFHLqaivuX8c3bcFbzG13jS9OLSb6Y6q86aXMVTF8LQnNzwc9xP5stKXQ9fan0ncMw9c/V0aqeVgGj8+ubs0EmO1mF3j2M1Ta1K7TdekUr2Wy3kNIPu7EtNm4Zdvejr3l3XuPMIof8exclc/zOMV4N5+A5bfCmIcv512ChzJt+GhR3yW5U7e5WZqWYbRum3Y8An2MYxKpQ7DxXEoMg2jejUtc48+4b8s2UKkSn3HpUhSUktzsQ2hFEzTN8Zm9/vsVLzV6MV6MVzLxt6X2FpwOX4bL7Xd2FpetvW+n5FqI4CMO4AAALqcj9YH3/wAcr3j/APu8eU996TtNO/Fv2teP5b3lgj+FfEXuH7MmfG8HxvM+T86ju6eH45f0gvF3jPvctll/u1N6w7e93m2O7Wm510rzVKxDhvcxqxnfVpdU6bmyW9Su91Vp1FKwo5ZwAAAn7wR5y/uUWOyrD7LvtM+0OFi0Pwvjb4M9z/DT9894nifCOV+8PO+++nTtY8PwuvVXd9Gw5Bn35HK7Luu97xR+du03a/5ZVrXmIjNsq/NIwXebm4383erWnOthyDl9yP8A3rN3XO4/g34C9702PVHw58RfFHl/cNa1XeY97+4sd8Xzfh9/Z5VPh9encr8I485zP83xzxu53dYpUrvalTXSPiOjLcF+X4VYbe36NutKa+ar8ZGERR3lg/Df1FtvcQ40jFYtfE2PqyZLdsFYDfWcmsXTT5BqXLl4lftRrFyg94PGS5LKosqK651cJpDq3HFWPJeJcZk6dlJXcI3XcbpR/wCV6aV5VRrlpWpDZnkuHzF943uYhfOSrXpWitOTSn1FtEX1ytErgE5O07tuPaeEozhxX8OmQPHJHVDZWT17BkG0pz2GvynUk+3tM/oi3rjzL92srN7e/wBNO2q8RXnwri66Llvd/wBXk+Ur/wCWPq27a33jtpr3WuPp03gVw1Ig3smNcLuc4ySqfbNl2uk3bcOti0NZOaUfmGIbSnlpPwzkqaNaHK9m/GGLzC28NhY9zh5aG61m1sroST5UtPPQmMv4dw+Emr1997dWrRSKfRyvp7CpAU4sRILi5yBu+MG7sO3LS1asgPG12ce1xo7RVMzklJcVcursKiRZFAtSipWiUl5tw4z5NSGW19hmkhI5TmM8qx0MbBb27Wsa03k1RqtH06npRx4/Bxx+FlhpOm9SjpWjTrWlV4yeHMH1W7zlNpex03U6eLWEK+vKOfkdz9ozuXrtKWkkLtG6JFe3hOJJjeYu48OQp5bzySRGNHhGaycbsGc8XXM1wLwULPdRlJOT396qWmlN2PLR1q9VKETlvD8MBiliZXe8cU6LdpRvRX0nyV7dZUaKcWIndwV5sfuV5Ln+Q/Zn9pXxzR09N5P4z+DfdfuqfJneZ8x8KZV53zHmO3s7Gezp17j69Cn8gzz8juXLndd73kUvS3aUbf0ZV8BE5tlf5pCEO83Nxt+jvVr1o57zJ5Ofvbbmf278EfZ/42MUWOfD3xL8V9vuQpZec97e4Mb6+Z81/R+WLs7fxldfZz51mv5xjffO77vzFGm9vaq6a0jt2HtlmA/LsN7vv7/nN1pTXzVfjPN8auT+1uKufJzzV1s00qWwiBkuMWqHpeMZbVIWpxuDeV7T8da3Ijq1LjSWltSYy1K8NZIcdQ55ZXmuLynEe8YV69Eov0ZLY1zcj1rrdfvHYDD5hZ7q+tWprWnzfKtT7C8vD/XP1dJqmVZ/o/Pqa7JBpkNYfd49k1U4tKu0nWZF09iUtlDqC7uxTThtmfb3r6d53yzx5hHD/kWLkbn+VxkvDuvwFVucKYhS/k3YOHOmn4KnHd6et5fXdJYUXH/V7uHz50d6OznWe2EG2tKsnTNspNXiVay9UIsWmvptuSpsthLh9FMOJT9Ljx/HU523by61uSfzptNroitFeltczOnCcLRjNTxlzeS+bHQn0t6exLpKKMjyO+y++t8oyi3sL/Ir+wk2t1dWsl2ZY2djMdU9Jly5LylOOvOuKMzMz9n4C6EREKDdu3L1yV27JyuydW3rbLXCELUFbtpRhFUSWpI+1rfObjWOwcJ2Nj6zTd4LlVDllYXirZQ7LobONZNRnlt9VeWlnH8J0uhkptakmRkZkf3hcRPCYm3ibfp25qS6nWnXqPm/ajfszsT9GcWn1qha5yn9XO15H6OzHTFVpE9cfGnueNZZOjZ6sodbqq26gXMyuaq06+xrqVt7vTHcWckiJha0mlXd7LdmvGM8ywE8FCx3XeUTlv72hNNqm5HXSmvUV/AcOxwWKjiZXd/dro3aaaUrXeerXqKbxSiyl4kf1rcui6YY1y1pJBZzH1o1hbezT2es0lkzOMpo0ZueKlr4lGv3ikp3kfef43834/T6Yvi45vLBe7qx/PVrd39/527Te3dzbppvc1Sqvhe28T33e/yt/e3d3krXdrvbNFadRR2KGWoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/9k=\\\\\\\",ze=\\\\\\\"rgba(24,24,27,.9)\\\\\\\",Ve={ColorPalette:{version:112,id:\\\\\\\"obsidian\\\\\\\",name:\\\\\\\"Obsidian\\\\\\\",colors:{node_slot:{CLIP:\\\\\\\"#FFD500\\\\\\\",CLIP_VISION:\\\\\\\"#A8DADC\\\\\\\",CLIP_VISION_OUTPUT:\\\\\\\"#ad7452\\\\\\\",CONDITIONING:\\\\\\\"#FFA931\\\\\\\",CONTROL_NET:\\\\\\\"#6EE7B7\\\\\\\",IMAGE:\\\\\\\"#64B5F6\\\\\\\",LATENT:\\\\\\\"#FF9CF9\\\\\\\",MASK:\\\\\\\"#81C784\\\\\\\",MODEL:\\\\\\\"#B39DDB\\\\\\\",STYLE_MODEL:\\\\\\\"#C2FFAE\\\\\\\",VAE:\\\\\\\"#FF6E6E\\\\\\\",TAESD:\\\\\\\"#DCC274\\\\\\\",PIPE_LINE:\\\\\\\"#7737AA\\\\\\\",PIPE_LINE_SDXL:\\\\\\\"#7737AA\\\\\\\",INT:\\\\\\\"#29699C\\\\\\\",X_Y:\\\\\\\"#38291f\\\\\\\",XYPLOT:\\\\\\\"#74DA5D\\\\\\\",LORA_STACK:\\\\\\\"#94dccd\\\\\\\",CONTROL_NET_STACK:\\\\\\\"#94dccd\\\\\\\",FAST_MODEL_LOADER:\\\\\\\"#ffd399\\\\\\\",SAMPLING:\\\\\\\"#60a5fa\\\\\\\"},litegraph_base:{BACKGROUND_IMAGE:\\\\\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQBJREFUeNrs1rEKwjAUhlETUkj3vP9rdmr1Ysammk2w5wdxuLgcMHyptfawuZX4pJSWZTnfnu/lnIe/jNNxHHGNn//HNbbv+4dr6V+11uF527arU7+u63qfa/bnmh8sWLBgwYJlqRf8MEptXPBXJXa37BSl3ixYsGDBMliwFLyCV/DeLIMFCxYsWLBMwSt4Be/NggXLYMGCBUvBK3iNruC9WbBgwYJlsGApeAWv4L1ZBgsWLFiwYJmCV/AK3psFC5bBggULloJX8BpdwXuzYMGCBctgwVLwCl7Be7MMFixYsGDBsu8FH1FaSmExVfAxBa/gvVmwYMGCZbBg/W4vAQYA5tRF9QYlv/QAAAAASUVORK5CYII=\\\\\\\",CLEAR_BACKGROUND_COLOR:\\\\\\\"#222222\\\\\\\",NODE_TITLE_COLOR:\\\\\\\"#d4d4d8\\\\\\\",NODE_SELECTED_TITLE_COLOR:\\\\\\\"#ffffff\\\\\\\",NODE_TEXT_SIZE:14,NODE_TEXT_COLOR:\\\\\\\"#ffffff\\\\\\\",NODE_SUBTEXT_SIZE:12,NODE_DEFAULT_COLOR:\\\\\\\"#09090b\\\\\\\",NODE_DEFAULT_BGCOLOR:\\\\\\\"rgba(24,24,27,.9)\\\\\\\",NODE_DEFAULT_BOXCOLOR:\\\\\\\"rgba(255,255,255,.75)\\\\\\\",NODE_DEFAULT_SHAPE:2,NODE_BOX_OUTLINE_COLOR:\\\\\\\"#60a5fa\\\\\\\",NODE_BYPASS_BGCOLOR:\\\\\\\"#FF00FF\\\\\\\",NODE_ERROR_COLOUR:\\\\\\\"#E00\\\\\\\",DEFAULT_SHADOW_COLOR:\\\\\\\"rgba(0,0,0,0)\\\\\\\",DEFAULT_GROUP_FONT:24,WIDGET_BGCOLOR:\\\\\\\"#242427\\\\\\\",WIDGET_OUTLINE_COLOR:\\\\\\\"#3f3f46\\\\\\\",WIDGET_TEXT_COLOR:\\\\\\\"#d4d4d8\\\\\\\",WIDGET_SECONDARY_TEXT_COLOR:\\\\\\\"#d4d4d8\\\\\\\",LINK_COLOR:\\\\\\\"#9A9\\\\\\\",EVENT_LINK_COLOR:\\\\\\\"#A86\\\\\\\",CONNECTING_LINK_COLOR:\\\\\\\"#AFA\\\\\\\"},comfy_base:{\\\\\\\"fg-color\\\\\\\":\\\\\\\"#fff\\\\\\\",\\\\\\\"bg-color\\\\\\\":\\\\\\\"#09090b\\\\\\\",\\\\\\\"comfy-menu-bg\\\\\\\":\\\\\\\"rgba(24,24,24,.9)\\\\\\\",\\\\\\\"comfy-input-bg\\\\\\\":\\\\\\\"#262626\\\\\\\",\\\\\\\"input-text\\\\\\\":\\\\\\\"#ddd\\\\\\\",\\\\\\\"descrip-text\\\\\\\":\\\\\\\"#999\\\\\\\",\\\\\\\"drag-text\\\\\\\":\\\\\\\"#ccc\\\\\\\",\\\\\\\"error-text\\\\\\\":\\\\\\\"#ff4444\\\\\\\",\\\\\\\"border-color\\\\\\\":\\\\\\\"#29292c\\\\\\\",\\\\\\\"tr-even-bg-color\\\\\\\":\\\\\\\"rgba(28,28,28,.9)\\\\\\\",\\\\\\\"tr-odd-bg-color\\\\\\\":\\\\\\\"rgba(19,19,19,.9)\\\\\\\"}}},NODE_COLORS:{red:{color:\\\\\\\"#af3535\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#A88\\\\\\\"},brown:{color:\\\\\\\"#38291f\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#b06634\\\\\\\"},green:{color:\\\\\\\"#346434\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#8A8\\\\\\\"},blue:{color:\\\\\\\"#1f1f48\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#88A\\\\\\\"},pale_blue:{color:\\\\\\\"#006691\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#3f789e\\\\\\\"},cyan:{color:\\\\\\\"#008181\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#8AA\\\\\\\"},purple:{color:\\\\\\\"#422342\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#a1309b\\\\\\\"},yellow:{color:\\\\\\\"#c09430\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#b58b2a\\\\\\\"},black:{color:\\\\\\\"rgba(0,0,0,.8)\\\\\\\",bgcolor:ze,groupcolor:\\\\\\\"#444\\\\\\\"}}};let je=JSON.parse(JSON.stringify(Ve));delete je.NODE_COLORS,je.ColorPalette.id=\\\\\\\"obsidian_dark\\\\\\\",je.ColorPalette.name=\\\\\\\"Obsidian Dark\\\\\\\",je.ColorPalette.colors.litegraph_base.BACKGROUND_IMAGE=\\\\\\\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGlmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4xLWMwMDEgNzkuMTQ2Mjg5OSwgMjAyMy8wNi8yNS0yMDowMTo1NSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDI1LjEgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAyMy0xMS0xM1QwMDoxODowMiswMTowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmIyYzRhNjA5LWJmYTctYTg0MC1iOGFlLTk3MzE2ZjM1ZGIyNyIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjk0ZmNlZGU4LTE1MTctZmQ0MC04ZGU3LWYzOTgxM2E3ODk5ZiIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjIzMWIxMGIwLWI0ZmItMDI0ZS1iMTJlLTMwNTMwM2NkMDdjOCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjMxYjEwYjAtYjRmYi0wMjRlLWIxMmUtMzA1MzAzY2QwN2M4IiBzdEV2dDp3aGVuPSIyMDIzLTExLTEzVDAwOjE4OjAyKzAxOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoV2luZG93cykiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjQ4OWY1NzlmLTJkNjUtZWQ0Zi04OTg0LTA4NGE2MGE1ZTMzNSIgc3RFdnQ6d2hlbj0iMjAyMy0xMS0xNVQwMjowNDo1OSswMTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDI1LjEgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpiMmM0YTYwOS1iZmE3LWE4NDAtYjhhZS05NzMxNmYzNWRiMjciIHN0RXZ0OndoZW49IjIwMjMtMTEtMTVUMDI6MDQ6NTkrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyNS4xIChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4OTe6GAAAAx0lEQVR42u3WMQoAIQxFwRzJys77X8vSLiRgITif7bYbgrwYc/mKXyBoY4VVBgsWLFiwYFmOlTv+9jfDOjHmr8u6eVkGCxYsWLBgmc5S8ApewXvgYRksWLBgKXidpeBdloL3wMOCBctgwVLwCl7BuyyDBQsWLFiwTGcpeAWv4D3wsAwWLFiwFLzOUvAuS8F74GHBgmWwYCl4Ba/gXZbBggULFixYprMUvIJX8B54WAYLFixYCl5nKXiXpeA98LBgwTJYsGC9tg1o8f4TTtqzNQAAAABJRU5ErkJggg==\\\\\\\",je.ColorPalette.colors.litegraph_base.CLEAR_BACKGROUND_COLOR=\\\\\\\"#09090b\\\\\\\";const Ue=\\\\\\\"#FFFFFF\\\\\\\",We={ColorPalette:{id:\\\\\\\"milk_white\\\\\\\",name:\\\\\\\"Milk White\\\\\\\",colors:{node_slot:{CLIP:\\\\\\\"#FFA726\\\\\\\",CLIP_VISION:\\\\\\\"#5C6BC0\\\\\\\",CLIP_VISION_OUTPUT:\\\\\\\"#8D6E63\\\\\\\",CONDITIONING:\\\\\\\"#EF5350\\\\\\\",CONTROL_NET:\\\\\\\"#66BB6A\\\\\\\",IMAGE:\\\\\\\"#42A5F5\\\\\\\",LATENT:\\\\\\\"#AB47BC\\\\\\\",MASK:\\\\\\\"#9CCC65\\\\\\\",MODEL:\\\\\\\"#7E57C2\\\\\\\",STYLE_MODEL:\\\\\\\"#D4E157\\\\\\\",VAE:\\\\\\\"#FF7043\\\\\\\",PIPE_LINE:\\\\\\\"#7737AA\\\\\\\",PIPE_LINE_SDXL:\\\\\\\"#7737AA\\\\\\\",INT:\\\\\\\"#29699C\\\\\\\",X_Y:\\\\\\\"#38291f\\\\\\\",XYPLOT:\\\\\\\"#74DA5D\\\\\\\",LORA_STACK:\\\\\\\"#94dccd\\\\\\\",CONTROL_NET_STACK:\\\\\\\"#94dccd\\\\\\\",FAST_MODEL_LOADER:\\\\\\\"#ffd399\\\\\\\",SAMPLING:\\\\\\\"#60a5fa\\\\\\\"},litegraph_base:{BACKGROUND_IMAGE:\\\\\\\"data:image/gif;base64,R0lGODlhZABkALMAAAAAAP///+vr6+rq6ujo6Ofn5+bm5uXl5d3d3f///wAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAkALAAAAABkAGQAAAT/UMhJq7046827HkcoHkYxjgZhnGG6si5LqnIM0/fL4qwwIMAg0CAsEovBIxKhRDaNy2GUOX0KfVFrssrNdpdaqTeKBX+dZ+jYvEaTf+y4W66mC8PUdrE879f9d2mBeoNLfH+IhYBbhIx2jkiHiomQlGKPl4uZe3CaeZifnnijgkESBqipqqusra6vsLGys62SlZO4t7qbuby7CLa+wqGWxL3Gv3jByMOkjc2lw8vOoNSi0czAncXW3Njdx9Pf48/Z4Kbbx+fQ5evZ4u3k1fKR6cn03vHlp7T9/v8A/8Gbp4+gwXoFryXMB2qgwoMMHyKEqA5fxX322FG8tzBcRnMW/zlulPbRncmQGidKjMjyYsOSKEF2FBlJQMCbOHP6c9iSZs+UnGYCdbnSo1CZI5F64kn0p1KnTH02nSoV3dGTV7FFHVqVq1dtWcMmVQZTbNGu72zqXMuW7danVL+6e4t1bEy6MeueBYLXrNO5Ze36jQtWsOG97wIj1vt3St/DjTEORss4nNq2mDP3e7w4r1bFkSET5hy6s2TRlD2/mSxXtSHQhCunXo26NevCpmvD/UU6tuullzULH76q92zdZG/Ltv1a+W+osI/nRmyc+fRi1Xdbh+68+0vv10dH3+77KD/i6IdnX669/frn5Zsjh4/2PXju8+8bzc9/6fj27LFnX11/+IUnXWl7BJfegm79FyB9JOl3oHgSklefgxAC+FmFGpqHIYcCfkhgfCohSKKJVo044YUMttggiBkmp6KFXw1oII24oYhjiDByaKOOHcp3Y5BD/njikSkO+eBREQAAOw==\\\\\\\",CLEAR_BACKGROUND_COLOR:\\\\\\\"lightgray\\\\\\\",NODE_TITLE_COLOR:\\\\\\\"#222\\\\\\\",NODE_SELECTED_TITLE_COLOR:\\\\\\\"#000\\\\\\\",NODE_TEXT_SIZE:14,NODE_TEXT_COLOR:\\\\\\\"#444\\\\\\\",NODE_SUBTEXT_SIZE:12,NODE_DEFAULT_COLOR:\\\\\\\"#F7F7F7\\\\\\\",NODE_DEFAULT_BGCOLOR:\\\\\\\"#F5F5F5\\\\\\\",NODE_DEFAULT_BOXCOLOR:\\\\\\\"#555\\\\\\\",NODE_DEFAULT_SHAPE:2,NODE_BOX_OUTLINE_COLOR:\\\\\\\"#000\\\\\\\",DEFAULT_SHADOW_COLOR:\\\\\\\"rgba(0,0,0,0.1)\\\\\\\",DEFAULT_GROUP_FONT:24,WIDGET_BGCOLOR:\\\\\\\"#D4D4D4\\\\\\\",WIDGET_OUTLINE_COLOR:\\\\\\\"#999\\\\\\\",WIDGET_TEXT_COLOR:\\\\\\\"#222\\\\\\\",WIDGET_SECONDARY_TEXT_COLOR:\\\\\\\"#555\\\\\\\",LINK_COLOR:\\\\\\\"#9A9\\\\\\\",EVENT_LINK_COLOR:\\\\\\\"#FF9800\\\\\\\",CONNECTING_LINK_COLOR:\\\\\\\"#222\\\\\\\"},comfy_base:{\\\\\\\"fg-color\\\\\\\":\\\\\\\"#222\\\\\\\",\\\\\\\"bg-color\\\\\\\":\\\\\\\"#DDD\\\\\\\",\\\\\\\"comfy-menu-bg\\\\\\\":\\\\\\\"#F5F5F5\\\\\\\",\\\\\\\"comfy-input-bg\\\\\\\":\\\\\\\"#C9C9C9\\\\\\\",\\\\\\\"input-text\\\\\\\":\\\\\\\"#222\\\\\\\",\\\\\\\"descrip-text\\\\\\\":\\\\\\\"#444\\\\\\\",\\\\\\\"drag-text\\\\\\\":\\\\\\\"#555\\\\\\\",\\\\\\\"error-text\\\\\\\":\\\\\\\"#F44336\\\\\\\",\\\\\\\"border-color\\\\\\\":\\\\\\\"#bbb\\\\\\\",\\\\\\\"tr-even-bg-color\\\\\\\":\\\\\\\"#f9f9f9\\\\\\\",\\\\\\\"tr-odd-bg-color\\\\\\\":\\\\\\\"#fff\\\\\\\",\\\\\\\"content-bg\\\\\\\":\\\\\\\"#e0e0e0\\\\\\\",\\\\\\\"content-fg\\\\\\\":\\\\\\\"#222\\\\\\\",\\\\\\\"content-hover-bg\\\\\\\":\\\\\\\"#adadad\\\\\\\",\\\\\\\"content-hover-fg\\\\\\\":\\\\\\\"#222\\\\\\\"}}},NODE_COLORS:{red:{color:\\\\\\\"#af3535\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#A88\\\\\\\"},brown:{color:\\\\\\\"#38291f\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#b06634\\\\\\\"},green:{color:\\\\\\\"#346434\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#8A8\\\\\\\"},blue:{color:\\\\\\\"#1f1f48\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#88A\\\\\\\"},pale_blue:{color:\\\\\\\"#006691\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#3f789e\\\\\\\"},cyan:{color:\\\\\\\"#008181\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#8AA\\\\\\\"},purple:{color:\\\\\\\"#422342\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#a1309b\\\\\\\"},yellow:{color:\\\\\\\"#c09430\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#b58b2a\\\\\\\"},black:{color:\\\\\\\"rgba(0,0,0,.8)\\\\\\\",bgcolor:Ue,groupcolor:\\\\\\\"#444\\\\\\\"}}},Fe={addGroup:{id:\\\\\\\"EasyUse.Hotkeys.AddGroup\\\\\\\",name:\\\\\\\"Enable Shift+g to add selected nodes to a group\\\\\\\",tooltip:\\\\\\\"After v1.2.39, Ctrl+g can be used instead of it\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},cleanVRAMUsed:{id:\\\\\\\"EasyUse.Hotkeys.cleanVRAMUsed\\\\\\\",name:\\\\\\\"Enable Shift+r to unload models and node cache\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},toggleSiteMap:{id:\\\\\\\"EasyUse.Hotkeys.toggleNodesMap\\\\\\\",name:\\\\\\\"Enable Shift+m to toggle nodes map\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},alignSelectedNodes:{id:\\\\\\\"EasyUse.Hotkeys.AlignSelectedNodes\\\\\\\",name:\\\\\\\"Enable Shift+Up/Down/Left/Right key and Shift+Ctrl+Alt+Left/Right to align selected nodes\\\\\\\",tooltip:\\\\\\\"Shift+Up/Down/Left/Right can align selected nodes, Shift+Ctrl+Alt+Left/Right can distribute horizontal/vertical nodes\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},NormalizeSelectedNodes:{id:\\\\\\\"EasyUse.Hotkeys.NormalizeSelectedNodes\\\\\\\",name:\\\\\\\"Enable Shift+Ctrl+Left/Right key to normalize selected nodes\\\\\\\",tooltip:\\\\\\\"Enable Shift+Ctrl+Left key to normalize width and Shift+Ctrl+Right key to normalize height\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},nodesTemplate:{id:\\\\\\\"EasyUse.Hotkeys.NodesTemplate\\\\\\\",name:\\\\\\\"Enable Alt+1~9 to paste nodes from nodes template\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},jumpNearestNodes:{id:\\\\\\\"EasyUse.Hotkeys.JumpNearestNodes\\\\\\\",name:\\\\\\\"Enable Up/Down/Left/Right key to jump nearest nodes\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},subDirectories:{id:\\\\\\\"EasyUse.ContextMenu.SubDirectories\\\\\\\",name:\\\\\\\"Enable contextMenu auto nest subdirectories\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},modelsThumbnails:{id:\\\\\\\"EasyUse.ContextMenu.ModelsThumbnails\\\\\\\",name:\\\\\\\"Enable model thumbnails display\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},rightMenuNodesSort:{id:\\\\\\\"EasyUse.ContextMenu.NodesSort\\\\\\\",name:\\\\\\\"Enable right-click menu to add node A~Z sorting\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},quickOptions:{id:\\\\\\\"EasyUse.ContextMenu.QuickOptions\\\\\\\",name:\\\\\\\"Use three shortcut buttons in the right-click menu\\\\\\\",type:\\\\\\\"combo\\\\\\\",options:[\\\\\\\"At the forefront\\\\\\\",\\\\\\\"At the end\\\\\\\",\\\\\\\"Disable\\\\\\\"],defaultValue:\\\\\\\"At the forefront\\\\\\\"},nodesRuntime:{id:\\\\\\\"EasyUse.Nodes.Runtime\\\\\\\",name:\\\\\\\"Enable nodes runtime display\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},chainGetSet:{id:\\\\\\\"EasyUse.Nodes.ChainGetSet\\\\\\\",name:\\\\\\\"Enable chain get node and set node with parent nodes\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},nodesMap:{id:\\\\\\\"EasyUse.NodesMap.Sorting\\\\\\\",name:\\\\\\\"Nodes map sorting mode\\\\\\\",tooltip:\\\\\\\"Default automatic sorting, if set to manual, groups can be dragged and dropped and the sorting results saved.\\\\\\\",type:\\\\\\\"combo\\\\\\\",options:[\\\\\\\"Auto sorting\\\\\\\",\\\\\\\"Manual drag\\\\u0026drop sorting\\\\\\\"],defaultValue:\\\\\\\"Auto sorting\\\\\\\"},displayNodesID:{id:\\\\\\\"EasyUse.NodesMap.DisplayNodeID\\\\\\\",name:\\\\\\\"Display Node ID\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},onlyDisplayGroup:{id:\\\\\\\"EasyUse.NodesMap.DisplayGroupOnly\\\\\\\",name:\\\\\\\"Display Groups Only\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},enableNodesMap:{id:\\\\\\\"EasyUse.NodesMap.Enable\\\\\\\",name:\\\\\\\"Enable Nodes Map\\\\\\\",tooltip:\\\\\\\"You need to refresh the page to update successfully\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!0},stylesSelectorDisplay:{id:\\\\\\\"EasyUse.StylesSelector.DisplayType\\\\\\\",name:\\\\\\\"Styles Selector Display Type\\\\\\\",tooltip:\\\\\\\"Styles Selector Display Type, if set to 'Grid', it will display as a Grid, if set to 'List', it will display as a list\\\\\\\",type:\\\\\\\"combo\\\\\\\",options:[\\\\\\\"Grid\\\\\\\",\\\\\\\"List\\\\\\\"],defaultValue:\\\\\\\"Grid\\\\\\\"},enableAddAnglePrompt:{id:\\\\\\\"EasyUse.MultiAngle.AddAnglePrompt\\\\\\\",name:\\\\\\\"Add angle prompt in easy multiAngle\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},enableHollowMode:{id:\\\\\\\"EasyUse.MultiAngle.HollowMode\\\\\\\",name:\\\\\\\"Enable hollow display mode in easy multiAngle\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1},enableInvertRotate:{id:\\\\\\\"EasyUse.MultiAngle.InvertRotate\\\\\\\",name:\\\\\\\"Invert rotate mode in easy multiAngle\\\\\\\",tooltip:\\\\\\\"Enable invert rotate mode in easy multiAngle to match the rotation direction of most 3D software\\\\\\\",type:\\\\\\\"boolean\\\\\\\",defaultValue:!1}};function Xe(e=100,t){return new Promise((i=\\\\u003e{setTimeout((()=\\\\u003e{i(t)}),e)}))}function Ze(e,t){if(e=\\\\\\\"number\\\\\\\"==typeof e?e:e instanceof Date?e.getTime():parseInt(e),isNaN(e))return null;let i=new Date(e);(e=i.toString().split(/[\\\\\\\\s\\\\\\\\:]/g).slice(0,-2))[1]=[\\\\\\\"01\\\\\\\",\\\\\\\"02\\\\\\\",\\\\\\\"03\\\\\\\",\\\\\\\"04\\\\\\\",\\\\\\\"05\\\\\\\",\\\\\\\"06\\\\\\\",\\\\\\\"07\\\\\\\",\\\\\\\"08\\\\\\\",\\\\\\\"09\\\\\\\",\\\\\\\"10\\\\\\\",\\\\\\\"11\\\\\\\",\\\\\\\"12\\\\\\\"][i.getMonth()];let s={MM:1,dd:2,yyyy:3,hh:4,mm:5,ss:6};return t.replace(/([Mmdhs]|y{2})\\\\\\\\1/g,(t=\\\\u003ee[s[t]]))}const He=/Mac|iPod|iPhone|iPad/.test(navigator.platform),qe=e=\\\\u003eHe?e.replace(/Ctrl/g,\\\\\\\"\\u2318\\\\\\\").replace(/Alt/g,\\\\\\\"\\u2325\\\\\\\").replace(/Shift/g,\\\\\\\"\\u21e7\\\\\\\"):e;const Ye=new class{constructor(){v(this,\\\\\\\"element\\\\\\\",ve(`div.${Ce}toast`)),v(this,\\\\\\\"children\\\\\\\",HTMLElement),v(this,\\\\\\\"container\\\\\\\",document.body),v(this,\\\\\\\"info_icon\\\\\\\",`mdi mdi-information ${Ce}theme`),v(this,\\\\\\\"success_icon\\\\\\\",`mdi mdi-check-circle ${Ce}success`),v(this,\\\\\\\"error_icon\\\\\\\",`mdi mdi-close-circle ${Ce}error`),v(this,\\\\\\\"warn_icon\\\\\\\",`mdi mdi-alert-circle ${Ce}warning`),v(this,\\\\\\\"loading_icon\\\\\\\",\\\\\\\"mdi mdi-rotate-right loading\\\\\\\"),this.container.appendChild(this.element)}async show(e){let t=ve(`div.${Ce}toast-container`,[ve(\\\\\\\"div\\\\\\\",[ve(\\\\\\\"span\\\\\\\",[...e.icon?[ve(\\\\\\\"i\\\\\\\",{className:e.icon})]:[],ve(\\\\\\\"span\\\\\\\",e.content)])])]);t.setAttribute(\\\\\\\"toast-id\\\\\\\",e.id),this.element.replaceChildren(t),this.container.appendChild(this.element),await Xe(64),t.style.marginTop=`-${t.offsetHeight}px`,await Xe(64),t.classList.add(\\\\\\\"show\\\\\\\"),e.duration\\\\u0026\\\\u0026(await Xe(e.duration),this.hide(e.id))}async hide(e){const t=document.querySelector(`.${Ce}toast \\\\u003e [toast-id=\\\\\\\"${e}\\\\\\\"]`);(null==t?void 0:t.classList.contains(\\\\\\\"show\\\\\\\"))\\\\u0026\\\\u0026(t.classList.remove(\\\\\\\"show\\\\\\\"),await Xe(750)),t\\\\u0026\\\\u0026t.remove()}async clearAllMessages(){let e=document.querySelector(`.${Ce}container`);e\\\\u0026\\\\u0026(e.innerHTML=\\\\\\\"\\\\\\\")}async info(e,t=3e3,i=[]){this.show({id:\\\\\\\"toast-info\\\\\\\",icon:this.info_icon,content:e,duration:t})}async success(e,t=3e3){this.show({id:\\\\\\\"toast-success\\\\\\\",icon:this.success_icon,content:e,duration:t})}async error(e,t=3e3){this.show({id:\\\\\\\"toast-error\\\\\\\",icon:this.error_icon,content:e,duration:t})}async warn(e,t=3e3){this.show({id:\\\\\\\"toast-warn\\\\\\\",icon:this.warn_icon,content:e,duration:t})}async showLoading(e,t=0){this.show({id:\\\\\\\"toast-loading\\\\\\\",icon:this.loading_icon,content:e,duration:t})}async hideLoading(){this.hide(\\\\\\\"toast-loading\\\\\\\")}},Ke=S(\\\\\\\"groups\\\\\\\",{state:e=\\\\u003e({groups:[],nodes:[],isWatching:!1}),getters:{groups_nodes(){var e;let t=[],i=[];const s=e=\\\\u003e{var t;return{info:e,children:(null==(t=e.sub_groups)?void 0:t.length)\\\\u003e0?e.sub_groups.map(s):[],bounds:{x1:e.pos[0],y1:e.pos[1],x2:e.pos[0]+e.size[0],y2:e.pos[1]+e.size[1]}}};if(t=this.groups.map(s),(null==(e=this.nodes)?void 0:e.length)\\\\u003e0){const e=(e,t)=\\\\u003ee[0]\\\\u003e=t.x1\\\\u0026\\\\u0026e[0]\\\\u003c=t.x2\\\\u0026\\\\u0026e[1]\\\\u003e=t.y1\\\\u0026\\\\u0026e[1]\\\\u003c=t.y2,s=(t,i)=\\\\u003e{let s=null,n=-1;const a=(i,o)=\\\\u003e{i.bounds\\\\u0026\\\\u0026e(t.pos,i.bounds)\\\\u0026\\\\u0026(o\\\\u003en\\\\u0026\\\\u0026(n=o,s=i),i.children.forEach((e=\\\\u003ea(e,o+1))))};return i.forEach((e=\\\\u003ea(e,0))),s};this.nodes.forEach((e=\\\\u003e{const n=s(e,t);n?(n.children||(n.children=[]),n.children.push(e)):i.push({info:e})}))}return[...t,...i]}},actions:{setGroups(e){let t=R(e.map((e=\\\\u003enew Object({id:e.id,pos:Array.isArray(e.pos)?[...e.pos]:e.pos,size:Array.isArray(e.size)?[...e.size]:e.size,title:e.title,pinned:e.pinned,show_nodes:e.show_nodes}))));t.forEach((e=\\\\u003e{e.sub_groups=[],t.forEach((t=\\\\u003e{t!==e\\\\u0026\\\\u0026t.pos[0]\\\\u003ee.pos[0]\\\\u0026\\\\u0026t.pos[0]\\\\u003ce.pos[0]+e.size[0]\\\\u0026\\\\u0026t.pos[1]\\\\u003ee.pos[1]\\\\u0026\\\\u0026t.pos[1]\\\\u003ce.pos[1]+e.size[1]\\\\u0026\\\\u0026e.sub_groups.push(t)})),e.sub_groups.forEach((e=\\\\u003e{t=t.filter((t=\\\\u003et!==e))}))})),this.groups=\\\\\\\"Manual drag\\\\u0026drop sorting\\\\\\\"==xe(\\\\\\\"EasyUse.NodesMap.Sorting\\\\\\\")?R(t):R(t.sort(((e,t)=\\\\u003ee.pos[0]-t.pos[0])).sort(((e,t)=\\\\u003ee.pos[1]-t.pos[1])))},setNodes(e){this.nodes=R(e.map((e=\\\\u003enew Object({id:e.id,pos:e.pos,size:e.size,type:e.type,is_edit:e.is_edit,title:e.title,mode:e.mode}))))},update(){var e,t,i;(((null==(e=fe.extensionManager)?void 0:e.activeSidebarTab)||(null==(i=null==(t=fe.extensionManager.sidebarTab)?void 0:t.activeSidebarTab)?void 0:i.id))===Pe||this.isWatching)\\\\u0026\\\\u0026setTimeout((e=\\\\u003e{this.setGroups(fe.canvas.graph._groups),this.setNodes(fe.canvas.graph._nodes)}),1)},watchGraph(e=!1){e\\\\u0026\\\\u0026(this.isWatching=!0);let t=this;this.update();const i=fe.graph.onNodeAdded;fe.graph.onNodeAdded=function(e){t.update();const s=e.onRemoved;return e.onRemoved=function(){return t.update(),null==s?void 0:s.apply(this,arguments)},null==i?void 0:i.apply(this,arguments)},fe.canvas.onNodeMoved=function(e){t.update()};const s=LGraphCanvas.onNodeAlign;LGraphCanvas.onNodeAlign=function(e){return t.update(),null==s?void 0:s.apply(this,arguments)};const n=LGraphCanvas.onGroupAdd;LGraphCanvas.onGroupAdd=function(){return t.update(),null==n?void 0:n.apply(this,arguments)};const a=LGraphCanvas.onGroupAlign;LGraphCanvas.onGroupAlign=function(e){return t.update(),null==a?void 0:a.apply(this,arguments)};const o=LGraphCanvas.onMenuNodeRemove;LGraphCanvas.onMenuNodeRemove=function(e){return t.update(),null==o?void 0:o.apply(this,arguments)}},unwatchGraph(){this.isWatching=!1}}});const Je={BOX:1,ROUND:2,CIRCLE:3,CARD:4,ARROW:5,GRID:6,HollowCircle:7};function Be(e,t,i={}){const{shape:s=Je.BOX,round_radius:n=LiteGraph.ROUND_RADIUS,title_height:a=LiteGraph.NODE_TITLE_HEIGHT,title_mode:o=LiteGraph.NORMAL_TITLE,color:l=LiteGraph.NODE_BOX_OUTLINE_COLOR,padding:r=6,collapsed:d=!1,thickness:u=1}=i;o===LiteGraph.TRANSPARENT_TITLE\\\\u0026\\\\u0026(t[1]-=a,t[3]+=a);const{lineWidth:c,strokeStyle:A}=e;e.lineWidth=u,e.globalAlpha=.8,e.strokeStyle=l,e.beginPath();const[p,h,m,f]=t;switch(s){case Je.BOX:e.rect(p-r,h-r,m+2*r,f+2*r);break;case Je.ROUND:case Je.CARD:{const t=n+r,i=s===Je.CARD\\\\u0026\\\\u0026d||s===Je.ROUND?[t]:[t,2,t,2];e.roundRect(p-r,h-r,m+2*r,f+2*r,i);break}case Je.CIRCLE:{const t=p+m/2,i=h+f/2,s=Math.max(m,f)/2+r;e.arc(t,i,s,0,2*Math.PI);break}}e.stroke(),e.lineWidth=c,e.strokeStyle=A,e.globalAlpha=1}function Qe(e,t,i){var s,n;let a=0,o=null==(s=e[0])?void 0:s.naturalWidth,l=null==(n=e[0])?void 0:n.naturalHeight;const r=e.length;let d,u,c,A,p;for(let h=1;h\\\\u003c=r;h++){const e=Math.ceil(r/h),s=t/h,n=s/o,m=i/e/l,f=Math.min(n,m,1),g=o*f,v=l*f,y=g*v*r;y\\\\u003ea\\\\u0026\\\\u0026(a=y,d=g,u=v,c=h,A=e,p=h*((s-g)/2))}return{cellWidth:d,cellHeight:u,cols:c,rows:A,shiftX:p}}class $e{constructor(e,t){this.type=\\\\\\\"custom\\\\\\\",this.name=e,this.options=t,this.value=\\\\\\\"\\\\\\\"}draw(e,t,i,s,n){((e,t,i)=\\\\u003e{const s=fe.canvas,n=s.graph_mouse;!s.pointer_is_down\\\\u0026\\\\u0026t.pointerDown\\\\u0026\\\\u0026(n[0]===t.pointerDown.pos[0]\\\\u0026\\\\u0026n[1]===t.pointerDown.pos[1]\\\\u0026\\\\u0026(t.imageIndex=t.pointerDown.index),t.pointerDown=null);const a=t.imgs??[];let{imageIndex:o}=t;const l=a.length;1!==l||o||(t.imageIndex=o=0);const r=t.size[0],d=t.size[1]-i-15;if(null==o){let o,u,c,A,p;const h=(e=\\\\u003e{if(!e.length||1===e.length)return!0;const t=e[0].naturalWidth/e[0].naturalHeight;for(let i=1;i\\\\u003ce.length;i++)if(t!=e[i].naturalWidth/e[i].naturalHeight)return!1;return!0})(a);if(h)A=0,({cellWidth:o,cellHeight:u,cols:p,shiftX:c}=Qe(a,r,d));else{A=2;const e=a.reduce(((e,t)=\\\\u003eMath.max(e,t.naturalWidth,t.naturalHeight)),0),t=[];t.length=a.length,t[0]={naturalWidth:e,naturalHeight:e},({cellWidth:o,cellHeight:u,cols:p,shiftX:c}=Qe(t,r,d))}let m=!1;t.imageRects=[];for(let r=0;r\\\\u003cl;r++){const l=a[r],d=Math.floor(r/p),f=r%p,g=f*o+c,v=d*u+i;if(!m\\\\u0026\\\\u0026(m=LiteGraph.isInsideRectangle(n[0],n[1],g+t.pos[0],v+t.pos[1],o,u),m)){t.overIndex=r;let i=110;s.pointer_is_down\\\\u0026\\\\u0026(t.pointerDown\\\\u0026\\\\u0026t.pointerDown.index===r||(t.pointerDown={index:r,pos:[...n]}),i=125),e.filter=`contrast(${i}%) brightness(${i}%)`,s.canvas.style.cursor=\\\\\\\"pointer\\\\\\\"}t.imageRects.push([g,v,o,u]);const y=o/l.width,w=u/l.height,b=Math.min(y,w),_=b*l.height,S=d*u+i+(u-_)/2,x=b*l.width,L=f*o+c+(o-x)/2;e.drawImage(l,L+A,S+A,x-2*A,_-2*A),h||(e.strokeStyle=\\\\\\\"#8F8F8F\\\\\\\",e.lineWidth=1,e.strokeRect(g+A,v+A,o-2*A,u-2*A)),e.filter=\\\\\\\"none\\\\\\\"}return void(m||(t.pointerDown=null,t.overIndex=null))}const u=a[o];if(!u)return;let c=null==u?void 0:u.naturalWidth,A=null==u?void 0:u.naturalHeight;const p=r/c,h=d/A,m=Math.min(p,h,1);c*=m,A*=m;const f=(r-c)/2,g=(d-A)/2+i;e.drawImage(u,f,g,c,A),e.fillStyle=LiteGraph.NODE_TEXT_COLOR,e.textAlign=\\\\\\\"center\\\\\\\",e.font=\\\\\\\"10px sans-serif\\\\\\\";const v=`${Math.round(u.naturalWidth)} \\u00d7 ${Math.round(u.naturalHeight)}`,y=g+A+10;e.fillText(v,f+c/2,y);const w=(i,a,o,l)=\\\\u003e{let r=\\\\\\\"#333\\\\\\\",d=\\\\\\\"#fff\\\\\\\",u=!1;return LiteGraph.isInsideRectangle(n[0],n[1],i+t.pos[0],a+t.pos[1],o,o)\\\\u0026\\\\u0026(s.canvas.style.cursor=\\\\\\\"pointer\\\\\\\",s.pointer_is_down?(r=\\\\\\\"#1e90ff\\\\\\\",u=!0):(r=\\\\\\\"#eee\\\\\\\",d=\\\\\\\"#000\\\\\\\")),e.fillStyle=r,e.beginPath(),e.roundRect(i,a,o,o,[4]),e.fill(),e.fillStyle=d,e.font=\\\\\\\"12px Arial\\\\\\\",e.textAlign=\\\\\\\"center\\\\\\\",e.fillText(l,i+15,a+20),u};if(!(l\\\\u003e1))return;const b=(t.imageIndex??0)+1;if(w(r-40,d+i-40,30,`${b}/${l}`)){const e=b\\\\u003e=l?0:b;t.pointerDown\\\\u0026\\\\u0026t.pointerDown.index===e||(t.pointerDown={index:e,pos:[...n]})}w(r-40,i+10,30,\\\\\\\"x\\\\\\\")\\\\u0026\\\\u0026(t.pointerDown\\\\u0026\\\\u0026null===t.pointerDown.index||(t.pointerDown={index:null,pos:[...n]}))})(e,t,s)}computeLayoutSize(e,t){return{minHeight:220,minWidth:1}}}const et=()=\\\\u003e(e,t)=\\\\u003ee.addCustomWidget(new $e(t.name,{serialize:!1}));function tt(e,t,i,s,n,a){return e\\\\u003e=i\\\\u0026\\\\u0026e\\\\u003ci+n\\\\u0026\\\\u0026t\\\\u003e=s\\\\u0026\\\\u0026t\\\\u003cs+a}class it extends Float64Array{constructor(e=0,t=0,i=0,s=0){super(4),b(this,h),b(this,m),this[0]=e,this[1]=t,this[2]=i,this[3]=s}subarray(e=0,t){const i=e\\\\u003c\\\\u003c3,s=void 0===t?t:t-e;return new Float64Array(this.buffer,i,s)}get pos(){return w(this,h)??_(this,h,this.subarray(0,2)),w(this,h)}set pos(e){this[0]=e[0],this[1]=e[1]}get size(){return w(this,m)??_(this,m,this.subarray(2,4)),w(this,m)}set size(e){this[2]=e[0],this[3]=e[1]}get x(){return this[0]}set x(e){this[0]=e}get y(){return this[1]}set y(e){this[1]=e}get width(){return this[2]}set width(e){this[2]=e}get height(){return this[3]}set height(e){this[3]=e}get left(){return this[0]}set left(e){this[0]=e}get top(){return this[1]}set top(e){this[1]=e}get right(){return this[0]+this[2]}set right(e){this[0]=e-this[2]}get bottom(){return this[1]+this[3]}set bottom(e){this[1]=e-this[3]}get centreX(){return this[0]+.5*this[2]}get centreY(){return this[1]+.5*this[3]}updateTo(e){this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3]}containsXy(e,t){const{x:i,y:s,width:n,height:a}=this;return e\\\\u003e=i\\\\u0026\\\\u0026e\\\\u003ci+n\\\\u0026\\\\u0026t\\\\u003e=s\\\\u0026\\\\u0026t\\\\u003cs+a}containsPoint(e){return this.x\\\\u003c=e[0]\\\\u0026\\\\u0026this.y\\\\u003c=e[1]\\\\u0026\\\\u0026this.x+this.width\\\\u003e=e[0]\\\\u0026\\\\u0026this.y+this.height\\\\u003e=e[1]}containsRect(e){return this.x\\\\u003c=e[0]\\\\u0026\\\\u0026this.y\\\\u003c=e[1]\\\\u0026\\\\u0026this.x+this.width\\\\u003e=e[0]+e[2]\\\\u0026\\\\u0026this.y+this.height\\\\u003e=e[1]+e[3]}overlaps(e){return this.x\\\\u003ce[0]+e[2]\\\\u0026\\\\u0026this.y\\\\u003ce[1]+e[3]\\\\u0026\\\\u0026this.x+this.width\\\\u003ee[0]\\\\u0026\\\\u0026this.y+this.height\\\\u003ee[1]}findContainingCorner(e,t,i){return this.isInTopLeftCorner(e,t,i)?\\\\\\\"NW\\\\\\\":this.isInTopRightCorner(e,t,i)?\\\\\\\"NE\\\\\\\":this.isInBottomLeftCorner(e,t,i)?\\\\\\\"SW\\\\\\\":this.isInBottomRightCorner(e,t,i)?\\\\\\\"SE\\\\\\\":void 0}isInTopLeftCorner(e,t,i){return tt(e,t,this.x,this.y,i,i)}isInTopRightCorner(e,t,i){return tt(e,t,this.right-i,this.y,i,i)}isInBottomLeftCorner(e,t,i){return tt(e,t,this.x,this.bottom-i,i,i)}isInBottomRightCorner(e,t,i){return tt(e,t,this.right-i,this.bottom-i,i,i)}isInTopEdge(e,t,i){return tt(e,t,this.x,this.y,this.width,i)}isInBottomEdge(e,t,i){return tt(e,t,this.x,this.bottom-i,this.width,i)}isInLeftEdge(e,t,i){return tt(e,t,this.x,this.y,i,this.height)}isInRightEdge(e,t,i){return tt(e,t,this.right-i,this.y,i,this.height)}getCentre(){return[this.centreX,this.centreY]}getArea(){return this.width*this.height}getPerimeter(){return 2*(this.width+this.height)}getTopLeft(){return[this[0],this[1]]}getBottomRight(){return[this.right,this.bottom]}getSize(){return[this[2],this[3]]}getOffsetTo([e,t]){return[e-this[0],t-this[1]]}getOffsetFrom([e,t]){return[this[0]-e,this[1]-t]}resizeTopLeft(e,t){this[2]+=this[0]-e,this[3]+=this[1]-t,this[0]=e,this[1]=t}resizeBottomLeft(e,t){this[2]+=this[0]-e,this[3]=t-this[1],this[0]=e}resizeTopRight(e,t){this[2]=e-this[0],this[3]+=this[1]-t,this[1]=t}resizeBottomRight(e,t){this[2]=e-this[0],this[3]=t-this[1]}setWidthRightAnchored(e){const t=this[2];this[2]=e,this[0]+=t-e}setHeightBottomAnchored(e){const t=this[3];this[3]=e,this[1]+=t-e}toArray(){return this.export()}export(){return[this[0],this[1],this[2],this[3]]}_drawDebug(e,t=\\\\\\\"red\\\\\\\"){const{strokeStyle:i,lineWidth:s}=e;try{e.strokeStyle=t,e.lineWidth=.5,e.beginPath(),e.strokeRect(this[0],this[1],this[2],this[3])}finally{e.strokeStyle=i,e.lineWidth=s}}}h=new WeakMap,m=new WeakMap;const st=(e,...t)=\\\\u003efunction(...i){try{t.forEach((e=\\\\u003enull==e?void 0:e.call(this,...i)))}catch(s){null==e||e.call(this,...i,s)}};let nt=null;const at=new Image;at.src=\\\\\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-width='1.3' d='M9.18613 3.09999H6.81377M9.18613 12.9H7.55288c-3.08678 0-5.35171-2.99581-4.60305-6.08843l.3054-1.26158M14.7486 2.1721l-.5931 2.45c-.132.54533-.6065.92789-1.1508.92789h-2.2993c-.77173 0-1.33797-.74895-1.1508-1.5221l.5931-2.45c.132-.54533.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.74896 1.1508 1.52211Zm-8.3033 0-.59309 2.45c-.13201.54533-.60646.92789-1.15076.92789H2.4021c-.7717 0-1.33793-.74895-1.15077-1.5221l.59309-2.45c.13201-.54533.60647-.9279 1.15077-.9279h2.29935c.77169 0 1.33792.74896 1.15076 1.52211Zm8.3033 9.8-.5931 2.45c-.132.5453-.6065.9279-1.1508.9279h-2.2993c-.77173 0-1.33797-.749-1.1508-1.5221l.5931-2.45c.132-.5453.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.7489 1.1508 1.5221Z'/%3E%3C/svg%3E %3C/svg%3E\\\\\\\";const ot=[\\\\\\\"custom_obsidian\\\\\\\",\\\\\\\"custom_obsidian_dark\\\\\\\",\\\\\\\"custom_milk_white\\\\\\\",\\\\\\\"obsidian_dark\\\\\\\",\\\\\\\"obsidian\\\\\\\",\\\\\\\"milk_white\\\\\\\"],lt={\\\\\\\"easy positive\\\\\\\":\\\\\\\"green\\\\\\\",\\\\\\\"easy negative\\\\\\\":\\\\\\\"red\\\\\\\",\\\\\\\"easy promptList\\\\\\\":\\\\\\\"cyan\\\\\\\",\\\\\\\"easy promptLine\\\\\\\":\\\\\\\"cyan\\\\\\\",\\\\\\\"easy promptConcat\\\\\\\":\\\\\\\"cyan\\\\\\\",\\\\\\\"easy promptReplace\\\\\\\":\\\\\\\"cyan\\\\\\\",\\\\\\\"easy forLoopStart\\\\\\\":\\\\\\\"blue\\\\\\\",\\\\\\\"easy forLoopEnd\\\\\\\":\\\\\\\"blue\\\\\\\",\\\\\\\"easy whileLoopStart\\\\\\\":\\\\\\\"blue\\\\\\\",\\\\\\\"easy whileLoopEnd\\\\\\\":\\\\\\\"blue\\\\\\\",\\\\\\\"easy loadImagesForLoop\\\\\\\":\\\\\\\"blue\\\\\\\"};let rt=LGraphCanvas.node_colors,dt=null,ut=null,ct=null,At=new it;for(let Aa in Fe)pt=Fe[Aa],fe.ui.settings.settingsLookup[pt.id]||fe.ui.settings.addSetting(pt);var pt;function ht(e,t,i,s,n,a){var o,l,r;t.strokeStyle=s,t.fillStyle=n;const d=LiteGraph.NODE_TITLE_HEIGHT,{low_quality:u}=this,{collapsed:c}=e.flags,A=e.renderingShape,{title_mode:p}=e.constructor,h=p!=LiteGraph.TRANSPARENT_TITLE\\\\u0026\\\\u0026p!=LiteGraph.NO_TITLE,m=At;m.set(e.boundingRect),m[0]-=e.pos[0],m[1]-=e.pos[1];let f=t.globalAlpha;if(t.lineWidth=1,t.beginPath(),A==LiteGraph.BOX_SHAPE||u?t.fillRect(m[0],m[1],m[2],m[3]):A==LiteGraph.ROUND_SHAPE||A==LiteGraph.CARD_SHAPE?t.roundRect(m[0],m[1],m[2],m[3],A==LiteGraph.CARD_SHAPE?[this.round_radius,this.round_radius,0,0]:[this.round_radius]):A==LiteGraph.CIRCLE_SHAPE\\\\u0026\\\\u0026t.arc(.5*i[0],.5*i[1],.5*i[0],0,2*Math.PI),t.strokeStyle=LiteGraph.WIDGET_OUTLINE_COLOR,t.stroke(),t.strokeStyle=s,t.fill(),e.has_errors\\\\u0026\\\\u0026!LiteGraph.use_legacy_node_error_indicator\\\\u0026\\\\u0026Be(t,m,{shape:A,title_mode:p,title_height:d,padding:12,color:LiteGraph.NODE_ERROR_COLOUR,collapsed:c,thickness:10}),!c\\\\u0026\\\\u0026h\\\\u0026\\\\u0026(t.shadowColor=\\\\\\\"transparent\\\\\\\",t.fillStyle=\\\\\\\"rgba(0,0,0,0.2)\\\\\\\",t.fillRect(0,-1,m[2],2)),t.shadowColor=\\\\\\\"transparent\\\\\\\",e.onDrawBackground\\\\u0026\\\\u0026e.onDrawBackground(t,this,this.canvas,this.graph_mouse),h||p==LiteGraph.TRANSPARENT_TITLE){const s=\\\\\\\"dark\\\\\\\"==function(e){let t=e.replace(\\\\\\\"#\\\\\\\",\\\\\\\"\\\\\\\");return i=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),n=parseInt(t.substring(4,6),16),.299*i+.587*s+.114*n\\\\u003e127.5?\\\\\\\"light\\\\\\\":\\\\\\\"dark\\\\\\\";var i,s,n}((null==e?void 0:e.color)||\\\\\\\"#ffffff\\\\\\\");e.drawTitleBarBackground(t,{scale:this.ds.scale,low_quality:u});let n=!1;LiteGraph.node_box_coloured_by_mode\\\\u0026\\\\u0026LiteGraph.NODE_MODES_COLORS[e.mode]\\\\u0026\\\\u0026(n=LiteGraph.NODE_MODES_COLORS[e.mode]),LiteGraph.node_box_coloured_when_on\\\\u0026\\\\u0026(n=e.action_triggered?\\\\\\\"#FFF\\\\\\\":e.execute_triggered?\\\\\\\"#AAA\\\\\\\":n);let l=10;if(e.onDrawTitleBox)e.onDrawTitleBox(t,d,i,this.ds.scale);else if([LiteGraph.ROUND_SHAPE,LiteGraph.CIRCLE_SHAPE,LiteGraph.CARD_SHAPE].includes(A))if(u\\\\u0026\\\\u0026(t.fillStyle=\\\\\\\"black\\\\\\\",t.beginPath(),t.arc(.5*d,-.5*d,.5*l+1,0,2*Math.PI),t.fill()),e.subgraph\\\\u0026\\\\u0026!e.skip_subgraph_button)t.save(),t.fillStyle=\\\\\\\"#3b82f6\\\\\\\",t.beginPath(),t.roundRect(6,-24.5,22,20,5),t.fill(),u||(t.translate(25,23),t.scale(-1.5,1.5),t.drawImage(at,0,-d,l,l)),t.restore();else{const i=s?\\\\\\\"#ffffff\\\\\\\":LiteGraph.NODE_SELECTED_TITLE_COLOR,o=s?\\\\\\\"#eeeeee\\\\\\\":e.boxcolor||n||LiteGraph.NODE_DEFAULT_BOXCOLOR;t.fillStyle=a?i:o,t.beginPath(),t.fillRect(10,0-1.05*l-1,1.1*l,.125*l),t.fillRect(10,0-1.45*l-1,1.1*l,.125*l),t.fillRect(10,0-1.85*l-1,1.1*l,.125*l)}else u\\\\u0026\\\\u0026(t.fillStyle=\\\\\\\"black\\\\\\\",t.fillRect(.5*(d-l)-1,-.5*(d+l)-1,l+2,l+2)),t.fillStyle=e.renderingBoxColor,t.fillRect(.5*(d-l),-.5*(d+l),l,l);if(t.globalAlpha=f,e.onDrawTitleText\\\\u0026\\\\u0026e.onDrawTitleText(t,d,i,this.ds.scale,this.title_text_font,a),!u){t.font=this.title_text_font;const i=e.getTitle()??`\\u274c ${e.type}`,n=String(i)+(e.pinned?\\\\\\\"\\ud83d\\udccc\\\\\\\":\\\\\\\"\\\\\\\");n\\\\u0026\\\\u0026(t.fillStyle=a?s?\\\\\\\"#ffffff\\\\\\\":LiteGraph.NODE_SELECTED_TITLE_COLOR:s?\\\\\\\"#ffffff\\\\\\\":e.constructor.title_text_color||this.node_title_color,e.flags.collapsed?(t.textAlign=\\\\\\\"left\\\\\\\",t.measureText(n),t.fillText(n.substr(0,20),d,LiteGraph.NODE_TITLE_TEXT_Y-d),t.textAlign=\\\\\\\"left\\\\\\\"):(t.textAlign=\\\\\\\"left\\\\\\\",t.fillText(n,d,LiteGraph.NODE_TITLE_TEXT_Y-d)))}null==(o=e.onDrawTitle)||o.call(e,t)}if(null==e?void 0:e.strokeStyles){for(const i of Object.values(e.strokeStyles)){const s=i.call(e);s\\\\u0026\\\\u0026Be(t,m,{shape:A,title_height:d,title_mode:p,collapsed:c,...s})}null==e||e.drawProgressBar(t)}else if(a){null==(l=e.onBounding)||l.call(e,m),p==LiteGraph.TRANSPARENT_TITLE\\\\u0026\\\\u0026(m[1]-=d,m[3]+=d),t.lineWidth=2,t.globalAlpha=.8,t.beginPath();let n=0,a=0,o=1;A==LiteGraph.BOX_SHAPE?t.rect(n+m[0],n+m[1],a+m[2],a+m[3]):A==LiteGraph.ROUND_SHAPE||A==LiteGraph.CARD_SHAPE\\\\u0026\\\\u0026e.flags.collapsed?t.roundRect(n+m[0],n+m[1],a+m[2],a+m[3],[this.round_radius*o]):A==LiteGraph.CARD_SHAPE?t.roundRect(n+m[0],n+m[1],a+m[2],a+m[3],[this.round_radius*o,o,this.round_radius*o,o]):A==LiteGraph.CIRCLE_SHAPE\\\\u0026\\\\u0026t.arc(.5*i[0],.5*i[1],.5*i[0]+6,0,2*Math.PI),t.strokeStyle=LiteGraph.NODE_BOX_OUTLINE_COLOR,t.stroke(),t.strokeStyle=s,t.globalAlpha=1}null==(r=e.drawProgressBar)||r.call(e,t),e.execute_triggered\\\\u003e0\\\\u0026\\\\u0026e.execute_triggered--,e.action_triggered\\\\u003e0\\\\u0026\\\\u0026e.action_triggered--}function mt(e,t,i,s,n){return new LiteGraph.ContextMenu(LiteGraph.NODE_MODES,{event:i,callback:function(e){if(!n)return;var t=Object.values(LiteGraph.NODE_MODES).indexOf(e),i=function(e){t\\\\u003e=0\\\\u0026\\\\u0026LiteGraph.NODE_MODES[t]?e.changeMode(t):e.changeMode(LiteGraph.ALWAYS),nt||(nt=Ke()),nt.update()},s=LGraphCanvas.active_canvas;if(!s.selected_nodes||Object.keys(s.selected_nodes).length\\\\u003c=1)i(n);else for(var a in s.selected_nodes)i(s.selected_nodes[a])},parentMenu:s,node:n}),!1}function ft(e,t,i,s,n){if(!n)throw\\\\\\\"no node for color\\\\\\\";var a=[];for(var o in a.push({value:null,content:\\\\\\\"\\\\u003cspan style='display: block; padding-left: 4px;'\\\\u003eNo color\\\\u003c/span\\\\u003e\\\\\\\"}),LGraphCanvas.node_colors){var l=LGraphCanvas.node_colors[o];e={value:o,content:\\\\\\\"\\\\u003cspan style='display: block; color: #999; padding-left: 4px; border-left: 8px solid \\\\\\\"+l.color+\\\\\\\"; background-color:\\\\\\\"+l.bgcolor+\\\\\\\"'\\\\u003e\\\\\\\"+o+\\\\\\\"\\\\u003c/span\\\\u003e\\\\\\\"};a.push(e)}return new LiteGraph.ContextMenu(a,{event:i,callback:function(e){if(!n)return;var t=e.value?LGraphCanvas.node_colors[e.value]:null,i=function(e){t?e.constructor===LiteGraph.LGraphGroup?e.color=t.groupcolor:(e.color=t.color,e.bgcolor=t.bgcolor):(delete e.color,delete e.bgcolor),nt||(nt=Ke()),nt.update()},s=LGraphCanvas.active_canvas;if(!s.selected_nodes||Object.keys(s.selected_nodes).length\\\\u003c=1)i(n);else for(var a in s.selected_nodes)i(s.selected_nodes[a]);n.setDirtyCanvas(!0,!0)},parentMenu:s,node:n}),!1}function gt(e,t,i,s,n){var a=e.property||\\\\\\\"title\\\\\\\",o=n[a],l=document.createElement(\\\\\\\"div\\\\\\\");l.is_modified=!1,l.className=\\\\\\\"graphdialog\\\\\\\",l.innerHTML=\\\\\\\"\\\\u003cspan class='name'\\\\u003e\\\\u003c/span\\\\u003e\\\\u003cinput autofocus type='text' class='value'/\\\\u003e\\\\u003cbutton\\\\u003eOK\\\\u003c/button\\\\u003e\\\\\\\",l.close=function(){l.parentNode\\\\u0026\\\\u0026l.parentNode.removeChild(l)},l.querySelector(\\\\\\\".name\\\\\\\").innerText=a;var r=l.querySelector(\\\\\\\".value\\\\\\\");r\\\\u0026\\\\u0026(r.value=o,r.addEventListener(\\\\\\\"blur\\\\\\\",(function(e){this.focus()})),r.addEventListener(\\\\\\\"keydown\\\\\\\",(function(e){if(l.is_modified=!0,27==e.keyCode)l.close();else if(13==e.keyCode)h();else if(13!=e.keyCode\\\\u0026\\\\u0026\\\\\\\"textarea\\\\\\\"!=e.target.localName)return;e.preventDefault(),e.stopPropagation()})));var d=LGraphCanvas.active_canvas.canvas,u=d.getBoundingClientRect(),c=-20,A=-20;u\\\\u0026\\\\u0026(c-=u.left,A-=u.top),event?(l.style.left=event.clientX+c+\\\\\\\"px\\\\\\\",l.style.top=event.clientY+A+\\\\\\\"px\\\\\\\"):(l.style.left=.5*d.width+c+\\\\\\\"px\\\\\\\",l.style.top=.5*d.height+A+\\\\\\\"px\\\\\\\"),l.querySelector(\\\\\\\"button\\\\\\\").addEventListener(\\\\\\\"click\\\\\\\",h),d.parentNode.appendChild(l),r\\\\u0026\\\\u0026r.focus();var p=null;function h(){r\\\\u0026\\\\u0026function(t){\\\\\\\"Number\\\\\\\"==e.type?t=Number(t):\\\\\\\"Boolean\\\\\\\"==e.type\\\\u0026\\\\u0026(t=Boolean(t));n[a]=t,l.parentNode\\\\u0026\\\\u0026l.parentNode.removeChild(l);n.setDirtyCanvas(!0,!0),nt||(nt=Ke());nt.update()}(r.value)}l.addEventListener(\\\\\\\"mouseleave\\\\\\\",(function(e){LiteGraph.dialog_close_on_mouse_leave\\\\u0026\\\\u0026!l.is_modified\\\\u0026\\\\u0026LiteGraph.dialog_close_on_mouse_leave\\\\u0026\\\\u0026(p=setTimeout(l.close,LiteGraph.dialog_close_on_mouse_leave_delay))})),l.addEventListener(\\\\\\\"mouseenter\\\\\\\",(function(e){LiteGraph.dialog_close_on_mouse_leave\\\\u0026\\\\u0026p\\\\u0026\\\\u0026clearTimeout(p)}))}(e=\\\\u003e{try{fe.registerExtension(e)}catch(t){}})({name:\\\\\\\"Comfy.EasyUse.UI\\\\\\\",init(){var e,t;const i=\\\\\\\"Comfy.CustomColorPalettes\\\\\\\",s=\\\\\\\"Comfy.Settings.Comfy.CustomColorPalettes\\\\\\\";if(dt||(dt=xe(i,s)),ut||(ut=xe(\\\\\\\"Comfy.ColorPalette\\\\\\\",\\\\\\\"Comfy.Settings.Comfy.ColorPalette\\\\\\\")||\\\\\\\"dark\\\\\\\"),(!(null==(e=null==dt?void 0:dt.obsidian)?void 0:e.version)||dt.obsidian.version\\\\u003cVe.ColorPalette.version)\\\\u0026\\\\u0026(dt.obsidian=Ve.ColorPalette,dt.obsidian_dark=je.ColorPalette,ke(i,dt,s)),(!dt||!(null==(t=null==dt?void 0:dt.milk_white)?void 0:t.version)||dt.milk_white.version\\\\u003cWe.ColorPalette.version)\\\\u0026\\\\u0026(dt.milk_white=We.ColorPalette,ke(i,dt,s)),ot.includes(ut)){switch(document.body.classList+=\\\\\\\" comfyui-easyuse\\\\\\\",function(e,t=!1){const i=document.createElement(\\\\\\\"link\\\\\\\");i.rel=\\\\\\\"preconnect\\\\\\\",i.href=e,t\\\\u0026\\\\u0026(i.crossorigin=\\\\\\\"\\\\\\\"),document.head.appendChild(i)}(\\\\\\\"https://fonts.googleapis.com\\\\\\\",!0),function(e,t=!0,i=\\\\\\\"ComfyUI-Easy-Use\\\\\\\"){const s=document.createElement(\\\\\\\"link\\\\\\\");s.rel=\\\\\\\"stylesheet\\\\\\\",s.type=\\\\\\\"text/css\\\\\\\",s.href=t?`extensions/${i}/${e}`:e,document.head.appendChild(s)}(\\\\\\\"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700\\\\u0026amp;family=JetBrains+Mono\\\\u0026amp;display=swap\\\\\\\",!1),ut){case\\\\\\\"obsidian\\\\\\\":case\\\\\\\"obsidian_dark\\\\\\\":case\\\\\\\"custom_obsidian\\\\\\\":case\\\\\\\"custom_obsidian_dark\\\\\\\":case\\\\\\\"dark\\\\\\\":LGraphCanvas.node_colors=Ve.NODE_COLORS;break;case\\\\\\\"custom_milk_white\\\\\\\":case\\\\\\\"milk_white\\\\\\\":case\\\\\\\"light\\\\\\\":LGraphCanvas.node_colors=We.NODE_COLORS}rt=LGraphCanvas.node_colors,LiteGraph.NODE_TEXT_SIZE=13,LGraphCanvas.prototype.drawNodeShape=st(LGraphCanvas.prototype.drawNodeShape,ht)}else document.body.classList.remove(\\\\\\\"comfyui-easyuse\\\\\\\");LGraphCanvas.onMenuNodeMode=st(LGraphCanvas.onMenuNodeMode,mt),LGraphCanvas.onMenuNodeColors=st(LGraphCanvas.onMenuNodeColors,ft),LGraphCanvas.onShowPropertyEditor=st(LGraphCanvas.onShowPropertyEditor,gt)},async setup(){var e;Object.assign(fe.canvas.default_connection_color_byType,Te),Object.assign(LGraphCanvas.link_type_colors,Te),\\\\\\\"custom_milk_white\\\\\\\"==ut\\\\u0026\\\\u0026document.body.classList.remove(Ie),fe.ui.settings.addEventListener(\\\\\\\"Comfy.ColorPalette.change\\\\\\\",(async({detail:e})=\\\\u003e{(null==e?void 0:e.value)\\\\u0026\\\\u0026(null==e?void 0:e.oldValue)\\\\u0026\\\\u0026(await Xe(1),Object.assign(fe.canvas.default_connection_color_byType,Te),Object.assign(LGraphCanvas.link_type_colors,Te)),\\\\\\\"custom_milk_white\\\\\\\"==e.value\\\\u0026\\\\u0026document.body.classList.remove(Ie)})),setTimeout((e=\\\\u003evt(xe(\\\\\\\"Comfy.UseNewMenu\\\\\\\")||\\\\\\\"Disabled\\\\\\\")),1);const t=null==(e=fe.ui.settings.settingsLookup)?void 0:e[\\\\\\\"Comfy.UseNewMenu\\\\\\\"];t\\\\u0026\\\\u0026(t.onChange=e=\\\\u003evt(e)),ge.addEventListener(\\\\\\\"easyuse-toast\\\\\\\",(e=\\\\u003e{const t=e.detail.content,i=e.detail.type,s=e.detail.duration;i?Ye.show({id:`toast-${i}`,icon:Ye[i+\\\\\\\"_icon\\\\\\\"],content:`${t}`,duration:s||3e3}):Ye.info(t,s)}))},async nodeCreated(e){if(lt.hasOwnProperty(e.comfyClass)){const t=lt[e.comfyClass],i=rt[t];if(!i)return;!e.bgcolor\\\\u0026\\\\u0026i.bgcolor\\\\u0026\\\\u0026(e.bgcolor=i.bgcolor),!e.color\\\\u0026\\\\u0026i.color\\\\u0026\\\\u0026(e.color=i.color)}}});const vt=e=\\\\u003e{var t;const i=(null==(t=document.getElementById(\\\\\\\"crystools-root\\\\\\\"))?void 0:t.children)||null,s=xe(\\\\\\\"Comfy.Workflow.WorkflowTabsPosition\\\\\\\",null);if((null==i?void 0:i.length)\\\\u003e0\\\\u0026\\\\u0026s)if(ct||(ct=document.getElementById(\\\\\\\"MonitorUI\\\\\\\")),\\\\\\\"Disabled\\\\\\\"==e){document.getElementById(\\\\\\\"crystools-root\\\\\\\").appendChild(ct)}else{let e=document.getElementById(\\\\\\\"crystools-root-easyuse\\\\\\\");if(e)e.appendChild(ct);else{const e=document.getElementsByClassName(\\\\\\\"comfyui-menu-right\\\\\\\");e.length\\\\u003e0\\\\u0026\\\\u0026e[0].before(ve(\\\\\\\"div\\\\\\\",{id:\\\\\\\"crystools-root-easyuse\\\\\\\"},ct))}}};let yt={};const wt=(e,t)=\\\\u003ee.widgets.find((e=\\\\u003ee.name===t)),bt=(e,t,i=!1,s=\\\\\\\"\\\\\\\")=\\\\u003e{var n;if(!t||((e,t,i)=\\\\u003e!!e.inputs\\\\u0026\\\\u0026e.inputs.some((e=\\\\u003ee.name===t\\\\u0026\\\\u0026e.link\\\\u0026\\\\u0026!i)))(e,t.name,i))return;yt[t.name]||(yt[t.name]={origType:t.type,origComputeSize:t.computeSize});const a=e.size;t.hidden=!i,t.type=i?yt[t.name].origType:\\\\\\\"easyHidden\\\\\\\"+s,t.computeSize=i?yt[t.name].origComputeSize:()=\\\\u003e[0,-4],null==(n=t.linkedWidgets)||n.forEach((s=\\\\u003ebt(e,s,\\\\\\\":\\\\\\\"+t.name,i)));const o=i?Math.max(e.computeSize()[1],a[1]):e.size[1];e.setSize([e.size[0],o])},_t=(e,t=0)=\\\\u003e{var i,s;if(e)return(null==(i=e.widgets)?void 0:i[t])?e.widgets[t].value:e.widgets_values?null==(s=e.widgets_values)?void 0:s[t]:void 0},St=e=\\\\u003ee.setSize([e.size[0],e.computeSize()[1]]),xt=(e,t)=\\\\u003egraph.getNodeById(e),Lt=e=\\\\u003e{var t;try{return Object.values(null==(t=null==graph?void 0:graph.list_of_graphcanvas[0])?void 0:t.selected_nodes)}catch(i){return[]}};function kt(e,t,i){return e+(s=i,(.5-.5*Math.cos(Math.PI*s))*(t-e));var s}const Et=(e,t=!0)=\\\\u003e{var i,s;const n=(null==(s=null==(i=e.graph)?void 0:i.list_of_graphcanvas)?void 0:s[0])||null;if(!n)return;const[a,o]=e.pos,[l,r]=e.size;(([e,t],i)=\\\\u003e{const s=i.ds,n=document.body.clientWidth,a=document.body.clientHeight,o=s.scale,l=.5*n/o-e,r=.5*a/o-t,d=Date.now()+250,u=s.offset[0],c=s.offset[1],A=()=\\\\u003e{const e=d-Date.now();if(!(Date.now()\\\\u003cd))return s.offset[0]=l,s.offset[1]=r,void i.setDirty(!0,!0);requestAnimationFrame(A);const t=1-e/250;s.offset[0]=kt(u,l,t),s.offset[1]=kt(c,r,t),i.setDirty(!0,!0)};requestAnimationFrame(A)})([a+l/2,o+r/2],n),t\\\\u0026\\\\u0026n.selectNode(e)},Nt=e=\\\\u003e{const t=xt(e);t\\\\u0026\\\\u0026Et(t)},Ct=(e,t=(()=\\\\u003egraph.links??[])())=\\\\u003et[e],It=e=\\\\u003ee.toLowerCase().replace(/_./g,(e=\\\\u003ee.replace(\\\\\\\"_\\\\\\\",\\\\\\\"\\\\\\\").toUpperCase())),Tt=e=\\\\u003e\\\\\\\"easy getNode\\\\\\\"===e.type,Ot=e=\\\\u003e\\\\\\\"easy setNode\\\\\\\"===e.type,Mt=e=\\\\u003eTt(e)||Ot(e),Dt=(e=(()=\\\\u003egraph._nodes??[])())=\\\\u003ee.filter((e=\\\\u003eMt(e)));let Rt={},Pt={};const Gt=(e,t,i=0)=\\\\u003e{e.widgets_values||(e.widgets_values=[]),e.widgets_values[i]=t,e.widgets[i].value=t},zt=e=\\\\u003egraph.add(e),Vt=e=\\\\u003egraph.remove(e),jt=(e,t=0)=\\\\u003e{var i,s;if(\\\\\\\"Reroute\\\\\\\"!==e.type)return[e,t];const n=e,a=null==(s=null==(i=n.inputs)?void 0:i[0])?void 0:s.link;if(!a)return[n,t];const o=Ct(a);if(!o)return[n,t];const l=xt(o.origin_id);return l?(setTimeout((()=\\\\u003e{Vt(n)})),jt(l,o.origin_slot)):[n,t]},Ut=e=\\\\u003e{var t,i,s;if(\\\\\\\"Reroute\\\\\\\"!==e.type)return e;const n=e,a=null==(i=null==(t=n.outputs)?void 0:t[0])?void 0:i.links;if(!a)return n;const o=a[0];if(!o)return n;const l=Ct(o);if(!l)return n;const r=xt(l.target_id);return r?(1===(null==(s=n.outputs[0].links)?void 0:s.length)\\\\u0026\\\\u0026setTimeout((()=\\\\u003e{Vt(n)})),Ut(r)):n},Wt=(e,t=\\\\\\\"width\\\\\\\")=\\\\u003e{var i;const s=e[0],n=\\\\\\\"width\\\\\\\"==t?0:1,a=null==(i=s.size)?void 0:i[n];a\\\\u0026\\\\u0026(e.forEach((e=\\\\u003e{e.size[n]=a})),LGraphCanvas.active_canvas.setDirty(!0,!0))},Ft=(e,t=\\\\\\\"horizontal\\\\\\\")=\\\\u003e{if(e.length\\\\u003c3)return;const i=\\\\\\\"horizontal\\\\\\\"===t?0:1;e.sort(((e,t)=\\\\u003ee.pos[i]-t.pos[i]));const s=Math.min(...e.map((e=\\\\u003ee.pos[i]))),n=(Math.max(...e.map((e=\\\\u003ee.pos[i]+e.size[i])))-s-e.reduce(((e,t)=\\\\u003ee+t.size[i]),0))/(e.length-1);let a=s;e.forEach((e=\\\\u003e{e.pos[i]=a,a+=e.size[i]+n})),LGraphCanvas.active_canvas.setDirty(!0,!0)},Xt=\\\\\\\"$$canvas-image-preview\\\\\\\";const Zt=\\\\\\\"$$comfy_animation_preview\\\\\\\";const Ht=\\\\\\\"video_upload\\\\\\\",qt=(e,t)=\\\\u003e{if(!e)return!1;const i=(e=\\\\u003e{var t;return null==(t=e.constructor)?void 0:t.nodeData})(e);if(!(null==i?void 0:i.input))return!1;return(e=\\\\u003e{if(!e)return[];const{required:t,optional:i}=e,s=[];if(t)for(const n of Object.values(t))s.push(n);if(i)for(const n of Object.values(i))s.push(n);return s})(i.input).some((e=\\\\u003e{var i;return null==(i=null==e?void 0:e[1])?void 0:i[t]}))};const Yt=e=\\\\u003enull==e?void 0:e.id.toString(),Kt=e=\\\\u003efe.nodeOutputs[Yt(e)],Jt=e=\\\\u003efe.nodePreviewImages[Yt(e)];function Bt(e){var t;const i=Jt(e),s=Kt(e);if((null==i?void 0:i.length)\\\\u0026\\\\u0026!e.isOutputFinal)return i;if(!(null==(t=null==s?void 0:s.images)?void 0:t.length))return(null==i?void 0:i.length)?i:void 0;const n=fe.getRandParam(),a=(e=\\\\u003ee.animatedImages?\\\\\\\"\\\\\\\":fe.getPreviewFormatParam())(e);return s.images.map((e=\\\\u003e{const t=new URLSearchParams(e);return ge.apiURL(`/view?${t}${a}${n}`)}))}const Qt=\\\\\\\"video-preview\\\\\\\",$t={playsInline:!0,controls:!0,loop:!0},ei=(e,t)=\\\\u003e{const{loadElement:i,onLoaded:s,onFailedLoading:n}=t,a=async(e,t=0)=\\\\u003e{const s=await Promise.race([i(e),(n=8192,new Promise((e=\\\\u003esetTimeout((()=\\\\u003ee(null)),n))))]);var n;return null===s\\\\u0026\\\\u0026t\\\\u003c1?a(e,t+1):s};return{showPreview:function(){var i;if(e.isLoading)return;const o=(null==(i=e.videos)?void 0:i.length)\\\\u003e0?e.videos.map((e=\\\\u003e{return t=e,ge.apiURL(`/view?filename=${encodeURIComponent(t.filename)}\\\\u0026type=${t.type}\\\\u0026subfolder=${t.subfolder}\\\\u0026rand=${Math.random()}`);var t})):Bt(e);(null==o?void 0:o.length)\\\\u0026\\\\u0026((null==t?void 0:t.block)\\\\u0026\\\\u0026(e.isLoading=!0),(async e=\\\\u003ePromise.all(e.map((e=\\\\u003ea(e)))))(o).then((e=\\\\u003e{const t=e.filter((e=\\\\u003enull!==e));t.length\\\\u0026\\\\u0026(null==s||s(t))})).catch((()=\\\\u003e{null==n||n()})).finally((()=\\\\u003e{e.isLoading=!1})))}}},ti=e=\\\\u003e{e.previewMediaType=\\\\\\\"image\\\\\\\";return ei(e,{loadElement:e=\\\\u003enew Promise((t=\\\\u003e{const i=new Image;i.onload=()=\\\\u003et(i),i.onerror=()=\\\\u003et(null),i.src=e})),onLoaded:t=\\\\u003e{e.imageIndex=null,e.imgs=t},onFailedLoading:()=\\\\u003e{e.imgs=void 0}})},ii=e=\\\\u003e{e.previewMediaType=\\\\\\\"video\\\\\\\";return ei(e,{loadElement:e=\\\\u003enew Promise((t=\\\\u003e{const i=document.createElement(\\\\\\\"video\\\\\\\");Object.assign(i,$t),i.onloadeddata=()=\\\\u003et(i),i.onerror=()=\\\\u003et(null),i.src=e})),onLoaded:t=\\\\u003e{const i=t[0];var s,n;i\\\\u0026\\\\u0026(e.videoContainer||(e.imgs\\\\u0026\\\\u0026(e.imgs=void 0),e.videoContainer=(()=\\\\u003e{const e=document.createElement(\\\\\\\"div\\\\\\\");return e.classList.add(\\\\\\\"comfy-img-preview\\\\\\\"),e})(),e.videoContainer.style.pointerEvents=\\\\\\\"auto\\\\\\\",s=e.videoContainer,(null==(n=e.widgets)?void 0:n.some((e=\\\\u003ee.name===Qt)))||e.addDOMWidget(Qt,\\\\\\\"video\\\\\\\",s,{hideOnZoom:!1,serialize:!1})),e.videoContainer.replaceChildren(i),e.imageOffset=64)},onFailedLoading:()=\\\\u003e{e.videoContainer=void 0}})};function si(e,t){var i;if(e.flags.collapsed)return;const{showCanvasImagePreview:s,removeCanvasImagePreview:n}=function(){const e=et();return{showCanvasImagePreview:function(t){var i;(null==(i=t.imgs)?void 0:i.length)\\\\u0026\\\\u0026t.widgets\\\\u0026\\\\u0026(t.widgets.find((e=\\\\u003ee.name===Xt))||e(t,{type:\\\\\\\"IMAGE_PREVIEW\\\\\\\",name:Xt}))},removeCanvasImagePreview:function(e){var t,i;if(!e.widgets)return;const s=e.widgets.findIndex((e=\\\\u003ee.name===Xt));s\\\\u003e-1\\\\u0026\\\\u0026(null==(i=(t=e.widgets[s]).onRemove)||i.call(t),e.widgets.splice(s,1))}}}(),{showVideoPreview:a,removeVideoPreview:o}={showVideoPreview:function(e){var t;(null==(t=e.video)?void 0:t.length)\\\\u0026\\\\u0026e.widgets\\\\u0026\\\\u0026e.widgets.findIndex((e=\\\\u003ee.name===Zt))},removeVideoPreview:function(e){var t,i;if(!e.widgets)return;const s=e.widgets.findIndex((e=\\\\u003e\\\\\\\"video-preview\\\\\\\"===e.name));s\\\\u003e-1\\\\u0026\\\\u0026(null==(i=(t=e.widgets[s]).onRemove)||i.call(t),e.widgets.splice(s,1))}},l=Kt(e),r=Jt(e),d=l\\\\u0026\\\\u0026(e.images!==l.images||e.videos!==l.videos),u=r\\\\u0026\\\\u0026e.preview!==r;if(u\\\\u0026\\\\u0026(e.isOutputFinal=!1,e.isTwiceRendered\\\\u0026\\\\u0026(e.isTwiceRendered=!1),e.preview=r),d\\\\u0026\\\\u0026(e.isOutputFinal=!0,l.images\\\\u0026\\\\u0026(e.images=l.images),l.videos\\\\u0026\\\\u0026(e.videos=l.videos)),d||u){e.animatedImages=null==l?void 0:l.animated;const t=e.animatedImages\\\\u0026\\\\u0026l.images.some((e=\\\\u003e{var t;return null==(t=e.filename)?void 0:t.includes(\\\\\\\"webp\\\\\\\")})),i=e.animatedImages\\\\u0026\\\\u0026!t||!!(c=this)\\\\u0026\\\\u0026(!!c.videoContainer||!!c.widgets\\\\u0026\\\\u0026qt(c,Ht));d\\\\u0026\\\\u0026(null==l?void 0:l.videos)||i?ii(e).showPreview():ti(e).showPreview()}var c;e.id!=fe.runningNodeId\\\\u0026\\\\u0026!e.isTwiceRendered\\\\u0026\\\\u0026e.isOutputFinal\\\\u0026\\\\u0026(e.videos?ii(e.videos):ti(e).showPreview(),e.isTwiceRendered=!0),(null==(i=e.imgs)?void 0:i.length)\\\\u0026\\\\u0026(e.animatedImages||d\\\\u0026\\\\u0026(null==l?void 0:l.videos)?(n(e),a(e)):(o(e),s(e)))}const ni=[\\\\\\\"rescale_after_model\\\\\\\",\\\\\\\"rescale\\\\\\\",\\\\\\\"lora_name\\\\\\\",\\\\\\\"upscale_method\\\\\\\",\\\\\\\"image_output\\\\\\\",\\\\\\\"add_noise\\\\\\\",\\\\\\\"info\\\\\\\",\\\\\\\"sampler_name\\\\\\\",\\\\\\\"ckpt_B_name\\\\\\\",\\\\\\\"ckpt_C_name\\\\\\\",\\\\\\\"save_model\\\\\\\",\\\\\\\"refiner_ckpt_name\\\\\\\",\\\\\\\"num_loras\\\\\\\",\\\\\\\"num_controlnet\\\\\\\",\\\\\\\"mode\\\\\\\",\\\\\\\"toggle\\\\\\\",\\\\\\\"resolution\\\\\\\",\\\\\\\"ratio\\\\\\\",\\\\\\\"target_parameter\\\\\\\",\\\\\\\"input_count\\\\\\\",\\\\\\\"replace_count\\\\\\\",\\\\\\\"downscale_mode\\\\\\\",\\\\\\\"range_mode\\\\\\\",\\\\\\\"text_combine_mode\\\\\\\",\\\\\\\"input_mode\\\\\\\",\\\\\\\"lora_count\\\\\\\",\\\\\\\"ckpt_count\\\\\\\",\\\\\\\"conditioning_mode\\\\\\\",\\\\\\\"preset\\\\\\\",\\\\\\\"use_tiled\\\\\\\",\\\\\\\"use_batch\\\\\\\",\\\\\\\"num_embeds\\\\\\\",\\\\\\\"easing_mode\\\\\\\",\\\\\\\"guider\\\\\\\",\\\\\\\"scheduler\\\\\\\",\\\\\\\"inpaint_mode\\\\\\\",\\\\\\\"t5_type\\\\\\\",\\\\\\\"rem_mode\\\\\\\",\\\\\\\"encode\\\\\\\",\\\\\\\"method\\\\\\\"],ai=[\\\\\\\"LIGHT - SD1.5 only (low strength)\\\\\\\",\\\\\\\"STANDARD (medium strength)\\\\\\\",\\\\\\\"VIT-G (medium strength)\\\\\\\",\\\\\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\\\\\",\\\\\\\"PLUS (high strength)\\\\\\\",\\\\\\\"PLUS (kolors genernal)\\\\\\\",\\\\\\\"PLUS FACE (portraits)\\\\\\\",\\\\\\\"FULL FACE - SD1.5 only (portraits stronger)\\\\\\\",\\\\\\\"COMPOSITION\\\\\\\"],oi=[\\\\\\\"FACEID\\\\\\\",\\\\\\\"FACEID PLUS - SD1.5 only\\\\\\\",\\\\\\\"FACEID PLUS V2\\\\\\\",\\\\\\\"FACEID PLUS KOLORS\\\\\\\",\\\\\\\"FACEID PORTRAIT (style transfer)\\\\\\\",\\\\\\\"FACEID PORTRAIT UNNORM - SDXL only (strong)\\\\\\\"],li=[\\\\\\\"easy seed\\\\\\\",\\\\\\\"easy latentNoisy\\\\\\\",\\\\\\\"easy wildcards\\\\\\\",\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingNoiseIn\\\\\\\",\\\\\\\"easy preSamplingSdTurbo\\\\\\\",\\\\\\\"easy preSamplingCascade\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",\\\\\\\"easy preSamplingLayerDiffusion\\\\\\\",\\\\\\\"easy fullkSampler\\\\\\\",\\\\\\\"easy fullCascadeKSampler\\\\\\\"],ri=[\\\\\\\"easy fullLoader\\\\\\\",\\\\\\\"easy a1111Loader\\\\\\\",\\\\\\\"easy comfyLoader\\\\\\\",\\\\\\\"easy hyditLoader\\\\\\\",\\\\\\\"easy pixArtLoader\\\\\\\"],di=[\\\\\\\"easy fullkSampler\\\\\\\",\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy kSamplerCustom\\\\\\\",\\\\\\\"easy kSamplerTiled\\\\\\\",\\\\\\\"easy kSamplerLayerDiffusion\\\\\\\",\\\\\\\"easy kSamplerInpainting\\\\\\\",\\\\\\\"easy kSamplerDownscaleUnet\\\\\\\",\\\\\\\"easy kSamplerSDTurbo\\\\\\\",\\\\\\\"easy fullCascadeKSampler\\\\\\\",\\\\\\\"easy cascadeKSampler\\\\\\\"],ui=[\\\\\\\"easy imageSize\\\\\\\",\\\\\\\"easy imageSizeBySide\\\\\\\",\\\\\\\"easy imageSizeByLongerSide\\\\\\\",\\\\\\\"easy imageSizeShow\\\\\\\",\\\\\\\"easy imageRatio\\\\\\\",\\\\\\\"easy imagePixelPerfect\\\\\\\"],ci=[\\\\\\\"easy forLoopStart\\\\\\\",\\\\\\\"easy forLoopEnd\\\\\\\",\\\\\\\"easy whileLoopStart\\\\\\\",\\\\\\\"easy whileLoopEnd\\\\\\\"],Ai=[\\\\\\\"easy anythingIndexSwitch\\\\\\\",\\\\\\\"easy imageIndexSwitch\\\\\\\",\\\\\\\"easy textIndexSwitch\\\\\\\",\\\\\\\"easy conditioningIndexSwitch\\\\\\\"],pi=[\\\\\\\"easy anythingInversedSwitch\\\\\\\"],hi=[\\\\\\\"easy loadImagesForLoop\\\\\\\",...ci,...Ai,...pi],mi={\\\\\\\"easy anythingInversedSwitch\\\\\\\":\\\\\\\"out\\\\\\\",\\\\\\\"easy anythingIndexSwitch\\\\\\\":\\\\\\\"value\\\\\\\",\\\\\\\"easy imageIndexSwitch\\\\\\\":\\\\\\\"image\\\\\\\",\\\\\\\"easy textIndexSwitch\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"easy conditioningIndexSwitch\\\\\\\":\\\\\\\"cond\\\\\\\"};function fi(e,t){var i;const s=e.comfyClass;let n=t.value;switch(t.name){case\\\\\\\"range_mode\\\\\\\":bt(e,wt(e,\\\\\\\"step\\\\\\\"),\\\\\\\"step\\\\\\\"==n),bt(e,wt(e,\\\\\\\"num_steps\\\\\\\"),\\\\\\\"num_steps\\\\\\\"==n),St(e);break;case\\\\\\\"text_combine_mode\\\\\\\":bt(e,wt(e,\\\\\\\"replace_text\\\\\\\"),\\\\\\\"replace\\\\\\\"==n);break;case\\\\\\\"lora_name\\\\\\\":[\\\\\\\"lora_model_strength\\\\\\\",\\\\\\\"lora_clip_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"None\\\\\\\"!==n)));break;case\\\\\\\"resolution\\\\\\\":\\\\\\\"\\u81ea\\u5b9a\\u4e49 x \\u81ea\\u5b9a\\u4e49\\\\\\\"===n\\\\u0026\\\\u0026(t.value=\\\\\\\"width x height (custom)\\\\\\\"),[\\\\\\\"empty_latent_width\\\\\\\",\\\\\\\"empty_latent_height\\\\\\\",\\\\\\\"width\\\\\\\",\\\\\\\"height\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"width x height (custom)\\\\\\\"===n)));break;case\\\\\\\"ratio\\\\\\\":[\\\\\\\"empty_latent_width\\\\\\\",\\\\\\\"empty_latent_height\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"custom\\\\\\\"===n)));break;case\\\\\\\"num_loras\\\\\\\":var a=n+1,o=null==(i=wt(e,\\\\\\\"mode\\\\\\\"))?void 0:i.value;requestAnimationFrame((t=\\\\u003e{for(let i=0;i\\\\u003ca;i++)bt(e,wt(e,\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_name\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_strength\\\\\\\"),\\\\\\\"simple\\\\\\\"===o),[\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_model_strength\\\\\\\",\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_clip_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"simple\\\\\\\"!==o)));for(let i=a;i\\\\u003c99;i++)[\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_name\\\\\\\",\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_strength\\\\\\\",\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_model_strength\\\\\\\",\\\\\\\"lora_\\\\\\\"+i+\\\\\\\"_clip_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1)));St(e)}));break;case\\\\\\\"num_controlnet\\\\\\\":a=n+1,o=wt(e,\\\\\\\"mode\\\\\\\").value;for(let t=0;t\\\\u003ca;t++)[\\\\\\\"controlnet_\\\\\\\"+t,\\\\\\\"controlnet_\\\\\\\"+t+\\\\\\\"_strength\\\\\\\",\\\\\\\"scale_soft_weight_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!0))),[\\\\\\\"start_percent_\\\\\\\"+t,\\\\\\\"end_percent_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"simple\\\\\\\"!==o)));for(let t=a;t\\\\u003c21;t++)[\\\\\\\"controlnet_\\\\\\\"+t,\\\\\\\"controlnet_\\\\\\\"+t+\\\\\\\"_strength\\\\\\\",\\\\\\\"scale_soft_weight_\\\\\\\"+t,\\\\\\\"start_percent_\\\\\\\"+t,\\\\\\\"end_percent_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\\\\\"mode\\\\\\\":switch(null==e?void 0:e.comfyClass){case\\\\\\\"easy loraStack\\\\\\\":a=wt(e,\\\\\\\"num_loras\\\\\\\").value+1,o=n;for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"lora_\\\\\\\"+t+\\\\\\\"_strength\\\\\\\"),\\\\\\\"simple\\\\\\\"===o),[\\\\\\\"lora_\\\\\\\"+t+\\\\\\\"_model_strength\\\\\\\",\\\\\\\"lora_\\\\\\\"+t+\\\\\\\"_clip_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"simple\\\\\\\"!==o)));St(e);break;case\\\\\\\"easy controlnetStack\\\\\\\":a=wt(e,\\\\\\\"num_controlnet\\\\\\\").value+1,o=n;for(let t=0;t\\\\u003ca;t++)[\\\\\\\"start_percent_\\\\\\\"+t,\\\\\\\"end_percent_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"simple\\\\\\\"!==o)));St(e);break;case\\\\\\\"easy icLightApply\\\\\\\":o=n;[\\\\\\\"lighting\\\\\\\",\\\\\\\"remove_bg\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"Foreground\\\\\\\"===o))),bt(e,wt(e,\\\\\\\"source\\\\\\\"),\\\\\\\"Foreground\\\\\\\"!==o),St(e)}break;case\\\\\\\"toggle\\\\\\\":t.type=\\\\\\\"toggle\\\\\\\",t.options={on:\\\\\\\"Enabled\\\\\\\",off:\\\\\\\"Disabled\\\\\\\"};break;case\\\\\\\"t5_type\\\\\\\":[\\\\\\\"clip_name\\\\\\\",\\\\\\\"padding\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"sd3\\\\\\\"==n))),[\\\\\\\"t5_name\\\\\\\",\\\\\\\"device\\\\\\\",\\\\\\\"dtype\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"t5v11\\\\\\\"==n))),St(e);break;case\\\\\\\"preset\\\\\\\":if(\\\\\\\"FLUX.1-dev\\\\\\\"==n\\\\u0026\\\\u0026(t.value=\\\\\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\\\\\"),ai.includes(n)){let t=wt(e,\\\\\\\"use_tiled\\\\\\\");bt(e,wt(e,\\\\\\\"lora_strength\\\\\\\")),bt(e,wt(e,\\\\\\\"provider\\\\\\\"),!![\\\\\\\"REGULAR - FLUX and SD3.5 only (high strength)\\\\\\\"].includes(n)),bt(e,wt(e,\\\\\\\"weight_faceidv2\\\\\\\")),bt(e,wt(e,\\\\\\\"weight_kolors\\\\\\\")),bt(e,wt(e,\\\\\\\"use_tiled\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"sharpening\\\\\\\"),t\\\\u0026\\\\u0026t.value)}else oi.includes(n)\\\\u0026\\\\u0026(bt(e,wt(e,\\\\\\\"weight_faceidv2\\\\\\\"),!![\\\\\\\"FACEID PLUS V2\\\\\\\",\\\\\\\"FACEID PLUS KOLORS\\\\\\\"].includes(n)),bt(e,wt(e,\\\\\\\"weight_kolors\\\\\\\"),!![\\\\\\\"FACEID PLUS KOLORS\\\\\\\"].includes(t.value)),[\\\\\\\"FACEID PLUS KOLORS\\\\\\\",\\\\\\\"FACEID PORTRAIT (style transfer)\\\\\\\",\\\\\\\"FACEID PORTRAIT UNNORM - SDXL only (strong)\\\\\\\"].includes(n)?bt(e,wt(e,\\\\\\\"lora_strength\\\\\\\"),!1):bt(e,wt(e,\\\\\\\"lora_strength\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"provider\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"use_tiled\\\\\\\")),bt(e,wt(e,\\\\\\\"sharpening\\\\\\\")));St(e);break;case\\\\\\\"use_tiled\\\\\\\":bt(e,wt(e,\\\\\\\"sharpening\\\\\\\"),!!n),St(e);break;case\\\\\\\"num_embeds\\\\\\\":a=n+1;for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"weight\\\\\\\"+t),!0);for(let t=a;t\\\\u003c6;t++)bt(e,wt(e,\\\\\\\"weight\\\\\\\"+t));St(e);break;case\\\\\\\"inpaint_mode\\\\\\\":switch(n){case\\\\\\\"normal\\\\\\\":case\\\\\\\"fooocus_inpaint\\\\\\\":[\\\\\\\"dtype\\\\\\\",\\\\\\\"fitting\\\\\\\",\\\\\\\"function\\\\\\\",\\\\\\\"scale\\\\\\\",\\\\\\\"start_at\\\\\\\",\\\\\\\"end_at\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1)));break;case\\\\\\\"brushnet_random\\\\\\\":case\\\\\\\"brushnet_segmentation\\\\\\\":[\\\\\\\"dtype\\\\\\\",\\\\\\\"scale\\\\\\\",\\\\\\\"start_at\\\\\\\",\\\\\\\"end_at\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0))),[\\\\\\\"fitting\\\\\\\",\\\\\\\"function\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1)));break;case\\\\\\\"powerpaint\\\\\\\":[\\\\\\\"dtype\\\\\\\",\\\\\\\"fitting\\\\\\\",\\\\\\\"function\\\\\\\",\\\\\\\"scale\\\\\\\",\\\\\\\"start_at\\\\\\\",\\\\\\\"end_at\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0)))}St(e);break;case\\\\\\\"encode\\\\\\\":bt(e,wt(e,\\\\\\\"noise_mask\\\\\\\"),!![\\\\\\\"inpaint_model_conditioning\\\\\\\",\\\\\\\"different_diffusion\\\\\\\"].includes(n)),St(e);break;case\\\\\\\"image_output\\\\\\\":bt(e,wt(e,\\\\\\\"link_id\\\\\\\"),!![\\\\\\\"Sender\\\\\\\",\\\\\\\"Sender\\\\u0026Save\\\\\\\"].includes(n)),bt(e,wt(e,\\\\\\\"decode_vae_name\\\\\\\"),!![\\\\\\\"Hide\\\\\\\",\\\\\\\"Hide\\\\u0026Save\\\\\\\"].includes(n)),[\\\\\\\"save_prefix\\\\\\\",\\\\\\\"output_path\\\\\\\",\\\\\\\"embed_workflow\\\\\\\",\\\\\\\"number_padding\\\\\\\",\\\\\\\"overwrite_existing\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!![\\\\\\\"Save\\\\\\\",\\\\\\\"Hide\\\\u0026Save\\\\\\\",\\\\\\\"Sender\\\\u0026Save\\\\\\\"].includes(n))));break;case\\\\\\\"add_noise\\\\\\\":var l=wt(e,\\\\\\\"control_before_generate\\\\\\\"),r=wt(e,\\\\\\\"control_after_generate\\\\\\\")||l;\\\\\\\"disable\\\\\\\"===n?(bt(e,wt(e,\\\\\\\"seed\\\\\\\")),r\\\\u0026\\\\u0026(r.last_value=r.value,r.value=\\\\\\\"fixed\\\\\\\",bt(e,r))):(\\\\\\\"enable\\\\\\\"===n\\\\u0026\\\\u0026(t.value=\\\\\\\"enable (CPU)\\\\\\\"),bt(e,wt(e,\\\\\\\"seed\\\\\\\"),!0),r\\\\u0026\\\\u0026((null==r?void 0:r.last_value)\\\\u0026\\\\u0026(r.value=r.last_value),bt(e,r,!0))),St(e);break;case\\\\\\\"guider\\\\\\\":switch(n){case\\\\\\\"Basic\\\\\\\":case\\\\\\\"IP2P+Basic\\\\\\\":[\\\\\\\"cfg_negative\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t))));break;case\\\\\\\"CFG\\\\\\\":case\\\\\\\"IP2P+CFG\\\\\\\":bt(e,wt(e,\\\\\\\"cfg\\\\\\\"),!0),bt(e,wt(e,\\\\\\\"cfg_negative\\\\\\\"));break;case\\\\\\\"DualCFG\\\\\\\":case\\\\\\\"IP2P+DualCFG\\\\\\\":[\\\\\\\"cfg\\\\\\\",\\\\\\\"cfg_negative\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0)))}St(e);break;case\\\\\\\"scheduler\\\\\\\":\\\\\\\"easy preSamplingCustom\\\\\\\"==s\\\\u0026\\\\u0026([\\\\\\\"karrasADV\\\\\\\",\\\\\\\"exponentialADV\\\\\\\",\\\\\\\"polyExponential\\\\\\\"].includes(n)?([\\\\\\\"sigma_max\\\\\\\",\\\\\\\"sigma_min\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0))),[\\\\\\\"denoise\\\\\\\",\\\\\\\"beta_d\\\\\\\",\\\\\\\"beta_min\\\\\\\",\\\\\\\"eps_s\\\\\\\",\\\\\\\"coeff\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t))),!1),bt(e,wt(e,\\\\\\\"rho\\\\\\\"),\\\\\\\"exponentialADV\\\\\\\"!=n)):\\\\\\\"vp\\\\\\\"==n?([\\\\\\\"sigma_max\\\\\\\",\\\\\\\"sigma_min\\\\\\\",\\\\\\\"denoise\\\\\\\",\\\\\\\"rho\\\\\\\",\\\\\\\"coeff\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t)))),[\\\\\\\"beta_d\\\\\\\",\\\\\\\"beta_min\\\\\\\",\\\\\\\"eps_s\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0)))):([\\\\\\\"sigma_max\\\\\\\",\\\\\\\"sigma_min\\\\\\\",\\\\\\\"beta_d\\\\\\\",\\\\\\\"beta_min\\\\\\\",\\\\\\\"eps_s\\\\\\\",\\\\\\\"rho\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t)))),bt(e,wt(e,\\\\\\\"coeff\\\\\\\"),\\\\\\\"gits\\\\\\\"==n),bt(e,wt(e,\\\\\\\"denoise\\\\\\\"),!0)),St(e));break;case\\\\\\\"conditioning_mode\\\\\\\":[\\\\\\\"replace\\\\\\\",\\\\\\\"concat\\\\\\\",\\\\\\\"combine\\\\\\\"].includes(n)?[\\\\\\\"average_strength\\\\\\\",\\\\\\\"old_cond_start\\\\\\\",\\\\\\\"old_cond_end\\\\\\\",\\\\\\\"new_cond_start\\\\\\\",\\\\\\\"new_cond_end\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t)))):\\\\\\\"average\\\\\\\"==n?(bt(e,wt(e,\\\\\\\"average_strength\\\\\\\"),!0),[\\\\\\\"old_cond_start\\\\\\\",\\\\\\\"old_cond_end\\\\\\\",\\\\\\\"new_cond_start\\\\\\\",\\\\\\\"new_cond_end\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1)))):\\\\\\\"timestep\\\\\\\"==n\\\\u0026\\\\u0026([\\\\\\\"average_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!1))),[\\\\\\\"old_cond_start\\\\\\\",\\\\\\\"old_cond_end\\\\\\\",\\\\\\\"new_cond_start\\\\\\\",\\\\\\\"new_cond_end\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),!0))));break;case\\\\\\\"rescale\\\\\\\":wt(e,\\\\\\\"rescale_after_model\\\\\\\").value,bt(e,wt(e,\\\\\\\"width\\\\\\\"),\\\\\\\"to Width/Height\\\\\\\"===n),bt(e,wt(e,\\\\\\\"height\\\\\\\"),\\\\\\\"to Width/Height\\\\\\\"===n),bt(e,wt(e,\\\\\\\"percent\\\\\\\"),\\\\\\\"by percentage\\\\\\\"===n),bt(e,wt(e,\\\\\\\"longer_side\\\\\\\"),\\\\\\\"to longer side - maintain aspect\\\\\\\"===n),St(e);break;case\\\\\\\"upscale_method\\\\\\\":[\\\\\\\"factor\\\\\\\",\\\\\\\"crop\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"None\\\\\\\"!==n)));break;case\\\\\\\"target_parameter\\\\\\\":switch(s){case\\\\\\\"easy XYInputs: Steps\\\\\\\":[\\\\\\\"first_step\\\\\\\",\\\\\\\"last_step\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"steps\\\\\\\"==n))),[\\\\\\\"first_start_step\\\\\\\",\\\\\\\"last_start_step\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"start_at_step\\\\\\\"==n))),[\\\\\\\"first_end_step\\\\\\\",\\\\\\\"last_end_step\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"end_at_step\\\\\\\"==n)));break;case\\\\\\\"easy XYInputs: Sampler/Scheduler\\\\\\\":let t=wt(e,\\\\\\\"input_count\\\\\\\").value+1;for(let i=0;i\\\\u003ct;i++)bt(e,wt(e,\\\\\\\"sampler_\\\\\\\"+i),\\\\\\\"scheduler\\\\\\\"!==n),bt(e,wt(e,\\\\\\\"scheduler_\\\\\\\"+i),\\\\\\\"sampler\\\\\\\"!==n);St(e);break;case\\\\\\\"easy XYInputs: ControlNet\\\\\\\":[\\\\\\\"first_strength\\\\\\\",\\\\\\\"last_strength\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"strength\\\\\\\"==n))),[\\\\\\\"first_start_percent\\\\\\\",\\\\\\\"last_start_percent\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"start_percent\\\\\\\"==n))),[\\\\\\\"first_end_percent\\\\\\\",\\\\\\\"last_end_percent\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),\\\\\\\"end_percent\\\\\\\"==n))),[\\\\\\\"strength\\\\\\\",\\\\\\\"start_percent\\\\\\\",\\\\\\\"end_percent\\\\\\\"].map((t=\\\\u003ebt(e,wt(e,t),n!=t))),St(e)}case\\\\\\\"replace_count\\\\\\\":a=n+1;for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"replace_\\\\\\\"+t),!0);for(let t=a;t\\\\u003c31;t++)bt(e,wt(e,\\\\\\\"replace_\\\\\\\"+t));St(e);break;case\\\\\\\"lora_count\\\\\\\":a=n+1;var d=-1==wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"Weights\\\\\\\");for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"lora_name_\\\\\\\"+t),!0),[\\\\\\\"model_str_\\\\\\\"+t,\\\\\\\"clip_str_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!d)));for(let t=a;t\\\\u003c11;t++)[\\\\\\\"lora_name_\\\\\\\"+t,\\\\\\\"model_str_\\\\\\\"+t,\\\\\\\"clip_str_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\\\\\"ckpt_count\\\\\\\":a=n+1;var u=-1!=wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"ClipSkip\\\\\\\"),c=-1!=wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"VAE\\\\\\\");for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"ckpt_name_\\\\\\\"+t),!0),bt(e,wt(e,\\\\\\\"clip_skip_\\\\\\\"+t),!!u),bt(e,wt(e,\\\\\\\"vae_name_\\\\\\\"+t),!!c);for(let t=a;t\\\\u003c11;t++)[\\\\\\\"ckpt_name_\\\\\\\"+t,\\\\\\\"clip_skip_\\\\\\\"+t,\\\\\\\"vae_name_\\\\\\\"+t].map((t=\\\\u003ebt(e,wt(e,t),!1)));St(e);break;case\\\\\\\"input_count\\\\\\\":a=n+1;var A=wt(e,\\\\\\\"target_parameter\\\\\\\").value;for(let t=0;t\\\\u003ca;t++)bt(e,wt(e,\\\\\\\"sampler_\\\\\\\"+t),\\\\\\\"scheduler\\\\\\\"!==A),bt(e,wt(e,\\\\\\\"scheduler_\\\\\\\"+t),\\\\\\\"sampler\\\\\\\"!==A);for(let t=a;t\\\\u003c31;t++)bt(e,wt(e,\\\\\\\"sampler_\\\\\\\"+t)),bt(e,wt(e,\\\\\\\"scheduler_\\\\\\\"+t));St(e);break;case\\\\\\\"input_mode\\\\\\\":switch(s){case\\\\\\\"easy XYInputs: Lora\\\\\\\":a=wt(e,\\\\\\\"lora_count\\\\\\\").value+1;const t=-1!=n.indexOf(\\\\\\\"Weights\\\\\\\");for(let i=0;i\\\\u003ca;i++)bt(e,wt(e,\\\\\\\"lora_name_\\\\\\\"+i),!0),[\\\\\\\"model_str_\\\\\\\"+i,\\\\\\\"clip_str_\\\\\\\"+i].map((i=\\\\u003ebt(e,wt(e,i),!!t)));[\\\\\\\"model_strength\\\\\\\",\\\\\\\"clip_strength\\\\\\\"].map((i=\\\\u003ebt(e,wt(e,i),!t)));break;case\\\\\\\"easy XYInputs: Checkpoint\\\\\\\":a=wt(e,\\\\\\\"ckpt_count\\\\\\\").value+1,u=-1!=wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"ClipSkip\\\\\\\"),c=-1!=wt(e,\\\\\\\"input_mode\\\\\\\").value.indexOf(\\\\\\\"VAE\\\\\\\");for(let i=0;i\\\\u003ca;i++)bt(e,wt(e,\\\\\\\"ckpt_name_\\\\\\\"+i),!0),bt(e,wt(e,\\\\\\\"clip_skip_\\\\\\\"+i),!!u),bt(e,wt(e,\\\\\\\"vae_name_\\\\\\\"+i),!!c)}St(e);break;case\\\\\\\"rem_mode\\\\\\\":bt(e,wt(e,\\\\\\\"torchscript_jit\\\\\\\"),\\\\\\\"Inspyrenet\\\\\\\"===n),bt(e,wt(e,\\\\\\\"refine_foreground\\\\\\\"),\\\\\\\"BEN2\\\\\\\"===n),St(e)}}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.Widget\\\\\\\",async beforeRegisterNodeDef(e,t,i){var s;const n=t.name,a=e.prototype.onAdded,o=e.prototype.onNodeCreated,l=e.prototype.onConfigure,r=e.prototype.onExecuted,d=e.prototype.onConnectionsChange;if([\\\\\\\"easy showAnything\\\\\\\",\\\\\\\"easy showAnythingLazy\\\\\\\",\\\\\\\"easy showTensorShape\\\\\\\",\\\\\\\"easy showSpentTime\\\\\\\",\\\\\\\"easy imageInterrogator\\\\\\\",\\\\\\\"easy showLoaderSettingsNames\\\\\\\"].includes(n)){let s=function(e,t=\\\\\\\"text\\\\\\\"){var s,n;if(this.widgets){const e=this.widgets.findIndex((e=\\\\u003ee.name===t));if(-1!==e){for(let t=e;t\\\\u003cthis.widgets.length;t++)null==(n=(s=this.widgets[t]).onRemove)||n.call(s);this.widgets.length=e}}for(const a of e){const e=we.STRING(this,\\\\\\\"text\\\\\\\",[\\\\\\\"STRING\\\\\\\",{multiline:!0}],i).widget;e.element\\\\u0026\\\\u0026(e.element.readOnly=!0,e.element.style.opacity=.6),e.value=a}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments),s.call(this,e.text,\\\\\\\"text\\\\\\\")},[\\\\\\\"easy imageInterrogator\\\\\\\"].includes(t.name)||(e.prototype.onConfigure=function(){var e;null==l||l.apply(this,arguments);let t=\\\\\\\"text\\\\\\\";switch(n){case\\\\\\\"easy showLoaderSettingsNames\\\\\\\":t=\\\\\\\"names\\\\\\\";break;case\\\\\\\"easy showSpentTime\\\\\\\":t=\\\\\\\"spent_time\\\\\\\";break;default:t=\\\\\\\"text\\\\\\\"}(null==(e=this.widgets_values)?void 0:e.length)\\\\u0026\\\\u0026s.call(this,this.widgets_values,t)})}if(ui.includes(n)){let t=function(e){if(this.widgets){const t=this.widgets.findIndex((e=\\\\u003e\\\\\\\"info\\\\\\\"===e.name));if(-1!==t\\\\u0026\\\\u0026this.widgets[t]){this.widgets[t].value=e}}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments);var i=\\\\\\\"\\\\\\\";for(let t=0;t\\\\u003ce.text.length;t++)i+=e.text[t];t.call(this,i)}}if(\\\\\\\"easy promptLine\\\\\\\"==n\\\\u0026\\\\u0026(e.prototype.onAdded=async function(){a\\\\u0026\\\\u0026a.apply(this,[]);let e=this.widgets.find((e=\\\\u003e\\\\\\\"prompt\\\\\\\"==e.name));this.addWidget(\\\\\\\"button\\\\\\\",\\\\\\\"get values from COMBO link\\\\\\\",\\\\\\\"\\\\\\\",(()=\\\\u003e{var t,s;const n=(null==(s=null==(t=this.outputs[1])?void 0:t.links)?void 0:s.length)\\\\u003e0?this.outputs[1].links[0]:null,a=i.graph._nodes.find((e=\\\\u003e{var t;return null==(t=e.inputs)?void 0:t.find((e=\\\\u003ee.link==n))}));if(n\\\\u0026\\\\u0026a){const t=a.inputs.find((e=\\\\u003ee.link==n)).widget.name,i=a.widgets.find((e=\\\\u003ee.name==t));let s=(null==i?void 0:i.options.values)||null;s\\\\u0026\\\\u0026(s=s.join(\\\\\\\"\\\\\\\\n\\\\\\\"),e.value=s)}else Ye.error(Ne(\\\\\\\"No COMBO link\\\\\\\"),3e3)}),{serialize:!1})}),ri.includes(t.name)){let t=function(e){var t=\\\\\\\"\\\\\\\";for(let i=0;i\\\\u003ce.length;i++)t+=e[i];return t},i=function(e,t=\\\\\\\"positive\\\\\\\"){if(this.widgets){const i=this.widgets.findIndex((e=\\\\u003ee.name===t+\\\\\\\"_prompt\\\\\\\")),s=\\\\\\\"comfy-multiline-input wildcard_\\\\\\\"+t+\\\\\\\"_\\\\\\\"+this.id.toString();if(-1==i\\\\u0026\\\\u0026e){const i=document.createElement(\\\\\\\"textarea\\\\\\\");i.className=s,i.placeholder=\\\\\\\"Wildcard Prompt (\\\\\\\"+t+\\\\\\\")\\\\\\\";const n=this.addDOMWidget(t+\\\\\\\"_prompt\\\\\\\",\\\\\\\"customtext\\\\\\\",i,{getValue:e=\\\\u003ei.value,setValue(e){i.value=e},serialize:!1});n.inputEl=i,n.inputEl.readOnly=!0,i.addEventListener(\\\\\\\"input\\\\\\\",(()=\\\\u003e{var e;null==(e=n.callback)||e.call(n,n.value)})),n.value=e}else if(this.widgets[i])if(e){this.widgets[i].value=e}else{this.widgets.splice(i,1);const e=document.getElementsByClassName(s);e\\\\u0026\\\\u0026e[0]\\\\u0026\\\\u0026e[0].remove()}}};e.prototype.onExecuted=function(e){null==r||r.apply(this,arguments);const s=t(e.positive),n=t(e.negative);i.call(this,s,\\\\\\\"positive\\\\\\\"),i.call(this,n,\\\\\\\"negative\\\\\\\")}}if([\\\\\\\"easy sv3dLoader\\\\\\\"].includes(t.name)){let t=function(e,t,i){switch(e){case\\\\\\\"azimuth\\\\\\\":return i.readOnly=!0,i.style.opacity=.6,\\\\\\\"0:(0.0,0.0)\\\\\\\"+(t\\\\u003e1?`\\\\\\\\n${t-1}:(360.0,0.0)`:\\\\\\\"\\\\\\\");case\\\\\\\"elevation\\\\\\\":return i.readOnly=!0,i.style.opacity=.6,\\\\\\\"0:(-90.0,0.0)\\\\\\\"+(t\\\\u003e1?`\\\\\\\\n${t-1}:(90.0,0.0)`:\\\\\\\"\\\\\\\");case\\\\\\\"custom\\\\\\\":return i.readOnly=!1,i.style.opacity=1,\\\\\\\"0:(0.0,0.0)\\\\\\\\n9:(180.0,0.0)\\\\\\\\n20:(360.0,0.0)\\\\\\\"}};e.prototype.onNodeCreated=async function(){o\\\\u0026\\\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\\\u003e\\\\\\\"easing_mode\\\\\\\"==e.name)),i=this.widgets.find((e=\\\\u003e\\\\\\\"batch_size\\\\\\\"==e.name)),s=this.widgets.find((e=\\\\u003e\\\\\\\"scheduler\\\\\\\"==e.name));setTimeout((n=\\\\u003e{s.value||(s.value=t(e.value,i.value,s.inputEl))}),1),e.callback=e=\\\\u003e{s.value=t(e,i.value,s.inputEl)},i.callback=i=\\\\u003e{s.value=t(e.value,i,s.inputEl)}}}if(li.includes(n)\\\\u0026\\\\u0026(e.prototype.onNodeCreated=async function(){o\\\\u0026\\\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\\\u003e[\\\\\\\"seed_num\\\\\\\",\\\\\\\"seed\\\\\\\"].includes(e.name))),s=this.widgets.find((e=\\\\u003e[\\\\\\\"control before generate\\\\\\\",\\\\\\\"control after generate\\\\\\\",\\\\\\\"control_before_generate\\\\\\\",\\\\\\\"control_after_generate\\\\\\\"].includes(e.name)));if(\\\\\\\"easy seed\\\\\\\"==t.name\\\\u0026\\\\u0026s){const t=this.addWidget(\\\\\\\"button\\\\\\\",\\\\\\\"\\ud83c\\udfb2 Manual Random Seed\\\\\\\",null,(t=\\\\u003e{\\\\\\\"fixed\\\\\\\"!=s.value\\\\u0026\\\\u0026(s.value=\\\\\\\"fixed\\\\\\\"),e.value=Math.floor(Math.random()*Oe),i.queuePrompt(0,1)}),{serialize:!1});e.linkedWidgets=[t,s]}},e.prototype.onAdded=async function(){a\\\\u0026\\\\u0026a.apply(this,[]);const e=this.widgets.find((e=\\\\u003e[\\\\\\\"seed_num\\\\\\\",\\\\\\\"seed\\\\\\\"].includes(e.name))),t=this.widgets.find((e=\\\\u003e[\\\\\\\"control before generate\\\\\\\",\\\\\\\"control after generate\\\\\\\",\\\\\\\"control_before_generate\\\\\\\",\\\\\\\"control_after_generate\\\\\\\"].includes(e.name)));t\\\\u0026\\\\u0026setTimeout((i=\\\\u003e{[\\\\\\\"control before generate\\\\\\\",\\\\\\\"control_before_generate\\\\\\\"].includes(t.name)\\\\u0026\\\\u00260===e.value\\\\u0026\\\\u0026(e.value=Math.floor(Math.random()*Oe))}),1)}),\\\\\\\"easy convertAnything\\\\\\\"==n\\\\u0026\\\\u0026(e.prototype.onNodeCreated=async function(){o\\\\u0026\\\\u0026o.apply(this,[]);const e=this.widgets.find((e=\\\\u003e\\\\\\\"output_type\\\\\\\"==e.name)),t=t=\\\\u003e{this.outputs[0].type=e.value.toUpperCase(),this.outputs[0].name=e.value,this.outputs[0].label=e.value};setTimeout((e=\\\\u003et()),10),e.callback=e=\\\\u003et()}),\\\\\\\"easy imageInsetCrop\\\\\\\"==n){let t=function(e){const t=e.widgets[0];for(let i=1;i\\\\u003c=4;i++)\\\\\\\"Pixels\\\\\\\"===t.value?(e.widgets[i].options.step=80,void 0!==e.widgets[i].options.step2\\\\u0026\\\\u0026(e.widgets[i].options.step2=8),e.widgets[i].options.max=8192):(e.widgets[i].options.step=10,void 0!==e.widgets[i].options.step2\\\\u0026\\\\u0026(e.widgets[i].options.step2=1),e.widgets[i].options.max=99)};e.prototype.onAdded=async function(e){const i=this.widgets[0];let s=i.callback;i.callback=(...e)=\\\\u003e{t(this),s\\\\u0026\\\\u0026s.apply(i,[...e])},setTimeout((e=\\\\u003e{t(this)}),1)}}if(hi.includes(n)){const t=e=\\\\u003e{switch(n){case\\\\\\\"easy forLoopStart\\\\\\\":case\\\\\\\"easy whileLoopStart\\\\\\\":return 0;case\\\\\\\"easy forLoopEnd\\\\\\\":case\\\\\\\"easy whileLoopEnd\\\\\\\":return 1}},i=e=\\\\u003e{switch(n){case\\\\\\\"easy forLoopStart\\\\\\\":return 2;case\\\\\\\"easy forLoopEnd\\\\\\\":case\\\\\\\"easy whileLoopEnd\\\\\\\":return 0;case\\\\\\\"easy whileLoopStart\\\\\\\":return 1}};e.prototype.onNodeCreated=async function(){if(\\\\\\\"easy loadImagesForLoop\\\\\\\"==n\\\\u0026\\\\u0026(this.outputs[0].shape=5),ci.includes(n)){const e=this.inputs.findIndex((e=\\\\u003e\\\\\\\"flow\\\\\\\"===e.name)),s=this.outputs.findIndex((e=\\\\u003e\\\\\\\"flow\\\\\\\"===e.name));-1!==e\\\\u0026\\\\u0026(this.inputs[e].shape=5),-1!==s\\\\u0026\\\\u0026(this.outputs[s].shape=5),this.inputs=this.inputs.filter(((e,i)=\\\\u003ei\\\\u003c=t()||e.widget)),this.outputs=this.outputs.filter(((e,t)=\\\\u003et\\\\u003c=i())),St(this)}return Ai.includes(n)\\\\u0026\\\\u0026(\\\\\\\"easy textIndexSwitch\\\\\\\"==n\\\\u0026\\\\u0026(this.widgets=this.widgets.filter(((e,t)=\\\\u003et\\\\u003c=2))),this.inputs=this.inputs.filter(((e,t)=\\\\u003et\\\\u003c=1||e.widget)),St(this)),null==o?void 0:o.apply(this,arguments)},e.prototype.onConnectionsChange=function(e,s,a,o){var l,r;if(o)if(1==e){let e=this.inputs.every((e=\\\\u003enull!==e.link||e.widget)),i=this.inputs.filter((e=\\\\u003e![\\\\\\\"condition\\\\\\\",\\\\\\\"index\\\\\\\",\\\\\\\"total\\\\\\\"].includes(e.name)));if(ci.includes(n)){if(e){if(i.length\\\\u003e=20)return void Ye.warn(Ne(\\\\\\\"The maximum number of inputs is 20\\\\\\\"));let e=i[i.length-1],t=parseInt(e.name.split(\\\\\\\"initial_value\\\\\\\")[1])+1;if(this.inputs.find((e=\\\\u003ee.name===\\\\\\\"initial_value\\\\\\\"+t)))return;let s=\\\\\\\"initial_value\\\\\\\"+t,n=\\\\\\\"value\\\\\\\"+t;this.addInput(s,\\\\\\\"*\\\\\\\"),this.addOutput(n,\\\\\\\"*\\\\\\\")}else if(!a){const e=t();let i=this.inputs.findLastIndex((e=\\\\u003ee.link));if(s\\\\u003e=e\\\\u0026\\\\u0026(-1===i||s\\\\u003e=i)){let e=this.inputs[s];if(!e.name||[\\\\\\\"condition\\\\\\\",\\\\\\\"total\\\\\\\"].includes(e.name))return;let t=parseInt(e.name.split(\\\\\\\"initial_value\\\\\\\")[1])+1,i=this.inputs.findIndex((e=\\\\u003ee.name===\\\\\\\"initial_value\\\\\\\"+t)),n=this.outputs.findIndex((e=\\\\u003ee.name===\\\\\\\"value\\\\\\\"+t));-1!==i\\\\u0026\\\\u0026this.removeInput(i),-1!==n\\\\u0026\\\\u0026this.removeOutput(n)}}}else if(Ai.includes(n))if(e){if(i.length\\\\u003e=20)return void Ye.warn(Ne(\\\\\\\"The maximum number of inputs is 20\\\\\\\"));let e=mi[n]+i.length;this.addInput(e,\\\\\\\"*\\\\\\\")}else a||s==this.inputs.length-2\\\\u0026\\\\u0026this.removeInput(s+1)}else if(2==e){let e=this.outputs.filter((e=\\\\u003e![\\\\\\\"flow\\\\\\\",\\\\\\\"index\\\\\\\"].includes(e.name))),t=e.every((e=\\\\u003e{var t;return(null==(t=e.links)?void 0:t.length)\\\\u003e0}));if(ci.includes(n)){if(t){if(e.length\\\\u003e=20)return void Ye.warn(Ne(\\\\\\\"The maximum number of outputs is 20\\\\\\\"));let t=e[e.length-1],i=parseInt(t.name.split(\\\\\\\"value\\\\\\\")[1])+1;if(this.inputs.find((e=\\\\u003ee.name===\\\\\\\"initial_value\\\\\\\"+i)))return;if(this.outputs.find((e=\\\\u003ee.name===\\\\\\\"value\\\\\\\"+i)))return;let s=\\\\\\\"initial_value\\\\\\\"+i,n=\\\\\\\"value\\\\\\\"+i;this.addInput(s,\\\\\\\"*\\\\\\\"),this.addOutput(n,\\\\\\\"*\\\\\\\")}else if(!a){const e=i();let t=o.origin_slot,s=this.outputs.findLastIndex((e=\\\\u003e{var t;return(null==(t=e.links)?void 0:t.length)\\\\u003e0}));if(t\\\\u003e=e\\\\u0026\\\\u0026(-1===s||t\\\\u003e=s)){let e=this.outputs[t];if(!e.name||[\\\\\\\"flow\\\\\\\",\\\\\\\"index\\\\\\\"].includes(e.name))return;let i=parseInt(e.name.split(\\\\\\\"value\\\\\\\")[1])+1,s=this.inputs.findIndex((e=\\\\u003ee.name===\\\\\\\"initial_value\\\\\\\"+i)),n=this.outputs.findIndex((e=\\\\u003ee.name===\\\\\\\"value\\\\\\\"+i));if(-1!==s\\\\u0026\\\\u0026(null==(l=this.inputs[s])?void 0:l.link))return;-1!==s\\\\u0026\\\\u0026this.removeInput(s),-1!==n\\\\u0026\\\\u0026this.removeOutput(n)}}}else if(pi.includes(n))if(t){if(e.length\\\\u003e=20)return void Ye.warn(Ne(\\\\\\\"The maximum number of outputs is 20\\\\\\\"));let t=mi[n]+e.length;this.addOutput(t,\\\\\\\"*\\\\\\\")}else if(!a){let t=o.origin_slot;t==this.outputs.length-2\\\\u0026\\\\u00260==(null==(r=e[t].links)?void 0:r.length)\\\\u0026\\\\u0026this.removeOutput(t+1)}}}}if([\\\\\\\"easy fluxLoader\\\\\\\",\\\\\\\"easy fullLoader\\\\\\\"].includes(n)\\\\u0026\\\\u0026(e.prototype.onConnectionsChange=async function(e,t){d\\\\u0026\\\\u0026d.apply(this,[]);const i=this.inputs.find((e=\\\\u003e\\\\\\\"model_override\\\\\\\"===e.name)),s=this.inputs.find((e=\\\\u003e\\\\\\\"vae_override\\\\\\\"===e.name));let n=wt(this,\\\\\\\"ckpt_name\\\\\\\"),a=wt(this,\\\\\\\"vae_name\\\\\\\");if((null==i?void 0:i.link)\\\\u0026\\\\u00260==t){const e=(null==n?void 0:n.options.values)||[];setTimeout((t=\\\\u003e{this.widgets[0].value=(null==e?void 0:e[0])||\\\\\\\"None\\\\\\\",bt(this,n,!(null==i?void 0:i.link))}),1)}else bt(this,n,!(null==i?void 0:i.link));if(!(null==s?void 0:s.link)||1!=t\\\\u0026\\\\u00262!=t)bt(this,a,!(null==s?void 0:s.link));else{let e=this.widgets.findIndex((e=\\\\u003e\\\\\\\"vae_name\\\\\\\"==e.name));setTimeout((t=\\\\u003e{this.widgets[e].value=\\\\\\\"Baked VAE\\\\\\\",bt(this,a,!(null==s?void 0:s.link))}),1)}}),di.includes(n)||-1!==n.indexOf(\\\\\\\"workflow\\\\\\\")){const i=(null==(s=null==t?void 0:t.input)?void 0:s.required)||{};if(!i.image_output\\\\u0026\\\\u0026!i[\\\\\\\"\\u56fe\\u50cf\\u8f93\\u51fa\\\\\\\"]\\\\u0026\\\\u0026!i[\\\\\\\"\\u89c6\\u9891\\u8f93\\u51fa\\\\\\\"])return;e.prototype.onDrawBackground=function(e){try{si(this)}catch(t){}}}},nodeCreated(e){if(e.comfyClass.startsWith(\\\\\\\"easy \\\\\\\")){if(e.widgets)for(const i of e.widgets){if(!ni.includes(i.name))continue;let t=i.value;fi(e,i),Object.defineProperty(i,\\\\\\\"value\\\\\\\",{get:e=\\\\u003et,set(s){s!==t\\\\u0026\\\\u0026(t=s,requestAnimationFrame((t=\\\\u003e{fi(e,i)})))}})}const t=e.comfyClass;if(\\\\\\\"easy preDetailerFix\\\\\\\"==t){const t=e.widgets.find((e=\\\\u003e\\\\\\\"customtext\\\\\\\"===e.type));if(!t)return;t.dynamicPrompts=!1,t.inputEl.placeholder=\\\\\\\"wildcard spec: if kept empty, this option will be ignored\\\\\\\",t.serializeValue=()=\\\\u003et.value}if([\\\\\\\"easy wildcards\\\\\\\",\\\\\\\"easy wildcardsMatrix\\\\\\\"].includes(t)){const t=e.widgets.find((e=\\\\u003e\\\\\\\"text\\\\\\\"==e.name));let i=1;Object.defineProperty(e.widgets[i],\\\\\\\"value\\\\\\\",{set:e=\\\\u003e{if(\\\\\\\"Select the LoRA to add to the text\\\\\\\"!=e){let i=e;i.endsWith(\\\\\\\".safetensors\\\\\\\")\\\\u0026\\\\u0026(i=i.slice(0,-12)),t.value+=`\\\\u003clora:${i}\\\\u003e`}},get:e=\\\\u003e\\\\\\\"Select the LoRA to add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+1],\\\\\\\"value\\\\\\\",{set:e=\\\\u003e{\\\\\\\"Select the Wildcard to add to the text\\\\\\\"!=e\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"!=t.value\\\\u0026\\\\u0026(t.value+=\\\\\\\", \\\\\\\"),t.value+=e)},get:e=\\\\u003e\\\\\\\"Select the Wildcard to add to the text\\\\\\\"}),e.widgets[i].serializeValue=e=\\\\u003e\\\\\\\"Select the LoRA to add to the text\\\\\\\",e.widgets[i+1].serializeValue=e=\\\\u003e\\\\\\\"Select the Wildcard to add to the text\\\\\\\"}if(\\\\\\\"easy prompt\\\\\\\"==t){const t=e.widgets.find((e=\\\\u003e\\\\\\\"text\\\\\\\"==e.name));let i=1;Object.defineProperty(e.widgets[i],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"Select the prefix to add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\" \\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"Select the prefix to add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+1],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83d\\udc64Select the subject add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+1])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\" \\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83d\\udc64Select the subject add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+2],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83c\\udfacSelect the action add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+2])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\",\\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83c\\udfacSelect the action add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+3],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83d\\udc5aSelect the clothes add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+3])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\",\\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83d\\udc5aSelect the clothes add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+4],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\u2600\\ufe0fSelect the illumination environment add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+4])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\",\\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\u2600\\ufe0fSelect the illumination environment add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+5],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83c\\udf9e\\ufe0fSelect the background add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+5])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\" \\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83c\\udf9e\\ufe0fSelect the background add to the text\\\\\\\"}),Object.defineProperty(e.widgets[i+6],\\\\\\\"value\\\\\\\",{set:s=\\\\u003e{var n,a;\\\\\\\"\\ud83d\\udd1eSelect the nsfw add to the text\\\\\\\"!=s\\\\u0026\\\\u0026(null==(a=null==(n=e.widgets[i+6])?void 0:n.options)?void 0:a.values.includes(s))\\\\u0026\\\\u0026(\\\\\\\"\\\\\\\"==t.value?t.value+=s:t.value+=\\\\\\\",\\\\\\\"+s)},get:e=\\\\u003e\\\\\\\"\\ud83d\\udd1eSelect the nsfw add to the text\\\\\\\"}),e.widgets[i].serializeValue=e=\\\\u003e\\\\\\\"Select the prefix add to the text\\\\\\\",e.widgets[i+1].serializeValue=e=\\\\u003e\\\\\\\"\\ud83d\\udc64Select the subject add to the text\\\\\\\",e.widgets[i+2].serializeValue=e=\\\\u003e\\\\\\\"\\ud83c\\udfacSelect the action add to the text\\\\\\\",e.widgets[i+3].serializeValue=e=\\\\u003e\\\\\\\"\\ud83d\\udc5aSelect the clothes add to the text\\\\\\\",e.widgets[i+4].serializeValue=e=\\\\u003e\\\\\\\"\\u2600\\ufe0fSelect the illumination environment add to the text\\\\\\\",e.widgets[i+5].serializeValue=e=\\\\u003e\\\\\\\"\\ud83c\\udf9e\\ufe0fSelect the background add to the text\\\\\\\",e.widgets[i+6].serializeValue=e=\\\\u003e\\\\\\\"\\ud83d\\udd1eSelect the nsfw add to the text\\\\\\\"}if(ui.includes(t)){const t=document.createElement(\\\\\\\"textarea\\\\\\\");t.className=\\\\\\\"comfy-multiline-input\\\\\\\",t.readOnly=!0;const i=e.addDOMWidget(\\\\\\\"info\\\\\\\",\\\\\\\"customtext\\\\\\\",t,{getValue:e=\\\\u003et.value,setValue:e=\\\\u003et.value=e,serialize:!1});i.inputEl=t,t.addEventListener(\\\\\\\"input\\\\\\\",(()=\\\\u003e{var e;null==(e=i.callback)||e.call(i,i.value)}))}}}});const gi=LiteGraph.LGraphNode;fe.registerExtension({name:\\\\\\\"easy bookmark\\\\\\\",registerCustomNodes(){class e extends gi{constructor(){super(\\\\\\\"\\ud83d\\udd16\\\\\\\"),v(this,\\\\\\\"type\\\\\\\",\\\\\\\"easy bookmark\\\\\\\"),v(this,\\\\\\\"title\\\\\\\",\\\\\\\"\\ud83d\\udd16\\\\\\\"),v(this,\\\\\\\"slot_start_y\\\\\\\",-20),v(this,\\\\\\\"___collapsed_width\\\\\\\",0),v(this,\\\\\\\"isVirtualNode\\\\\\\",!0),v(this,\\\\\\\"serialize_widgets\\\\\\\",!0),v(this,\\\\\\\"keypressBound\\\\\\\",null),this.addWidget(\\\\\\\"text\\\\\\\",\\\\\\\"shortcut_key\\\\\\\",\\\\\\\"1\\\\\\\",(e=\\\\u003e{\\\\\\\"\\\\\\\"!==(e=e.trim()[0]||\\\\\\\"1\\\\\\\")\\\\u0026\\\\u0026(this.title=\\\\\\\"\\ud83d\\udd16 \\\\\\\"+e)}),{y:8}),this.addWidget(\\\\\\\"number\\\\\\\",\\\\\\\"zoom\\\\\\\",1,(e=\\\\u003e{}),{y:8+LiteGraph.NODE_WIDGET_HEIGHT+4,max:2,min:.5,precision:2}),this.keypressBound=this.onKeypress.bind(this)}get _collapsed_width(){return this.___collapsed_width}set _collapsed_width(e){const t=fe.canvas,i=t.canvas.getContext(\\\\\\\"2d\\\\\\\");if(i){const e=i.font;i.font=t.title_text_font,this.___collapsed_width=40+i.measureText(this.title).width,i.font=e}}onAdded(){setTimeout((e=\\\\u003e{const t=this.widgets[0].value;t\\\\u0026\\\\u0026(this.title=\\\\\\\"\\ud83d\\udd16 \\\\\\\"+t)}),1),window.addEventListener(\\\\\\\"keydown\\\\\\\",this.keypressBound)}onRemoved(){window.removeEventListener(\\\\\\\"keydown\\\\\\\",this.keypressBound)}onKeypress(e){const t=e.target;[\\\\\\\"input\\\\\\\",\\\\\\\"textarea\\\\\\\"].includes(t.localName)||this.widgets[0]\\\\u0026\\\\u0026e.key.toLocaleLowerCase()===this.widgets[0].value.toLocaleLowerCase()\\\\u0026\\\\u0026this.canvasToBookmark()}canvasToBookmark(){var e,t;const i=fe.canvas;(null==(e=null==i?void 0:i.ds)?void 0:e.offset)\\\\u0026\\\\u0026(i.ds.offset[0]=16-this.pos[0],i.ds.offset[1]=40-this.pos[1]),null!=(null==(t=null==i?void 0:i.ds)?void 0:t.scale)\\\\u0026\\\\u0026(i.ds.scale=Number(this.widgets[1].value||1)),i.setDirty(!0,!0)}}LiteGraph.registerNodeType(\\\\\\\"easy bookmark\\\\\\\",Object.assign(e,{title:\\\\\\\"Bookmark \\ud83d\\udd16\\\\\\\"})),e.category=\\\\\\\"EasyUse/Util\\\\\\\"}}),fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.ChainNode\\\\\\\",init(){fe.canvas._mousemove_callback=e=\\\\u003e{xe(\\\\\\\"EasyUse.Nodes.ChainGetSet\\\\\\\",null)\\\\u0026\\\\u0026((e=!1,t={})=\\\\u003e{var i,s,n,a,o;const l=Dt();if(!l||l.length\\\\u003c1)return;const r=Lt();if(0===r.length)return;let d=t.inputX||160,u=t.ouputX||60;if(r.filter((e=\\\\u003eMt(e))).length\\\\u003e1)return;for(const A of r){let a=t.inputY||10,o=t.outputY||30;const l=[],c=A.id;if(A.graph){Rt[c]||(Rt[c]=[]);for(const e of A.inputs??[]){const t=e.link;if(!t)continue;const{origin_id:i,target_slot:s}=Ct(t),n=xt(i);if(!n)continue;if(!Mt(n))continue;let o=A.getConnectionPos(!0,s);Rt[c][s]||(Rt[c][s]=o),!Rt[c]||Rt[c][s][1]===o[1]\\\\u0026\\\\u0026Rt[c][s][0]===o[0]||(d=o[0]-Rt[c][s][0],a=o[1]-Rt[c][s][1],n.pos=[n.pos[0]+d,n.pos[1]+a]),Rt[c][s]=o,l.push(n)}Pt[c]||(Pt[c]=[]);for(const e of A.outputs??[])if(e.links\\\\u0026\\\\u0026A.graph)for(const t of e.links){const{target_id:e,target_slot:s,origin_slot:n}=Ct(t),a=xt(e);if(!a)continue;if(!Mt(a))continue;const r=null==(i=a.outputs)?void 0:i.links;if((null==r?void 0:r.length)\\\\u003e1)return;const d=A.getConnectionPos(!1,n);Pt[c][n]||(Pt[c][n]=d),!Pt[c]||Pt[c][n][0]===d[0]\\\\u0026\\\\u0026Pt[c][n][1]===d[1]||(u=d[0]-Pt[c][n][0],o=d[1]-Pt[c][n][1],a.pos=[a.pos[0]+u,a.pos[1]+o]),Pt[c][n]=d,l.push(a)}if(e\\\\u0026\\\\u00261===r.length){const e=[A,...l];(null==(n=null==(s=A.graph)?void 0:s.list_of_graphcanvas)?void 0:n[0]).selectNodes(e)}}}const c=r[0];if(!c)return;(null==(o=null==(a=c.graph)?void 0:a.list_of_graphcanvas)?void 0:o[0]).setDirty(!0,!0)})()};const e=LGraphCanvas.prototype.showLinkMenu;LGraphCanvas.prototype.showLinkMenu=st(e,(function(t,i){return i.shiftKey?(((e,t=!1)=\\\\u003e{var i,s,n,a,o,l,r,d,u,c;const{type:A}=e;if(\\\\\\\"*\\\\\\\"===A)return;let{origin_id:p,target_id:h,origin_slot:m,target_slot:f}=e,g=xt(p),v=xt(h);if(!g||!v)return!1;if(\\\\\\\"Reroute\\\\\\\"===g.type){let e=0;[g,e]=jt(g),p=null==g?void 0:g.id,m=e,void 0!==m\\\\u0026\\\\u0026-1!==m||(m=0)}if(\\\\\\\"Reroute\\\\\\\"===v.type\\\\u0026\\\\u0026(v=Ut(v),h=null==v?void 0:v.id,f=null==v?void 0:v.inputs.findIndex((e=\\\\u003ee.type===A)),void 0!==f\\\\u0026\\\\u0026-1!==f||(f=0)),void 0===p||void 0===h||!g||!v)return!1;if(t\\\\u0026\\\\u0026(Mt(g)||Mt(v)))return!1;let y=It((null==(i=v.getInputInfo(f))?void 0:i.name)??A.toLowerCase());y||(y=It((null==(n=null==(s=null==g?void 0:g.outputs)?void 0:s[m])?void 0:n.name)??(null==(o=null==(a=null==g?void 0:g.outputs)?void 0:a[m])?void 0:o.type.toString())??y+`_from_${p}_to_${h}`));let w,b=!1,_=!1;if(Mt(g))y=_t(g),_=!0;else{const e=null==(r=null==(l=g.outputs)?void 0:l[m])?void 0:r.links;if(e)for(const t of e){const e=xt((null==(d=Ct(t))?void 0:d.target_id)??-1);e\\\\u0026\\\\u0026Mt(e)\\\\u0026\\\\u0026Ot(e)\\\\u0026\\\\u0026(y=_t(e),_=!0)}if(!_){for(const e of Dt()){if(y!==_t(e)||!Ot(e))continue;const t=null==(u=e.inputs[0])?void 0:u.link;(null==(c=Ct(t))?void 0:c.origin_id)===g.id?_=!0:b=!0}b\\\\u0026\\\\u0026(y+=`_from_${p}_to_${h}`)}}if(!_){w=LiteGraph.createNode(\\\\\\\"easy setNode\\\\\\\"),w.is_auto_link=!0;const e=g.getConnectionPos(!1,m);w.pos=[e[0]+20,e[1]],w.inputs[0].name=y,w.inputs[0].type=A,w.inputs[0].widget=v.inputs[f].widget,Gt(w,y),zt(w),w.flags.collapsed=!0;let t=[];g.widgets?t=Object.values(g.widgets).map((e=\\\\u003ee.value)):g.widgets_values\\\\u0026\\\\u0026(t=JSON.parse(JSON.stringify(g.widgets_values))),g.connect(m,w,0),g.widgets_values=t,\\\\\\\"PrimitiveNode\\\\\\\"===g.type\\\\u0026\\\\u0026setTimeout((()=\\\\u003e{if(g){g.connect(m,w,0);for(const[e,i]of t.entries())Gt(g,i,e);null!==w\\\\u0026\\\\u0026w.setSize(w.computeSize())}}))}const S=LiteGraph.createNode(\\\\\\\"easy getNode\\\\\\\"),x=v.getConnectionPos(!0,f);S.pos=[x[0]-150,x[1]],S.outputs[0].name=y,S.outputs[0].type=A,S.outputs[0].widget=v.inputs[f].widget,zt(S),Gt(S,y),null===S||(S.flags.collapsed=!0,S.setSize(S.computeSize()),S.connect(0,v,f))})(t),!1):(e.apply(this,[t,i]),!1)}))}});const vi=async()=\\\\u003e{try{const{Running:e,Pending:t}=await ge.getQueue();if(e.length\\\\u003e0||t.length\\\\u003e0)return void Ye.error(Ne(\\\\\\\"Clean Failed\\\\\\\")+\\\\\\\":\\\\\\\"+Ne(\\\\\\\"Please stop all running tasks before cleaning GPU\\\\\\\"));200==(await ge.fetchApi(\\\\\\\"/easyuse/cleangpu\\\\\\\",{method:\\\\\\\"POST\\\\\\\"})).status?Ye.success(Ne(\\\\\\\"Clean SuccessFully\\\\\\\")):Ye.error(Ne(\\\\\\\"Clean Failed\\\\\\\"))}catch(e){}};let yi={},wi=!1;function bi(e,t,i,s,n){var a=LGraphCanvas.active_canvas,o=a.getCanvasWindow(),l=a.graph;if(l)return function e(t,s){var r=LiteGraph.getNodeTypesCategories(a.filter||l.filter).filter((function(e){return e.startsWith(t)})),d=[];r.map((function(i){if(i){var s=new RegExp(\\\\\\\"^(\\\\\\\"+t+\\\\\\\")\\\\\\\"),n=i.replace(s,\\\\\\\"\\\\\\\").split(\\\\\\\"/\\\\\\\")[0],a=\\\\\\\"\\\\\\\"===t?n+\\\\\\\"/\\\\\\\":t+n+\\\\\\\"/\\\\\\\",o=n;-1!=o.indexOf(\\\\\\\"::\\\\\\\")\\\\u0026\\\\u0026(o=o.split(\\\\\\\"::\\\\\\\")[1]),-1===d.findIndex((function(e){return e.value===a}))\\\\u0026\\\\u0026d.push({value:a,content:o,has_submenu:!0,callback:function(t,i,s,n){e(t.value,n)}})}})),LiteGraph.getNodeTypesInCategory(t.slice(0,-1),a.filter||l.filter).map((function(e){if(!e.skip_list){var t={value:e.type,content:e.title,has_submenu:!1,callback:function(e,t,i,s){var o=s.getFirstEvent();a.graph.beforeChange();var l=LiteGraph.createNode(e.value);l\\\\u0026\\\\u0026(l.pos=a.convertEventToCanvasOffset(o),a.graph.add(l)),n\\\\u0026\\\\u0026n(l),a.graph.afterChange()}};d.push(t)}}));const u=xe(\\\\\\\"EasyUse.ContextMenu.NodesSort\\\\\\\",null);\\\\\\\"\\\\\\\"===t\\\\u0026\\\\u0026u\\\\u0026\\\\u0026(d=function(e){let t=[],i=[];return e.forEach((e=\\\\u003e{(null==e?void 0:e.value)\\\\u0026\\\\u0026Me.includes(e.value.split(\\\\\\\"/\\\\\\\")[0])?t.push(e):i.push(e)})),[{title:Ne(\\\\\\\"ComfyUI Basic\\\\\\\"),is_category_title:!0},...t,{title:Ne(\\\\\\\"Others A~Z\\\\\\\"),is_category_title:!0},...i.sort(((e,t)=\\\\u003ee.content.localeCompare(t.content)))]}(d)),new LiteGraph.ContextMenu(d,{event:i,parentMenu:s},o)}(\\\\\\\"\\\\\\\",s),!1}function _i(e){try{return encodeURIComponent(e).replace(/[!'()*]/g,(e=\\\\u003e`%${e.charCodeAt(0).toString(16).toUpperCase()}`))}catch(t){return e}}function Si(e,t,i){var s=this;i=i||{};var n=document.createElement(\\\\\\\"div\\\\\\\");n.className=\\\\\\\"litemenu-entry submenu\\\\\\\";var a=!1;function o(e){var t=this.value,n=!0;(s.current_submenu\\\\u0026\\\\u0026s.current_submenu.close(e),i.callback)\\\\u0026\\\\u0026(!0===i.callback.call(this,t,i,e,s,i.node)\\\\u0026\\\\u0026(n=!1));if(t){if(t.callback\\\\u0026\\\\u0026!i.ignore_item_callbacks\\\\u0026\\\\u0026!0!==t.disabled)!0===t.callback.call(this,t,i,e,s,i.extra)\\\\u0026\\\\u0026(n=!1);if(t.submenu){if(!t.submenu.options)throw\\\\\\\"ContextMenu submenu needs options\\\\\\\";new s.constructor(t.submenu.options,{callback:t.submenu.callback,event:e,parentMenu:s,ignore_item_callbacks:t.submenu.ignore_item_callbacks,title:t.submenu.title,extra:t.submenu.extra,autoopen:i.autoopen}),n=!1}}n\\\\u0026\\\\u0026!s.lock\\\\u0026\\\\u0026s.close()}return null===t?n.classList.add(\\\\\\\"separator\\\\\\\"):t.is_category_title?(n.classList.remove(\\\\\\\"litemenu-entry\\\\\\\"),n.classList.remove(\\\\\\\"submenu\\\\\\\"),n.classList.add(\\\\\\\"litemenu-title\\\\\\\"),n.innerHTML=t.title):(n.innerHTML=t\\\\u0026\\\\u0026t.title?t.title:e,n.value=t,t\\\\u0026\\\\u0026(t.disabled\\\\u0026\\\\u0026(a=!0,n.classList.add(\\\\\\\"disabled\\\\\\\")),(t.submenu||t.has_submenu)\\\\u0026\\\\u0026n.classList.add(\\\\\\\"has_submenu\\\\\\\")),\\\\\\\"function\\\\\\\"==typeof t?(n.dataset.value=e,n.onclick_callback=t):n.dataset.value=t,t.className\\\\u0026\\\\u0026(n.className+=\\\\\\\" \\\\\\\"+t.className)),n\\\\u0026\\\\u0026(null==t?void 0:t.thumbnail)\\\\u0026\\\\u0026(n.addEventListener(\\\\\\\"mouseenter\\\\\\\",Li(n,t,this.root),{passive:!0}),n.addEventListener(\\\\\\\"mouseleave\\\\\\\",ki(),{passive:!0}),n.addEventListener(\\\\\\\"click\\\\\\\",ki(),{passive:!0})),this.root.appendChild(n),a||n.addEventListener(\\\\\\\"click\\\\\\\",o),!a\\\\u0026\\\\u0026i.autoopen\\\\u0026\\\\u0026LiteGraph.pointerListenerAdd(n,\\\\\\\"enter\\\\\\\",(function(e){var t=this.value;if(!t||!t.has_submenu)return;o.call(this,e)})),n}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.ContextMenu\\\\\\\",async setup(){LGraphCanvas.onMenuAdd=bi,xi();const e=LiteGraph.ContextMenu;LiteGraph.ContextMenu=function(t,i){if(!(null==i?void 0:i.callback)||t.some((e=\\\\u003e\\\\\\\"string\\\\\\\"!=typeof e))){if(i.parentMenu);else if(i.extra);else if(i.scale);else{const e=xe(\\\\\\\"EasyUse.ContextMenu.QuickOptions\\\\\\\",null);if(i.hasOwnProperty(\\\\\\\"extra\\\\\\\")\\\\u0026\\\\u0026\\\\\\\"Disable\\\\\\\"!==e){if(\\\\\\\"At the forefront\\\\\\\"==e?t.unshift(null):t.push(null),s=window.location.host,[\\\\\\\"192.168.\\\\\\\",\\\\\\\"10.\\\\\\\",\\\\\\\"127.\\\\\\\",/^172\\\\\\\\.((1[6-9]|2[0-9]|3[0-1])\\\\\\\\.)/].some((e=\\\\u003e\\\\\\\"string\\\\\\\"==typeof e?s.startsWith(e):e.test(s)))){const i={content:`\\\\u003ci class=\\\\\\\"mdi mdi-refresh-circle comfyui-easyuse-error\\\\\\\" style=\\\\\\\"margin-right:2px;font-size:16px\\\\\\\"\\\\u003e\\\\u003c/i\\\\u003e${Ne(\\\\\\\"Reboot ComfyUI\\\\\\\")}`,callback:e=\\\\u003e(async()=\\\\u003e{if(confirm(Ne(\\\\\\\"Are you sure you'd like to reboot the server?\\\\\\\")))try{ge.fetchApi(\\\\\\\"/easyuse/reboot\\\\\\\")}catch(e){}})()};\\\\\\\"At the forefront\\\\\\\"==e?t.unshift(i):t.push(i)}const i=xe(\\\\\\\"EasyUse.Hotkeys.cleanVRAMUsed\\\\\\\",null)?\\\\\\\"(\\\\\\\"+qe(\\\\\\\"Shift+r\\\\\\\")+\\\\\\\")\\\\\\\":\\\\\\\"\\\\\\\",n={content:`\\\\u003ci class=\\\\\\\"mdi mdi-rocket comfyui-easyuse-theme\\\\\\\" style=\\\\\\\"margin-right:2px;font-size:16px\\\\\\\"\\\\u003e\\\\u003c/i\\\\u003e${Ne(\\\\\\\"Cleanup Of VRAM Usage\\\\\\\")} ${i}`,callback:e=\\\\u003evi()};\\\\\\\"At the forefront\\\\\\\"==e?t.unshift(n):t.push(n);const a=xe(\\\\\\\"EasyUse.Hotkeys.toggleNodesMap\\\\\\\",null)?\\\\\\\"(\\\\\\\"+qe(\\\\\\\"Shift+m\\\\\\\")+\\\\\\\")\\\\\\\":\\\\\\\"\\\\\\\",o={content:`\\\\u003ci class=\\\\\\\"mdi mdi-sitemap comfyui-easyuse-warning\\\\\\\" style=\\\\\\\"margin-right:2px;font-size:14px\\\\\\\"\\\\u003e\\\\u003c/i\\\\u003e${Ne(\\\\\\\"Nodes Map\\\\\\\")} ${a}`,callback:e=\\\\u003e{var t,i,s;const n=(null==(t=fe.extensionManager)?void 0:t.sidebarTab)||fe.extensionManager,a=(null==(i=fe.extensionManager.sidebarTab)?void 0:i.activeSidebarTabId)||(null==(s=fe.extensionManager)?void 0:s.activeSidebarTab);n.activeSidebarTabId=a==Pe?null:Pe}};\\\\\\\"At the forefront\\\\\\\"==e?t.unshift(o):t.push(o)}}return e.apply(this,[...arguments])}{const s=function(e,t){const i=xe(\\\\\\\"EasyUse.ContextMenu.ModelsThumbnails\\\\\\\",null),s=xe(\\\\\\\"EasyUse.ContextMenu.SubDirectories\\\\\\\",null);if(!i\\\\u0026\\\\u0026!s)return null;if(wi)return null;const n=[\\\\\\\"ckpt\\\\\\\",\\\\\\\"pt\\\\\\\",\\\\\\\"bin\\\\\\\",\\\\\\\"pth\\\\\\\",\\\\\\\"safetensors\\\\\\\",\\\\\\\"gguf\\\\\\\"];if((null==e?void 0:e.length)\\\\u003e0){const t=null==(a=e[e.length-1])?void 0:a.substring(a.lastIndexOf(\\\\\\\".\\\\\\\")+1);if(!n.includes(t))return null}var a;const o=t.callback,l=[...e];t.callback=null;const r=(e,t)=\\\\u003e{[\\\\\\\"None\\\\\\\",\\\\\\\"\\u65e0\\\\\\\",\\\\\\\"\\u7121\\\\\\\",\\\\\\\"\\u306a\\u3057\\\\\\\"].includes(e.content)?o(\\\\\\\"None\\\\\\\",t):o(l.find((t=\\\\u003et.endsWith(e.content)),t))};if(i\\\\u0026\\\\u0026!s)return e.map((e=\\\\u003e{var t,i;let s=null==(t=yi[e])?void 0:t.folder,n=null==(i=yi[e])?void 0:i.pathIndex;const a=window.location.protocol,o=window.location.host;let l=s?`${`${a}//${o}`}/api/experiment/models/preview/${s}/${n}/${_i(e)}`:\\\\\\\"\\\\\\\";return{folder:s,content:e,fullName:e,title:ve(\\\\\\\"div.comfyui-easyuse-contextmenu-model\\\\\\\",{},[ve(\\\\\\\"span\\\\\\\",{},e)]).outerHTML,thumbnail:l,callback:r}}));const d=e,u={},c=[],A=[];for(const f of d){const e=f.indexOf(\\\\\\\"/\\\\\\\")\\\\u003e-1?\\\\\\\"/\\\\\\\":\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\",t=f.split(e);if(t.length\\\\u003e1){const i=t.shift();u[i]=u[i]||[],u[i].push({value:t.join(e),fullValue:f})}else\\\\\\\"CHOOSE\\\\\\\"===f||f.startsWith(\\\\\\\"DISABLE \\\\\\\")?c.push({value:f,fullValue:f}):A.push({value:f,fullValue:f})}const p=Object.values(u).length,h=[],m=(e,t=\\\\\\\"\\\\\\\",s)=\\\\u003e{var n,a;let o;o=ve(\\\\\\\"div.comfyui-easyuse-contextmenu-model\\\\\\\",{},[ve(\\\\\\\"span\\\\\\\",{},e)]);let l=null==(n=yi[s])?void 0:n.folder,d=null==(a=yi[s])?void 0:a.pathIndex;const u=window.location.protocol,c=window.location.host;let A=l?`${`${u}//${c}`}/api/experiment/models/preview/${l}/${d}/${_i(s)}`:\\\\\\\"\\\\\\\";return{folder:l,content:e,fullName:s,thumbnail:i?A:null,title:o.outerHTML,callback:r}};if(p\\\\u003e0){const e=(t,i)=\\\\u003e{let s=[],n=[];const a=t.map((({value:e,fullValue:t})=\\\\u003e{const a={},o=e.indexOf(\\\\\\\"/\\\\\\\")\\\\u003e-1?\\\\\\\"/\\\\\\\":\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\",l=e.split(o);if(l.length\\\\u003e1){const e=l.shift();a[e]=a[e]||[],a[e].push({value:l.join(o),fullValue:t})}if(Object.values(u).length\\\\u003e0){let i=Object.keys(a)[0];i\\\\u0026\\\\u0026a[i]?s.push({key:i,value:a[i][0]}):n.push(m(e,i,t))}return m(e,i,t)}));if(s.length\\\\u003e0){let t={};return s.forEach((e=\\\\u003e{t[e.key]=t[e.key]||[],t[e.key].push(e.value)})),[...Object.entries(t).map((t=\\\\u003e({content:t[0],has_submenu:!0,callback:()=\\\\u003e{},submenu:{options:e(t[1],t[0])}}))),...n]}return a};for(const[t,i]of Object.entries(u))h.push({content:t,has_submenu:!0,callback:()=\\\\u003e{},submenu:{options:e(i,t)}})}h.push(...A.map((e=\\\\u003em(e.value,\\\\\\\"\\\\\\\",e.fullValue)))),c.length\\\\u003e0\\\\u0026\\\\u0026h.push(...c.map((e=\\\\u003em(e.value,\\\\\\\"\\\\\\\",e.fullValue))));return h}(t,i);return s?e.call(this,s,i):e.apply(this,[...arguments])}var s},LiteGraph.ContextMenu.prototype=e.prototype,xe(\\\\\\\"EasyUse.ContextMenu.NodesSort\\\\\\\")\\\\u0026\\\\u0026(LiteGraph.ContextMenu.prototype.addItem=Si),document.getElementById(\\\\\\\"graph-canvas\\\\\\\").addEventListener(\\\\\\\"mouseenter\\\\\\\",(e=\\\\u003e{setTimeout((e=\\\\u003e{const t=document.getElementById(\\\\\\\"easyuse-model-thumbnail\\\\\\\");t\\\\u0026\\\\u00260!=t.style.opacity\\\\u0026\\\\u0026(t.style.display=\\\\\\\"none\\\\\\\",t.style.opacity=0,t.style.left=\\\\\\\"0px\\\\\\\",t.style.top=\\\\\\\"0px\\\\\\\")}),100)}))},async beforeRegisterNodeDef(e,t,i){const s=e.prototype.onNodeCreated;[\\\\\\\"CheckpointLoader|pysssss\\\\\\\",\\\\\\\"LoraLoader|pysssss\\\\\\\"].includes(t.name)\\\\u0026\\\\u0026(e.prototype.onNodeCreated=async function(){s\\\\u0026\\\\u0026s.apply(this,[]);let e=wt(this,\\\\\\\"lora_name\\\\\\\")||wt(this,\\\\\\\"ckpt_name\\\\\\\");if(e){let t=e.onClick;e.onClick=function(e){return wi=!0,setTimeout((e=\\\\u003e{wi=!1}),500),t.call(this,e)}}})}});const xi=async()=\\\\u003e{[\\\\\\\"checkpoints\\\\\\\",\\\\\\\"loras\\\\\\\",\\\\\\\"diffusion_models\\\\\\\"].map((async e=\\\\u003e{const t=await ge.getModels(e);(null==t?void 0:t.length)\\\\u003e0\\\\u0026\\\\u0026t.map((t=\\\\u003e{yi[t.name]={folder:e,pathIndex:t.pathIndex}}))}))},Li=(e,t,i)=\\\\u003es=\\\\u003e{var n;const a=t=\\\\u003e{setTimeout((s=\\\\u003e{const n=i.getBoundingClientRect();if(!n)return;const a=document.body.getBoundingClientRect();if(!a)return;const{left:o,top:l}=((e,t,i)=\\\\u003e{const{x:s}=e.getBoundingClientRect();let{top:n,left:a}=t;const{width:o,height:l}=i;return s\\\\u003c=o\\\\u0026\\\\u0026(a+=t.width),t.top\\\\u003c=l||(n=l),{left:a,top:n}})(e,n,a),r=document.getElementById(\\\\\\\"easyuse-model-thumbnail\\\\\\\");r.src=t,r.style.left=`${o}px`,r.style.top=`${l}px`,r.style.display=\\\\\\\"block\\\\\\\",r.style.opacity=1,r.onerror=e=\\\\u003e{r.src=Ge}}),10)};if(null==(n=null==yi?void 0:yi[t.fullName])?void 0:n.img){let e=yi[t.fullName].img;a(\\\\\\\"no_preview_image\\\\\\\"==e?Ge:e.src)}else{let e=new Image;e.src=t.thumbnail,e.onload=i=\\\\u003e{yi[t.fullName].img=e,a(t.thumbnail)},e.onerror=i=\\\\u003e{e=null,yi[t.fullName].img=\\\\\\\"no_preview_image\\\\\\\",a(Ge)}}},ki=()=\\\\u003ee=\\\\u003e{const t=document.getElementById(\\\\\\\"easyuse-model-thumbnail\\\\\\\");t\\\\u0026\\\\u00260!=t.style.opacity\\\\u0026\\\\u0026(t.style.display=\\\\\\\"none\\\\\\\",t.style.opacity=0,t.style.left=\\\\\\\"0px\\\\\\\",t.style.top=\\\\\\\"0px\\\\\\\")};class Ei extends ye{constructor(){super(),this.element.classList.add(\\\\\\\"easyuse-model-metadata\\\\\\\")}show(e){super.show(ve(\\\\\\\"div\\\\\\\",Object.keys(e).map((t=\\\\u003eve(\\\\\\\"div\\\\\\\",[ve(\\\\\\\"label\\\\\\\",{textContent:t}),ve(\\\\\\\"span\\\\\\\",{textContent:e[t]})])))))}}class Ni extends ye{constructor(e){super(),this.name=e,this.element.classList.add(\\\\\\\"easyuse-model-info\\\\\\\")}get customNotes(){return this.metadata[\\\\\\\"easyuse.notes\\\\\\\"]}set customNotes(e){this.metadata[\\\\\\\"easyuse.notes\\\\\\\"]=e}get hash(){return this.metadata[\\\\\\\"easyuse.sha256\\\\\\\"]}async show(e,t){this.type=e;const i=ge.fetchApi(\\\\\\\"/easyuse/metadata/\\\\\\\"+encodeURIComponent(`${e}/${t}`));this.info=ve(\\\\\\\"div\\\\\\\",{style:{flex:\\\\\\\"auto\\\\\\\"}}),this.imgCurrent=0,this.imgList=ve(\\\\\\\"div.easyuse-preview-list\\\\\\\",{style:{display:\\\\\\\"none\\\\\\\"}}),this.imgWrapper=ve(\\\\\\\"div.easyuse-preview\\\\\\\",[ve(\\\\\\\"div.easyuse-preview-group\\\\\\\",[this.imgList])]),this.main=ve(\\\\\\\"main\\\\\\\",{style:{display:\\\\\\\"flex\\\\\\\"}},[this.imgWrapper,this.info]),this.content=ve(\\\\\\\"div.easyuse-model-content\\\\\\\",[ve(\\\\\\\"div.easyuse-model-header\\\\\\\",[ve(\\\\\\\"h2\\\\\\\",{textContent:this.name})]),this.main]);const s=ve(\\\\\\\"div\\\\\\\",{textContent:\\\\\\\"\\u2139\\ufe0f Loading...\\\\\\\",parent:this.content});super.show(this.content),this.metadata=await(await i).json(),this.viewMetadata.style.cursor=this.viewMetadata.style.opacity=\\\\\\\"\\\\\\\",this.viewMetadata.removeAttribute(\\\\\\\"disabled\\\\\\\"),s.remove(),this.addInfo()}createButtons(){const e=super.createButtons();return this.viewMetadata=ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:\\\\\\\"View raw metadata\\\\\\\",disabled:\\\\\\\"disabled\\\\\\\",style:{opacity:.5,cursor:\\\\\\\"not-allowed\\\\\\\"},onclick:e=\\\\u003e{this.metadata\\\\u0026\\\\u0026(new Ei).show(this.metadata)}}),e.unshift(this.viewMetadata),e}parseNote(){if(!this.customNotes)return[];let e=[];const t=new RegExp(\\\\\\\"(\\\\\\\\\\\\\\\\bhttps?:\\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\\/[^\\\\\\\\\\\\\\\\s]+)\\\\\\\",\\\\\\\"g\\\\\\\");let i,s=0;do{let n;i=t.exec(this.customNotes);let a=0;i?(n=i.index,a=i.index+i[0].length):n=this.customNotes.length;let o=this.customNotes.substring(s,n);o\\\\u0026\\\\u0026(o=o.replaceAll(\\\\\\\"\\\\\\\\n\\\\\\\",\\\\\\\"\\\\u003cbr\\\\u003e\\\\\\\"),e.push(ve(\\\\\\\"span\\\\\\\",{innerHTML:o}))),i\\\\u0026\\\\u0026e.push(ve(\\\\\\\"a\\\\\\\",{href:i[0],textContent:i[0],target:\\\\\\\"_blank\\\\\\\"})),s=a}while(i);return e}addInfoEntry(e,t){return ve(\\\\\\\"p\\\\\\\",{parent:this.info},[\\\\\\\"string\\\\\\\"==typeof e?ve(\\\\\\\"label\\\\\\\",{textContent:e+\\\\\\\": \\\\\\\"}):e,\\\\\\\"string\\\\\\\"==typeof t?ve(\\\\\\\"span\\\\\\\",{textContent:t}):t])}async getCivitaiDetails(){const e=await fetch(\\\\\\\"https://civitai.com/api/v1/model-versions/by-hash/\\\\\\\"+this.hash);if(200===e.status)return await e.json();throw 404===e.status?new Error(\\\\\\\"Model not found\\\\\\\"):new Error(`Error loading info (${e.status}) ${e.statusText}`)}addCivitaiInfo(){const e=this.getCivitaiDetails(),t=ve(\\\\\\\"span\\\\\\\",{textContent:\\\\\\\"\\u2139\\ufe0f Loading...\\\\\\\"});return this.addInfoEntry(ve(\\\\\\\"label\\\\\\\",[ve(\\\\\\\"img\\\\\\\",{style:{width:\\\\\\\"18px\\\\\\\",position:\\\\\\\"relative\\\\\\\",top:\\\\\\\"3px\\\\\\\",margin:\\\\\\\"0 5px 0 0\\\\\\\"},src:\\\\\\\"https://civitai.com/favicon.ico\\\\\\\"}),ve(\\\\\\\"span\\\\\\\",{textContent:\\\\\\\"Civitai: \\\\\\\"})]),t),e.then((e=\\\\u003e{var t,i;this.imgWrapper.style.display=\\\\\\\"block\\\\\\\";let s=this.element.querySelector(\\\\\\\".easyuse-model-header\\\\\\\");s\\\\u0026\\\\u0026s.replaceChildren(ve(\\\\\\\"h2\\\\\\\",{textContent:this.name}),ve(\\\\\\\"div.easyuse-model-header-remark\\\\\\\",[ve(\\\\\\\"h5\\\\\\\",{textContent:Ne(\\\\\\\"Updated At:\\\\\\\")+Ze(new Date(e.updatedAt),\\\\\\\"yyyy/MM/dd\\\\\\\")}),ve(\\\\\\\"h5\\\\\\\",{textContent:Ne(\\\\\\\"Created At:\\\\\\\")+Ze(new Date(e.updatedAt),\\\\\\\"yyyy/MM/dd\\\\\\\")})]));let n=null,a=this.parseNote.call(this),o=Ne(\\\\\\\"\\u270f\\ufe0f Edit\\\\\\\"),l=ve(\\\\\\\"div.easyuse-model-detail-textarea\\\\\\\",[ve(\\\\\\\"p\\\\\\\",(null==a?void 0:a.length)\\\\u003e0?a:{textContent:Ne(\\\\\\\"No notes\\\\\\\")})]);if(a\\\\u0026\\\\u00260!=a.length?l.classList.remove(\\\\\\\"empty\\\\\\\"):l.classList.add(\\\\\\\"empty\\\\\\\"),this.info.replaceChildren(ve(\\\\\\\"div.easyuse-model-detail\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-head.flex-b\\\\\\\",[ve(\\\\\\\"span\\\\\\\",Ne(\\\\\\\"Notes\\\\\\\")),ve(\\\\\\\"a\\\\\\\",{textContent:o,href:\\\\\\\"#\\\\\\\",style:{fontSize:\\\\\\\"12px\\\\\\\",float:\\\\\\\"right\\\\\\\",color:\\\\\\\"var(--warning-color)\\\\\\\",textDecoration:\\\\\\\"none\\\\\\\"},onclick:async e=\\\\u003e{if(e.preventDefault(),n){if(n.value!=this.customNotes){Ye.showLoading(Ne(\\\\\\\"Saving Notes...\\\\\\\")),this.customNotes=n.value;const e=await ge.fetchApi(\\\\\\\"/easyuse/metadata/notes/\\\\\\\"+encodeURIComponent(`${this.type}/${this.name}`),{method:\\\\\\\"POST\\\\\\\",body:this.customNotes});if(Ye.hideLoading(),200!==e.status)return Ye.error(Ne(\\\\\\\"Saving Failed\\\\\\\")),void alert(`Error saving notes (${e.status}) ${e.statusText}`);Ye.success(Ne(\\\\\\\"Saving Succeed\\\\\\\")),a=this.parseNote.call(this),l.replaceChildren(ve(\\\\\\\"p\\\\\\\",(null==a?void 0:a.length)\\\\u003e0?a:{textContent:Ne(\\\\\\\"No notes\\\\\\\")})),n.value?l.classList.remove(\\\\\\\"empty\\\\\\\"):l.classList.add(\\\\\\\"empty\\\\\\\")}else l.replaceChildren(ve(\\\\\\\"p\\\\\\\",{textContent:Ne(\\\\\\\"No notes\\\\\\\")})),l.classList.add(\\\\\\\"empty\\\\\\\");e.target.textContent=o,n.remove(),n=null}else e.target.textContent=\\\\\\\"\\ud83d\\udcbe Save\\\\\\\",n=ve(\\\\\\\"textarea\\\\\\\",{placeholder:Ne(\\\\\\\"Type your notes here\\\\\\\"),style:{width:\\\\\\\"100%\\\\\\\",minWidth:\\\\\\\"200px\\\\\\\",minHeight:\\\\\\\"50px\\\\\\\",height:\\\\\\\"100px\\\\\\\"},textContent:this.customNotes}),l.replaceChildren(n),n.focus()}})]),l]),ve(\\\\\\\"div.easyuse-model-detail\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-head\\\\\\\",{textContent:Ne(\\\\\\\"Details\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-body\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"Type\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",{textContent:e.model.type})]),ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"BaseModel\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",{textContent:e.baseModel})]),ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"Download\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",{textContent:(null==(t=e.stats)?void 0:t.downloadCount)||0})]),ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"Trained Words\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",{textContent:(null==e?void 0:e.trainedWords.join(\\\\\\\",\\\\\\\"))||\\\\\\\"-\\\\\\\"})]),ve(\\\\\\\"div.easyuse-model-detail-item\\\\\\\",[ve(\\\\\\\"div.easyuse-model-detail-item-label\\\\\\\",{textContent:Ne(\\\\\\\"Source\\\\\\\")}),ve(\\\\\\\"div.easyuse-model-detail-item-value\\\\\\\",[ve(\\\\\\\"label\\\\\\\",[ve(\\\\\\\"img\\\\\\\",{style:{width:\\\\\\\"14px\\\\\\\",position:\\\\\\\"relative\\\\\\\",top:\\\\\\\"3px\\\\\\\",margin:\\\\\\\"0 5px 0 0\\\\\\\"},src:\\\\\\\"https://civitai.com/favicon.ico\\\\\\\"}),ve(\\\\\\\"a\\\\\\\",{href:\\\\\\\"https://civitai.com/models/\\\\\\\"+e.modelId,textContent:\\\\\\\"View \\\\\\\"+e.model.name,target:\\\\\\\"_blank\\\\\\\"})])])])])])),null==(i=e.images)?void 0:i.length){this.imgCurrent=0,this.isSaving=!1,e.images.map((e=\\\\u003ee.url\\\\u0026\\\\u0026this.imgList.appendChild(ve(\\\\\\\"div.easyuse-preview-slide\\\\\\\",[ve(\\\\\\\"div.easyuse-preview-slide-content\\\\\\\",[ve(\\\\\\\"img\\\\\\\",{src:e.url}),ve(\\\\\\\"div.save\\\\\\\",{textContent:\\\\\\\"Save as preview\\\\\\\",onclick:async()=\\\\u003e{if(this.isSaving)return;this.isSaving=!0,Ye.showLoading(Ne(\\\\\\\"Saving Preview...\\\\\\\"));const t=await(await fetch(e.url)).blob(),i=\\\\\\\"temp_preview.\\\\\\\"+new URL(e.url).pathname.split(\\\\\\\".\\\\\\\")[1],s=new FormData;s.append(\\\\\\\"image\\\\\\\",new File([t],i)),s.append(\\\\\\\"overwrite\\\\\\\",\\\\\\\"true\\\\\\\"),s.append(\\\\\\\"type\\\\\\\",\\\\\\\"temp\\\\\\\");if(200!==(await ge.fetchApi(\\\\\\\"/upload/image\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:s})).status)return this.isSaving=!1,Ye.error(Ne(\\\\\\\"Saving Failed\\\\\\\")),Ye.hideLoading(),void alert(`Error saving preview (${req.status}) ${req.statusText}`);await ge.fetchApi(\\\\\\\"/easyuse/save/\\\\\\\"+encodeURIComponent(`${this.type}/${this.name}`),{method:\\\\\\\"POST\\\\\\\",body:JSON.stringify({filename:i,type:\\\\\\\"temp\\\\\\\"}),headers:{\\\\\\\"content-type\\\\\\\":\\\\\\\"application/json\\\\\\\"}}).then((e=\\\\u003e{Ye.success(Ne(\\\\\\\"Saving Succeed\\\\\\\")),Ye.hideLoading()})),this.isSaving=!1,app.refreshComboInNodes()}})])]))));let t=this;this.imgDistance=(-660*this.imgCurrent).toString(),this.imgList.style.display=\\\\\\\"\\\\\\\",this.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+this.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\",this.slides=this.imgList.querySelectorAll(\\\\\\\".easyuse-preview-slide\\\\\\\"),this.slideLeftButton=ve(\\\\\\\"button.left\\\\\\\",{parent:this.imgWrapper,style:{display:e.images.length\\\\u003c=2?\\\\\\\"none\\\\\\\":\\\\\\\"block\\\\\\\"},innerHTML:'\\\\u003csvg viewBox=\\\\\\\"0 0 15 15\\\\\\\" fill=\\\\\\\"none\\\\\\\" xmlns=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\" width=\\\\\\\"16\\\\\\\" height=\\\\\\\"16\\\\\\\" style=\\\\\\\"transform: rotate(90deg);\\\\\\\"\\\\u003e\\\\u003cpath d=\\\\\\\"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z\\\\\\\" fill=\\\\\\\"currentColor\\\\\\\" fill-rule=\\\\\\\"evenodd\\\\\\\" clip-rule=\\\\\\\"evenodd\\\\\\\"\\\\u003e\\\\u003c/path\\\\u003e\\\\u003c/svg\\\\u003e',onclick:()=\\\\u003e{e.images.length\\\\u003c=2||(t.imgList.classList.remove(\\\\\\\"no-transition\\\\\\\"),0==t.imgCurrent?(t.imgCurrent=e.images.length/2-1,this.slides[this.slides.length-1].style.transform=\\\\\\\"translate3d(\\\\\\\"+(-660*(this.imgCurrent+1)).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",this.slides[this.slides.length-2].style.transform=\\\\\\\"translate3d(\\\\\\\"+(-660*(this.imgCurrent+1)).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",t.imgList.style.transform=\\\\\\\"translate3d(660px, 0px, 0px)\\\\\\\",setTimeout((e=\\\\u003e{this.slides[this.slides.length-1].style.transform=\\\\\\\"translate3d(0px, 0px, 0px)\\\\\\\",this.slides[this.slides.length-2].style.transform=\\\\\\\"translate3d(0px, 0px, 0px)\\\\\\\",t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+t.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\",t.imgList.classList.add(\\\\\\\"no-transition\\\\\\\")}),500)):(t.imgCurrent=t.imgCurrent-1,t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+t.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\"))}}),this.slideRightButton=ve(\\\\\\\"button.right\\\\\\\",{parent:this.imgWrapper,style:{display:e.images.length\\\\u003c=2?\\\\\\\"none\\\\\\\":\\\\\\\"block\\\\\\\"},innerHTML:'\\\\u003csvg viewBox=\\\\\\\"0 0 15 15\\\\\\\" fill=\\\\\\\"none\\\\\\\" xmlns=\\\\\\\"http://www.w3.org/2000/svg\\\\\\\" width=\\\\\\\"16\\\\\\\" height=\\\\\\\"16\\\\\\\" style=\\\\\\\"transform: rotate(-90deg);\\\\\\\"\\\\u003e\\\\u003cpath d=\\\\\\\"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z\\\\\\\" fill=\\\\\\\"currentColor\\\\\\\" fill-rule=\\\\\\\"evenodd\\\\\\\" clip-rule=\\\\\\\"evenodd\\\\\\\"\\\\u003e\\\\u003c/path\\\\u003e\\\\u003c/svg\\\\u003e',onclick:()=\\\\u003e{if(!(e.images.length\\\\u003c=2))if(t.imgList.classList.remove(\\\\\\\"no-transition\\\\\\\"),t.imgCurrent\\\\u003e=e.images.length/2-1){t.imgCurrent=0;const i=e.images.length/2;this.slides[0].style.transform=\\\\\\\"translate3d(\\\\\\\"+(660*i).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",this.slides[1].style.transform=\\\\\\\"translate3d(\\\\\\\"+(660*i).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+(-660*i).toString()+\\\\\\\"px, 0px, 0px)\\\\\\\",setTimeout((e=\\\\u003e{this.slides[0].style.transform=\\\\\\\"translate3d(0px, 0px, 0px)\\\\\\\",this.slides[1].style.transform=\\\\\\\"translate3d(0px, 0px, 0px)\\\\\\\",t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+t.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\",t.imgList.classList.add(\\\\\\\"no-transition\\\\\\\")}),500)}else t.imgCurrent=t.imgCurrent+1,t.imgDistance=(-660*this.imgCurrent).toString(),t.imgList.style.transform=\\\\\\\"translate3d(\\\\\\\"+t.imgDistance+\\\\\\\"px, 0px, 0px)\\\\\\\"}})}return e.description\\\\u0026\\\\u0026ve(\\\\\\\"div\\\\\\\",{parent:this.content,innerHTML:e.description,style:{marginTop:\\\\\\\"10px\\\\\\\"}}),e})).catch((e=\\\\u003e{this.imgWrapper.style.display=\\\\\\\"none\\\\\\\",t.textContent=\\\\\\\"\\u26a0\\ufe0f \\\\\\\"+e.message})).finally((e=\\\\u003e{}))}}class Ci extends Ni{async addInfo(){await this.addCivitaiInfo()}}class Ii extends Ni{getTagFrequency(){if(!this.metadata.ss_tag_frequency)return[];const e=JSON.parse(this.metadata.ss_tag_frequency),t={};for(const i in e){const s=e[i];for(const e in s)e in t?t[e]+=s[e]:t[e]=s[e]}return Object.entries(t).sort(((e,t)=\\\\u003et[1]-e[1]))}getResolutions(){let e=[];if(this.metadata.ss_bucket_info){const t=JSON.parse(this.metadata.ss_bucket_info);if(null==t?void 0:t.buckets)for(const{resolution:i,count:s}of Object.values(t.buckets))e.push([s,`${i.join(\\\\\\\"x\\\\\\\")} * ${s}`])}e=e.sort(((e,t)=\\\\u003et[0]-e[0])).map((e=\\\\u003ee[1]));let t=this.metadata.ss_resolution;if(t){const i=t.split(\\\\\\\",\\\\\\\"),s=i[0].replace(\\\\\\\"(\\\\\\\",\\\\\\\"\\\\\\\"),n=i[1].replace(\\\\\\\")\\\\\\\",\\\\\\\"\\\\\\\");e.push(`${s.trim()}x${n.trim()} (Base res)`)}else(t=this.metadata[\\\\\\\"modelspec.resolution\\\\\\\"])\\\\u0026\\\\u0026e.push(t+\\\\\\\" (Base res\\\\\\\");return e.length||e.push(\\\\\\\"\\u26a0\\ufe0f Unknown\\\\\\\"),e}getTagList(e){return e.map((e=\\\\u003eve(\\\\\\\"li.easyuse-model-tag\\\\\\\",{dataset:{tag:e[0]},$:e=\\\\u003e{e.onclick=()=\\\\u003e{e.classList.toggle(\\\\\\\"easyuse-model-tag--selected\\\\\\\")}}},[ve(\\\\\\\"p\\\\\\\",{textContent:e[0]}),ve(\\\\\\\"span\\\\\\\",{textContent:e[1]})])))}addTags(){let e,t=this.getTagFrequency();if(null==t?void 0:t.length){const i=t.length;let s;i\\\\u003e500\\\\u0026\\\\u0026(t=t.slice(0,500),e=ve(\\\\\\\"p\\\\\\\",[ve(\\\\\\\"span\\\\\\\",{textContent:\\\\\\\"\\u26a0\\ufe0f Only showing first 500 tags \\\\\\\"}),ve(\\\\\\\"a\\\\\\\",{href:\\\\\\\"#\\\\\\\",textContent:`Show all ${i}`,onclick:()=\\\\u003e{s.replaceChildren(...this.getTagList(this.getTagFrequency())),e.remove()}})])),s=ve(\\\\\\\"ol.easyuse-model-tags-list\\\\\\\",this.getTagList(t)),this.tags=ve(\\\\\\\"div\\\\\\\",[s])}else this.tags=ve(\\\\\\\"p\\\\\\\",{textContent:\\\\\\\"\\u26a0\\ufe0f No tag frequency metadata found\\\\\\\"});this.content.append(this.tags),e\\\\u0026\\\\u0026this.content.append(e)}async addInfo(){const e=this.addCivitaiInfo();this.addTags();const t=await e;t\\\\u0026\\\\u0026ve(\\\\\\\"div\\\\\\\",{parent:this.content,innerHTML:t.description,style:{maxHeight:\\\\\\\"250px\\\\\\\",overflow:\\\\\\\"auto\\\\\\\"}})}createButtons(){const e=super.createButtons();function t(e,t){const i=ve(\\\\\\\"textarea\\\\\\\",{parent:document.body,style:{position:\\\\\\\"fixed\\\\\\\"},textContent:t.map((e=\\\\u003ee.dataset.tag)).join(\\\\\\\", \\\\\\\")});i.select();try{document.execCommand(\\\\\\\"copy\\\\\\\"),e.target.dataset.text||(e.target.dataset.text=e.target.textContent),e.target.textContent=\\\\\\\"Copied \\\\\\\"+t.length+\\\\\\\" tags\\\\\\\",setTimeout((()=\\\\u003e{e.target.textContent=e.target.dataset.text}),1e3)}catch(s){prompt(\\\\\\\"Copy to clipboard: Ctrl+C, Enter\\\\\\\",text)}finally{document.body.removeChild(i)}}return e.unshift(ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:\\\\\\\"Copy Selected\\\\\\\",onclick:e=\\\\u003e{t(e,[...this.tags.querySelectorAll(\\\\\\\".easyuse-model-tag--selected\\\\\\\")])}}),ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:\\\\\\\"Copy All\\\\\\\",onclick:e=\\\\u003e{t(e,[...this.tags.querySelectorAll(\\\\\\\".easyuse-model-tag\\\\\\\")])}})),e}}const Ti={pipe:{category:\\\\\\\"Easy Pipe\\\\\\\",nodes:[\\\\\\\"easy pipeIn\\\\\\\",\\\\\\\"easy pipeOut\\\\\\\",\\\\\\\"easy pipeEdit\\\\\\\",\\\\\\\"easy pipeEditPrompt\\\\\\\",\\\\\\\"easy pipeBatchIndex\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\"},widget:{optional_positive:\\\\\\\"optional_positive\\\\\\\",optional_negative:\\\\\\\"optional_negative\\\\\\\"}},loaders:{category:\\\\\\\"Easy Loaders\\\\\\\",nodes:[\\\\\\\"easy fullLoader\\\\\\\",\\\\\\\"easy a1111Loader\\\\\\\",\\\\\\\"easy comfyLoader\\\\\\\",\\\\\\\"easy kolorsLoader\\\\\\\",\\\\\\\"easy hunyuanDiTLoader\\\\\\\",\\\\\\\"easy pixArtLoader\\\\\\\",\\\\\\\"easy fluxLoader\\\\\\\"],input:{optional_lora_stack:\\\\\\\"optional_lora_stack\\\\\\\",optional_controlnet_stack:\\\\\\\"optional_controlnet_stack\\\\\\\",positive:\\\\\\\"positive\\\\\\\",negative:\\\\\\\"negative\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\",model:\\\\\\\"model\\\\\\\",vae:\\\\\\\"vae\\\\\\\",clip:null,positive:null,negative:null,latent:null},widget:{ckpt_name:\\\\\\\"ckpt_name\\\\\\\",vae_name:\\\\\\\"vae_name\\\\\\\",clip_skip:\\\\\\\"clip_skip\\\\\\\",lora_name:\\\\\\\"lora_name\\\\\\\",resolution:\\\\\\\"resolution\\\\\\\",empty_latent_width:\\\\\\\"empty_latent_width\\\\\\\",empty_latent_height:\\\\\\\"empty_latent_height\\\\\\\",positive:\\\\\\\"positive\\\\\\\",negative:\\\\\\\"negative\\\\\\\",batch_size:\\\\\\\"batch_size\\\\\\\",a1111_prompt_style:\\\\\\\"a1111_prompt_style\\\\\\\"}},preSampling:{category:\\\\\\\"Easy PreSampling\\\\\\\",nodes:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",\\\\\\\"easy preSamplingNoiseIn\\\\\\\",\\\\\\\"easy preSamplingCustom\\\\\\\",\\\\\\\"easy preSamplingLayerDiffusion\\\\\\\",\\\\\\\"easy fullkSampler\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\",image_to_latent:\\\\\\\"image_to_latent\\\\\\\",latent:\\\\\\\"latent\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\"},widget:{steps:\\\\\\\"steps\\\\\\\",cfg:\\\\\\\"cfg\\\\\\\",cfg_scale_min:\\\\\\\"cfg\\\\\\\",sampler_name:\\\\\\\"sampler_name\\\\\\\",scheduler:\\\\\\\"scheduler\\\\\\\",denoise:\\\\\\\"denoise\\\\\\\",seed_num:\\\\\\\"seed_num\\\\\\\",seed:\\\\\\\"seed\\\\\\\"}},samplers:{category:\\\\\\\"Custom Sampler\\\\\\\",nodes:[\\\\\\\"KSamplerSelect\\\\\\\",\\\\\\\"SamplerEulerAncestral\\\\\\\",\\\\\\\"SamplerEulerAncestralCFG++\\\\\\\",\\\\\\\"SamplerLMS\\\\\\\",\\\\\\\"SamplerDPMPP_3M_SDE\\\\\\\",\\\\\\\"SamplerDPMPP_2M_SDE\\\\\\\",\\\\\\\"SamplerDPMPP_SDE\\\\\\\",\\\\\\\"SamplerDPMAdaptative\\\\\\\",\\\\\\\"SamplerLCMUpscale\\\\\\\",\\\\\\\"SamplerTCD\\\\\\\",\\\\\\\"SamplerTCD EulerA\\\\\\\"],output:{SAMPLER:\\\\\\\"SAMPLER\\\\\\\"}},sigmas:{category:\\\\\\\"Custom Sigmas\\\\\\\",nodes:[\\\\\\\"BasicScheduler\\\\\\\",\\\\\\\"KarrasScheduler\\\\\\\",\\\\\\\"ExponentialScheduler\\\\\\\",\\\\\\\"PolyexponentialScheduler\\\\\\\",\\\\\\\"VPScheduler\\\\\\\",\\\\\\\"BetaSamplingScheduler\\\\\\\",\\\\\\\"SDTurboScheduler\\\\\\\",\\\\\\\"SplitSigmas\\\\\\\",\\\\\\\"SplitSigmasDenoise\\\\\\\",\\\\\\\"FlipSigmas\\\\\\\",\\\\\\\"AlignYourStepsScheduler\\\\\\\",\\\\\\\"GITSScheduler\\\\\\\"],output:{SIGMAS:\\\\\\\"SIGMAS\\\\\\\"}},kSampler:{category:\\\\\\\"Easy kSampler\\\\\\\",nodes:[\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy kSamplerTiled\\\\\\\",\\\\\\\"easy kSamplerCustom\\\\\\\",\\\\\\\"easy kSamplerInpainting\\\\\\\",\\\\\\\"easy kSamplerDownscaleUnet\\\\\\\",\\\\\\\"easy kSamplerLayerDiffusion\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\",model:\\\\\\\"model\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\",image:\\\\\\\"image\\\\\\\"},widget:{image_output:\\\\\\\"image_output\\\\\\\",save_prefix:\\\\\\\"save_prefix\\\\\\\",link_id:\\\\\\\"link_id\\\\\\\"}},controlNet:{category:\\\\\\\"Easy ControlNet\\\\\\\",nodes:[\\\\\\\"easy controlnetLoader\\\\\\\",\\\\\\\"easy controlnetLoaderADV\\\\\\\",\\\\\\\"easy controlnetLoader++\\\\\\\",\\\\\\\"easy instantIDApply\\\\\\\",\\\\\\\"easy instantIDApplyADV\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\",image:\\\\\\\"image\\\\\\\",image_kps:\\\\\\\"image_kps\\\\\\\",control_net:\\\\\\\"control_net\\\\\\\",positive:\\\\\\\"positive\\\\\\\",negative:\\\\\\\"negative\\\\\\\",mask:\\\\\\\"mask\\\\\\\"},output:{pipe:\\\\\\\"pipe\\\\\\\",positive:\\\\\\\"positive\\\\\\\",negative:\\\\\\\"negative\\\\\\\"},widget:{control_net_name:\\\\\\\"control_net_name\\\\\\\",strength:[\\\\\\\"strength\\\\\\\",\\\\\\\"cn_strength\\\\\\\"],scale_soft_weights:[\\\\\\\"scale_soft_weights\\\\\\\",\\\\\\\"cn_soft_weights\\\\\\\"],cn_strength:[\\\\\\\"strength\\\\\\\",\\\\\\\"cn_strength\\\\\\\"],cn_soft_weights:[\\\\\\\"scale_soft_weights\\\\\\\",\\\\\\\"cn_soft_weights\\\\\\\"]}},adapter:{category:\\\\\\\"Easy Adapter\\\\\\\",nodes:[\\\\\\\"easy ipadapterApply\\\\\\\",\\\\\\\"easy ipadapterApplyADV\\\\\\\",\\\\\\\"easy ipadapterApplyFaceIDKolors\\\\\\\",\\\\\\\"easy ipadapterStyleComposition\\\\\\\",\\\\\\\"easy ipadapterApplyFromParams\\\\\\\",\\\\\\\"easy pulIDApply\\\\\\\",\\\\\\\"easy pulIDApplyADV\\\\\\\"],input:{model:\\\\\\\"model\\\\\\\",image:\\\\\\\"image\\\\\\\",image_style:\\\\\\\"image\\\\\\\",attn_mask:\\\\\\\"attn_mask\\\\\\\",optional_ipadapter:\\\\\\\"optional_ipadapter\\\\\\\"},output:{model:\\\\\\\"model\\\\\\\",tiles:\\\\\\\"tiles\\\\\\\",masks:\\\\\\\"masks\\\\\\\",ipadapter:\\\\\\\"ipadapter\\\\\\\"},widget:{preset:\\\\\\\"preset\\\\\\\",lora_strength:\\\\\\\"lora_strength\\\\\\\",provider:\\\\\\\"provider\\\\\\\",weight:\\\\\\\"weight\\\\\\\",weight_faceidv2:\\\\\\\"weight_faceidv2\\\\\\\",start_at:\\\\\\\"start_at\\\\\\\",end_at:\\\\\\\"end_at\\\\\\\",cache_mode:\\\\\\\"cache_mode\\\\\\\",use_tiled:\\\\\\\"use_tiled\\\\\\\",insightface:\\\\\\\"insightface\\\\\\\",pulid_file:\\\\\\\"pulid_file\\\\\\\"}},positive:{category:\\\\\\\"Easy Positive\\\\\\\",nodes:[\\\\\\\"easy positive\\\\\\\",\\\\\\\"easy wildcards\\\\\\\"],input:{},output:{text:\\\\\\\"positive\\\\\\\",positive:\\\\\\\"text\\\\\\\"},widget:{text:\\\\\\\"positive\\\\\\\",positive:\\\\\\\"text\\\\\\\"}},loadImage:{category:\\\\\\\"Easy LoadImage\\\\\\\",nodes:[\\\\\\\"easy loadImageBase64\\\\\\\",\\\\\\\"LoadImage\\\\\\\",\\\\\\\"LoadImageMask\\\\\\\"],input:{pipe:\\\\\\\"pipe\\\\\\\",image:\\\\\\\"image\\\\\\\",mask:\\\\\\\"mask\\\\\\\"},output:{IMAGE:\\\\\\\"IMAGE\\\\\\\",MASK:\\\\\\\"MASK\\\\\\\"},widget:{image:\\\\\\\"image\\\\\\\",base64_data:\\\\\\\"base64_data\\\\\\\",channel:\\\\\\\"channel\\\\\\\"}},saveImage:{category:\\\\\\\"Save/Preview Image\\\\\\\",nodes:[\\\\\\\"SaveImage\\\\\\\",\\\\\\\"PreviewImage\\\\\\\"]},inPaint:{category:\\\\\\\"Easy Inpaint\\\\\\\",nodes:[\\\\\\\"easy applyBrushNet\\\\\\\",\\\\\\\"easy applyPowerPaint\\\\\\\",\\\\\\\"easy applyInpaint\\\\\\\"],input:{},output:{pipe:\\\\\\\"pipe\\\\\\\"},widget:{dtype:\\\\\\\"dtype\\\\\\\",fitting:\\\\\\\"fitting\\\\\\\",function:\\\\\\\"function\\\\\\\",scale:\\\\\\\"scale\\\\\\\",start_at:\\\\\\\"start_at\\\\\\\",end_at:\\\\\\\"end_at\\\\\\\"}},showAny:{category:\\\\\\\"Show Anything\\\\\\\",nodes:[\\\\\\\"easy showAnything\\\\\\\",\\\\\\\"Preview Any\\\\\\\"],input:{anything:\\\\\\\"anything\\\\\\\"},output:{output:\\\\\\\"output\\\\\\\"}},saveText:{category:\\\\\\\"Save Text\\\\\\\",nodes:[\\\\\\\"easy saveText\\\\\\\"],input:{image:\\\\\\\"image\\\\\\\",text:\\\\\\\"text\\\\\\\",output_file_path:\\\\\\\"output_file_path\\\\\\\",file_name:\\\\\\\"file_name\\\\\\\",file_extension:\\\\\\\"file_extension\\\\\\\",overwrite:\\\\\\\"overwrite\\\\\\\"},output:{text:\\\\\\\"text\\\\\\\",image:\\\\\\\"image\\\\\\\"},widget:{image:\\\\\\\"image\\\\\\\",text:\\\\\\\"text\\\\\\\",output_file_path:\\\\\\\"output_file_path\\\\\\\",file_name:\\\\\\\"file_name\\\\\\\",file_extension:\\\\\\\"file_extension\\\\\\\",overwrite:\\\\\\\"overwrite\\\\\\\"}},persona:{category:\\\\\\\"LLM Party Persona\\\\\\\",nodes:[\\\\\\\"load_persona\\\\\\\",\\\\\\\"classify_persona\\\\\\\",\\\\\\\"classify_persona_plus\\\\\\\",\\\\\\\"custom_persona\\\\\\\",\\\\\\\"translate_persona\\\\\\\",\\\\\\\"flux_persona\\\\\\\"],input:{file_content:\\\\\\\"file_content\\\\\\\"},output:{system_prompt:\\\\\\\"system_prompt\\\\\\\"},widget:{is_enable:\\\\\\\"is_enable\\\\\\\"}},llmModelLoader:{category:\\\\\\\"LLM Model Loader\\\\\\\",nodes:[\\\\\\\"LLM_api_loader\\\\\\\",\\\\\\\"genai_api_loader\\\\\\\",\\\\\\\"LLM_local_loader\\\\\\\"],output:{model:\\\\\\\"model\\\\\\\"}},llmModelChain:{category:\\\\\\\"LLM Model Chain\\\\\\\",nodes:[\\\\\\\"LLM\\\\\\\",\\\\\\\"LLM_local\\\\\\\"],input:{model:\\\\\\\"model\\\\\\\",image:\\\\\\\"images\\\\\\\",images:\\\\\\\"image\\\\\\\",extra_parameters:\\\\\\\"extra_parameters\\\\\\\",system_prompt_input:\\\\\\\"system_prompt_input\\\\\\\",user_prompt_input:\\\\\\\"user_prompt_input\\\\\\\",tools:\\\\\\\"tools\\\\\\\",file_content:\\\\\\\"file_content\\\\\\\"},output:{assistant_response:\\\\\\\"assistant_response\\\\\\\",history:\\\\\\\"history\\\\\\\",tool:\\\\\\\"tool\\\\\\\",image:\\\\\\\"image\\\\\\\"},widget:{system_prompt:\\\\\\\"system_prompt\\\\\\\",user_prompt:\\\\\\\"user_prompt\\\\\\\",temperature:\\\\\\\"temperature\\\\\\\",is_memory:\\\\\\\"is_memory\\\\\\\",is_tools_in_sys_prompt:\\\\\\\"is_tools_in_sys_prompt\\\\\\\",max_length:\\\\\\\"max_length\\\\\\\",main_brain:\\\\\\\"main_brain\\\\\\\",conversation_rounds:\\\\\\\"conversation_rounds\\\\\\\",history_record:\\\\\\\"history_record\\\\\\\",is_enable:\\\\\\\"is_enable\\\\\\\"}},maskModify:{category:\\\\\\\"Mask Modify\\\\\\\",nodes:[\\\\\\\"CropMask\\\\\\\",\\\\\\\"ThresholdMask\\\\\\\",\\\\\\\"GrowMask\\\\\\\",\\\\\\\"FeatherMask\\\\\\\",\\\\\\\"LayerMask: MaskGrain\\\\\\\",\\\\\\\"LayerMask: MaskEdgeUltraDetail\\\\\\\",\\\\\\\"LayerMask: MaskEdgeUltraDetail V2\\\\\\\"],input:{mask:\\\\\\\"mask\\\\\\\"},output:{MASK:\\\\\\\"MASK\\\\\\\",mask:\\\\\\\"mask\\\\\\\",image:\\\\\\\"image\\\\\\\"}},maskModifyWAS:{category:\\\\\\\"Mask Modify (WAS)\\\\\\\",nodes:[\\\\\\\"Mask Dilate Region\\\\\\\",\\\\\\\"Mask Gaussian Region\\\\\\\"],input:{masks:\\\\\\\"masks\\\\\\\"},output:{MASKS:\\\\\\\"MASKS\\\\\\\"}},indextts_emotions:{category:\\\\\\\"IndexTTS Emotions\\\\\\\",nodes:[\\\\\\\"easy indexTTSEmotionVector\\\\\\\",\\\\\\\"easy indexTTSEmotionText\\\\\\\",\\\\\\\"easy indexTTSEmotionAudio\\\\\\\"],input:{reference_audio:\\\\\\\"reference_audio\\\\\\\"},output:{emotions:\\\\\\\"emotions\\\\\\\"}},indextts_generate:{category:\\\\\\\"IndexTTS Generate\\\\\\\",nodes:[\\\\\\\"easy indexTTSGenerate\\\\\\\",\\\\\\\"easy indexTTSGenerateSimple\\\\\\\"],input:{indextts_model:\\\\\\\"indextts_model\\\\\\\",reference_audio:\\\\\\\"reference_audio\\\\\\\",reference_audios:\\\\\\\"reference_audios\\\\\\\",emotions:\\\\\\\"emotions\\\\\\\"},output:{audio:\\\\\\\"audio\\\\\\\",seed:\\\\\\\"seed\\\\\\\",subtitle:\\\\\\\"subtitle\\\\\\\"},widget:{text:\\\\\\\"text\\\\\\\",unload_model:\\\\\\\"unload_model\\\\\\\",seed:\\\\\\\"seed\\\\\\\"}},fast_loaders:{category:\\\\\\\"Fast Loaders\\\\\\\",nodes:[\\\\\\\"fast ckptLoader\\\\\\\",\\\\\\\"fast unetLoader\\\\\\\"],input:{\\\\\\\"\\u5f00\\u59cb\\u52a0\\u8f7d\\\\\\\":\\\\\\\"\\u5f00\\u59cb\\u52a0\\u8f7d\\\\\\\"},output:{\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\",MODEL:\\\\\\\"MODEL\\\\\\\",VAE:\\\\\\\"VAE\\\\\\\",CLIP:\\\\\\\"CLIP\\\\\\\"}},fast_inputs:{category:\\\\\\\"Fast Inputs\\\\\\\",nodes:[\\\\\\\"fast sdInput\\\\\\\",\\\\\\\"fast fluxInput\\\\\\\",\\\\\\\"fast hiDreamInput\\\\\\\",\\\\\\\"fast videoInput\\\\\\\",\\\\\\\"fast qwenImageInput\\\\\\\"],input:{\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\",\\\\\\\"\\u66f4\\u591aControlnet\\\\\\\":\\\\\\\"\\u66f4\\u591aControlnet\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u906e\\u7f69\\\\\\\":\\\\\\\"\\u906e\\u7f69\\\\\\\",\\\\\\\"\\u529f\\u80fd\\u8282\\u70b9\\\\\\\":\\\\\\\"\\u529f\\u80fd\\u8282\\u70b9\\\\\\\"},output:{\\\\\\\"\\u91c7\\u6837\\\\\\\":\\\\\\\"\\u91c7\\u6837\\\\\\\",\\\\\\\"\\u6b63\\u9762\\u6761\\u4ef6\\\\\\\":\\\\\\\"\\u6b63\\u9762\\u6761\\u4ef6\\\\\\\",\\\\\\\"\\u8d1f\\u9762\\u6761\\u4ef6\\\\\\\":\\\\\\\"\\u8d1f\\u9762\\u6761\\u4ef6\\\\\\\",\\\\\\\"\\u6f5c\\u7a7a\\u95f4\\\\\\\":\\\\\\\"\\u6f5c\\u7a7a\\u95f4\\\\\\\"},widget:{Sigmas:\\\\\\\"Sigmas\\\\\\\",\\\\\\\"\\u5206\\u79bbSigmas\\u6b65\\u6570\\\\\\\":\\\\\\\"\\u5206\\u79bbSigmas\\u6b65\\u6570\\\\\\\",\\\\\\\"\\u5206\\u79bb\\u964d\\u566a\\\\\\\":\\\\\\\"\\u5206\\u79bb\\u964d\\u566a\\\\\\\",\\\\\\\"\\u964d\\u566a\\\\\\\":\\\\\\\"\\u964d\\u566a\\\\\\\",\\\\\\\"\\u6dfb\\u52a0\\u566a\\u58f0\\\\\\\":\\\\\\\"\\u6dfb\\u52a0\\u566a\\u58f0\\\\\\\",seed:\\\\\\\"seed\\\\\\\",\\\\\\\"\\u751f\\u6210\\u6570\\u91cf\\\\\\\":\\\\\\\"\\u751f\\u6210\\u6570\\u91cf\\\\\\\"}},fast_outputResult:{category:\\\\\\\"Fast Outputs\\\\\\\",nodes:[\\\\\\\"fast outputResult\\\\\\\",\\\\\\\"fast outputResultVideo\\\\\\\",\\\\\\\"fast outputLatent\\\\\\\"],input:{\\\\\\\"\\u91c7\\u6837\\\\\\\":\\\\\\\"\\u91c7\\u6837\\\\\\\",\\\\\\\"\\u566a\\u58f0\\\\\\\":\\\\\\\"\\u566a\\u58f0\\\\\\\",\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\":\\\\\\\"\\u6a21\\u578b\\u52a0\\u8f7d\\u5668\\\\\\\"},output:{\\\\\\\"\\u56fe\\u50cf\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\u5e8f\\u5217\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\u5e8f\\u5217\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u8f93\\u51fa\\\\\\\":\\\\\\\"\\u8f93\\u51fa\\\\\\\",\\\\\\\"\\u964d\\u566a\\u8f93\\u51fa\\\\\\\":\\\\\\\"\\u964d\\u566a\\u8f93\\u51fa\\\\\\\",VAE:\\\\\\\"VAE\\\\\\\"},widget:{\\\\\\\"\\u91c7\\u6837\\u9884\\u89c8\\\\\\\":\\\\\\\"\\u91c7\\u6837\\u9884\\u89c8\\\\\\\",\\\\\\\"VAE\\u89e3\\u7801\\\\\\\":\\\\\\\"VAE\\u89e3\\u7801\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\u8f93\\u51fa\\\\\\\":\\\\\\\"\\u89c6\\u9891\\u8f93\\u51fa\\\\\\\",\\\\\\\"\\u89c6\\u9891\\u8f93\\u51fa\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\u8f93\\u51fa\\\\\\\",\\\\\\\"\\u4fdd\\u5b58\\u8def\\u5f84\\\\\\\":\\\\\\\"\\u4fdd\\u5b58\\u8def\\u5f84\\\\\\\"}},fast_loadImage:{category:\\\\\\\"Fast LoadImage\\\\\\\",nodes:[\\\\\\\"fast loadImage\\\\\\\",\\\\\\\"fast loadImageList\\\\\\\"],output:{\\\\\\\"\\u56fe\\u50cf\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u906e\\u7f69\\\\\\\":\\\\\\\"\\u906e\\u7f69\\\\\\\",\\\\\\\"\\u6587\\u4ef6\\u540d\\\\\\\":\\\\\\\"\\u6587\\u4ef6\\u540d\\\\\\\"},widget:{\\\\\\\"\\u6a21\\u5f0f\\\\\\\":\\\\\\\"\\u6a21\\u5f0f\\\\\\\",\\\\\\\"\\u56fe\\u50cf\\\\\\\":\\\\\\\"\\u56fe\\u50cf\\\\\\\",\\\\\\\"\\u8def\\u5f84\\\\\\\":\\\\\\\"\\u8def\\u5f84\\\\\\\",\\\\\\\"\\u6700\\u5927\\u5f20\\u6570\\\\\\\":\\\\\\\"\\u6700\\u5927\\u5f20\\u6570\\\\\\\",\\\\\\\"\\u5f00\\u59cb\\u7d22\\u5f15\\\\\\\":\\\\\\\"\\u5f00\\u59cb\\u7d22\\u5f15\\\\\\\",Base64:\\\\\\\"Base64\\\\\\\",\\\\\\\"\\u94fe\\u63a5\\\\\\\":\\\\\\\"\\u94fe\\u63a5\\\\\\\"}}};function Oi(e,t,i){return function(){!function(e,t,i){var s;const n=LiteGraph.createNode(t);if(n){if(fe.graph.add(n),n.pos=e.pos.slice(),n.size=e.size.slice(),(null==(s=e.widgets)?void 0:s.length)\\\\u003e0\\\\u0026\\\\u0026e.widgets.forEach((e=\\\\u003e{var t,s,a;if(null==(s=null==(t=Ti[i])?void 0:t.widget)?void 0:s[e.name]){const t=Ti[i].widget[e.name];if(t\\\\u0026\\\\u0026n.widgets){const i=(a=t,n.widgets.find((e=\\\\u003e\\\\\\\"object\\\\\\\"==typeof a?a.includes(e.name):e.name===a)));i\\\\u0026\\\\u0026(i.value=e.value,\\\\\\\"seed_num\\\\\\\"==e.name\\\\u0026\\\\u0026(i.linkedWidgets[0].value=e.linkedWidgets[0].value),\\\\\\\"converted-widget\\\\\\\"==e.type\\\\u0026\\\\u0026Vi(n,i,e))}}})),e.inputs\\\\u0026\\\\u0026e.inputs.forEach(((t,s)=\\\\u003e{var a,o,l;if(t\\\\u0026\\\\u0026t.link\\\\u0026\\\\u0026(null==(o=null==(a=Ti[i])?void 0:a.input)?void 0:o[t.name])){const s=null==(l=Ti[i])?void 0:l.input[t.name];if(null===s)return;const a=n.findInputSlot(s);if(-1!==a){const i=e.graph.links[t.link];if(i){const t=e.graph.getNodeById(i.origin_id);t\\\\u0026\\\\u0026t.connect(i.origin_slot,n,a)}}}})),e.outputs\\\\u0026\\\\u0026e.outputs.forEach(((t,s)=\\\\u003e{var a,o;if(t\\\\u0026\\\\u0026t.links\\\\u0026\\\\u0026(null==(o=null==(a=Ti[i])?void 0:a.output)?void 0:o[t.name])){const s=Ti[i].output[t.name];if(null===s)return;const a=n.findOutputSlot(s);-1!==a\\\\u0026\\\\u0026t.links.forEach((t=\\\\u003e{const i=e.graph.links[t];if(i){const t=e.graph.getNodeById(i.target_id);t\\\\u0026\\\\u0026n.connect(a,t,i.target_slot)}}))}})),fe.graph.remove(e),\\\\\\\"easy fullkSampler\\\\\\\"==n.type){const e=n.outputs[0].links;if(e\\\\u0026\\\\u0026e[0]){const t=fe.graph._nodes.find((t=\\\\u003et.inputs\\\\u0026\\\\u0026t.inputs[0]\\\\u0026\\\\u0026t.inputs[0].link==e[0]));t\\\\u0026\\\\u0026fe.graph.remove(t)}}else if(Ti.preSampling.nodes.includes(n.type)){const e=n.outputs[0].links;if(!e||!e[0]){const e=LiteGraph.createNode(\\\\\\\"easy kSampler\\\\\\\");fe.graph.add(e),e.pos=n.pos.slice(),e.pos[0]=e.pos[0]+n.size[0]+20;const t=n.findInputSlot(\\\\\\\"pipe\\\\\\\");-1!==t\\\\u0026\\\\u0026n\\\\u0026\\\\u0026n.connect(0,e,t)}}n.setSize([n.size[0],n.computeSize()[1]])}}(e,t,i)}}const Mi=(e,t)=\\\\u003e{const i=e.prototype.getExtraMenuOptions;e.prototype.getExtraMenuOptions=function(){const e=i.apply(this,arguments);return t.apply(this,arguments),e}},Di=(e,t,i,s,n=!0)=\\\\u003e{Mi(s,(function(s,a){a.unshift({content:e,has_submenu:n,callback:(e,s,n,a,o)=\\\\u003eRi(e,s,n,a,o,t,i)}),\\\\\\\"loaders\\\\\\\"==t\\\\u0026\\\\u0026(a.unshift({content:Ne(\\\\\\\"\\ud83d\\udc8e View Lora Info...\\\\\\\"),callback:(e,t,i,s,n)=\\\\u003e{let a=n.widgets.find((e=\\\\u003e\\\\\\\"lora_name\\\\\\\"==e.name)).value;a\\\\u0026\\\\u0026\\\\\\\"None\\\\\\\"!=a\\\\u0026\\\\u0026new Ii(a).show(\\\\\\\"loras\\\\\\\",a)}}),a.unshift({content:Ne(\\\\\\\"\\ud83d\\udc8e View Checkpoint Info...\\\\\\\"),callback:(e,t,i,s,n)=\\\\u003e{let a=n.widgets[0].value;a\\\\u0026\\\\u0026\\\\\\\"None\\\\\\\"!=a\\\\u0026\\\\u0026new Ci(a).show(\\\\\\\"checkpoints\\\\\\\",a)}}))}))},Ri=(e,t,i,s,n,a,o)=\\\\u003e{const l=[];return o.map((e=\\\\u003e{n.type!==e\\\\u0026\\\\u0026l.push({content:`${e}`,callback:Oi(n,e,a)})})),new LiteGraph.ContextMenu(l,{event:i,callback:null,parentMenu:s,node:n}),!1},Pi=\\\\\\\"converted-widget\\\\\\\",Gi=Symbol();function zi(e,t,i=\\\\\\\"\\\\\\\"){if(t.origType=t.type,t.origComputeSize=t.computeSize,t.origSerializeValue=t.serializeValue,t.computeSize=()=\\\\u003e[0,-4],t.type=Pi+i,t.serializeValue=()=\\\\u003e{if(!e.inputs)return;let i=e.inputs.find((e=\\\\u003e{var i;return(null==(i=e.widget)?void 0:i.name)===t.name}));return i\\\\u0026\\\\u0026i.link?t.origSerializeValue?t.origSerializeValue():t.value:void 0},t.linkedWidgets)for(const s of t.linkedWidgets)zi(e,s,\\\\\\\":\\\\\\\"+t.name)}function Vi(e,t,i){zi(e,t);const{type:s}=function(e){let t=e[0];t instanceof Array\\\\u0026\\\\u0026(t=\\\\\\\"COMBO\\\\\\\");return{type:t}}(i),n=e.size;t.options\\\\u0026\\\\u0026t.options.forceInput||e.addInput(t.name,s,{widget:{name:t.name,[Gi]:()=\\\\u003ei}});for(const a of e.widgets)a.last_y+=LiteGraph.NODE_SLOT_HEIGHT;e.setSize([Math.max(n[0],e.size[0]),Math.max(n[1],e.size[1])])}const ji=function(e){var t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f,g,v,y,w;const b=e.constructor.type,_=(null==(t=e.properties)?void 0:t.origVals)||{},S=_.title||e.title,x=_.color||e.color,L=_.bgcolor||e.bgcolor,k=e.graph||fe.graph,E={size:[...e.size],color:x,bgcolor:L,pos:[...e.pos]},N=e=\\\\u003e{var t,i,s,n;return(null==(t=k.getLink)?void 0:t.call(k,e))||(null==(s=null==(i=k.links)?void 0:i.get)?void 0:s.call(i,e))||(null==(n=k.links)?void 0:n[e])},C=[],I=[],T=new Map((null==(i=e.inputs)?void 0:i.map((e=\\\\u003e[e.name,e.label])))||[]),O=new Map((null==(s=e.outputs)?void 0:s.map((e=\\\\u003e[e.name,e.label])))||[]),M=(null==(n=e.widgets)?void 0:n.map((e=\\\\u003e({name:e.name,type:e.origType||e.type,value:e.value}))))||[],D=[];null==(a=e.inputs)||a.forEach(((e,t)=\\\\u003e{var i,s;if(null==e.link)return;const n=N(e.link);if(!n)return;const a=k.getNodeById(n.origin_id);C.push({inputName:e.name,inputSlot:t,originId:n.origin_id,originName:null==(s=null==(i=null==a?void 0:a.outputs)?void 0:i[n.origin_slot])?void 0:s.name,originSlot:n.origin_slot})})),null==(o=e.outputs)||o.forEach(((e,t)=\\\\u003e{var i,s;for(const n of e.links||[]){const a=N(n);if(!a)continue;const o=k.getNodeById(a.target_id);I.push({outputName:e.name,outputSlot:t,targetId:a.target_id,targetName:null==(s=null==(i=null==o?void 0:o.inputs)?void 0:i[a.target_slot])?void 0:s.name,targetSlot:a.target_slot})}})),null==(l=e.widgets)||l.forEach((t=\\\\u003e{var i,s,n;if(t.type!==Pi)return;const a=null==(i=e.inputs)?void 0:i.find((e=\\\\u003e{var i;return(null==(i=e.widget)?void 0:i.name)===t.name||e.name===t.name})),o=null==(n=null==(s=null==a?void 0:a.widget)?void 0:s[Gi])?void 0:n.call(s);o\\\\u0026\\\\u0026D.push({name:t.name,config:o})}));const R=LiteGraph.createNode(b,S,E);if(!R)return;k.remove(e),k.add(R);const P=(e,t,i)=\\\\u003e{var s,n,a,o,l,r,d;const u=e.origType||e.type;if(u!==t||null==i)return!1;const c=null==(s=e.options)?void 0:s.values;if(null!=c){const t=\\\\\\\"function\\\\\\\"==typeof c?c(e,R):c;return Array.isArray(t)?t.includes(i):!(!t||\\\\\\\"object\\\\\\\"!=typeof t)\\\\u0026\\\\u0026(Object.prototype.hasOwnProperty.call(t,i)||Number.isInteger(i)\\\\u0026\\\\u0026i\\\\u003e=0\\\\u0026\\\\u0026i\\\\u003cObject.keys(t).length)}if(\\\\\\\"number\\\\\\\"===u||\\\\\\\"slider\\\\\\\"===u){if(\\\\\\\"number\\\\\\\"!=typeof i||!Number.isFinite(i))return!1;const t=(null==(n=e.options)?void 0:n.min)??-1/0,s=(null==(a=e.options)?void 0:a.max)??1/0;return t\\\\u003c=i\\\\u0026\\\\u0026i\\\\u003c=s}if(\\\\\\\"number\\\\\\\"==typeof i){const t=(null==(o=e.options)?void 0:o.min)??-1/0,s=(null==(l=e.options)?void 0:l.max)??1/0;return Number.isFinite(i)\\\\u0026\\\\u0026t\\\\u003c=i\\\\u0026\\\\u0026i\\\\u003c=s}return\\\\\\\"boolean\\\\\\\"!=typeof i||(\\\\\\\"toggle\\\\\\\"===e.type||!(!(null==(r=e.options)?void 0:r.on)||!(null==(d=e.options)?void 0:d.off)))};for(const{name:G,type:z,value:V}of M){const e=null==(r=R.widgets)?void 0:r.find((e=\\\\u003ee.name===G));e\\\\u0026\\\\u0026P(e,z,V)\\\\u0026\\\\u0026(e.value=V)}for(const{name:G,config:z}of D){const e=null==(d=R.widgets)?void 0:d.find((e=\\\\u003ee.name===G));e\\\\u0026\\\\u0026Vi(R,e,z)}null==(u=R.inputs)||u.forEach((e=\\\\u003e{T.has(e.name)\\\\u0026\\\\u0026(e.label=T.get(e.name))})),null==(c=R.outputs)||c.forEach((e=\\\\u003e{O.has(e.name)\\\\u0026\\\\u0026(e.label=O.get(e.name))}));for(const{inputName:G,inputSlot:z,originId:V,originName:j,originSlot:U}of C){const e=k.getNodeById(V);if(!e)continue;const t=(null==(p=null==(A=e.outputs)?void 0:A[U])?void 0:p.name)===j?U:e.findOutputSlot(j),i=(null==(m=null==(h=R.inputs)?void 0:h[z])?void 0:m.name)===G?z:R.findInputSlot(G);t\\\\u003e=0\\\\u0026\\\\u0026i\\\\u003e=0\\\\u0026\\\\u0026e.connect(t,R,i)}for(const{outputName:G,outputSlot:z,targetId:V,targetName:j,targetSlot:U}of I){const e=k.getNodeById(V);if(!e)continue;const t=(null==(g=null==(f=R.outputs)?void 0:f[z])?void 0:g.name)===G?z:R.findOutputSlot(G),i=(null==(y=null==(v=e.inputs)?void 0:v[U])?void 0:y.name)===j?U:e.findInputSlot(j);t\\\\u003e=0\\\\u0026\\\\u0026i\\\\u003e=0\\\\u0026\\\\u0026R.connect(t,e,i)}R.setSize(E.size),null==(w=R.setDirtyCanvas)||w.call(R,!0,!0)};fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.ExtraMenu\\\\\\\",async beforeRegisterNodeDef(e,t,i){Mi(e,(function(e,i){i.unshift({content:Ne(\\\\\\\"\\ud83d\\udd03 Reload Node\\\\\\\"),callback:(e,t,i,s,n)=\\\\u003e{let a=LGraphCanvas.active_canvas;if(!a.selected_nodes||Object.keys(a.selected_nodes).length\\\\u003c=1)ji(n);else for(let o in a.selected_nodes)ji(a.selected_nodes[o])}}),\\\\\\\"easy ckptNames\\\\\\\"==t.name\\\\u0026\\\\u0026i.unshift({content:Ne(\\\\\\\"\\ud83d\\udc8e View Checkpoint Info...\\\\\\\"),callback:(e,t,i,s,n)=\\\\u003e{n.widgets[0].value}})}));for(const s in Ti)Ti[s].nodes.includes(t.name)\\\\u0026\\\\u0026Di(`\\u21aa\\ufe0f Swap ${Ti[s].category}`,s,Ti[s].nodes,e)}});const Ui=LiteGraph.LGraphNode,Wi=\\\\\\\"\\u27a1\\ufe0f\\\\\\\";fe.registerExtension({name:\\\\\\\"easy setNode\\\\\\\",registerCustomNodes(){class e extends Ui{constructor(t){super(\\\\\\\"Set\\\\\\\"),v(this,\\\\\\\"defaultVisibility\\\\\\\",!0),v(this,\\\\\\\"serialize_widgets\\\\\\\",!0),this.properties||(this.properties={previousName:\\\\\\\"\\\\\\\"}),this.properties.showOutputText=e.defaultVisibility;const i=this;i.color=LGraphCanvas.node_colors.blue.color,this.addWidget(\\\\\\\"text\\\\\\\",\\\\\\\"Constant\\\\\\\",\\\\\\\"\\\\\\\",((e,t,s,n,a)=\\\\u003e{i.validateName(i.graph),\\\\\\\"\\\\\\\"!==this.widgets[0].value\\\\u0026\\\\u0026(this.title=Wi+this.widgets[0].value),this.properties.previousName=this.widgets[0].value,this.update()}),{}),this.addInput(\\\\\\\"*\\\\\\\",\\\\\\\"*\\\\\\\"),this.onConnectionsChange=function(e,t,s,n,a){if(1!=e||s||(this.inputs[t].type=\\\\\\\"*\\\\\\\",this.inputs[t].name=\\\\\\\"*\\\\\\\",this.title=\\\\\\\"Set\\\\\\\"),n\\\\u0026\\\\u0026i.graph\\\\u0026\\\\u00261==e\\\\u0026\\\\u0026s){const e=i.graph._nodes.find((e=\\\\u003ee.id==n.origin_id)).outputs[n.origin_slot];if(!e)return;const t=e.type,s=i.is_auto_link?this.widgets[0].value:e.name;\\\\\\\"Set\\\\\\\"===this.title\\\\u0026\\\\u0026(this.title=Wi+s,this.widgets[0].value=s),\\\\\\\"*\\\\\\\"===this.widgets[0].value\\\\u0026\\\\u0026(this.widgets[0].value=s),this.validateName(i.graph),this.inputs[0]\\\\u0026\\\\u0026(this.inputs[0].type=t,this.inputs[0].name=s),setTimeout((e=\\\\u003e{this.title=Wi+this.widgets[0].value,this.properties.previousName=this.widgets[0].value}),1)}this.update()},this.validateName=function(e){let t=i.widgets[0].value;if(\\\\\\\"\\\\\\\"!=t){let s=0,n=[];do{n=e._nodes.filter((e=\\\\u003ee!=this\\\\u0026\\\\u0026(\\\\\\\"easy setNode\\\\\\\"==e.type\\\\u0026\\\\u0026e.widgets[0].value===t))),n.length\\\\u003e0\\\\u0026\\\\u0026(t=i.widgets[0].value+s),s++}while(n.length\\\\u003e0);i.widgets[0].value=t,this.update()}},this.clone=function(){const t=e.prototype.clone.apply(this);return t.inputs[0].name=\\\\\\\"*\\\\\\\",t.inputs[0].type=\\\\\\\"*\\\\\\\",t.properties.previousName=\\\\\\\"\\\\\\\",t.size=t.computeSize(),t},this.onAdded=function(e){this.validateName(e)},this.update=function(){if(i.graph){this.findGetters(i.graph).forEach((e=\\\\u003e{e.setType(this.inputs[0].type)})),this.widgets[0].value\\\\u0026\\\\u0026this.findGetters(i.graph,!0).forEach((e=\\\\u003e{e.setName(this.widgets[0].value)}));i.graph._nodes.filter((e=\\\\u003e\\\\\\\"easy getNode\\\\\\\"==e.type)).forEach((e=\\\\u003e{e.setComboValues\\\\u0026\\\\u0026e.setComboValues()}))}},this.findGetters=function(e,t){const i=t?this.properties.previousName:this.widgets[0].value;return e._nodes.filter((e=\\\\u003e\\\\\\\"easy getNode\\\\\\\"==e.type\\\\u0026\\\\u0026e.widgets[0].value===i\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=i))},this.isVirtualNode=!0}onRemoved(){this.graph._nodes.filter((e=\\\\u003e\\\\\\\"easy getNode\\\\\\\"==e.type)).forEach((e=\\\\u003e{e.setComboValues\\\\u0026\\\\u0026e.setComboValues([this])}))}}LiteGraph.registerNodeType(\\\\\\\"easy setNode\\\\\\\",Object.assign(e,{title:\\\\\\\"Set\\\\\\\"})),e.category=\\\\\\\"EasyUse/Util\\\\\\\"}}),fe.registerExtension({name:\\\\\\\"easy getNode\\\\\\\",registerCustomNodes(){class e extends Ui{constructor(t){super(\\\\\\\"Get\\\\\\\"),v(this,\\\\\\\"defaultVisibility\\\\\\\",!0),v(this,\\\\\\\"serialize_widgets\\\\\\\",!0),this.properties||(this.properties={}),this.properties.showOutputText=e.defaultVisibility;const i=this;i.color=LGraphCanvas.node_colors.blue.color,this.addWidget(\\\\\\\"combo\\\\\\\",\\\\\\\"Constant\\\\\\\",\\\\\\\"\\\\\\\",(e=\\\\u003e{this.onRename()}),{values:()=\\\\u003ei.graph._nodes.filter((e=\\\\u003e\\\\\\\"easy setNode\\\\\\\"==e.type)).map((e=\\\\u003ee.widgets[0].value)).sort()}),this.addOutput(\\\\\\\"*\\\\\\\",\\\\\\\"*\\\\\\\"),this.onConnectionsChange=function(e,t,i,s,n){this.validateLinks(),2!=e||i?(this.onRename(),setTimeout((e=\\\\u003e{this.title=\\\\\\\"\\u2b05\\ufe0f\\\\\\\"+this.widgets[0].value}),1)):(this.outputs[t].type=\\\\\\\"*\\\\\\\",this.outputs[t].name=\\\\\\\"*\\\\\\\",this.title=\\\\\\\"Get\\\\\\\")},this.setName=function(e){i.widgets[0].value=e,i.onRename(),i.serialize()},this.onRename=function(e=0){const t=this.findSetter(i.graph);if(t){const i=t.inputs[0].type,s=t.inputs[0].name;this.setType(i,s),this.outputs[e].type=i,this.outputs[e].name=s,this.title=\\\\\\\"\\u2b05\\ufe0f\\\\\\\"+t.widgets[0].value}else this.setType(\\\\\\\"*\\\\\\\",\\\\\\\"*\\\\\\\"),this.outputs[e].type=\\\\\\\"*\\\\\\\",this.outputs[e].name=\\\\\\\"*\\\\\\\"},this.clone=function(){const t=e.prototype.clone.apply(this);return t.size=t.computeSize(),t},this.validateLinks=function(){\\\\\\\"*\\\\\\\"!=this.outputs[0].type\\\\u0026\\\\u0026this.outputs[0].links\\\\u0026\\\\u0026this.outputs[0].links.forEach((e=\\\\u003e{const t=i.graph.links[e];t\\\\u0026\\\\u0026t.type!=this.outputs[0].type\\\\u0026\\\\u0026\\\\\\\"*\\\\\\\"!=t.type\\\\u0026\\\\u0026i.graph.removeLink(e)}))},this.setType=function(e,t){this.outputs[0].name=t,this.outputs[0].type=e,this.validateLinks()},this.findSetter=function(e){const t=this.widgets[0].value;return e._nodes.find((e=\\\\u003e\\\\\\\"easy setNode\\\\\\\"==e.type\\\\u0026\\\\u0026e.widgets[0].value===t\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=t))},this.isVirtualNode=!0}getInputLink(e){const t=this.findSetter(this.graph);if(t){const i=t.inputs[e];return this.graph.links[i.link]}throw new Error(\\\\\\\"No setter found for \\\\\\\"+this.widgets[0].value+\\\\\\\"(\\\\\\\"+this.type+\\\\\\\")\\\\\\\")}onAdded(e){}}LiteGraph.registerNodeType(\\\\\\\"easy getNode\\\\\\\",Object.assign(e,{title:\\\\\\\"Get\\\\\\\"})),e.category=\\\\\\\"EasyUse/Util\\\\\\\"}}),ge.addEventListener(\\\\\\\"easyuse-global-seed\\\\\\\",(function(e){let t=fe.graph._nodes_by_id;for(let i in t){let s=t[i];if(\\\\\\\"easy globalSeed\\\\\\\"==s.type){if(s.widgets){const t=s.widgets.find((e=\\\\u003e\\\\\\\"value\\\\\\\"==e.name));s.widgets.find((e=\\\\u003e\\\\\\\"last_seed\\\\\\\"==e.name)).value=t.value,t.value=e.detail.value}}else if(s.widgets){const t=s.widgets.find((e=\\\\u003e\\\\\\\"seed_num\\\\\\\"==e.name||\\\\\\\"seed\\\\\\\"==e.name||\\\\\\\"noise_seed\\\\\\\"==e.name));t\\\\u0026\\\\u0026null!=e.detail.seed_map[s.id]\\\\u0026\\\\u0026(t.value=e.detail.seed_map[s.id])}}}));const Fi=fe.graphToPrompt;fe.graphToPrompt=function(...e){const t=e[0]||fe.rootGraph||fe.graph;return Promise.resolve(Fi.apply(this,e)).then((e=\\\\u003efunction(e,t){const i=null==e?void 0:e.workflow;if(!i||\\\\\\\"object\\\\\\\"!=typeof i)return e;i.seed_widgets={};const s=(null==t?void 0:t._nodes_by_id)||{};for(let n in s){let e=s[n].widgets;if(e)for(let t in e)\\\\\\\"seed_num\\\\\\\"!=e[t].name\\\\u0026\\\\u0026\\\\\\\"seed\\\\\\\"!=e[t].name\\\\u0026\\\\u0026\\\\\\\"noise_seed\\\\\\\"!=e[t].name||\\\\\\\"converted-widget\\\\\\\"==e[t].type||(i.seed_widgets[n]=parseInt(t))}return e}(e,t)))};const Xi=[\\\\\\\"easy imageSave\\\\\\\",\\\\\\\"easy fullkSampler\\\\\\\",\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy kSamplerTiled\\\\\\\",\\\\\\\"easy kSamplerInpainting\\\\\\\",\\\\\\\"easy kSamplerDownscaleUnet\\\\\\\",\\\\\\\"easy kSamplerSDTurbo\\\\\\\",\\\\\\\"easy detailerFix\\\\\\\"];fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.SaveImageExtraOutput\\\\\\\",async beforeRegisterNodeDef(e,t,i){if(Xi.includes(t.name)){const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){const e=t?t.apply(this,arguments):void 0,s=this.widgets.find((e=\\\\u003e\\\\\\\"filename_prefix\\\\\\\"===e.name||\\\\\\\"save_prefix\\\\\\\"===e.name));return s.serializeValue=()=\\\\u003ebe(i,s.value),e}}else{const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){const e=t?t.apply(this,arguments):void 0;return this.properties\\\\u0026\\\\u0026\\\\\\\"Node name for S\\\\u0026R\\\\\\\"in this.properties||this.addProperty(\\\\\\\"Node name for S\\\\u0026R\\\\\\\",this.constructor.type,\\\\\\\"string\\\\\\\"),e}}}});const Zi=[\\\\\\\"easy wildcards\\\\\\\",\\\\\\\"easy positive\\\\\\\",\\\\\\\"easy negative\\\\\\\",\\\\\\\"easy stylesSelector\\\\\\\",\\\\\\\"easy promptConcat\\\\\\\",\\\\\\\"easy promptReplace\\\\\\\"],Hi=[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingNoiseIn\\\\\\\",\\\\\\\"easy preSamplingCustom\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",\\\\\\\"easy preSamplingSdTurbo\\\\\\\",\\\\\\\"easy preSamplingLayerDiffusion\\\\\\\"],qi=[\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy kSamplerTiled\\\\\\\",\\\\\\\"easy kSamplerInpainting\\\\\\\",\\\\\\\"easy kSamplerDownscaleUnet\\\\\\\",\\\\\\\"easy kSamplerSDTurbo\\\\\\\"],Yi=[\\\\\\\"easy controlnetLoader\\\\\\\",\\\\\\\"easy controlnetLoaderADV\\\\\\\"],Ki=[\\\\\\\"easy instantIDApply\\\\\\\",\\\\\\\"easy instantIDApplyADV\\\\\\\"],Ji=[\\\\\\\"easy ipadapterApply\\\\\\\",\\\\\\\"easy ipadapterApplyADV\\\\\\\",\\\\\\\"easy ipadapterApplyFaceIDKolors\\\\\\\",\\\\\\\"easy ipadapterStyleComposition\\\\\\\"],Bi=[\\\\\\\"easy pipeIn\\\\\\\",\\\\\\\"easy pipeOut\\\\\\\",\\\\\\\"easy pipeEdit\\\\\\\",\\\\\\\"easy pipeEditPrompt\\\\\\\"],Qi=[\\\\\\\"easy XYPlot\\\\\\\",\\\\\\\"easy XYPlotAdvanced\\\\\\\"],$i=[\\\\\\\"easy setNode\\\\\\\"],es=[\\\\\\\"RescaleCFG\\\\\\\",\\\\\\\"LoraLoaderModelOnly\\\\\\\",\\\\\\\"LoraLoader\\\\\\\",\\\\\\\"FreeU\\\\\\\",\\\\\\\"FreeU_v2\\\\\\\",...Ji,...$i],ts={\\\\\\\"easy seed\\\\\\\":{from:{INT:[...Hi,\\\\\\\"easy fullkSampler\\\\\\\"]}},\\\\\\\"easy positive\\\\\\\":{from:{STRING:[...Zi]}},\\\\\\\"easy negative\\\\\\\":{from:{STRING:[...Zi]}},\\\\\\\"easy wildcards\\\\\\\":{from:{STRING:[\\\\\\\"easy showAnything\\\\\\\",...Zi]}},\\\\\\\"easy stylesSelector\\\\\\\":{from:{STRING:[\\\\\\\"easy showAnything\\\\\\\",...Zi]}},\\\\\\\"easy promptConcat\\\\\\\":{from:{STRING:[\\\\\\\"easy showAnything\\\\\\\",...Zi]}},\\\\\\\"easy promptReplace\\\\\\\":{from:{STRING:[\\\\\\\"easy showAnything\\\\\\\",...Zi]}},\\\\\\\"easy fullLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,\\\\\\\"easy fullkSampler\\\\\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy a1111Loader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy comfyLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy hunyuanDiTLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy kolorsLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy pixArtLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy fluxLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy svdLoader\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy zero123Loader\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy sv3dLoader\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",\\\\\\\"easy preSamplingDynamicCFG\\\\\\\",...Bi,...$i],MODEL:es},to:{STRING:[...Zi]}},\\\\\\\"easy preSampling\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingAdvanced\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingDynamicCFG\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingCustom\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingLayerDiffusion\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy kSamplerLayerDiffusion\\\\\\\",...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy preSamplingNoiseIn\\\\\\\":{from:{PIPE_LINE:[...qi,...Bi,...Yi,...Qi,...$i]}},\\\\\\\"easy fullkSampler\\\\\\\":{from:{PIPE_LINE:[...Bi.reverse(),\\\\\\\"easy preDetailerFix\\\\\\\",\\\\\\\"easy preMaskDetailerFix\\\\\\\",...Hi,...$i]}},\\\\\\\"easy kSampler\\\\\\\":{from:{PIPE_LINE:[...Bi.reverse(),\\\\\\\"easy preDetailerFix\\\\\\\",\\\\\\\"easy preMaskDetailerFix\\\\\\\",\\\\\\\"easy hiresFix\\\\\\\",...Hi,...$i]}},\\\\\\\"easy controlnetLoader\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\\\\\"easy controlnetLoaderADV\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\\\\\"easy instantIDApply\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy instantIDApplyADV\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i],MODEL:es},to:{COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy ipadapterApply\\\\\\\":{to:{COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy ipadapterApplyADV\\\\\\\":{to:{STRING:[\\\\\\\"easy sliderControl\\\\\\\",...Zi],COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy ipadapterStyleComposition\\\\\\\":{to:{COMBO:[\\\\\\\"easy promptLine\\\\\\\"]}},\\\\\\\"easy preDetailerFix\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy detailerFix\\\\\\\",...Bi,...$i]},to:{PIPE_LINE:[\\\\\\\"easy ultralyticsDetectorPipe\\\\\\\",\\\\\\\"easy samLoaderPipe\\\\\\\",\\\\\\\"easy kSampler\\\\\\\",\\\\\\\"easy fullkSampler\\\\\\\"]}},\\\\\\\"easy preMaskDetailerFix\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy detailerFix\\\\\\\",...Bi,...$i]}},\\\\\\\"easy samLoaderPipe\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preDetailerFix\\\\\\\",...Bi,...$i]}},\\\\\\\"easy ultralyticsDetectorPipe\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preDetailerFix\\\\\\\",...Bi,...$i]}},\\\\\\\"easy cascadeLoader\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy fullCascadeKSampler\\\\\\\",\\\\\\\"easy preSamplingCascade\\\\\\\",...Yi,...Bi,...$i],MODEL:es.filter((e=\\\\u003e!Ji.includes(e)))}},\\\\\\\"easy fullCascadeKSampler\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",...Bi,...$i]}},\\\\\\\"easy preSamplingCascade\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy cascadeKSampler\\\\\\\",...Bi,...$i]}},\\\\\\\"easy cascadeKSampler\\\\\\\":{from:{PIPE_LINE:[\\\\\\\"easy preSampling\\\\\\\",\\\\\\\"easy preSamplingAdvanced\\\\\\\",...Bi,...$i]}},\\\\\\\"easy pipeEdit\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...$i]},to:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}},\\\\\\\"easy pipeEditPrompt\\\\\\\":{from:{PIPE_LINE:[...Hi,...Yi,...Ki,...$i]},to:{PIPE_LINE:[...Hi,...Yi,...Ki,...Bi,...$i]}}};class is extends Error{constructor(e=\\\\\\\"Attempted to access LGraph reference that was null or undefined.\\\\\\\",t){super(e,{cause:t}),this.name=\\\\\\\"NullGraphError\\\\\\\"}}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.Suggestions\\\\\\\",async setup(e){const t=LGraphCanvas.prototype.createDefaultNodeForSlot;LGraphCanvas.prototype.createDefaultNodeForSlot=function(e){var i;const s=Object.assign({nodeFrom:null,slotFrom:null,nodeTo:null,slotTo:null,position:[],nodeType:null,posAdd:[0,0],posSizeFix:[0,0]},e||{}),n=this,a=s.nodeFrom\\\\u0026\\\\u0026null!==s.slotFrom,o=!a\\\\u0026\\\\u0026s.nodeTo\\\\u0026\\\\u0026null!==s.slotTo,l=a?s.nodeFrom:s.nodeTo;if(!l||!Object.keys(ts).includes(l.type))return t.call(this,e);if(!a\\\\u0026\\\\u0026!o)return!1;if(!s.nodeType)return!1;const r=a?s.nodeFrom:s.nodeTo;if(!r)throw new TypeError(\\\\\\\"nodeX was null when creating default node for slot.\\\\\\\");const d=r.type;let u=a?s.slotFrom:s.slotTo,c=!1;switch(typeof u){case\\\\\\\"string\\\\\\\":c=a?r.findOutputSlot(u,!1):r.findInputSlot(u,!1),u=a?r.outputs[u]:r.inputs[u];break;case\\\\\\\"object\\\\\\\":if(null===u)return!1;c=a?r.findOutputSlot(u.name):r.findInputSlot(u.name);break;case\\\\\\\"number\\\\\\\":c=u,u=a?r.outputs[u]:r.inputs[u];break;default:return!1}var A=u.type==LiteGraph.EVENT?\\\\\\\"_event_\\\\\\\":u.type,p=a?LiteGraph.slot_types_default_out:LiteGraph.slot_types_default_in;if(null==p?void 0:p[A]){let e=!1;const t=a?\\\\\\\"from\\\\\\\":\\\\\\\"to\\\\\\\";if(ts[d]\\\\u0026\\\\u0026ts[d][t]\\\\u0026\\\\u0026(null==(i=ts[d][t][A])?void 0:i.length)\\\\u003e0){for(var h in ts[d][t][A])if(s.nodeType==ts[d][t][A][h]||\\\\\\\"AUTO\\\\\\\"==s.nodeType){e=ts[d][t][A][h];break}}else if(\\\\\\\"object\\\\\\\"==typeof p[A]||\\\\\\\"array\\\\\\\"==typeof p[A]){for(var h in p[A])if(s.nodeType==p[A][h]||\\\\\\\"AUTO\\\\\\\"==s.nodeType){e=p[A][h];break}}else s.nodeType!=p[A]\\\\u0026\\\\u0026\\\\\\\"AUTO\\\\\\\"!=s.nodeType||(e=p[A]);if(e){var m=!1;\\\\\\\"object\\\\\\\"==typeof e\\\\u0026\\\\u0026e.node\\\\u0026\\\\u0026(m=e,e=e.node);var f=LiteGraph.createNode(e);if(f){if(m){if(m.properties)for(var g in m.properties)f.addProperty(g,m.properties[g]);if(m.inputs)for(var g in f.inputs=[],m.inputs)f.addOutput(m.inputs[g][0],m.inputs[g][1]);if(m.outputs)for(var g in f.outputs=[],m.outputs)f.addOutput(m.outputs[g][0],m.outputs[g][1]);m.title\\\\u0026\\\\u0026(f.title=m.title),m.json\\\\u0026\\\\u0026f.configure(m.json)}n.graph.add(f),f.pos=[s.position[0]+s.posAdd[0]+(s.posSizeFix[0]?s.posSizeFix[0]*f.size[0]:0),s.position[1]+s.posAdd[1]+(s.posSizeFix[1]?s.posSizeFix[1]*f.size[1]:0)];const e={node:f,opts:s};if(!this.canvas.dispatchEvent(new CustomEvent(\\\\\\\"connect-new-default-node\\\\\\\",{detail:e,cancelable:!0})))return!0;if(a){if(!s.nodeFrom)throw new TypeError(\\\\\\\"createDefaultNodeForSlot - nodeFrom was null\\\\\\\");s.nodeFrom.connectByType(c,f,A)}else{if(!s.nodeTo)throw new TypeError(\\\\\\\"createDefaultNodeForSlot - nodeTo was null\\\\\\\");s.nodeTo.connectByTypeOutput(c,f,A)}return!0}}}return!1};let i=LGraphCanvas.prototype.showConnectionMenu;LGraphCanvas.prototype.showConnectionMenu=function(e){var t;const s=Object.assign({nodeFrom:null,slotFrom:null,nodeTo:null,slotTo:null,e:void 0,allow_searchbox:this.allow_searchbox,showSearchBox:this.showSearchBox},e||{}),n=this,{graph:a}=this,{afterRerouteId:o}=s,l=s.nodeFrom\\\\u0026\\\\u0026s.slotFrom,r=!l\\\\u0026\\\\u0026s.nodeTo\\\\u0026\\\\u0026s.slotTo,d=l?s.nodeFrom:s.nodeTo;if(!d||!Object.keys(ts).includes(d.type))return i.call(this,e);if(!l\\\\u0026\\\\u0026!r)return!1;const u=l?s.nodeFrom:s.nodeTo;if(!u)throw new TypeError(\\\\\\\"nodeX was null when creating default node for slot.\\\\\\\");let c=l?s.slotFrom:s.slotTo,A=!1;switch(typeof c){case\\\\\\\"string\\\\\\\":A=l?u.findOutputSlot(c,!1):u.findInputSlot(c,!1),c=l?u.outputs[c]:u.inputs[c];break;case\\\\\\\"object\\\\\\\":if(null===c)return;A=l?u.findOutputSlot(c.name):u.findInputSlot(c.name);break;case\\\\\\\"number\\\\\\\":A=c,c=l?u.outputs[c]:u.inputs[c];break;default:return!1}const p=[\\\\\\\"Add Node\\\\\\\",\\\\\\\"Add Reroute\\\\\\\",null];s.allow_searchbox\\\\u0026\\\\u0026p.push(\\\\\\\"Search\\\\\\\",null);var h=c.type==LiteGraph.EVENT?\\\\\\\"_event_\\\\\\\":c.type,m=l?LiteGraph.slot_types_default_out:LiteGraph.slot_types_default_in,f=u.type;if(m\\\\u0026\\\\u0026m[h]){const e=l?\\\\\\\"from\\\\\\\":\\\\\\\"to\\\\\\\";if(ts[f]\\\\u0026\\\\u0026ts[f][e]\\\\u0026\\\\u0026(null==(t=ts[f][e][h])?void 0:t.length)\\\\u003e0)for(var g in ts[f][e][h])p.push(ts[f][e][h][g]);else if(\\\\\\\"object\\\\\\\"==typeof m[h]||\\\\\\\"array\\\\\\\"==typeof m[h])for(var g in m[h])p.push(m[h][g]);else p.push(m[h])}var v=new LiteGraph.ContextMenu(p,{event:s.e,extra:c,title:(c\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=c.name?c.name+(h?\\\\\\\" | \\\\\\\":\\\\\\\"\\\\\\\"):\\\\\\\"\\\\\\\")+(c\\\\u0026\\\\u0026h?h:\\\\\\\"\\\\\\\"),callback:function(e,t,i){var r,d;switch(e){case\\\\\\\"Add Node\\\\\\\":LGraphCanvas.onMenuAdd(null,null,i,v,(function(e){var t,i;e\\\\u0026\\\\u0026(l?null==(t=s.nodeFrom)||t.connectByType(A,e,h,{afterRerouteId:o}):null==(i=s.nodeTo)||i.connectByTypeOutput(A,e,h,{afterRerouteId:o}))}));break;case\\\\\\\"Add Reroute\\\\\\\":const u=l?s.nodeFrom:s.nodeTo,p=t.extra;if(!a)throw new is;if(!u)throw new TypeError(\\\\\\\"Cannot add reroute: node was null\\\\\\\");if(!p)throw new TypeError(\\\\\\\"Cannot add reroute: slot was null\\\\\\\");if(!s.e)throw new TypeError(\\\\\\\"Cannot add reroute: CanvasPointerEvent was null\\\\\\\");if(!u.connectFloatingReroute([s.e.canvasX,s.e.canvasY],p,o))throw new Error(\\\\\\\"Failed to create reroute\\\\\\\");n.dirty_canvas=!0,n.dirty_bgcanvas=!0;break;case\\\\\\\"Search\\\\\\\":l?s.showSearchBox(i,{node_from:s.nodeFrom,slot_from:c,type_filter_in:h}):s.showSearchBox(i,{node_to:s.nodeTo,slot_from:c,type_filter_out:h});break;default:const m={position:[(null==(r=s.e)?void 0:r.canvasX)??0,(null==(d=s.e)?void 0:d.canvasY)??0],nodeType:e,afterRerouteId:o};n.createDefaultNodeForSlot(Object.assign(s,m))}}});return v}}}),fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.TimeTaken\\\\\\\",setup(){let e=new Map,t=0;ge.addEventListener(\\\\\\\"execution_start\\\\\\\",(e=\\\\u003e{graph\\\\u0026\\\\u0026graph._nodes.forEach((e=\\\\u003e{e.executionDuration\\\\u0026\\\\u0026delete e.executionDuration}))})),ge.addEventListener(\\\\\\\"executing\\\\\\\",(i=\\\\u003e{if(!xe(\\\\\\\"EasyUse.Nodes.Runtime\\\\\\\",null))return;const s=(null==i?void 0:i.node)||(null==i?void 0:i.detail)||null,n=e.get(t);if(e.delete(t),t\\\\u0026\\\\u0026n){const e=Date.now()-n,i=xt(t);i\\\\u0026\\\\u0026(i.executionDuration||(i.executionDuration=0),i.executionDuration=i.executionDuration+e/1e3)}t=s,e.set(s,Date.now())}))},beforeRegisterNodeDef(e,t){const i=e.prototype.onDrawForeground;e.prototype.onDrawForeground=function(...e){const[t]=e;return function(e,t){if(!t)return;t=parseFloat(t).toFixed(3)+Ne(\\\\\\\"s\\\\\\\"),e.save(),e.fillStyle=LiteGraph.NODE_DEFAULT_BGCOLOR,function(e,t,i,s,n,a){e.beginPath(),e.moveTo(t+a,i),e.lineTo(t+s-a,i),e.arcTo(t+s,i,t+s,i+a,a),e.lineTo(t+s,i+n-a),e.arcTo(t+s,i+n,t+s-a,i+n,a),e.lineTo(t+a,i+n),e.arcTo(t,i+n,t,i+n-a,a),e.lineTo(t,i+a),e.arcTo(t,i,t+a,i,a),e.closePath()}(e,0,-LiteGraph.NODE_TITLE_HEIGHT-20,e.measureText(t).width+10,LiteGraph.NODE_TITLE_HEIGHT-10,4),e.fill(),function(e,t,i,s,n=\\\\\\\"#000\\\\\\\",a=12,o=\\\\\\\"Inter\\\\\\\"){e.font=`${a}px ${o}`,e.fillStyle=n,e.fillText(t,i,s)}(e,t,8,-LiteGraph.NODE_TITLE_HEIGHT-6,LiteGraph.NODE_TITLE_COLOR),e.restore()}(t,this.executionDuration),null==i?void 0:i.apply(this,e)}}});let ss=null;fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.HotKeys\\\\\\\",setup(){if(void 0!==x){x(\\\\\\\"up,down,left,right\\\\\\\",(function(e,t){var i,s,n,a,o,l,r,d,u,c,A,p,h,m,f;e.preventDefault();if(!xe(\\\\\\\"EasyUse.Hotkeys.JumpNearestNodes\\\\\\\",null))return;const g=Lt();if(0===g.length)return;const v=g[0];switch(t.key){case\\\\\\\"up\\\\\\\":case\\\\\\\"left\\\\\\\":let e=null;if(Tt(v)){const e=null==(i=v.widgets_values)?void 0:i[0],t=null==(s=v.graph)?void 0:s._nodes,n=null==t?void 0:t.find((t=\\\\u003e{var i;if(Ot(t)){if((null==(i=t.widgets_values)?void 0:i[0])===e)return t}return null}));n\\\\u0026\\\\u0026Et(n)}else if((null==(n=v.inputs)?void 0:n.length)\\\\u003e0){for(let t=0;t\\\\u003cv.inputs.length;t++)if(v.inputs[t].link){e=v.inputs[t].link;break}if(e){const t=null==(a=v.graph)?void 0:a.links;if(t[e]){const i=null==(o=t[e])?void 0:o.origin_id,s=null==(r=null==(l=v.graph)?void 0:l._nodes_by_id)?void 0:r[i];s\\\\u0026\\\\u0026Et(s)}}}break;case\\\\\\\"down\\\\\\\":case\\\\\\\"right\\\\\\\":let t=null;if(Ot(v)){const e=null==(d=v.widgets_values)?void 0:d[0],t=null==(u=v.graph)?void 0:u._nodes,i=null==t?void 0:t.find((t=\\\\u003e{var i;if(Tt(t)){if((null==(i=t.widgets_values)?void 0:i[0])===e)return t}return null}));i\\\\u0026\\\\u0026Et(i)}else if((null==(c=v.outputs)?void 0:c.length)\\\\u003e0){for(let e=0;e\\\\u003cv.outputs.length;e++)if((null==(A=v.outputs[e].links)?void 0:A.length)\\\\u003e0\\\\u0026\\\\u0026v.outputs[e].links[0]){t=v.outputs[e].links[0];break}if(t){const e=null==(p=v.graph)?void 0:p.links;if(e[t]){const i=null==(h=e[t])?void 0:h.target_id,s=null==(f=null==(m=v.graph)?void 0:m._nodes_by_id)?void 0:f[i];s\\\\u0026\\\\u0026Et(s)}}}}})),x(\\\\\\\"shift+up,shift+down,shift+left,shift+right,shift+alt+\\u2318+left,shift+alt+\\u2318+right,shift+alt+ctrl+left,shift+alt+ctrl+right\\\\\\\",(function(e,t){e.preventDefault();if(!xe(\\\\\\\"EasyUse.Hotkeys.AlignSelectedNodes\\\\\\\",null))return;const i=Lt();if(i.length\\\\u003c=1)return;const s=i;switch(t.key){case\\\\\\\"shift+up\\\\\\\":LGraphCanvas.alignNodes(s,\\\\\\\"top\\\\\\\",s[0]);break;case\\\\\\\"shift+down\\\\\\\":LGraphCanvas.alignNodes(s,\\\\\\\"bottom\\\\\\\",s[0]);break;case\\\\\\\"shift+left\\\\\\\":LGraphCanvas.alignNodes(s,\\\\\\\"left\\\\\\\",s[0]);break;case\\\\\\\"shift+right\\\\\\\":LGraphCanvas.alignNodes(s,\\\\\\\"right\\\\\\\",s[0]);break;case\\\\\\\"shift+alt+ctrl+left\\\\\\\":case\\\\\\\"shift+alt+\\u2318+left\\\\\\\":Ft(s,\\\\\\\"horizontal\\\\\\\");break;case\\\\\\\"shift+alt+ctrl+right\\\\\\\":case\\\\\\\"shift+alt+\\u2318+right\\\\\\\":Ft(s,\\\\\\\"vertical\\\\\\\")}ss||(ss=Ke()),ss\\\\u0026\\\\u0026ss.update()})),x(\\\\\\\"shift+\\u2318+left,shift+\\u2318+right,shift+ctrl+left,shift+ctrl+right\\\\\\\",(function(e,t){e.preventDefault();if(!xe(\\\\\\\"EasyUse.Hotkeys.NormalizeSelectedNodes\\\\\\\",null))return;const i=Lt();if(i.length\\\\u003c=1)return;const s=i;switch(t.key){case\\\\\\\"shift+ctrl+left\\\\\\\":case\\\\\\\"shift+\\u2318+left\\\\\\\":Wt(s,\\\\\\\"width\\\\\\\");break;case\\\\\\\"shift+ctrl+right\\\\\\\":case\\\\\\\"shift+\\u2318+right\\\\\\\":Wt(s,\\\\\\\"height\\\\\\\")}ss||(ss=Ke()),ss\\\\u0026\\\\u0026ss.update()})),x(\\\\\\\"shift+g\\\\\\\",(function(e,t){e.preventDefault();xe(\\\\\\\"EasyUse.Hotkeys.AddGroup\\\\\\\",null)\\\\u0026\\\\u0026(as(),ss||(ss=Ke()),ss\\\\u0026\\\\u0026ss.update())})),x(\\\\\\\"shift+r\\\\\\\",(function(e,t){e.preventDefault();xe(\\\\\\\"EasyUse.Hotkeys.cleanVRAMused\\\\\\\",null)\\\\u0026\\\\u0026vi()})),x(\\\\\\\"shift+m\\\\\\\",(function(e,t){var i,s,n;if(!xe(\\\\\\\"EasyUse.Hotkeys.toggleNodesMap\\\\\\\",null))return;let a=(null==(i=fe.extensionManager)?void 0:i.sidebarTab)||fe.extensionManager,o=(null==(s=fe.extensionManager.sidebarTab)?void 0:s.activeSidebarTabId)||(null==(n=fe.extensionManager)?void 0:n.activeSidebarTab);a.activeSidebarTabId=o==Pe?null:Pe}));const e=[];Array.from(Array(10).keys()).forEach((t=\\\\u003ee.push(`alt+${t}`))),x(e.join(\\\\\\\",\\\\\\\"),(async function(e,t){e.preventDefault();if(!xe(\\\\\\\"EasyUse.Hotkeys.NodesTemplate\\\\\\\",null))return;const i=t.key;let s=parseInt(i.split(\\\\\\\"+\\\\\\\")[1]);const n=await ge.getUserData(\\\\\\\"comfy.templates.json\\\\\\\");let a=null;if(200==n.status)try{a=await n.json()}catch(l){Ye.error(Ne(\\\\\\\"Get Node Templates File Failed\\\\\\\"))}else localStorage[\\\\\\\"Comfy.NodeTemplates\\\\\\\"]?a=JSON.parse(localStorage[\\\\\\\"Comfy.NodeTemplates\\\\\\\"]):Ye.warn(Ne(\\\\\\\"No Node Templates Found\\\\\\\"));if(!a)return void Ye.warn(Ne(\\\\\\\"No Node Templates Found\\\\\\\"));s=0===s?9:s-1;const o=a[s];if(o)try{const e=(null==o?void 0:o.name)||\\\\\\\"Group\\\\\\\",t=(null==o?void 0:o.data)?JSON.parse(o.data):[];ns((async()=\\\\u003e{await _e.registerFromWorkflow(t.groupNodes,{}),localStorage.litegrapheditor_clipboard=o.data,fe.canvas.pasteFromClipboard(),t.groupNodes||as(e)}))}catch(l){Ye.error(l)}else Ye.warn(Ne(\\\\\\\"Node template with {key} not set\\\\\\\").replace(\\\\\\\"{key}\\\\\\\",i))}));const t=async function(e){if((\\\\\\\"b\\\\\\\"===e.key||\\\\\\\"m\\\\\\\"==e.key)\\\\u0026\\\\u0026(e.metaKey||e.ctrlKey)){if(0===Lt().length)return;ss||(ss=Ke()),ss\\\\u0026\\\\u0026ss.update()}};window.addEventListener(\\\\\\\"keydown\\\\\\\",t,!0)}}});const ns=async e=\\\\u003e{const t=localStorage.litegrapheditor_clipboard;await e(),localStorage.litegrapheditor_clipboard=t},as=e=\\\\u003e{const t=Lt();if(0===t.length)return;const i=t;let s=new LiteGraph.LGraphGroup;s.title=e||\\\\\\\"Group\\\\\\\",((e,t=[],i=20)=\\\\u003e{var s,n,a,o,l,r,d,u,c,A;for(var p of(n=a=o=l=-1,r=d=u=c=-1,[e._nodes,t]))for(var h in p)r=(A=p[h]).pos[0],d=A.pos[1],u=A.pos[0]+A.size[0],c=A.pos[1]+A.size[1],\\\\\\\"Reroute\\\\\\\"!=A.type\\\\u0026\\\\u0026(d-=LiteGraph.NODE_TITLE_HEIGHT),(null==(s=A.flags)?void 0:s.collapsed)\\\\u0026\\\\u0026(c=d+LiteGraph.NODE_TITLE_HEIGHT,(null==A?void 0:A._collapsed_width)\\\\u0026\\\\u0026(u=r+Math.round(A._collapsed_width))),(-1==n||r\\\\u003cn)\\\\u0026\\\\u0026(n=r),(-1==a||d\\\\u003ca)\\\\u0026\\\\u0026(a=d),(-1==o||u\\\\u003eo)\\\\u0026\\\\u0026(o=u),(-1==l||c\\\\u003el)\\\\u0026\\\\u0026(l=c);a-=Math.round(1.4*e.font_size),e.pos=[n-i,a-i],e.size=[o-n+2*i,l-a+2*i]})(s,i),fe.canvas.graph.add(s)},os=\\\\\\\"easy imageChooser\\\\\\\",ls=e=\\\\u003e(null==e?void 0:e.comfyClass)===os;fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.imageChooser\\\\\\\",setup(){const e=ge.interrupt;ge.interrupt=function(){var t;(null==(t=fe.graph)?void 0:t._nodes_by_id)\\\\u0026\\\\u0026(()=\\\\u003e{var e;Object.values(null==(e=fe.graph)?void 0:e._nodes_by_id).forEach((e=\\\\u003e{ls(e)\\\\u0026\\\\u0026e.cancelSelection(\\\\\\\"interrupt\\\\\\\")}))})(),e.apply(this,arguments)},ge.addEventListener(\\\\\\\"easyuse-image-choose\\\\\\\",(e=\\\\u003e{var t;const i=e.detail,s=fe.graph._nodes_by_id[i.id];if(!s||!ls(s))return;s.setExecutingState(!1),s.selected_images.clear(),s.anti_selected.clear(),s.isWaitingSelection=[\\\\\\\"Always Pause\\\\\\\",\\\\\\\"Keep Last Selection\\\\\\\"].includes(s.currentMode),s.isCanceling=!1,s.overIndex=null;const n=(null==(t=i.urls)?void 0:t.map(((e,t)=\\\\u003e({index:t,filename:e.filename,subfolder:e.subfolder,type:e.type}))))||[];s.imageData=n,s.imgs=[],n.forEach((e=\\\\u003e{const t=new Image;t.onload=()=\\\\u003e{fe.graph.setDirtyCanvas(!0)},t.src=`/view?filename=${encodeURIComponent(e.filename)}${(e=\\\\u003e`\\\\u0026type=${e.type}\\\\u0026subfolder=${e.subfolder}\\\\u0026rand=${e.random}`)(e)}`,s.imgs.push(t)})),s.update(),\\\\\\\"Always Pause\\\\\\\"===s.currentMode\\\\u0026\\\\u0026s.setExecutingState(!0)})),ge.addEventListener(\\\\\\\"easyuse-image-keep-selection\\\\\\\",(e=\\\\u003e{const t=e.detail,i=fe.graph._nodes_by_id[t.id];i\\\\u0026\\\\u0026ls(i)\\\\u0026\\\\u0026(i.isWaitingSelection=!1,i.isCancelling=!1,t.selected\\\\u0026\\\\u0026Array.isArray(t.selected)\\\\u0026\\\\u0026(i.selected_images.clear(),t.selected.forEach((e=\\\\u003e{i.selected_images.add(e)}))),i.update())}))},beforeRegisterNodeDef(e,t){if(t.name==os){e.prototype.confirmSelection=function(){ge.fetchApi(\\\\\\\"/easyuse/image_chooser_message\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:JSON.stringify({node_id:this.id.toString(),action:\\\\\\\"select\\\\\\\",selected:Array.from(this.selected_images)})}).catch((e=\\\\u003e{})).finally((e=\\\\u003e{this.isWaitingSelection=!1,this.update(),this.setExecutingState(!1)}))},e.prototype.cancelSelection=function(e){ge.fetchApi(\\\\\\\"/easyuse/image_chooser_message\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:JSON.stringify({node_id:this.id.toString(),action:\\\\\\\"cancel\\\\\\\",selected:[]})}).catch((e=\\\\u003e{})).finally((e=\\\\u003e{this.isCanceling=!1,this.isWaitingSelection=!1,this.update(),this.setExecutingState(!1)}))},e.prototype.updateWidgets=function(){var e;if(!this.confirm_button_widget||!this.cancel_button_widget)return;const t=this.selected_images.size,i=(null==(e=this.imgs)?void 0:e.length)||0;if(this.isCanceling)this.confirm_button_widget.name=Ne(\\\\\\\"Canceling\\\\\\\"),this.cancel_button_widget.name=\\\\\\\"\\\\\\\",this.confirm_button_widget.disabled=!0,this.cancel_button_widget.disabled=!0;else if(this.isWaitingSelection)t\\\\u003e0?(this.confirm_button_widget.name=t\\\\u003e1?`${Ne(\\\\\\\"Progress selected\\\\\\\")} (${t}/${i})`:`${Ne(\\\\\\\"Progress selected image\\\\\\\")}`,this.confirm_button_widget.disabled=!1):(this.confirm_button_widget.name=Ne(\\\\\\\"Please select images to continue\\\\\\\"),this.confirm_button_widget.disabled=!0),this.cancel_button_widget.name=Ne(\\\\\\\"Cancel current run\\\\\\\"),this.cancel_button_widget.disabled=!1;else{const e={\\\\\\\"Always Pause\\\\\\\":Ne(\\\\\\\"Waiting for selection...\\\\\\\"),\\\\\\\"Keep Last Selection\\\\\\\":Ne(\\\\\\\"Using last selection\\\\\\\")};this.confirm_button_widget.name=(t\\\\u003e0\\\\u0026\\\\u0026\\\\\\\"Always Pause\\\\\\\"==this.currentMode?Ne(\\\\\\\"Please run first\\\\\\\"):null==e?void 0:e[this.currentMode])||Ne(\\\\\\\"Unknown Mode\\\\\\\"),this.cancel_button_widget.name=\\\\\\\"\\\\\\\",this.confirm_button_widget.disabled=!0,this.cancel_button_widget.disabled=!0}this.setDirtyCanvas(!0,!0)},e.prototype.serialize=function(){const e=LiteGraph.LGraphNode.prototype.serialize.call(this);return e.isWaitingSelection=this.isWaitingSelection,e.currentMode=this.currentMode,this.imageData\\\\u0026\\\\u0026this.imageData.length\\\\u003e0\\\\u0026\\\\u0026(e.imageData=this.imageData),this.selected_images\\\\u0026\\\\u0026this.selected_images.size\\\\u003e0\\\\u0026\\\\u0026(e.selected_images=Array.from(this.selected_images)),e.isExecuting=this.isExecuting||!1,e},e.prototype.configure=function(e){LiteGraph.LGraphNode.prototype.configure.call(this,e),this.isWaitingSelection=e.isWaitingSelection||!1,this.currentMode=e.currentMode||\\\\\\\"Always Pause\\\\\\\",this.imgs=[],this.updateWidgets()},e.prototype.setExecutingState=function(e){this.isExecuting=e,fe.graph\\\\u0026\\\\u0026fe.graph.setDirtyCanvas(!0,!1)};const t=e.prototype.update;e.prototype.update=function(){null==t||t.call(this,arguments),this.updateWidgets()};const i=e.prototype.onNodeCreated;e.prototype.onNodeCreated=function(){null==i||i.call(this,arguments),this.selected_images=new Set,this.anti_selected=new Set,this.currentMode=\\\\\\\"Always Pause\\\\\\\",this.isWaitingSelection=!1,this.isCanceling=!1,this.imageData=[],this.imgs,this.confirm_button_widget=this.addWidget(\\\\\\\"button\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",(()=\\\\u003e{this.confirmSelection()})),this.cancel_button_widget=this.addWidget(\\\\\\\"button\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",(()=\\\\u003e{this.cancelSelection()})),this.confirm_button_widget.serialize=!1,this.cancel_button_widget.serialize=!1,setTimeout((e=\\\\u003e{const t=wt(this,\\\\\\\"mode\\\\\\\");t.callback=e=\\\\u003e{requestAnimationFrame((t=\\\\u003e{this.currentMode=e,this.updateWidgets(),this.setDirtyCanvas(!0,!0)}))},this.currentMode=t.value||\\\\\\\"Always Pause\\\\\\\",this.updateWidgets()}),1),Object.defineProperty(this.confirm_button_widget,\\\\\\\"clicked\\\\\\\",{get:function(){return this._clicked},set:function(e){this._clicked=e\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=this.name}}),Object.defineProperty(this.cancel_button_widget,\\\\\\\"clicked\\\\\\\",{get:function(){return this._clicked},set:function(e){this._clicked=e\\\\u0026\\\\u0026\\\\\\\"\\\\\\\"!=this.name}}),Object.defineProperty(this,\\\\\\\"imageIndex\\\\\\\",{get:function(){return null},set:function(e){this.overIndex=e}}),Object.defineProperty(this,\\\\\\\"imagey\\\\\\\",{get:function(){var e,t;return(null==(t=null==(e=this.widgets)?void 0:e[this.widgets.length-1])?void 0:t.last_y)+LiteGraph.NODE_WIDGET_HEIGHT},set:function(e){this.imagey=e}});const e=this.onMouseDown;this.onMouseDown=function(t,i,s){if(t.isPrimary){const e=rs(this,i);e\\\\u003e=0\\\\u0026\\\\u0026this.toggleImageSelection(e)}return e\\\\u0026\\\\u0026e.apply(this,arguments)},this.update()},e.prototype.onDrawBackground,e.prototype.onDrawBackground=function(e){!function(e,t,i=0){var s,n;if(!e.imgs||!e.imgs.length)return;const a=fe.canvas,o=a.graph_mouse,l=15,r=e.size[0];let d=e.size[1]-i-l;d\\\\u003c200\\\\u0026\\\\u0026(d=200,requestAnimationFrame((t=\\\\u003e{e.size[1]=i+l+200})));if(null==e.imageIndex){let n,l,u,c;if(us(e.imgs))({cellWidth:n,cellHeight:l,cols:c,shiftX:u}=cs(e.imgs,r,d));else{const t=e.imgs.reduce(((e,t)=\\\\u003eMath.max(e,t.naturalWidth,t.naturalHeight)),0),i=[];i.length=null==(s=e.imgs)?void 0:s.length,i[0]={naturalWidth:t,naturalHeight:t},({cellWidth:n,cellHeight:l,cols:c,shiftX:u}=cs(i,r,d))}let A=!1,p=e.imgs.length;e.imageRects=[];for(let s=0;s\\\\u003cp;s++){e.imgs[s];const r=s%c*n+u,d=Math.floor(s/c)*l+i;if(!A\\\\u0026\\\\u0026(A=LiteGraph.isInsideRectangle(o[0],o[1],r+e.pos[0],d+e.pos[1],n,l),A)){e.overIndex=s;let i=110;a.pointer_is_down\\\\u0026\\\\u0026(e.pointerDown\\\\u0026\\\\u0026e.pointerDown.index===s||(e.pointerDown={index:s,pos:[...o]}),i=125),t.filter=`contrast(${i}%) brightness(${i}%)`,a.canvas.style.cursor=\\\\\\\"pointer\\\\\\\"}e.imageRects.push([r,d,n,l])}}if(e.imageRects)for(let c=0;c\\\\u003ce.imgs.length;c++){t.fillStyle=\\\\\\\"#000\\\\\\\",t.fillRect(...e.imageRects[c]);const i=e.imgs[c],s=e.imageRects[c][2],n=e.imageRects[c][3];let a=s/i.width,o=n/i.height;var u=Math.min(a,o);let l=u*i.height,r=u*i.width;const d=e.imageRects[c][0]+(s-r)/2,A=e.imageRects[c][1]+(n-l)/2,p=2;t.drawImage(i,d+p,A+p,r-2*p,l-2*p)}t.lineWidth=2,t.strokeStyle=\\\\\\\"green\\\\\\\",e\\\\u0026\\\\u0026e.selected_images\\\\u0026\\\\u0026e.selected_images.forEach((i=\\\\u003e{ds(e,i,t)}));t.strokeStyle=\\\\\\\"#F88\\\\\\\",null==(n=null==e?void 0:e.anti_selected)||n.forEach((i=\\\\u003e{ds(e,i,t)}))}(this,e,this.imagey||0)},e.prototype.toggleImageSelection=function(e){this.selected_images.has(e)?this.selected_images.delete(e):this.selected_images.add(e),this.update()}}}});const rs=(e,t)=\\\\u003e{var i,s;if((null==(i=e.imgs)?void 0:i.length)\\\\u003e1)for(var n=0;n\\\\u003ce.imageRects.length;n++){const i=t[0]-e.imageRects[n][0],s=t[1]-e.imageRects[n][1];if(i\\\\u003e0\\\\u0026\\\\u0026i\\\\u003ce.imageRects[n][2]\\\\u0026\\\\u0026s\\\\u003e0\\\\u0026\\\\u0026s\\\\u003ce.imageRects[n][3])return n}else if(1==(null==(s=e.imgs)?void 0:s.length)\\\\u0026\\\\u0026t[1]\\\\u003ee.imagey)return 0;return-1};function ds(e,t,i){var s;if(e.imageRects)s=e.imageRects[t];else{const t=e.imagey;s=[1,t+1,e.size[0]-2,e.size[1]-t-2]}i.strokeRect(s[0]+1,s[1]+1,s[2]-2,s[3]-2)}const us=e=\\\\u003e{if(!e.length||1===e.length)return!0;const t=e[0].naturalWidth/e[0].naturalHeight;for(let i=1;i\\\\u003ce.length;i++){if(t!=e[i].naturalWidth/e[i].naturalHeight)return!1}return!0};function cs(e,t,i){let s=0,n=e[0].naturalWidth,a=e[0].naturalHeight;const o=e.length;let l,r,d,u,c;for(let A=1;A\\\\u003c=o;A++){const e=Math.ceil(o/A),p=t/A,h=p/n,m=i/e/a,f=Math.min(h,m,1),g=n*f,v=a*f,y=g*v*o;y\\\\u003es\\\\u0026\\\\u0026(s=y,l=g,r=v,d=A,u=e,c=A*((p-g)/2))}return{cellWidth:l,cellHeight:r,cols:d,rows:u,shiftX:c}}Number.prototype.div=function(e){return function(e,t){let i,s,n=0,a=0,o=\\\\\\\"string\\\\\\\"==typeof e?e:e.toString(),l=\\\\\\\"string\\\\\\\"==typeof t?t:t.toString();try{n=o.toString().split(\\\\\\\".\\\\\\\")[1].length}catch(r){}try{a=l.toString().split(\\\\\\\".\\\\\\\")[1].length}catch(r){}return i=Number(o.toString().replace(\\\\\\\".\\\\\\\",\\\\\\\"\\\\\\\")),s=Number(l.toString().replace(\\\\\\\".\\\\\\\",\\\\\\\"\\\\\\\")),i/s*Math.pow(10,a-n)}(this,e)};let As=[],ps=0;const hs={sd3:6.5,\\\\\\\"sd3-turbo\\\\\\\":4};class ms extends ye{constructor(){super(),this.lists=[],this.dialog_div=null,this.user_div=null}addItem(e,t){return ve(\\\\\\\"div.easyuse-account-dialog-item\\\\\\\",[ve(\\\\\\\"input\\\\\\\",{type:\\\\\\\"text\\\\\\\",placeholder:\\\\\\\"Enter name\\\\\\\",oninput:e=\\\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\\\\\".easyuse-account-dialog-item\\\\\\\"),e.target.parentNode);As[t].name=e.target.value},value:As[e].name}),ve(\\\\\\\"input.key\\\\\\\",{type:\\\\\\\"text\\\\\\\",oninput:e=\\\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\\\\\".easyuse-account-dialog-item\\\\\\\"),e.target.parentNode);As[t].key=e.target.value},placeholder:\\\\\\\"Enter APIKEY\\\\\\\",value:As[e].key}),ve(\\\\\\\"button.choose\\\\\\\",{textContent:Ne(\\\\\\\"Choose\\\\\\\"),onclick:async e=\\\\u003e{var i,s,n;const a=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\\\\\".easyuse-account-dialog-item\\\\\\\"),e.target.parentNode);let o=As[a].name,l=As[a].key;if(!o)return void Ye.error(Ne(\\\\\\\"Please enter the account name\\\\\\\"));if(!l)return void Ye.error(Ne(\\\\\\\"Please enter the APIKEY\\\\\\\"));let r=!0;for(let t=0;t\\\\u003cAs.length;t++)if(!As[t].key){r=!1;break}if(!r)return void Ye.error(Ne(\\\\\\\"APIKEY is not Empty\\\\\\\"));ps=a;const d=new FormData;d.append(\\\\\\\"api_keys\\\\\\\",JSON.stringify(As)),d.append(\\\\\\\"current\\\\\\\",ps);const u=await ge.fetchApi(\\\\\\\"/easyuse/stability/set_api_keys\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:d});if(200==u.status){const e=await u.json();if((null==e?void 0:e.account)\\\\u0026\\\\u0026(null==e?void 0:e.balance)){const a=(null==(i=e.account)?void 0:i.profile_picture)||null,o=(null==(s=e.account)?void 0:s.email)||null,l=(null==(n=e.balance)?void 0:n.credits)||0;t.replaceChildren(ve(\\\\\\\"div.easyuse-account-user-info\\\\\\\",{onclick:e=\\\\u003e{(new ms).show(t)}},[ve(\\\\\\\"div.user\\\\\\\",[ve(\\\\\\\"div.avatar\\\\\\\",a?[ve(\\\\\\\"img\\\\\\\",{src:a})]:\\\\\\\"\\ud83d\\ude00\\\\\\\"),ve(\\\\\\\"div.info\\\\\\\",[ve(\\\\\\\"h5.name\\\\\\\",o),ve(\\\\\\\"h6.remark\\\\\\\",\\\\\\\"Credits: \\\\\\\"+l)])]),ve(\\\\\\\"div.edit\\\\\\\",{textContent:Ne(\\\\\\\"Edit\\\\\\\")})])),Ye.success(Ne(\\\\\\\"Save Succeed\\\\\\\"))}else Ye.success(Ne(\\\\\\\"Save Succeed\\\\\\\"));this.close()}else Ye.error(Ne(\\\\\\\"Save Failed\\\\\\\"))}}),ve(\\\\\\\"button.delete\\\\\\\",{textContent:Ne(\\\\\\\"Delete\\\\\\\"),onclick:e=\\\\u003e{const t=Array.prototype.indexOf.call(this.dialog_div.querySelectorAll(\\\\\\\".easyuse-account-dialog-item\\\\\\\"),e.target.parentNode);As.length\\\\u003c=1?Ye.error(Ne(\\\\\\\"At least one account is required\\\\\\\")):(As.splice(t,1),this.dialog_div.removeChild(e.target.parentNode))}})])}show(e){As.forEach(((t,i)=\\\\u003e{this.lists.push(this.addItem(i,e))})),this.dialog_div=ve(\\\\\\\"div.easyuse-account-dialog\\\\\\\",this.lists),super.show(ve(\\\\\\\"div.easyuse-account-dialog-main\\\\\\\",[ve(\\\\\\\"div\\\\\\\",[ve(\\\\\\\"a\\\\\\\",{href:\\\\\\\"https://platform.stability.ai/account/keys\\\\\\\",target:\\\\\\\"_blank\\\\\\\",textContent:Ne(\\\\\\\"Getting Your APIKEY\\\\\\\")})]),this.dialog_div]))}createButtons(){const e=super.createButtons();return e.unshift(ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:Ne(\\\\\\\"Save Account Info\\\\\\\"),onclick:e=\\\\u003e{let t=!0;for(let i=0;i\\\\u003cAs.length;i++)if(!As[i].key){t=!1;break}if(t){const e=new FormData;e.append(\\\\\\\"api_keys\\\\\\\",JSON.stringify(As)),ge.fetchApi(\\\\\\\"/easyuse/stability/set_api_keys\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:e}).then((e=\\\\u003e{200==e.status?Ye.success(Ne(\\\\\\\"Save Succeed\\\\\\\")):Ye.error(Ne(\\\\\\\"Save Failed\\\\\\\"))}))}else Ye.error(Ne(\\\\\\\"APIKEY is not Empty\\\\\\\"))}})),e.unshift(ve(\\\\\\\"button\\\\\\\",{type:\\\\\\\"button\\\\\\\",textContent:Ne(\\\\\\\"Add Account\\\\\\\"),onclick:e=\\\\u003e{const t=\\\\\\\"Account \\\\\\\"+As.length.toString();As.push({name:t,key:\\\\\\\"\\\\\\\"});const i=this.addItem(As.length-1);this.lists.push(i),this.dialog_div.appendChild(i)}})),e}}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.API.SD3\\\\\\\",async beforeRegisterNodeDef(e,t,i){if(\\\\\\\"easy stableDiffusion3API\\\\\\\"==t.name){const t=e.prototype.onNodeCreated;e.prototype.onNodeCreated=async function(){var e,i,s;t\\\\u0026\\\\u0026(null==t||t.apply(this,arguments));const n=this.widgets.find((e=\\\\u003e[\\\\\\\"seed_num\\\\\\\",\\\\\\\"seed\\\\\\\"].includes(e.name))),a=this.widgets.find((e=\\\\u003e[\\\\\\\"control_before_generate\\\\\\\",\\\\\\\"control_after_generate\\\\\\\"].includes(e.name)));let o=this.widgets.find((e=\\\\u003e\\\\\\\"model\\\\\\\"==e.name));o.callback=e=\\\\u003e{l.value=\\\\\\\"-\\\\\\\"+hs[e]};const l=this.addWidget(\\\\\\\"text\\\\\\\",\\\\\\\"cost_credit\\\\\\\",\\\\\\\"0\\\\\\\",(e=\\\\u003e{}),{serialize:!1});l.disabled=!0,a\\\\u0026\\\\u0026setTimeout((e=\\\\u003e{\\\\\\\"control before generate\\\\\\\"==a.name\\\\u0026\\\\u00260===n.value\\\\u0026\\\\u0026(n.value=Math.floor(4294967294*Math.random())),l.value=\\\\\\\"-\\\\\\\"+hs[o.value]}),100);let r=ve(\\\\\\\"div.easyuse-account-user\\\\\\\",[Ne(\\\\\\\"Loading UserInfo...\\\\\\\")]);this.addDOMWidget(\\\\\\\"account\\\\\\\",\\\\\\\"btn\\\\\\\",ve(\\\\\\\"div.easyuse-account\\\\\\\",r)),ge.addEventListener(\\\\\\\"stable-diffusion-api-generate-succeed\\\\\\\",(async({detail:e})=\\\\u003e{var t;let i=r.querySelectorAll(\\\\\\\".remark\\\\\\\");if(i\\\\u0026\\\\u0026i[0]){const t=(null==e?void 0:e.model)?hs[e.model]:0;if(t){let e=function(e,t){let i,s,n,a,o,l;o=\\\\\\\"string\\\\\\\"==typeof e?e:e.toString(),l=\\\\\\\"string\\\\\\\"==typeof t?t:t.toString();try{i=o.split(\\\\\\\".\\\\\\\")[1].length}catch(r){i=0}try{s=l.split(\\\\\\\".\\\\\\\")[1].length}catch(r){s=0}return n=Math.pow(10,Math.max(i,s)),a=i\\\\u003e=s?i:s,((e*n-t*n)/n).toFixed(a)}(parseFloat(i[0].innerText.replace(/Credits: /g,\\\\\\\"\\\\\\\")),t);e\\\\u003e0\\\\u0026\\\\u0026(i[0].innerText=\\\\\\\"Credits: \\\\\\\"+e.toString())}}await Xe(1e4);const s=await ge.fetchApi(\\\\\\\"/easyuse/stability/balance\\\\\\\");if(200==s.status){const e=await s.json();if(null==e?void 0:e.balance){const s=(null==(t=e.balance)?void 0:t.credits)||0;i\\\\u0026\\\\u0026i[0]\\\\u0026\\\\u0026(i[0].innerText=\\\\\\\"Credits: \\\\\\\"+s)}}}));const d=await ge.fetchApi(\\\\\\\"/easyuse/stability/api_keys\\\\\\\");if(200==d.status){let t=await d.json();if(As=t.keys,ps=t.current,As.length\\\\u003e0\\\\u0026\\\\u0026void 0!==ps){const t=As[ps].key,n=As[ps].name;if(t){const t=await ge.fetchApi(\\\\\\\"/easyuse/stability/user_info\\\\\\\");if(200==t.status){const n=await t.json();if((null==n?void 0:n.account)\\\\u0026\\\\u0026(null==n?void 0:n.balance)){const t=(null==(e=n.account)?void 0:e.profile_picture)||null,a=(null==(i=n.account)?void 0:i.email)||null,o=(null==(s=n.balance)?void 0:s.credits)||0;r.replaceChildren(ve(\\\\\\\"div.easyuse-account-user-info\\\\\\\",{onclick:e=\\\\u003e{(new ms).show(r)}},[ve(\\\\\\\"div.user\\\\\\\",[ve(\\\\\\\"div.avatar\\\\\\\",t?[ve(\\\\\\\"img\\\\\\\",{src:t})]:\\\\\\\"\\ud83d\\ude00\\\\\\\"),ve(\\\\\\\"div.info\\\\\\\",[ve(\\\\\\\"h5.name\\\\\\\",a),ve(\\\\\\\"h6.remark\\\\\\\",\\\\\\\"Credits: \\\\\\\"+o)])]),ve(\\\\\\\"div.edit\\\\\\\",{textContent:Ne(\\\\\\\"Edit\\\\\\\")})]))}}}else r.replaceChildren(ve(\\\\\\\"div.easyuse-account-user-info\\\\\\\",{onclick:e=\\\\u003e{(new ms).show(r)}},[ve(\\\\\\\"div.user\\\\\\\",[ve(\\\\\\\"div.avatar\\\\\\\",\\\\\\\"\\ud83d\\ude00\\\\\\\"),ve(\\\\\\\"div.info\\\\\\\",[ve(\\\\\\\"h5.name\\\\\\\",n),ve(\\\\\\\"h6.remark\\\\\\\",Ne(\\\\\\\"Click to set the APIKEY first\\\\\\\"))])]),ve(\\\\\\\"div.edit\\\\\\\",{textContent:Ne(\\\\\\\"Edit\\\\\\\")})]))}}}}}});let fs=null;function gs(){fs\\\\u0026\\\\u0026(fs.removeEventListeners(),fs.dropdown.remove(),fs=null)}function vs(e,t,i,s=!1){gs(),new ys(e,t,i,s)}class ys{constructor(e,t,i,s=!1){this.dropdown=document.createElement(\\\\\\\"ul\\\\\\\"),this.dropdown.setAttribute(\\\\\\\"role\\\\\\\",\\\\\\\"listbox\\\\\\\"),this.dropdown.classList.add(\\\\\\\"easy-dropdown\\\\\\\"),this.selectedIndex=-1,this.inputEl=e,this.suggestions=t,this.onSelect=i,this.isDict=s,this.focusedDropdown=this.dropdown,this.buildDropdown(),this.onKeyDownBound=this.onKeyDown.bind(this),this.onWheelBound=this.onWheel.bind(this),this.onClickBound=this.onClick.bind(this),this.addEventListeners()}buildDropdown(){this.isDict?this.buildNestedDropdown(this.suggestions,this.dropdown):this.suggestions.forEach(((e,t)=\\\\u003e{this.addListItem(e,t,this.dropdown)}));const e=this.inputEl.getBoundingClientRect();this.dropdown.style.top=e.top+e.height-10+\\\\\\\"px\\\\\\\",this.dropdown.style.left=e.left+\\\\\\\"px\\\\\\\",document.body.appendChild(this.dropdown),fs=this}buildNestedDropdown(e,t){let i=0;Object.keys(e).forEach((s=\\\\u003e{const n=e[s];if(\\\\\\\"object\\\\\\\"==typeof n\\\\u0026\\\\u0026null!==n){const e=document.createElement(\\\\\\\"ul\\\\\\\");e.setAttribute(\\\\\\\"role\\\\\\\",\\\\\\\"listbox\\\\\\\"),e.classList.add(\\\\\\\"easy-nested-dropdown\\\\\\\");const a=document.createElement(\\\\\\\"li\\\\\\\");a.classList.add(\\\\\\\"folder\\\\\\\"),a.textContent=s,a.appendChild(e),a.addEventListener(\\\\\\\"mouseover\\\\\\\",this.onMouseOver.bind(this,i,t)),t.appendChild(a),this.buildNestedDropdown(n,e),i+=1}else{const e=document.createElement(\\\\\\\"li\\\\\\\");e.classList.add(\\\\\\\"item\\\\\\\"),e.setAttribute(\\\\\\\"role\\\\\\\",\\\\\\\"option\\\\\\\"),e.textContent=s,e.addEventListener(\\\\\\\"mouseover\\\\\\\",this.onMouseOver.bind(this,i,t)),e.addEventListener(\\\\\\\"mousedown\\\\\\\",this.onMouseDown.bind(this,s)),t.appendChild(e),i+=1}}))}addListItem(e,t,i){const s=document.createElement(\\\\\\\"li\\\\\\\");s.setAttribute(\\\\\\\"role\\\\\\\",\\\\\\\"option\\\\\\\"),s.textContent=e,s.addEventListener(\\\\\\\"mouseover\\\\\\\",this.onMouseOver.bind(this,t)),s.addEventListener(\\\\\\\"mousedown\\\\\\\",this.onMouseDown.bind(this,e)),i.appendChild(s)}addEventListeners(){document.addEventListener(\\\\\\\"keydown\\\\\\\",this.onKeyDownBound),this.dropdown.addEventListener(\\\\\\\"wheel\\\\\\\",this.onWheelBound),document.addEventListener(\\\\\\\"click\\\\\\\",this.onClickBound)}removeEventListeners(){document.removeEventListener(\\\\\\\"keydown\\\\\\\",this.onKeyDownBound),this.dropdown.removeEventListener(\\\\\\\"wheel\\\\\\\",this.onWheelBound),document.removeEventListener(\\\\\\\"click\\\\\\\",this.onClickBound)}onMouseOver(e,t){t\\\\u0026\\\\u0026(this.focusedDropdown=t),this.selectedIndex=e,this.updateSelection()}onMouseOut(){this.selectedIndex=-1,this.updateSelection()}onMouseDown(e,t){t.preventDefault(),this.onSelect(e),this.dropdown.remove(),this.removeEventListeners()}onKeyDown(e){const t=Array.from(this.focusedDropdown.children),i=t[this.selectedIndex];if(fs)if(38===e.keyCode)e.preventDefault(),this.selectedIndex=Math.max(0,this.selectedIndex-1),this.updateSelection();else if(40===e.keyCode)e.preventDefault(),this.selectedIndex=Math.min(t.length-1,this.selectedIndex+1),this.updateSelection();else if(39===e.keyCode){if(e.preventDefault(),i\\\\u0026\\\\u0026i.classList.contains(\\\\\\\"folder\\\\\\\")){const e=i.querySelector(\\\\\\\".easy-nested-dropdown\\\\\\\");e\\\\u0026\\\\u0026(this.focusedDropdown=e,this.selectedIndex=0,this.updateSelection())}}else if(37===e.keyCode\\\\u0026\\\\u0026this.focusedDropdown!==this.dropdown){const e=this.focusedDropdown.closest(\\\\\\\".easy-dropdown, .easy-nested-dropdown\\\\\\\").parentNode.closest(\\\\\\\".easy-dropdown, .easy-nested-dropdown\\\\\\\");e\\\\u0026\\\\u0026(this.focusedDropdown=e,this.selectedIndex=Array.from(e.children).indexOf(this.focusedDropdown.parentNode),this.updateSelection())}else if((13===e.keyCode||9===e.keyCode)\\\\u0026\\\\u0026this.selectedIndex\\\\u003e=0){e.preventDefault(),i.classList.contains(\\\\\\\"item\\\\\\\")\\\\u0026\\\\u0026(this.onSelect(t[this.selectedIndex].textContent),this.dropdown.remove(),this.removeEventListeners());const s=i.querySelector(\\\\\\\".easy-nested-dropdown\\\\\\\");s\\\\u0026\\\\u0026(this.focusedDropdown=s,this.selectedIndex=0,this.updateSelection())}else 27===e.keyCode\\\\u0026\\\\u0026(this.dropdown.remove(),this.removeEventListeners())}onWheel(e){const t=parseInt(this.dropdown.style.top);localStorage.getItem(\\\\\\\"Comfy.Settings.Comfy.InvertMenuScrolling\\\\\\\")?this.dropdown.style.top=t+(e.deltaY\\\\u003c0?10:-10)+\\\\\\\"px\\\\\\\":this.dropdown.style.top=t+(e.deltaY\\\\u003c0?-10:10)+\\\\\\\"px\\\\\\\"}onClick(e){this.dropdown.contains(e.target)||e.target===this.inputEl||(this.dropdown.remove(),this.removeEventListeners())}updateSelection(){Array.from(this.focusedDropdown.children).forEach(((e,t)=\\\\u003e{t===this.selectedIndex?e.classList.add(\\\\\\\"selected\\\\\\\"):e.classList.remove(\\\\\\\"selected\\\\\\\")}))}}function ws(e){const t=e.min||0,i=e.max||0,s=e.step||1;if(0===s)return[];const n=[];let a=t;for(;a\\\\u003c=i;){if(Number.isInteger(s))n.push(Math.round(a)+\\\\\\\"; \\\\\\\");else{let e=a.toFixed(3);-0==e\\\\u0026\\\\u0026(e=\\\\\\\"0.000\\\\\\\"),/\\\\\\\\.\\\\\\\\d{3}$/.test(e)||(e+=\\\\\\\"0\\\\\\\"),n.push(e+\\\\\\\"; \\\\\\\")}a+=s}return i\\\\u003e=0\\\\u0026\\\\u0026t\\\\u003e=0?n:n.reverse()}let bs={},_s={};function Ss(e,t){String(e.id);const i=t.name,s=t.value.replace(/^(loader|preSampling):\\\\\\\\s/,\\\\\\\"\\\\\\\");_s[i]?_s[i]!=bs[s]\\\\u0026\\\\u0026(_s[i]=bs[s]):_s={..._s,[i]:bs[s]}}fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.XYPlot\\\\\\\",async beforeRegisterNodeDef(e,t,i){if(\\\\\\\"easy XYPlot\\\\\\\"===t.name){bs=t.input.hidden.plot_dict[0];for(const e in bs){const t=bs[e];if(Array.isArray(t)){let i=[];for(const e of t)i.push(e+\\\\\\\"; \\\\\\\");bs[e]=i}else bs[e]=\\\\\\\"object\\\\\\\"==typeof t?\\\\\\\"seed\\\\\\\"==e?t+\\\\\\\"; \\\\\\\":ws(t):t+\\\\\\\"; \\\\\\\"}bs.None=[],bs[\\\\\\\"---------------------\\\\\\\"]=[]}},nodeCreated(e){\\\\\\\"easy XYPlot\\\\\\\"===e.comfyClass\\\\u0026\\\\u0026(function(e){if(e.widgets)for(const t of e.widgets)if(\\\\\\\"x_axis\\\\\\\"===t.name||\\\\\\\"y_axis\\\\\\\"===t.name){let i=t.value;Object.defineProperty(t,\\\\\\\"value\\\\\\\",{get:()=\\\\u003ei,set(s){s!==i\\\\u0026\\\\u0026(i=s,Ss(e,t))}})}}(e),function(e){if(e.widgets){const t=e.widgets.filter((e=\\\\u003e\\\\\\\"customtext\\\\\\\"===e.type\\\\u0026\\\\u0026!1!==e.dynamicPrompts||e.dynamicPrompts));for(const e of t){let t=function(e,t,s,n){return e\\\\u0026\\\\u0026(t[s]=e),t.map((e=\\\\u003ei(e,n))).filter((e=\\\\u003e\\\\\\\"\\\\\\\"!==e)).join(\\\\\\\"\\\\\\\")},i=function(e,t){if(e=s(e),n(e,t))return e+\\\\\\\"; \\\\\\\";let i=a(e,t);return 1===i.length||2===i.length?i[0]:n(o(e),t)?o(e)+\\\\\\\"; \\\\\\\":\\\\\\\"\\\\\\\"},s=function(e){return e.replace(/(\\\\\\\\n|;| )/g,\\\\\\\"\\\\\\\")},n=function(e,t){return t.includes(e+\\\\\\\"; \\\\\\\")},a=function(e,t){return t.filter((t=\\\\u003et.toLowerCase().includes(e.toLowerCase())))},o=function(e){return Number(e)?Number(e).toFixed(3):[\\\\\\\"0\\\\\\\",\\\\\\\"0.\\\\\\\",\\\\\\\"0.0\\\\\\\",\\\\\\\"0.00\\\\\\\",\\\\\\\"00\\\\\\\"].includes(e)?\\\\\\\"0.000\\\\\\\":e};const l=function(){const i=e.name[0]+\\\\\\\"_axis\\\\\\\";let s=(null==_s?void 0:_s[i])||[];if(0===s.length)return;const n=e.inputEl.value,a=e.inputEl.selectionStart;let o=n.split(\\\\\\\"; \\\\\\\");const l=n.substring(0,a).split(\\\\\\\"; \\\\\\\").length-1,r=o[l].replace(/\\\\\\\\n/g,\\\\\\\"\\\\\\\").toLowerCase(),d=s.filter((e=\\\\u003ee.toLowerCase().includes(r))).map((e=\\\\u003ee.replace(/; /g,\\\\\\\"\\\\\\\")));if(d.length\\\\u003e0)vs(e.inputEl,d,(i=\\\\u003e{const n=t(i,o,l,s);e.inputEl.value=n}));else{gs();const i=t(null,o,l,s);e.inputEl.value=i}};e.inputEl.removeEventListener(\\\\\\\"input\\\\\\\",l),e.inputEl.addEventListener(\\\\\\\"input\\\\\\\",l),e.inputEl.removeEventListener(\\\\\\\"mouseup\\\\\\\",l),e.inputEl.addEventListener(\\\\\\\"mouseup\\\\\\\",l)}}}(e))}}),S(\\\\\\\"domWidget\\\\\\\",(()=\\\\u003e{const e=P(new Map);return{widgetStates:e,registerWidget:t=\\\\u003e{e.value.set(t.id,{widget:G(t),visible:!0,readonly:!1,zIndex:0,pos:[0,0],size:[0,0]})},unregisterWidget:t=\\\\u003e{e.value.delete(t)}}}));const xs={class:\\\\\\\"w-full flex justify-between items-center\\\\\\\"},Ls={class:\\\\\\\"flex justify-start items-center flex-1 gap-2\\\\\\\"},ks={class:\\\\\\\"flex justify-end items-center tool ml-2 position-relative\\\\\\\"},Es={__name:\\\\\\\"promptAwait\\\\\\\",props:[\\\\\\\"widget\\\\\\\"],setup(e){const t=P({select:\\\\\\\"now\\\\\\\",unlock:!0,last_seed:0,seed:0}),i=P(!1),s=P(!1);let n=null;const a=()=\\\\u003e{if(s.value)return;const t=window.SpeechRecognition||window.webkitSpeechRecognition;t\\\\u0026\\\\u0026(s.value=!0,n||(n=new t,n.interimResults=!1),n.start(),n.addEventListener(\\\\\\\"result\\\\\\\",(t=\\\\u003e{var i;const s=t.results[0][0].transcript;let n=null==(i=e.widget.value)?void 0:i.node,a=wt(n,\\\\\\\"prompt\\\\\\\");a\\\\u0026\\\\u0026(a.value+=s)})),n.addEventListener(\\\\\\\"end\\\\\\\",(()=\\\\u003e{s.value=!1,n=null})),n.addEventListener(\\\\\\\"error\\\\\\\",(e=\\\\u003e{})))},o=()=\\\\u003e{s.value\\\\u0026\\\\u0026n\\\\u0026\\\\u0026n.stop()};z((t=\\\\u003ee.widget.value),(e=\\\\u003e{t.value=\\\\\\\"object\\\\\\\"==typeof e?e:JSON.parse(e)}),{immediate:!0}),V((s=\\\\u003e{ge.addEventListener(\\\\\\\"easyuse_prompt_await\\\\\\\",(t=\\\\u003e{var s,n,a,o,l,d;const u=t.detail.id,c=-1!==(null==(s=e.widget.value)?void 0:s.node.id).toString().indexOf(\\\\\\\":\\\\\\\")?(null==(n=e.widget.value)?void 0:n.node.id).toString().split(\\\\\\\":\\\\\\\")[0]:null==(a=e.widget.value)?void 0:a.node.id;parseInt(u)===parseInt(c)\\\\u0026\\\\u0026(i.value=!0,r(\\\\\\\"last_seed\\\\\\\",(null==(o=e.widget.value.value)?void 0:o.seed)||0),(null==(l=e.widget.value.value)?void 0:l.unlock)?r(\\\\\\\"seed\\\\\\\",Math.floor(Math.random()*Oe)):r(\\\\\\\"seed\\\\\\\",(null==(d=e.widget.value.value)?void 0:d.last_seed)||0))}));const n=ge.interrupt;ge.interrupt=function(){!i.value\\\\u0026\\\\u0026fe.runningNodeId||(l(JSON.stringify({result:-1,prompt:\\\\\\\"\\\\\\\",select:\\\\\\\"now\\\\\\\"}),!0),i.value=!1),n.apply(this,arguments)},e.widget.serializeValue=async({node:e},i)=\\\\u003e{try{let s=JSON.stringify(t.value);return(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[i]=s,e.widgets[i].value=s),s}catch(s){return[]}}}));const l=(s,n)=\\\\u003e{var a,o,l,d,u,c,A,p,h;if(!i.value\\\\u0026\\\\u0026!n)return;const m=new FormData,f=null==(a=e.widget.value)?void 0:a.node,g=-1!==(null==(o=e.widget.value)?void 0:o.node.id).toString().indexOf(\\\\\\\":\\\\\\\")?(null==(l=e.widget.value)?void 0:l.node.id).toString().split(\\\\\\\":\\\\\\\")[0]:null==(d=e.widget.value)?void 0:d.node.id,v=(null==(u=wt(f,\\\\\\\"prompt\\\\\\\"))?void 0:u.value)||\\\\\\\"\\\\\\\";let y=null==(c=t.value)?void 0:c.select,w=(null==(A=t.value)?void 0:A.last_seed)||0,b=(null==(p=t.value)?void 0:p.seed)||0,_=(null==(h=t.value)?void 0:h.unlock)||!1;m.append(\\\\\\\"message\\\\\\\",JSON.stringify({result:s,prompt:v,select:y,last_seed:w,seed:b,unlock:_})),m.append(\\\\\\\"id\\\\\\\",g),i.value=!1,ge.fetchApi(\\\\\\\"/easyuse/message_callback\\\\\\\",{method:\\\\\\\"POST\\\\\\\",body:m}).then((e=\\\\u003e{r(\\\\\\\"select\\\\\\\",\\\\\\\"now\\\\\\\")}))},r=(e,i)=\\\\u003e{t.value.value||(t.value={}),t.value[e]=i};return(e,n)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",xs,[W(\\\\\\\"div\\\\\\\",Ls,[F(X(L),{disabled:!Boolean(i.value),label:X(Ne)(\\\\\\\"Continue\\\\\\\"),size:\\\\\\\"small\\\\\\\",style:{height:\\\\\\\"20px\\\\\\\",\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"white-space\\\\\\\":\\\\\\\"nowrap\\\\\\\",padding:\\\\\\\"0 8px\\\\\\\"},onClick:n[0]||(n[0]=e=\\\\u003el(1))},null,8,[\\\\\\\"disabled\\\\\\\",\\\\\\\"label\\\\\\\"]),F(X(L),{disabled:!Boolean(i.value),label:X(Ne)(\\\\\\\"Stop\\\\\\\"),severity:\\\\\\\"danger\\\\\\\",size:\\\\\\\"small\\\\\\\",style:{height:\\\\\\\"20px\\\\\\\",\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"white-space\\\\\\\":\\\\\\\"nowrap\\\\\\\",padding:\\\\\\\"0 8px\\\\\\\"},onClick:n[1]||(n[1]=e=\\\\u003el(-1))},null,8,[\\\\\\\"disabled\\\\\\\",\\\\\\\"label\\\\\\\"]),F(X(k),{class:\\\\\\\"easyuse-prompt-await-select\\\\\\\",modelValue:t.value.select,\\\\\\\"onUpdate:modelValue\\\\\\\":n[2]||(n[2]=e=\\\\u003et.value.select=e),options:[{name:X(Ne)(\\\\\\\"now\\\\\\\"),value:\\\\\\\"now\\\\\\\"},{name:X(Ne)(\\\\\\\"prev\\\\\\\"),value:\\\\\\\"prev\\\\\\\"}],optionLabel:\\\\\\\"name\\\\\\\",optionValue:\\\\\\\"value\\\\\\\",size:\\\\\\\"small\\\\\\\",style:{flex:\\\\\\\"1\\\\\\\",height:\\\\\\\"24px\\\\\\\",\\\\\\\"line-height\\\\\\\":\\\\\\\"10px\\\\\\\",\\\\\\\"min-width\\\\\\\":\\\\\\\"70px\\\\\\\",\\\\\\\"max-width\\\\\\\":\\\\\\\"100px\\\\\\\"}},null,8,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"options\\\\\\\"])]),W(\\\\\\\"div\\\\\\\",ks,[Z(F(X(L),{style:{\\\\\\\"--p-button-sm-font-size\\\\\\\":\\\\\\\"11px\\\\\\\"},size:\\\\\\\"small\\\\\\\",icon:t.value.unlock?\\\\\\\"pi pi-unlock\\\\\\\":\\\\\\\"pi pi-lock\\\\\\\",severity:t.value.unlock?\\\\\\\"contrast\\\\\\\":\\\\\\\"warn\\\\\\\",variant:\\\\\\\"text\\\\\\\",onClick:n[3]||(n[3]=e=\\\\u003et.value.unlock=!t.value.value.unlock),rounded:\\\\\\\"\\\\\\\"},null,8,[\\\\\\\"icon\\\\\\\",\\\\\\\"severity\\\\\\\"]),[[X(E),{value:t.value.unlock?\\\\\\\"\\u968f\\u673a\\u79cd\\u5b50\\\\\\\":\\\\\\\"\\u9501\\u5b9a\\u79cd\\u5b50\\u503c\\\\\\\",class:\\\\\\\"jm-tooltip\\\\\\\"},\\\\\\\"top\\\\\\\"]]),s.value?Z((j(),H(X(L),{key:0,size:\\\\\\\"small\\\\\\\",icon:\\\\\\\"pi pi-pause-circle\\\\\\\",severity:\\\\\\\"info\\\\\\\",variant:\\\\\\\"outlined\\\\\\\",onClick:o,rounded:\\\\\\\"\\\\\\\"},null,512)),[[X(E),{value:X(Ne)(\\\\\\\"Stop Recording\\\\\\\"),class:\\\\\\\"jm-tooltip\\\\\\\"},\\\\\\\"top\\\\\\\"]]):Z((j(),H(X(L),{key:1,size:\\\\\\\"small\\\\\\\",icon:\\\\\\\"pi pi-microphone\\\\\\\",severity:\\\\\\\"contrast\\\\\\\",variant:\\\\\\\"text\\\\\\\",onClick:a,rounded:\\\\\\\"\\\\\\\"},null,512)),[[X(E),{value:X(Ne)(\\\\\\\"Voice input\\\\\\\"),class:\\\\\\\"jm-tooltip\\\\\\\"},\\\\\\\"top\\\\\\\"]])])]))}},Ns={class:\\\\\\\"easyuse-multiselect\\\\\\\"},Cs={__name:\\\\\\\"multiSelectWidget\\\\\\\",props:[\\\\\\\"widget\\\\\\\"],setup(e){var t,i,s,n;const a=Object.keys(De).reduce(((e,t)=\\\\u003e(Array.isArray(De[t])?e[t]=De[t].map(((e,t)=\\\\u003e({label:e,value:t}))):\\\\\\\"object\\\\\\\"==typeof De[t]?e[t]=Object.entries(De[t]).map((([e,t])=\\\\u003e({label:e,value:t}))):e[t]=[],e)),{}),o=P([]),l=e.widget.inputSpec,r=(null==(t=null==l?void 0:l.multi_select)?void 0:t.max_selected_labels)??3,d=(null==l?void 0:l.optionLabel)??\\\\\\\"label\\\\\\\",u=(null==l?void 0:l.optionValue)??\\\\\\\"value\\\\\\\",c=(null==(i=null==l?void 0:l.multi_select)?void 0:i.placeholder)?Ne(null==(s=l.multi_select)?void 0:s.placeholder):Ne(\\\\\\\"select items\\\\\\\"),A=(null==(n=null==l?void 0:l.multi_select)?void 0:n.chip)?\\\\\\\"chip\\\\\\\":\\\\\\\"comma\\\\\\\",p=P((null==l?void 0:l.options)??[]),h=e=\\\\u003e{e\\\\u0026\\\\u0026a[e]?p.value=a[e].map(((e,t)=\\\\u003e({label:Ne(e.label),value:e.value}))):p.value=[]};return z((t=\\\\u003ee.widget.value),(e=\\\\u003e{o.value=e.split(\\\\\\\",\\\\\\\").map((e=\\\\u003ee\\\\u0026\\\\u0026parseInt(e.trim())))})),V((t=\\\\u003e{setTimeout((t=\\\\u003e{const i=wt(e.widget.node,\\\\\\\"method\\\\\\\");h(i.value),i.callback=e=\\\\u003e{o.value=[],h(e)}}),1),e.widget.serializeValue=async({node:e},t)=\\\\u003e{try{let i=o.value||[];return i=i.join(\\\\\\\",\\\\\\\"),(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[t]=i,e.widgets[t].value=i),i}catch(i){return[]}}})),(e,t)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",Ns,[F(X(N),{modelValue:o.value,\\\\\\\"onUpdate:modelValue\\\\\\\":t[0]||(t[0]=e=\\\\u003eo.value=e),options:p.value,optionLabel:X(d),optionValue:X(u),appendTo:\\\\\\\"self\\\\\\\",filter:\\\\\\\"\\\\\\\",placeholder:X(c),\\\\\\\"max-selected-labels\\\\\\\":X(r),display:X(A),class:\\\\\\\"w-full easyuse-multiselect-container\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"options\\\\\\\",\\\\\\\"optionLabel\\\\\\\",\\\\\\\"optionValue\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"max-selected-labels\\\\\\\",\\\\\\\"display\\\\\\\"])]))}},Is={class:\\\\\\\"flex flex-col easyuse-multiangle-widget\\\\\\\"},Ts={class:\\\\\\\"easyuse-multiangle-tabs flex items-center gap-1 px-1 relative z-10 overflow-x-auto no-scrollbar w-full min-w-0\\\\\\\"},Os=[\\\\\\\"onClick\\\\\\\"],Ms={class:\\\\\\\"tab-number\\\\\\\"},Ds=[\\\\\\\"onClick\\\\\\\"],Rs=[\\\\\\\"title\\\\\\\"],Ps={class:\\\\\\\"easyuse-multiangle-content flex flex-col gap-2\\\\\\\"},Gs=[\\\\\\\"title\\\\\\\"],zs={class:\\\\\\\"settings-item flex items-center\\\\\\\"},Vs={for:\\\\\\\"add-angle-prompt\\\\\\\",class:\\\\\\\"whitespace-nowrap\\\\\\\"},js={class:\\\\\\\"settings-item flex items-center\\\\\\\"},Us={for:\\\\\\\"hollow-mode\\\\\\\",class:\\\\\\\"whitespace-nowrap\\\\\\\"},Ws={class:\\\\\\\"settings-item flex items-center\\\\\\\"},Fs={for:\\\\\\\"rotate-3d-mode\\\\\\\",class:\\\\\\\"whitespace-nowrap\\\\\\\"},Xs=[\\\\\\\"title\\\\\\\"],Zs=[\\\\\\\"onDblclick\\\\\\\"],Hs={key:0},qs={key:0,style:{filter:\\\\\\\"grayscale(10)\\\\\\\"}},Ys={key:0,class:\\\\\\\"absolute inset-0 flex flex-col items-center justify-center\\\\\\\",style:{\\\\\\\"pointer-events\\\\\\\":\\\\\\\"none\\\\\\\"}},Ks={key:1,class:\\\\\\\"easyuse-cube-face-label\\\\\\\"},Js={class:\\\\\\\"flex flex-col gap-2 px-2 w-full easyuse-mulitangle-slider\\\\\\\"},Bs={class:\\\\\\\"flex flex-col gap-2 w-full\\\\\\\"},Qs={class:\\\\\\\"flex justify-between items-center\\\\\\\"},$s={class:\\\\\\\"font-semibold opacity-80\\\\\\\"},en={class:\\\\\\\"font-mono text-primary font-bold\\\\\\\"},tn={class:\\\\\\\"flex flex-col gap-2 w-full\\\\\\\"},sn={class:\\\\\\\"flex justify-between items-center\\\\\\\"},nn={class:\\\\\\\"font-semibold opacity-80\\\\\\\"},an={class:\\\\\\\"font-mono text-primary font-bold\\\\\\\"},on={class:\\\\\\\"flex flex-col gap-2 w-full\\\\\\\"},ln={class:\\\\\\\"flex justify-between items-center\\\\\\\"},rn={class:\\\\\\\"font-semibold opacity-80\\\\\\\"},dn={class:\\\\\\\"font-mono text-primary font-bold\\\\\\\"},un={__name:\\\\\\\"multiAngleWidget\\\\\\\",props:[\\\\\\\"widget\\\\\\\"],emits:[\\\\\\\"update:value\\\\\\\",\\\\\\\"change\\\\\\\"],setup(e,{emit:t}){const i=P([{rotate:0,vertical:0,zoom:5,add_angle_prompt:!1}]),s=P(0),n=i.value[s.value]||{rotate:0,vertical:0,zoom:5,add_angle_prompt:!1},a=P(n.rotate??0),o=P(n.vertical??0),l=P(n.zoom??5),r=P(n.add_angle_prompt??!1),d=P(xe(\\\\\\\"EasyUse.MultiAngle.HollowMode\\\\\\\")||!1),u=P(xe(\\\\\\\"EasyUse.MultiAngle.3DRotate\\\\\\\")||!1),c=P(!1),A=()=\\\\u003e{c.value=!c.value},p=()=\\\\u003e{c.value\\\\u0026\\\\u0026(c.value=!1)};V((()=\\\\u003e{window.addEventListener(\\\\\\\"click\\\\\\\",p)})),q((()=\\\\u003e{window.removeEventListener(\\\\\\\"click\\\\\\\",p),L()})),z((t=\\\\u003ee.widget.value),(e=\\\\u003e{Array.isArray(e)?i.value=e:i.value=JSON.parse(e)}),{immediate:!0}),z((()=\\\\u003e{var e;return null==(e=i.value)?void 0:e[s.value]}),(e=\\\\u003e{if(e){let t=xe(\\\\\\\"EasyUse.MultiAngle.AddAnglePrompt\\\\\\\")??!1;void 0!==e.rotate\\\\u0026\\\\u0026(a.value=e.rotate),void 0!==e.vertical\\\\u0026\\\\u0026(o.value=e.vertical),void 0!==e.zoom\\\\u0026\\\\u0026(l.value=e.zoom),null!=r\\\\u0026\\\\u0026(r.value=t)}}),{deep:!0}),z(d,(e=\\\\u003e{ke(\\\\\\\"EasyUse.MultiAngle.HollowMode\\\\\\\",e)})),z(u,(e=\\\\u003e{ke(\\\\\\\"EasyUse.MultiAngle.InvertRotate\\\\\\\",e)})),z(r,(e=\\\\u003e{ke(\\\\\\\"EasyUse.MultiAngle.AddAnglePrompt\\\\\\\",e),i.value.forEach((t=\\\\u003e{t.add_angle_prompt=e}))}));const h=e=\\\\u003e{s.value=e;const t=i.value[e];t\\\\u0026\\\\u0026(a.value=t.rotate??0,o.value=t.vertical??0,l.value=t.zoom??5,r.value=t.add_angle_prompt??!0)},m=()=\\\\u003e{i.value[s.value];const e={rotate:a.value,vertical:o.value,zoom:l.value,add_angle_prompt:r.value};i.value.push(JSON.parse(JSON.stringify(e))),s.value=i.value.length-1,h(s.value)},f=(e=!1)=\\\\u003e{e\\\\u0026\\\\u0026(c.value=!1);const t={rotate:a.value,vertical:o.value,zoom:l.value,add_angle_prompt:r.value};Array.isArray(i.value)||(i.value=[]),i.value[s.value]=JSON.parse(JSON.stringify(t))},g=()=\\\\u003e{a.value=0,o.value=0,l.value=5,f()},v=Y((()=\\\\u003e[{name:\\\\\\\"front\\\\\\\",text:\\\\\\\"\\\\\\\",style:{transform:\\\\\\\"translateZ(40px)\\\\\\\"}},{name:\\\\\\\"back\\\\\\\",text:Ne(\\\\\\\"B\\\\\\\"),style:{transform:\\\\\\\"rotateY(180deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"up\\\\\\\",text:Ne(\\\\\\\"U\\\\\\\"),style:{transform:\\\\\\\"rotateX(90deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"down\\\\\\\",text:Ne(\\\\\\\"D\\\\\\\"),style:{transform:\\\\\\\"rotateX(-90deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"left\\\\\\\",text:Ne(\\\\\\\"L\\\\\\\"),style:{transform:\\\\\\\"rotateY(-90deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"right\\\\\\\",text:Ne(\\\\\\\"R\\\\\\\"),style:{transform:\\\\\\\"rotateY(90deg) translateZ(40px)\\\\\\\"}},{name:\\\\\\\"center\\\\\\\",style:{transform:\\\\\\\"translateZ(0.1px)\\\\\\\",border:\\\\\\\"none\\\\\\\",background:\\\\\\\"transparent\\\\\\\",backfaceVisibility:\\\\\\\"hidden\\\\\\\"}},{name:\\\\\\\"center-back\\\\\\\",style:{transform:\\\\\\\"rotateY(180deg) translateZ(0.1px)\\\\\\\",border:\\\\\\\"none\\\\\\\",backfaceVisibility:\\\\\\\"hidden\\\\\\\",background:\\\\\\\"transparent\\\\\\\"}}])),y=P(!1),w={x:0,y:0},b={rotate:0,vertical:0},_=e=\\\\u003e{const t=e.deltaY;let i=l.value-.05*t;i=Math.max(0,Math.min(10,i)),l.value=Math.round(10*i)/10,f()},S=e=\\\\u003e{y.value=!0,w.x=e.clientX??e.touches[0].clientX,w.y=e.clientY??e.touches[0].clientY,b.rotate=a.value,b.vertical=o.value,window.addEventListener(\\\\\\\"mousemove\\\\\\\",x),window.addEventListener(\\\\\\\"mouseup\\\\\\\",L),window.addEventListener(\\\\\\\"touchmove\\\\\\\",x),window.addEventListener(\\\\\\\"touchend\\\\\\\",L)},x=e=\\\\u003e{if(!y.value)return;const t=e.clientX??e.touches[0].clientX,i=e.clientY??e.touches[0].clientY;let s=t-w.x,n=i-w.y;u.value\\\\u0026\\\\u0026(s=-s,n=-n);let l=b.rotate+.5*s,r=b.vertical+.5*n;l=(l%360+360)%360,r=Math.max(-90,Math.min(90,r)),a.value=Math.round(l),o.value=Math.round(r),f()},L=()=\\\\u003e{y.value=!1,window.removeEventListener(\\\\\\\"mousemove\\\\\\\",x),window.removeEventListener(\\\\\\\"mouseup\\\\\\\",L),window.removeEventListener(\\\\\\\"touchmove\\\\\\\",x),window.removeEventListener(\\\\\\\"touchend\\\\\\\",L)},k=Y((()=\\\\u003e({transform:`scale(${1+.1*l.value}) rotateX(${-o.value}deg) rotateY(${-a.value}deg)`})));return V((t=\\\\u003e{d.value=xe(\\\\\\\"EasyUse.MultiAngle.HollowMode\\\\\\\"),u.value=xe(\\\\\\\"EasyUse.MultiAngle.InvertRotate\\\\\\\"),r.value=xe(\\\\\\\"EasyUse.MultiAngle.AddAnglePrompt\\\\\\\")||!1,e.widget.serializeValue=async({node:e},t)=\\\\u003e{try{let s=JSON.stringify(i.value);return(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[t]=s,e.widgets[t].value=s),s}catch(s){return[]}}})),(e,t)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",Is,[W(\\\\\\\"div\\\\\\\",Ts,[(j(!0),U(K,null,J(i.value,((e,t)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",{key:t,class:B([\\\\\\\"tab-item whitespace-nowrap flex-shrink-0\\\\\\\",{active:s.value===t}]),onClick:e=\\\\u003eh(t)},[W(\\\\\\\"span\\\\\\\",Ms,ee(t+1),1),i.value.length\\\\u003e1\\\\u0026\\\\u00260!==t?(j(),U(\\\\\\\"i\\\\\\\",{key:0,class:\\\\\\\"pi pi-times tab-close\\\\\\\",onClick:Q((e=\\\\u003e(e=\\\\u003e{i.value.length\\\\u003c=1||(i.value.splice(e,1),s.value\\\\u003e=i.value.length\\\\u0026\\\\u0026(s.value=i.value.length-1),h(s.value))})(t)),[\\\\\\\"stop\\\\\\\"])},null,8,Ds)):te(\\\\\\\"\\\\\\\",!0)],10,Os)))),128)),W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tab-add-btn flex-shrink-0\\\\\\\",onClick:m,title:X(Ne)(\\\\\\\"Add New Tab\\\\\\\")},t[10]||(t[10]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-plus\\\\\\\"},null,-1)]),8,Rs)]),W(\\\\\\\"div\\\\\\\",Ps,[W(\\\\\\\"div\\\\\\\",{class:B([\\\\\\\"easyuse-multiangle-cube w-full flex items-center justify-center bg-black overflow-hidden select-none\\\\\\\",{\\\\\\\"is-hollow\\\\\\\":d.value}]),onMousedown:S,onTouchstart:S,onWheel:Q(_,[\\\\\\\"prevent\\\\\\\"])},[W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"settings-icon\\\\\\\",onMousedown:t[5]||(t[5]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"])),onClick:Q(A,[\\\\\\\"stop\\\\\\\"]),title:X(Ne)(\\\\\\\"Settings\\\\\\\")},[t[11]||(t[11]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-cog\\\\\\\"},null,-1)),c.value?(j(),U(\\\\\\\"div\\\\\\\",{key:0,class:\\\\\\\"settings-dropdown\\\\\\\",onClick:t[4]||(t[4]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"]))},[W(\\\\\\\"div\\\\\\\",zs,[Z(W(\\\\\\\"input\\\\\\\",{type:\\\\\\\"checkbox\\\\\\\",\\\\\\\"onUpdate:modelValue\\\\\\\":t[0]||(t[0]=e=\\\\u003er.value=e),onChange:t[1]||(t[1]=e=\\\\u003ef(!1)),id:\\\\\\\"add-angle-prompt\\\\\\\"},null,544),[[$,r.value]]),W(\\\\\\\"label\\\\\\\",Vs,ee(X(Ne)(\\\\\\\"Angle Prompt\\\\\\\")),1)]),W(\\\\\\\"div\\\\\\\",js,[Z(W(\\\\\\\"input\\\\\\\",{type:\\\\\\\"checkbox\\\\\\\",\\\\\\\"onUpdate:modelValue\\\\\\\":t[2]||(t[2]=e=\\\\u003ed.value=e),id:\\\\\\\"hollow-mode\\\\\\\"},null,512),[[$,d.value]]),W(\\\\\\\"label\\\\\\\",Us,ee(X(Ne)(\\\\\\\"Hollow\\\\\\\")),1)]),W(\\\\\\\"div\\\\\\\",Ws,[Z(W(\\\\\\\"input\\\\\\\",{type:\\\\\\\"checkbox\\\\\\\",\\\\\\\"onUpdate:modelValue\\\\\\\":t[3]||(t[3]=e=\\\\u003eu.value=e),id:\\\\\\\"rotate-3d-mode\\\\\\\"},null,512),[[$,u.value]]),W(\\\\\\\"label\\\\\\\",Fs,ee(X(Ne)(\\\\\\\"Invert Rotate Mode\\\\\\\")),1)])])):te(\\\\\\\"\\\\\\\",!0)],40,Gs),W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"reset-icon\\\\\\\",onMousedown:t[6]||(t[6]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"])),onClick:Q(g,[\\\\\\\"stop\\\\\\\"]),title:X(Ne)(\\\\\\\"Reset\\\\\\\")},t[12]||(t[12]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-refresh\\\\\\\"},null,-1)]),40,Xs),W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"relative transition-transform duration-75 ease-out\\\\\\\",style:ie([{\\\\\\\"transform-style\\\\\\\":\\\\\\\"preserve-3d\\\\\\\",width:\\\\\\\"80px\\\\\\\",height:\\\\\\\"80px\\\\\\\"},k.value])},[(j(!0),U(K,null,J(v.value,(e=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",{key:e.name,class:\\\\\\\"absolute flex items-center justify-center font-bold text-xs easyuse-multiangle-cube-face\\\\\\\",style:ie([{width:\\\\\\\"80px\\\\\\\",height:\\\\\\\"80px\\\\\\\",\\\\\\\"backface-visibility\\\\\\\":\\\\\\\"visible\\\\\\\"},e.style]),onDblclick:Q((t=\\\\u003e(e=\\\\u003e{switch(e){case\\\\\\\"front\\\\\\\":a.value=0;break;case\\\\\\\"back\\\\\\\":a.value=180;break;case\\\\\\\"left\\\\\\\":a.value=270;break;case\\\\\\\"right\\\\\\\":a.value=90;break;case\\\\\\\"up\\\\\\\":o.value=90;break;case\\\\\\\"down\\\\\\\":o.value=-90}f()})(e.name)),[\\\\\\\"stop\\\\\\\"])},[\\\\\\\"center\\\\\\\"===e.name?(j(),U(K,{key:0},[d.value?(j(),U(\\\\\\\"div\\\\\\\",Hs,t[13]||(t[13]=[W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"20px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\"}},\\\\\\\"\\ud83e\\udd13\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc55\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc56\\\\\\\",-1)]))):te(\\\\\\\"\\\\\\\",!0)],64)):\\\\\\\"center-back\\\\\\\"===e.name?(j(),U(K,{key:1},[d.value?(j(),U(\\\\\\\"div\\\\\\\",qs,t[14]||(t[14]=[W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"20px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\"}},\\\\\\\"\\ud83c\\udf15\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc55\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc56\\\\\\\",-1)]))):te(\\\\\\\"\\\\\\\",!0)],64)):(j(),U(K,{key:2},[\\\\\\\"front\\\\\\\"!==e.name||d.value?te(\\\\\\\"\\\\\\\",!0):(j(),U(\\\\\\\"div\\\\\\\",Ys,t[15]||(t[15]=[W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"20px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\"}},\\\\\\\"\\ud83e\\udd13\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc55\\\\\\\",-1),W(\\\\\\\"div\\\\\\\",{style:{\\\\\\\"font-size\\\\\\\":\\\\\\\"12px\\\\\\\",\\\\\\\"text-align\\\\\\\":\\\\\\\"center\\\\\\\",\\\\\\\"margin-top\\\\\\\":\\\\\\\"-6px\\\\\\\"}},\\\\\\\"\\ud83d\\udc56\\\\\\\",-1)]))),e.text?(j(),U(\\\\\\\"div\\\\\\\",Ks,ee(e.text),1)):te(\\\\\\\"\\\\\\\",!0)],64))],44,Zs)))),128))],4)],34),W(\\\\\\\"div\\\\\\\",Js,[W(\\\\\\\"div\\\\\\\",Bs,[W(\\\\\\\"div\\\\\\\",Qs,[W(\\\\\\\"span\\\\\\\",$s,ee(X(Ne)(\\\\\\\"Rotate\\\\\\\")),1),W(\\\\\\\"span\\\\\\\",en,ee(a.value)+\\\\\\\"\\u00b0\\\\\\\",1)]),F(X(C),{modelValue:a.value,\\\\\\\"onUpdate:modelValue\\\\\\\":[t[7]||(t[7]=e=\\\\u003ea.value=e),f],min:0,max:360,class:\\\\\\\"w-full\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\"])]),W(\\\\\\\"div\\\\\\\",tn,[W(\\\\\\\"div\\\\\\\",sn,[W(\\\\\\\"span\\\\\\\",nn,ee(X(Ne)(\\\\\\\"Vertical\\\\\\\")),1),W(\\\\\\\"span\\\\\\\",an,ee(o.value)+\\\\\\\"\\u00b0\\\\\\\",1)]),F(X(C),{modelValue:o.value,\\\\\\\"onUpdate:modelValue\\\\\\\":[t[8]||(t[8]=e=\\\\u003eo.value=e),f],min:-90,max:90,class:\\\\\\\"w-full\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\"])]),W(\\\\\\\"div\\\\\\\",on,[W(\\\\\\\"div\\\\\\\",ln,[W(\\\\\\\"span\\\\\\\",rn,ee(X(Ne)(\\\\\\\"Zoom\\\\\\\")),1),W(\\\\\\\"span\\\\\\\",dn,ee(l.value),1)]),F(X(C),{modelValue:l.value,\\\\\\\"onUpdate:modelValue\\\\\\\":[t[9]||(t[9]=e=\\\\u003el.value=e),f],min:0,max:10,step:.1,class:\\\\\\\"w-full\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\"])])])])]))}},cn=(e,t)=\\\\u003e{const i=e.__vccOpts||e;for(const[s,n]of t)i[s]=n;return i},An={class:\\\\\\\"tew-toolbar\\\\\\\"},pn={class:\\\\\\\"tew-mode-tabs\\\\\\\"},hn={key:0,class:\\\\\\\"tew-actions\\\\\\\"},mn={key:1,class:\\\\\\\"tew-actions\\\\\\\"},fn={key:0,class:\\\\\\\"tew-table-wrapper\\\\\\\"},gn={class:\\\\\\\"tew-table\\\\\\\"},vn={class:\\\\\\\"tew-cell-inner\\\\\\\"},yn=[\\\\\\\"value\\\\\\\",\\\\\\\"onInput\\\\\\\",\\\\\\\"onKeydown\\\\\\\"],wn=[\\\\\\\"onClick\\\\\\\"],bn={class:\\\\\\\"tew-row-handle\\\\\\\"},_n=[\\\\\\\"onClick\\\\\\\"],Sn=[\\\\\\\"value\\\\\\\",\\\\\\\"onInput\\\\\\\",\\\\\\\"onKeydown\\\\\\\"],xn={key:1,class:\\\\\\\"tew-md-wrapper\\\\\\\"},Ln=cn({__name:\\\\\\\"tableEditorWidget\\\\\\\",props:[\\\\\\\"widget\\\\\\\",\\\\\\\"node\\\\\\\"],setup(e){const t=P(\\\\\\\"table\\\\\\\"),i=se({headers:[\\\\\\\"\\u52171\\\\\\\",\\\\\\\"\\u52172\\\\\\\",\\\\\\\"\\u52173\\\\\\\"],rows:[[\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\"],[\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\"]]}),s=P(\\\\\\\"\\\\\\\");function n(e){const t=e.headers.map(((t,i)=\\\\u003e{let s=String(t).length;for(const n of e.rows)s=Math.max(s,String(n[i]??\\\\\\\"\\\\\\\").replace(/\\\\\\\\n/g,\\\\\\\"\\\\u003cbr\\\\u003e\\\\\\\").length);return Math.max(s,3)})),i=(e,t)=\\\\u003eString(e).padEnd(t,\\\\\\\" \\\\\\\");return[\\\\\\\"| \\\\\\\"+e.headers.map(((e,s)=\\\\u003ei(e,t[s]))).join(\\\\\\\" | \\\\\\\")+\\\\\\\" |\\\\\\\",\\\\\\\"| \\\\\\\"+t.map((e=\\\\u003e\\\\\\\"-\\\\\\\".repeat(e))).join(\\\\\\\" | \\\\\\\")+\\\\\\\" |\\\\\\\",...e.rows.map((s=\\\\u003e\\\\\\\"| \\\\\\\"+e.headers.map(((e,n)=\\\\u003ei(String(s[n]??\\\\\\\"\\\\\\\").replace(/\\\\\\\\n/g,\\\\\\\"\\\\u003cbr\\\\u003e\\\\\\\"),t[n]))).join(\\\\\\\" | \\\\\\\")+\\\\\\\" |\\\\\\\"))].join(\\\\\\\"\\\\\\\\n\\\\\\\")}function a(e){const t=e.split(\\\\\\\"\\\\\\\\n\\\\\\\").map((e=\\\\u003ee.trim())).filter(Boolean);if(t.length\\\\u003c2)return null;const i=e=\\\\u003ee.replace(/^\\\\\\\\||\\\\\\\\|$/g,\\\\\\\"\\\\\\\").split(\\\\\\\"|\\\\\\\").map((e=\\\\u003ee.trim().replace(/\\\\u003cbr\\\\\\\\s*\\\\\\\\/?\\\\u003e/gi,\\\\\\\"\\\\\\\\n\\\\\\\")));let s=-1;for(let r=0;r\\\\u003ct.length-1;r++)if(n=t[r+1],/^\\\\\\\\|?[\\\\\\\\s\\\\\\\\-|:]+\\\\\\\\|?$/.test(n)){s=r;break}var n;if(-1===s)return null;const a=i(t[s]),o=t.slice(s+2).map(i),l=a.length;return{headers:a,rows:o.map((e=\\\\u003e{for(;e.length\\\\u003cl;)e.push(\\\\\\\"\\\\\\\");return e.slice(0,l)}))}}function o(e){if(e!==t.value){if(\\\\\\\"markdown\\\\\\\"===e)s.value=n(i);else{const e=a(s.value);e\\\\u0026\\\\u0026(i.headers=e.headers,i.rows=e.rows)}t.value=e,y(),\\\\\\\"table\\\\\\\"===e\\\\u0026\\\\u0026oe((()=\\\\u003ev()))}}function l(e){let t=0;for(const i of String(e||\\\\\\\"\\\\\\\").replace(/\\\\\\\\*\\\\\\\\*/g,\\\\\\\"\\\\\\\"))t+=/[\\\\\\\\u4e00-\\\\\\\\u9fff\\\\\\\\u3000-\\\\\\\\u303f\\\\\\\\uff00-\\\\\\\\uffef]/.test(i)?14:8;return t}const r=Y((()=\\\\u003e{const e=Math.max(i.headers.length,...i.rows.map((e=\\\\u003ee.length)));return Array.from({length:e},((e,t)=\\\\u003e{let s=120;for(const n of i.rows){const e=String(n[t]??\\\\\\\"\\\\\\\");for(const t of e.split(\\\\\\\"\\\\\\\\n\\\\\\\"))s=Math.max(s,l(t)+28)}return Math.min(s,200)+\\\\\\\"px\\\\\\\"}))}));function d(e){if(!e)return;const t=Array.from(e.querySelectorAll(\\\\\\\".tew-cell-textarea\\\\\\\"));if(0===t.length)return;t.forEach((e=\\\\u003e{e.style.height=\\\\\\\"auto\\\\\\\"}));const i=Math.max(...t.map((e=\\\\u003ee.scrollHeight)));t.forEach((e=\\\\u003e{e.style.height=i+\\\\\\\"px\\\\\\\"}))}function u(){i.rows.push(Array(i.headers.length).fill(\\\\\\\"\\\\\\\")),y()}function c(){i.headers.push(`\\u5217${i.headers.length+1}`),i.rows.forEach((e=\\\\u003ee.push(\\\\\\\"\\\\\\\"))),y()}function A(e,t,s,n=!1){oe((()=\\\\u003e{const t=e.target.closest(\\\\\\\"table\\\\\\\");if(!t)return;const s=Array.from(t.querySelectorAll(\\\\\\\".tew-cell-input\\\\\\\")),a=s.indexOf(e.target);if(-1===a)return;const o=s[a+(n?i.headers.length:1)];o\\\\u0026\\\\u0026o.focus()}))}let p=null;function h(){clearTimeout(p),p=setTimeout((()=\\\\u003e{y()}),300)}function m(){const e=a(s.value);e\\\\u0026\\\\u0026(i.headers=e.headers,i.rows=e.rows,s.value=n(i)),y()}function f(){return JSON.stringify({mode:t.value,headers:i.headers,rows:i.rows,markdown:\\\\\\\"markdown\\\\\\\"===t.value?s.value:n(i)})}function g(e){try{const a=\\\\\\\"string\\\\\\\"==typeof e?JSON.parse(e):e;if(a\\\\u0026\\\\u0026a.headers)return i.headers=a.headers,i.rows=a.rows||[],t.value=a.mode||\\\\\\\"table\\\\\\\",s.value=a.markdown||n(i),void oe((()=\\\\u003ev()))}catch(o){}if(\\\\\\\"string\\\\\\\"==typeof e\\\\u0026\\\\u0026e.includes(\\\\\\\"|\\\\\\\")){const t=a(e);t\\\\u0026\\\\u0026(i.headers=t.headers,i.rows=t.rows,s.value=e,oe((()=\\\\u003ev())))}}function v(){const e=document.querySelector(\\\\\\\".tew-table\\\\\\\");if(!e)return;Array.from(e.querySelectorAll(\\\\\\\"tbody tr\\\\\\\")).forEach((e=\\\\u003ed(e)))}function y(){e.widget\\\\u0026\\\\u0026(e.widget.value=f())}return V((()=\\\\u003e{var a;(null==(a=e.widget)?void 0:a.value)\\\\u0026\\\\u0026g(e.widget.value),e.widget.serializeValue=async({node:e},a)=\\\\u003e{const o=\\\\\\\"markdown\\\\\\\"===t.value?s.value:n(i);return(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[a]=o,e.widgets[a].value=f()),o},z((()=\\\\u003ee.widget.value),(e=\\\\u003e{e!==f()\\\\u0026\\\\u0026g(e)}))})),(e,n)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",{class:\\\\\\\"table-editor-widget\\\\\\\",onMousedown:n[3]||(n[3]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"])),onWheel:n[4]||(n[4]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"]))},[W(\\\\\\\"div\\\\\\\",An,[W(\\\\\\\"div\\\\\\\",pn,[W(\\\\\\\"button\\\\\\\",{class:B([\\\\\\\"tew-tab\\\\\\\",\\\\\\\"table\\\\\\\"===t.value?\\\\\\\"active\\\\\\\":\\\\\\\"\\\\\\\"]),onClick:n[0]||(n[0]=e=\\\\u003eo(\\\\\\\"table\\\\\\\"))},n[5]||(n[5]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-table\\\\\\\"},null,-1),ne(\\\\\\\" \\u8868\\u683c \\\\\\\")]),2),W(\\\\\\\"button\\\\\\\",{class:B([\\\\\\\"tew-tab\\\\\\\",\\\\\\\"markdown\\\\\\\"===t.value?\\\\\\\"active\\\\\\\":\\\\\\\"\\\\\\\"]),onClick:n[1]||(n[1]=e=\\\\u003eo(\\\\\\\"markdown\\\\\\\"))},n[6]||(n[6]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-code\\\\\\\"},null,-1),ne(\\\\\\\" Markdown \\\\\\\")]),2)]),\\\\\\\"table\\\\\\\"===t.value?(j(),U(\\\\\\\"div\\\\\\\",hn,[W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-btn\\\\\\\",onClick:u,title:\\\\\\\"\\u6dfb\\u52a0\\u884c\\\\\\\"},n[7]||(n[7]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-plus\\\\\\\"},null,-1),ne(\\\\\\\" \\u884c \\\\\\\")])),W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-btn\\\\\\\",onClick:c,title:\\\\\\\"\\u6dfb\\u52a0\\u5217\\\\\\\"},n[8]||(n[8]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-plus\\\\\\\"},null,-1),ne(\\\\\\\" \\u5217 \\\\\\\")]))])):(j(),U(\\\\\\\"div\\\\\\\",mn,[W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-btn\\\\\\\",onClick:m,title:\\\\\\\"\\u683c\\u5f0f\\u5316\\\\\\\"},n[9]||(n[9]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-align-left\\\\\\\"},null,-1),ne(\\\\\\\" \\u683c\\u5f0f\\u5316 \\\\\\\")]))]))]),\\\\\\\"table\\\\\\\"===t.value?(j(),U(\\\\\\\"div\\\\\\\",fn,[W(\\\\\\\"table\\\\\\\",gn,[W(\\\\\\\"thead\\\\\\\",null,[W(\\\\\\\"tr\\\\\\\",null,[n[10]||(n[10]=W(\\\\\\\"th\\\\\\\",{class:\\\\\\\"tew-row-handle\\\\\\\"},null,-1)),(j(!0),U(K,null,J(i.headers,((e,t)=\\\\u003e(j(),U(\\\\\\\"th\\\\\\\",{key:\\\\\\\"h\\\\\\\"+t,class:\\\\\\\"tew-header-cell\\\\\\\",style:ie({width:r.value[t]})},[W(\\\\\\\"div\\\\\\\",vn,[W(\\\\\\\"input\\\\\\\",{class:\\\\\\\"tew-cell-input tew-header-input\\\\\\\",value:e,onInput:e=\\\\u003efunction(e,t){i.headers[e]=t,y()}(t,e.target.value),onKeydown:le(Q((e=\\\\u003eA(e)),[\\\\\\\"prevent\\\\\\\"]),[\\\\\\\"tab\\\\\\\"]),placeholder:\\\\\\\"\\u5217\\u6807\\u9898\\\\\\\"},null,40,yn),W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-col-del\\\\\\\",onClick:e=\\\\u003efunction(e){i.headers.length\\\\u003c=1||(i.headers.splice(e,1),i.rows.forEach((t=\\\\u003et.splice(e,1))),y())}(t),title:\\\\\\\"\\u5220\\u9664\\u5217\\\\\\\"},\\\\\\\"\\u00d7\\\\\\\",8,wn)])],4)))),128))])]),W(\\\\\\\"tbody\\\\\\\",null,[(j(!0),U(K,null,J(i.rows,((e,t)=\\\\u003e(j(),U(\\\\\\\"tr\\\\\\\",{key:\\\\\\\"r\\\\\\\"+t},[W(\\\\\\\"td\\\\\\\",bn,[W(\\\\\\\"button\\\\\\\",{class:\\\\\\\"tew-row-del\\\\\\\",onClick:e=\\\\u003efunction(e){i.rows.length\\\\u003c=1||(i.rows.splice(e,1),y())}(t),title:\\\\\\\"\\u5220\\u9664\\u884c\\\\\\\"},\\\\\\\"\\u00d7\\\\\\\",8,_n)]),(j(!0),U(K,null,J(e,((e,s)=\\\\u003e(j(),U(\\\\\\\"td\\\\\\\",{key:\\\\\\\"c\\\\\\\"+s,class:\\\\\\\"tew-body-cell\\\\\\\",style:ie({width:r.value[s]})},[W(\\\\\\\"textarea\\\\\\\",{class:\\\\\\\"tew-cell-input tew-cell-textarea\\\\\\\",value:e,onInput:e=\\\\u003e{var n;!function(e,t,s){i.rows[e][t]=s,y()}(t,s,e.target.value),(n=e.target)\\\\u0026\\\\u0026(n.style.height=\\\\\\\"auto\\\\\\\",n.style.height=n.scrollHeight+\\\\\\\"px\\\\\\\",d(n.closest(\\\\\\\"tr\\\\\\\")))},onKeydown:le(Q((e=\\\\u003eA(e)),[\\\\\\\"prevent\\\\\\\"]),[\\\\\\\"tab\\\\\\\"]),rows:\\\\\\\"1\\\\\\\"},null,40,Sn)],4)))),128))])))),128))])])])):(j(),U(\\\\\\\"div\\\\\\\",xn,[Z(W(\\\\\\\"textarea\\\\\\\",{class:\\\\\\\"tew-md-textarea\\\\\\\",\\\\\\\"onUpdate:modelValue\\\\\\\":n[2]||(n[2]=e=\\\\u003es.value=e),onInput:h,placeholder:\\\\\\\"| \\u52171 | \\u52172 | \\u52173 |\\\\\\\\n| --- | --- | --- |\\\\\\\\n| \\u503c1 | \\u503c2 | \\u503c3 |\\\\\\\",spellcheck:\\\\\\\"false\\\\\\\"},null,544),[[ae,s.value]])]))],32))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-7e0ef36e\\\\\\\"]]),kn={class:\\\\\\\"relative rounded-t-lg overflow-hidden select-none\\\\\\\"},En={key:1,class:\\\\\\\"w-full h-full flex items-center justify-center\\\\\\\"},Nn=cn({__name:\\\\\\\"baseThumbnail\\\\\\\",props:{hoverZoom:{type:\\\\\\\"number\\\\\\\",default:4},isHovered:{type:Boolean,default:!1}},setup(e){const t=P(!1),i=P(null);return V((()=\\\\u003e{var e;Array.from((null==(e=i.value)?void 0:e.getElementsByTagName(\\\\\\\"img\\\\\\\"))??[]).forEach((e=\\\\u003e{ce(e,\\\\\\\"error\\\\\\\",(()=\\\\u003e{t.value=!0}))}))})),(s,n)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",kn,[t.value?(j(),U(\\\\\\\"div\\\\\\\",En,n[0]||(n[0]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-file text-4xl\\\\\\\"},null,-1)]))):(j(),U(\\\\\\\"div\\\\\\\",{key:0,ref_key:\\\\\\\"contentRef\\\\\\\",ref:i,class:\\\\\\\"w-full h-full transform-gpu transition-transform duration-1000 ease-out\\\\\\\",style:ie(e.isHovered?{transform:`scale(${1+e.hoverZoom/100})`}:void 0)},[re(s.$slots,\\\\\\\"default\\\\\\\",{},void 0,!0)],4))]))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-604a4248\\\\\\\"]]),Cn=[\\\\\\\"src\\\\\\\",\\\\\\\"alt\\\\\\\"],In=cn({__name:\\\\\\\"lazyImage\\\\\\\",props:{src:{type:String,required:!0},alt:{type:String,default:\\\\\\\"\\\\\\\"},imageClass:{type:[String,Array,Object],default:\\\\\\\"\\\\\\\"},imageStyle:{type:[String,Object],default:()=\\\\u003e({})},placeholderClass:{type:[String,Array,Object],default:\\\\\\\"\\\\\\\"},errorClass:{type:[String,Array,Object],default:\\\\\\\"\\\\\\\"},rootMargin:{type:String,default:\\\\\\\"50px\\\\\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\\\\\"load\\\\\\\",\\\\\\\"error\\\\\\\",\\\\\\\"visible\\\\\\\"],setup(e,{emit:t}){const i=e,s=t,n=P(null),a=P(i.immediate),o=P(!1),l=P(!1),r=Y((()=\\\\u003ei.src));z((()=\\\\u003ei.src),(()=\\\\u003e{o.value=!1,l.value=!1,i.immediate||(a.value=!1)}),{immediate:!0});const{stop:d}=Ae(n,(([e])=\\\\u003e{(null==e?void 0:e.isIntersecting)\\\\u0026\\\\u0026!a.value\\\\u0026\\\\u0026(a.value=!0,s(\\\\\\\"visible\\\\\\\"),d())}),{rootMargin:i.rootMargin,threshold:i.threshold}),u=e=\\\\u003e{o.value=!0,l.value=!1,s(\\\\\\\"load\\\\\\\",e)},c=e=\\\\u003e{l.value=!0,o.value=!1,s(\\\\\\\"error\\\\\\\",e)};return(t,i)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",{ref_key:\\\\\\\"containerRef\\\\\\\",ref:n,class:\\\\\\\"lazy-image-container\\\\\\\"},[l.value?(j(),U(\\\\\\\"div\\\\\\\",{key:0,class:B([\\\\\\\"lazy-image-error\\\\\\\",\\\\\\\"w-full h-full flex items-center justify-center bg-surface-100 dark:bg-surface-800\\\\\\\",e.errorClass])},[re(t.$slots,\\\\\\\"error\\\\\\\",{},(()=\\\\u003e[i[0]||(i[0]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\\\\\"},null,-1))]),!0)],2)):a.value\\\\u0026\\\\u0026r.value?(j(),U(\\\\\\\"img\\\\\\\",{key:1,src:r.value,alt:e.alt,class:B(e.imageClass),style:ie(e.imageStyle),draggable:\\\\\\\"false\\\\\\\",onLoad:u,onError:c},null,46,Cn)):a.value?te(\\\\\\\"\\\\\\\",!0):(j(),U(\\\\\\\"div\\\\\\\",{key:2,class:B([\\\\\\\"lazy-image-placeholder\\\\\\\",\\\\\\\"w-full h-full flex items-center justify-center bg-surface-100 dark:bg-surface-800\\\\\\\",e.placeholderClass])},[re(t.$slots,\\\\\\\"placeholder\\\\\\\",{},(()=\\\\u003e[i[1]||(i[1]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-image text-2xl text-surface-400\\\\\\\"},null,-1))]),!0)],2))],512))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-4bfc03bf\\\\\\\"]]),Tn={class:\\\\\\\"overflow-hidden w-full h-full flex items-center justify-center\\\\\\\"},On={__name:\\\\\\\"defaultThumbnail\\\\\\\",props:{src:{type:String,required:!0},alt:{type:String,required:!0},hoverZoom:{type:Number,required:!0},isHovered:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},rootMargin:{type:String,default:\\\\\\\"50px\\\\\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\\\\\"load\\\\\\\",\\\\\\\"error\\\\\\\",\\\\\\\"visible\\\\\\\"],setup(e,{emit:t}){const i=e,{src:s,isVideo:n}=i;return n??(null==s||s.toLowerCase().endsWith(\\\\\\\".webp\\\\\\\")),(t,i)=\\\\u003e(j(),H(Nn,{\\\\\\\"hover-zoom\\\\\\\":e.hoverZoom,\\\\\\\"is-hovered\\\\\\\":e.isHovered},{default:de((()=\\\\u003e[W(\\\\\\\"div\\\\\\\",Tn,[F(In,{src:X(s),\\\\\\\"image-class\\\\\\\":[\\\\\\\"transform-gpu transition-transform duration-300 ease-out\\\\\\\",\\\\\\\"w-full h-full object-cover\\\\\\\"],\\\\\\\"image-style\\\\\\\":e.isHovered?{transform:`scale(${1+e.hoverZoom/100})`}:void 0,\\\\\\\"root-margin\\\\\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate,onLoad:i[0]||(i[0]=e=\\\\u003et.$emit(\\\\\\\"load\\\\\\\",e)),onError:i[1]||(i[1]=e=\\\\u003et.$emit(\\\\\\\"error\\\\\\\",e)),onVisible:i[2]||(i[2]=e=\\\\u003et.$emit(\\\\\\\"visible\\\\\\\",e))},{placeholder:de((()=\\\\u003e[re(t.$slots,\\\\\\\"placeholder\\\\\\\",{},(()=\\\\u003e[i[3]||(i[3]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-image text-2xl text-surface-400\\\\\\\"},null,-1))]))])),error:de((()=\\\\u003e[re(t.$slots,\\\\\\\"error\\\\\\\",{},(()=\\\\u003e[i[4]||(i[4]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\\\\\"},null,-1))]))])),_:3},8,[\\\\\\\"src\\\\\\\",\\\\\\\"image-style\\\\\\\",\\\\\\\"root-margin\\\\\\\",\\\\\\\"threshold\\\\\\\",\\\\\\\"immediate\\\\\\\"])])])),_:3},8,[\\\\\\\"hover-zoom\\\\\\\",\\\\\\\"is-hovered\\\\\\\"]))}},Mn={class:\\\\\\\"overflow-hidden w-full h-full flex items-center justify-center relative\\\\\\\"},Dn={__name:\\\\\\\"compareSliderThumbnail\\\\\\\",props:{baseImageSrc:{type:String,required:!0},overlayImageSrc:{type:String,required:!0},alt:{type:String,required:!0},isHovered:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},rootMargin:{type:String,default:\\\\\\\"50px\\\\\\\"},threshold:{type:Number,default:.1},immediate:{type:Boolean,default:!1}},emits:[\\\\\\\"load\\\\\\\",\\\\\\\"error\\\\\\\",\\\\\\\"visible\\\\\\\"],setup(e,{emit:t}){var i,s;const n=e;n.isVideo||(null==(i=n.baseImageSrc)?void 0:i.toLowerCase().endsWith(\\\\\\\".webp\\\\\\\"))||null==(s=n.overlayImageSrc)||s.toLowerCase().endsWith(\\\\\\\".webp\\\\\\\");const a=P(50),o=P(null),{elementX:l,elementWidth:r,isOutside:d}=pe(o);return z([()=\\\\u003en.isHovered,l,r,d],(([e,t,i,s])=\\\\u003e{e\\\\u0026\\\\u0026(s||(a.value=t/i*100))})),(t,i)=\\\\u003e(j(),H(Nn,{\\\\\\\"is-hovered\\\\\\\":e.isHovered},{default:de((()=\\\\u003e[W(\\\\\\\"div\\\\\\\",Mn,[F(In,{src:e.baseImageSrc,\\\\\\\"image-class\\\\\\\":[\\\\\\\"transform-gpu transition-transform duration-300 ease-out\\\\\\\",\\\\\\\"w-full h-full object-cover block\\\\\\\"],\\\\\\\"root-margin\\\\\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate,onLoad:i[0]||(i[0]=e=\\\\u003et.$emit(\\\\\\\"load\\\\\\\",e)),onError:i[1]||(i[1]=e=\\\\u003et.$emit(\\\\\\\"error\\\\\\\",e)),onVisible:i[2]||(i[2]=e=\\\\u003et.$emit(\\\\\\\"visible\\\\\\\",e))},{placeholder:de((()=\\\\u003e[re(t.$slots,\\\\\\\"placeholder\\\\\\\",{},(()=\\\\u003e[i[3]||(i[3]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-image text-2xl text-surface-400\\\\\\\"},null,-1))]))])),error:de((()=\\\\u003e[re(t.$slots,\\\\\\\"error\\\\\\\",{},(()=\\\\u003e[i[4]||(i[4]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\\\\\"},null,-1))]))])),_:3},8,[\\\\\\\"src\\\\\\\",\\\\\\\"root-margin\\\\\\\",\\\\\\\"threshold\\\\\\\",\\\\\\\"immediate\\\\\\\"]),W(\\\\\\\"div\\\\\\\",{ref_key:\\\\\\\"containerRef\\\\\\\",ref:o,class:\\\\\\\"absolute inset-0\\\\\\\"},[F(In,{src:e.overlayImageSrc,\\\\\\\"image-class\\\\\\\":[\\\\\\\"transform-gpu transition-transform duration-300 ease-out\\\\\\\",\\\\\\\"w-full h-full object-cover block\\\\\\\"],\\\\\\\"image-style\\\\\\\":{clipPath:`inset(0 ${100-a.value}% 0 0)`},\\\\\\\"root-margin\\\\\\\":e.rootMargin,threshold:e.threshold,immediate:e.immediate},{placeholder:de((()=\\\\u003e[re(t.$slots,\\\\\\\"placeholder\\\\\\\",{},(()=\\\\u003e[i[5]||(i[5]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-image text-2xl text-surface-400\\\\\\\"},null,-1))]))])),error:de((()=\\\\u003e[re(t.$slots,\\\\\\\"error\\\\\\\",{},(()=\\\\u003e[i[6]||(i[6]=W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-exclamation-triangle text-2xl text-surface-400\\\\\\\"},null,-1))]))])),_:3},8,[\\\\\\\"src\\\\\\\",\\\\\\\"image-style\\\\\\\",\\\\\\\"root-margin\\\\\\\",\\\\\\\"threshold\\\\\\\",\\\\\\\"immediate\\\\\\\"]),W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"absolute inset-y-0 bg-white/30 backdrop-blur-sm z-10 pointer-events-none\\\\\\\",style:ie({left:`${a.value}%`,width:\\\\\\\"1px\\\\\\\"})},null,4)],512)])])),_:3},8,[\\\\\\\"is-hovered\\\\\\\"]))}},Rn={class:\\\\\\\"selector-card-wrapper\\\\\\\"},Pn={class:\\\\\\\"card-image-container\\\\\\\"},Gn={key:2,class:\\\\\\\"selection-badge\\\\\\\"},zn={class:\\\\\\\"card-content\\\\\\\"},Vn={class:\\\\\\\"card-title\\\\\\\"},jn=cn({__name:\\\\\\\"selectorCard\\\\\\\",props:{item:{type:Object,required:!0},uniqueKey:{type:String,default:\\\\\\\"id\\\\\\\"},selectable:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!0},showMeta:{type:Boolean,default:!1},showActions:{type:Boolean,default:!1},actions:{type:Array,default:()=\\\\u003e[]},itemFields:{type:Object,default:()=\\\\u003e({id:\\\\\\\"id\\\\\\\",title:\\\\\\\"title\\\\\\\",description:\\\\\\\"description\\\\\\\",image:\\\\\\\"image\\\\\\\",meta:\\\\\\\"meta\\\\\\\"})},locale:{type:String,default:\\\\\\\"en\\\\\\\"}},emits:[\\\\\\\"select\\\\\\\",\\\\\\\"action\\\\\\\",\\\\\\\"item-hover\\\\\\\",\\\\\\\"item-leave\\\\\\\"],setup(e,{emit:t}){const i=e,s=t,n=P(null),a=he(n),o=()=\\\\u003e{i.selectable\\\\u0026\\\\u0026s(\\\\\\\"select\\\\\\\",i.item)},l=()=\\\\u003e{s(\\\\\\\"item-hover\\\\\\\",i.item)},r=()=\\\\u003e{s(\\\\\\\"item-leave\\\\\\\",i.item)};return(t,i)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",Rn,[W(\\\\\\\"div\\\\\\\",{ref_key:\\\\\\\"cardRef\\\\\\\",ref:n,class:B([\\\\\\\"card-item\\\\\\\",{selected:e.isSelected,clickable:e.selectable}]),onClick:o,onMouseenter:l,onMouseleave:r},[W(\\\\\\\"div\\\\\\\",Pn,[\\\\\\\"compareSlider\\\\\\\"===e.item.thumbnailVariant?(j(),H(Dn,{key:0,\\\\\\\"base-image-src\\\\\\\":e.item.thumbnail[0],\\\\\\\"overlay-image-src\\\\\\\":e.item.thumbnail[1],alt:t.title,\\\\\\\"is-hovered\\\\\\\":X(a),\\\\\\\"is-video\\\\\\\":\\\\\\\"video\\\\\\\"===e.item.mediaType||\\\\\\\"webp\\\\\\\"===e.item.mediaSubtype,class:\\\\\\\"card-image\\\\\\\"},null,8,[\\\\\\\"base-image-src\\\\\\\",\\\\\\\"overlay-image-src\\\\\\\",\\\\\\\"alt\\\\\\\",\\\\\\\"is-hovered\\\\\\\",\\\\\\\"is-video\\\\\\\"])):(j(),H(On,{key:1,src:e.item.thumbnail||\\\\\\\"\\\\\\\",alt:\\\\\\\"zh\\\\\\\"==e.locale?e.item.name_cn:e.item.name,\\\\\\\"hover-zoom\\\\\\\":4,\\\\\\\"is-hovered\\\\\\\":!1,class:\\\\\\\"card-image\\\\\\\"},null,8,[\\\\\\\"src\\\\\\\",\\\\\\\"alt\\\\\\\"])),e.selectable\\\\u0026\\\\u0026e.isSelected?(j(),U(\\\\\\\"div\\\\\\\",Gn,i[0]||(i[0]=[W(\\\\\\\"i\\\\\\\",{class:\\\\\\\"pi pi-check text-white\\\\\\\"},null,-1)]))):te(\\\\\\\"\\\\\\\",!0)]),W(\\\\\\\"div\\\\\\\",zn,[W(\\\\\\\"div\\\\\\\",Vn,ee(\\\\\\\"zh\\\\\\\"==e.locale?e.item.name_cn:e.item.name),1)])],34)]))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-88af28b0\\\\\\\"]]),Un={class:\\\\\\\"list-item\\\\\\\"},Wn=[\\\\\\\"name\\\\\\\",\\\\\\\"checked\\\\\\\"],Fn={class:\\\\\\\"list-item-content\\\\\\\"},Xn={class:\\\\\\\"list-title\\\\\\\"},Zn=cn({__name:\\\\\\\"selectorList\\\\\\\",props:{item:{type:Object,required:!0},uniqueKey:{type:String,default:\\\\\\\"id\\\\\\\"},selectable:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!0},showActions:{type:Boolean,default:!1},actions:{type:Array,default:()=\\\\u003e[]},itemFields:{type:Object,default:()=\\\\u003e({id:\\\\\\\"id\\\\\\\",title:\\\\\\\"title\\\\\\\",description:\\\\\\\"description\\\\\\\"})},locale:{type:String,default:\\\\\\\"en\\\\\\\"}},emits:[\\\\\\\"select\\\\\\\",\\\\\\\"action\\\\\\\",\\\\\\\"item-hover\\\\\\\",\\\\\\\"item-leave\\\\\\\"],setup(e,{emit:t}){const i=e,s=t,n=()=\\\\u003e{i.selectable\\\\u0026\\\\u0026s(\\\\\\\"select\\\\\\\",i.item)},a=()=\\\\u003e{s(\\\\\\\"item-hover\\\\\\\",i.item)},o=()=\\\\u003e{s(\\\\\\\"item-leave\\\\\\\",i.item)};return(t,i)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",Un,[W(\\\\\\\"span\\\\\\\",{class:B([\\\\\\\"list-item__tag\\\\\\\",{selected:e.isSelected}]),onClick:n,onMouseenter:a,onMouseleave:o},[e.selectable?(j(),U(\\\\\\\"input\\\\\\\",{key:0,type:\\\\\\\"checkbox\\\\\\\",name:e.item.name,checked:e.isSelected,onClick:i[0]||(i[0]=Q((()=\\\\u003e{}),[\\\\\\\"stop\\\\\\\"]))},null,8,Wn)):te(\\\\\\\"\\\\\\\",!0),W(\\\\\\\"span\\\\\\\",Fn,[W(\\\\\\\"div\\\\\\\",Xn,ee(\\\\\\\"zh\\\\\\\"==e.locale?e.item.name_cn:e.item.name),1)])],34)]))}},[[\\\\\\\"__scopeId\\\\\\\",\\\\\\\"data-v-c93b1734\\\\\\\"]]),Hn=S(\\\\\\\"graphStore\\\\\\\",{state:e=\\\\u003e({selectors:[],selectors_styles:{},seg_selectors:[],slider_controls:[]}),actions:{setSelectors(e){this.selectors=R(e)},setStyles(e,t){this.selectors_styles[e]||(this.selectors_styles[e]=t)},setSegSelectors(e){this.seg_selectors=R(e)},setSliderControls(e){this.slider_controls=R(e)}}}),qn={class:\\\\\\\"easyuse-styles-selector\\\\\\\"},Yn={class:\\\\\\\"easyuse-styles-selector-header flex justify-between gap-2\\\\\\\"},Kn={class:\\\\\\\"flex align-center gap-1\\\\\\\"},Jn={class:\\\\\\\"flex-1\\\\\\\"},Bn={key:0,class:\\\\\\\"grid-container gap-2\\\\\\\"},Qn={key:1,class:\\\\\\\"list-container\\\\\\\"},$n={key:0,class:\\\\\\\"easyuse-styles-selector-previewer\\\\\\\"},ea={class:\\\\\\\"easyuse-styles-selector-previewer__text\\\\\\\"},ta=[\\\\\\\"src\\\\\\\"],ia={class:\\\\\\\"title\\\\\\\"},sa={class:\\\\\\\"easyuse-styles-selector-previewer__prompt\\\\\\\"},na={key:0},aa={class:\\\\\\\"comfyui-easyuse-success\\\\\\\"},oa={key:1},la={class:\\\\\\\"comfyui-easyuse-error\\\\\\\"},ra={__name:\\\\\\\"stylesSelector\\\\\\\",props:[\\\\\\\"widget\\\\\\\"],setup(e){const t=Hn(),{selectors_styles:i}=I(t),s=P(\\\\\\\"\\\\\\\"),n=P([]),a=Y((e=\\\\u003exe(\\\\\\\"Comfy.Locale\\\\\\\")||\\\\\\\"en\\\\\\\")),o=P(xe(\\\\\\\"EasyUse.StylesSelector.DisplayType\\\\\\\")||\\\\\\\"Grid\\\\\\\");\\\\\\\"Gird\\\\\\\"==o.value\\\\u0026\\\\u0026(o.value=\\\\\\\"Grid\\\\\\\",ke(\\\\\\\"EasyUse.StylesSelector.DisplayType\\\\\\\",\\\\\\\"Grid\\\\\\\"));const l=P([]),r=P(\\\\\\\"\\\\\\\");z((e=\\\\u003eo.value),(e=\\\\u003e{ke(\\\\\\\"EasyUse.StylesSelector.DisplayType\\\\\\\",e)})),z((t=\\\\u003ee.widget.value),(e=\\\\u003e{n.value=e.split(\\\\\\\",\\\\\\\").map((e=\\\\u003ee.trim()))}));const d=Y((()=\\\\u003e{if(!r.value.trim())return l.value;const e=n.value||[],t=r.value.toLowerCase(),i=[],s=[];return l.value.forEach((n=\\\\u003e{if(e.includes(n.name))i.push(n);else{const e=\\\\\\\"zh\\\\\\\"===a.value\\\\u0026\\\\u0026n.name_cn?n.name_cn:n.name,i=n.prompt||\\\\\\\"\\\\\\\",o=n.negative_prompt||\\\\\\\"\\\\\\\";(e.toLowerCase().includes(t)||i.toLowerCase().includes(t)||o.toLowerCase().includes(t))\\\\u0026\\\\u0026s.push(n)}})),[...i,...s]})),u=se({name:\\\\\\\"\\\\\\\",positive:\\\\\\\"\\\\\\\",negative:\\\\\\\"\\\\\\\",src:\\\\\\\"\\\\\\\"}),c=async e=\\\\u003e{if(i.value[e])return!0;const s=await ge.fetchApi(`/easyuse/prompt/styles?name=${e}`);if(200===s.status){let i=(await s.json()).map(((e,t)=\\\\u003e(e.index=t,e)));return await t.setStyles(e,i),!0}return Ye.error(Ne(\\\\\\\"Get styles list Failed\\\\\\\")),!1},A=e=\\\\u003e{var t,i;u.name=\\\\\\\"zh\\\\\\\"==a.value\\\\u0026\\\\u0026e.name_cn?e.name_cn:e.name,u.src=e.thumbnailVariant\\\\u0026\\\\u0026\\\\\\\"default\\\\\\\"!=e.thumbnailVariant?(null==(t=e.thumbnail)?void 0:t[1])||(null==(i=e.thumbnail)?void 0:i[0]):e.thumbnail,u.positive=e.prompt,u.negative=e.negative_prompt},p=()=\\\\u003e{u.name=\\\\\\\"\\\\\\\",u.src=\\\\\\\"\\\\\\\",u.positive=\\\\\\\"\\\\\\\",u.negative=\\\\\\\"\\\\\\\"},h=e=\\\\u003e{const t=n.value||[],a=R(i.value[s.value]);l.value=[...a.sort(((e,t)=\\\\u003ee.index-t.index)).sort(((e,i)=\\\\u003et.includes(i.name)-t.includes(e.name)))]},m=e=\\\\u003e(n.value||[]).includes(e.name),f=e=\\\\u003e{let t=[...n.value||[]];const i=e.name,s=t.findIndex((e=\\\\u003ee===i));s\\\\u003e-1?t.splice(s,1):t.push(i),n.value=t},g=()=\\\\u003e{n.value=[]};return V((t=\\\\u003e{setTimeout((t=\\\\u003e{const i=wt(e.widget.node,\\\\\\\"styles\\\\\\\");let n=i.value;s.value=n,c(n).then((e=\\\\u003ee\\\\u0026\\\\u0026h())),i.callback=e=\\\\u003e{s.value=e,g(),c(e).then((e=\\\\u003ee\\\\u0026\\\\u0026h()))}}),1),e.widget.serializeValue=async({node:e},t)=\\\\u003e{try{let i=n.value||[];return i=i.join(\\\\\\\",\\\\\\\"),(null==e?void 0:e.widgets_values)\\\\u0026\\\\u0026(e.widgets_values[t]=i,e.widgets[t].value=i),i}catch(i){return[]}}})),(t,i)=\\\\u003e(j(),U(\\\\\\\"div\\\\\\\",qn,[W(\\\\\\\"div\\\\\\\",Yn,[W(\\\\\\\"div\\\\\\\",Kn,[Z(F(X(L),{icon:\\\\\\\"pi pi-trash\\\\\\\",severity:\\\\\\\"secondary\\\\\\\",outlined:\\\\\\\"\\\\\\\",size:\\\\\\\"small\\\\\\\",onClick:g},null,512),[[X(E),X(Ne)(\\\\\\\"Reset\\\\\\\")]])]),W(\\\\\\\"div\\\\\\\",Jn,[F(X(M),null,{default:de((()=\\\\u003e[F(X(T),{class:\\\\\\\"pi pi-search\\\\\\\"}),F(X(O),{modelValue:r.value,\\\\\\\"onUpdate:modelValue\\\\\\\":i[0]||(i[0]=e=\\\\u003er.value=e),placeholder:X(Ne)(\\\\\\\"Search styles...\\\\\\\"),class:\\\\\\\"w-full\\\\\\\"},null,8,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"placeholder\\\\\\\"])])),_:1})]),F(X(D),{modelValue:o.value,\\\\\\\"onUpdate:modelValue\\\\\\\":i[1]||(i[1]=e=\\\\u003eo.value=e),options:[\\\\\\\"Grid\\\\\\\",\\\\\\\"List\\\\\\\"],\\\\\\\"allow-empty\\\\\\\":!1},{option:de((({option:e})=\\\\u003e[W(\\\\\\\"i\\\\\\\",{class:B([\\\\\\\"List\\\\\\\"===e?\\\\\\\"pi pi-bars\\\\\\\":\\\\\\\"pi pi-table\\\\\\\"])},null,2)])),_:1},8,[\\\\\\\"modelValue\\\\\\\"])]),W(\\\\\\\"div\\\\\\\",{class:\\\\\\\"easyuse-styles-selector-content\\\\\\\",onMouseleave:i[2]||(i[2]=t=\\\\u003eh(e.widget.node.name))},[\\\\\\\"Grid\\\\\\\"===o.value?(j(),U(\\\\\\\"div\\\\\\\",Bn,[(j(!0),U(K,null,J(d.value,((e,t)=\\\\u003e(j(),H(jn,{key:`${e.name}-${t}`,item:e,\\\\\\\"unique-key\\\\\\\":\\\\\\\"name\\\\\\\",locale:a.value,selectable:!0,\\\\\\\"is-selected\\\\\\\":m(e),\\\\\\\"show-description\\\\\\\":!0,\\\\\\\"preview-enabled\\\\\\\":!0,onSelect:f,onItemHover:A,onItemLeave:p},null,8,[\\\\\\\"item\\\\\\\",\\\\\\\"locale\\\\\\\",\\\\\\\"is-selected\\\\\\\"])))),128))])):(j(),U(\\\\\\\"div\\\\\\\",Qn,[(j(!0),U(K,null,J(d.value,((e,t)=\\\\u003e(j(),H(Zn,{key:`${e.name}-${t}`,item:e,\\\\\\\"unique-key\\\\\\\":\\\\\\\"name\\\\\\\",locale:a.value,selectable:!0,\\\\\\\"is-selected\\\\\\\":m(e),\\\\\\\"show-description\\\\\\\":!0,onSelect:f,onItemHover:A,onItemLeave:p},null,8,[\\\\\\\"item\\\\\\\",\\\\\\\"locale\\\\\\\",\\\\\\\"is-selected\\\\\\\"])))),128))]))],32),(null==u?void 0:u.positive)||(null==u?void 0:u.negative)?(j(),U(\\\\\\\"div\\\\\\\",$n,[W(\\\\\\\"div\\\\\\\",ea,[W(\\\\\\\"img\\\\\\\",{src:u.src,alt:\\\\\\\"\\\\\\\",style:{width:\\\\\\\"100%\\\\\\\",height:\\\\\\\"auto\\\\\\\",\\\\\\\"object-fit\\\\\\\":\\\\\\\"contain\\\\\\\",\\\\\\\"border-radius\\\\\\\":\\\\\\\"6px\\\\\\\"}},null,8,ta),W(\\\\\\\"span\\\\\\\",ia,ee(u.name),1),W(\\\\\\\"div\\\\\\\",sa,[u.positive?(j(),U(\\\\\\\"h6\\\\\\\",na,[W(\\\\\\\"span\\\\\\\",aa,ee(X(Ne)(\\\\\\\"Positive\\\\\\\"))+\\\\\\\":\\\\\\\",1),W(\\\\\\\"span\\\\\\\",null,ee(u.positive),1)])):te(\\\\\\\"\\\\\\\",!0),u.negative?(j(),U(\\\\\\\"h6\\\\\\\",oa,[W(\\\\\\\"span\\\\\\\",la,ee(X(Ne)(\\\\\\\"Negative\\\\\\\"))+\\\\\\\":\\\\\\\",1),W(\\\\\\\"span\\\\\\\",null,ee(u.negative),1)])):te(\\\\\\\"\\\\\\\",!0)])])])):te(\\\\\\\"\\\\\\\",!0)]))}},da=new Map,ua={width:\\\\\\\"100%\\\\\\\",height:\\\\\\\"100%\\\\\\\",display:\\\\\\\"flex\\\\\\\",flexDirection:\\\\\\\"column\\\\\\\",overflow:\\\\\\\"hidden\\\\\\\"},ca=(e,t)=\\\\u003e{const i=document.createElement(\\\\\\\"div\\\\\\\"),s=e.node,n=e.options||{getMinHeight:()=\\\\u003e100,hideOnZoom:!0,serialize:!0},a=e.styles||null;i.id=`easyuse-vue-widget-${s.id}`,Object.assign(i.style,ua,a||{});const o=s.addDOMWidget(e.name||\\\\\\\"ustom_vue_component_basic\\\\\\\",\\\\\\\"vue-basic\\\\\\\",i,n);e.inputSpec\\\\u0026\\\\u0026(o.inputSpec=e.inputSpec);const l=ue(t,{widget:o,node:s});return l.use(me),l.mount(i),da.set(s.id,l),o.onRemove=()=\\\\u003e{const e=da.get(s.id);e\\\\u0026\\\\u0026(e.unmount(),da.delete(s.id))},{widget:o}};fe.registerExtension({name:\\\\\\\"Comfy.EasyUse.CustomWidget\\\\\\\",getCustomWidgets:e=\\\\u003e({EASY_PROMPT_AWAIT_BAR:e=\\\\u003e{const t=P(JSON.stringify({select:\\\\\\\"now\\\\\\\",unlock:!0,last_seed:0,seed:0})),i=!![\\\\\\\"obsidian\\\\\\\",\\\\\\\"obsidian_dark\\\\\\\",\\\\\\\"milk_white\\\\\\\"].includes(xe(\\\\\\\"Comfy.ColorPalette\\\\\\\"))?48:54;return ca({name:\\\\\\\"toolbar\\\\\\\",node:e,options:{getMinHeight:()=\\\\u003ei,getMaxHeight:()=\\\\u003ei,getValue:()=\\\\u003et.value,setValue:e=\\\\u003e{try{t.value=\\\\\\\"object\\\\\\\"==typeof e?JSON.stringify(e):e}catch(i){}}}},Es)},EASY_PROMPT_STYLES:e=\\\\u003e{const t=P(\\\\\\\"\\\\\\\");return ca({name:\\\\\\\"select_styles\\\\\\\",node:e,options:{getMinHeight:()=\\\\u003e180,getMaxHeight:()=\\\\u003ee.size[1]-75,getValue:()=\\\\u003et.value,setValue:e=\\\\u003e{t.value=Array.isArray(e)?e.join(\\\\\\\",\\\\\\\"):e}},styles:{overflow:\\\\\\\"visible\\\\\\\"}},ra)},EASY_COMBO:(e,t,i)=\\\\u003e{const s=P(\\\\\\\"\\\\\\\"),n=!![\\\\\\\"obsidian\\\\\\\",\\\\\\\"obsidian_dark\\\\\\\",\\\\\\\"milk_white\\\\\\\"].includes(xe(\\\\\\\"Comfy.ColorPalette\\\\\\\"))?22:26;return ca({name:\\\\\\\"mask_components\\\\\\\",node:e,options:{margin:0,getMinHeight:()=\\\\u003en,getMaxHeight:()=\\\\u003en,getValue:()=\\\\u003es.value,setValue:e=\\\\u003e{s.value=Array.isArray(e)?e.join(\\\\\\\",\\\\\\\"):e}},inputSpec:null==i?void 0:i[1],styles:{overflow:\\\\\\\"visible\\\\\\\"}},Cs)},EASY_MULTI_ANGLE:e=\\\\u003e{const t=P(JSON.stringify([{rotate:0,vertical:0,zoom:5,add_angle_prompt:!0}]));return ca({name:\\\\\\\"multi_angle\\\\\\\",node:e,options:{getMinHeight:()=\\\\u003e350,getMaxHeight:()=\\\\u003ee.size[1]-80,getValue:()=\\\\u003et.value,setValue:e=\\\\u003e{try{t.value=Array.isArray(e)?JSON.stringify(e):e}catch(i){}}},styles:{overflow:\\\\\\\"visible\\\\\\\"}},un)},EASY_TABLE_EDITOR:(e,t,i,s)=\\\\u003e{const n=P(JSON.stringify({mode:\\\\\\\"table\\\\\\\",headers:[\\\\\\\"\\u52171\\\\\\\",\\\\\\\"\\u52172\\\\\\\",\\\\\\\"\\u52173\\\\\\\"],rows:[[\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\"],[\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\",\\\\\\\"\\\\\\\"]],markdown:\\\\\\\"| \\u52171 | \\u52172 | \\u52173 |\\\\\\\\n| --- | --- | --- |\\\\\\\\n|     |     |     |\\\\\\\\n|     |     |     |\\\\\\\"}));return ca({name:\\\\\\\"table_data\\\\\\\",node:e,options:{getMinHeight:()=\\\\u003e200,getMaxHeight:()=\\\\u003ee.size[1],getValue:()=\\\\u003en.value,setValue:e=\\\\u003e{n.value=\\\\\\\"object\\\\\\\"==typeof e?JSON.stringify(e):e}},styles:{overflow:\\\\\\\"hidden\\\\\\\"}},Ln)}})});export{Ne as $,Re as N,fe as a,Ke as b,xe as c,vi as d,Pe as e,ge as f,wt as g,Le as h,Nt as j,Xe as s,Ye as t,Hn as u};\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$socket3\\\",\\n                \\\"$socket4\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v2/assets/extensions-DcWKQGos.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$socket3\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 118639\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 118724\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 119067\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 151035\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 151373\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 151845\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 156725\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".connect(\\\",\\n                                    \\\"matched_length\\\": 9,\\n                                    \\\"offset\\\": 157049\\n                                }\\n                            ]\\n                        },\\n                        {\\n                            \\\"identifier\\\": \\\"$socket4\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 114544\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 195224\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 195266\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 195308\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 196041\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 196271\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 196335\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 196527\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e,t,i,s,n,a,o,l,r,d,u,c,A,p,h,m,f=Object.defineProperty,g=e=\\\\u003e{throw TypeError(e)},v=(e,t,i)=\\\\u003e((e,t,i)=\\\\u003et in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,\\\\\\\"symbol\\\\\\\"!=typeof t?t+\\\\\\\"\\\\\\\":t,i),y=(e,t,i)=\\\\u003et.has(e)||g(\\\\\\\"Cannot \\\\\\\"+i),w=(e,t,i\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 196589\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\",\\n            \\\"credential-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1 | var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\\\\\"\\\\\\\"===e||Array.isArray(e)\\\\u0026\\\\u00260===e.length||!(e instanceof Date)\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof e\\\\u0026\\\\u00260===Object.keys(e).length}function i(e,t,n=new WeakSet){if(e===t)return!0;if(!e||!t||\\\\\\\"object\\\\\\\"!=typeof e||\\\\\\\"object\\\\\\\"!=typeof t)return!1;if(n.has(e)||n.has(t))return!1;n.add(e).add(t);let r,s,o,a=Array.isArray(e),l=Array.isArray(t);if(a\\\\u0026\\\\u0026l){if(s=e.length,s!=t.length)return!1;for(r=s;0!=r--;)if(!i(e[r],t[r],n))return!1;return!0}if(a!=l)return!1;let u=e instanceof Date,c=t instanceof Date;if(u!=c)return!1;if(u\\\\u0026\\\\u0026c)return e.getTime()==t.getTime();let d=e instanceof RegExp,h=t instanceof RegExp;if(d!=h)return!1;if(d\\\\u0026\\\\u0026h)return e.toString()==t.toString();let f=Object.keys(e);if(s=f.length,s!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,f[r]))return!1;for(r=s;0!=r--;)if(o=f[r],!i(e[o],t[o],n))return!1;return!0}function a(e,t){return i(e,t)}function l(e){return!!(e\\\\u0026\\\\u0026e.constructor\\\\u0026\\\\u0026e.call\\\\u0026\\\\u0026e.apply)}function u(e){return!o(e)}function c(e,t){if(!e||!t)return null;try{const n=e[t];if(u(n))return n}catch(n){}if(Object.keys(e).length){if(l(t))return t(e);if(-1===t.indexOf(\\\\\\\".\\\\\\\"))return e[t];{let n=t.split(\\\\\\\".\\\\\\\"),r=e;for(let e=0,t=n.length;e\\\\u003ct;++e){if(null==r)return null;r=r[n[e]]}return r}}return null}function d(e,t,n){return n?c(e,n)===c(t,n):a(e,t)}function h(e,t){if(null!=e\\\\u0026\\\\u0026t\\\\u0026\\\\u0026t.length)for(let n of t)if(d(e,n))return!0;return!1}function f(e,t){let n=-1;if(u(e))try{n=e.findLastIndex(t)}catch(r){n=e.lastIndexOf([...e].reverse().find(t))}return n}function p(e,t=!0){return e instanceof Object\\\\u0026\\\\u0026e.constructor===Object\\\\u0026\\\\u0026(t||0!==Object.keys(e).length)}function m(e,...t){return l(e)?e(...t):e}function g(e,t=!0){return\\\\\\\"string\\\\\\\"==typeof e\\\\u0026\\\\u0026(t||\\\\\\\"\\\\\\\"!==e)}function y(e){return g(e)?e.replace(/(-|_)/g,\\\\\\\"\\\\\\\").toLowerCase():e}function v(e,t=\\\\\\\"\\\\\\\",n={}){const r=y(t).split(\\\\\\\".\\\\\\\"),s=r.shift();return s?p(e)?v(m(e[Object.keys(e).find((e=\\\\u003ey(e)===s))||\\\\\\\"\\\\\\\"],n),r.join(\\\\\\\".\\\\\\\"),n):void 0:m(e,n)}function b(e,t=!0){return Array.isArray(e)\\\\u0026\\\\u0026(t||0!==e.length)}function S(e=\\\\\\\"\\\\\\\"){return u(e)\\\\u0026\\\\u00261===e.length\\\\u0026\\\\u0026!!e.match(/\\\\\\\\S| /)}function x(e,t){if(t){const n=t.test(e);return t.lastIndex=0,n}return!1}function $(...e){const o=(e={},i={})=\\\\u003e{const a=((e,o)=\\\\u003e{for(var i in o||(o={}))n.call(o,i)\\\\u0026\\\\u0026s(e,i,o[i]);if(t)for(var i of t(o))r.call(o,i)\\\\u0026\\\\u0026s(e,i,o[i]);return e})({},e);return Object.keys(i).forEach((t=\\\\u003e{p(i[t])\\\\u0026\\\\u0026t in e\\\\u0026\\\\u0026p(e[t])?a[t]=o(e[t],i[t]):a[t]=i[t]})),a};return e.reduce(((e,t,n)=\\\\u003e0===n?t:o(e,t)),{})}function k(e){return e?e.replace(/\\\\\\\\/\\\\\\\\*(?:(?!\\\\\\\\*\\\\\\\\/)[\\\\\\\\s\\\\\\\\S])*\\\\\\\\*\\\\\\\\/|[\\\\\\\\r\\\\\\\\n\\\\\\\\t]+/g,\\\\\\\"\\\\\\\").replace(/ {2,}/g,\\\\\\\" \\\\\\\").replace(/ ([{:}]) /g,\\\\\\\"$1\\\\\\\").replace(/([;,]) /g,\\\\\\\"$1\\\\\\\").replace(/ !/g,\\\\\\\"!\\\\\\\").replace(/: /g,\\\\\\\":\\\\\\\"):e}function w(e){if(e\\\\u0026\\\\u0026/[\\\\\\\\xC0-\\\\\\\\xFF\\\\\\\\u0100-\\\\\\\\u017E]/.test(e)){const t={A:/[\\\\\\\\xC0-\\\\\\\\xC5\\\\\\\\u0100\\\\\\\\u0102\\\\\\\\u0104]/g,AE:/[\\\\\\\\xC6]/g,C:/[\\\\\\\\xC7\\\\\\\\u0106\\\\\\\\u0108\\\\\\\\u010A\\\\\\\\u010C]/g,D:/[\\\\\\\\xD0\\\\\\\\u010E\\\\\\\\u0110]/g,E:/[\\\\\\\\xC8-\\\\\\\\xCB\\\\\\\\u0112\\\\\\\\u0114\\\\\\\\u0116\\\\\\\\u0118\\\\\\\\u011A]/g,G:/[\\\\\\\\u011C\\\\\\\\u011E\\\\\\\\u0120\\\\\\\\u0122]/g,H:/[\\\\\\\\u0124\\\\\\\\u0126]/g,I:/[\\\\\\\\xCC-\\\\\\\\xCF\\\\\\\\u0128\\\\\\\\u012A\\\\\\\\u012C\\\\\\\\u012E\\\\\\\\u0130]/g,IJ:/[\\\\\\\\u0132]/g,J:/[\\\\\\\\u0134]/g,K:/[\\\\\\\\u0136]/g,L:/[\\\\\\\\u0139\\\\\\\\u013B\\\\\\\\u013D\\\\\\\\u013F\\\\\\\\u0141]/g,N:/[\\\\\\\\xD1\\\\\\\\u0143\\\\\\\\u0145\\\\\\\\u0147\\\\\\\\u014A]/g,O:/[\\\\\\\\xD2-\\\\\\\\xD6\\\\\\\\xD8\\\\\\\\u014C\\\\\\\\u014E\\\\\\\\u0150]/g,OE:/[\\\\\\\\u0152]/g,R:/[\\\\\\\\u0154\\\\\\\\u0156\\\\\\\\u0158]/g,S:/[\\\\\\\\u015A\\\\\\\\u015C\\\\\\\\u015E\\\\\\\\u0160]/g,T:/[\\\\\\\\u0162\\\\\\\\u0164\\\\\\\\u0166]/g,U:/[\\\\\\\\xD9-\\\\\\\\xDC\\\\\\\\u0168\\\\\\\\u016A\\\\\\\\u016C\\\\\\\\u016E\\\\\\\\u0170\\\\\\\\u0172]/g,W:/[\\\\\\\\u0174]/g,Y:/[\\\\\\\\xDD\\\\\\\\u0176\\\\\\\\u0178]/g,Z:/[\\\\\\\\u0179\\\\\\\\u017B\\\\\\\\u017D]/g,a:/[\\\\\\\\xE0-\\\\\\\\xE5\\\\\\\\u0101\\\\\\\\u0103\\\\\\\\u0105]/g,ae:/[\\\\\\\\xE6]/g,c:/[\\\\\\\\xE7\\\\\\\\u0107\\\\\\\\u0109\\\\\\\\u010B\\\\\\\\u010D]/g,d:/[\\\\\\\\u010F\\\\\\\\u0111]/g,e:/[\\\\\\\\xE8-\\\\\\\\xEB\\\\\\\\u0113\\\\\\\\u0115\\\\\\\\u0117\\\\\\\\u0119\\\\\\\\u011B]/g,g:/[\\\\\\\\u011D\\\\\\\\u011F\\\\\\\\u0121\\\\\\\\u0123]/g,i:/[\\\\\\\\xEC-\\\\\\\\xEF\\\\\\\\u0129\\\\\\\\u012B\\\\\\\\u012D\\\\\\\\u012F\\\\\\\\u0131]/g,ij:/[\\\\\\\\u0133]/g,j:/[\\\\\\\\u0135]/g,k:/[\\\\\\\\u0137,\\\\\\\\u0138]/g,l:/[\\\\\\\\u013A\\\\\\\\u013C\\\\\\\\u013E\\\\\\\\u0140\\\\\\\\u0142]/g,n:/[\\\\\\\\xF1\\\\\\\\u0144\\\\\\\\u0146\\\\\\\\u0148\\\\\\\\u014B]/g,p:/[\\\\\\\\xFE]/g,o:/[\\\\\\\\xF2-\\\\\\\\xF6\\\\\\\\xF8\\\\\\\\u014D\\\\\\\\u014F\\\\\\\\u0151]/g,oe:/[\\\\\\\\u0153]/g,r:/[\\\\\\\\u0155\\\\\\\\u0157\\\\\\\\u0159]/g,s:/[\\\\\\\\u015B\\\\\\\\u015D\\\\\\\\u015F\\\\\\\\u0161]/g,t:/[\\\\\\\\u0163\\\\\\\\u0165\\\\\\\\u0167]/g,u:/[\\\\\\\\xF9-\\\\\\\\xFC\\\\\\\\u0169\\\\\\\\u016B\\\\\\\\u016D\\\\\\\\u016F\\\\\\\\u0171\\\\\\\\u0173]/g,w:/[\\\\\\\\u0175]/g,y:/[\\\\\\\\xFD\\\\\\\\xFF\\\\\\\\u0177]/g,z:/[\\\\\\\\u017A\\\\\\\\u017C\\\\\\\\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function C(e){return g(e,!1)?e[0].toUpperCase()+e.slice(1):e}function O(e){return g(e)?e.replace(/(_)/g,\\\\\\\"-\\\\\\\").replace(/[A-Z]/g,((e,t)=\\\\u003e0===t?e:\\\\\\\"-\\\\\\\"+e.toLowerCase())).toLowerCase():e}function L(e){return g(e)?e.replace(/[A-Z]/g,((e,t)=\\\\u003e0===t?e:\\\\\\\".\\\\\\\"+e.toLowerCase())).toLowerCase():e}function E(){const e=new Map;return{on(t,n){let r=e.get(t);return r?r.push(n):r=[n],e.set(t,r),this},off(t,n){let r=e.get(t);return r\\\\u0026\\\\u0026r.splice(r.indexOf(n)\\\\u003e\\\\u003e\\\\u003e0,1),this},emit(t,n){let r=e.get(t);r\\\\u0026\\\\u0026r.slice().map((e=\\\\u003e{e(n)}))},clear(){e.clear()}}}var j=Object.defineProperty,N=Object.defineProperties,_=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,D=(e,t,n)=\\\\u003et in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=\\\\u003e{for(var n in t||(t={}))P.call(t,n)\\\\u0026\\\\u0026D(e,n,t[n]);if(A)for(var n of A(t))T.call(t,n)\\\\u0026\\\\u0026D(e,n,t[n]);return e},R=(e,t)=\\\\u003eN(e,_(t)),B=(e,t)=\\\\u003e{var n={};for(var r in e)P.call(e,r)\\\\u0026\\\\u0026t.indexOf(r)\\\\u003c0\\\\u0026\\\\u0026(n[r]=e[r]);if(null!=e\\\\u0026\\\\u0026A)for(var r of A(e))t.indexOf(r)\\\\u003c0\\\\u0026\\\\u0026T.call(e,r)\\\\u0026\\\\u0026(n[r]=e[r]);return n},W=E();function V(e,t){b(e)?e.push(...t||[]):p(e)\\\\u0026\\\\u0026Object.assign(e,t)}function H(e=\\\\\\\"\\\\\\\",t=\\\\\\\"\\\\\\\"){return function(e){return e.replaceAll(/ /g,\\\\\\\"\\\\\\\").replace(/[^\\\\\\\\w]/g,\\\\\\\"-\\\\\\\")}(`${g(e,!1)\\\\u0026\\\\u0026g(t,!1)?`${e}-`:e}${t}`)}function I(e=\\\\\\\"\\\\\\\",t=\\\\\\\"\\\\\\\"){return`--${H(e,t)}`}function M(e,t=\\\\\\\"\\\\\\\",n=\\\\\\\"\\\\\\\",r=[],s){if(g(e)){const t=/{([^}]*)}/g,o=e.trim();if(function(e=\\\\\\\"\\\\\\\"){return((e.match(/{/g)||[]).length+(e.match(/}/g)||[]).length)%2!=0}(o))return;if(x(o,t)){const e=o.replaceAll(t,(e=\\\\u003e{const t=e.replace(/{|}/g,\\\\\\\"\\\\\\\").split(\\\\\\\".\\\\\\\").filter((e=\\\\u003e!r.some((t=\\\\u003ex(e,t)))));return`var(${I(n,O(t.join(\\\\\\\"-\\\\\\\")))}${u(s)?`, ${s}`:\\\\\\\"\\\\\\\"})`})),i=/(\\\\\\\\d+\\\\\\\\s+[\\\\\\\\+\\\\\\\\-\\\\\\\\*\\\\\\\\/]\\\\\\\\s+\\\\\\\\d+)/g,a=/var\\\\\\\\([^)]+\\\\\\\\)/g;return x(e.replace(a,\\\\\\\"0\\\\\\\"),i)?`calc(${e})`:e}return o}if(function(e){return u(e)\\\\u0026\\\\u0026!isNaN(e)}(e))return e}function z(e,t){return e?`${e}{${t}}`:\\\\\\\"\\\\\\\"}var K=(...e)=\\\\u003eZ(U.getTheme(),...e),Z=(e={},t,n,r)=\\\\u003e{if(t){const{variable:s,options:i}=U.defaults||{},{prefix:a,transform:l}=(null==e?void 0:e.options)||i||{},u=x(t,/{([^}]*)}/g)?t:`{${t}}`;return\\\\\\\"value\\\\\\\"===r||o(r)\\\\u0026\\\\u0026\\\\\\\"strict\\\\\\\"===l?U.getTokenValue(t):M(u,void 0,a,[s.excludedKeyRegex],n)}return\\\\\\\"\\\\\\\"};function q(e,t={}){const n=U.defaults.variable,{prefix:r=n.prefix,selector:s=n.selector,excludedKeyRegex:o=n.excludedKeyRegex}=t,i=(e,t=\\\\\\\"\\\\\\\")=\\\\u003eObject.entries(e).reduce(((e,[n,s])=\\\\u003e{const a=x(n,o)?H(t):H(t,O(n)),l=function(e){return p(e)\\\\u0026\\\\u0026e.hasOwnProperty(\\\\\\\"value\\\\\\\")\\\\u0026\\\\u0026e.hasOwnProperty(\\\\\\\"type\\\\\\\")?e.value:e}(s);if(p(l)){const{variables:t,tokens:n}=i(l,a);V(e.tokens,n),V(e.variables,t)}else e.tokens.push((r?a.replace(`${r}-`,\\\\\\\"\\\\\\\"):a).replaceAll(\\\\\\\"-\\\\\\\",\\\\\\\".\\\\\\\")),function(e,t,n){g(t,!1)\\\\u0026\\\\u0026e.push(`${t}:${n};`)}(e.variables,I(a),M(l,a,r,[o]));return e}),{variables:[],tokens:[]}),{variables:a,tokens:l}=i(e,r);return{value:a,tokens:l,declarations:a.join(\\\\\\\"\\\\\\\"),css:z(s,a.join(\\\\\\\"\\\\\\\"))}}var Y={regex:{rules:{class:{pattern:/^\\\\\\\\.([a-zA-Z][\\\\\\\\w-]*)$/,resolve(e){return{type:\\\\\\\"class\\\\\\\",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\\\\\\\\[(.*)\\\\\\\\]$/,resolve(e){return{type:\\\\\\\"attr\\\\\\\",selector:`:root${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:\\\\\\\"media\\\\\\\",selector:`${e}{:root{[CSS]}}`,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:\\\\\\\"system\\\\\\\",selector:\\\\\\\"@media (prefers-color-scheme: dark){:root{[CSS]}}\\\\\\\",matched:this.pattern.test(e.trim())}}},custom:{resolve:e=\\\\u003e({type:\\\\\\\"custom\\\\\\\",selector:e,matched:!0})}},resolve(e){const t=Object.keys(this.rules).filter((e=\\\\u003e\\\\\\\"custom\\\\\\\"!==e)).map((e=\\\\u003ethis.rules[e]));return[e].flat().map((e=\\\\u003e{var n;return null!=(n=t.map((t=\\\\u003et.resolve(e))).find((e=\\\\u003ee.matched)))?n:this.rules.custom.resolve(e)}))}},_toVariables:(e,t)=\\\\u003eq(e,{prefix:null==t?void 0:t.prefix}),getCommon({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,set:r,defaults:s}){var o,i,a,l,c,d,h;const{preset:f,options:p}=t;let g,y,v,b,S,x,$;if(u(f)\\\\u0026\\\\u0026\\\\\\\"strict\\\\\\\"!==p.transform){const{primitive:t,semantic:n,extend:k}=f,w=n||{},{colorScheme:C}=w,O=B(w,[\\\\\\\"colorScheme\\\\\\\"]),L=k||{},{colorScheme:E}=L,j=B(L,[\\\\\\\"colorScheme\\\\\\\"]),N=C||{},{dark:_}=N,A=B(N,[\\\\\\\"dark\\\\\\\"]),P=E||{},{dark:T}=P,D=B(P,[\\\\\\\"dark\\\\\\\"]),F=u(t)?this._toVariables({primitive:t},p):{},R=u(O)?this._toVariables({semantic:O},p):{},W=u(A)?this._toVariables({light:A},p):{},V=u(_)?this._toVariables({dark:_},p):{},H=u(j)?this._toVariables({semantic:j},p):{},I=u(D)?this._toVariables({light:D},p):{},M=u(T)?this._toVariables({dark:T},p):{},[z,Z]=[null!=(o=F.declarations)?o:\\\\\\\"\\\\\\\",F.tokens],[q,Y]=[null!=(i=R.declarations)?i:\\\\\\\"\\\\\\\",R.tokens||[]],[U,X]=[null!=(a=W.declarations)?a:\\\\\\\"\\\\\\\",W.tokens||[]],[J,G]=[null!=(l=V.declarations)?l:\\\\\\\"\\\\\\\",V.tokens||[]],[Q,ee]=[null!=(c=H.declarations)?c:\\\\\\\"\\\\\\\",H.tokens||[]],[te,ne]=[null!=(d=I.declarations)?d:\\\\\\\"\\\\\\\",I.tokens||[]],[re,se]=[null!=(h=M.declarations)?h:\\\\\\\"\\\\\\\",M.tokens||[]];g=this.transformCSS(e,z,\\\\\\\"light\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s),y=Z;v=`${this.transformCSS(e,`${q}${U}`,\\\\\\\"light\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s)}${this.transformCSS(e,`${J}`,\\\\\\\"dark\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s)}`,b=[...new Set([...Y,...X,...G])];S=`${this.transformCSS(e,`${Q}${te}color-scheme:light`,\\\\\\\"light\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s)}${this.transformCSS(e,`${re}color-scheme:dark`,\\\\\\\"dark\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s)}`,x=[...new Set([...ee,...ne,...se])],$=m(f.css,{dt:K})}return{primitive:{css:g,tokens:y},semantic:{css:v,tokens:b},global:{css:S,tokens:x},style:$}},getPreset({name:e=\\\\\\\"\\\\\\\",preset:t={},options:n,params:r,set:s,defaults:o,selector:i}){var a,l,c;let d,h,f;if(u(t)\\\\u0026\\\\u0026\\\\\\\"strict\\\\\\\"!==n.transform){const r=e.replace(\\\\\\\"-directive\\\\\\\",\\\\\\\"\\\\\\\"),p=t,{colorScheme:g,extend:y,css:v}=p,b=B(p,[\\\\\\\"colorScheme\\\\\\\",\\\\\\\"extend\\\\\\\",\\\\\\\"css\\\\\\\"]),S=y||{},{colorScheme:x}=S,$=B(S,[\\\\\\\"colorScheme\\\\\\\"]),k=g||{},{dark:w}=k,C=B(k,[\\\\\\\"dark\\\\\\\"]),O=x||{},{dark:L}=O,E=B(O,[\\\\\\\"dark\\\\\\\"]),j=u(b)?this._toVariables({[r]:F(F({},b),$)},n):{},N=u(C)?this._toVariables({[r]:F(F({},C),E)},n):{},_=u(w)?this._toVariables({[r]:F(F({},w),L)},n):{},[A,P]=[null!=(a=j.declarations)?a:\\\\\\\"\\\\\\\",j.tokens||[]],[T,D]=[null!=(l=N.declarations)?l:\\\\\\\"\\\\\\\",N.tokens||[]],[R,W]=[null!=(c=_.declarations)?c:\\\\\\\"\\\\\\\",_.tokens||[]];d=`${this.transformCSS(r,`${A}${T}`,\\\\\\\"light\\\\\\\",\\\\\\\"variable\\\\\\\",n,s,o,i)}${this.transformCSS(r,R,\\\\\\\"dark\\\\\\\",\\\\\\\"variable\\\\\\\",n,s,o,i)}`,h=[...new Set([...P,...D,...W])],f=m(v,{dt:K})}return{css:d,tokens:h,style:f}},getPresetC({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,set:r,defaults:s}){var o;const{preset:i,options:a}=t,l=null==(o=null==i?void 0:i.components)?void 0:o[e];return this.getPreset({name:e,preset:l,options:a,params:n,set:r,defaults:s})},getPresetD({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,set:r,defaults:s}){var o;const i=e.replace(\\\\\\\"-directive\\\\\\\",\\\\\\\"\\\\\\\"),{preset:a,options:l}=t,u=null==(o=null==a?void 0:a.directives)?void 0:o[i];return this.getPreset({name:i,preset:u,options:l,params:n,set:r,defaults:s})},applyDarkColorScheme:e=\\\\u003e!(\\\\\\\"none\\\\\\\"===e.darkModeSelector||!1===e.darkModeSelector),getColorSchemeOption(e,t){var n;return this.applyDarkColorScheme(e)?this.regex.resolve(!0===e.darkModeSelector?t.options.darkModeSelector:null!=(n=e.darkModeSelector)?n:t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,r){const{cssLayer:s}=t;if(s){return`@layer ${m(s.order||\\\\\\\"primeui\\\\\\\",n)}`}return\\\\\\\"\\\\\\\"},getCommonStyleSheet({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,props:r={},set:s,defaults:o}){const i=this.getCommon({name:e,theme:t,params:n,set:s,defaults:o}),a=Object.entries(r).reduce(((e,[t,n])=\\\\u003ee.push(`${t}=\\\\\\\"${n}\\\\\\\"`)\\\\u0026\\\\u0026e),[]).join(\\\\\\\" \\\\\\\");return Object.entries(i||{}).reduce(((e,[t,n])=\\\\u003e{if(null==n?void 0:n.css){const r=k(null==n?void 0:n.css),s=`${t}-variables`;e.push(`\\\\u003cstyle type=\\\\\\\"text/css\\\\\\\" data-primevue-style-id=\\\\\\\"${s}\\\\\\\" ${a}\\\\u003e${r}\\\\u003c/style\\\\u003e`)}return e}),[]).join(\\\\\\\"\\\\\\\")},getStyleSheet({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,props:r={},set:s,defaults:o}){var i;const a={name:e,theme:t,params:n,set:s,defaults:o},l=null==(i=e.includes(\\\\\\\"-directive\\\\\\\")?this.getPresetD(a):this.getPresetC(a))?void 0:i.css,u=Object.entries(r).reduce(((e,[t,n])=\\\\u003ee.push(`${t}=\\\\\\\"${n}\\\\\\\"`)\\\\u0026\\\\u0026e),[]).join(\\\\\\\" \\\\\\\");return l?`\\\\u003cstyle type=\\\\\\\"text/css\\\\\\\" data-primevue-style-id=\\\\\\\"${e}-variables\\\\\\\" ${u}\\\\u003e${k(l)}\\\\u003c/style\\\\u003e`:\\\\\\\"\\\\\\\"},createTokens(e={},t,n=\\\\\\\"\\\\\\\",r=\\\\\\\"\\\\\\\",s={}){return Object.entries(e).forEach((([e,i])=\\\\u003e{const a=x(e,t.variable.excludedKeyRegex)?n:n?`${n}.${L(e)}`:L(e),l=r?`${r}.${e}`:e;p(i)?this.createTokens(i,t,a,l,s):(s[a]||(s[a]={paths:[],computed(e,t={}){var n,r;return 1===this.paths.length?null==(n=this.paths[0])?void 0:n.computed(this.paths[0].scheme,t.binding):e\\\\u0026\\\\u0026\\\\\\\"none\\\\\\\"!==e?null==(r=this.paths.find((t=\\\\u003et.scheme===e)))?void 0:r.computed(e,t.binding):this.paths.map((e=\\\\u003ee.computed(e.scheme,t[e.scheme])))}}),s[a].paths.push({path:l,value:i,scheme:l.includes(\\\\\\\"colorScheme.light\\\\\\\")?\\\\\\\"light\\\\\\\":l.includes(\\\\\\\"colorScheme.dark\\\\\\\")?\\\\\\\"dark\\\\\\\":\\\\\\\"none\\\\\\\",computed(e,t={}){const n=/{([^}]*)}/g;let r=i;if(t.name=this.path,t.binding||(t.binding={}),x(i,n)){const o=i.trim().replaceAll(n,(n=\\\\u003e{var r;const o=n.replace(/{|}/g,\\\\\\\"\\\\\\\"),i=null==(r=s[o])?void 0:r.computed(e,t);return b(i)\\\\u0026\\\\u00262===i.length?`light-dark(${i[0].value},${i[1].value})`:null==i?void 0:i.value})),a=/(\\\\\\\\d+\\\\\\\\w*\\\\\\\\s+[\\\\\\\\+\\\\\\\\-\\\\\\\\*\\\\\\\\/]\\\\\\\\s+\\\\\\\\d+\\\\\\\\w*)/g,l=/var\\\\\\\\([^)]+\\\\\\\\)/g;r=x(o.replace(l,\\\\\\\"0\\\\\\\"),a)?`calc(${o})`:o}return o(t.binding)\\\\u0026\\\\u0026delete t.binding,{colorScheme:e,path:this.path,paths:t,value:r.includes(\\\\\\\"undefined\\\\\\\")?void 0:r}}}))})),s},getTokenValue(e,t,n){var r;const s=t.split(\\\\\\\".\\\\\\\").filter((e=\\\\u003e!x(e.toLowerCase(),n.variable.excludedKeyRegex))).join(\\\\\\\".\\\\\\\");const o=t.includes(\\\\\\\"colorScheme.light\\\\\\\")?\\\\\\\"light\\\\\\\":t.includes(\\\\\\\"colorScheme.dark\\\\\\\")?\\\\\\\"dark\\\\\\\":void 0,i=[null==(r=e[s])?void 0:r.computed(o)].flat().filter((e=\\\\u003ee));return 1===i.length?i[0].value:i.reduce(((e={},t)=\\\\u003e{const n=t,{colorScheme:r}=n,s=B(n,[\\\\\\\"colorScheme\\\\\\\"]);return e[r]=s,e}),void 0)},getSelectorRule:(e,t,n,r)=\\\\u003e\\\\\\\"class\\\\\\\"===n||\\\\\\\"attr\\\\\\\"===n?z(u(t)?`${e}${t},${e} ${t}`:e,r):z(e,u(t)?z(t,r):r),transformCSS(e,t,n,r,s={},o,i,a){if(u(t)){const{cssLayer:l}=s;if(\\\\\\\"style\\\\\\\"!==r){const e=this.getColorSchemeOption(s,i);t=\\\\\\\"dark\\\\\\\"===n?e.reduce(((e,{type:n,selector:r})=\\\\u003e(u(r)\\\\u0026\\\\u0026(e+=r.includes(\\\\\\\"[CSS]\\\\\\\")?r.replace(\\\\\\\"[CSS]\\\\\\\",t):this.getSelectorRule(r,a,n,t)),e)),\\\\\\\"\\\\\\\"):z(null!=a?a:\\\\\\\":root\\\\\\\",t)}if(l){const n={name:\\\\\\\"primeui\\\\\\\",order:\\\\\\\"primeui\\\\\\\"};p(l)\\\\u0026\\\\u0026(n.name=m(l.name,{name:e,type:r})),u(n.name)\\\\u0026\\\\u0026(t=z(`@layer ${n.name}`,t),null==o||o.layerNames(n.name))}return t}return\\\\\\\"\\\\\\\"}},U={defaults:{variable:{prefix:\\\\\\\"p\\\\\\\",selector:\\\\\\\":root\\\\\\\",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:\\\\\\\"p\\\\\\\",darkModeSelector:\\\\\\\"system\\\\\\\",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){const{theme:t}=e;t\\\\u0026\\\\u0026(this._theme=R(F({},t),{options:F(F({},this.defaults.options),t.options)}),this._tokens=Y.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return(null==(e=this.theme)?void 0:e.preset)||{}},get options(){var e;return(null==(e=this.theme)?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),W.emit(\\\\\\\"theme:change\\\\\\\",e)},getPreset(){return this.preset},setPreset(e){this._theme=R(F({},this.theme),{preset:e}),this._tokens=Y.createTokens(e,this.defaults),this.clearLoadedStyleNames(),W.emit(\\\\\\\"preset:change\\\\\\\",e),W.emit(\\\\\\\"theme:change\\\\\\\",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=R(F({},this.theme),{options:e}),this.clearLoadedStyleNames(),W.emit(\\\\\\\"options:change\\\\\\\",e),W.emit(\\\\\\\"theme:change\\\\\\\",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return Y.getTokenValue(this.tokens,e,this.defaults)},getCommon(e=\\\\\\\"\\\\\\\",t){return Y.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e=\\\\\\\"\\\\\\\",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPresetC(n)},getDirective(e=\\\\\\\"\\\\\\\",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPresetD(n)},getCustomPreset(e=\\\\\\\"\\\\\\\",t,n,r){const s={name:e,preset:t,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPreset(s)},getLayerOrderCSS(e=\\\\\\\"\\\\\\\"){return Y.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e=\\\\\\\"\\\\\\\",t,n=\\\\\\\"style\\\\\\\",r){return Y.transformCSS(e,t,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e=\\\\\\\"\\\\\\\",t,n={}){return Y.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return Y.getStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:t}){this._loadingStyles.size\\\\u0026\\\\u0026(this._loadingStyles.delete(t),W.emit(`theme:${t}:load`,e),!this._loadingStyles.size\\\\u0026\\\\u0026W.emit(\\\\\\\"theme:load\\\\\\\"))}};function X(e,t){return!!e\\\\u0026\\\\u0026(e.classList?e.classList.contains(t):new RegExp(\\\\\\\"(^| )\\\\\\\"+t+\\\\\\\"( |$)\\\\\\\",\\\\\\\"gi\\\\\\\").test(e.className))}function J(e,t){if(e\\\\u0026\\\\u0026t){const n=t=\\\\u003e{X(e,t)||(e.classList?e.classList.add(t):e.className+=\\\\\\\" \\\\\\\"+t)};[t].flat().filter(Boolean).forEach((e=\\\\u003ee.split(\\\\\\\" \\\\\\\").forEach(n)))}}function G(e){for(const n of null==document?void 0:document.styleSheets)try{for(const t of null==n?void 0:n.cssRules)for(const n of null==t?void 0:t.style)if(e.test(n))return{name:n,value:t.style.getPropertyValue(n).trim()}}catch(t){}return null}function Q(e,t){if(e\\\\u0026\\\\u0026t){const n=t=\\\\u003e{e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(\\\\\\\"(^|\\\\\\\\\\\\\\\\b)\\\\\\\"+t.split(\\\\\\\" \\\\\\\").join(\\\\\\\"|\\\\\\\")+\\\\\\\"(\\\\\\\\\\\\\\\\b|$)\\\\\\\",\\\\\\\"gi\\\\\\\"),\\\\\\\" \\\\\\\")};[t].flat().filter(Boolean).forEach((e=\\\\u003ee.split(\\\\\\\" \\\\\\\").forEach(n)))}}function ee(e){let t={width:0,height:0};return e\\\\u0026\\\\u0026(e.style.visibility=\\\\\\\"hidden\\\\\\\",e.style.display=\\\\\\\"block\\\\\\\",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display=\\\\\\\"none\\\\\\\",e.style.visibility=\\\\\\\"visible\\\\\\\"),t}function te(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName(\\\\\\\"body\\\\\\\")[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}function ne(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}function re(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function se(e,t,n=!0){var r,s,o,i;if(e){const a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ee(e),l=a.height,u=a.width,c=t.offsetHeight,d=t.offsetWidth,h=t.getBoundingClientRect(),f=re(),p=ne(),m=te();let g,y,v=\\\\\\\"top\\\\\\\";h.top+c+l\\\\u003em.height?(g=h.top+f-l,v=\\\\\\\"bottom\\\\\\\",g\\\\u003c0\\\\u0026\\\\u0026(g=f)):g=c+h.top+f,y=h.left+u\\\\u003em.width?Math.max(0,h.left+p+d-u):h.left+p,e.style.top=g+\\\\\\\"px\\\\\\\",e.style.left=y+\\\\\\\"px\\\\\\\",e.style.transformOrigin=v,n\\\\u0026\\\\u0026(e.style.marginTop=\\\\\\\"bottom\\\\\\\"===v?`calc(${null!=(s=null==(r=G(/-anchor-gutter$/))?void 0:r.value)?s:\\\\\\\"2px\\\\\\\"} * -1)`:null!=(i=null==(o=G(/-anchor-gutter$/))?void 0:o.value)?i:\\\\\\\"\\\\\\\")}}function oe(e,t){e\\\\u0026\\\\u0026(\\\\\\\"string\\\\\\\"==typeof t?e.style.cssText=t:Object.entries(t||{}).forEach((([t,n])=\\\\u003ee.style[t]=n)))}function ie(e,t){if(e instanceof HTMLElement){return e.offsetWidth}return 0}function ae(e,t,n=!0){var r,s,o,i;if(e){const a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ee(e),l=t.offsetHeight,u=t.getBoundingClientRect(),c=te();let d,h,f=\\\\\\\"top\\\\\\\";u.top+l+a.height\\\\u003ec.height?(d=-1*a.height,f=\\\\\\\"bottom\\\\\\\",u.top+d\\\\u003c0\\\\u0026\\\\u0026(d=-1*u.top)):d=l,h=a.width\\\\u003ec.width?-1*u.left:u.left+a.width\\\\u003ec.width?-1*(u.left+a.width-c.width):0,e.style.top=d+\\\\\\\"px\\\\\\\",e.style.left=h+\\\\\\\"px\\\\\\\",e.style.transformOrigin=f,n\\\\u0026\\\\u0026(e.style.marginTop=\\\\\\\"bottom\\\\\\\"===f?`calc(${null!=(s=null==(r=G(/-anchor-gutter$/))?void 0:r.value)?s:\\\\\\\"2px\\\\\\\"} * -1)`:null!=(i=null==(o=G(/-anchor-gutter$/))?void 0:o.value)?i:\\\\\\\"\\\\\\\")}}function le(e){return\\\\\\\"object\\\\\\\"==typeof HTMLElement?e instanceof HTMLElement:e\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof e\\\\u0026\\\\u0026null!==e\\\\u0026\\\\u00261===e.nodeType\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"==typeof e.nodeName}var ue=void 0;function ce(e){{if(null!=ue)return ue;let e=document.createElement(\\\\\\\"div\\\\\\\");oe(e,{width:\\\\\\\"100px\\\\\\\",height:\\\\\\\"100px\\\\\\\",overflow:\\\\\\\"scroll\\\\\\\",position:\\\\\\\"absolute\\\\\\\",top:\\\\\\\"-9999px\\\\\\\"}),document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),ue=t,t}}function de(e,t={}){if(le(e)){const n=(t,r)=\\\\u003e{var s,o;const i=(null==(s=null==e?void 0:e.$attrs)?void 0:s[t])?[null==(o=null==e?void 0:e.$attrs)?void 0:o[t]]:[];return[r].flat().reduce(((e,r)=\\\\u003e{if(null!=r){const s=typeof r;if(\\\\\\\"string\\\\\\\"===s||\\\\\\\"number\\\\\\\"===s)e.push(r);else if(\\\\\\\"object\\\\\\\"===s){const s=Array.isArray(r)?n(t,r):Object.entries(r).map((([e,n])=\\\\u003e\\\\\\\"style\\\\\\\"!==t||!n\\\\u0026\\\\u00260!==n?n?e:void 0:`${e.replace(/([a-z])([A-Z])/g,\\\\\\\"$1-$2\\\\\\\").toLowerCase()}:${n}`));e=s.length?e.concat(s.filter((e=\\\\u003e!!e))):e}}return e}),i)};Object.entries(t).forEach((([t,r])=\\\\u003e{if(null!=r){const s=t.match(/^on(.+)/);s?e.addEventListener(s[1].toLowerCase(),r):\\\\\\\"p-bind\\\\\\\"===t||\\\\\\\"pBind\\\\\\\"===t?de(e,r):(r=\\\\\\\"class\\\\\\\"===t?[...new Set(n(\\\\\\\"class\\\\\\\",r))].join(\\\\\\\" \\\\\\\").trim():\\\\\\\"style\\\\\\\"===t?n(\\\\\\\"style\\\\\\\",r).join(\\\\\\\";\\\\\\\").trim():r,(e.$attrs=e.$attrs||{})\\\\u0026\\\\u0026(e.$attrs[t]=r),e.setAttribute(t,r))}}))}}function he(e,t={},...n){if(e){const r=document.createElement(e);return de(r,t),r.append(...n),r}}function fe(e,t){if(e){e.style.opacity=\\\\\\\"0\\\\\\\";let n=+new Date,r=\\\\\\\"0\\\\\\\",s=function(){r=\\\\\\\"\\\\\\\"+(+e.style.opacity+((new Date).getTime()-n)/t),e.style.opacity=r,n=+new Date,+r\\\\u003c1\\\\u0026\\\\u0026(window.requestAnimationFrame\\\\u0026\\\\u0026requestAnimationFrame(s)||setTimeout(s,16))};s()}}function pe(e,t){return le(e)?e.matches(t)?e:e.querySelector(t):null}function me(e,t){e\\\\u0026\\\\u0026document.activeElement!==e\\\\u0026\\\\u0026e.focus(t)}function ge(e,t){if(le(e)){const n=e.getAttribute(t);return isNaN(n)?\\\\\\\"true\\\\\\\"===n||\\\\\\\"false\\\\\\\"===n?\\\\\\\"true\\\\\\\"===n:n:+n}}function ye(e,t=\\\\\\\"\\\\\\\"){let n=function(e,t){return le(e)?Array.from(e.querySelectorAll(t)):[]}(e,`button:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            [href][clientHeight][clientWidth]:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            input:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            select:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            textarea:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            [tabIndex]:not([tabIndex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            [contenteditable]:not([tabIndex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t}`),r=[];for(let s of n)\\\\\\\"none\\\\\\\"!=getComputedStyle(s).display\\\\u0026\\\\u0026\\\\\\\"hidden\\\\\\\"!=getComputedStyle(s).visibility\\\\u0026\\\\u0026r.push(s);return r}function ve(e,t){const n=ye(e,t);return n.length\\\\u003e0?n[0]:null}function be(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0}function Se(e){if(e){e.style.visibility=\\\\\\\"hidden\\\\\\\",e.style.display=\\\\\\\"block\\\\\\\";let t=e.offsetHeight;return e.style.display=\\\\\\\"none\\\\\\\",e.style.visibility=\\\\\\\"visible\\\\\\\",t}return 0}function xe(e){if(e){e.style.visibility=\\\\\\\"hidden\\\\\\\",e.style.display=\\\\\\\"block\\\\\\\";let t=e.offsetWidth;return e.style.display=\\\\\\\"none\\\\\\\",e.style.visibility=\\\\\\\"visible\\\\\\\",t}return 0}function $e(e){if(e){let t=e.parentNode;return t\\\\u0026\\\\u0026t instanceof ShadowRoot\\\\u0026\\\\u0026t.host\\\\u0026\\\\u0026(t=t.host),t}return null}function ke(e,t){const n=ye(e,t);return n.length\\\\u003e0?n[n.length-1]:null}function we(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:\\\\\\\"auto\\\\\\\",left:\\\\\\\"auto\\\\\\\"}}function Ce(e,t){if(e){return e.offsetHeight}return 0}function Oe(e,t=[]){const n=$e(e);return null===n?t:Oe(n,t.concat([n]))}function Le(e){let t=[];if(e){let n=Oe(e);const r=/(auto|scroll)/,s=e=\\\\u003e{try{let t=window.getComputedStyle(e,null);return r.test(t.getPropertyValue(\\\\\\\"overflow\\\\\\\"))||r.test(t.getPropertyValue(\\\\\\\"overflowX\\\\\\\"))||r.test(t.getPropertyValue(\\\\\\\"overflowY\\\\\\\"))}catch(t){return!1}};for(let e of n){let n=1===e.nodeType\\\\u0026\\\\u0026e.dataset.scrollselectors;if(n){let r=n.split(\\\\\\\",\\\\\\\");for(let n of r){let r=pe(e,n);r\\\\u0026\\\\u0026s(r)\\\\u0026\\\\u0026t.push(r)}}9!==e.nodeType\\\\u0026\\\\u0026s(e)\\\\u0026\\\\u0026t.push(e)}}return t}function Ee(e){return!(null==e||!e.nodeName||!$e(e))}function je(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0}function Ne(){return/(android)/i.test(navigator.userAgent)}function _e(){return!(\\\\\\\"undefined\\\\\\\"==typeof window||!window.document||!window.document.createElement)}function Ae(e){return!(!e||null==e.offsetParent)}function Pe(e){return!!e\\\\u0026\\\\u0026\\\\\\\"rtl\\\\\\\"===getComputedStyle(e).direction}function Te(){return\\\\\\\"ontouchstart\\\\\\\"in window||navigator.maxTouchPoints\\\\u003e0||navigator.msMaxTouchPoints\\\\u003e0}function De(e,t){var n,r;if(e){const s=e.parentElement,o=we(s),i=te(),a=e.offsetParent?e.offsetWidth:xe(e),l=e.offsetParent?e.offsetHeight:Se(e),u=ie(null==(n=null==s?void 0:s.children)?void 0:n[0]),c=Ce(null==(r=null==s?void 0:s.children)?void 0:r[0]);let d=\\\\\\\"\\\\\\\",h=\\\\\\\"\\\\\\\";o.left+u+a\\\\u003ei.width-ce()?o.left\\\\u003ca?t%2==1?d=o.left?\\\\\\\"-\\\\\\\"+o.left+\\\\\\\"px\\\\\\\":\\\\\\\"100%\\\\\\\":t%2==0\\\\u0026\\\\u0026(d=i.width-a-ce()+\\\\\\\"px\\\\\\\"):d=\\\\\\\"-100%\\\\\\\":d=\\\\\\\"100%\\\\\\\",h=e.getBoundingClientRect().top+c+l\\\\u003ei.height?`-${l-c}px`:\\\\\\\"0px\\\\\\\",e.style.top=h,e.style.left=d}}function Fe(e,t=\\\\\\\"\\\\\\\",n){le(e)\\\\u0026\\\\u0026null!=n\\\\u0026\\\\u0026e.setAttribute(t,n)}var Re={};function Be(e=\\\\\\\"pui_id_\\\\\\\"){return Re.hasOwnProperty(e)||(Re[e]=0),Re[e]++,`${e}${Re[e]}`}var We=function(){let e=[];const t=(t,n,r=0)=\\\\u003e[...e].reverse().find((e=\\\\u003e!0))||{key:t,value:r},n=e=\\\\u003ee\\\\u0026\\\\u0026parseInt(e.style.zIndex,10)||0;return{get:n,set:(n,r,s)=\\\\u003e{r\\\\u0026\\\\u0026(r.style.zIndex=String(((n,r,s=999)=\\\\u003e{const o=t(n,r,s),i=o.value+(o.key===n?0:s)+1;return e.push({key:n,value:i}),i})(n,!0,s)))},clear:t=\\\\u003e{var r;t\\\\u0026\\\\u0026(r=n(t),e=e.filter((e=\\\\u003ee.value!==r)),t.style.zIndex=\\\\\\\"\\\\\\\")},getCurrent:e=\\\\u003e(e=\\\\u003et(e).value)(e)}}();export{h as $,Q as A,be as B,je as C,ie as D,E,Ce as F,we as G,J as H,ge as I,Ae as J,me as K,Ne as L,S as M,ve as N,ke as O,oe as P,ae as Q,se as R,Te as S,ye as T,f as U,fe as V,ne as W,re as X,te as Y,We as Z,X as _,w as a,Pe as a0,xe as a1,Se as a2,De as a3,Fe as b,_e as c,m as d,d as e,u as f,U as g,K as h,Ee as i,$ as j,W as k,pe as l,k as m,l as n,v as o,g as p,b as q,c as r,de as s,y as t,Be as u,o as v,p as w,C as x,Le as y,he as z};\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"web_version/v2/assets/primeuix-CNMLIuxO.js\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 1,\\n        \\\"line_snippet\\\": \\\"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\\\\\"\\\\\\\"===e||Array.isArray(e)\\\\u0026\\\\u00260===e.length||!(e instanceof Date)\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof e\\\\u0026\\\\u00260===Object.keys(e).length}function i(e,t,n=new WeakSet){if(e===t)return!0;if(!e||!t||\\\\\\\"object\\\\\\\"!=typeof e||\\\\\\\"object\\\\\\\"!=typeof t)return!1;if(n.has(e)||n.has(t))return!1;n.add(e).add(t);let r,s,o,a=Array.isArray(e),l=Array.isArray(t);if(a\\\\u0026\\\\u0026l){if(s=e.length,s!=t.length)return!1;for(r=s;0!=r--;)if(!i(e[r],t[r],n))return!1;return!0}if(a!=l)return!1;let u=e instanceof Date,c=t instanceof Date;if(u!=c)return!1;if(u\\\\u0026\\\\u0026c)return e.getTime()==t.getTime();let d=e instanceof RegExp,h=t instanceof RegExp;if(d!=h)return!1;if(d\\\\u0026\\\\u0026h)return e.toString()==t.toString();let f=Object.keys(e);if(s=f.length,s!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,f[r]))return!1;for(r=s;0!=r--;)if(o=f[r],!i(e[o],t[o],n))return!1;return!0}function a(e,t){return i(e,t)}function l(e){return!!(e\\\\u0026\\\\u0026e.constructor\\\\u0026\\\\u0026e.call\\\\u0026\\\\u0026e.apply)}function u(e){return!o(e)}function c(e,t){if(!e||!t)return null;try{const n=e[t];if(u(n))return n}catch(n){}if(Object.keys(e).length){if(l(t))return t(e);if(-1===t.indexOf(\\\\\\\".\\\\\\\"))return e[t];{let n=t.split(\\\\\\\".\\\\\\\"),r=e;for(let e=0,t=n.length;e\\\\u003ct;++e){if(null==r)return null;r=r[n[e]]}return r}}return null}function d(e,t,n){return n?c(e,n)===c(t,n):a(e,t)}function h(e,t){if(null!=e\\\\u0026\\\\u0026t\\\\u0026\\\\u0026t.length)for(let n of t)if(d(e,n))return!0;return!1}function f(e,t){let n=-1;if(u(e))try{n=e.findLastIndex(t)}catch(r){n=e.lastIndexOf([...e].reverse().find(t))}return n}function p(e,t=!0){return e instanceof Object\\\\u0026\\\\u0026e.constructor===Object\\\\u0026\\\\u0026(t||0!==Object.keys(e).length)}function m(e,...t){return l(e)?e(...t):e}function g(e,t=!0){return\\\\\\\"string\\\\\\\"==typeof e\\\\u0026\\\\u0026(t||\\\\\\\"\\\\\\\"!==e)}function y(e){return g(e)?e.replace(/(-|_)/g,\\\\\\\"\\\\\\\").toLowerCase():e}function v(e,t=\\\\\\\"\\\\\\\",n={}){const r=y(t).split(\\\\\\\".\\\\\\\"),s=r.shift();return s?p(e)?v(m(e[Object.keys(e).find((e=\\\\u003ey(e)===s))||\\\\\\\"\\\\\\\"],n),r.join(\\\\\\\".\\\\\\\"),n):void 0:m(e,n)}function b(e,t=!0){return Array.isArray(e)\\\\u0026\\\\u0026(t||0!==e.length)}function S(e=\\\\\\\"\\\\\\\"){return u(e)\\\\u0026\\\\u00261===e.length\\\\u0026\\\\u0026!!e.match(/\\\\\\\\S| /)}function x(e,t){if(t){const n=t.test(e);return t.lastIndex=0,n}return!1}function $(...e){const o=(e={},i={})=\\\\u003e{const a=((e,o)=\\\\u003e{for(var i in o||(o={}))n.call(o,i)\\\\u0026\\\\u0026s(e,i,o[i]);if(t)for(var i of t(o))r.call(o,i)\\\\u0026\\\\u0026s(e,i,o[i]);return e})({},e);return Object.keys(i).forEach((t=\\\\u003e{p(i[t])\\\\u0026\\\\u0026t in e\\\\u0026\\\\u0026p(e[t])?a[t]=o(e[t],i[t]):a[t]=i[t]})),a};return e.reduce(((e,t,n)=\\\\u003e0===n?t:o(e,t)),{})}function k(e){return e?e.replace(/\\\\\\\\/\\\\\\\\*(?:(?!\\\\\\\\*\\\\\\\\/)[\\\\\\\\s\\\\\\\\S])*\\\\\\\\*\\\\\\\\/|[\\\\\\\\r\\\\\\\\n\\\\\\\\t]+/g,\\\\\\\"\\\\\\\").replace(/ {2,}/g,\\\\\\\" \\\\\\\").replace(/ ([{:}]) /g,\\\\\\\"$1\\\\\\\").replace(/([;,]) /g,\\\\\\\"$1\\\\\\\").replace(/ !/g,\\\\\\\"!\\\\\\\").replace(/: /g,\\\\\\\":\\\\\\\"):e}function w(e){if(e\\\\u0026\\\\u0026/[\\\\\\\\xC0-\\\\\\\\xFF\\\\\\\\u0100-\\\\\\\\u017E]/.test(e)){const t={A:/[\\\\\\\\xC0-\\\\\\\\xC5\\\\\\\\u0100\\\\\\\\u0102\\\\\\\\u0104]/g,AE:/[\\\\\\\\xC6]/g,C:/[\\\\\\\\xC7\\\\\\\\u0106\\\\\\\\u0108\\\\\\\\u010A\\\\\\\\u010C]/g,D:/[\\\\\\\\xD0\\\\\\\\u010E\\\\\\\\u0110]/g,E:/[\\\\\\\\xC8-\\\\\\\\xCB\\\\\\\\u0112\\\\\\\\u0114\\\\\\\\u0116\\\\\\\\u0118\\\\\\\\u011A]/g,G:/[\\\\\\\\u011C\\\\\\\\u011E\\\\\\\\u0120\\\\\\\\u0122]/g,H:/[\\\\\\\\u0124\\\\\\\\u0126]/g,I:/[\\\\\\\\xCC-\\\\\\\\xCF\\\\\\\\u0128\\\\\\\\u012A\\\\\\\\u012C\\\\\\\\u012E\\\\\\\\u0130]/g,IJ:/[\\\\\\\\u0132]/g,J:/[\\\\\\\\u0134]/g,K:/[\\\\\\\\u0136]/g,L:/[\\\\\\\\u0139\\\\\\\\u013B\\\\\\\\u013D\\\\\\\\u013F\\\\\\\\u0141]/g,N:/[\\\\\\\\xD1\\\\\\\\u0143\\\\\\\\u0145\\\\\\\\u0147\\\\\\\\u014A]/g,O:/[\\\\\\\\xD2-\\\\\\\\xD6\\\\\\\\xD8\\\\\\\\u014C\\\\\\\\u014E\\\\\\\\u0150]/g,OE:/[\\\\\\\\u0152]/g,R:/[\\\\\\\\u0154\\\\\\\\u0156\\\\\\\\u0158]/g,S:/[\\\\\\\\u015A\\\\\\\\u015C\\\\\\\\u015E\\\\\\\\u0160]/g,T:/[\\\\\\\\u0162\\\\\\\\u0164\\\\\\\\u0166]/g,U:/[\\\\\\\\xD9-\\\\\\\\xDC\\\\\\\\u0168\\\\\\\\u016A\\\\\\\\u016C\\\\\\\\u016E\\\\\\\\u0170\\\\\\\\u0172]/g,W:/[\\\\\\\\u0174]/g,Y:/[\\\\\\\\xDD\\\\\\\\u0176\\\\\\\\u0178]/g,Z:/[\\\\\\\\u0179\\\\\\\\u017B\\\\\\\\u017D]/g,a:/[\\\\\\\\xE0-\\\\\\\\xE5\\\\\\\\u0101\\\\\\\\u0103\\\\\\\\u0105]/g,ae:/[\\\\\\\\xE6]/g,c:/[\\\\\\\\xE7\\\\\\\\u0107\\\\\\\\u0109\\\\\\\\u010B\\\\\\\\u010D]/g,d:/[\\\\\\\\u010F\\\\\\\\u0111]/g,e:/[\\\\\\\\xE8-\\\\\\\\xEB\\\\\\\\u0113\\\\\\\\u0115\\\\\\\\u0117\\\\\\\\u0119\\\\\\\\u011B]/g,g:/[\\\\\\\\u011D\\\\\\\\u011F\\\\\\\\u0121\\\\\\\\u0123]/g,i:/[\\\\\\\\xEC-\\\\\\\\xEF\\\\\\\\u0129\\\\\\\\u012B\\\\\\\\u012D\\\\\\\\u012F\\\\\\\\u0131]/g,ij:/[\\\\\\\\u0133]/g,j:/[\\\\\\\\u0135]/g,k:/[\\\\\\\\u0137,\\\\\\\\u0138]/g,l:/[\\\\\\\\u013A\\\\\\\\u013C\\\\\\\\u013E\\\\\\\\u0140\\\\\\\\u0142]/g,n:/[\\\\\\\\xF1\\\\\\\\u0144\\\\\\\\u0146\\\\\\\\u0148\\\\\\\\u014B]/g,p:/[\\\\\\\\xFE]/g,o:/[\\\\\\\\xF2-\\\\\\\\xF6\\\\\\\\xF8\\\\\\\\u014D\\\\\\\\u014F\\\\\\\\u0151]/g,oe:/[\\\\\\\\u0153]/g,r:/[\\\\\\\\u0155\\\\\\\\u0157\\\\\\\\u0159]/g,s:/[\\\\\\\\u015B\\\\\\\\u015D\\\\\\\\u015F\\\\\\\\u0161]/g,t:/[\\\\\\\\u0163\\\\\\\\u0165\\\\\\\\u0167]/g,u:/[\\\\\\\\xF9-\\\\\\\\xFC\\\\\\\\u0169\\\\\\\\u016B\\\\\\\\u016D\\\\\\\\u016F\\\\\\\\u0171\\\\\\\\u0173]/g,w:/[\\\\\\\\u0175]/g,y:/[\\\\\\\\xFD\\\\\\\\xFF\\\\\\\\u0177]/g,z:/[\\\\\\\\u017A\\\\\\\\u017C\\\\\\\\u017E]/g};for(let n in t)e=e.replace(t[n],n)}return e}function C(e){return g(e,!1)?e[0].toUpperCase()+e.slice(1):e}function O(e){return g(e)?e.replace(/(_)/g,\\\\\\\"-\\\\\\\").replace(/[A-Z]/g,((e,t)=\\\\u003e0===t?e:\\\\\\\"-\\\\\\\"+e.toLowerCase())).toLowerCase():e}function L(e){return g(e)?e.replace(/[A-Z]/g,((e,t)=\\\\u003e0===t?e:\\\\\\\".\\\\\\\"+e.toLowerCase())).toLowerCase():e}function E(){const e=new Map;return{on(t,n){let r=e.get(t);return r?r.push(n):r=[n],e.set(t,r),this},off(t,n){let r=e.get(t);return r\\\\u0026\\\\u0026r.splice(r.indexOf(n)\\\\u003e\\\\u003e\\\\u003e0,1),this},emit(t,n){let r=e.get(t);r\\\\u0026\\\\u0026r.slice().map((e=\\\\u003e{e(n)}))},clear(){e.clear()}}}var j=Object.defineProperty,N=Object.defineProperties,_=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,D=(e,t,n)=\\\\u003et in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=\\\\u003e{for(var n in t||(t={}))P.call(t,n)\\\\u0026\\\\u0026D(e,n,t[n]);if(A)for(var n of A(t))T.call(t,n)\\\\u0026\\\\u0026D(e,n,t[n]);return e},R=(e,t)=\\\\u003eN(e,_(t)),B=(e,t)=\\\\u003e{var n={};for(var r in e)P.call(e,r)\\\\u0026\\\\u0026t.indexOf(r)\\\\u003c0\\\\u0026\\\\u0026(n[r]=e[r]);if(null!=e\\\\u0026\\\\u0026A)for(var r of A(e))t.indexOf(r)\\\\u003c0\\\\u0026\\\\u0026T.call(e,r)\\\\u0026\\\\u0026(n[r]=e[r]);return n},W=E();function V(e,t){b(e)?e.push(...t||[]):p(e)\\\\u0026\\\\u0026Object.assign(e,t)}function H(e=\\\\\\\"\\\\\\\",t=\\\\\\\"\\\\\\\"){return function(e){return e.replaceAll(/ /g,\\\\\\\"\\\\\\\").replace(/[^\\\\\\\\w]/g,\\\\\\\"-\\\\\\\")}(`${g(e,!1)\\\\u0026\\\\u0026g(t,!1)?`${e}-`:e}${t}`)}function I(e=\\\\\\\"\\\\\\\",t=\\\\\\\"\\\\\\\"){return`--${H(e,t)}`}function M(e,t=\\\\\\\"\\\\\\\",n=\\\\\\\"\\\\\\\",r=[],s){if(g(e)){const t=/{([^}]*)}/g,o=e.trim();if(function(e=\\\\\\\"\\\\\\\"){return((e.match(/{/g)||[]).length+(e.match(/}/g)||[]).length)%2!=0}(o))return;if(x(o,t)){const e=o.replaceAll(t,(e=\\\\u003e{const t=e.replace(/{|}/g,\\\\\\\"\\\\\\\").split(\\\\\\\".\\\\\\\").filter((e=\\\\u003e!r.some((t=\\\\u003ex(e,t)))));return`var(${I(n,O(t.join(\\\\\\\"-\\\\\\\")))}${u(s)?`, ${s}`:\\\\\\\"\\\\\\\"})`})),i=/(\\\\\\\\d+\\\\\\\\s+[\\\\\\\\+\\\\\\\\-\\\\\\\\*\\\\\\\\/]\\\\\\\\s+\\\\\\\\d+)/g,a=/var\\\\\\\\([^)]+\\\\\\\\)/g;return x(e.replace(a,\\\\\\\"0\\\\\\\"),i)?`calc(${e})`:e}return o}if(function(e){return u(e)\\\\u0026\\\\u0026!isNaN(e)}(e))return e}function z(e,t){return e?`${e}{${t}}`:\\\\\\\"\\\\\\\"}var K=(...e)=\\\\u003eZ(U.getTheme(),...e),Z=(e={},t,n,r)=\\\\u003e{if(t){const{variable:s,options:i}=U.defaults||{},{prefix:a,transform:l}=(null==e?void 0:e.options)||i||{},u=x(t,/{([^}]*)}/g)?t:`{${t}}`;return\\\\\\\"value\\\\\\\"===r||o(r)\\\\u0026\\\\u0026\\\\\\\"strict\\\\\\\"===l?U.getTokenValue(t):M(u,void 0,a,[s.excludedKeyRegex],n)}return\\\\\\\"\\\\\\\"};function q(e,t={}){const n=U.defaults.variable,{prefix:r=n.prefix,selector:s=n.selector,excludedKeyRegex:o=n.excludedKeyRegex}=t,i=(e,t=\\\\\\\"\\\\\\\")=\\\\u003eObject.entries(e).reduce(((e,[n,s])=\\\\u003e{const a=x(n,o)?H(t):H(t,O(n)),l=function(e){return p(e)\\\\u0026\\\\u0026e.hasOwnProperty(\\\\\\\"value\\\\\\\")\\\\u0026\\\\u0026e.hasOwnProperty(\\\\\\\"type\\\\\\\")?e.value:e}(s);if(p(l)){const{variables:t,tokens:n}=i(l,a);V(e.tokens,n),V(e.variables,t)}else e.tokens.push((r?a.replace(`${r}-`,\\\\\\\"\\\\\\\"):a).replaceAll(\\\\\\\"-\\\\\\\",\\\\\\\".\\\\\\\")),function(e,t,n){g(t,!1)\\\\u0026\\\\u0026e.push(`${t}:${n};`)}(e.variables,I(a),M(l,a,r,[o]));return e}),{variables:[],tokens:[]}),{variables:a,tokens:l}=i(e,r);return{value:a,tokens:l,declarations:a.join(\\\\\\\"\\\\\\\"),css:z(s,a.join(\\\\\\\"\\\\\\\"))}}var Y={regex:{rules:{class:{pattern:/^\\\\\\\\.([a-zA-Z][\\\\\\\\w-]*)$/,resolve(e){return{type:\\\\\\\"class\\\\\\\",selector:e,matched:this.pattern.test(e.trim())}}},attr:{pattern:/^\\\\\\\\[(.*)\\\\\\\\]$/,resolve(e){return{type:\\\\\\\"attr\\\\\\\",selector:`:root${e}`,matched:this.pattern.test(e.trim())}}},media:{pattern:/^@media (.*)$/,resolve(e){return{type:\\\\\\\"media\\\\\\\",selector:`${e}{:root{[CSS]}}`,matched:this.pattern.test(e.trim())}}},system:{pattern:/^system$/,resolve(e){return{type:\\\\\\\"system\\\\\\\",selector:\\\\\\\"@media (prefers-color-scheme: dark){:root{[CSS]}}\\\\\\\",matched:this.pattern.test(e.trim())}}},custom:{resolve:e=\\\\u003e({type:\\\\\\\"custom\\\\\\\",selector:e,matched:!0})}},resolve(e){const t=Object.keys(this.rules).filter((e=\\\\u003e\\\\\\\"custom\\\\\\\"!==e)).map((e=\\\\u003ethis.rules[e]));return[e].flat().map((e=\\\\u003e{var n;return null!=(n=t.map((t=\\\\u003et.resolve(e))).find((e=\\\\u003ee.matched)))?n:this.rules.custom.resolve(e)}))}},_toVariables:(e,t)=\\\\u003eq(e,{prefix:null==t?void 0:t.prefix}),getCommon({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,set:r,defaults:s}){var o,i,a,l,c,d,h;const{preset:f,options:p}=t;let g,y,v,b,S,x,$;if(u(f)\\\\u0026\\\\u0026\\\\\\\"strict\\\\\\\"!==p.transform){const{primitive:t,semantic:n,extend:k}=f,w=n||{},{colorScheme:C}=w,O=B(w,[\\\\\\\"colorScheme\\\\\\\"]),L=k||{},{colorScheme:E}=L,j=B(L,[\\\\\\\"colorScheme\\\\\\\"]),N=C||{},{dark:_}=N,A=B(N,[\\\\\\\"dark\\\\\\\"]),P=E||{},{dark:T}=P,D=B(P,[\\\\\\\"dark\\\\\\\"]),F=u(t)?this._toVariables({primitive:t},p):{},R=u(O)?this._toVariables({semantic:O},p):{},W=u(A)?this._toVariables({light:A},p):{},V=u(_)?this._toVariables({dark:_},p):{},H=u(j)?this._toVariables({semantic:j},p):{},I=u(D)?this._toVariables({light:D},p):{},M=u(T)?this._toVariables({dark:T},p):{},[z,Z]=[null!=(o=F.declarations)?o:\\\\\\\"\\\\\\\",F.tokens],[q,Y]=[null!=(i=R.declarations)?i:\\\\\\\"\\\\\\\",R.tokens||[]],[U,X]=[null!=(a=W.declarations)?a:\\\\\\\"\\\\\\\",W.tokens||[]],[J,G]=[null!=(l=V.declarations)?l:\\\\\\\"\\\\\\\",V.tokens||[]],[Q,ee]=[null!=(c=H.declarations)?c:\\\\\\\"\\\\\\\",H.tokens||[]],[te,ne]=[null!=(d=I.declarations)?d:\\\\\\\"\\\\\\\",I.tokens||[]],[re,se]=[null!=(h=M.declarations)?h:\\\\\\\"\\\\\\\",M.tokens||[]];g=this.transformCSS(e,z,\\\\\\\"light\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s),y=Z;v=`${this.transformCSS(e,`${q}${U}`,\\\\\\\"light\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s)}${this.transformCSS(e,`${J}`,\\\\\\\"dark\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s)}`,b=[...new Set([...Y,...X,...G])];S=`${this.transformCSS(e,`${Q}${te}color-scheme:light`,\\\\\\\"light\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s)}${this.transformCSS(e,`${re}color-scheme:dark`,\\\\\\\"dark\\\\\\\",\\\\\\\"variable\\\\\\\",p,r,s)}`,x=[...new Set([...ee,...ne,...se])],$=m(f.css,{dt:K})}return{primitive:{css:g,tokens:y},semantic:{css:v,tokens:b},global:{css:S,tokens:x},style:$}},getPreset({name:e=\\\\\\\"\\\\\\\",preset:t={},options:n,params:r,set:s,defaults:o,selector:i}){var a,l,c;let d,h,f;if(u(t)\\\\u0026\\\\u0026\\\\\\\"strict\\\\\\\"!==n.transform){const r=e.replace(\\\\\\\"-directive\\\\\\\",\\\\\\\"\\\\\\\"),p=t,{colorScheme:g,extend:y,css:v}=p,b=B(p,[\\\\\\\"colorScheme\\\\\\\",\\\\\\\"extend\\\\\\\",\\\\\\\"css\\\\\\\"]),S=y||{},{colorScheme:x}=S,$=B(S,[\\\\\\\"colorScheme\\\\\\\"]),k=g||{},{dark:w}=k,C=B(k,[\\\\\\\"dark\\\\\\\"]),O=x||{},{dark:L}=O,E=B(O,[\\\\\\\"dark\\\\\\\"]),j=u(b)?this._toVariables({[r]:F(F({},b),$)},n):{},N=u(C)?this._toVariables({[r]:F(F({},C),E)},n):{},_=u(w)?this._toVariables({[r]:F(F({},w),L)},n):{},[A,P]=[null!=(a=j.declarations)?a:\\\\\\\"\\\\\\\",j.tokens||[]],[T,D]=[null!=(l=N.declarations)?l:\\\\\\\"\\\\\\\",N.tokens||[]],[R,W]=[null!=(c=_.declarations)?c:\\\\\\\"\\\\\\\",_.tokens||[]];d=`${this.transformCSS(r,`${A}${T}`,\\\\\\\"light\\\\\\\",\\\\\\\"variable\\\\\\\",n,s,o,i)}${this.transformCSS(r,R,\\\\\\\"dark\\\\\\\",\\\\\\\"variable\\\\\\\",n,s,o,i)}`,h=[...new Set([...P,...D,...W])],f=m(v,{dt:K})}return{css:d,tokens:h,style:f}},getPresetC({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,set:r,defaults:s}){var o;const{preset:i,options:a}=t,l=null==(o=null==i?void 0:i.components)?void 0:o[e];return this.getPreset({name:e,preset:l,options:a,params:n,set:r,defaults:s})},getPresetD({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,set:r,defaults:s}){var o;const i=e.replace(\\\\\\\"-directive\\\\\\\",\\\\\\\"\\\\\\\"),{preset:a,options:l}=t,u=null==(o=null==a?void 0:a.directives)?void 0:o[i];return this.getPreset({name:i,preset:u,options:l,params:n,set:r,defaults:s})},applyDarkColorScheme:e=\\\\u003e!(\\\\\\\"none\\\\\\\"===e.darkModeSelector||!1===e.darkModeSelector),getColorSchemeOption(e,t){var n;return this.applyDarkColorScheme(e)?this.regex.resolve(!0===e.darkModeSelector?t.options.darkModeSelector:null!=(n=e.darkModeSelector)?n:t.options.darkModeSelector):[]},getLayerOrder(e,t={},n,r){const{cssLayer:s}=t;if(s){return`@layer ${m(s.order||\\\\\\\"primeui\\\\\\\",n)}`}return\\\\\\\"\\\\\\\"},getCommonStyleSheet({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,props:r={},set:s,defaults:o}){const i=this.getCommon({name:e,theme:t,params:n,set:s,defaults:o}),a=Object.entries(r).reduce(((e,[t,n])=\\\\u003ee.push(`${t}=\\\\\\\"${n}\\\\\\\"`)\\\\u0026\\\\u0026e),[]).join(\\\\\\\" \\\\\\\");return Object.entries(i||{}).reduce(((e,[t,n])=\\\\u003e{if(null==n?void 0:n.css){const r=k(null==n?void 0:n.css),s=`${t}-variables`;e.push(`\\\\u003cstyle type=\\\\\\\"text/css\\\\\\\" data-primevue-style-id=\\\\\\\"${s}\\\\\\\" ${a}\\\\u003e${r}\\\\u003c/style\\\\u003e`)}return e}),[]).join(\\\\\\\"\\\\\\\")},getStyleSheet({name:e=\\\\\\\"\\\\\\\",theme:t={},params:n,props:r={},set:s,defaults:o}){var i;const a={name:e,theme:t,params:n,set:s,defaults:o},l=null==(i=e.includes(\\\\\\\"-directive\\\\\\\")?this.getPresetD(a):this.getPresetC(a))?void 0:i.css,u=Object.entries(r).reduce(((e,[t,n])=\\\\u003ee.push(`${t}=\\\\\\\"${n}\\\\\\\"`)\\\\u0026\\\\u0026e),[]).join(\\\\\\\" \\\\\\\");return l?`\\\\u003cstyle type=\\\\\\\"text/css\\\\\\\" data-primevue-style-id=\\\\\\\"${e}-variables\\\\\\\" ${u}\\\\u003e${k(l)}\\\\u003c/style\\\\u003e`:\\\\\\\"\\\\\\\"},createTokens(e={},t,n=\\\\\\\"\\\\\\\",r=\\\\\\\"\\\\\\\",s={}){return Object.entries(e).forEach((([e,i])=\\\\u003e{const a=x(e,t.variable.excludedKeyRegex)?n:n?`${n}.${L(e)}`:L(e),l=r?`${r}.${e}`:e;p(i)?this.createTokens(i,t,a,l,s):(s[a]||(s[a]={paths:[],computed(e,t={}){var n,r;return 1===this.paths.length?null==(n=this.paths[0])?void 0:n.computed(this.paths[0].scheme,t.binding):e\\\\u0026\\\\u0026\\\\\\\"none\\\\\\\"!==e?null==(r=this.paths.find((t=\\\\u003et.scheme===e)))?void 0:r.computed(e,t.binding):this.paths.map((e=\\\\u003ee.computed(e.scheme,t[e.scheme])))}}),s[a].paths.push({path:l,value:i,scheme:l.includes(\\\\\\\"colorScheme.light\\\\\\\")?\\\\\\\"light\\\\\\\":l.includes(\\\\\\\"colorScheme.dark\\\\\\\")?\\\\\\\"dark\\\\\\\":\\\\\\\"none\\\\\\\",computed(e,t={}){const n=/{([^}]*)}/g;let r=i;if(t.name=this.path,t.binding||(t.binding={}),x(i,n)){const o=i.trim().replaceAll(n,(n=\\\\u003e{var r;const o=n.replace(/{|}/g,\\\\\\\"\\\\\\\"),i=null==(r=s[o])?void 0:r.computed(e,t);return b(i)\\\\u0026\\\\u00262===i.length?`light-dark(${i[0].value},${i[1].value})`:null==i?void 0:i.value})),a=/(\\\\\\\\d+\\\\\\\\w*\\\\\\\\s+[\\\\\\\\+\\\\\\\\-\\\\\\\\*\\\\\\\\/]\\\\\\\\s+\\\\\\\\d+\\\\\\\\w*)/g,l=/var\\\\\\\\([^)]+\\\\\\\\)/g;r=x(o.replace(l,\\\\\\\"0\\\\\\\"),a)?`calc(${o})`:o}return o(t.binding)\\\\u0026\\\\u0026delete t.binding,{colorScheme:e,path:this.path,paths:t,value:r.includes(\\\\\\\"undefined\\\\\\\")?void 0:r}}}))})),s},getTokenValue(e,t,n){var r;const s=t.split(\\\\\\\".\\\\\\\").filter((e=\\\\u003e!x(e.toLowerCase(),n.variable.excludedKeyRegex))).join(\\\\\\\".\\\\\\\");const o=t.includes(\\\\\\\"colorScheme.light\\\\\\\")?\\\\\\\"light\\\\\\\":t.includes(\\\\\\\"colorScheme.dark\\\\\\\")?\\\\\\\"dark\\\\\\\":void 0,i=[null==(r=e[s])?void 0:r.computed(o)].flat().filter((e=\\\\u003ee));return 1===i.length?i[0].value:i.reduce(((e={},t)=\\\\u003e{const n=t,{colorScheme:r}=n,s=B(n,[\\\\\\\"colorScheme\\\\\\\"]);return e[r]=s,e}),void 0)},getSelectorRule:(e,t,n,r)=\\\\u003e\\\\\\\"class\\\\\\\"===n||\\\\\\\"attr\\\\\\\"===n?z(u(t)?`${e}${t},${e} ${t}`:e,r):z(e,u(t)?z(t,r):r),transformCSS(e,t,n,r,s={},o,i,a){if(u(t)){const{cssLayer:l}=s;if(\\\\\\\"style\\\\\\\"!==r){const e=this.getColorSchemeOption(s,i);t=\\\\\\\"dark\\\\\\\"===n?e.reduce(((e,{type:n,selector:r})=\\\\u003e(u(r)\\\\u0026\\\\u0026(e+=r.includes(\\\\\\\"[CSS]\\\\\\\")?r.replace(\\\\\\\"[CSS]\\\\\\\",t):this.getSelectorRule(r,a,n,t)),e)),\\\\\\\"\\\\\\\"):z(null!=a?a:\\\\\\\":root\\\\\\\",t)}if(l){const n={name:\\\\\\\"primeui\\\\\\\",order:\\\\\\\"primeui\\\\\\\"};p(l)\\\\u0026\\\\u0026(n.name=m(l.name,{name:e,type:r})),u(n.name)\\\\u0026\\\\u0026(t=z(`@layer ${n.name}`,t),null==o||o.layerNames(n.name))}return t}return\\\\\\\"\\\\\\\"}},U={defaults:{variable:{prefix:\\\\\\\"p\\\\\\\",selector:\\\\\\\":root\\\\\\\",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:\\\\\\\"p\\\\\\\",darkModeSelector:\\\\\\\"system\\\\\\\",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(e={}){const{theme:t}=e;t\\\\u0026\\\\u0026(this._theme=R(F({},t),{options:F(F({},this.defaults.options),t.options)}),this._tokens=Y.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var e;return(null==(e=this.theme)?void 0:e.preset)||{}},get options(){var e;return(null==(e=this.theme)?void 0:e.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(e){this.update({theme:e}),W.emit(\\\\\\\"theme:change\\\\\\\",e)},getPreset(){return this.preset},setPreset(e){this._theme=R(F({},this.theme),{preset:e}),this._tokens=Y.createTokens(e,this.defaults),this.clearLoadedStyleNames(),W.emit(\\\\\\\"preset:change\\\\\\\",e),W.emit(\\\\\\\"theme:change\\\\\\\",this.theme)},getOptions(){return this.options},setOptions(e){this._theme=R(F({},this.theme),{options:e}),this.clearLoadedStyleNames(),W.emit(\\\\\\\"options:change\\\\\\\",e),W.emit(\\\\\\\"theme:change\\\\\\\",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(e){this._layerNames.add(e)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){return this._loadedStyleNames.has(e)},setLoadedStyleName(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(e){return Y.getTokenValue(this.tokens,e,this.defaults)},getCommon(e=\\\\\\\"\\\\\\\",t){return Y.getCommon({name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(e=\\\\\\\"\\\\\\\",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPresetC(n)},getDirective(e=\\\\\\\"\\\\\\\",t){const n={name:e,theme:this.theme,params:t,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPresetD(n)},getCustomPreset(e=\\\\\\\"\\\\\\\",t,n,r){const s={name:e,preset:t,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Y.getPreset(s)},getLayerOrderCSS(e=\\\\\\\"\\\\\\\"){return Y.getLayerOrder(e,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(e=\\\\\\\"\\\\\\\",t,n=\\\\\\\"style\\\\\\\",r){return Y.transformCSS(e,t,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(e=\\\\\\\"\\\\\\\",t,n={}){return Y.getCommonStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(e,t,n={}){return Y.getStyleSheet({name:e,theme:this.theme,params:t,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(e){this._loadingStyles.add(e)},onStyleUpdated(e){this._loadingStyles.add(e)},onStyleLoaded(e,{name:t}){this._loadingStyles.size\\\\u0026\\\\u0026(this._loadingStyles.delete(t),W.emit(`theme:${t}:load`,e),!this._loadingStyles.size\\\\u0026\\\\u0026W.emit(\\\\\\\"theme:load\\\\\\\"))}};function X(e,t){return!!e\\\\u0026\\\\u0026(e.classList?e.classList.contains(t):new RegExp(\\\\\\\"(^| )\\\\\\\"+t+\\\\\\\"( |$)\\\\\\\",\\\\\\\"gi\\\\\\\").test(e.className))}function J(e,t){if(e\\\\u0026\\\\u0026t){const n=t=\\\\u003e{X(e,t)||(e.classList?e.classList.add(t):e.className+=\\\\\\\" \\\\\\\"+t)};[t].flat().filter(Boolean).forEach((e=\\\\u003ee.split(\\\\\\\" \\\\\\\").forEach(n)))}}function G(e){for(const n of null==document?void 0:document.styleSheets)try{for(const t of null==n?void 0:n.cssRules)for(const n of null==t?void 0:t.style)if(e.test(n))return{name:n,value:t.style.getPropertyValue(n).trim()}}catch(t){}return null}function Q(e,t){if(e\\\\u0026\\\\u0026t){const n=t=\\\\u003e{e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(\\\\\\\"(^|\\\\\\\\\\\\\\\\b)\\\\\\\"+t.split(\\\\\\\" \\\\\\\").join(\\\\\\\"|\\\\\\\")+\\\\\\\"(\\\\\\\\\\\\\\\\b|$)\\\\\\\",\\\\\\\"gi\\\\\\\"),\\\\\\\" \\\\\\\")};[t].flat().filter(Boolean).forEach((e=\\\\u003ee.split(\\\\\\\" \\\\\\\").forEach(n)))}}function ee(e){let t={width:0,height:0};return e\\\\u0026\\\\u0026(e.style.visibility=\\\\\\\"hidden\\\\\\\",e.style.display=\\\\\\\"block\\\\\\\",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display=\\\\\\\"none\\\\\\\",e.style.visibility=\\\\\\\"visible\\\\\\\"),t}function te(){let e=window,t=document,n=t.documentElement,r=t.getElementsByTagName(\\\\\\\"body\\\\\\\")[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}function ne(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}function re(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}function se(e,t,n=!0){var r,s,o,i;if(e){const a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ee(e),l=a.height,u=a.width,c=t.offsetHeight,d=t.offsetWidth,h=t.getBoundingClientRect(),f=re(),p=ne(),m=te();let g,y,v=\\\\\\\"top\\\\\\\";h.top+c+l\\\\u003em.height?(g=h.top+f-l,v=\\\\\\\"bottom\\\\\\\",g\\\\u003c0\\\\u0026\\\\u0026(g=f)):g=c+h.top+f,y=h.left+u\\\\u003em.width?Math.max(0,h.left+p+d-u):h.left+p,e.style.top=g+\\\\\\\"px\\\\\\\",e.style.left=y+\\\\\\\"px\\\\\\\",e.style.transformOrigin=v,n\\\\u0026\\\\u0026(e.style.marginTop=\\\\\\\"bottom\\\\\\\"===v?`calc(${null!=(s=null==(r=G(/-anchor-gutter$/))?void 0:r.value)?s:\\\\\\\"2px\\\\\\\"} * -1)`:null!=(i=null==(o=G(/-anchor-gutter$/))?void 0:o.value)?i:\\\\\\\"\\\\\\\")}}function oe(e,t){e\\\\u0026\\\\u0026(\\\\\\\"string\\\\\\\"==typeof t?e.style.cssText=t:Object.entries(t||{}).forEach((([t,n])=\\\\u003ee.style[t]=n)))}function ie(e,t){if(e instanceof HTMLElement){return e.offsetWidth}return 0}function ae(e,t,n=!0){var r,s,o,i;if(e){const a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:ee(e),l=t.offsetHeight,u=t.getBoundingClientRect(),c=te();let d,h,f=\\\\\\\"top\\\\\\\";u.top+l+a.height\\\\u003ec.height?(d=-1*a.height,f=\\\\\\\"bottom\\\\\\\",u.top+d\\\\u003c0\\\\u0026\\\\u0026(d=-1*u.top)):d=l,h=a.width\\\\u003ec.width?-1*u.left:u.left+a.width\\\\u003ec.width?-1*(u.left+a.width-c.width):0,e.style.top=d+\\\\\\\"px\\\\\\\",e.style.left=h+\\\\\\\"px\\\\\\\",e.style.transformOrigin=f,n\\\\u0026\\\\u0026(e.style.marginTop=\\\\\\\"bottom\\\\\\\"===f?`calc(${null!=(s=null==(r=G(/-anchor-gutter$/))?void 0:r.value)?s:\\\\\\\"2px\\\\\\\"} * -1)`:null!=(i=null==(o=G(/-anchor-gutter$/))?void 0:o.value)?i:\\\\\\\"\\\\\\\")}}function le(e){return\\\\\\\"object\\\\\\\"==typeof HTMLElement?e instanceof HTMLElement:e\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof e\\\\u0026\\\\u0026null!==e\\\\u0026\\\\u00261===e.nodeType\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"==typeof e.nodeName}var ue=void 0;function ce(e){{if(null!=ue)return ue;let e=document.createElement(\\\\\\\"div\\\\\\\");oe(e,{width:\\\\\\\"100px\\\\\\\",height:\\\\\\\"100px\\\\\\\",overflow:\\\\\\\"scroll\\\\\\\",position:\\\\\\\"absolute\\\\\\\",top:\\\\\\\"-9999px\\\\\\\"}),document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),ue=t,t}}function de(e,t={}){if(le(e)){const n=(t,r)=\\\\u003e{var s,o;const i=(null==(s=null==e?void 0:e.$attrs)?void 0:s[t])?[null==(o=null==e?void 0:e.$attrs)?void 0:o[t]]:[];return[r].flat().reduce(((e,r)=\\\\u003e{if(null!=r){const s=typeof r;if(\\\\\\\"string\\\\\\\"===s||\\\\\\\"number\\\\\\\"===s)e.push(r);else if(\\\\\\\"object\\\\\\\"===s){const s=Array.isArray(r)?n(t,r):Object.entries(r).map((([e,n])=\\\\u003e\\\\\\\"style\\\\\\\"!==t||!n\\\\u0026\\\\u00260!==n?n?e:void 0:`${e.replace(/([a-z])([A-Z])/g,\\\\\\\"$1-$2\\\\\\\").toLowerCase()}:${n}`));e=s.length?e.concat(s.filter((e=\\\\u003e!!e))):e}}return e}),i)};Object.entries(t).forEach((([t,r])=\\\\u003e{if(null!=r){const s=t.match(/^on(.+)/);s?e.addEventListener(s[1].toLowerCase(),r):\\\\\\\"p-bind\\\\\\\"===t||\\\\\\\"pBind\\\\\\\"===t?de(e,r):(r=\\\\\\\"class\\\\\\\"===t?[...new Set(n(\\\\\\\"class\\\\\\\",r))].join(\\\\\\\" \\\\\\\").trim():\\\\\\\"style\\\\\\\"===t?n(\\\\\\\"style\\\\\\\",r).join(\\\\\\\";\\\\\\\").trim():r,(e.$attrs=e.$attrs||{})\\\\u0026\\\\u0026(e.$attrs[t]=r),e.setAttribute(t,r))}}))}}function he(e,t={},...n){if(e){const r=document.createElement(e);return de(r,t),r.append(...n),r}}function fe(e,t){if(e){e.style.opacity=\\\\\\\"0\\\\\\\";let n=+new Date,r=\\\\\\\"0\\\\\\\",s=function(){r=\\\\\\\"\\\\\\\"+(+e.style.opacity+((new Date).getTime()-n)/t),e.style.opacity=r,n=+new Date,+r\\\\u003c1\\\\u0026\\\\u0026(window.requestAnimationFrame\\\\u0026\\\\u0026requestAnimationFrame(s)||setTimeout(s,16))};s()}}function pe(e,t){return le(e)?e.matches(t)?e:e.querySelector(t):null}function me(e,t){e\\\\u0026\\\\u0026document.activeElement!==e\\\\u0026\\\\u0026e.focus(t)}function ge(e,t){if(le(e)){const n=e.getAttribute(t);return isNaN(n)?\\\\\\\"true\\\\\\\"===n||\\\\\\\"false\\\\\\\"===n?\\\\\\\"true\\\\\\\"===n:n:+n}}function ye(e,t=\\\\\\\"\\\\\\\"){let n=function(e,t){return le(e)?Array.from(e.querySelectorAll(t)):[]}(e,`button:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            [href][clientHeight][clientWidth]:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            input:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            select:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            textarea:not([tabindex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            [tabIndex]:not([tabIndex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t},\\\\\\\\n            [contenteditable]:not([tabIndex = \\\\\\\"-1\\\\\\\"]):not([disabled]):not([style*=\\\\\\\"display:none\\\\\\\"]):not([hidden])${t}`),r=[];for(let s of n)\\\\\\\"none\\\\\\\"!=getComputedStyle(s).display\\\\u0026\\\\u0026\\\\\\\"hidden\\\\\\\"!=getComputedStyle(s).visibility\\\\u0026\\\\u0026r.push(s);return r}function ve(e,t){const n=ye(e,t);return n.length\\\\u003e0?n[0]:null}function be(e){if(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}return 0}function Se(e){if(e){e.style.visibility=\\\\\\\"hidden\\\\\\\",e.style.display=\\\\\\\"block\\\\\\\";let t=e.offsetHeight;return e.style.display=\\\\\\\"none\\\\\\\",e.style.visibility=\\\\\\\"visible\\\\\\\",t}return 0}function xe(e){if(e){e.style.visibility=\\\\\\\"hidden\\\\\\\",e.style.display=\\\\\\\"block\\\\\\\";let t=e.offsetWidth;return e.style.display=\\\\\\\"none\\\\\\\",e.style.visibility=\\\\\\\"visible\\\\\\\",t}return 0}function $e(e){if(e){let t=e.parentNode;return t\\\\u0026\\\\u0026t instanceof ShadowRoot\\\\u0026\\\\u0026t.host\\\\u0026\\\\u0026(t=t.host),t}return null}function ke(e,t){const n=ye(e,t);return n.length\\\\u003e0?n[n.length-1]:null}function we(e){if(e){let t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:\\\\\\\"auto\\\\\\\",left:\\\\\\\"auto\\\\\\\"}}function Ce(e,t){if(e){return e.offsetHeight}return 0}function Oe(e,t=[]){const n=$e(e);return null===n?t:Oe(n,t.concat([n]))}function Le(e){let t=[];if(e){let n=Oe(e);const r=/(auto|scroll)/,s=e=\\\\u003e{try{let t=window.getComputedStyle(e,null);return r.test(t.getPropertyValue(\\\\\\\"overflow\\\\\\\"))||r.test(t.getPropertyValue(\\\\\\\"overflowX\\\\\\\"))||r.test(t.getPropertyValue(\\\\\\\"overflowY\\\\\\\"))}catch(t){return!1}};for(let e of n){let n=1===e.nodeType\\\\u0026\\\\u0026e.dataset.scrollselectors;if(n){let r=n.split(\\\\\\\",\\\\\\\");for(let n of r){let r=pe(e,n);r\\\\u0026\\\\u0026s(r)\\\\u0026\\\\u0026t.push(r)}}9!==e.nodeType\\\\u0026\\\\u0026s(e)\\\\u0026\\\\u0026t.push(e)}}return t}function Ee(e){return!(null==e||!e.nodeName||!$e(e))}function je(e){if(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}return 0}function Ne(){return/(android)/i.test(navigator.userAgent)}function _e(){return!(\\\\\\\"undefined\\\\\\\"==typeof window||!window.document||!window.document.createElement)}function Ae(e){return!(!e||null==e.offsetParent)}function Pe(e){return!!e\\\\u0026\\\\u0026\\\\\\\"rtl\\\\\\\"===getComputedStyle(e).direction}function Te(){return\\\\\\\"ontouchstart\\\\\\\"in window||navigator.maxTouchPoints\\\\u003e0||navigator.msMaxTouchPoints\\\\u003e0}function De(e,t){var n,r;if(e){const s=e.parentElement,o=we(s),i=te(),a=e.offsetParent?e.offsetWidth:xe(e),l=e.offsetParent?e.offsetHeight:Se(e),u=ie(null==(n=null==s?void 0:s.children)?void 0:n[0]),c=Ce(null==(r=null==s?void 0:s.children)?void 0:r[0]);let d=\\\\\\\"\\\\\\\",h=\\\\\\\"\\\\\\\";o.left+u+a\\\\u003ei.width-ce()?o.left\\\\u003ca?t%2==1?d=o.left?\\\\\\\"-\\\\\\\"+o.left+\\\\\\\"px\\\\\\\":\\\\\\\"100%\\\\\\\":t%2==0\\\\u0026\\\\u0026(d=i.width-a-ce()+\\\\\\\"px\\\\\\\"):d=\\\\\\\"-100%\\\\\\\":d=\\\\\\\"100%\\\\\\\",h=e.getBoundingClientRect().top+c+l\\\\u003ei.height?`-${l-c}px`:\\\\\\\"0px\\\\\\\",e.style.top=h,e.style.left=d}}function Fe(e,t=\\\\\\\"\\\\\\\",n){le(e)\\\\u0026\\\\u0026null!=n\\\\u0026\\\\u0026e.setAttribute(t,n)}var Re={};function Be(e=\\\\\\\"pui_id_\\\\\\\"){return Re.hasOwnProperty(e)||(Re[e]=0),Re[e]++,`${e}${Re[e]}`}var We=function(){let e=[];const t=(t,n,r=0)=\\\\u003e[...e].reverse().find((e=\\\\u003e!0))||{key:t,value:r},n=e=\\\\u003ee\\\\u0026\\\\u0026parseInt(e.style.zIndex,10)||0;return{get:n,set:(n,r,s)=\\\\u003e{r\\\\u0026\\\\u0026(r.style.zIndex=String(((n,r,s=999)=\\\\u003e{const o=t(n,r,s),i=o.value+(o.key===n?0:s)+1;return e.push({key:n,value:i}),i})(n,!0,s)))},clear:t=\\\\u003e{var r;t\\\\u0026\\\\u0026(r=n(t),e=e.filter((e=\\\\u003ee.value!==r)),t.style.zIndex=\\\\\\\"\\\\\\\")},getCurrent:e=\\\\u003e(e=\\\\u003et(e).value)(e)}}();export{h as $,Q as A,be as B,je as C,ie as D,E,Ce as F,we as G,J as H,ge as I,Ae as J,me as K,Ne as L,S as M,ve as N,ke as O,oe as P,ae as Q,se as R,Te as S,ye as T,f as U,fe as V,ne as W,re as X,te as Y,We as Z,X as _,w as a,Pe as a0,xe as a1,Se as a2,De as a3,Fe as b,_e as c,m as d,d as e,u as f,U as g,K as h,Ee as i,$ as j,W as k,pe as l,k as m,l as n,v as o,g as p,b as q,c as r,de as s,y as t,Be as u,o as v,p as w,C as x,Le as y,he as z};\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$socket4\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v2/assets/primeuix-CNMLIuxO.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$socket4\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\\\\\"\\\\\\\"===e||A\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 15915\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\\\\\"\\\\\\\"===e||A\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 16051\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\\\\\"\\\\\\\"===e||A\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 16209\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\\\\\"\\\\\\\"===e||A\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 16398\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\\\\\"\\\\\\\"===e||A\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 16647\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\\\\\"\\\\\\\"===e||A\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 16837\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(t,n,r)=\\\\u003en in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;function o(e){return null==e||\\\\\\\"\\\\\\\"===e||A\\\",\\n                                    \\\"line_number\\\": 1,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 16999\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\",\\n            \\\"credential-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\" 4 |  * (c) 2024 Eduardo San Martin Morote\\\\n 5 |  * @license MIT\\\\n 6 |  */\\\\n 7 | let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(t){Rt(l),l._a=t,t.provide(Gt,l),t.config.globalProperties.$pinia=l,s.forEach((t=\\\\u003er.push(t))),s=[]},use(t){return this._a?r.push(t):s.push(t),this},_p:r,_a:null,_e:o,_s:new Map,state:i});return l}(Wt=Nt||(Nt={})).direct=\\\\\\\"direct\\\\\\\",Wt.patchObject=\\\\\\\"patch object\\\\\\\",Wt.patchFunction=\\\\\\\"patch function\\\\\\\";const Xt=()=\\\\u003e{};function Yt(t,e,n,o=Xt){t.push(e);const i=()=\\\\u003e{const n=t.indexOf(e);n\\\\u003e-1\\\\u0026\\\\u0026(t.splice(n,1),o())};return!n\\\\u0026\\\\u0026c()\\\\u0026\\\\u0026u(i),i}function Zt(t,...e){t.slice().forEach((t=\\\\u003e{t(...e)}))}const Jt=t=\\\\u003et(),Qt=Symbol(),te=Symbol();function ee(t,e){t instanceof Map\\\\u0026\\\\u0026e instanceof Map?e.forEach(((e,n)=\\\\u003et.set(n,e))):t instanceof Set\\\\u0026\\\\u0026e instanceof Set\\\\u0026\\\\u0026e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],i=t[n];Ut(i)\\\\u0026\\\\u0026Ut(o)\\\\u0026\\\\u0026t.hasOwnProperty(n)\\\\u0026\\\\u0026!r(o)\\\\u0026\\\\u0026!s(o)?t[n]=ee(i,o):t[n]=o}return t}const ne=Symbol();const{assign:oe}=Object;function ie(n,a,c={},u,p,h){let f;const b=oe({actions:{}},c),m={deep:!0};let g,v,y,x=[],I=[];const k=u.state.value[n];let w;function O(t){let e;g=v=!1,\\\\\\\"function\\\\\\\"==typeof t?(t(u.state.value[n]),e={type:Nt.patchFunction,storeId:n,events:y}):(ee(u.state.value[n],t),e={type:Nt.patchObject,payload:t,storeId:n,events:y});const o=w=Symbol();d().then((()=\\\\u003e{w===o\\\\u0026\\\\u0026(g=!0)})),v=!0,Zt(x,e,u.state.value[n])}h||k||(u.state.value[n]={}),e({});const S=h?function(){const{state:t}=c,e=t?t():{};this.$patch((t=\\\\u003e{oe(t,e)}))}:Xt;const L=(t,e=\\\\\\\"\\\\\\\")=\\\\u003e{if(Qt in t)return t[te]=e,t;const o=function(){Rt(u);const e=Array.from(arguments),i=[],r=[];let s;Zt(I,{args:e,name:o[te],store:C,after:function(t){i.push(t)},onError:function(t){r.push(t)}});try{s=t.apply(this\\\\u0026\\\\u0026this.$id===n?this:C,e)}catch(l){throw Zt(r,l),l}return s instanceof Promise?s.then((t=\\\\u003e(Zt(i,t),t))).catch((t=\\\\u003e(Zt(r,t),Promise.reject(t)))):(Zt(i,s),s)};return o[Qt]=!0,o[te]=e,o},$={_p:u,$id:n,$onAction:Yt.bind(null,I),$patch:O,$reset:S,$subscribe(t,e={}){const i=Yt(x,t,e.detached,(()=\\\\u003er())),r=f.run((()=\\\\u003eo((()=\\\\u003eu.state.value[n]),(o=\\\\u003e{(\\\\\\\"sync\\\\\\\"===e.flush?v:g)\\\\u0026\\\\u0026t({storeId:n,type:Nt.direct,events:y},o)}),oe({},m,e))));return i},$dispose:function(){f.stop(),x=[],I=[],u._s.delete(n)}},C=i($);u._s.set(n,C);const z=(u._a\\\\u0026\\\\u0026u._a.runWithContext||Jt)((()=\\\\u003eu._e.run((()=\\\\u003e(f=t()).run((()=\\\\u003ea({action:L})))))));for(const t in z){const e=z[t];if(r(e)\\\\u0026\\\\u0026(!r(T=e)||!T.effect)||s(e))h||(!k||Ut(E=e)\\\\u0026\\\\u0026E.hasOwnProperty(ne)||(r(e)?e.value=k[t]:ee(e,k[t])),u.state.value[n][t]=e);else if(\\\\\\\"function\\\\\\\"==typeof e){const n=L(e,t);z[t]=n,b.actions[t]=e}}var E,T;return oe(C,z),oe(l(C),z),Object.defineProperty(C,\\\\\\\"$state\\\\\\\",{get:()=\\\\u003eu.state.value[n],set:t=\\\\u003e{O((e=\\\\u003e{oe(e,t)}))}}),u._p.forEach((t=\\\\u003e{oe(C,f.run((()=\\\\u003et({store:C,app:u._a,pinia:u,options:b}))))})),k\\\\u0026\\\\u0026h\\\\u0026\\\\u0026c.hydrate\\\\u0026\\\\u0026c.hydrate(C.$state,k),g=!0,v=!0,C}function re(t,e,o){let i,r;const s=\\\\\\\"function\\\\\\\"==typeof e;function l(t,o){const l=b();(t=t||(l?p(Gt,null):null))\\\\u0026\\\\u0026Rt(t),(t=jt)._s.has(i)||(s?ie(i,e,r,t):function(t,e,o){const{state:i,actions:r,getters:s}=e,l=o.state.value[t];let a;a=ie(t,(function(){l||(o.state.value[t]=i?i():{});const e=h(o.state.value[t]);return oe(e,r,Object.keys(s||{}).reduce(((e,i)=\\\\u003e(e[i]=n(f((()=\\\\u003e{Rt(o);const e=o._s.get(t);return s[i].call(e,e)}))),e)),{}))}),e,o,0,!0)}(i,r,t));return t._s.get(i)}return\\\\\\\"string\\\\\\\"==typeof t?(i=t,r=s?o:e):(r=t,i=t.id),l.$id=i,l}function se(t){{t=l(t);const e={};for(const n in t){const o=t[n];(r(o)||s(o))\\\\u0026\\\\u0026(e[n]=a(t,n))}return e}}const le=\\\\\\\"undefined\\\\\\\"!=typeof navigator\\\\u0026\\\\u0026navigator.userAgent.toLowerCase().indexOf(\\\\\\\"firefox\\\\\\\")\\\\u003e0;function ae(t,e,n,o){t.addEventListener?t.addEventListener(e,n,o):t.attachEvent\\\\u0026\\\\u0026t.attachEvent(\\\\\\\"on\\\\\\\".concat(e),n)}function ce(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent\\\\u0026\\\\u0026t.detachEvent(\\\\\\\"on\\\\\\\".concat(e),n)}function ue(t,e){const n=e.slice(0,e.length-1);for(let o=0;o\\\\u003cn.length;o++)n[o]=t[n[o].toLowerCase()];return n}function de(t){\\\\\\\"string\\\\\\\"!=typeof t\\\\u0026\\\\u0026(t=\\\\\\\"\\\\\\\");const e=(t=t.replace(/\\\\\\\\s/g,\\\\\\\"\\\\\\\")).split(\\\\\\\",\\\\\\\");let n=e.lastIndexOf(\\\\\\\"\\\\\\\");for(;n\\\\u003e=0;)e[n-1]+=\\\\\\\",\\\\\\\",e.splice(n,1),n=e.lastIndexOf(\\\\\\\"\\\\\\\");return e}const pe={backspace:8,\\\\\\\"\\u232b\\\\\\\":8,tab:9,clear:12,enter:13,\\\\\\\"\\u21a9\\\\\\\":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,\\\\\\\"\\u21ea\\\\\\\":20,\\\\\\\",\\\\\\\":188,\\\\\\\".\\\\\\\":190,\\\\\\\"/\\\\\\\":191,\\\\\\\"`\\\\\\\":192,\\\\\\\"-\\\\\\\":le?173:189,\\\\\\\"=\\\\\\\":le?61:187,\\\\\\\";\\\\\\\":le?59:186,\\\\\\\"'\\\\\\\":222,\\\\\\\"[\\\\\\\":219,\\\\\\\"]\\\\\\\":221,\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\":220},he={\\\\\\\"\\u21e7\\\\\\\":16,shift:16,\\\\\\\"\\u2325\\\\\\\":18,alt:18,option:18,\\\\\\\"\\u2303\\\\\\\":17,ctrl:17,control:17,\\\\\\\"\\u2318\\\\\\\":91,cmd:91,command:91},fe={16:\\\\\\\"shiftKey\\\\\\\",18:\\\\\\\"altKey\\\\\\\",17:\\\\\\\"ctrlKey\\\\\\\",91:\\\\\\\"metaKey\\\\\\\",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},be={16:!1,18:!1,17:!1,91:!1},me={};for(let Oo=1;Oo\\\\u003c20;Oo++)pe[\\\\\\\"f\\\\\\\".concat(Oo)]=111+Oo;let ge=[],ve=null,ye=\\\\\\\"all\\\\\\\";const xe=new Map,Ie=t=\\\\u003epe[t.toLowerCase()]||he[t.toLowerCase()]||t.toUpperCase().charCodeAt(0);function ke(t){ye=t||\\\\\\\"all\\\\\\\"}function we(){return ye||\\\\\\\"all\\\\\\\"}function Oe(t){if(void 0===t)Object.keys(me).forEach((t=\\\\u003e{Array.isArray(me[t])\\\\u0026\\\\u0026me[t].forEach((t=\\\\u003eSe(t))),delete me[t]})),ze(null);else if(Array.isArray(t))t.forEach((t=\\\\u003e{t.key\\\\u0026\\\\u0026Se(t)}));else if(\\\\\\\"object\\\\\\\"==typeof t)t.key\\\\u0026\\\\u0026Se(t);else if(\\\\\\\"string\\\\\\\"==typeof t){for(var e=arguments.length,n=new Array(e\\\\u003e1?e-1:0),o=1;o\\\\u003ce;o++)n[o-1]=arguments[o];let[i,r]=n;\\\\\\\"function\\\\\\\"==typeof i\\\\u0026\\\\u0026(r=i,i=\\\\\\\"\\\\\\\"),Se({key:t,scope:i,method:r,splitKey:\\\\\\\"+\\\\\\\"})}}const Se=t=\\\\u003e{let{key:e,scope:n,method:o,splitKey:i=\\\\\\\"+\\\\\\\"}=t;de(e).forEach((t=\\\\u003e{const e=t.split(i),r=e.length,s=e[r-1],l=\\\\\\\"*\\\\\\\"===s?\\\\\\\"*\\\\\\\":Ie(s);if(!me[l])return;n||(n=we());const a=r\\\\u003e1?ue(he,e):[],c=[];me[l]=me[l].filter((t=\\\\u003e{const e=(!o||t.method===o)\\\\u0026\\\\u0026t.scope===n\\\\u0026\\\\u0026function(t,e){const n=t.length\\\\u003e=e.length?t:e,o=t.length\\\\u003e=e.length?e:t;let i=!0;for(let r=0;r\\\\u003cn.length;r++)-1===o.indexOf(n[r])\\\\u0026\\\\u0026(i=!1);return i}(t.mods,a);return e\\\\u0026\\\\u0026c.push(t.element),!e})),c.forEach((t=\\\\u003eze(t)))}))};function Le(t,e,n,o){if(e.element!==o)return;let i;if(e.scope===n||\\\\\\\"all\\\\\\\"===e.scope){i=e.mods.length\\\\u003e0;for(const t in be)Object.prototype.hasOwnProperty.call(be,t)\\\\u0026\\\\u0026(!be[t]\\\\u0026\\\\u0026e.mods.indexOf(+t)\\\\u003e-1||be[t]\\\\u0026\\\\u0026-1===e.mods.indexOf(+t))\\\\u0026\\\\u0026(i=!1);(0!==e.mods.length||be[16]||be[18]||be[17]||be[91])\\\\u0026\\\\u0026!i\\\\u0026\\\\u0026\\\\\\\"*\\\\\\\"!==e.shortcut||(e.keys=[],e.keys=e.keys.concat(ge),!1===e.method(t,e)\\\\u0026\\\\u0026(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation\\\\u0026\\\\u0026t.stopPropagation(),t.cancelBubble\\\\u0026\\\\u0026(t.cancelBubble=!0)))}}function $e(t,e){const n=me[\\\\\\\"*\\\\\\\"];let o=t.keyCode||t.which||t.charCode;if(!Ce.filter.call(this,t))return;if(93!==o\\\\u0026\\\\u0026224!==o||(o=91),-1===ge.indexOf(o)\\\\u0026\\\\u0026229!==o\\\\u0026\\\\u0026ge.push(o),[\\\\\\\"ctrlKey\\\\\\\",\\\\\\\"altKey\\\\\\\",\\\\\\\"shiftKey\\\\\\\",\\\\\\\"metaKey\\\\\\\"].forEach((e=\\\\u003e{const n=fe[e];t[e]\\\\u0026\\\\u0026-1===ge.indexOf(n)?ge.push(n):!t[e]\\\\u0026\\\\u0026ge.indexOf(n)\\\\u003e-1?ge.splice(ge.indexOf(n),1):\\\\\\\"metaKey\\\\\\\"===e\\\\u0026\\\\u0026t[e]\\\\u0026\\\\u00263===ge.length\\\\u0026\\\\u0026(t.ctrlKey||t.shiftKey||t.altKey||(ge=ge.slice(ge.indexOf(n))))})),o in be){be[o]=!0;for(const t in he)he[t]===o\\\\u0026\\\\u0026(Ce[t]=!0);if(!n)return}for(const l in be)Object.prototype.hasOwnProperty.call(be,l)\\\\u0026\\\\u0026(be[l]=t[fe[l]]);t.getModifierState\\\\u0026\\\\u0026(!t.altKey||t.ctrlKey)\\\\u0026\\\\u0026t.getModifierState(\\\\\\\"AltGraph\\\\\\\")\\\\u0026\\\\u0026(-1===ge.indexOf(17)\\\\u0026\\\\u0026ge.push(17),-1===ge.indexOf(18)\\\\u0026\\\\u0026ge.push(18),be[17]=!0,be[18]=!0);const i=we();if(n)for(let l=0;l\\\\u003cn.length;l++)n[l].scope===i\\\\u0026\\\\u0026(\\\\\\\"keydown\\\\\\\"===t.type\\\\u0026\\\\u0026n[l].keydown||\\\\\\\"keyup\\\\\\\"===t.type\\\\u0026\\\\u0026n[l].keyup)\\\\u0026\\\\u0026Le(t,n[l],i,e);if(!(o in me))return;const r=me[o],s=r.length;for(let l=0;l\\\\u003cs;l++)if((\\\\\\\"keydown\\\\\\\"===t.type\\\\u0026\\\\u0026r[l].keydown||\\\\\\\"keyup\\\\\\\"===t.type\\\\u0026\\\\u0026r[l].keyup)\\\\u0026\\\\u0026r[l].key){const n=r[l],{splitKey:o}=n,s=n.key.split(o),a=[];for(let t=0;t\\\\u003cs.length;t++)a.push(Ie(s[t]));a.sort().join(\\\\\\\"\\\\\\\")===ge.sort().join(\\\\\\\"\\\\\\\")\\\\u0026\\\\u0026Le(t,n,i,e)}}function Ce(t,e,n){ge=[];const o=de(t);let i=[],r=\\\\\\\"all\\\\\\\",s=document,l=0,a=!1,c=!0,u=\\\\\\\"+\\\\\\\",d=!1,p=!1;for(void 0===n\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof e\\\\u0026\\\\u0026(n=e),\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(e)\\\\u0026\\\\u0026(e.scope\\\\u0026\\\\u0026(r=e.scope),e.element\\\\u0026\\\\u0026(s=e.element),e.keyup\\\\u0026\\\\u0026(a=e.keyup),void 0!==e.keydown\\\\u0026\\\\u0026(c=e.keydown),void 0!==e.capture\\\\u0026\\\\u0026(d=e.capture),\\\\\\\"string\\\\\\\"==typeof e.splitKey\\\\u0026\\\\u0026(u=e.splitKey),!0===e.single\\\\u0026\\\\u0026(p=!0)),\\\\\\\"string\\\\\\\"==typeof e\\\\u0026\\\\u0026(r=e),p\\\\u0026\\\\u0026Oe(t,r);l\\\\u003co.length;l++)i=[],(t=o[l].split(u)).length\\\\u003e1\\\\u0026\\\\u0026(i=ue(he,t)),(t=\\\\\\\"*\\\\\\\"===(t=t[t.length-1])?\\\\\\\"*\\\\\\\":Ie(t))in me||(me[t]=[]),me[t].push({keyup:a,keydown:c,scope:r,mods:i,shortcut:o[l],method:n,key:o[l],splitKey:u,element:s});if(void 0!==s\\\\u0026\\\\u0026window){if(!xe.has(s)){const t=function(){return $e(arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:window.event,s)},e=function(){let t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:window.event;$e(t,s),function(t){let e=t.keyCode||t.which||t.charCode;const n=ge.indexOf(e);if(n\\\\u003e=0\\\\u0026\\\\u0026ge.splice(n,1),t.key\\\\u0026\\\\u0026\\\\\\\"meta\\\\\\\"===t.key.toLowerCase()\\\\u0026\\\\u0026ge.splice(0,ge.length),93!==e\\\\u0026\\\\u0026224!==e||(e=91),e in be){be[e]=!1;for(const t in he)he[t]===e\\\\u0026\\\\u0026(Ce[t]=!1)}}(t)};xe.set(s,{keydownListener:t,keyupListenr:e,capture:d}),ae(s,\\\\\\\"keydown\\\\\\\",t,d),ae(s,\\\\\\\"keyup\\\\\\\",e,d)}if(!ve){const t=()=\\\\u003e{ge=[]};ve={listener:t,capture:d},ae(window,\\\\\\\"focus\\\\\\\",t,d)}}}function ze(t){const e=Object.values(me).flat();if(e.findIndex((e=\\\\u003e{let{element:n}=e;return n===t}))\\\\u003c0){const{keydownListener:e,keyupListenr:n,capture:o}=xe.get(t)||{};e\\\\u0026\\\\u0026n\\\\u0026\\\\u0026(ce(t,\\\\\\\"keyup\\\\\\\",n,o),ce(t,\\\\\\\"keydown\\\\\\\",e,o),xe.delete(t))}if(e.length\\\\u003c=0||xe.size\\\\u003c=0){if(Object.keys(xe).forEach((t=\\\\u003e{const{keydownListener:e,keyupListenr:n,capture:o}=xe.get(t)||{};e\\\\u0026\\\\u0026n\\\\u0026\\\\u0026(ce(t,\\\\\\\"keyup\\\\\\\",n,o),ce(t,\\\\\\\"keydown\\\\\\\",e,o),xe.delete(t))})),xe.clear(),Object.keys(me).forEach((t=\\\\u003edelete me[t])),ve){const{listener:t,capture:e}=ve;ce(window,\\\\\\\"focus\\\\\\\",t,e),ve=null}}}const Ee={getPressedKeyString:function(){return ge.map((t=\\\\u003e{return e=t,Object.keys(pe).find((t=\\\\u003epe[t]===e))||(t=\\\\u003eObject.keys(he).find((e=\\\\u003ehe[e]===t)))(t)||String.fromCharCode(t);var e}))},setScope:ke,getScope:we,deleteScope:function(t,e){let n,o;t||(t=we());for(const i in me)if(Object.prototype.hasOwnProperty.call(me,i))for(n=me[i],o=0;o\\\\u003cn.length;)if(n[o].scope===t){n.splice(o,1).forEach((t=\\\\u003e{let{element:e}=t;return ze(e)}))}else o++;we()===t\\\\u0026\\\\u0026ke(e||\\\\\\\"all\\\\\\\")},getPressedKeyCodes:function(){return ge.slice(0)},getAllKeyCodes:function(){const t=[];return Object.keys(me).forEach((e=\\\\u003e{me[e].forEach((e=\\\\u003e{let{key:n,scope:o,mods:i,shortcut:r}=e;t.push({scope:o,shortcut:r,mods:i,keys:n.split(\\\\\\\"+\\\\\\\").map((t=\\\\u003eIe(t)))})}))})),t},isPressed:function(t){return\\\\\\\"string\\\\\\\"==typeof t\\\\u0026\\\\u0026(t=Ie(t)),-1!==ge.indexOf(t)},filter:function(t){const e=t.target||t.srcElement,{tagName:n}=e;let o=!0;const i=\\\\\\\"INPUT\\\\\\\"===n\\\\u0026\\\\u0026![\\\\\\\"checkbox\\\\\\\",\\\\\\\"radio\\\\\\\",\\\\\\\"range\\\\\\\",\\\\\\\"button\\\\\\\",\\\\\\\"file\\\\\\\",\\\\\\\"reset\\\\\\\",\\\\\\\"submit\\\\\\\",\\\\\\\"color\\\\\\\"].includes(e.type);return(e.isContentEditable||(i||\\\\\\\"TEXTAREA\\\\\\\"===n||\\\\\\\"SELECT\\\\\\\"===n)\\\\u0026\\\\u0026!e.readOnly)\\\\u0026\\\\u0026(o=!1),o},trigger:function(t){let e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:\\\\\\\"all\\\\\\\";Object.keys(me).forEach((n=\\\\u003e{me[n].filter((n=\\\\u003en.scope===e\\\\u0026\\\\u0026n.shortcut===t)).forEach((t=\\\\u003e{t\\\\u0026\\\\u0026t.method\\\\u0026\\\\u0026t.method()}))}))},unbind:Oe,keyMap:pe,modifier:he,modifierMap:fe};for(const Oo in Ee)Object.prototype.hasOwnProperty.call(Ee,Oo)\\\\u0026\\\\u0026(Ce[Oo]=Ee[Oo]);if(\\\\\\\"undefined\\\\\\\"!=typeof window){const t=window.hotkeys;Ce.noConflict=e=\\\\u003e(e\\\\u0026\\\\u0026window.hotkeys===Ce\\\\u0026\\\\u0026(window.hotkeys=t),Ce),window.hotkeys=Ce}var Te={root:function(t){var e=t.props,n=t.instance;return[\\\\\\\"p-badge p-component\\\\\\\",{\\\\\\\"p-badge-circle\\\\\\\":K(e.value)\\\\u0026\\\\u00261===String(e.value).length,\\\\\\\"p-badge-dot\\\\\\\":D(e.value)\\\\u0026\\\\u0026!n.$slots.default,\\\\\\\"p-badge-sm\\\\\\\":\\\\\\\"small\\\\\\\"===e.size,\\\\\\\"p-badge-lg\\\\\\\":\\\\\\\"large\\\\\\\"===e.size,\\\\\\\"p-badge-xl\\\\\\\":\\\\\\\"xlarge\\\\\\\"===e.size,\\\\\\\"p-badge-info\\\\\\\":\\\\\\\"info\\\\\\\"===e.severity,\\\\\\\"p-badge-success\\\\\\\":\\\\\\\"success\\\\\\\"===e.severity,\\\\\\\"p-badge-warn\\\\\\\":\\\\\\\"warn\\\\\\\"===e.severity,\\\\\\\"p-badge-danger\\\\\\\":\\\\\\\"danger\\\\\\\"===e.severity,\\\\\\\"p-badge-secondary\\\\\\\":\\\\\\\"secondary\\\\\\\"===e.severity,\\\\\\\"p-badge-contrast\\\\\\\":\\\\\\\"contrast\\\\\\\"===e.severity}]}},_e=St.extend({name:\\\\\\\"badge\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-badge {\\\\\\\\n    display: inline-flex;\\\\\\\\n    border-radius: \\\\\\\".concat(e(\\\\\\\"badge.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"badge.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.primary.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"badge.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"badge.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.min.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-dot {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"badge.dot.size\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.dot.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.dot.size\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: 50%;\\\\\\\\n    padding: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-circle {\\\\\\\\n    padding: 0;\\\\\\\\n    border-radius: 50%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-secondary {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.secondary.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-success {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.success.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-info {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.info.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-warn {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.warn.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-danger {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.danger.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-contrast {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.contrast.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-sm {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"badge.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.sm.min.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.sm.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-lg {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"badge.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.lg.min.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.lg.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-xl {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"badge.xl.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.xl.min.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.xl.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:Te}),Me={name:\\\\\\\"Badge\\\\\\\",extends:{name:\\\\\\\"BaseBadge\\\\\\\",extends:Lt,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:_e,provide:function(){return{$pcBadge:this,$parentInstance:this}}},inheritAttrs:!1};Me.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\")},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\",{},(function(){return[y(x(t.value),1)]}))],16)};var Ve=St.extend({name:\\\\\\\"ripple-directive\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-ink {\\\\\\\\n    display: block;\\\\\\\\n    position: absolute;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"ripple.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: 100%;\\\\\\\\n    transform: scale(0);\\\\\\\\n    pointer-events: none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-ink-active {\\\\\\\\n    animation: ripple 0.4s linear;\\\\\\\\n}\\\\\\\\n\\\\\\\\n@keyframes ripple {\\\\\\\\n    100% {\\\\\\\\n        opacity: 0;\\\\\\\\n        transform: scale(2.5);\\\\\\\\n    }\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-ink\\\\\\\"}});function Pe(t){return(Pe=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function Fe(t){return function(t){if(Array.isArray(t))return Ae(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return Ae(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function Ae(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}function Ke(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Pe(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Pe(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De=$t.extend({style:Ve}).extend(\\\\\\\"ripple\\\\\\\",{watch:{\\\\\\\"config.ripple\\\\\\\":function(t){t?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute(\\\\\\\"data-pd-ripple\\\\\\\",!0),this.$host.style.overflow=\\\\\\\"hidden\\\\\\\",this.$host.style.position=\\\\\\\"relative\\\\\\\"):(this.remove(this.$host),this.$host.removeAttribute(\\\\\\\"data-pd-ripple\\\\\\\"))}},unmounted:function(t){this.remove(t)},timeout:void 0,methods:{bindEvents:function(t){t.addEventListener(\\\\\\\"mousedown\\\\\\\",this.onMouseDown.bind(this))},unbindEvents:function(t){t.removeEventListener(\\\\\\\"mousedown\\\\\\\",this.onMouseDown.bind(this))},createRipple:function(t){var e=B(\\\\\\\"span\\\\\\\",Ke(Ke({role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":!0,\\\\\\\"data-p-ink\\\\\\\":!0,\\\\\\\"data-p-ink-active\\\\\\\":!1,class:!this.isUnstyled()\\\\u0026\\\\u0026this.cx(\\\\\\\"root\\\\\\\"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,\\\\\\\"\\\\\\\"),\\\\\\\"p-bind\\\\\\\",this.ptm(\\\\\\\"root\\\\\\\")));t.appendChild(e),this.$el=e},remove:function(t){var e=this.getInk(t);e\\\\u0026\\\\u0026(this.$host.style.overflow=\\\\\\\"\\\\\\\",this.$host.style.position=\\\\\\\"\\\\\\\",this.unbindEvents(t),e.removeEventListener(\\\\\\\"animationend\\\\\\\",this.onAnimationEnd),e.remove())},onMouseDown:function(t){var e=this,n=t.currentTarget,o=this.getInk(n);if(o\\\\u0026\\\\u0026\\\\\\\"none\\\\\\\"!==getComputedStyle(o,null).display){if(!this.isUnstyled()\\\\u0026\\\\u0026H(o,\\\\\\\"p-ink-active\\\\\\\"),o.setAttribute(\\\\\\\"data-p-ink-active\\\\\\\",\\\\\\\"false\\\\\\\"),!j(o)\\\\u0026\\\\u0026!R(o)){var i=Math.max(G(n),U(n));o.style.height=i+\\\\\\\"px\\\\\\\",o.style.width=i+\\\\\\\"px\\\\\\\"}var r=N(n),s=t.pageX-r.left+document.body.scrollTop-R(o)/2,l=t.pageY-r.top+document.body.scrollLeft-j(o)/2;o.style.top=l+\\\\\\\"px\\\\\\\",o.style.left=s+\\\\\\\"px\\\\\\\",!this.isUnstyled()\\\\u0026\\\\u0026W(o,\\\\\\\"p-ink-active\\\\\\\"),o.setAttribute(\\\\\\\"data-p-ink-active\\\\\\\",\\\\\\\"true\\\\\\\"),this.timeout=setTimeout((function(){o\\\\u0026\\\\u0026(!e.isUnstyled()\\\\u0026\\\\u0026H(o,\\\\\\\"p-ink-active\\\\\\\"),o.setAttribute(\\\\\\\"data-p-ink-active\\\\\\\",\\\\\\\"false\\\\\\\"))}),401)}},onAnimationEnd:function(t){this.timeout\\\\u0026\\\\u0026clearTimeout(this.timeout),!this.isUnstyled()\\\\u0026\\\\u0026H(t.currentTarget,\\\\\\\"p-ink-active\\\\\\\"),t.currentTarget.setAttribute(\\\\\\\"data-p-ink-active\\\\\\\",\\\\\\\"false\\\\\\\")},getInk:function(t){return t\\\\u0026\\\\u0026t.children?Fe(t.children).find((function(t){return\\\\\\\"ripple\\\\\\\"===q(t,\\\\\\\"data-pc-name\\\\\\\")})):void 0}}});function Be(t){return(Be=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function He(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Be(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Be(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Be(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var je={root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-button p-component\\\\\\\",He(He(He(He(He(He(He(He(He({\\\\\\\"p-button-icon-only\\\\\\\":e.hasIcon\\\\u0026\\\\u0026!n.label\\\\u0026\\\\u0026!n.badge,\\\\\\\"p-button-vertical\\\\\\\":(\\\\\\\"top\\\\\\\"===n.iconPos||\\\\\\\"bottom\\\\\\\"===n.iconPos)\\\\u0026\\\\u0026n.label,\\\\\\\"p-button-loading\\\\\\\":n.loading,\\\\\\\"p-button-link\\\\\\\":n.link||\\\\\\\"link\\\\\\\"===n.variant},\\\\\\\"p-button-\\\\\\\".concat(n.severity),n.severity),\\\\\\\"p-button-raised\\\\\\\",n.raised),\\\\\\\"p-button-rounded\\\\\\\",n.rounded),\\\\\\\"p-button-text\\\\\\\",n.text||\\\\\\\"text\\\\\\\"===n.variant),\\\\\\\"p-button-outlined\\\\\\\",n.outlined||\\\\\\\"outlined\\\\\\\"===n.variant),\\\\\\\"p-button-sm\\\\\\\",\\\\\\\"small\\\\\\\"===n.size),\\\\\\\"p-button-lg\\\\\\\",\\\\\\\"large\\\\\\\"===n.size),\\\\\\\"p-button-plain\\\\\\\",n.plain),\\\\\\\"p-button-fluid\\\\\\\",e.hasFluid)]},loadingIcon:\\\\\\\"p-button-loading-icon\\\\\\\",icon:function(t){var e=t.props;return[\\\\\\\"p-button-icon\\\\\\\",He({},\\\\\\\"p-button-icon-\\\\\\\".concat(e.iconPos),e.label)]},label:\\\\\\\"p-button-label\\\\\\\"},Re=St.extend({name:\\\\\\\"button\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-button {\\\\\\\\n    display: inline-flex;\\\\\\\\n    cursor: pointer;\\\\\\\\n    user-select: none;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    overflow: hidden;\\\\\\\\n    position: relative;\\\\\\\\n    color: \\\\\\\".concat(e(\\\\\\\"button.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.primary.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.primary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"button.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: 1rem;\\\\\\\\n    font-family: inherit;\\\\\\\\n    font-feature-settings: inherit;\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n            outline-color \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"button.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"button.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:disabled {\\\\\\\\n    cursor: default;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-right {\\\\\\\\n    order: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-right:dir(rtl) {\\\\\\\\n    order: -1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {\\\\\\\\n    order: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-bottom {\\\\\\\\n    order: 2;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-only {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"button.icon.only.width\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline-start: 0;\\\\\\\\n    padding-inline-end: 0;\\\\\\\\n    gap: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-only.p-button-rounded {\\\\\\\\n    border-radius: 50%;\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"button.icon.only.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-only .p-button-label {\\\\\\\\n    visibility: hidden;\\\\\\\\n    width: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-sm {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"button.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"button.sm.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.sm.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-sm .p-button-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"button.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-lg {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"button.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"button.lg.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.lg.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-lg .p-button-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"button.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-vertical {\\\\\\\\n    flex-direction: column;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-label {\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"button.label.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-fluid {\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-fluid.p-button-icon-only {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"button.icon.only.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.primary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.primary.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.primary.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.primary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.primary.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.primary.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:focus-visible {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.primary.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"button.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.primary.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"button.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button .p-badge {\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"button.badge.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"button.badge.size\\\\\\\"),\\\\\\\";\\\\\\\\n    line-height: \\\\\\\").concat(e(\\\\\\\"button.badge.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-raised {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.raised.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-rounded {\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"button.rounded.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-secondary {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.secondary.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.secondary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-secondary:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.secondary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.secondary.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.secondary.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-secondary:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.secondary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.secondary.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.secondary.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-secondary:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.secondary.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.secondary.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-success {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.success.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.success.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-success:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.success.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.success.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.success.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-success:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.success.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.success.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.success.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-success:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.success.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.success.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-info {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.info.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.info.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-info:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.info.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.info.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.info.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-info:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.info.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.info.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.info.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-info:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.info.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.info.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-warn {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.warn.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.warn.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-warn:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.warn.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.warn.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.warn.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-warn:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.warn.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.warn.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.warn.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-warn:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.warn.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.warn.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-help {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.help.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.help.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-help:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.help.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.help.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.help.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-help:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.help.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.help.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.help.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-help:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.help.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.help.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-danger {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.danger.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.danger.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-danger:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.danger.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.danger.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.danger.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-danger:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.danger.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.danger.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.danger.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-danger:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.danger.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.danger.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-contrast {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.contrast.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.contrast.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-contrast:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.contrast.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.contrast.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.contrast.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-contrast:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.contrast.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.contrast.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.contrast.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-contrast:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.contrast.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.contrast.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-secondary {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-secondary:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-secondary:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-success {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-success:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-success:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-info {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-info:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-info:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-warn {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-warn:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-warn:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-help {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-help:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-help:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-danger {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-danger:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-danger:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-contrast {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-contrast:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-contrast:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-plain {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-plain:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-plain:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.primary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.primary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-secondary {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-secondary:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-secondary:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-success {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-success:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.success.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-success:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.success.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-info {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-info:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.info.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-info:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.info.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-warn {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-warn:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.warn.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-warn:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.warn.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-help {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-help:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.help.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-help:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.help.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-danger {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-danger:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.danger.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-danger:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.danger.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-contrast {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-contrast:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-contrast:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-plain {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-plain:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.plain.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-plain:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.plain.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-link {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.link.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-link:not(:disabled):hover {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.link.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-link:not(:disabled):hover .p-button-label {\\\\\\\\n    text-decoration: underline;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-link:not(:disabled):active {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.link.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:je}),Ge={name:\\\\\\\"Button\\\\\\\",extends:{name:\\\\\\\"BaseButton\\\\\\\",extends:Lt,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:\\\\\\\"left\\\\\\\"},iconClass:{type:[String,Object],default:null},badge:{type:String,default:null},badgeClass:{type:[String,Object],default:null},badgeSeverity:{type:String,default:\\\\\\\"secondary\\\\\\\"},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},as:{type:[String,Object],default:\\\\\\\"BUTTON\\\\\\\"},asChild:{type:Boolean,default:!1},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},variant:{type:String,default:null},plain:{type:Boolean,default:!1},fluid:{type:Boolean,default:null}},style:Re,provide:function(){return{$pcButton:this,$parentInstance:this}}},inheritAttrs:!1,inject:{$pcFluid:{default:null}},methods:{getPTOptions:function(t){return(\\\\\\\"root\\\\\\\"===t?this.ptmi:this.ptm)(t,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||\\\\\\\"\\\\\\\"===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?\\\\\\\" \\\\\\\"+this.badge:\\\\\\\"\\\\\\\"):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon},attrs:function(){return I(this.asAttrs,this.a11yAttrs,this.getPTOptions(\\\\\\\"root\\\\\\\"))},asAttrs:function(){return\\\\\\\"BUTTON\\\\\\\"===this.as?{type:\\\\\\\"button\\\\\\\",disabled:this.disabled}:void 0},a11yAttrs:function(){return{\\\\\\\"aria-label\\\\\\\":this.defaultAriaLabel,\\\\\\\"data-pc-name\\\\\\\":\\\\\\\"button\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\":this.disabled,\\\\\\\"data-p-severity\\\\\\\":this.severity}},hasFluid:function(){return D(this.fluid)?!!this.$pcFluid:this.fluid}},components:{SpinnerIcon:Ct,Badge:Me},directives:{ripple:De}};Ge.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"SpinnerIcon\\\\\\\"),l=k(\\\\\\\"Badge\\\\\\\"),a=w(\\\\\\\"ripple\\\\\\\");return t.asChild?v(t.$slots,\\\\\\\"default\\\\\\\",{key:1,class:z(t.cx(\\\\\\\"root\\\\\\\")),a11yAttrs:r.a11yAttrs}):O((m(),S(E(t.as),I({key:0,class:t.cx(\\\\\\\"root\\\\\\\")},r.attrs),{default:L((function(){return[v(t.$slots,\\\\\\\"default\\\\\\\",{},(function(){return[t.loading?v(t.$slots,\\\\\\\"loadingicon\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),t.cx(\\\\\\\"icon\\\\\\\")]},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),(function(){return[t.loadingIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),t.cx(\\\\\\\"icon\\\\\\\"),t.loadingIcon]},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16)):(m(),S(s,I({key:1,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),t.cx(\\\\\\\"icon\\\\\\\")],spin:\\\\\\\"\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]})):v(t.$slots,\\\\\\\"icon\\\\\\\",I({key:1,class:[t.cx(\\\\\\\"icon\\\\\\\")]},t.ptm(\\\\\\\"icon\\\\\\\")),(function(){return[t.icon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"icon\\\\\\\"),t.icon,t.iconClass]},t.ptm(\\\\\\\"icon\\\\\\\")),null,16)):$(\\\\\\\"\\\\\\\",!0)]})),C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"label\\\\\\\")},t.ptm(\\\\\\\"label\\\\\\\")),x(t.label||\\\\\\\"\\u00a0\\\\\\\"),17),t.badge?(m(),S(l,{key:2,value:t.badge,class:z(t.badgeClass),severity:t.badgeSeverity,unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcBadge\\\\\\\")},null,8,[\\\\\\\"value\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"severity\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)]}))]})),_:3},16,[\\\\\\\"class\\\\\\\"])),[[a]])};var Ue={name:\\\\\\\"IconField\\\\\\\",extends:{name:\\\\\\\"BaseIconField\\\\\\\",extends:Lt,style:St.extend({name:\\\\\\\"iconfield\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-iconfield {\\\\\\\\n    position: relative;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputicon {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 50%;\\\\\\\\n    margin-top: calc(-1 * (\\\\\\\".concat(e(\\\\\\\"icon.size\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"iconfield.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    line-height: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield .p-inputicon:first-child {\\\\\\\\n    inset-inline-start: \\\\\\\").concat(e(\\\\\\\"form.field.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield .p-inputicon:last-child {\\\\\\\\n    inset-inline-end: \\\\\\\").concat(e(\\\\\\\"form.field.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield .p-inputtext:not(:first-child) {\\\\\\\\n    padding-inline-start: calc((\\\\\\\").concat(e(\\\\\\\"form.field.padding.x\\\\\\\"),\\\\\\\" * 2) + \\\\\\\").concat(e(\\\\\\\"icon.size\\\\\\\"),\\\\\\\");\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield .p-inputtext:not(:last-child) {\\\\\\\\n    padding-inline-end: calc((\\\\\\\").concat(e(\\\\\\\"form.field.padding.x\\\\\\\"),\\\\\\\" * 2) + \\\\\\\").concat(e(\\\\\\\"icon.size\\\\\\\"),\\\\\\\");\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield:has(.p-inputfield-sm) .p-inputicon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"form.field.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"form.field.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"form.field.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-top: calc(-1 * (\\\\\\\").concat(e(\\\\\\\"form.field.sm.font.size\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield:has(.p-inputfield-lg) .p-inputicon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"form.field.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"form.field.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"form.field.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-top: calc(-1 * (\\\\\\\").concat(e(\\\\\\\"form.field.lg.font.size\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-iconfield\\\\\\\"}}),provide:function(){return{$pcIconField:this,$parentInstance:this}}},inheritAttrs:!1};Ue.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\")},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\")],16)};var Ne={name:\\\\\\\"InputIcon\\\\\\\",extends:{name:\\\\\\\"BaseInputIcon\\\\\\\",extends:Lt,style:St.extend({name:\\\\\\\"inputicon\\\\\\\",classes:{root:\\\\\\\"p-inputicon\\\\\\\"}}),props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},inheritAttrs:!1,computed:{containerClass:function(){return[this.cx(\\\\\\\"root\\\\\\\"),this.class]}}};Ne.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"span\\\\\\\",I({class:r.containerClass},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\")],16)};var We={name:\\\\\\\"InputText\\\\\\\",extends:{name:\\\\\\\"BaseInputText\\\\\\\",extends:zt,style:St.extend({name:\\\\\\\"inputtext\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-inputtext {\\\\\\\\n    font-family: inherit;\\\\\\\\n    font-feature-settings: inherit;\\\\\\\\n    font-size: 1rem;\\\\\\\\n    color: \\\\\\\".concat(e(\\\\\\\"inputtext.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.background\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"inputtext.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"inputtext.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"inputtext.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    appearance: none;\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"inputtext.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"inputtext.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext:enabled:hover {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"inputtext.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext:enabled:focus {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"inputtext.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-invalid {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"inputtext.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-variant-filled {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.filled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-variant-filled:enabled:hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.filled.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-variant-filled:enabled:focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.filled.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext:disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"inputtext.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext::placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"inputtext.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-invalid::placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"inputtext.invalid.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext-sm {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"inputtext.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"inputtext.sm.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"inputtext.sm.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext-lg {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"inputtext.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"inputtext.lg.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"inputtext.lg.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext-fluid {\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-inputtext p-component\\\\\\\",{\\\\\\\"p-filled\\\\\\\":e.$filled,\\\\\\\"p-inputtext-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-inputtext-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-variant-filled\\\\\\\":\\\\\\\"filled\\\\\\\"===e.$variant,\\\\\\\"p-inputtext-fluid\\\\\\\":e.$fluid}]}}}),provide:function(){return{$pcInputText:this,$parentInstance:this}}},inheritAttrs:!1,methods:{onInput:function(t){this.writeValue(t.target.value,t)}},computed:{attrs:function(){return I(this.ptmi(\\\\\\\"root\\\\\\\",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}}},qe=[\\\\\\\"value\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"aria-invalid\\\\\\\"];We.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"input\\\\\\\",I({type:\\\\\\\"text\\\\\\\",class:t.cx(\\\\\\\"root\\\\\\\"),value:t.d_value,disabled:t.disabled,\\\\\\\"aria-invalid\\\\\\\":t.$invalid||void 0,onInput:e[0]||(e[0]=function(){return r.onInput\\\\u0026\\\\u0026r.onInput.apply(r,arguments)})},r.attrs),null,16,qe)};var Xe=X(),Ye={name:\\\\\\\"Portal\\\\\\\",props:{appendTo:{type:[String,Object],default:\\\\\\\"body\\\\\\\"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=Y()},computed:{inline:function(){return this.disabled||\\\\\\\"self\\\\\\\"===this.appendTo}}};Ye.render=function(t,e,n,o,i,r){return r.inline?v(t.$slots,\\\\\\\"default\\\\\\\",{key:0}):i.mounted?(m(),S(T,{key:1,to:n.appendTo},[v(t.$slots,\\\\\\\"default\\\\\\\")],8,[\\\\\\\"to\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)};var Ze=St.extend({name:\\\\\\\"virtualscroller\\\\\\\",css:\\\\\\\"\\\\\\\\n.p-virtualscroller {\\\\\\\\n    position: relative;\\\\\\\\n    overflow: auto;\\\\\\\\n    contain: strict;\\\\\\\\n    transform: translateZ(0);\\\\\\\\n    will-change: scroll-position;\\\\\\\\n    outline: 0 none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-content {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    min-height: 100%;\\\\\\\\n    min-width: 100%;\\\\\\\\n    will-change: transform;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-spacer {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    height: 1px;\\\\\\\\n    width: 1px;\\\\\\\\n    transform-origin: 0 0;\\\\\\\\n    pointer-events: none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-loader {\\\\\\\\n    position: sticky;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    width: 100%;\\\\\\\\n    height: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-loader-mask {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-horizontal \\\\u003e .p-virtualscroller-content {\\\\\\\\n    display: flex;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-inline .p-virtualscroller-content {\\\\\\\\n    position: static;\\\\\\\\n}\\\\\\\\n\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-virtualscroller-loader {\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"virtualscroller.loader.mask.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"virtualscroller.loader.mask.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-loading-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"virtualscroller.loader.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"virtualscroller.loader.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"virtualscroller.loader.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")}});function Je(t){return(Je=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\\\u0026\\\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function tn(t){for(var e=1;e\\\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach((function(e){en(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function en(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Je(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Je(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nn={name:\\\\\\\"VirtualScroller\\\\\\\",extends:{name:\\\\\\\"BaseVirtualScroller\\\\\\\",extends:Lt,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:\\\\\\\"vertical\\\\\\\"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Ze,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var t;Ze.loadCSS({nonce:null===(t=this.$primevueConfig)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})}},inheritAttrs:!1,emits:[\\\\\\\"update:numToleratedItems\\\\\\\",\\\\\\\"scroll\\\\\\\",\\\\\\\"scroll-index-change\\\\\\\",\\\\\\\"lazy-load\\\\\\\"],data:function(){var t=this.isBoth();return{first:t?{rows:0,cols:0}:0,last:t?{rows:0,cols:0}:0,page:t?{rows:0,cols:0}:0,numItemsInViewport:t?{rows:0,cols:0}:0,lastScrollPos:t?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(t){this.d_numToleratedItems=t},loading:function(t,e){this.lazy\\\\u0026\\\\u0026t!==e\\\\u0026\\\\u0026t!==this.d_loading\\\\u0026\\\\u0026(this.d_loading=t)},items:function(t,e){e\\\\u0026\\\\u0026e.length===(t||[]).length||(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized\\\\u0026\\\\u0026this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){Z(this.element)\\\\u0026\\\\u0026(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=R(this.element),this.defaultHeight=j(this.element),this.defaultContentWidth=R(this.content),this.defaultContentHeight=j(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return\\\\\\\"vertical\\\\\\\"===this.orientation},isHorizontal:function(){return\\\\\\\"horizontal\\\\\\\"===this.orientation},isBoth:function(){return\\\\\\\"both\\\\\\\"===this.orientation},scrollTo:function(t){this.element\\\\u0026\\\\u0026this.element.scrollTo(t)},scrollToIndex:function(t){var e=this,n=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:\\\\\\\"auto\\\\\\\",o=this.isBoth(),i=this.isHorizontal();if(o?t.every((function(t){return t\\\\u003e-1})):t\\\\u003e-1){var r=this.first,s=this.element,l=s.scrollTop,a=void 0===l?0:l,c=s.scrollLeft,u=void 0===c?0:c,d=this.calculateNumItems().numToleratedItems,p=this.getContentPosition(),h=this.itemSize,f=function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0;return t\\\\u003c=(arguments.length\\\\u003e1?arguments[1]:void 0)?0:t},b=function(t,e,n){return t*e+n},m=function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0,o=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:0;return e.scrollTo({left:t,top:o,behavior:n})},g=o?{rows:0,cols:0}:0,v=!1,y=!1;o?(m(b((g={rows:f(t[0],d[0]),cols:f(t[1],d[1])}).cols,h[1],p.left),b(g.rows,h[0],p.top)),y=this.lastScrollPos.top!==a||this.lastScrollPos.left!==u,v=g.rows!==r.rows||g.cols!==r.cols):(g=f(t,d),i?m(b(g,h,p.left),a):m(u,b(g,h,p.top)),y=this.lastScrollPos!==(i?u:a),v=g!==r),this.isRangeChanged=v,y\\\\u0026\\\\u0026(this.first=g)}},scrollInView:function(t,e){var n=this,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]?arguments[2]:\\\\\\\"auto\\\\\\\";if(e){var i=this.isBoth(),r=this.isHorizontal();if(i?t.every((function(t){return t\\\\u003e-1})):t\\\\u003e-1){var s=this.getRenderedRange(),l=s.first,a=s.viewport,c=function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0,e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:0;return n.scrollTo({left:t,top:e,behavior:o})},u=\\\\\\\"to-end\\\\\\\"===e;if(\\\\\\\"to-start\\\\\\\"===e){if(i)a.first.rows-l.rows\\\\u003et[0]?c(a.first.cols*this.itemSize[1],(a.first.rows-1)*this.itemSize[0]):a.first.cols-l.cols\\\\u003et[1]\\\\u0026\\\\u0026c((a.first.cols-1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.first-l\\\\u003et){var d=(a.first-1)*this.itemSize;r?c(d,0):c(0,d)}}else if(u)if(i)a.last.rows-l.rows\\\\u003c=t[0]+1?c(a.first.cols*this.itemSize[1],(a.first.rows+1)*this.itemSize[0]):a.last.cols-l.cols\\\\u003c=t[1]+1\\\\u0026\\\\u0026c((a.first.cols+1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.last-l\\\\u003c=t+1){var p=(a.first+1)*this.itemSize;r?c(p,0):c(0,p)}}}else this.scrollToIndex(t,o)},getRenderedRange:function(){var t=function(t,e){return Math.floor(t/(e||t))},e=this.first,n=0;if(this.element){var o=this.isBoth(),i=this.isHorizontal(),r=this.element,s=r.scrollTop,l=r.scrollLeft;if(o)n={rows:(e={rows:t(s,this.itemSize[0]),cols:t(l,this.itemSize[1])}).rows+this.numItemsInViewport.rows,cols:e.cols+this.numItemsInViewport.cols};else n=(e=t(i?l:s,this.itemSize))+this.numItemsInViewport}return{first:this.first,last:this.last,viewport:{first:e,last:n}}},calculateNumItems:function(){var t=this.isBoth(),e=this.isHorizontal(),n=this.itemSize,o=this.getContentPosition(),i=this.element?this.element.offsetWidth-o.left:0,r=this.element?this.element.offsetHeight-o.top:0,s=function(t,e){return Math.ceil(t/(e||t))},l=function(t){return Math.ceil(t/2)},a=t?{rows:s(r,n[0]),cols:s(i,n[1])}:s(e?i:r,n);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(t?[l(a.rows),l(a.cols)]:l(a))}},calculateOptions:function(){var t=this,e=this.isBoth(),n=this.first,o=this.calculateNumItems(),i=o.numItemsInViewport,r=o.numToleratedItems,s=function(e,n,o){var i=arguments.length\\\\u003e3\\\\u0026\\\\u0026void 0!==arguments[3]\\\\u0026\\\\u0026arguments[3];return t.getLast(e+n+(e\\\\u003co?2:3)*o,i)},l=e?{rows:s(n.rows,i.rows,r[0]),cols:s(n.cols,i.cols,r[1],!0)}:s(n,i,r);this.last=l,this.numItemsInViewport=i,this.d_numToleratedItems=r,this.$emit(\\\\\\\"update:numToleratedItems\\\\\\\",this.d_numToleratedItems),this.showLoader\\\\u0026\\\\u0026(this.loaderArr=e?Array.from({length:i.rows}).map((function(){return Array.from({length:i.cols})})):Array.from({length:i})),this.lazy\\\\u0026\\\\u0026Promise.resolve().then((function(){var o;t.lazyLoadState={first:t.step?e?{rows:0,cols:n.cols}:0:n,last:Math.min(t.step?t.step:l,(null===(o=t.items)||void 0===o?void 0:o.length)||0)},t.$emit(\\\\\\\"lazy-load\\\\\\\",t.lazyLoadState)}))},calculateAutoSize:function(){var t=this;this.autoSize\\\\u0026\\\\u0026!this.d_loading\\\\u0026\\\\u0026Promise.resolve().then((function(){if(t.content){var e=t.isBoth(),n=t.isHorizontal(),o=t.isVertical();t.content.style.minHeight=t.content.style.minWidth=\\\\\\\"auto\\\\\\\",t.content.style.position=\\\\\\\"relative\\\\\\\",t.element.style.contain=\\\\\\\"none\\\\\\\";var i=[R(t.element),j(t.element)],r=i[0],s=i[1];(e||n)\\\\u0026\\\\u0026(t.element.style.width=r\\\\u003ct.defaultWidth?r+\\\\\\\"px\\\\\\\":t.scrollWidth||t.defaultWidth+\\\\\\\"px\\\\\\\"),(e||o)\\\\u0026\\\\u0026(t.element.style.height=s\\\\u003ct.defaultHeight?s+\\\\\\\"px\\\\\\\":t.scrollHeight||t.defaultHeight+\\\\\\\"px\\\\\\\"),t.content.style.minHeight=t.content.style.minWidth=\\\\\\\"\\\\\\\",t.content.style.position=\\\\\\\"\\\\\\\",t.element.style.contain=\\\\\\\"\\\\\\\"}}))},getLast:function(){var t,e,n=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0,o=arguments.length\\\\u003e1?arguments[1]:void 0;return this.items?Math.min(o?(null===(t=this.columns||this.items[0])||void 0===t?void 0:t.length)||0:(null===(e=this.items)||void 0===e?void 0:e.length)||0,n):0},getContentPosition:function(){if(this.content){var t=getComputedStyle(this.content),e=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),n=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),o=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),i=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:e,right:n,top:o,bottom:i,x:e+n,y:o+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var t=this;if(this.element){var e=this.isBoth(),n=this.isHorizontal(),o=this.element.parentElement,i=this.scrollWidth||\\\\\\\"\\\\\\\".concat(this.element.offsetWidth||o.offsetWidth,\\\\\\\"px\\\\\\\"),r=this.scrollHeight||\\\\\\\"\\\\\\\".concat(this.element.offsetHeight||o.offsetHeight,\\\\\\\"px\\\\\\\"),s=function(e,n){return t.element.style[e]=n};e||n?(s(\\\\\\\"height\\\\\\\",r),s(\\\\\\\"width\\\\\\\",i)):s(\\\\\\\"height\\\\\\\",r)}},setSpacerSize:function(){var t=this,e=this.items;if(e){var n=this.isBoth(),o=this.isHorizontal(),i=this.getContentPosition(),r=function(e,n,o){var i=arguments.length\\\\u003e3\\\\u0026\\\\u0026void 0!==arguments[3]?arguments[3]:0;return t.spacerStyle=tn(tn({},t.spacerStyle),en({},\\\\\\\"\\\\\\\".concat(e),(n||[]).length*o+i+\\\\\\\"px\\\\\\\"))};n?(r(\\\\\\\"height\\\\\\\",e,this.itemSize[0],i.y),r(\\\\\\\"width\\\\\\\",this.columns||e[1],this.itemSize[1],i.x)):o?r(\\\\\\\"width\\\\\\\",this.columns||e,this.itemSize,i.x):r(\\\\\\\"height\\\\\\\",e,this.itemSize,i.y)}},setContentPosition:function(t){var e=this;if(this.content\\\\u0026\\\\u0026!this.appendOnly){var n=this.isBoth(),o=this.isHorizontal(),i=t?t.first:this.first,r=function(t,e){return t*e},s=function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0,n=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:0;return e.contentStyle=tn(tn({},e.contentStyle),{transform:\\\\\\\"translate3d(\\\\\\\".concat(t,\\\\\\\"px, \\\\\\\").concat(n,\\\\\\\"px, 0)\\\\\\\")})};if(n)s(r(i.cols,this.itemSize[1]),r(i.rows,this.itemSize[0]));else{var l=r(i,this.itemSize);o?s(l,0):s(0,l)}}},onScrollPositionChange:function(t){var e=this,n=t.target,o=this.isBoth(),i=this.isHorizontal(),r=this.getContentPosition(),s=function(t,e){return t?t\\\\u003ee?t-e:t:0},l=function(t,e){return Math.floor(t/(e||t))},a=function(t,e,n,o,i,r){return t\\\\u003c=i?i:r?n-o-i:e+i-1},c=function(t,e,n,o,i,r,s){return t\\\\u003c=r?0:Math.max(0,s?t\\\\u003ce?n:t-r:t\\\\u003ee?n:t-2*r)},u=function(t,n,o,i,r,s){var l=n+i+2*r;return t\\\\u003e=r\\\\u0026\\\\u0026(l+=r+1),e.getLast(l,s)},d=s(n.scrollTop,r.top),p=s(n.scrollLeft,r.left),h=o?{rows:0,cols:0}:0,f=this.last,b=!1,m=this.lastScrollPos;if(o){var g=this.lastScrollPos.top\\\\u003c=d,v=this.lastScrollPos.left\\\\u003c=p;if(!this.appendOnly||this.appendOnly\\\\u0026\\\\u0026(g||v)){var y={rows:l(d,this.itemSize[0]),cols:l(p,this.itemSize[1])},x={rows:a(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:a(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)};h={rows:c(y.rows,x.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:c(y.cols,x.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)},f={rows:u(y.rows,h.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:u(y.cols,h.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=h.rows!==this.first.rows||f.rows!==this.last.rows||h.cols!==this.first.cols||f.cols!==this.last.cols||this.isRangeChanged,m={top:d,left:p}}}else{var I=i?p:d,k=this.lastScrollPos\\\\u003c=I;if(!this.appendOnly||this.appendOnly\\\\u0026\\\\u0026k){var w=l(I,this.itemSize);f=u(w,h=c(w,a(w,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),this.last,this.numItemsInViewport,this.d_numToleratedItems),b=h!==this.first||f!==this.last||this.isRangeChanged,m=I}}return{first:h,last:f,isRangeChanged:b,scrollPos:m}},onScrollChange:function(t){var e=this.onScrollPositionChange(t),n=e.first,o=e.last,i=e.isRangeChanged,r=e.scrollPos;if(i){var s={first:n,last:o};if(this.setContentPosition(s),this.first=n,this.last=o,this.lastScrollPos=r,this.$emit(\\\\\\\"scroll-index-change\\\\\\\",s),this.lazy\\\\u0026\\\\u0026this.isPageChanged(n)){var l,a,c={first:this.step?Math.min(this.getPageByFirst(n)*this.step,((null===(l=this.items)||void 0===l?void 0:l.length)||0)-this.step):n,last:Math.min(this.step?(this.getPageByFirst(n)+1)*this.step:o,(null===(a=this.items)||void 0===a?void 0:a.length)||0)};(this.lazyLoadState.first!==c.first||this.lazyLoadState.last!==c.last)\\\\u0026\\\\u0026this.$emit(\\\\\\\"lazy-load\\\\\\\",c),this.lazyLoadState=c}}},onScroll:function(t){var e=this;if(this.$emit(\\\\\\\"scroll\\\\\\\",t),this.delay){if(this.scrollTimeout\\\\u0026\\\\u0026clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading\\\\u0026\\\\u0026this.showLoader)(this.onScrollPositionChange(t).isRangeChanged||!!this.step\\\\u0026\\\\u0026this.isPageChanged())\\\\u0026\\\\u0026(this.d_loading=!0);this.scrollTimeout=setTimeout((function(){e.onScrollChange(t),!e.d_loading||!e.showLoader||e.lazy\\\\u0026\\\\u0026void 0!==e.loading||(e.d_loading=!1,e.page=e.getPageByFirst())}),this.delay)}}else this.onScrollChange(t)},onResize:function(){var t=this;this.resizeTimeout\\\\u0026\\\\u0026clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){if(Z(t.element)){var e=t.isBoth(),n=t.isVertical(),o=t.isHorizontal(),i=[R(t.element),j(t.element)],r=i[0],s=i[1],l=r!==t.defaultWidth,a=s!==t.defaultHeight;(e?l||a:o?l:!!n\\\\u0026\\\\u0026a)\\\\u0026\\\\u0026(t.d_numToleratedItems=t.numToleratedItems,t.defaultWidth=r,t.defaultHeight=s,t.defaultContentWidth=R(t.content),t.defaultContentHeight=j(t.content),t.init())}}),this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),window.addEventListener(\\\\\\\"orientationchange\\\\\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\\\u0026\\\\u0026(window.removeEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),window.removeEventListener(\\\\\\\"orientationchange\\\\\\\",this.resizeListener),this.resizeListener=null)},getOptions:function(t){var e=(this.items||[]).length,n=this.isBoth()?this.first.rows+t:this.first+t;return{index:n,count:e,first:0===n,last:n===e-1,even:n%2==0,odd:n%2!=0}},getLoaderOptions:function(t,e){var n=this.loaderArr.length;return tn({index:t,count:n,first:0===t,last:t===n-1,even:t%2==0,odd:t%2!=0},e)},getPageByFirst:function(t){return Math.floor(((null!=t?t:this.first)+4*this.d_numToleratedItems)/(this.step||1))},isPageChanged:function(t){return!(this.step\\\\u0026\\\\u0026!this.lazy)||this.page!==this.getPageByFirst(null!=t?t:this.first)},setContentEl:function(t){this.content=t||this.content||J(this.element,'[data-pc-section=\\\\\\\"content\\\\\\\"]')},elementRef:function(t){this.element=t},contentRef:function(t){this.content=t}},computed:{containerClass:function(){return[\\\\\\\"p-virtualscroller\\\\\\\",this.class,{\\\\\\\"p-virtualscroller-inline\\\\\\\":this.inline,\\\\\\\"p-virtualscroller-both p-both-scroll\\\\\\\":this.isBoth(),\\\\\\\"p-virtualscroller-horizontal p-horizontal-scroll\\\\\\\":this.isHorizontal()}]},contentClass:function(){return[\\\\\\\"p-virtualscroller-content\\\\\\\",{\\\\\\\"p-virtualscroller-loading\\\\\\\":this.d_loading}]},loaderClass:function(){return[\\\\\\\"p-virtualscroller-loader\\\\\\\",{\\\\\\\"p-virtualscroller-loader-mask\\\\\\\":!this.$slots.loader}]},loadedItems:function(){var t=this;return this.items\\\\u0026\\\\u0026!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map((function(e){return t.columns?e:e.slice(t.appendOnly?0:t.first.cols,t.last.cols)})):this.isHorizontal()\\\\u0026\\\\u0026this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var t=this.isBoth(),e=this.isHorizontal();if(t||e)return this.d_loading\\\\u0026\\\\u0026this.loaderDisabled?t?this.loaderArr[0]:this.loaderArr:this.columns.slice(t?this.first.cols:this.first,t?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:Ct}},on=[\\\\\\\"tabindex\\\\\\\"];nn.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"SpinnerIcon\\\\\\\");return t.disabled?(m(),g(_,{key:1},[v(t.$slots,\\\\\\\"default\\\\\\\"),v(t.$slots,\\\\\\\"content\\\\\\\",{items:t.items,rows:t.items,columns:r.loadedColumns})],64)):(m(),g(\\\\\\\"div\\\\\\\",I({key:0,ref:r.elementRef,class:r.containerClass,tabindex:t.tabindex,style:t.style,onScroll:e[0]||(e[0]=function(){return r.onScroll\\\\u0026\\\\u0026r.onScroll.apply(r,arguments)})},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"content\\\\\\\",{styleClass:r.contentClass,items:r.loadedItems,getItemOptions:r.getOptions,loading:i.d_loading,getLoaderOptions:r.getLoaderOptions,itemSize:t.itemSize,rows:r.loadedRows,columns:r.loadedColumns,contentRef:r.contentRef,spacerStyle:i.spacerStyle,contentStyle:i.contentStyle,vertical:r.isVertical(),horizontal:r.isHorizontal(),both:r.isBoth()},(function(){return[C(\\\\\\\"div\\\\\\\",I({ref:r.contentRef,class:r.contentClass,style:i.contentStyle},t.ptm(\\\\\\\"content\\\\\\\")),[(m(!0),g(_,null,M(r.loadedItems,(function(e,n){return v(t.$slots,\\\\\\\"item\\\\\\\",{key:n,item:e,options:r.getOptions(n)})})),128))],16)]})),t.showSpacer?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:\\\\\\\"p-virtualscroller-spacer\\\\\\\",style:i.spacerStyle},t.ptm(\\\\\\\"spacer\\\\\\\")),null,16)):$(\\\\\\\"\\\\\\\",!0),!t.loaderDisabled\\\\u0026\\\\u0026t.showLoader\\\\u0026\\\\u0026i.d_loading?(m(),g(\\\\\\\"div\\\\\\\",I({key:1,class:r.loaderClass},t.ptm(\\\\\\\"loader\\\\\\\")),[t.$slots\\\\u0026\\\\u0026t.$slots.loader?(m(!0),g(_,{key:0},M(i.loaderArr,(function(e,n){return v(t.$slots,\\\\\\\"loader\\\\\\\",{key:n,options:r.getLoaderOptions(n,r.isBoth()\\\\u0026\\\\u0026{numCols:t.d_numItemsInViewport.cols})})})),128)):$(\\\\\\\"\\\\\\\",!0),v(t.$slots,\\\\\\\"loadingicon\\\\\\\",{},(function(){return[V(s,I({spin:\\\\\\\"\\\\\\\",class:\\\\\\\"p-virtualscroller-loading-icon\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16)]}))],16)):$(\\\\\\\"\\\\\\\",!0)],16,on))};var rn=St.extend({name:\\\\\\\"select\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-select {\\\\\\\\n    display: inline-flex;\\\\\\\\n    cursor: pointer;\\\\\\\\n    position: relative;\\\\\\\\n    user-select: none;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"select.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"select.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n        outline-color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"select.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"select.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select:not(.p-disabled):hover {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"select.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select:not(.p-disabled).p-focus {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"select.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"select.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"select.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"select.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"select.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"select.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-variant-filled {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.filled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-variant-filled:not(.p-disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.filled.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-variant-filled:not(.p-disabled).p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.filled.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-invalid {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"select.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-clear-icon {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 50%;\\\\\\\\n    margin-top: -0.5rem;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.clear.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    inset-inline-end: \\\\\\\").concat(e(\\\\\\\"select.dropdown.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-dropdown {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    flex-shrink: 0;\\\\\\\\n    background: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.dropdown.color\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"select.dropdown.width\\\\\\\"),\\\\\\\";\\\\\\\\n    border-start-end-radius: \\\\\\\").concat(e(\\\\\\\"select.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border-end-end-radius: \\\\\\\").concat(e(\\\\\\\"select.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-label {\\\\\\\\n    display: block;\\\\\\\\n    white-space: nowrap;\\\\\\\\n    overflow: hidden;\\\\\\\\n    flex: 1 1 auto;\\\\\\\\n    width: 1%;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"select.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    text-overflow: ellipsis;\\\\\\\\n    cursor: pointer;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: transparent;\\\\\\\\n    border: 0 none;\\\\\\\\n    outline: 0 none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-label.p-placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-invalid .p-select-label.p-placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.invalid.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select:has(.p-select-clear-icon) .p-select-label {\\\\\\\\n    padding-inline-end: calc(1rem + \\\\\\\").concat(e(\\\\\\\"select.padding.x\\\\\\\"),\\\\\\\");\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-disabled .p-select-label {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-label-empty {\\\\\\\\n    overflow: hidden;\\\\\\\\n    opacity: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\ninput.p-select-label {\\\\\\\\n    cursor: default;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select .p-select-overlay {\\\\\\\\n    min-width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-overlay {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.overlay.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.overlay.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"select.overlay.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"select.overlay.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"select.overlay.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-header {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.list.header.padding\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-filter {\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-list-container {\\\\\\\\n    overflow: auto;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option-group {\\\\\\\\n    cursor: auto;\\\\\\\\n    margin: 0;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.option.group.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.option.group.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.group.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"select.option.group.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-list {\\\\\\\\n    margin: 0;\\\\\\\\n    padding: 0;\\\\\\\\n    list-style-type: none;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.list.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"select.list.gap\\\\\\\"),\\\\\\\";\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option {\\\\\\\\n    cursor: pointer;\\\\\\\\n    font-weight: normal;\\\\\\\\n    white-space: nowrap;\\\\\\\\n    position: relative;\\\\\\\\n    overflow: hidden;\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.option.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 0 none;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: transparent;\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n            box-shadow \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"select.option.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.option.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option.p-select-option-selected {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.option.selected.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.selected.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option.p-select-option-selected.p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.option.selected.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.selected.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option-check-icon {\\\\\\\\n    position: relative;\\\\\\\\n    margin-inline-start: \\\\\\\").concat(e(\\\\\\\"select.checkmark.gutter.start\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-inline-end: \\\\\\\").concat(e(\\\\\\\"select.checkmark.gutter.end\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.checkmark.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-empty-message {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.empty.message.padding\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-fluid {\\\\\\\\n    display: flex;\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-sm .p-select-label {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"select.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"select.sm.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"select.sm.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-sm .p-select-dropdown .p-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"select.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"select.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"select.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-lg .p-select-label {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"select.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"select.lg.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"select.lg.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-lg .p-select-dropdown .p-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"select.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"select.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"select.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props,o=t.state;return[\\\\\\\"p-select p-component p-inputwrapper\\\\\\\",{\\\\\\\"p-disabled\\\\\\\":n.disabled,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-variant-filled\\\\\\\":\\\\\\\"filled\\\\\\\"===e.$variant,\\\\\\\"p-focus\\\\\\\":o.focused,\\\\\\\"p-inputwrapper-filled\\\\\\\":e.$filled,\\\\\\\"p-inputwrapper-focus\\\\\\\":o.focused||o.overlayVisible,\\\\\\\"p-select-open\\\\\\\":o.overlayVisible,\\\\\\\"p-select-fluid\\\\\\\":e.$fluid,\\\\\\\"p-select-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-select-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size}]},label:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-select-label\\\\\\\",{\\\\\\\"p-placeholder\\\\\\\":!n.editable\\\\u0026\\\\u0026e.label===n.placeholder,\\\\\\\"p-select-label-empty\\\\\\\":!(n.editable||e.$slots.value||\\\\\\\"p-emptylabel\\\\\\\"!==e.label\\\\u0026\\\\u00260!==e.label.length)}]},clearIcon:\\\\\\\"p-select-clear-icon\\\\\\\",dropdown:\\\\\\\"p-select-dropdown\\\\\\\",loadingicon:\\\\\\\"p-select-loading-icon\\\\\\\",dropdownIcon:\\\\\\\"p-select-dropdown-icon\\\\\\\",overlay:\\\\\\\"p-select-overlay p-component\\\\\\\",header:\\\\\\\"p-select-header\\\\\\\",pcFilter:\\\\\\\"p-select-filter\\\\\\\",listContainer:\\\\\\\"p-select-list-container\\\\\\\",list:\\\\\\\"p-select-list\\\\\\\",optionGroup:\\\\\\\"p-select-option-group\\\\\\\",optionGroupLabel:\\\\\\\"p-select-option-group-label\\\\\\\",option:function(t){var e=t.instance,n=t.props,o=t.state,i=t.option,r=t.focusedOption;return[\\\\\\\"p-select-option\\\\\\\",{\\\\\\\"p-select-option-selected\\\\\\\":e.isSelected(i)\\\\u0026\\\\u0026n.highlightOnSelect,\\\\\\\"p-focus\\\\\\\":o.focusedOptionIndex===r,\\\\\\\"p-disabled\\\\\\\":e.isOptionDisabled(i)}]},optionLabel:\\\\\\\"p-select-option-label\\\\\\\",optionCheckIcon:\\\\\\\"p-select-option-check-icon\\\\\\\",optionBlankIcon:\\\\\\\"p-select-option-blank-icon\\\\\\\",emptyMessage:\\\\\\\"p-select-empty-message\\\\\\\"}});function sn(t){return(sn=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function ln(t){return function(t){if(Array.isArray(t))return an(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return an(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?an(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function an(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\\\u0026\\\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function un(t){for(var e=1;e\\\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(n),!0).forEach((function(e){dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=sn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=sn(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==sn(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pn={name:\\\\\\\"Select\\\\\\\",extends:{name:\\\\\\\"BaseSelect\\\\\\\",extends:zt,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:\\\\\\\"14rem\\\\\\\"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:\\\\\\\"contains\\\\\\\"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:\\\\\\\"body\\\\\\\"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:rn,provide:function(){return{$pcSelect:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\",\\\\\\\"focus\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"before-show\\\\\\\",\\\\\\\"before-hide\\\\\\\",\\\\\\\"show\\\\\\\",\\\\\\\"hide\\\\\\\",\\\\\\\"filter\\\\\\\"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{\\\\\\\"$attrs.id\\\\\\\":function(t){this.id=t||Et()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Et(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible\\\\u0026\\\\u0026this.isModelValueChanged\\\\u0026\\\\u0026this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler\\\\u0026\\\\u0026(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay\\\\u0026\\\\u0026(Q.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,e){return this.virtualScrollerDisabled?t:e\\\\u0026\\\\u0026e(t).index},getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t,e){return(this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t))+\\\\\\\"_\\\\\\\"+e},getPTItemOptions:function(t,e,n,o){return this.ptm(o,{context:{option:t,index:n,selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(n,e),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return!!this.optionDisabled\\\\u0026\\\\u0026tt(t,this.optionDisabled)},isOptionGroup:function(t){return this.optionGroupLabel\\\\u0026\\\\u0026t.optionGroup\\\\u0026\\\\u0026t.group},getOptionGroupLabel:function(t){return tt(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return tt(t,this.optionGroupChildren)},getAriaPosInset:function(t){var e=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter((function(t){return e.isOptionGroup(t)})).length:t)+1},show:function(t){this.$emit(\\\\\\\"before-show\\\\\\\"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),t\\\\u0026\\\\u0026et(this.$refs.focusInput)},hide:function(t){var e=this;setTimeout((function(){e.$emit(\\\\\\\"before-hide\\\\\\\"),e.overlayVisible=!1,e.clicked=!1,e.focusedOptionIndex=-1,e.searchValue=\\\\\\\"\\\\\\\",e.resetFilterOnHide\\\\u0026\\\\u0026(e.filterValue=null),t\\\\u0026\\\\u0026et(e.$refs.focusInput)}),0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible\\\\u0026\\\\u0026(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit(\\\\\\\"focus\\\\\\\",t))},onBlur:function(t){var e,n;this.focused=!1,this.focusedOptionIndex=-1,this.searchValue=\\\\\\\"\\\\\\\",this.$emit(\\\\\\\"blur\\\\\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)},onKeyDown:function(t){if(this.disabled||nt())t.preventDefault();else{var e=t.metaKey||t.ctrlKey;switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t,this.editable);break;case\\\\\\\"ArrowLeft\\\\\\\":case\\\\\\\"ArrowRight\\\\\\\":this.onArrowLeftKey(t,this.editable);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t,this.editable);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t,this.editable);break;case\\\\\\\"PageDown\\\\\\\":this.onPageDownKey(t);break;case\\\\\\\"PageUp\\\\\\\":this.onPageUpKey(t);break;case\\\\\\\"Space\\\\\\\":this.onSpaceKey(t,this.editable);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t);break;case\\\\\\\"Backspace\\\\\\\":this.onBackspaceKey(t,this.editable);break;case\\\\\\\"ShiftLeft\\\\\\\":case\\\\\\\"ShiftRight\\\\\\\":break;default:!e\\\\u0026\\\\u0026ot(t.key)\\\\u0026\\\\u0026(!this.overlayVisible\\\\u0026\\\\u0026this.show(),!this.editable\\\\u0026\\\\u0026this.searchOptions(t,t.key))}this.clicked=!1}},onEditableInput:function(t){var e=t.target.value;this.searchValue=\\\\\\\"\\\\\\\",!this.searchOptions(t,e)\\\\u0026\\\\u0026(this.focusedOptionIndex=-1),this.updateModel(t,e),!this.overlayVisible\\\\u0026\\\\u0026K(e)\\\\u0026\\\\u0026this.show()},onContainerClick:function(t){this.disabled||this.loading||\\\\\\\"INPUT\\\\\\\"===t.target.tagName||\\\\\\\"clearicon\\\\\\\"===t.target.getAttribute(\\\\\\\"data-pc-section\\\\\\\")||t.target.closest('[data-pc-section=\\\\\\\"clearicon\\\\\\\"]')||(this.overlay\\\\u0026\\\\u0026this.overlay.contains(t.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear\\\\u0026\\\\u0026(this.filterValue=null)},onFirstHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?it(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])'):this.$refs.focusInput;et(e)},onLastHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?rt(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])'):this.$refs.focusInput;et(e)},onOptionSelect:function(t,e){var n=!(arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2])||arguments[2],o=this.getOptionValue(e);this.updateModel(t,o),n\\\\u0026\\\\u0026this.hide(!0)},onOptionMouseMove:function(t,e){this.focusOnHover\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,e)},onFilterChange:function(t){var e=t.target.value;this.filterValue=e,this.focusedOptionIndex=-1,this.$emit(\\\\\\\"filter\\\\\\\",{originalEvent:t,value:e}),!this.virtualScrollerDisabled\\\\u0026\\\\u0026this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){if(!t.isComposing)switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t,!0);break;case\\\\\\\"ArrowLeft\\\\\\\":case\\\\\\\"ArrowRight\\\\\\\":this.onArrowLeftKey(t,!0);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t,!0);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t,!0);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible\\\\u0026\\\\u0026this.alignOverlay()},onOverlayClick:function(t){Xe.emit(\\\\\\\"overlay-click\\\\\\\",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){if(\\\\\\\"Escape\\\\\\\"===t.code)this.onEscapeKey(t)},onArrowDownKey:function(t){if(this.overlayVisible){var e=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(t,e)}else this.show(),this.editable\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,this.findSelectedOptionIndex());t.preventDefault()},onArrowUpKey:function(t){var e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1];if(t.altKey\\\\u0026\\\\u0026!e)-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\\\u0026\\\\u0026this.hide(),t.preventDefault();else{var n=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(t,n),!this.overlayVisible\\\\u0026\\\\u0026this.show(),t.preventDefault()}},onArrowLeftKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]\\\\u0026\\\\u0026(this.focusedOptionIndex=-1)},onHomeKey:function(t){if(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]){var e=t.currentTarget;t.shiftKey?e.setSelectionRange(0,t.target.selectionStart):(e.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(t,this.findFirstOptionIndex()),!this.overlayVisible\\\\u0026\\\\u0026this.show();t.preventDefault()},onEndKey:function(t){if(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]){var e=t.currentTarget;if(t.shiftKey)e.setSelectionRange(t.target.selectionStart,e.value.length);else{var n=e.value.length;e.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(t,this.findLastOptionIndex()),!this.overlayVisible\\\\u0026\\\\u0026this.show();t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?(-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onSpaceKey:function(t){!(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1])\\\\u0026\\\\u0026this.onEnterKey(t)},onEscapeKey:function(t){this.overlayVisible\\\\u0026\\\\u0026this.hide(!0),t.preventDefault(),t.stopPropagation()},onTabKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]||(this.overlayVisible\\\\u0026\\\\u0026this.hasFocusableElements()?(et(this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\\\u0026\\\\u0026this.hide(this.filter)))},onBackspaceKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]\\\\u0026\\\\u0026!this.overlayVisible\\\\u0026\\\\u0026this.show()},onOverlayEnter:function(t){var e=this;Q.set(\\\\\\\"overlay\\\\\\\",t,this.$primevue.config.zIndex.overlay),st(t,{position:\\\\\\\"absolute\\\\\\\",top:\\\\\\\"0\\\\\\\",left:\\\\\\\"0\\\\\\\"}),this.alignOverlay(),this.scrollInView(),setTimeout((function(){e.autoFilterFocus\\\\u0026\\\\u0026e.filter\\\\u0026\\\\u0026et(e.$refs.filterInput.$el)}),1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(\\\\\\\"show\\\\\\\")},onOverlayLeave:function(){var t=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus\\\\u0026\\\\u0026this.filter\\\\u0026\\\\u0026!this.editable\\\\u0026\\\\u0026this.$nextTick((function(){et(t.$refs.filterInput.$el)})),this.$emit(\\\\\\\"hide\\\\\\\"),this.overlay=null},onOverlayAfterLeave:function(t){Q.clear(t)},alignOverlay:function(){\\\\\\\"self\\\\\\\"===this.appendTo?lt(this.overlay,this.$el):(this.overlay.style.minWidth=G(this.$el)+\\\\\\\"px\\\\\\\",at(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){t.overlayVisible\\\\u0026\\\\u0026t.overlay\\\\u0026\\\\u0026!t.$el.contains(e.target)\\\\u0026\\\\u0026!t.overlay.contains(e.target)\\\\u0026\\\\u0026t.hide()},document.addEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Tt(this.$refs.container,(function(){t.overlayVisible\\\\u0026\\\\u0026t.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler\\\\u0026\\\\u0026this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible\\\\u0026\\\\u0026!ct()\\\\u0026\\\\u0026t.hide()},window.addEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\\\u0026\\\\u0026(window.removeEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var t=this;if(!this.editable\\\\u0026\\\\u0026!this.labelClickListener){var e=document.querySelector('label[for=\\\\\\\"'.concat(this.labelId,'\\\\\\\"]'));e\\\\u0026\\\\u0026Z(e)\\\\u0026\\\\u0026(this.labelClickListener=function(){et(t.$refs.focusInput)},e.addEventListener(\\\\\\\"click\\\\\\\",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var t=document.querySelector('label[for=\\\\\\\"'.concat(this.labelId,'\\\\\\\"]'));t\\\\u0026\\\\u0026Z(t)\\\\u0026\\\\u0026t.removeEventListener(\\\\\\\"click\\\\\\\",this.labelClickListener)}},hasFocusableElements:function(){return ut(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])').length\\\\u003e0},isOptionMatched:function(t){var e;return this.isValidOption(t)\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"==typeof this.getOptionLabel(t)\\\\u0026\\\\u0026(null===(e=this.getOptionLabel(t))||void 0===e?void 0:e.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return K(t)\\\\u0026\\\\u0026!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)\\\\u0026\\\\u0026this.isSelected(t)},isSelected:function(t){return dt(this.d_value,this.getOptionValue(t),this.equalityKey)},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex((function(e){return t.isValidOption(e)}))},findLastOptionIndex:function(){var t=this;return pt(this.visibleOptions,(function(e){return t.isValidOption(e)}))},findNextOptionIndex:function(t){var e=this,n=t\\\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidOption(t)})):-1;return n\\\\u003e-1?n+t+1:t},findPrevOptionIndex:function(t){var e=this,n=t\\\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidOption(t)})):-1;return n\\\\u003e-1?n:t},findSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex((function(e){return t.isValidSelectedOption(e)})):-1},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\\\u003c0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\\\u003c0?this.findLastOptionIndex():t},searchOptions:function(t,e){var n=this;this.searchValue=(this.searchValue||\\\\\\\"\\\\\\\")+e;var o=-1,i=!1;return K(this.searchValue)\\\\u0026\\\\u0026(-1!==(o=-1!==this.focusedOptionIndex?-1===(o=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(t){return n.isOptionMatched(t)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(t){return n.isOptionMatched(t)})):o+this.focusedOptionIndex:this.visibleOptions.findIndex((function(t){return n.isOptionMatched(t)})))\\\\u0026\\\\u0026(i=!0),-1===o\\\\u0026\\\\u0026-1===this.focusedOptionIndex\\\\u0026\\\\u0026(o=this.findFirstFocusedOptionIndex()),-1!==o\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,o)),this.searchTimeout\\\\u0026\\\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){n.searchValue=\\\\\\\"\\\\\\\",n.searchTimeout=null}),500),i},changeFocusedOptionIndex:function(t,e){this.focusedOptionIndex!==e\\\\u0026\\\\u0026(this.focusedOptionIndex=e,this.scrollInView(),this.selectOnFocus\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[e],!1))},scrollInView:function(){var t=this,e=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var n=-1!==e?\\\\\\\"\\\\\\\".concat(t.id,\\\\\\\"_\\\\\\\").concat(e):t.focusedOptionId,o=J(t.list,'li[id=\\\\\\\"'.concat(n,'\\\\\\\"]'));o?o.scrollIntoView\\\\u0026\\\\u0026o.scrollIntoView({block:\\\\\\\"nearest\\\\\\\",inline:\\\\\\\"start\\\\\\\"}):t.virtualScrollerDisabled||t.virtualScroller\\\\u0026\\\\u0026t.virtualScroller.scrollToIndex(-1!==e?e:t.focusedOptionIndex)}))},autoUpdateModel:function(){this.selectOnFocus\\\\u0026\\\\u0026this.autoOptionFocus\\\\u0026\\\\u0026!this.$filled\\\\u0026\\\\u0026(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(t,e){this.writeValue(e,t),this.$emit(\\\\\\\"change\\\\\\\",{originalEvent:t,value:e})},flatOptions:function(t){var e=this;return(t||[]).reduce((function(t,n,o){t.push({optionGroup:n,group:!0,index:o});var i=e.getOptionGroupChildren(n);return i\\\\u0026\\\\u0026i.forEach((function(e){return t.push(e)})),t}),[])},overlayRef:function(t){this.overlay=t},listRef:function(t,e){this.list=t,e\\\\u0026\\\\u0026e(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=_t.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach((function(e){var o=t.getOptionGroupChildren(e).filter((function(t){return n.includes(t)}));o.length\\\\u003e0\\\\u0026\\\\u0026i.push(un(un({},e),{},dn({},\\\\\\\"string\\\\\\\"==typeof t.optionGroupChildren?t.optionGroupChildren:\\\\\\\"items\\\\\\\",ln(o))))})),this.flatOptions(i)}return n}return e},hasSelectedOption:function(){return this.$filled},label:function(){var t=this.findSelectedOptionIndex();return-1!==t?this.getOptionLabel(this.visibleOptions[t]):this.placeholder||\\\\\\\"p-emptylabel\\\\\\\"},editableInputValue:function(){var t=this.findSelectedOptionIndex();return-1!==t?this.getOptionLabel(this.visibleOptions[t]):this.d_value||\\\\\\\"\\\\\\\"},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return K(this.visibleOptions)?this.filterMessageText.replaceAll(\\\\\\\"{0}\\\\\\\",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||\\\\\\\"\\\\\\\"},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||\\\\\\\"\\\\\\\"},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||\\\\\\\"\\\\\\\"},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||\\\\\\\"\\\\\\\"},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||\\\\\\\"\\\\\\\"},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(\\\\\\\"{0}\\\\\\\",\\\\\\\"1\\\\\\\"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?\\\\\\\"\\\\\\\".concat(this.id,\\\\\\\"_\\\\\\\").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter((function(e){return!t.isOptionGroup(e)})).length},isClearIconVisible:function(){return this.showClear\\\\u0026\\\\u0026null!=this.d_value\\\\u0026\\\\u0026K(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:De},components:{InputText:We,VirtualScroller:nn,Portal:Ye,InputIcon:Ne,IconField:Ue,TimesIcon:Mt,ChevronDownIcon:Vt,SpinnerIcon:Ct,SearchIcon:Pt,CheckIcon:Ft,BlankIcon:At}},hn=[\\\\\\\"id\\\\\\\"],fn=[\\\\\\\"id\\\\\\\",\\\\\\\"value\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-expanded\\\\\\\",\\\\\\\"aria-controls\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"aria-invalid\\\\\\\"],bn=[\\\\\\\"id\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-expanded\\\\\\\",\\\\\\\"aria-controls\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"aria-disabled\\\\\\\"],mn=[\\\\\\\"id\\\\\\\"],gn=[\\\\\\\"id\\\\\\\"],vn=[\\\\\\\"id\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-selected\\\\\\\",\\\\\\\"aria-disabled\\\\\\\",\\\\\\\"aria-setsize\\\\\\\",\\\\\\\"aria-posinset\\\\\\\",\\\\\\\"onClick\\\\\\\",\\\\\\\"onMousemove\\\\\\\",\\\\\\\"data-p-selected\\\\\\\",\\\\\\\"data-p-focused\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"];pn.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"SpinnerIcon\\\\\\\"),l=k(\\\\\\\"InputText\\\\\\\"),a=k(\\\\\\\"SearchIcon\\\\\\\"),c=k(\\\\\\\"InputIcon\\\\\\\"),u=k(\\\\\\\"IconField\\\\\\\"),d=k(\\\\\\\"CheckIcon\\\\\\\"),p=k(\\\\\\\"BlankIcon\\\\\\\"),h=k(\\\\\\\"VirtualScroller\\\\\\\"),f=k(\\\\\\\"Portal\\\\\\\"),b=w(\\\\\\\"ripple\\\\\\\");return m(),g(\\\\\\\"div\\\\\\\",I({ref:\\\\\\\"container\\\\\\\",id:i.id,class:t.cx(\\\\\\\"root\\\\\\\"),onClick:e[11]||(e[11]=function(){return r.onContainerClick\\\\u0026\\\\u0026r.onContainerClick.apply(r,arguments)})},t.ptmi(\\\\\\\"root\\\\\\\")),[t.editable?(m(),g(\\\\\\\"input\\\\\\\",I({key:0,ref:\\\\\\\"focusInput\\\\\\\",id:t.labelId||t.inputId,type:\\\\\\\"text\\\\\\\",class:[t.cx(\\\\\\\"label\\\\\\\"),t.inputClass,t.labelClass],style:[t.inputStyle,t.labelStyle],value:r.editableInputValue,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,disabled:t.disabled,autocomplete:\\\\\\\"off\\\\\\\",role:\\\\\\\"combobox\\\\\\\",\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-haspopup\\\\\\\":\\\\\\\"listbox\\\\\\\",\\\\\\\"aria-expanded\\\\\\\":i.overlayVisible,\\\\\\\"aria-controls\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":i.focused?r.focusedOptionId:void 0,\\\\\\\"aria-invalid\\\\\\\":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\\\u0026\\\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onKeyDown\\\\u0026\\\\u0026r.onKeyDown.apply(r,arguments)}),onInput:e[3]||(e[3]=function(){return r.onEditableInput\\\\u0026\\\\u0026r.onEditableInput.apply(r,arguments)})},t.ptm(\\\\\\\"label\\\\\\\")),null,16,fn)):(m(),g(\\\\\\\"span\\\\\\\",I({key:1,ref:\\\\\\\"focusInput\\\\\\\",id:t.labelId||t.inputId,class:[t.cx(\\\\\\\"label\\\\\\\"),t.inputClass,t.labelClass],style:[t.inputStyle,t.labelStyle],tabindex:t.disabled?-1:t.tabindex,role:\\\\\\\"combobox\\\\\\\",\\\\\\\"aria-label\\\\\\\":t.ariaLabel||(\\\\\\\"p-emptylabel\\\\\\\"===r.label?void 0:r.label),\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-haspopup\\\\\\\":\\\\\\\"listbox\\\\\\\",\\\\\\\"aria-expanded\\\\\\\":i.overlayVisible,\\\\\\\"aria-controls\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":i.focused?r.focusedOptionId:void 0,\\\\\\\"aria-disabled\\\\\\\":t.disabled,onFocus:e[4]||(e[4]=function(){return r.onFocus\\\\u0026\\\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[5]||(e[5]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[6]||(e[6]=function(){return r.onKeyDown\\\\u0026\\\\u0026r.onKeyDown.apply(r,arguments)})},t.ptm(\\\\\\\"label\\\\\\\")),[v(t.$slots,\\\\\\\"value\\\\\\\",{value:t.d_value,placeholder:t.placeholder},(function(){var t;return[y(x(\\\\\\\"p-emptylabel\\\\\\\"===r.label?\\\\\\\"\\u00a0\\\\\\\":null!==(t=r.label)\\\\u0026\\\\u0026void 0!==t?t:\\\\\\\"empty\\\\\\\"),1)]}))],16,bn)),r.isClearIconVisible?v(t.$slots,\\\\\\\"clearicon\\\\\\\",{key:2,class:z(t.cx(\\\\\\\"clearIcon\\\\\\\")),clearCallback:r.onClearClick},(function(){return[(m(),S(E(t.clearIcon?\\\\\\\"i\\\\\\\":\\\\\\\"TimesIcon\\\\\\\"),I({ref:\\\\\\\"clearIcon\\\\\\\",class:[t.cx(\\\\\\\"clearIcon\\\\\\\"),t.clearIcon],onClick:r.onClearClick},t.ptm(\\\\\\\"clearIcon\\\\\\\"),{\\\\\\\"data-pc-section\\\\\\\":\\\\\\\"clearicon\\\\\\\"}),null,16,[\\\\\\\"class\\\\\\\",\\\\\\\"onClick\\\\\\\"]))]})):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"dropdown\\\\\\\")},t.ptm(\\\\\\\"dropdown\\\\\\\")),[t.loading?v(t.$slots,\\\\\\\"loadingicon\\\\\\\",{key:0,class:z(t.cx(\\\\\\\"loadingIcon\\\\\\\"))},(function(){return[t.loadingIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),\\\\\\\"pi-spin\\\\\\\",t.loadingIcon],\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16)):(m(),S(s,I({key:1,class:t.cx(\\\\\\\"loadingIcon\\\\\\\"),spin:\\\\\\\"\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]})):v(t.$slots,\\\\\\\"dropdownicon\\\\\\\",{key:1,class:z(t.cx(\\\\\\\"dropdownIcon\\\\\\\"))},(function(){return[(m(),S(E(t.dropdownIcon?\\\\\\\"span\\\\\\\":\\\\\\\"ChevronDownIcon\\\\\\\"),I({class:[t.cx(\\\\\\\"dropdownIcon\\\\\\\"),t.dropdownIcon],\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"dropdownIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]}))],16),V(f,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\\\\\"p-connected-overlay\\\\\\\",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},t.ptm(\\\\\\\"transition\\\\\\\")),{default:L((function(){return[i.overlayVisible?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,ref:r.overlayRef,class:[t.cx(\\\\\\\"overlay\\\\\\\"),t.panelClass,t.overlayClass],style:[t.panelStyle,t.overlayStyle],onClick:e[9]||(e[9]=function(){return r.onOverlayClick\\\\u0026\\\\u0026r.onOverlayClick.apply(r,arguments)}),onKeydown:e[10]||(e[10]=function(){return r.onOverlayKeyDown\\\\u0026\\\\u0026r.onOverlayKeyDown.apply(r,arguments)})},t.ptm(\\\\\\\"overlay\\\\\\\")),[C(\\\\\\\"span\\\\\\\",I({ref:\\\\\\\"firstHiddenFocusableElementOnOverlay\\\\\\\",role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\",class:\\\\\\\"p-hidden-accessible p-hidden-focusable\\\\\\\",tabindex:0,onFocus:e[7]||(e[7]=function(){return r.onFirstHiddenFocus\\\\u0026\\\\u0026r.onFirstHiddenFocus.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenFirstFocusableEl\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0,\\\\\\\"data-p-hidden-focusable\\\\\\\":!0}),null,16),v(t.$slots,\\\\\\\"header\\\\\\\",{value:t.d_value,options:r.visibleOptions}),t.filter?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"header\\\\\\\")},t.ptm(\\\\\\\"header\\\\\\\")),[V(u,{unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcFilterContainer\\\\\\\")},{default:L((function(){return[V(l,{ref:\\\\\\\"filterInput\\\\\\\",type:\\\\\\\"text\\\\\\\",value:i.filterValue,onVnodeMounted:r.onFilterUpdated,onVnodeUpdated:r.onFilterUpdated,class:z(t.cx(\\\\\\\"pcFilter\\\\\\\")),placeholder:t.filterPlaceholder,variant:t.variant,unstyled:t.unstyled,role:\\\\\\\"searchbox\\\\\\\",autocomplete:\\\\\\\"off\\\\\\\",\\\\\\\"aria-owns\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":r.focusedOptionId,onKeydown:r.onFilterKeyDown,onBlur:r.onFilterBlur,onInput:r.onFilterChange,pt:t.ptm(\\\\\\\"pcFilter\\\\\\\")},null,8,[\\\\\\\"value\\\\\\\",\\\\\\\"onVnodeMounted\\\\\\\",\\\\\\\"onVnodeUpdated\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"variant\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"aria-owns\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"onKeydown\\\\\\\",\\\\\\\"onBlur\\\\\\\",\\\\\\\"onInput\\\\\\\",\\\\\\\"pt\\\\\\\"]),V(c,{unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcFilterIconContainer\\\\\\\")},{default:L((function(){return[v(t.$slots,\\\\\\\"filtericon\\\\\\\",{},(function(){return[t.filterIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:t.filterIcon},t.ptm(\\\\\\\"filterIcon\\\\\\\")),null,16)):(m(),S(a,F(I({key:1},t.ptm(\\\\\\\"filterIcon\\\\\\\"))),null,16))]}))]})),_:3},8,[\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])]})),_:3},8,[\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"]),C(\\\\\\\"span\\\\\\\",I({role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenFilterResult\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.filterResultMessageText),17)],16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"listContainer\\\\\\\"),style:{\\\\\\\"max-height\\\\\\\":r.virtualScrollerDisabled?t.scrollHeight:\\\\\\\"\\\\\\\"}},t.ptm(\\\\\\\"listContainer\\\\\\\")),[V(h,I({ref:r.virtualScrollerRef},t.virtualScrollerOptions,{items:r.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:t.ptm(\\\\\\\"virtualScroller\\\\\\\")}),A({content:L((function(e){var n=e.styleClass,o=e.contentRef,s=e.items,l=e.getItemOptions,a=e.contentStyle,c=e.itemSize;return[C(\\\\\\\"ul\\\\\\\",I({ref:function(t){return r.listRef(t,o)},id:i.id+\\\\\\\"_list\\\\\\\",class:[t.cx(\\\\\\\"list\\\\\\\"),n],style:a,role:\\\\\\\"listbox\\\\\\\"},t.ptm(\\\\\\\"list\\\\\\\")),[(m(!0),g(_,null,M(s,(function(e,n){return m(),g(_,{key:r.getOptionRenderKey(e,r.getOptionIndex(n,l))},[r.isOptionGroup(e)?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,id:i.id+\\\\\\\"_\\\\\\\"+r.getOptionIndex(n,l),style:{height:c?c+\\\\\\\"px\\\\\\\":void 0},class:t.cx(\\\\\\\"optionGroup\\\\\\\"),role:\\\\\\\"option\\\\\\\",ref_for:!0},t.ptm(\\\\\\\"optionGroup\\\\\\\")),[v(t.$slots,\\\\\\\"optiongroup\\\\\\\",{option:e.optionGroup,index:r.getOptionIndex(n,l)},(function(){return[C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"optionGroupLabel\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"optionGroupLabel\\\\\\\")),x(r.getOptionGroupLabel(e.optionGroup)),17)]}))],16,gn)):O((m(),g(\\\\\\\"li\\\\\\\",I({key:1,id:i.id+\\\\\\\"_\\\\\\\"+r.getOptionIndex(n,l),class:t.cx(\\\\\\\"option\\\\\\\",{option:e,focusedOption:r.getOptionIndex(n,l)}),style:{height:c?c+\\\\\\\"px\\\\\\\":void 0},role:\\\\\\\"option\\\\\\\",\\\\\\\"aria-label\\\\\\\":r.getOptionLabel(e),\\\\\\\"aria-selected\\\\\\\":r.isSelected(e),\\\\\\\"aria-disabled\\\\\\\":r.isOptionDisabled(e),\\\\\\\"aria-setsize\\\\\\\":r.ariaSetSize,\\\\\\\"aria-posinset\\\\\\\":r.getAriaPosInset(r.getOptionIndex(n,l)),onClick:function(t){return r.onOptionSelect(t,e)},onMousemove:function(t){return r.onOptionMouseMove(t,r.getOptionIndex(n,l))},\\\\\\\"data-p-selected\\\\\\\":r.isSelected(e),\\\\\\\"data-p-focused\\\\\\\":i.focusedOptionIndex===r.getOptionIndex(n,l),\\\\\\\"data-p-disabled\\\\\\\":r.isOptionDisabled(e),ref_for:!0},r.getPTItemOptions(e,l,n,\\\\\\\"option\\\\\\\")),[t.checkmark?(m(),g(_,{key:0},[r.isSelected(e)?(m(),S(d,I({key:0,class:t.cx(\\\\\\\"optionCheckIcon\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"optionCheckIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):(m(),S(p,I({key:1,class:t.cx(\\\\\\\"optionBlankIcon\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"optionBlankIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))],64)):$(\\\\\\\"\\\\\\\",!0),v(t.$slots,\\\\\\\"option\\\\\\\",{option:e,selected:r.isSelected(e),index:r.getOptionIndex(n,l)},(function(){return[C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"optionLabel\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"optionLabel\\\\\\\")),x(r.getOptionLabel(e)),17)]}))],16,vn)),[[b]])],64)})),128)),i.filterValue\\\\u0026\\\\u0026(!s||s\\\\u0026\\\\u00260===s.length)?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,class:t.cx(\\\\\\\"emptyMessage\\\\\\\"),role:\\\\\\\"option\\\\\\\"},t.ptm(\\\\\\\"emptyMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),[v(t.$slots,\\\\\\\"emptyfilter\\\\\\\",{},(function(){return[y(x(r.emptyFilterMessageText),1)]}))],16)):!t.options||t.options\\\\u0026\\\\u00260===t.options.length?(m(),g(\\\\\\\"li\\\\\\\",I({key:1,class:t.cx(\\\\\\\"emptyMessage\\\\\\\"),role:\\\\\\\"option\\\\\\\"},t.ptm(\\\\\\\"emptyMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),[v(t.$slots,\\\\\\\"empty\\\\\\\",{},(function(){return[y(x(r.emptyMessageText),1)]}))],16)):$(\\\\\\\"\\\\\\\",!0)],16,mn)]})),_:2},[t.$slots.loader?{name:\\\\\\\"loader\\\\\\\",fn:L((function(e){var n=e.options;return[v(t.$slots,\\\\\\\"loader\\\\\\\",{options:n})]})),key:\\\\\\\"0\\\\\\\"}:void 0]),1040,[\\\\\\\"items\\\\\\\",\\\\\\\"style\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"pt\\\\\\\"])],16),v(t.$slots,\\\\\\\"footer\\\\\\\",{value:t.d_value,options:r.visibleOptions}),!t.options||t.options\\\\u0026\\\\u00260===t.options.length?(m(),g(\\\\\\\"span\\\\\\\",I({key:1,role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenEmptyMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.emptyMessageText),17)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"span\\\\\\\",I({role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenSelectedMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.selectedMessageText),17),C(\\\\\\\"span\\\\\\\",I({ref:\\\\\\\"lastHiddenFocusableElementOnOverlay\\\\\\\",role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\",class:\\\\\\\"p-hidden-accessible p-hidden-focusable\\\\\\\",tabindex:0,onFocus:e[8]||(e[8]=function(){return r.onLastHiddenFocus\\\\u0026\\\\u0026r.onLastHiddenFocus.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenLastFocusableEl\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0,\\\\\\\"data-p-hidden-focusable\\\\\\\":!0}),null,16)],16)):$(\\\\\\\"\\\\\\\",!0)]})),_:3},16,[\\\\\\\"onEnter\\\\\\\",\\\\\\\"onAfterEnter\\\\\\\",\\\\\\\"onLeave\\\\\\\",\\\\\\\"onAfterLeave\\\\\\\"])]})),_:3},8,[\\\\\\\"appendTo\\\\\\\"])],16,hn)};var yn=St.extend({name:\\\\\\\"tooltip-directive\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-tooltip {\\\\\\\\n    position: absolute;\\\\\\\\n    display: none;\\\\\\\\n    max-width: \\\\\\\".concat(e(\\\\\\\"tooltip.max.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-right,\\\\\\\\n.p-tooltip-left {\\\\\\\\n    padding: 0 \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-top,\\\\\\\\n.p-tooltip-bottom {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-text {\\\\\\\\n    white-space: pre-line;\\\\\\\\n    word-break: break-word;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"tooltip.color\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"tooltip.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"tooltip.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"tooltip.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-arrow {\\\\\\\\n    position: absolute;\\\\\\\\n    width: 0;\\\\\\\\n    height: 0;\\\\\\\\n    border-color: transparent;\\\\\\\\n    border-style: solid;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-right .p-tooltip-arrow {\\\\\\\\n    margin-top: calc(-1 * \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\");\\\\\\\\n    border-width: \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" 0;\\\\\\\\n    border-right-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-left .p-tooltip-arrow {\\\\\\\\n    margin-top: calc(-1 * \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\");\\\\\\\\n    border-width: \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" 0 \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\";\\\\\\\\n    border-left-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-top .p-tooltip-arrow {\\\\\\\\n    margin-left: calc(-1 * \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\");\\\\\\\\n    border-width: \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" 0 \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\";\\\\\\\\n    border-top-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-bottom-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-bottom .p-tooltip-arrow {\\\\\\\\n    margin-left: calc(-1 * \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\");\\\\\\\\n    border-width: 0 \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\";\\\\\\\\n    border-top-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-bottom-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-tooltip p-component\\\\\\\",arrow:\\\\\\\"p-tooltip-arrow\\\\\\\",text:\\\\\\\"p-tooltip-text\\\\\\\"}});function xn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026t[Symbol.iterator]||t[\\\\\\\"@@iterator\\\\\\\"];if(null!=n){var o,i,r,s,l=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e);else for(;!(a=(o=r.call(n)).done)\\\\u0026\\\\u0026(l.push(o.value),l.length!==e);a=!0);}catch(u){c=!0,i=u}finally{try{if(!a\\\\u0026\\\\u0026null!=n.return\\\\u0026\\\\u0026(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return In(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(t,e):void 0}}(t,e)||function(){throw new TypeError(\\\\\\\"Invalid attempt to destructure non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function In(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}function kn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=wn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=wn(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==wn(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wn(t){return(wn=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}var On=$t.extend({style:yn}).extend(\\\\\\\"tooltip\\\\\\\",{beforeMount:function(t,e){var n,o=this.getTarget(t);if(o.$_ptooltipModifiers=this.getModifiers(e),e.value){if(\\\\\\\"string\\\\\\\"==typeof e.value)o.$_ptooltipValue=e.value,o.$_ptooltipDisabled=!1,o.$_ptooltipEscape=!0,o.$_ptooltipClass=null,o.$_ptooltipFitContent=!0,o.$_ptooltipIdAttr=Et()+\\\\\\\"_tooltip\\\\\\\",o.$_ptooltipShowDelay=0,o.$_ptooltipHideDelay=0,o.$_ptooltipAutoHide=!0;else if(\\\\\\\"object\\\\\\\"===wn(e.value)\\\\u0026\\\\u0026e.value){if(D(e.value.value)||\\\\\\\"\\\\\\\"===e.value.value.trim())return;o.$_ptooltipValue=e.value.value,o.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled\\\\u0026\\\\u0026e.value.disabled,o.$_ptooltipEscape=!!e.value.escape!==e.value.escape||e.value.escape,o.$_ptooltipClass=e.value.class||\\\\\\\"\\\\\\\",o.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent,o.$_ptooltipIdAttr=e.value.id||Et()+\\\\\\\"_tooltip\\\\\\\",o.$_ptooltipShowDelay=e.value.showDelay||0,o.$_ptooltipHideDelay=e.value.hideDelay||0,o.$_ptooltipAutoHide=!!e.value.autoHide!==e.value.autoHide||e.value.autoHide}o.$_ptooltipZIndex=null===(n=e.instance.$primevue)||void 0===n||null===(n=n.config)||void 0===n||null===(n=n.zIndex)||void 0===n?void 0:n.tooltip,this.bindEvents(o,e),t.setAttribute(\\\\\\\"data-pd-tooltip\\\\\\\",!0)}},updated:function(t,e){var n=this.getTarget(t);if(n.$_ptooltipModifiers=this.getModifiers(e),this.unbindEvents(n),e.value)if(\\\\\\\"string\\\\\\\"==typeof e.value)n.$_ptooltipValue=e.value,n.$_ptooltipDisabled=!1,n.$_ptooltipEscape=!0,n.$_ptooltipClass=null,n.$_ptooltipIdAttr=n.$_ptooltipIdAttr||Et()+\\\\\\\"_tooltip\\\\\\\",n.$_ptooltipShowDelay=0,n.$_ptooltipHideDelay=0,n.$_ptooltipAutoHide=!0,this.bindEvents(n,e);else if(\\\\\\\"object\\\\\\\"===wn(e.value)\\\\u0026\\\\u0026e.value){if(D(e.value.value)||\\\\\\\"\\\\\\\"===e.value.value.trim())return void this.unbindEvents(n,e);n.$_ptooltipValue=e.value.value,n.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled\\\\u0026\\\\u0026e.value.disabled,n.$_ptooltipEscape=!!e.value.escape!==e.value.escape||e.value.escape,n.$_ptooltipClass=e.value.class||\\\\\\\"\\\\\\\",n.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent,n.$_ptooltipIdAttr=e.value.id||n.$_ptooltipIdAttr||Et()+\\\\\\\"_tooltip\\\\\\\",n.$_ptooltipShowDelay=e.value.showDelay||0,n.$_ptooltipHideDelay=e.value.hideDelay||0,n.$_ptooltipAutoHide=!!e.value.autoHide!==e.value.autoHide||e.value.autoHide,this.bindEvents(n,e)}},unmounted:function(t,e){var n=this.getTarget(t);this.remove(n),this.unbindEvents(n,e),n.$_ptooltipScrollHandler\\\\u0026\\\\u0026(n.$_ptooltipScrollHandler.destroy(),n.$_ptooltipScrollHandler=null)},timer:void 0,methods:{bindEvents:function(t,e){var n=this;t.$_ptooltipModifiers.focus?(t.$_focusevent=function(t){return n.onFocus(t,e)},t.addEventListener(\\\\\\\"focus\\\\\\\",t.$_focusevent),t.addEventListener(\\\\\\\"blur\\\\\\\",this.onBlur.bind(this))):(t.$_mouseenterevent=function(t){return n.onMouseEnter(t,e)},t.addEventListener(\\\\\\\"mouseenter\\\\\\\",t.$_mouseenterevent),t.addEventListener(\\\\\\\"mouseleave\\\\\\\",this.onMouseLeave.bind(this)),t.addEventListener(\\\\\\\"click\\\\\\\",this.onClick.bind(this))),t.addEventListener(\\\\\\\"keydown\\\\\\\",this.onKeydown.bind(this))},unbindEvents:function(t){t.$_ptooltipModifiers.focus?(t.removeEventListener(\\\\\\\"focus\\\\\\\",t.$_focusevent),t.$_focusevent=null,t.removeEventListener(\\\\\\\"blur\\\\\\\",this.onBlur.bind(this))):(t.removeEventListener(\\\\\\\"mouseenter\\\\\\\",t.$_mouseenterevent),t.$_mouseenterevent=null,t.removeEventListener(\\\\\\\"mouseleave\\\\\\\",this.onMouseLeave.bind(this)),t.removeEventListener(\\\\\\\"click\\\\\\\",this.onClick.bind(this))),t.removeEventListener(\\\\\\\"keydown\\\\\\\",this.onKeydown.bind(this))},bindScrollListener:function(t){var e=this;t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new Tt(t,(function(){e.hide(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()},unbindScrollListener:function(t){t.$_ptooltipScrollHandler\\\\u0026\\\\u0026t.$_ptooltipScrollHandler.unbindScrollListener()},onMouseEnter:function(t,e){var n=t.currentTarget,o=n.$_ptooltipShowDelay;this.show(n,e,o)},onMouseLeave:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;e.$_ptooltipAutoHide?this.hide(e,n):!(\\\\\\\"tooltip\\\\\\\"===q(t.target,\\\\\\\"data-pc-name\\\\\\\")||\\\\\\\"arrow\\\\\\\"===q(t.target,\\\\\\\"data-pc-section\\\\\\\")||\\\\\\\"text\\\\\\\"===q(t.target,\\\\\\\"data-pc-section\\\\\\\")||\\\\\\\"tooltip\\\\\\\"===q(t.relatedTarget,\\\\\\\"data-pc-name\\\\\\\")||\\\\\\\"arrow\\\\\\\"===q(t.relatedTarget,\\\\\\\"data-pc-section\\\\\\\")||\\\\\\\"text\\\\\\\"===q(t.relatedTarget,\\\\\\\"data-pc-section\\\\\\\"))\\\\u0026\\\\u0026this.hide(e,n)},onFocus:function(t,e){var n=t.currentTarget,o=n.$_ptooltipShowDelay;this.show(n,e,o)},onBlur:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;this.hide(e,n)},onClick:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;this.hide(e,n)},onKeydown:function(t){var e=t.currentTarget.$_ptooltipHideDelay;\\\\\\\"Escape\\\\\\\"===t.code\\\\u0026\\\\u0026this.hide(t.currentTarget,e)},tooltipActions:function(t,e){if(!t.$_ptooltipDisabled\\\\u0026\\\\u0026ht(t)){var n=this.create(t,e);this.align(t),!this.isUnstyled()\\\\u0026\\\\u0026ft(n,250);var o=this;window.addEventListener(\\\\\\\"resize\\\\\\\",(function e(){ct()||o.hide(t),window.removeEventListener(\\\\\\\"resize\\\\\\\",e)})),n.addEventListener(\\\\\\\"mouseleave\\\\\\\",(function e(){o.hide(t),n.removeEventListener(\\\\\\\"mouseleave\\\\\\\",e),t.removeEventListener(\\\\\\\"mouseenter\\\\\\\",t.$_mouseenterevent),setTimeout((function(){return t.addEventListener(\\\\\\\"mouseenter\\\\\\\",t.$_mouseenterevent)}),50)})),this.bindScrollListener(t),Q.set(\\\\\\\"tooltip\\\\\\\",n,t.$_ptooltipZIndex)}},show:function(t,e,n){var o=this;void 0!==n?this.timer=setTimeout((function(){return o.tooltipActions(t,e)}),n):this.tooltipActions(t,e)},tooltipRemoval:function(t){this.remove(t),this.unbindScrollListener(t)},hide:function(t,e){var n=this;clearTimeout(this.timer),void 0!==e?setTimeout((function(){return n.tooltipRemoval(t)}),e):this.tooltipRemoval(t)},getTooltipElement:function(t){return document.getElementById(t.$_ptooltipId)},create:function(t){var e=t.$_ptooltipModifiers,n=B(\\\\\\\"div\\\\\\\",{class:!this.isUnstyled()\\\\u0026\\\\u0026this.cx(\\\\\\\"arrow\\\\\\\"),\\\\\\\"p-bind\\\\\\\":this.ptm(\\\\\\\"arrow\\\\\\\",{context:e})}),o=B(\\\\\\\"div\\\\\\\",{class:!this.isUnstyled()\\\\u0026\\\\u0026this.cx(\\\\\\\"text\\\\\\\"),\\\\\\\"p-bind\\\\\\\":this.ptm(\\\\\\\"text\\\\\\\",{context:e})});t.$_ptooltipEscape?(o.innerHTML=\\\\\\\"\\\\\\\",o.appendChild(document.createTextNode(t.$_ptooltipValue))):o.innerHTML=t.$_ptooltipValue;var i=B(\\\\\\\"div\\\\\\\",kn(kn({id:t.$_ptooltipIdAttr,role:\\\\\\\"tooltip\\\\\\\",style:{display:\\\\\\\"inline-block\\\\\\\",width:t.$_ptooltipFitContent?\\\\\\\"fit-content\\\\\\\":void 0,pointerEvents:!this.isUnstyled()\\\\u0026\\\\u0026t.$_ptooltipAutoHide\\\\u0026\\\\u0026\\\\\\\"none\\\\\\\"},class:[!this.isUnstyled()\\\\u0026\\\\u0026this.cx(\\\\\\\"root\\\\\\\"),t.$_ptooltipClass]},this.$attrSelector,\\\\\\\"\\\\\\\"),\\\\\\\"p-bind\\\\\\\",this.ptm(\\\\\\\"root\\\\\\\",{context:e})),n,o);return document.body.appendChild(i),t.$_ptooltipId=i.id,this.$el=i,i},remove:function(t){if(t){var e=this.getTooltipElement(t);e\\\\u0026\\\\u0026e.parentElement\\\\u0026\\\\u0026(Q.clear(e),document.body.removeChild(e)),t.$_ptooltipId=null}},align:function(t){var e=t.$_ptooltipModifiers;e.top?(this.alignTop(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026this.alignTop(t))):e.left?(this.alignLeft(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignRight(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026this.alignLeft(t))))):e.bottom?(this.alignBottom(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026this.alignBottom(t))):(this.alignRight(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignLeft(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026this.alignRight(t)))))},getHostOffset:function(t){var e=t.getBoundingClientRect();return{left:e.left+bt(),top:e.top+mt()}},alignRight:function(t){this.preAlign(t,\\\\\\\"right\\\\\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+G(t),i=n.top+(U(t)-U(e))/2;e.style.left=o+\\\\\\\"px\\\\\\\",e.style.top=i+\\\\\\\"px\\\\\\\"},alignLeft:function(t){this.preAlign(t,\\\\\\\"left\\\\\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left-G(e),i=n.top+(U(t)-U(e))/2;e.style.left=o+\\\\\\\"px\\\\\\\",e.style.top=i+\\\\\\\"px\\\\\\\"},alignTop:function(t){this.preAlign(t,\\\\\\\"top\\\\\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+(G(t)-G(e))/2,i=n.top-U(e);e.style.left=o+\\\\\\\"px\\\\\\\",e.style.top=i+\\\\\\\"px\\\\\\\"},alignBottom:function(t){this.preAlign(t,\\\\\\\"bottom\\\\\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+(G(t)-G(e))/2,i=n.top+U(t);e.style.left=o+\\\\\\\"px\\\\\\\",e.style.top=i+\\\\\\\"px\\\\\\\"},preAlign:function(t,e){var n=this.getTooltipElement(t);n.style.left=\\\\\\\"-999px\\\\\\\",n.style.top=\\\\\\\"-999px\\\\\\\",H(n,\\\\\\\"p-tooltip-\\\\\\\".concat(n.$_ptooltipPosition)),!this.isUnstyled()\\\\u0026\\\\u0026W(n,\\\\\\\"p-tooltip-\\\\\\\".concat(e)),n.$_ptooltipPosition=e,n.setAttribute(\\\\\\\"data-p-position\\\\\\\",e);var o=J(n,'[data-pc-section=\\\\\\\"arrow\\\\\\\"]');o.style.top=\\\\\\\"bottom\\\\\\\"===e?\\\\\\\"0\\\\\\\":\\\\\\\"right\\\\\\\"===e||\\\\\\\"left\\\\\\\"===e||\\\\\\\"right\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"left\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"top\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"bottom\\\\\\\"!==e?\\\\\\\"50%\\\\\\\":null,o.style.bottom=\\\\\\\"top\\\\\\\"===e?\\\\\\\"0\\\\\\\":null,o.style.left=\\\\\\\"right\\\\\\\"===e||\\\\\\\"right\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"left\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"top\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"bottom\\\\\\\"!==e?\\\\\\\"0\\\\\\\":\\\\\\\"top\\\\\\\"===e||\\\\\\\"bottom\\\\\\\"===e?\\\\\\\"50%\\\\\\\":null,o.style.right=\\\\\\\"left\\\\\\\"===e?\\\\\\\"0\\\\\\\":null},isOutOfBounds:function(t){var e=this.getTooltipElement(t),n=e.getBoundingClientRect(),o=n.top,i=n.left,r=G(e),s=U(e),l=gt();return i+r\\\\u003el.width||i\\\\u003c0||o\\\\u003c0||o+s\\\\u003el.height},getTarget:function(t){var e;return vt(t,\\\\\\\"p-inputwrapper\\\\\\\")\\\\u0026\\\\u0026null!==(e=J(t,\\\\\\\"input\\\\\\\"))\\\\u0026\\\\u0026void 0!==e?e:t},getModifiers:function(t){return t.modifiers\\\\u0026\\\\u0026Object.keys(t.modifiers).length?t.modifiers:t.arg\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"===wn(t.arg)?Object.entries(t.arg).reduce((function(t,e){var n=xn(e,2),o=n[0],i=n[1];return\\\\\\\"event\\\\\\\"!==o\\\\u0026\\\\u0026\\\\\\\"position\\\\\\\"!==o||(t[i]=!0),t}),{}):{}}}}),Sn=St.extend({name:\\\\\\\"checkbox\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-checkbox {\\\\\\\\n    position: relative;\\\\\\\\n    display: inline-flex;\\\\\\\\n    user-select: none;\\\\\\\\n    vertical-align: bottom;\\\\\\\\n    width: \\\\\\\".concat(e(\\\\\\\"checkbox.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-input {\\\\\\\\n    cursor: pointer;\\\\\\\\n    appearance: none;\\\\\\\\n    position: absolute;\\\\\\\\n    inset-block-start: 0;\\\\\\\\n    inset-inline-start: 0;\\\\\\\\n    width: 100%;\\\\\\\\n    height: 100%;\\\\\\\\n    padding: 0;\\\\\\\\n    margin: 0;\\\\\\\\n    opacity: 0;\\\\\\\\n    z-index: 1;\\\\\\\\n    outline: 0 none;\\\\\\\\n    border: 1px solid transparent;\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"checkbox.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-box {\\\\\\\\n    display: flex;\\\\\\\\n    justify-content: center;\\\\\\\\n    align-items: center;\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"checkbox.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"checkbox.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.background\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.height\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"checkbox.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-icon {\\\\\\\\n    transition-duration: \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked .p-checkbox-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.checked.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.checked.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-invalid \\\\u003e .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-variant-filled .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.filled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked.p-variant-filled .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-disabled .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.disabled.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-sm,\\\\\\\\n.p-checkbox-sm .p-checkbox-box {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.sm.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.sm.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-sm .p-checkbox-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.sm.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.sm.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.sm.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-lg,\\\\\\\\n.p-checkbox-lg .p-checkbox-box {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.lg.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.lg.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-lg .p-checkbox-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.lg.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.lg.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.lg.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-checkbox p-component\\\\\\\",{\\\\\\\"p-checkbox-checked\\\\\\\":e.checked,\\\\\\\"p-disabled\\\\\\\":n.disabled,\\\\\\\"p-invalid\\\\\\\":e.$pcCheckboxGroup?e.$pcCheckboxGroup.$invalid:e.$invalid,\\\\\\\"p-variant-filled\\\\\\\":\\\\\\\"filled\\\\\\\"===e.$variant,\\\\\\\"p-checkbox-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-checkbox-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size}]},box:\\\\\\\"p-checkbox-box\\\\\\\",input:\\\\\\\"p-checkbox-input\\\\\\\",icon:\\\\\\\"p-checkbox-icon\\\\\\\"}});function Ln(t){return function(t){if(Array.isArray(t))return $n(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return $n(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$n(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function $n(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}var Cn={name:\\\\\\\"Checkbox\\\\\\\",extends:{name:\\\\\\\"BaseCheckbox\\\\\\\",extends:zt,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Sn,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\",\\\\\\\"focus\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"update:indeterminate\\\\\\\"],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(t){this.d_indeterminate=t}},methods:{getPTOptions:function(t){return(\\\\\\\"root\\\\\\\"===t?this.ptmi:this.ptm)(t,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(t){var e=this;if(!this.disabled\\\\u0026\\\\u0026!this.readonly){var n,o=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;n=this.binary?this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?o.filter((function(t){return!dt(t,e.value)})):o?[].concat(Ln(o),[this.value]):[this.value],this.d_indeterminate\\\\u0026\\\\u0026(this.d_indeterminate=!1,this.$emit(\\\\\\\"update:indeterminate\\\\\\\",this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(n,t):this.writeValue(n,t),this.$emit(\\\\\\\"change\\\\\\\",t)}},onFocus:function(t){this.$emit(\\\\\\\"focus\\\\\\\",t)},onBlur:function(t){var e,n;this.$emit(\\\\\\\"blur\\\\\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)}},computed:{groupName:function(){return this.$pcCheckboxGroup?this.$pcCheckboxGroup.groupName:this.$formName},checked:function(){var t=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return!this.d_indeterminate\\\\u0026\\\\u0026(this.binary?t===this.trueValue:yt(this.value,t))}},components:{CheckIcon:Ft,MinusIcon:Kt}},zn=[\\\\\\\"data-p-checked\\\\\\\",\\\\\\\"data-p-indeterminate\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"],En=[\\\\\\\"id\\\\\\\",\\\\\\\"value\\\\\\\",\\\\\\\"name\\\\\\\",\\\\\\\"checked\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"readonly\\\\\\\",\\\\\\\"required\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-invalid\\\\\\\",\\\\\\\"aria-checked\\\\\\\"];Cn.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"CheckIcon\\\\\\\"),l=k(\\\\\\\"MinusIcon\\\\\\\");return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\")},r.getPTOptions(\\\\\\\"root\\\\\\\"),{\\\\\\\"data-p-checked\\\\\\\":r.checked,\\\\\\\"data-p-indeterminate\\\\\\\":i.d_indeterminate||void 0,\\\\\\\"data-p-disabled\\\\\\\":t.disabled}),[C(\\\\\\\"input\\\\\\\",I({id:t.inputId,type:\\\\\\\"checkbox\\\\\\\",class:[t.cx(\\\\\\\"input\\\\\\\"),t.inputClass],style:t.inputStyle,value:t.value,name:r.groupName,checked:r.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,required:t.required,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-invalid\\\\\\\":t.invalid||void 0,\\\\\\\"aria-checked\\\\\\\":i.d_indeterminate?\\\\\\\"mixed\\\\\\\":void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\\\u0026\\\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)}),onChange:e[2]||(e[2]=function(){return r.onChange\\\\u0026\\\\u0026r.onChange.apply(r,arguments)})},r.getPTOptions(\\\\\\\"input\\\\\\\")),null,16,En),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"box\\\\\\\")},r.getPTOptions(\\\\\\\"box\\\\\\\")),[v(t.$slots,\\\\\\\"icon\\\\\\\",{checked:r.checked,indeterminate:i.d_indeterminate,class:z(t.cx(\\\\\\\"icon\\\\\\\"))},(function(){return[r.checked?(m(),S(s,I({key:0,class:t.cx(\\\\\\\"icon\\\\\\\")},r.getPTOptions(\\\\\\\"icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):i.d_indeterminate?(m(),S(l,I({key:1,class:t.cx(\\\\\\\"icon\\\\\\\")},r.getPTOptions(\\\\\\\"icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)]}))],16)],16,zn)};var Tn=St.extend({name:\\\\\\\"chip\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-chip {\\\\\\\\n    display: inline-flex;\\\\\\\\n    align-items: center;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"chip.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"chip.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"chip.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"chip.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"chip.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"chip.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"chip.icon.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"chip.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"chip.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip-image {\\\\\\\\n    border-radius: 50%;\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"chip.image.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"chip.image.height\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-inline-start: calc(-1 * \\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\");\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip:has(.p-chip-remove-icon) {\\\\\\\\n    padding-inline-end: \\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip:has(.p-chip-image) {\\\\\\\\n    padding-block-start: calc(\\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n    padding-block-end: calc(\\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip-remove-icon {\\\\\\\\n    cursor: pointer;\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: 50%;\\\\\\\\n    transition: outline-color \\\\\\\").concat(e(\\\\\\\"chip.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"chip.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip-remove-icon:focus-visible {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-chip p-component\\\\\\\",image:\\\\\\\"p-chip-image\\\\\\\",icon:\\\\\\\"p-chip-icon\\\\\\\",label:\\\\\\\"p-chip-label\\\\\\\",removeIcon:\\\\\\\"p-chip-remove-icon\\\\\\\"}}),_n={name:\\\\\\\"Chip\\\\\\\",extends:{name:\\\\\\\"BaseChip\\\\\\\",extends:Lt,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:Tn,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"remove\\\\\\\"],data:function(){return{visible:!0}},methods:{onKeydown:function(t){\\\\\\\"Enter\\\\\\\"!==t.key\\\\u0026\\\\u0026\\\\\\\"Backspace\\\\\\\"!==t.key||this.close(t)},close:function(t){this.visible=!1,this.$emit(\\\\\\\"remove\\\\\\\",t)}},components:{TimesCircleIcon:Dt}},Mn=[\\\\\\\"aria-label\\\\\\\"],Vn=[\\\\\\\"src\\\\\\\"];_n.render=function(t,e,n,o,i,r){return i.visible?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"root\\\\\\\"),\\\\\\\"aria-label\\\\\\\":t.label},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\",{},(function(){return[t.image?(m(),g(\\\\\\\"img\\\\\\\",I({key:0,src:t.image},t.ptm(\\\\\\\"image\\\\\\\"),{class:t.cx(\\\\\\\"image\\\\\\\")}),null,16,Vn)):t.$slots.icon?(m(),S(E(t.$slots.icon),I({key:1,class:t.cx(\\\\\\\"icon\\\\\\\")},t.ptm(\\\\\\\"icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):t.icon?(m(),g(\\\\\\\"span\\\\\\\",I({key:2,class:[t.cx(\\\\\\\"icon\\\\\\\"),t.icon]},t.ptm(\\\\\\\"icon\\\\\\\")),null,16)):$(\\\\\\\"\\\\\\\",!0),t.label?(m(),g(\\\\\\\"div\\\\\\\",I({key:3,class:t.cx(\\\\\\\"label\\\\\\\")},t.ptm(\\\\\\\"label\\\\\\\")),x(t.label),17)):$(\\\\\\\"\\\\\\\",!0)]})),t.removable?v(t.$slots,\\\\\\\"removeicon\\\\\\\",{key:0,removeCallback:r.close,keydownCallback:r.onKeydown},(function(){return[(m(),S(E(t.removeIcon?\\\\\\\"span\\\\\\\":\\\\\\\"TimesCircleIcon\\\\\\\"),I({class:[t.cx(\\\\\\\"removeIcon\\\\\\\"),t.removeIcon],onClick:r.close,onKeydown:r.onKeydown},t.ptm(\\\\\\\"removeIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\",\\\\\\\"onClick\\\\\\\",\\\\\\\"onKeydown\\\\\\\"]))]})):$(\\\\\\\"\\\\\\\",!0)],16,Mn)):$(\\\\\\\"\\\\\\\",!0)};var Pn=St.extend({name:\\\\\\\"multiselect\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-multiselect {\\\\\\\\n    display: inline-flex;\\\\\\\\n    cursor: pointer;\\\\\\\\n    position: relative;\\\\\\\\n    user-select: none;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"multiselect.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"multiselect.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"multiselect.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect:not(.p-disabled):hover {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"multiselect.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect:not(.p-disabled).p-focus {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"multiselect.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-variant-filled {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.filled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-variant-filled:not(.p-disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.filled.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-variant-filled.p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.filled.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-invalid {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"multiselect.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-dropdown {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    flex-shrink: 0;\\\\\\\\n    background: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.dropdown.color\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"multiselect.dropdown.width\\\\\\\"),\\\\\\\";\\\\\\\\n    border-start-end-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border-end-end-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-clear-icon {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 50%;\\\\\\\\n    margin-top: -0.5rem;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.clear.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    inset-inline-end: \\\\\\\").concat(e(\\\\\\\"multiselect.dropdown.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label-container {\\\\\\\\n    overflow: hidden;\\\\\\\\n    flex: 1 1 auto;\\\\\\\\n    cursor: pointer;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    gap: calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n    white-space: nowrap;\\\\\\\\n    cursor: pointer;\\\\\\\\n    overflow: hidden;\\\\\\\\n    text-overflow: ellipsis;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"multiselect.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label.p-placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-invalid .p-multiselect-label.p-placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.invalid.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-disabled .p-multiselect-label {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label-empty {\\\\\\\\n    overflow: hidden;\\\\\\\\n    visibility: hidden;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect .p-multiselect-overlay {\\\\\\\\n    min-width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-overlay {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-header {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.list.header.padding\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-header .p-checkbox {\\\\\\\\n    margin-inline-end: \\\\\\\").concat(e(\\\\\\\"multiselect.option.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-filter-container {\\\\\\\\n    flex: 1 1 auto;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-filter {\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-list-container {\\\\\\\\n    overflow: auto;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-list {\\\\\\\\n    margin: 0;\\\\\\\\n    padding: 0;\\\\\\\\n    list-style-type: none;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.list.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"multiselect.list.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option {\\\\\\\\n    cursor: pointer;\\\\\\\\n    font-weight: normal;\\\\\\\\n    white-space: nowrap;\\\\\\\\n    position: relative;\\\\\\\\n    overflow: hidden;\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"multiselect.option.gap\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.option.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 0 none;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: transparent;\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.option.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.option.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option.p-multiselect-option-selected {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.option.selected.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.selected.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option.p-multiselect-option-selected.p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.option.selected.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.selected.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option-group {\\\\\\\\n    cursor: auto;\\\\\\\\n    margin: 0;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.option.group.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.option.group.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.group.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"multiselect.option.group.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-empty-message {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.empty.message.padding\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label .p-chip {\\\\\\\\n    padding-block-start: calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n    padding-block-end: calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.chip.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label:has(.p-chip) {\\\\\\\\n    padding: calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" / 2) calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.x\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-fluid {\\\\\\\\n    display: flex;\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-sm .p-multiselect-label {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-sm .p-multiselect-dropdown .p-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-lg .p-multiselect-label {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-lg .p-multiselect-dropdown .p-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-multiselect p-component p-inputwrapper\\\\\\\",{\\\\\\\"p-multiselect-display-chip\\\\\\\":\\\\\\\"chip\\\\\\\"===n.display,\\\\\\\"p-disabled\\\\\\\":n.disabled,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-variant-filled\\\\\\\":\\\\\\\"filled\\\\\\\"===e.$variant,\\\\\\\"p-focus\\\\\\\":e.focused,\\\\\\\"p-inputwrapper-filled\\\\\\\":e.$filled,\\\\\\\"p-inputwrapper-focus\\\\\\\":e.focused||e.overlayVisible,\\\\\\\"p-multiselect-open\\\\\\\":e.overlayVisible,\\\\\\\"p-multiselect-fluid\\\\\\\":e.$fluid,\\\\\\\"p-multiselect-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-multiselect-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size}]},labelContainer:\\\\\\\"p-multiselect-label-container\\\\\\\",label:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-multiselect-label\\\\\\\",{\\\\\\\"p-placeholder\\\\\\\":e.label===n.placeholder,\\\\\\\"p-multiselect-label-empty\\\\\\\":!(n.placeholder||n.modelValue\\\\u0026\\\\u00260!==n.modelValue.length)}]},clearIcon:\\\\\\\"p-multiselect-clear-icon\\\\\\\",chipItem:\\\\\\\"p-multiselect-chip-item\\\\\\\",pcChip:\\\\\\\"p-multiselect-chip\\\\\\\",chipIcon:\\\\\\\"p-multiselect-chip-icon\\\\\\\",dropdown:\\\\\\\"p-multiselect-dropdown\\\\\\\",loadingIcon:\\\\\\\"p-multiselect-loading-icon\\\\\\\",dropdownIcon:\\\\\\\"p-multiselect-dropdown-icon\\\\\\\",overlay:\\\\\\\"p-multiselect-overlay p-component\\\\\\\",header:\\\\\\\"p-multiselect-header\\\\\\\",pcFilterContainer:\\\\\\\"p-multiselect-filter-container\\\\\\\",pcFilter:\\\\\\\"p-multiselect-filter\\\\\\\",listContainer:\\\\\\\"p-multiselect-list-container\\\\\\\",list:\\\\\\\"p-multiselect-list\\\\\\\",optionGroup:\\\\\\\"p-multiselect-option-group\\\\\\\",option:function(t){var e=t.instance,n=t.option,o=t.index,i=t.getItemOptions,r=t.props;return[\\\\\\\"p-multiselect-option\\\\\\\",{\\\\\\\"p-multiselect-option-selected\\\\\\\":e.isSelected(n)\\\\u0026\\\\u0026r.highlightOnSelect,\\\\\\\"p-focus\\\\\\\":e.focusedOptionIndex===e.getOptionIndex(o,i),\\\\\\\"p-disabled\\\\\\\":e.isOptionDisabled(n)}]},emptyMessage:\\\\\\\"p-multiselect-empty-message\\\\\\\"},inlineStyles:{root:function(t){return{position:\\\\\\\"self\\\\\\\"===t.props.appendTo?\\\\\\\"relative\\\\\\\":void 0}}}});function Fn(t){return(Fn=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\\\u0026\\\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function Kn(t){for(var e=1;e\\\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?An(Object(n),!0).forEach((function(e){Dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Fn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Fn(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Fn(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bn(t){return function(t){if(Array.isArray(t))return Hn(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return Hn(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hn(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function Hn(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}var jn={name:\\\\\\\"MultiSelect\\\\\\\",extends:{name:\\\\\\\"BaseMultiSelect\\\\\\\",extends:zt,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:\\\\\\\"14rem\\\\\\\"},placeholder:String,inputId:{type:String,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},overlayClass:{type:String,default:null},overlayStyle:{type:null,default:null},dataKey:null,showClear:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},resetFilterOnClear:{type:Boolean,default:!1},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:\\\\\\\"contains\\\\\\\"},filterFields:{type:Array,default:null},appendTo:{type:[String,Object],default:\\\\\\\"body\\\\\\\"},display:{type:String,default:\\\\\\\"comma\\\\\\\"},selectedItemsLabel:{type:String,default:null},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},checkboxIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},chipIcon:{type:String,default:void 0},selectAll:{type:Boolean,default:null},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:Pn,provide:function(){return{$pcMultiSelect:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\",\\\\\\\"focus\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"before-show\\\\\\\",\\\\\\\"before-hide\\\\\\\",\\\\\\\"show\\\\\\\",\\\\\\\"hide\\\\\\\",\\\\\\\"filter\\\\\\\",\\\\\\\"selectall-change\\\\\\\"],inject:{$pcFluid:{default:null}},outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,startRangeIndex:-1,searchTimeout:null,searchValue:\\\\\\\"\\\\\\\",selectOnFocus:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{\\\\\\\"$attrs.id\\\\\\\":function(t){this.id=t||Et()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Et(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler\\\\u0026\\\\u0026(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay\\\\u0026\\\\u0026(Q.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,e){return this.virtualScrollerDisabled?t:e\\\\u0026\\\\u0026e(t).index},getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t,e){return this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t)+\\\\\\\"_\\\\\\\".concat(e)},getHeaderCheckboxPTOptions:function(t){return this.ptm(t,{context:{selected:this.allSelected}})},getCheckboxPTOptions:function(t,e,n,o){return this.ptm(o,{context:{selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(n,e),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return!(!this.maxSelectionLimitReached||this.isSelected(t))||!!this.optionDisabled\\\\u0026\\\\u0026tt(t,this.optionDisabled)},isOptionGroup:function(t){return this.optionGroupLabel\\\\u0026\\\\u0026t.optionGroup\\\\u0026\\\\u0026t.group},getOptionGroupLabel:function(t){return tt(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return tt(t,this.optionGroupChildren)},getAriaPosInset:function(t){var e=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter((function(t){return e.isOptionGroup(t)})).length:t)+1},show:function(t){this.$emit(\\\\\\\"before-show\\\\\\\"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),t\\\\u0026\\\\u0026et(this.$refs.focusInput)},hide:function(t){var e=this;setTimeout((function(){e.$emit(\\\\\\\"before-hide\\\\\\\"),e.overlayVisible=!1,e.clicked=!1,e.focusedOptionIndex=-1,e.searchValue=\\\\\\\"\\\\\\\",e.resetFilterOnHide\\\\u0026\\\\u0026(e.filterValue=null),t\\\\u0026\\\\u0026et(e.$refs.focusInput)}),0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible\\\\u0026\\\\u0026(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit(\\\\\\\"focus\\\\\\\",t))},onBlur:function(t){var e,n;this.clicked=!1,this.focused=!1,this.focusedOptionIndex=-1,this.searchValue=\\\\\\\"\\\\\\\",this.$emit(\\\\\\\"blur\\\\\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n)},onKeyDown:function(t){var e=this;if(this.disabled)t.preventDefault();else{var n=t.metaKey||t.ctrlKey;switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t);break;case\\\\\\\"PageDown\\\\\\\":this.onPageDownKey(t);break;case\\\\\\\"PageUp\\\\\\\":this.onPageUpKey(t);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":case\\\\\\\"Space\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t);break;case\\\\\\\"ShiftLeft\\\\\\\":case\\\\\\\"ShiftRight\\\\\\\":this.onShiftKey(t);break;default:if(\\\\\\\"KeyA\\\\\\\"===t.code\\\\u0026\\\\u0026n){var o=this.visibleOptions.filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,o),t.preventDefault();break}!n\\\\u0026\\\\u0026ot(t.key)\\\\u0026\\\\u0026(!this.overlayVisible\\\\u0026\\\\u0026this.show(),this.searchOptions(t),t.preventDefault())}this.clicked=!1}},onContainerClick:function(t){this.disabled||this.loading||\\\\\\\"INPUT\\\\\\\"===t.target.tagName||\\\\\\\"clearicon\\\\\\\"===t.target.getAttribute(\\\\\\\"data-pc-section\\\\\\\")||t.target.closest('[data-pc-section=\\\\\\\"clearicon\\\\\\\"]')||(this.overlay\\\\u0026\\\\u0026this.overlay.contains(t.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear\\\\u0026\\\\u0026(this.filterValue=null)},onFirstHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?it(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])'):this.$refs.focusInput;et(e)},onLastHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?rt(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])'):this.$refs.focusInput;et(e)},onOptionSelect:function(t,e){var n=this,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]?arguments[2]:-1,i=arguments.length\\\\u003e3\\\\u0026\\\\u0026void 0!==arguments[3]\\\\u0026\\\\u0026arguments[3];if(!this.disabled\\\\u0026\\\\u0026!this.isOptionDisabled(e)){var r=null;r=this.isSelected(e)?this.d_value.filter((function(t){return!dt(t,n.getOptionValue(e),n.equalityKey)})):[].concat(Bn(this.d_value||[]),[this.getOptionValue(e)]),this.updateModel(t,r),-1!==o\\\\u0026\\\\u0026(this.focusedOptionIndex=o),i\\\\u0026\\\\u0026et(this.$refs.focusInput)}},onOptionMouseMove:function(t,e){this.focusOnHover\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,e)},onOptionSelectRange:function(t){var e=this,n=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:-1,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]?arguments[2]:-1;if(-1===n\\\\u0026\\\\u0026(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o\\\\u0026\\\\u0026(o=this.findNearestSelectedOptionIndex(n)),-1!==n\\\\u0026\\\\u0026-1!==o){var i=Math.min(n,o),r=Math.max(n,o),s=this.visibleOptions.slice(i,r+1).filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,s)}},onFilterChange:function(t){var e=t.target.value;this.filterValue=e,this.focusedOptionIndex=-1,this.$emit(\\\\\\\"filter\\\\\\\",{originalEvent:t,value:e}),!this.virtualScrollerDisabled\\\\u0026\\\\u0026this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t,!0);break;case\\\\\\\"ArrowLeft\\\\\\\":case\\\\\\\"ArrowRight\\\\\\\":this.onArrowLeftKey(t,!0);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t,!0);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t,!0);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible\\\\u0026\\\\u0026this.alignOverlay()},onOverlayClick:function(t){Xe.emit(\\\\\\\"overlay-click\\\\\\\",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){if(\\\\\\\"Escape\\\\\\\"===t.code)this.onEscapeKey(t)},onArrowDownKey:function(t){if(this.overlayVisible){var e=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();t.shiftKey\\\\u0026\\\\u0026this.onOptionSelectRange(t,this.startRangeIndex,e),this.changeFocusedOptionIndex(t,e)}else this.show();t.preventDefault()},onArrowUpKey:function(t){var e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1];if(t.altKey\\\\u0026\\\\u0026!e)-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\\\u0026\\\\u0026this.hide(),t.preventDefault();else{var n=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();t.shiftKey\\\\u0026\\\\u0026this.onOptionSelectRange(t,n,this.startRangeIndex),this.changeFocusedOptionIndex(t,n),!this.overlayVisible\\\\u0026\\\\u0026this.show(),t.preventDefault()}},onArrowLeftKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]\\\\u0026\\\\u0026(this.focusedOptionIndex=-1)},onHomeKey:function(t){if(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]){var e=t.currentTarget;t.shiftKey?e.setSelectionRange(0,t.target.selectionStart):(e.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else{var n=t.metaKey||t.ctrlKey,o=this.findFirstOptionIndex();t.shiftKey\\\\u0026\\\\u0026n\\\\u0026\\\\u0026this.onOptionSelectRange(t,o,this.startRangeIndex),this.changeFocusedOptionIndex(t,o),!this.overlayVisible\\\\u0026\\\\u0026this.show()}t.preventDefault()},onEndKey:function(t){if(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]){var e=t.currentTarget;if(t.shiftKey)e.setSelectionRange(t.target.selectionStart,e.value.length);else{var n=e.value.length;e.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else{var o=t.metaKey||t.ctrlKey,i=this.findLastOptionIndex();t.shiftKey\\\\u0026\\\\u0026o\\\\u0026\\\\u0026this.onOptionSelectRange(t,this.startRangeIndex,i),this.changeFocusedOptionIndex(t,i),!this.overlayVisible\\\\u0026\\\\u0026this.show()}t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?-1!==this.focusedOptionIndex\\\\u0026\\\\u0026(t.shiftKey?this.onOptionSelectRange(t,this.focusedOptionIndex):this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex])):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onEscapeKey:function(t){this.overlayVisible\\\\u0026\\\\u0026this.hide(!0),t.preventDefault()},onTabKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]||(this.overlayVisible\\\\u0026\\\\u0026this.hasFocusableElements()?(et(t.shiftKey?this.$refs.lastHiddenFocusableElementOnOverlay:this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\\\u0026\\\\u0026this.hide(this.filter)))},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onOverlayEnter:function(t){Q.set(\\\\\\\"overlay\\\\\\\",t,this.$primevue.config.zIndex.overlay),st(t,{position:\\\\\\\"absolute\\\\\\\",top:\\\\\\\"0\\\\\\\",left:\\\\\\\"0\\\\\\\"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus\\\\u0026\\\\u0026et(this.$refs.filterInput.$el)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(\\\\\\\"show\\\\\\\")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit(\\\\\\\"hide\\\\\\\"),this.overlay=null},onOverlayAfterLeave:function(t){Q.clear(t)},alignOverlay:function(){\\\\\\\"self\\\\\\\"===this.appendTo?lt(this.overlay,this.$el):(this.overlay.style.minWidth=G(this.$el)+\\\\\\\"px\\\\\\\",at(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){t.overlayVisible\\\\u0026\\\\u0026t.isOutsideClicked(e)\\\\u0026\\\\u0026t.hide()},document.addEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Tt(this.$refs.container,(function(){t.overlayVisible\\\\u0026\\\\u0026t.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler\\\\u0026\\\\u0026this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible\\\\u0026\\\\u0026!ct()\\\\u0026\\\\u0026t.hide()},window.addEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\\\u0026\\\\u0026(window.removeEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(t){return!(this.$el.isSameNode(t.target)||this.$el.contains(t.target)||this.overlay\\\\u0026\\\\u0026this.overlay.contains(t.target))},getLabelByValue:function(t){var e=this,n=(this.optionGroupLabel?this.flatOptions(this.options):this.options||[]).find((function(n){return!e.isOptionGroup(n)\\\\u0026\\\\u0026dt(e.getOptionValue(n),t,e.equalityKey)}));return n?this.getOptionLabel(n):null},getSelectedItemsLabel:function(){var t=/{(.*?)}/,e=this.selectedItemsLabel||this.$primevue.config.locale.selectionMessage;return t.test(e)?e.replace(e.match(t)[0],this.d_value.length+\\\\\\\"\\\\\\\"):e},onToggleAll:function(t){var e=this;if(null!==this.selectAll)this.$emit(\\\\\\\"selectall-change\\\\\\\",{originalEvent:t,checked:!this.allSelected});else{var n=this.allSelected?[]:this.visibleOptions.filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,n)}},removeOption:function(t,e){var n=this;t.stopPropagation();var o=this.d_value.filter((function(t){return!dt(t,e,n.equalityKey)}));this.updateModel(t,o)},clearFilter:function(){this.filterValue=null},hasFocusableElements:function(){return ut(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])').length\\\\u003e0},isOptionMatched:function(t){var e;return this.isValidOption(t)\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"==typeof this.getOptionLabel(t)\\\\u0026\\\\u0026(null===(e=this.getOptionLabel(t))||void 0===e?void 0:e.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return K(t)\\\\u0026\\\\u0026!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)\\\\u0026\\\\u0026this.isSelected(t)},isEquals:function(t,e){return dt(t,e,this.equalityKey)},isSelected:function(t){var e=this,n=this.getOptionValue(t);return(this.d_value||[]).some((function(t){return e.isEquals(t,n)}))},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex((function(e){return t.isValidOption(e)}))},findLastOptionIndex:function(){var t=this;return pt(this.visibleOptions,(function(e){return t.isValidOption(e)}))},findNextOptionIndex:function(t){var e=this,n=t\\\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidOption(t)})):-1;return n\\\\u003e-1?n+t+1:t},findPrevOptionIndex:function(t){var e=this,n=t\\\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidOption(t)})):-1;return n\\\\u003e-1?n:t},findSelectedOptionIndex:function(){var t=this;if(this.$filled)for(var e,n=function(){var e=t.d_value[o],n=t.visibleOptions.findIndex((function(n){return t.isValidSelectedOption(n)\\\\u0026\\\\u0026t.isEquals(e,t.getOptionValue(n))}));if(n\\\\u003e-1)return{v:n}},o=this.d_value.length-1;o\\\\u003e=0;o--)if(e=n())return e.v;return-1},findFirstSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex((function(e){return t.isValidSelectedOption(e)})):-1},findLastSelectedOptionIndex:function(){var t=this;return this.$filled?pt(this.visibleOptions,(function(e){return t.isValidSelectedOption(e)})):-1},findNextSelectedOptionIndex:function(t){var e=this,n=this.$filled\\\\u0026\\\\u0026t\\\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidSelectedOption(t)})):-1;return n\\\\u003e-1?n+t+1:-1},findPrevSelectedOptionIndex:function(t){var e=this,n=this.$filled\\\\u0026\\\\u0026t\\\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidSelectedOption(t)})):-1;return n\\\\u003e-1?n:-1},findNearestSelectedOptionIndex:function(t){var e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1],n=-1;return this.$filled\\\\u0026\\\\u0026(n=e?-1===(n=this.findPrevSelectedOptionIndex(t))?this.findNextSelectedOptionIndex(t):n:-1===(n=this.findNextSelectedOptionIndex(t))?this.findPrevSelectedOptionIndex(t):n),n\\\\u003e-1?n:t},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\\\u003c0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\\\u003c0?this.findLastOptionIndex():t},searchOptions:function(t){var e=this;this.searchValue=(this.searchValue||\\\\\\\"\\\\\\\")+t.key;var n=-1;K(this.searchValue)\\\\u0026\\\\u0026(-1===(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(t){return e.isOptionMatched(t)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(t){return e.isOptionMatched(t)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(t){return e.isOptionMatched(t)})))\\\\u0026\\\\u0026-1===this.focusedOptionIndex\\\\u0026\\\\u0026(n=this.findFirstFocusedOptionIndex()),-1!==n\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,n)),this.searchTimeout\\\\u0026\\\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){e.searchValue=\\\\\\\"\\\\\\\",e.searchTimeout=null}),500)},changeFocusedOptionIndex:function(t,e){this.focusedOptionIndex!==e\\\\u0026\\\\u0026(this.focusedOptionIndex=e,this.scrollInView(),this.selectOnFocus\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[e]))},scrollInView:function(){var t=this,e=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var n=-1!==e?\\\\\\\"\\\\\\\".concat(t.id,\\\\\\\"_\\\\\\\").concat(e):t.focusedOptionId,o=J(t.list,'li[id=\\\\\\\"'.concat(n,'\\\\\\\"]'));o?o.scrollIntoView\\\\u0026\\\\u0026o.scrollIntoView({block:\\\\\\\"nearest\\\\\\\",inline:\\\\\\\"nearest\\\\\\\"}):t.virtualScrollerDisabled||t.virtualScroller\\\\u0026\\\\u0026t.virtualScroller.scrollToIndex(-1!==e?e:t.focusedOptionIndex)}))},autoUpdateModel:function(){if(this.selectOnFocus\\\\u0026\\\\u0026this.autoOptionFocus\\\\u0026\\\\u0026!this.$filled){this.focusedOptionIndex=this.findFirstFocusedOptionIndex();var t=this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);this.updateModel(null,[t])}},updateModel:function(t,e){this.writeValue(e,t),this.$emit(\\\\\\\"change\\\\\\\",{originalEvent:t,value:e})},flatOptions:function(t){var e=this;return(t||[]).reduce((function(t,n,o){t.push({optionGroup:n,group:!0,index:o});var i=e.getOptionGroupChildren(n);return i\\\\u0026\\\\u0026i.forEach((function(e){return t.push(e)})),t}),[])},overlayRef:function(t){this.overlay=t},listRef:function(t,e){this.list=t,e\\\\u0026\\\\u0026e(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=_t.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach((function(e){var o=t.getOptionGroupChildren(e).filter((function(t){return n.includes(t)}));o.length\\\\u003e0\\\\u0026\\\\u0026i.push(Kn(Kn({},e),{},Dn({},\\\\\\\"string\\\\\\\"==typeof t.optionGroupChildren?t.optionGroupChildren:\\\\\\\"items\\\\\\\",Bn(o))))})),this.flatOptions(i)}return n}return e},label:function(){var t;if(this.d_value\\\\u0026\\\\u0026this.d_value.length){if(K(this.maxSelectedLabels)\\\\u0026\\\\u0026this.d_value.length\\\\u003ethis.maxSelectedLabels)return this.getSelectedItemsLabel();t=\\\\\\\"\\\\\\\";for(var e=0;e\\\\u003cthis.d_value.length;e++)0!==e\\\\u0026\\\\u0026(t+=\\\\\\\", \\\\\\\"),t+=this.getLabelByValue(this.d_value[e])}else t=this.placeholder;return t},chipSelectedItems:function(){return K(this.maxSelectedLabels)\\\\u0026\\\\u0026this.d_value\\\\u0026\\\\u0026this.d_value.length\\\\u003ethis.maxSelectedLabels},allSelected:function(){var t=this;return null!==this.selectAll?this.selectAll:K(this.visibleOptions)\\\\u0026\\\\u0026this.visibleOptions.every((function(e){return t.isOptionGroup(e)||t.isOptionDisabled(e)||t.isSelected(e)}))},hasSelectedOption:function(){return this.$filled},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},maxSelectionLimitReached:function(){return this.selectionLimit\\\\u0026\\\\u0026this.d_value\\\\u0026\\\\u0026this.d_value.length===this.selectionLimit},filterResultMessageText:function(){return K(this.visibleOptions)?this.filterMessageText.replaceAll(\\\\\\\"{0}\\\\\\\",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||\\\\\\\"\\\\\\\"},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||\\\\\\\"\\\\\\\"},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||\\\\\\\"\\\\\\\"},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||\\\\\\\"\\\\\\\"},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||\\\\\\\"\\\\\\\"},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(\\\\\\\"{0}\\\\\\\",this.d_value.length):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?\\\\\\\"\\\\\\\".concat(this.id,\\\\\\\"_\\\\\\\").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter((function(e){return!t.isOptionGroup(e)})).length},toggleAllAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[this.allSelected?\\\\\\\"selectAll\\\\\\\":\\\\\\\"unselectAll\\\\\\\"]:void 0},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},hasFluid:function(){return D(this.fluid)?!!this.$pcFluid:this.fluid},isClearIconVisible:function(){return this.showClear\\\\u0026\\\\u0026null!=this.d_value\\\\u0026\\\\u0026K(this.options)}},directives:{ripple:De},components:{InputText:We,Checkbox:Cn,VirtualScroller:nn,Portal:Ye,Chip:_n,IconField:Ue,InputIcon:Ne,TimesIcon:Mt,SearchIcon:Pt,ChevronDownIcon:Vt,SpinnerIcon:Ct,CheckIcon:Ft}};function Rn(t){return(Rn=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function Gn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Rn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Rn(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Rn(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Un=[\\\\\\\"id\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-expanded\\\\\\\",\\\\\\\"aria-controls\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"aria-invalid\\\\\\\"],Nn={key:0},Wn=[\\\\\\\"id\\\\\\\",\\\\\\\"aria-label\\\\\\\"],qn=[\\\\\\\"id\\\\\\\"],Xn=[\\\\\\\"id\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-selected\\\\\\\",\\\\\\\"aria-disabled\\\\\\\",\\\\\\\"aria-setsize\\\\\\\",\\\\\\\"aria-posinset\\\\\\\",\\\\\\\"onClick\\\\\\\",\\\\\\\"onMousemove\\\\\\\",\\\\\\\"data-p-selected\\\\\\\",\\\\\\\"data-p-focused\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"];jn.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"Chip\\\\\\\"),l=k(\\\\\\\"SpinnerIcon\\\\\\\"),a=k(\\\\\\\"Checkbox\\\\\\\"),c=k(\\\\\\\"InputText\\\\\\\"),u=k(\\\\\\\"SearchIcon\\\\\\\"),d=k(\\\\\\\"InputIcon\\\\\\\"),p=k(\\\\\\\"IconField\\\\\\\"),h=k(\\\\\\\"VirtualScroller\\\\\\\"),f=k(\\\\\\\"Portal\\\\\\\"),b=w(\\\\\\\"ripple\\\\\\\");return m(),g(\\\\\\\"div\\\\\\\",I({ref:\\\\\\\"container\\\\\\\",class:t.cx(\\\\\\\"root\\\\\\\"),style:t.sx(\\\\\\\"root\\\\\\\"),onClick:e[7]||(e[7]=function(){return r.onContainerClick\\\\u0026\\\\u0026r.onContainerClick.apply(r,arguments)})},t.ptmi(\\\\\\\"root\\\\\\\")),[C(\\\\\\\"div\\\\\\\",I({class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenInputContainer\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),[C(\\\\\\\"input\\\\\\\",I({ref:\\\\\\\"focusInput\\\\\\\",id:t.inputId,type:\\\\\\\"text\\\\\\\",readonly:\\\\\\\"\\\\\\\",disabled:t.disabled,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,role:\\\\\\\"combobox\\\\\\\",\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-haspopup\\\\\\\":\\\\\\\"listbox\\\\\\\",\\\\\\\"aria-expanded\\\\\\\":i.overlayVisible,\\\\\\\"aria-controls\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":i.focused?r.focusedOptionId:void 0,\\\\\\\"aria-invalid\\\\\\\":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\\\u0026\\\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onKeyDown\\\\u0026\\\\u0026r.onKeyDown.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenInput\\\\\\\")),null,16,Un)],16),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"labelContainer\\\\\\\")},t.ptm(\\\\\\\"labelContainer\\\\\\\")),[C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"label\\\\\\\")},t.ptm(\\\\\\\"label\\\\\\\")),[v(t.$slots,\\\\\\\"value\\\\\\\",{value:t.d_value,placeholder:t.placeholder},(function(){return[\\\\\\\"comma\\\\\\\"===t.display?(m(),g(_,{key:0},[y(x(r.label||\\\\\\\"empty\\\\\\\"),1)],64)):\\\\\\\"chip\\\\\\\"===t.display?(m(),g(_,{key:1},[r.chipSelectedItems?(m(),g(\\\\\\\"span\\\\\\\",Nn,x(r.label),1)):(m(!0),g(_,{key:1},M(t.d_value,(function(e){return m(),g(\\\\\\\"span\\\\\\\",I({key:r.getLabelByValue(e),class:t.cx(\\\\\\\"chipItem\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"chipItem\\\\\\\")),[v(t.$slots,\\\\\\\"chip\\\\\\\",{value:e,removeCallback:function(t){return r.removeOption(t,e)}},(function(){return[V(s,{class:z(t.cx(\\\\\\\"pcChip\\\\\\\")),label:r.getLabelByValue(e),removeIcon:t.chipIcon||t.removeTokenIcon,removable:\\\\\\\"\\\\\\\",unstyled:t.unstyled,onRemove:function(t){return r.removeOption(t,e)},pt:t.ptm(\\\\\\\"pcChip\\\\\\\")},{removeicon:L((function(){return[v(t.$slots,t.$slots.chipicon?\\\\\\\"chipicon\\\\\\\":\\\\\\\"removetokenicon\\\\\\\",{class:z(t.cx(\\\\\\\"chipIcon\\\\\\\")),item:e,removeCallback:function(t){return r.removeOption(t,e)}})]})),_:2},1032,[\\\\\\\"class\\\\\\\",\\\\\\\"label\\\\\\\",\\\\\\\"removeIcon\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"onRemove\\\\\\\",\\\\\\\"pt\\\\\\\"])]}))],16)})),128)),t.d_value\\\\u0026\\\\u00260!==t.d_value.length?$(\\\\\\\"\\\\\\\",!0):(m(),g(_,{key:2},[y(x(t.placeholder||\\\\\\\"empty\\\\\\\"),1)],64))],64)):$(\\\\\\\"\\\\\\\",!0)]}))],16)],16),r.isClearIconVisible?v(t.$slots,\\\\\\\"clearicon\\\\\\\",{key:0,class:z(t.cx(\\\\\\\"clearIcon\\\\\\\")),clearCallback:r.onClearClick},(function(){return[(m(),S(E(t.clearIcon?\\\\\\\"i\\\\\\\":\\\\\\\"TimesIcon\\\\\\\"),I({ref:\\\\\\\"clearIcon\\\\\\\",class:[t.cx(\\\\\\\"clearIcon\\\\\\\"),t.clearIcon],onClick:r.onClearClick},t.ptm(\\\\\\\"clearIcon\\\\\\\"),{\\\\\\\"data-pc-section\\\\\\\":\\\\\\\"clearicon\\\\\\\"}),null,16,[\\\\\\\"class\\\\\\\",\\\\\\\"onClick\\\\\\\"]))]})):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"dropdown\\\\\\\")},t.ptm(\\\\\\\"dropdown\\\\\\\")),[t.loading?v(t.$slots,\\\\\\\"loadingicon\\\\\\\",{key:0,class:z(t.cx(\\\\\\\"loadingIcon\\\\\\\"))},(function(){return[t.loadingIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),\\\\\\\"pi-spin\\\\\\\",t.loadingIcon],\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16)):(m(),S(l,I({key:1,class:t.cx(\\\\\\\"loadingIcon\\\\\\\"),spin:\\\\\\\"\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]})):v(t.$slots,\\\\\\\"dropdownicon\\\\\\\",{key:1,class:z(t.cx(\\\\\\\"dropdownIcon\\\\\\\"))},(function(){return[(m(),S(E(t.dropdownIcon?\\\\\\\"span\\\\\\\":\\\\\\\"ChevronDownIcon\\\\\\\"),I({class:[t.cx(\\\\\\\"dropdownIcon\\\\\\\"),t.dropdownIcon],\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"dropdownIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]}))],16),V(f,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\\\\\"p-connected-overlay\\\\\\\",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},t.ptm(\\\\\\\"transition\\\\\\\")),{default:L((function(){return[i.overlayVisible?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,ref:r.overlayRef,style:[t.panelStyle,t.overlayStyle],class:[t.cx(\\\\\\\"overlay\\\\\\\"),t.panelClass,t.overlayClass],onClick:e[5]||(e[5]=function(){return r.onOverlayClick\\\\u0026\\\\u0026r.onOverlayClick.apply(r,arguments)}),onKeydown:e[6]||(e[6]=function(){return r.onOverlayKeyDown\\\\u0026\\\\u0026r.onOverlayKeyDown.apply(r,arguments)})},t.ptm(\\\\\\\"overlay\\\\\\\")),[C(\\\\\\\"span\\\\\\\",I({ref:\\\\\\\"firstHiddenFocusableElementOnOverlay\\\\\\\",role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\",class:\\\\\\\"p-hidden-accessible p-hidden-focusable\\\\\\\",tabindex:0,onFocus:e[3]||(e[3]=function(){return r.onFirstHiddenFocus\\\\u0026\\\\u0026r.onFirstHiddenFocus.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenFirstFocusableEl\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0,\\\\\\\"data-p-hidden-focusable\\\\\\\":!0}),null,16),v(t.$slots,\\\\\\\"header\\\\\\\",{value:t.d_value,options:r.visibleOptions}),t.showToggleAll\\\\u0026\\\\u0026null==t.selectionLimit||t.filter?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"header\\\\\\\")},t.ptm(\\\\\\\"header\\\\\\\")),[t.showToggleAll\\\\u0026\\\\u0026null==t.selectionLimit?(m(),S(a,{key:0,modelValue:r.allSelected,binary:!0,disabled:t.disabled,variant:t.variant,\\\\\\\"aria-label\\\\\\\":r.toggleAllAriaLabel,onChange:r.onToggleAll,unstyled:t.unstyled,pt:r.getHeaderCheckboxPTOptions(\\\\\\\"pcHeaderCheckbox\\\\\\\")},{icon:L((function(e){return[t.$slots.headercheckboxicon?(m(),S(E(t.$slots.headercheckboxicon),{key:0,checked:e.checked,class:z(e.class)},null,8,[\\\\\\\"checked\\\\\\\",\\\\\\\"class\\\\\\\"])):e.checked?(m(),S(E(t.checkboxIcon?\\\\\\\"span\\\\\\\":\\\\\\\"CheckIcon\\\\\\\"),I({key:1,class:[e.class,Gn({},t.checkboxIcon,e.checked)]},r.getHeaderCheckboxPTOptions(\\\\\\\"pcHeaderCheckbox.icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)]})),_:1},8,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"variant\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"onChange\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0),t.filter?(m(),S(p,{key:1,class:z(t.cx(\\\\\\\"pcFilterContainer\\\\\\\")),unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcFilterContainer\\\\\\\")},{default:L((function(){return[V(c,{ref:\\\\\\\"filterInput\\\\\\\",value:i.filterValue,onVnodeMounted:r.onFilterUpdated,onVnodeUpdated:r.onFilterUpdated,class:z(t.cx(\\\\\\\"pcFilter\\\\\\\")),placeholder:t.filterPlaceholder,disabled:t.disabled,variant:t.variant,unstyled:t.unstyled,role:\\\\\\\"searchbox\\\\\\\",autocomplete:\\\\\\\"off\\\\\\\",\\\\\\\"aria-owns\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":r.focusedOptionId,onKeydown:r.onFilterKeyDown,onBlur:r.onFilterBlur,onInput:r.onFilterChange,pt:t.ptm(\\\\\\\"pcFilter\\\\\\\")},null,8,[\\\\\\\"value\\\\\\\",\\\\\\\"onVnodeMounted\\\\\\\",\\\\\\\"onVnodeUpdated\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"variant\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"aria-owns\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"onKeydown\\\\\\\",\\\\\\\"onBlur\\\\\\\",\\\\\\\"onInput\\\\\\\",\\\\\\\"pt\\\\\\\"]),V(d,{unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcFilterIconContainer\\\\\\\")},{default:L((function(){return[v(t.$slots,\\\\\\\"filtericon\\\\\\\",{},(function(){return[t.filterIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:t.filterIcon},t.ptm(\\\\\\\"filterIcon\\\\\\\")),null,16)):(m(),S(u,F(I({key:1},t.ptm(\\\\\\\"filterIcon\\\\\\\"))),null,16))]}))]})),_:3},8,[\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])]})),_:3},8,[\\\\\\\"class\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0),t.filter?(m(),g(\\\\\\\"span\\\\\\\",I({key:2,role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenFilterResult\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.filterResultMessageText),17)):$(\\\\\\\"\\\\\\\",!0)],16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"listContainer\\\\\\\"),style:{\\\\\\\"max-height\\\\\\\":r.virtualScrollerDisabled?t.scrollHeight:\\\\\\\"\\\\\\\"}},t.ptm(\\\\\\\"listContainer\\\\\\\")),[V(h,I({ref:r.virtualScrollerRef},t.virtualScrollerOptions,{items:r.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:t.ptm(\\\\\\\"virtualScroller\\\\\\\")}),A({content:L((function(e){var n=e.styleClass,o=e.contentRef,s=e.items,l=e.getItemOptions,c=e.contentStyle,u=e.itemSize;return[C(\\\\\\\"ul\\\\\\\",I({ref:function(t){return r.listRef(t,o)},id:i.id+\\\\\\\"_list\\\\\\\",class:[t.cx(\\\\\\\"list\\\\\\\"),n],style:c,role:\\\\\\\"listbox\\\\\\\",\\\\\\\"aria-multiselectable\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"aria-label\\\\\\\":r.listAriaLabel},t.ptm(\\\\\\\"list\\\\\\\")),[(m(!0),g(_,null,M(s,(function(e,n){return m(),g(_,{key:r.getOptionRenderKey(e,r.getOptionIndex(n,l))},[r.isOptionGroup(e)?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,id:i.id+\\\\\\\"_\\\\\\\"+r.getOptionIndex(n,l),style:{height:u?u+\\\\\\\"px\\\\\\\":void 0},class:t.cx(\\\\\\\"optionGroup\\\\\\\"),role:\\\\\\\"option\\\\\\\",ref_for:!0},t.ptm(\\\\\\\"optionGroup\\\\\\\")),[v(t.$slots,\\\\\\\"optiongroup\\\\\\\",{option:e.optionGroup,index:r.getOptionIndex(n,l)},(function(){return[y(x(r.getOptionGroupLabel(e.optionGroup)),1)]}))],16,qn)):O((m(),g(\\\\\\\"li\\\\\\\",I({key:1,id:i.id+\\\\\\\"_\\\\\\\"+r.getOptionIndex(n,l),style:{height:u?u+\\\\\\\"px\\\\\\\":void 0},class:t.cx(\\\\\\\"option\\\\\\\",{option:e,index:n,getItemOptions:l}),role:\\\\\\\"option\\\\\\\",\\\\\\\"aria-label\\\\\\\":r.getOptionLabel(e),\\\\\\\"aria-selected\\\\\\\":r.isSelected(e),\\\\\\\"aria-disabled\\\\\\\":r.isOptionDisabled(e),\\\\\\\"aria-setsize\\\\\\\":r.ariaSetSize,\\\\\\\"aria-posinset\\\\\\\":r.getAriaPosInset(r.getOptionIndex(n,l)),onClick:function(t){return r.onOptionSelect(t,e,r.getOptionIndex(n,l),!0)},onMousemove:function(t){return r.onOptionMouseMove(t,r.getOptionIndex(n,l))},ref_for:!0},r.getCheckboxPTOptions(e,l,n,\\\\\\\"option\\\\\\\"),{\\\\\\\"data-p-selected\\\\\\\":r.isSelected(e),\\\\\\\"data-p-focused\\\\\\\":i.focusedOptionIndex===r.getOptionIndex(n,l),\\\\\\\"data-p-disabled\\\\\\\":r.isOptionDisabled(e)}),[V(a,{defaultValue:r.isSelected(e),binary:!0,tabindex:-1,variant:t.variant,unstyled:t.unstyled,pt:r.getCheckboxPTOptions(e,l,n,\\\\\\\"pcOptionCheckbox\\\\\\\")},{icon:L((function(o){return[t.$slots.optioncheckboxicon||t.$slots.itemcheckboxicon?(m(),S(E(t.$slots.optioncheckboxicon||t.$slots.itemcheckboxicon),{key:0,checked:o.checked,class:z(o.class)},null,8,[\\\\\\\"checked\\\\\\\",\\\\\\\"class\\\\\\\"])):o.checked?(m(),S(E(t.checkboxIcon?\\\\\\\"span\\\\\\\":\\\\\\\"CheckIcon\\\\\\\"),I({key:1,class:[o.class,Gn({},t.checkboxIcon,o.checked)],ref_for:!0},r.getCheckboxPTOptions(e,l,n,\\\\\\\"pcOptionCheckbox.icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)]})),_:2},1032,[\\\\\\\"defaultValue\\\\\\\",\\\\\\\"variant\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"]),v(t.$slots,\\\\\\\"option\\\\\\\",{option:e,selected:r.isSelected(e),index:r.getOptionIndex(n,l)},(function(){return[C(\\\\\\\"span\\\\\\\",I({ref_for:!0},t.ptm(\\\\\\\"optionLabel\\\\\\\")),x(r.getOptionLabel(e)),17)]}))],16,Xn)),[[b]])],64)})),128)),i.filterValue\\\\u0026\\\\u0026(!s||s\\\\u0026\\\\u00260===s.length)?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,class:t.cx(\\\\\\\"emptyMessage\\\\\\\"),role:\\\\\\\"option\\\\\\\"},t.ptm(\\\\\\\"emptyMessage\\\\\\\")),[v(t.$slots,\\\\\\\"emptyfilter\\\\\\\",{},(function(){return[y(x(r.emptyFilterMessageText),1)]}))],16)):!t.options||t.options\\\\u0026\\\\u00260===t.options.length?(m(),g(\\\\\\\"li\\\\\\\",I({key:1,class:t.cx(\\\\\\\"emptyMessage\\\\\\\"),role:\\\\\\\"option\\\\\\\"},t.ptm(\\\\\\\"emptyMessage\\\\\\\")),[v(t.$slots,\\\\\\\"empty\\\\\\\",{},(function(){return[y(x(r.emptyMessageText),1)]}))],16)):$(\\\\\\\"\\\\\\\",!0)],16,Wn)]})),_:2},[t.$slots.loader?{name:\\\\\\\"loader\\\\\\\",fn:L((function(e){var n=e.options;return[v(t.$slots,\\\\\\\"loader\\\\\\\",{options:n})]})),key:\\\\\\\"0\\\\\\\"}:void 0]),1040,[\\\\\\\"items\\\\\\\",\\\\\\\"style\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"pt\\\\\\\"])],16),v(t.$slots,\\\\\\\"footer\\\\\\\",{value:t.d_value,options:r.visibleOptions}),!t.options||t.options\\\\u0026\\\\u00260===t.options.length?(m(),g(\\\\\\\"span\\\\\\\",I({key:1,role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenEmptyMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.emptyMessageText),17)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"span\\\\\\\",I({role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenSelectedMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.selectedMessageText),17),C(\\\\\\\"span\\\\\\\",I({ref:\\\\\\\"lastHiddenFocusableElementOnOverlay\\\\\\\",role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\",class:\\\\\\\"p-hidden-accessible p-hidden-focusable\\\\\\\",tabindex:0,onFocus:e[4]||(e[4]=function(){return r.onLastHiddenFocus\\\\u0026\\\\u0026r.onLastHiddenFocus.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenLastFocusableEl\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0,\\\\\\\"data-p-hidden-focusable\\\\\\\":!0}),null,16)],16)):$(\\\\\\\"\\\\\\\",!0)]})),_:3},16,[\\\\\\\"onEnter\\\\\\\",\\\\\\\"onAfterEnter\\\\\\\",\\\\\\\"onLeave\\\\\\\",\\\\\\\"onAfterLeave\\\\\\\"])]})),_:3},8,[\\\\\\\"appendTo\\\\\\\"])],16)};var Yn=St.extend({name:\\\\\\\"slider\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-slider {\\\\\\\\n    position: relative;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"slider.track.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"slider.track.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-handle {\\\\\\\\n    cursor: grab;\\\\\\\\n    touch-action: none;\\\\\\\\n    user-select: none;\\\\\\\\n    display: flex;\\\\\\\\n    justify-content: center;\\\\\\\\n    align-items: center;\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"slider.handle.height\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"slider.handle.width\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.handle.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"slider.handle.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),';\\\\\\\\n    outline-color: transparent;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-handle::before {\\\\\\\\n    content: \\\\\\\"\\\\\\\";\\\\\\\\n    width: ').concat(e(\\\\\\\"slider.handle.content.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.height\\\\\\\"),\\\\\\\";\\\\\\\\n    display: block;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.handle.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider:not(.p-disabled) .p-slider-handle:hover::before {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-handle:focus-visible {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-range {\\\\\\\\n    display: block;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.range.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"slider.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider.p-slider-horizontal {\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"slider.track.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-horizontal .p-slider-range {\\\\\\\\n    inset-block-start: 0;\\\\\\\\n    inset-inline-start: 0;\\\\\\\\n    height: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-horizontal .p-slider-handle {\\\\\\\\n    inset-block-start: 50%;\\\\\\\\n    margin-block-start: calc(-1 * calc(\\\\\\\").concat(e(\\\\\\\"slider.handle.height\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n    margin-inline-start: calc(-1 * calc(\\\\\\\").concat(e(\\\\\\\"slider.handle.width\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-vertical {\\\\\\\\n    min-height: 100px;\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"slider.track.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-vertical .p-slider-handle {\\\\\\\\n    inset-inline-start: 50%;\\\\\\\\n    margin-inline-start: calc(-1 * calc(\\\\\\\").concat(e(\\\\\\\"slider.handle.width\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n    margin-block-end: calc(-1 * calc(\\\\\\\").concat(e(\\\\\\\"slider.handle.height\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-vertical .p-slider-range {\\\\\\\\n    inset-block-end: 0;\\\\\\\\n    inset-inline-start: 0;\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-slider p-component\\\\\\\",{\\\\\\\"p-disabled\\\\\\\":n.disabled,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-slider-horizontal\\\\\\\":\\\\\\\"horizontal\\\\\\\"===n.orientation,\\\\\\\"p-slider-vertical\\\\\\\":\\\\\\\"vertical\\\\\\\"===n.orientation}]},range:\\\\\\\"p-slider-range\\\\\\\",handle:\\\\\\\"p-slider-handle\\\\\\\"},inlineStyles:{handle:{position:\\\\\\\"absolute\\\\\\\"},range:{position:\\\\\\\"absolute\\\\\\\"}}});function Zn(t){return function(t){if(Array.isArray(t))return Jn(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return Jn(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jn(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function Jn(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}var Qn={name:\\\\\\\"Slider\\\\\\\",extends:{name:\\\\\\\"BaseSlider\\\\\\\",extends:Bt,props:{min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:\\\\\\\"horizontal\\\\\\\"},step:{type:Number,default:null},range:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Yn,provide:function(){return{$pcSlider:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\",\\\\\\\"slideend\\\\\\\"],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var t=this.$el.getBoundingClientRect();this.initX=t.left+bt(),this.initY=t.top+mt(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue:function(t){var e,n=t.touches?t.touches[0].pageX:t.pageX,o=t.touches?t.touches[0].pageY:t.pageY;e=\\\\\\\"horizontal\\\\\\\"===this.orientation?xt(this.$el)?100*(this.initX+this.barWidth-n)/this.barWidth:100*(n-this.initX)/this.barWidth:100*(this.initY+this.barHeight-o)/this.barHeight;var i=(this.max-this.min)*(e/100)+this.min;if(this.step){var r=this.range?this.value[this.handleIndex]:this.value,s=i-r;s\\\\u003c0?i=r+Math.ceil(i/this.step-r/this.step)*this.step:s\\\\u003e0\\\\u0026\\\\u0026(i=r+Math.floor(i/this.step-r/this.step)*this.step)}else i=Math.floor(i);this.updateModel(t,i)},updateModel:function(t,e){var n,o=parseFloat(e.toFixed(10));this.range?(n=this.value?Zn(this.value):[],0==this.handleIndex?(o\\\\u003cthis.min?o=this.min:o\\\\u003e=this.max\\\\u0026\\\\u0026(o=this.max),n[0]=o):(o\\\\u003ethis.max?o=this.max:o\\\\u003c=this.min\\\\u0026\\\\u0026(o=this.min),n[1]=o)):(o\\\\u003cthis.min?o=this.min:o\\\\u003ethis.max\\\\u0026\\\\u0026(o=this.max),n=o),this.writeValue(n,t),this.$emit(\\\\\\\"change\\\\\\\",n)},onDragStart:function(t,e){this.disabled||(this.$el.setAttribute(\\\\\\\"data-p-sliding\\\\\\\",!0),this.dragging=!0,this.updateDomData(),this.range\\\\u0026\\\\u0026this.value[0]===this.max?this.handleIndex=0:this.handleIndex=e,t.currentTarget.focus())},onDrag:function(t){this.dragging\\\\u0026\\\\u0026this.setValue(t)},onDragEnd:function(t){this.dragging\\\\u0026\\\\u0026(this.dragging=!1,this.$el.setAttribute(\\\\\\\"data-p-sliding\\\\\\\",!1),this.$emit(\\\\\\\"slideend\\\\\\\",{originalEvent:t,value:this.value}))},onBarClick:function(t){this.disabled||\\\\\\\"handle\\\\\\\"!==q(t.target,\\\\\\\"data-pc-section\\\\\\\")\\\\u0026\\\\u0026(this.updateDomData(),this.setValue(t))},onMouseDown:function(t,e){this.bindDragListeners(),this.onDragStart(t,e)},onKeyDown:function(t,e){switch(this.handleIndex=e,t.code){case\\\\\\\"ArrowDown\\\\\\\":case\\\\\\\"ArrowLeft\\\\\\\":this.decrementValue(t,e),t.preventDefault();break;case\\\\\\\"ArrowUp\\\\\\\":case\\\\\\\"ArrowRight\\\\\\\":this.incrementValue(t,e),t.preventDefault();break;case\\\\\\\"PageDown\\\\\\\":this.decrementValue(t,e,!0),t.preventDefault();break;case\\\\\\\"PageUp\\\\\\\":this.incrementValue(t,e,!0),t.preventDefault();break;case\\\\\\\"Home\\\\\\\":this.updateModel(t,this.min),t.preventDefault();break;case\\\\\\\"End\\\\\\\":this.updateModel(t,this.max),t.preventDefault()}},onBlur:function(t,e){var n,o;null===(n=(o=this.formField).onBlur)||void 0===n||n.call(o,t)},decrementValue:function(t,e){var n,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]\\\\u0026\\\\u0026arguments[2];n=this.range?this.step?this.value[e]-this.step:this.value[e]-1:this.step?this.value-this.step:!this.step\\\\u0026\\\\u0026o?this.value-10:this.value-1,this.updateModel(t,n),t.preventDefault()},incrementValue:function(t,e){var n,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]\\\\u0026\\\\u0026arguments[2];n=this.range?this.step?this.value[e]+this.step:this.value[e]+1:this.step?this.value+this.step:!this.step\\\\u0026\\\\u0026o?this.value+10:this.value+1,this.updateModel(t,n),t.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener(\\\\\\\"mousemove\\\\\\\",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener(\\\\\\\"mouseup\\\\\\\",this.dragEndListener))},unbindDragListeners:function(){this.dragListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"mousemove\\\\\\\",this.dragListener),this.dragListener=null),this.dragEndListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"mouseup\\\\\\\",this.dragEndListener),this.dragEndListener=null)},rangeStyle:function(){if(this.range){var t=this.rangeEndPosition\\\\u003ethis.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,e=this.rangeEndPosition\\\\u003ethis.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{\\\\\\\"inset-inline-start\\\\\\\":e+\\\\\\\"%\\\\\\\",width:t+\\\\\\\"%\\\\\\\"}:{bottom:e+\\\\\\\"%\\\\\\\",height:t+\\\\\\\"%\\\\\\\"}}return this.horizontal?{width:this.handlePosition+\\\\\\\"%\\\\\\\"}:{height:this.handlePosition+\\\\\\\"%\\\\\\\"}},handleStyle:function(){return this.horizontal?{\\\\\\\"inset-inline-start\\\\\\\":this.handlePosition+\\\\\\\"%\\\\\\\"}:{bottom:this.handlePosition+\\\\\\\"%\\\\\\\"}},rangeStartHandleStyle:function(){return this.horizontal?{\\\\\\\"inset-inline-start\\\\\\\":this.rangeStartPosition+\\\\\\\"%\\\\\\\"}:{bottom:this.rangeStartPosition+\\\\\\\"%\\\\\\\"}},rangeEndHandleStyle:function(){return this.horizontal?{\\\\\\\"inset-inline-start\\\\\\\":this.rangeEndPosition+\\\\\\\"%\\\\\\\"}:{bottom:this.rangeEndPosition+\\\\\\\"%\\\\\\\"}}},computed:{value:function(){var t,e,n,o,i;return this.range?[null!==(e=null===(n=this.d_value)||void 0===n?void 0:n[0])\\\\u0026\\\\u0026void 0!==e?e:this.min,null!==(o=null===(i=this.d_value)||void 0===i?void 0:i[1])\\\\u0026\\\\u0026void 0!==o?o:this.max]:null!==(t=this.d_value)\\\\u0026\\\\u0026void 0!==t?t:this.min},horizontal:function(){return\\\\\\\"horizontal\\\\\\\"===this.orientation},vertical:function(){return\\\\\\\"vertical\\\\\\\"===this.orientation},handlePosition:function(){return this.value\\\\u003cthis.min?0:this.value\\\\u003ethis.max?100:100*(this.value-this.min)/(this.max-this.min)},rangeStartPosition:function(){return this.value\\\\u0026\\\\u0026void 0!==this.value[0]?this.value[0]\\\\u003cthis.min?0:100*(this.value[0]-this.min)/(this.max-this.min):0},rangeEndPosition:function(){return this.value\\\\u0026\\\\u00262===this.value.length\\\\u0026\\\\u0026void 0!==this.value[1]?this.value[1]\\\\u003ethis.max?100:100*(this.value[1]-this.min)/(this.max-this.min):100}}},to=[\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\",\\\\\\\"aria-valuenow\\\\\\\",\\\\\\\"aria-valuemax\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-orientation\\\\\\\"],eo=[\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\",\\\\\\\"aria-valuenow\\\\\\\",\\\\\\\"aria-valuemax\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-orientation\\\\\\\"],no=[\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\",\\\\\\\"aria-valuenow\\\\\\\",\\\\\\\"aria-valuemax\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-orientation\\\\\\\"];Qn.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\"),onClick:e[18]||(e[18]=function(){return r.onBarClick\\\\u0026\\\\u0026r.onBarClick.apply(r,arguments)})},t.ptmi(\\\\\\\"root\\\\\\\"),{\\\\\\\"data-p-sliding\\\\\\\":!1}),[C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"range\\\\\\\"),style:[t.sx(\\\\\\\"range\\\\\\\"),r.rangeStyle()]},t.ptm(\\\\\\\"range\\\\\\\")),null,16),t.range?$(\\\\\\\"\\\\\\\",!0):(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:t.cx(\\\\\\\"handle\\\\\\\"),style:[t.sx(\\\\\\\"handle\\\\\\\"),r.handleStyle()],onTouchstartPassive:e[0]||(e[0]=function(t){return r.onDragStart(t)}),onTouchmovePassive:e[1]||(e[1]=function(t){return r.onDrag(t)}),onTouchend:e[2]||(e[2]=function(t){return r.onDragEnd(t)}),onMousedown:e[3]||(e[3]=function(t){return r.onMouseDown(t)}),onKeydown:e[4]||(e[4]=function(t){return r.onKeyDown(t)}),onBlur:e[5]||(e[5]=function(t){return r.onBlur(t)}),tabindex:t.tabindex,role:\\\\\\\"slider\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\":t.min,\\\\\\\"aria-valuenow\\\\\\\":t.d_value,\\\\\\\"aria-valuemax\\\\\\\":t.max,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-orientation\\\\\\\":t.orientation},t.ptm(\\\\\\\"handle\\\\\\\")),null,16,to)),t.range?(m(),g(\\\\\\\"span\\\\\\\",I({key:1,class:t.cx(\\\\\\\"handle\\\\\\\"),style:[t.sx(\\\\\\\"handle\\\\\\\"),r.rangeStartHandleStyle()],onTouchstartPassive:e[6]||(e[6]=function(t){return r.onDragStart(t,0)}),onTouchmovePassive:e[7]||(e[7]=function(t){return r.onDrag(t)}),onTouchend:e[8]||(e[8]=function(t){return r.onDragEnd(t)}),onMousedown:e[9]||(e[9]=function(t){return r.onMouseDown(t,0)}),onKeydown:e[10]||(e[10]=function(t){return r.onKeyDown(t,0)}),onBlur:e[11]||(e[11]=function(t){return r.onBlur(t,0)}),tabindex:t.tabindex,role:\\\\\\\"slider\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\":t.min,\\\\\\\"aria-valuenow\\\\\\\":t.d_value?t.d_value[0]:null,\\\\\\\"aria-valuemax\\\\\\\":t.max,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-orientation\\\\\\\":t.orientation},t.ptm(\\\\\\\"startHandler\\\\\\\")),null,16,eo)):$(\\\\\\\"\\\\\\\",!0),t.range?(m(),g(\\\\\\\"span\\\\\\\",I({key:2,class:t.cx(\\\\\\\"handle\\\\\\\"),style:[t.sx(\\\\\\\"handle\\\\\\\"),r.rangeEndHandleStyle()],onTouchstartPassive:e[12]||(e[12]=function(t){return r.onDragStart(t,1)}),onTouchmovePassive:e[13]||(e[13]=function(t){return r.onDrag(t)}),onTouchend:e[14]||(e[14]=function(t){return r.onDragEnd(t)}),onMousedown:e[15]||(e[15]=function(t){return r.onMouseDown(t,1)}),onKeydown:e[16]||(e[16]=function(t){return r.onKeyDown(t,1)}),onBlur:e[17]||(e[17]=function(t){return r.onBlur(t,1)}),tabindex:t.tabindex,role:\\\\\\\"slider\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\":t.min,\\\\\\\"aria-valuenow\\\\\\\":t.d_value?t.d_value[1]:null,\\\\\\\"aria-valuemax\\\\\\\":t.max,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-orientation\\\\\\\":t.orientation},t.ptm(\\\\\\\"endHandler\\\\\\\")),null,16,no)):$(\\\\\\\"\\\\\\\",!0)],16)};var oo={name:\\\\\\\"Card\\\\\\\",extends:{name:\\\\\\\"BaseCard\\\\\\\",extends:Lt,style:St.extend({name:\\\\\\\"card\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-card {\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"card.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"card.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"card.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"card.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-card-caption {\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"card.caption.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-card-body {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"card.body.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"card.body.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-card-title {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"card.title.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"card.title.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-card-subtitle {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"card.subtitle.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-card p-component\\\\\\\",header:\\\\\\\"p-card-header\\\\\\\",body:\\\\\\\"p-card-body\\\\\\\",caption:\\\\\\\"p-card-caption\\\\\\\",title:\\\\\\\"p-card-title\\\\\\\",subtitle:\\\\\\\"p-card-subtitle\\\\\\\",content:\\\\\\\"p-card-content\\\\\\\",footer:\\\\\\\"p-card-footer\\\\\\\"}}),provide:function(){return{$pcCard:this,$parentInstance:this}}},inheritAttrs:!1};oo.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\")},t.ptmi(\\\\\\\"root\\\\\\\")),[t.$slots.header?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"header\\\\\\\")},t.ptm(\\\\\\\"header\\\\\\\")),[v(t.$slots,\\\\\\\"header\\\\\\\")],16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"body\\\\\\\")},t.ptm(\\\\\\\"body\\\\\\\")),[t.$slots.title||t.$slots.subtitle?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"caption\\\\\\\")},t.ptm(\\\\\\\"caption\\\\\\\")),[t.$slots.title?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"title\\\\\\\")},t.ptm(\\\\\\\"title\\\\\\\")),[v(t.$slots,\\\\\\\"title\\\\\\\")],16)):$(\\\\\\\"\\\\\\\",!0),t.$slots.subtitle?(m(),g(\\\\\\\"div\\\\\\\",I({key:1,class:t.cx(\\\\\\\"subtitle\\\\\\\")},t.ptm(\\\\\\\"subtitle\\\\\\\")),[v(t.$slots,\\\\\\\"subtitle\\\\\\\")],16)):$(\\\\\\\"\\\\\\\",!0)],16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"content\\\\\\\")},t.ptm(\\\\\\\"content\\\\\\\")),[v(t.$slots,\\\\\\\"content\\\\\\\")],16),t.$slots.footer?(m(),g(\\\\\\\"div\\\\\\\",I({key:1,class:t.cx(\\\\\\\"footer\\\\\\\")},t.ptm(\\\\\\\"footer\\\\\\\")),[v(t.$slots,\\\\\\\"footer\\\\\\\")],16)):$(\\\\\\\"\\\\\\\",!0)],16)],16)};var io=St.extend({name:\\\\\\\"contextmenu\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-contextmenu {\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"contextmenu.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"contextmenu.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"contextmenu.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"contextmenu.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: 12.5rem;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-root-list,\\\\\\\\n.p-contextmenu-submenu {\\\\\\\\n    margin: 0;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"contextmenu.list.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    list-style: none;\\\\\\\\n    outline: 0 none;\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"contextmenu.list.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-submenu {\\\\\\\\n    position: absolute;\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    min-width: 100%;\\\\\\\\n    z-index: 1;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"contextmenu.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"contextmenu.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"contextmenu.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"contextmenu.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item {\\\\\\\\n    position: relative;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-content {\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"contextmenu.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"contextmenu.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-link {\\\\\\\\n    cursor: pointer;\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    text-decoration: none;\\\\\\\\n    overflow: hidden;\\\\\\\\n    position: relative;\\\\\\\\n    color: inherit;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.gap\\\\\\\"),\\\\\\\";\\\\\\\\n    user-select: none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-label {\\\\\\\\n    line-height: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-submenu-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-left: auto;\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-submenu-icon:dir(rtl) {\\\\\\\\n    margin-left: 0;\\\\\\\\n    margin-right: auto;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item.p-focus \\\\u003e .p-contextmenu-item-content {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item.p-focus \\\\u003e .p-contextmenu-item-content .p-contextmenu-item-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.icon.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item.p-focus \\\\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item:not(.p-disabled) \\\\u003e .p-contextmenu-item-content:hover {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item:not(.p-disabled) \\\\u003e .p-contextmenu-item-content:hover .p-contextmenu-item-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.icon.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item:not(.p-disabled) \\\\u003e .p-contextmenu-item-content:hover .p-contextmenu-submenu-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-active \\\\u003e .p-contextmenu-item-content {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-active \\\\u003e .p-contextmenu-item-content .p-contextmenu-item-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.icon.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-active \\\\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-separator {\\\\\\\\n    border-block-start: 1px solid \\\\\\\").concat(e(\\\\\\\"contextmenu.separator.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-enter-from,\\\\\\\\n.p-contextmenu-leave-active {\\\\\\\\n    opacity: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-enter-active {\\\\\\\\n    transition: opacity 250ms;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-mobile .p-contextmenu-submenu {\\\\\\\\n    position: static;\\\\\\\\n    box-shadow: none;\\\\\\\\n    border: 0 none;\\\\\\\\n    padding-inline-start: \\\\\\\").concat(e(\\\\\\\"tieredmenu.submenu.mobile.indent\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline-end: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-mobile .p-contextmenu-submenu-icon {\\\\\\\\n    transition: transform 0.2s;\\\\\\\\n    transform: rotate(90deg);\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-mobile .p-contextmenu-item-active \\\\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\\\\\n    transform: rotate(-90deg);\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){return[\\\\\\\"p-contextmenu p-component\\\\\\\",{\\\\\\\"p-contextmenu-mobile\\\\\\\":t.instance.queryMatches}]},rootList:\\\\\\\"p-contextmenu-root-list\\\\\\\",item:function(t){var e=t.instance,n=t.processedItem;return[\\\\\\\"p-contextmenu-item\\\\\\\",{\\\\\\\"p-contextmenu-item-active\\\\\\\":e.isItemActive(n),\\\\\\\"p-focus\\\\\\\":e.isItemFocused(n),\\\\\\\"p-disabled\\\\\\\":e.isItemDisabled(n)}]},itemContent:\\\\\\\"p-contextmenu-item-content\\\\\\\",itemLink:\\\\\\\"p-contextmenu-item-link\\\\\\\",itemIcon:\\\\\\\"p-contextmenu-item-icon\\\\\\\",itemLabel:\\\\\\\"p-contextmenu-item-label\\\\\\\",submenuIcon:\\\\\\\"p-contextmenu-submenu-icon\\\\\\\",submenu:\\\\\\\"p-contextmenu-submenu\\\\\\\",separator:\\\\\\\"p-contextmenu-separator\\\\\\\"}}),ro={name:\\\\\\\"BaseContextMenu\\\\\\\",extends:Lt,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:\\\\\\\"body\\\\\\\"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},breakpoint:{type:String,default:\\\\\\\"960px\\\\\\\"},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:io,provide:function(){return{$pcContextMenu:this,$parentInstance:this}}},so={name:\\\\\\\"ContextMenuSub\\\\\\\",hostName:\\\\\\\"ContextMenu\\\\\\\",extends:Lt,emits:[\\\\\\\"item-click\\\\\\\",\\\\\\\"item-mouseenter\\\\\\\",\\\\\\\"item-mousemove\\\\\\\"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(t){return\\\\\\\"\\\\\\\".concat(this.menuId,\\\\\\\"_\\\\\\\").concat(t.key)},getItemKey:function(t){return this.getItemId(t)},getItemProp:function(t,e,n){return t\\\\u0026\\\\u0026t.item?It(t.item[e],n):void 0},getItemLabel:function(t){return this.getItemProp(t,\\\\\\\"label\\\\\\\")},getItemLabelId:function(t){return\\\\\\\"\\\\\\\".concat(this.menuId,\\\\\\\"_\\\\\\\").concat(t.key,\\\\\\\"_label\\\\\\\")},getPTOptions:function(t,e,n){return this.ptm(t,{context:{item:e.item,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e),index:n}})},isItemActive:function(t){return this.activeItemPath.some((function(e){return e.key===t.key}))},isItemVisible:function(t){return!1!==this.getItemProp(t,\\\\\\\"visible\\\\\\\")},isItemDisabled:function(t){return this.getItemProp(t,\\\\\\\"disabled\\\\\\\")},isItemFocused:function(t){return this.focusedItemId===this.getItemId(t)},isItemGroup:function(t){return K(t.items)},onItemClick:function(t,e){this.getItemProp(e,\\\\\\\"command\\\\\\\",{originalEvent:t,item:e.item}),this.$emit(\\\\\\\"item-click\\\\\\\",{originalEvent:t,processedItem:e,isFocus:!0})},onItemMouseEnter:function(t,e){this.$emit(\\\\\\\"item-mouseenter\\\\\\\",{originalEvent:t,processedItem:e})},onItemMouseMove:function(t,e){this.$emit(\\\\\\\"item-mousemove\\\\\\\",{originalEvent:t,processedItem:e,isFocus:!0})},getAriaSetSize:function(){var t=this;return this.items.filter((function(e){return t.isItemVisible(e)\\\\u0026\\\\u0026!t.getItemProp(e,\\\\\\\"separator\\\\\\\")})).length},getAriaPosInset:function(t){var e=this;return t-this.items.slice(0,t).filter((function(t){return e.isItemVisible(t)\\\\u0026\\\\u0026e.getItemProp(t,\\\\\\\"separator\\\\\\\")})).length+1},onEnter:function(){Ot(this.$refs.container,this.level)},getMenuItemProps:function(t,e){return{action:I({class:this.cx(\\\\\\\"itemLink\\\\\\\"),tabindex:-1},this.getPTOptions(\\\\\\\"itemLink\\\\\\\",t,e)),icon:I({class:[this.cx(\\\\\\\"itemIcon\\\\\\\"),this.getItemProp(t,\\\\\\\"icon\\\\\\\")]},this.getPTOptions(\\\\\\\"itemIcon\\\\\\\",t,e)),label:I({class:this.cx(\\\\\\\"itemLabel\\\\\\\")},this.getPTOptions(\\\\\\\"itemLabel\\\\\\\",t,e)),submenuicon:I({class:this.cx(\\\\\\\"submenuIcon\\\\\\\")},this.getPTOptions(\\\\\\\"submenuicon\\\\\\\",t,e))}}},components:{AngleRightIcon:Ht},directives:{ripple:De}},lo=[\\\\\\\"tabindex\\\\\\\"],ao=[\\\\\\\"id\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-disabled\\\\\\\",\\\\\\\"aria-expanded\\\\\\\",\\\\\\\"aria-haspopup\\\\\\\",\\\\\\\"aria-level\\\\\\\",\\\\\\\"aria-setsize\\\\\\\",\\\\\\\"aria-posinset\\\\\\\",\\\\\\\"data-p-active\\\\\\\",\\\\\\\"data-p-focused\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"],co=[\\\\\\\"onClick\\\\\\\",\\\\\\\"onMouseenter\\\\\\\",\\\\\\\"onMousemove\\\\\\\"],uo=[\\\\\\\"href\\\\\\\",\\\\\\\"target\\\\\\\"],po=[\\\\\\\"id\\\\\\\"],ho=[\\\\\\\"id\\\\\\\"];so.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"AngleRightIcon\\\\\\\"),l=k(\\\\\\\"ContextMenuSub\\\\\\\",!0),a=w(\\\\\\\"ripple\\\\\\\");return m(),S(P,I({name:\\\\\\\"p-contextmenusub\\\\\\\",onEnter:r.onEnter},t.ptm(\\\\\\\"menu.transition\\\\\\\")),{default:L((function(){return[n.root||n.visible?(m(),g(\\\\\\\"ul\\\\\\\",I({key:0,ref:\\\\\\\"container\\\\\\\",tabindex:n.tabindex},t.ptm(\\\\\\\"rootList\\\\\\\")),[(m(!0),g(_,null,M(n.items,(function(o,i){return m(),g(_,{key:r.getItemKey(o)},[r.isItemVisible(o)\\\\u0026\\\\u0026!r.getItemProp(o,\\\\\\\"separator\\\\\\\")?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,id:r.getItemId(o),style:r.getItemProp(o,\\\\\\\"style\\\\\\\"),class:[t.cx(\\\\\\\"item\\\\\\\",{processedItem:o}),r.getItemProp(o,\\\\\\\"class\\\\\\\")],role:\\\\\\\"menuitem\\\\\\\",\\\\\\\"aria-label\\\\\\\":r.getItemLabel(o),\\\\\\\"aria-disabled\\\\\\\":r.isItemDisabled(o)||void 0,\\\\\\\"aria-expanded\\\\\\\":r.isItemGroup(o)?r.isItemActive(o):void 0,\\\\\\\"aria-haspopup\\\\\\\":r.isItemGroup(o)\\\\u0026\\\\u0026!r.getItemProp(o,\\\\\\\"to\\\\\\\")?\\\\\\\"menu\\\\\\\":void 0,\\\\\\\"aria-level\\\\\\\":n.level+1,\\\\\\\"aria-setsize\\\\\\\":r.getAriaSetSize(),\\\\\\\"aria-posinset\\\\\\\":r.getAriaPosInset(i),ref_for:!0},r.getPTOptions(\\\\\\\"item\\\\\\\",o,i),{\\\\\\\"data-p-active\\\\\\\":r.isItemActive(o),\\\\\\\"data-p-focused\\\\\\\":r.isItemFocused(o),\\\\\\\"data-p-disabled\\\\\\\":r.isItemDisabled(o)}),[C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"itemContent\\\\\\\"),onClick:function(t){return r.onItemClick(t,o)},onMouseenter:function(t){return r.onItemMouseEnter(t,o)},onMousemove:function(t){return r.onItemMouseMove(t,o)},ref_for:!0},r.getPTOptions(\\\\\\\"itemContent\\\\\\\",o,i)),[n.templates.item?(m(),S(E(n.templates.item),{key:1,item:o.item,hasSubmenu:r.getItemProp(o,\\\\\\\"items\\\\\\\"),label:r.getItemLabel(o),props:r.getMenuItemProps(o,i)},null,8,[\\\\\\\"item\\\\\\\",\\\\\\\"hasSubmenu\\\\\\\",\\\\\\\"label\\\\\\\",\\\\\\\"props\\\\\\\"])):O((m(),g(\\\\\\\"a\\\\\\\",I({key:0,href:r.getItemProp(o,\\\\\\\"url\\\\\\\"),class:t.cx(\\\\\\\"itemLink\\\\\\\"),target:r.getItemProp(o,\\\\\\\"target\\\\\\\"),tabindex:\\\\\\\"-1\\\\\\\",ref_for:!0},r.getPTOptions(\\\\\\\"itemLink\\\\\\\",o,i)),[n.templates.itemicon?(m(),S(E(n.templates.itemicon),{key:0,item:o.item,class:z(t.cx(\\\\\\\"itemIcon\\\\\\\"))},null,8,[\\\\\\\"item\\\\\\\",\\\\\\\"class\\\\\\\"])):r.getItemProp(o,\\\\\\\"icon\\\\\\\")?(m(),g(\\\\\\\"span\\\\\\\",I({key:1,class:[t.cx(\\\\\\\"itemIcon\\\\\\\"),r.getItemProp(o,\\\\\\\"icon\\\\\\\")],ref_for:!0},r.getPTOptions(\\\\\\\"itemIcon\\\\\\\",o,i)),null,16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"span\\\\\\\",I({id:r.getItemLabelId(o),class:t.cx(\\\\\\\"itemLabel\\\\\\\"),ref_for:!0},r.getPTOptions(\\\\\\\"itemLabel\\\\\\\",o,i)),x(r.getItemLabel(o)),17,po),r.getItemProp(o,\\\\\\\"items\\\\\\\")?(m(),g(_,{key:2},[n.templates.submenuicon?(m(),S(E(n.templates.submenuicon),{key:0,active:r.isItemActive(o),class:z(t.cx(\\\\\\\"submenuIcon\\\\\\\"))},null,8,[\\\\\\\"active\\\\\\\",\\\\\\\"class\\\\\\\"])):(m(),S(s,I({key:1,class:t.cx(\\\\\\\"submenuIcon\\\\\\\"),ref_for:!0},r.getPTOptions(\\\\\\\"submenuicon\\\\\\\",o,i)),null,16,[\\\\\\\"class\\\\\\\"]))],64)):$(\\\\\\\"\\\\\\\",!0)],16,uo)),[[a]])],16,co),r.isItemVisible(o)\\\\u0026\\\\u0026r.isItemGroup(o)?(m(),S(l,I({key:0,id:r.getItemId(o)+\\\\\\\"_list\\\\\\\",role:\\\\\\\"menu\\\\\\\",class:t.cx(\\\\\\\"submenu\\\\\\\"),menuId:n.menuId,focusedItemId:n.focusedItemId,items:o.items,templates:n.templates,activeItemPath:n.activeItemPath,level:n.level+1,visible:r.isItemActive(o)\\\\u0026\\\\u0026r.isItemGroup(o),pt:t.pt,unstyled:t.unstyled,onItemClick:e[0]||(e[0]=function(e){return t.$emit(\\\\\\\"item-click\\\\\\\",e)}),onItemMouseenter:e[1]||(e[1]=function(e){return t.$emit(\\\\\\\"item-mouseenter\\\\\\\",e)}),onItemMousemove:e[2]||(e[2]=function(e){return t.$emit(\\\\\\\"item-mousemove\\\\\\\",e)}),\\\\\\\"aria-labelledby\\\\\\\":r.getItemLabelId(o),ref_for:!0},t.ptm(\\\\\\\"submenu\\\\\\\")),null,16,[\\\\\\\"id\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"menuId\\\\\\\",\\\\\\\"focusedItemId\\\\\\\",\\\\\\\"items\\\\\\\",\\\\\\\"templates\\\\\\\",\\\\\\\"activeItemPath\\\\\\\",\\\\\\\"level\\\\\\\",\\\\\\\"visible\\\\\\\",\\\\\\\"pt\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)],16,ao)):$(\\\\\\\"\\\\\\\",!0),r.isItemVisible(o)\\\\u0026\\\\u0026r.getItemProp(o,\\\\\\\"separator\\\\\\\")?(m(),g(\\\\\\\"li\\\\\\\",I({key:1,id:r.getItemId(o),style:r.getItemProp(o,\\\\\\\"style\\\\\\\"),class:[t.cx(\\\\\\\"separator\\\\\\\"),r.getItemProp(o,\\\\\\\"class\\\\\\\")],role:\\\\\\\"separator\\\\\\\",ref_for:!0},t.ptm(\\\\\\\"separator\\\\\\\")),null,16,ho)):$(\\\\\\\"\\\\\\\",!0)],64)})),128))],16,lo)):$(\\\\\\\"\\\\\\\",!0)]})),_:1},16,[\\\\\\\"onEnter\\\\\\\"])};var fo={name:\\\\\\\"ContextMenu\\\\\\\",extends:ro,inheritAttrs:!1,emits:[\\\\\\\"focus\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"show\\\\\\\",\\\\\\\"hide\\\\\\\",\\\\\\\"before-show\\\\\\\",\\\\\\\"before-hide\\\\\\\"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,matchMediaListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"},activeItemPath:[],visible:!1,submenuVisible:!1,query:null,queryMatches:!1}},watch:{\\\\\\\"$attrs.id\\\\\\\":function(t){this.id=t||Et()},activeItemPath:function(t){K(t)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||Et(),this.bindMatchMediaListener(),this.global\\\\u0026\\\\u0026this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.unbindMatchMediaListener(),this.container\\\\u0026\\\\u0026this.autoZIndex\\\\u0026\\\\u0026Q.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(t,e){return t?It(t[e]):void 0},getItemLabel:function(t){return this.getItemProp(t,\\\\\\\"label\\\\\\\")},isItemDisabled:function(t){return this.getItemProp(t,\\\\\\\"disabled\\\\\\\")},isItemVisible:function(t){return!1!==this.getItemProp(t,\\\\\\\"visible\\\\\\\")},isItemGroup:function(t){return K(this.getItemProp(t,\\\\\\\"items\\\\\\\"))},isItemSeparator:function(t){return this.getItemProp(t,\\\\\\\"separator\\\\\\\")},getProccessedItemLabel:function(t){return t?this.getItemLabel(t.item):void 0},isProccessedItemGroup:function(t){return t\\\\u0026\\\\u0026K(t.items)},toggle:function(t){this.visible?this.hide():this.show(t)},show:function(t){this.$emit(\\\\\\\"before-show\\\\\\\"),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"},et(this.list),this.pageX=t.pageX,this.pageY=t.pageY,this.visible?this.position():this.visible=!0,t.stopPropagation(),t.preventDefault()},hide:function(){this.$emit(\\\\\\\"before-hide\\\\\\\"),this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"}},onFocus:function(t){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"},this.$emit(\\\\\\\"focus\\\\\\\",t)},onBlur:function(t){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"},this.searchValue=\\\\\\\"\\\\\\\",this.$emit(\\\\\\\"blur\\\\\\\",t)},onKeyDown:function(t){var e=t.metaKey||t.ctrlKey;switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t);break;case\\\\\\\"ArrowLeft\\\\\\\":this.onArrowLeftKey(t);break;case\\\\\\\"ArrowRight\\\\\\\":this.onArrowRightKey(t);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t);break;case\\\\\\\"Space\\\\\\\":this.onSpaceKey(t);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t);break;case\\\\\\\"PageDown\\\\\\\":case\\\\\\\"PageUp\\\\\\\":case\\\\\\\"Backspace\\\\\\\":case\\\\\\\"ShiftLeft\\\\\\\":case\\\\\\\"ShiftRight\\\\\\\":break;default:!e\\\\u0026\\\\u0026ot(t.key)\\\\u0026\\\\u0026this.searchItems(t,t.key)}},onItemChange:function(t,e){var n=t.processedItem,o=t.isFocus;if(!D(n)){var i=n.index,r=n.key,s=n.level,l=n.parentKey,a=n.items,c=K(a),u=this.activeItemPath.filter((function(t){return t.parentKey!==l\\\\u0026\\\\u0026t.parentKey!==r}));c\\\\u0026\\\\u0026(u.push(n),this.submenuVisible=!0),this.focusedItemInfo={index:i,level:s,parentKey:l},o\\\\u0026\\\\u0026et(this.list),\\\\\\\"hover\\\\\\\"===e\\\\u0026\\\\u0026this.queryMatches||(this.activeItemPath=u)}},onItemClick:function(t){var e=t.processedItem,n=this.isProccessedItemGroup(e);if(this.isSelected(e)){var o=e.index,i=e.key,r=e.level,s=e.parentKey;this.activeItemPath=this.activeItemPath.filter((function(t){return i!==t.key\\\\u0026\\\\u0026i.startsWith(t.key)})),this.focusedItemInfo={index:o,level:r,parentKey:s},et(this.list)}else n?this.onItemChange(t):this.hide()},onItemMouseEnter:function(t){this.onItemChange(t,\\\\\\\"hover\\\\\\\")},onItemMouseMove:function(t){this.focused\\\\u0026\\\\u0026this.changeFocusedItemIndex(t,t.processedItem.index)},onArrowDownKey:function(t){var e=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(t,e),t.preventDefault()},onArrowUpKey:function(t){if(t.altKey){if(-1!==this.focusedItemInfo.index){var e=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(e)\\\\u0026\\\\u0026this.onItemChange({originalEvent:t,processedItem:e})}this.popup\\\\u0026\\\\u0026this.hide(),t.preventDefault()}else{var n=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(t,n),t.preventDefault()}},onArrowLeftKey:function(t){var e=this,n=this.visibleItems[this.focusedItemInfo.index],o=this.activeItemPath.find((function(t){return t.key===n.parentKey}));D(n.parent)||(this.focusedItemInfo={index:-1,parentKey:o?o.parentKey:\\\\\\\"\\\\\\\"},this.searchValue=\\\\\\\"\\\\\\\",this.onArrowDownKey(t)),this.activeItemPath=this.activeItemPath.filter((function(t){return t.parentKey!==e.focusedItemInfo.parentKey})),t.preventDefault()},onArrowRightKey:function(t){var e=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(e)\\\\u0026\\\\u0026(this.onItemChange({originalEvent:t,processedItem:e}),this.focusedItemInfo={index:-1,parentKey:e.key},this.searchValue=\\\\\\\"\\\\\\\",this.onArrowDownKey(t)),t.preventDefault()},onHomeKey:function(t){this.changeFocusedItemIndex(t,this.findFirstItemIndex()),t.preventDefault()},onEndKey:function(t){this.changeFocusedItemIndex(t,this.findLastItemIndex()),t.preventDefault()},onEnterKey:function(t){if(-1!==this.focusedItemInfo.index){var e=J(this.list,'li[id=\\\\\\\"'.concat(\\\\\\\"\\\\\\\".concat(this.focusedItemIdx),'\\\\\\\"]')),n=e\\\\u0026\\\\u0026J(e,'[data-pc-section=\\\\\\\"itemlink\\\\\\\"]');n?n.click():e\\\\u0026\\\\u0026e.click();var o=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(o)\\\\u0026\\\\u0026(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}t.preventDefault()},onSpaceKey:function(t){this.onEnterKey(t)},onEscapeKey:function(t){this.hide(),!this.popup\\\\u0026\\\\u0026(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),t.preventDefault()},onTabKey:function(t){if(-1!==this.focusedItemInfo.index){var e=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(e)\\\\u0026\\\\u0026this.onItemChange({originalEvent:t,processedItem:e})}this.hide()},onEnter:function(t){st(t,{position:\\\\\\\"absolute\\\\\\\"}),this.position(),this.autoZIndex\\\\u0026\\\\u0026Q.set(\\\\\\\"menu\\\\\\\",t,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit(\\\\\\\"show\\\\\\\"),et(this.list)},onLeave:function(){this.$emit(\\\\\\\"hide\\\\\\\"),this.container=null},onAfterLeave:function(t){this.autoZIndex\\\\u0026\\\\u0026Q.clear(t),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var t=this.pageX+1,e=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:kt(this.container),o=this.container.offsetParent?this.container.offsetHeight:wt(this.container),i=gt(),r=window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0,s=window.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft||0;t+n-s\\\\u003ei.width\\\\u0026\\\\u0026(t-=n),e+o-r\\\\u003ei.height\\\\u0026\\\\u0026(e-=o),t\\\\u003cs\\\\u0026\\\\u0026(t=s),e\\\\u003cr\\\\u0026\\\\u0026(e=r),this.container.style.left=t+\\\\\\\"px\\\\\\\",this.container.style.top=e+\\\\\\\"px\\\\\\\"},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){var n=t.container\\\\u0026\\\\u0026!t.container.contains(e.target),o=!t.visible||!(t.target\\\\u0026\\\\u0026(t.target===e.target||t.target.contains(e.target)));n\\\\u0026\\\\u0026o\\\\u0026\\\\u0026t.hide()},document.addEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.visible\\\\u0026\\\\u0026!ct()\\\\u0026\\\\u0026t.hide()},window.addEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\\\u0026\\\\u0026(window.removeEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var t=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(e){2===e.button\\\\u0026\\\\u0026t.show(e)},document.addEventListener(\\\\\\\"contextmenu\\\\\\\",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"contextmenu\\\\\\\",this.documentContextMenuListener),this.documentContextMenuListener=null)},bindMatchMediaListener:function(){var t=this;if(!this.matchMediaListener){var e=matchMedia(\\\\\\\"(max-width: \\\\\\\".concat(this.breakpoint,\\\\\\\")\\\\\\\"));this.query=e,this.queryMatches=e.matches,this.matchMediaListener=function(){t.queryMatches=e.matches},this.query.addEventListener(\\\\\\\"change\\\\\\\",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener\\\\u0026\\\\u0026(this.query.removeEventListener(\\\\\\\"change\\\\\\\",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(t){var e;return this.isValidItem(t)\\\\u0026\\\\u0026(null===(e=this.getProccessedItemLabel(t))||void 0===e?void 0:e.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(t){return!!t\\\\u0026\\\\u0026!this.isItemDisabled(t.item)\\\\u0026\\\\u0026!this.isItemSeparator(t.item)\\\\u0026\\\\u0026this.isItemVisible(t.item)},isValidSelectedItem:function(t){return this.isValidItem(t)\\\\u0026\\\\u0026this.isSelected(t)},isSelected:function(t){return this.activeItemPath.some((function(e){return e.key===t.key}))},findFirstItemIndex:function(){var t=this;return this.visibleItems.findIndex((function(e){return t.isValidItem(e)}))},findLastItemIndex:function(){var t=this;return pt(this.visibleItems,(function(e){return t.isValidItem(e)}))},findNextItemIndex:function(t){var e=this,n=t\\\\u003cthis.visibleItems.length-1?this.visibleItems.slice(t+1).findIndex((function(t){return e.isValidItem(t)})):-1;return n\\\\u003e-1?n+t+1:t},findPrevItemIndex:function(t){var e=this,n=t\\\\u003e0?pt(this.visibleItems.slice(0,t),(function(t){return e.isValidItem(t)})):-1;return n\\\\u003e-1?n:t},findSelectedItemIndex:function(){var t=this;return this.visibleItems.findIndex((function(e){return t.isValidSelectedItem(e)}))},findFirstFocusedItemIndex:function(){var t=this.findSelectedItemIndex();return t\\\\u003c0?this.findFirstItemIndex():t},findLastFocusedItemIndex:function(){var t=this.findSelectedItemIndex();return t\\\\u003c0?this.findLastItemIndex():t},searchItems:function(t,e){var n=this;this.searchValue=(this.searchValue||\\\\\\\"\\\\\\\")+e;var o=-1,i=!1;return-1!==(o=-1!==this.focusedItemInfo.index?-1===(o=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(t){return n.isItemMatched(t)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(t){return n.isItemMatched(t)})):o+this.focusedItemInfo.index:this.visibleItems.findIndex((function(t){return n.isItemMatched(t)})))\\\\u0026\\\\u0026(i=!0),-1===o\\\\u0026\\\\u0026-1===this.focusedItemInfo.index\\\\u0026\\\\u0026(o=this.findFirstFocusedItemIndex()),-1!==o\\\\u0026\\\\u0026this.changeFocusedItemIndex(t,o),this.searchTimeout\\\\u0026\\\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){n.searchValue=\\\\\\\"\\\\\\\",n.searchTimeout=null}),500),i},changeFocusedItemIndex:function(t,e){this.focusedItemInfo.index!==e\\\\u0026\\\\u0026(this.focusedItemInfo.index=e,this.scrollInView())},scrollInView:function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:-1,e=-1!==t?\\\\\\\"\\\\\\\".concat(this.id,\\\\\\\"_\\\\\\\").concat(t):this.focusedItemIdx,n=J(this.list,'li[id=\\\\\\\"'.concat(e,'\\\\\\\"]'));n\\\\u0026\\\\u0026n.scrollIntoView\\\\u0026\\\\u0026n.scrollIntoView({block:\\\\\\\"nearest\\\\\\\",inline:\\\\\\\"start\\\\\\\"})},createProcessedItems:function(t){var e=this,n=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:0,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]?arguments[2]:{},i=arguments.length\\\\u003e3\\\\u0026\\\\u0026void 0!==arguments[3]?arguments[3]:\\\\\\\"\\\\\\\",r=[];return t\\\\u0026\\\\u0026t.forEach((function(t,s){var l=(\\\\\\\"\\\\\\\"!==i?i+\\\\\\\"_\\\\\\\":\\\\\\\"\\\\\\\")+s,a={item:t,index:s,level:n,key:l,parent:o,parentKey:i};a.items=e.createProcessedItems(t.items,n+1,a,l),r.push(a)})),r},containerRef:function(t){this.container=t},listRef:function(t){this.list=t?t.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var t=this,e=this.activeItemPath.find((function(e){return e.key===t.focusedItemInfo.parentKey}));return e?e.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?\\\\\\\"\\\\\\\".concat(this.id).concat(K(this.focusedItemInfo.parentKey)?\\\\\\\"_\\\\\\\"+this.focusedItemInfo.parentKey:\\\\\\\"\\\\\\\",\\\\\\\"_\\\\\\\").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:so,Portal:Ye}};fo.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"ContextMenuSub\\\\\\\"),l=k(\\\\\\\"Portal\\\\\\\");return m(),S(l,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\\\\\"p-contextmenu\\\\\\\",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},t.ptm(\\\\\\\"transition\\\\\\\")),{default:L((function(){return[i.visible?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,ref:r.containerRef,class:t.cx(\\\\\\\"root\\\\\\\")},t.ptmi(\\\\\\\"root\\\\\\\")),[V(s,{ref:r.listRef,id:i.id+\\\\\\\"_list\\\\\\\",class:z(t.cx(\\\\\\\"rootList\\\\\\\")),role:\\\\\\\"menubar\\\\\\\",root:!0,tabindex:t.tabindex,\\\\\\\"aria-orientation\\\\\\\":\\\\\\\"vertical\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":i.focused?r.focusedItemIdx:void 0,menuId:i.id,focusedItemId:i.focused?r.focusedItemIdx:void 0,items:r.processedItems,templates:t.$slots,activeItemPath:i.activeItemPath,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,level:0,visible:i.submenuVisible,pt:t.pt,unstyled:t.unstyled,onFocus:r.onFocus,onBlur:r.onBlur,onKeydown:r.onKeyDown,onItemClick:r.onItemClick,onItemMouseenter:r.onItemMouseEnter,onItemMousemove:r.onItemMouseMove},null,8,[\\\\\\\"id\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"menuId\\\\\\\",\\\\\\\"focusedItemId\\\\\\\",\\\\\\\"items\\\\\\\",\\\\\\\"templates\\\\\\\",\\\\\\\"activeItemPath\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"visible\\\\\\\",\\\\\\\"pt\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"onFocus\\\\\\\",\\\\\\\"onBlur\\\\\\\",\\\\\\\"onKeydown\\\\\\\",\\\\\\\"onItemClick\\\\\\\",\\\\\\\"onItemMouseenter\\\\\\\",\\\\\\\"onItemMousemove\\\\\\\"])],16)):$(\\\\\\\"\\\\\\\",!0)]})),_:1},16,[\\\\\\\"onEnter\\\\\\\",\\\\\\\"onAfterEnter\\\\\\\",\\\\\\\"onLeave\\\\\\\",\\\\\\\"onAfterLeave\\\\\\\"])]})),_:1},8,[\\\\\\\"appendTo\\\\\\\"])};var bo=St.extend({name:\\\\\\\"togglebutton\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-togglebutton {\\\\\\\\n    display: inline-flex;\\\\\\\\n    cursor: pointer;\\\\\\\\n    user-select: none;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    overflow: hidden;\\\\\\\\n    position: relative;\\\\\\\\n    color: \\\\\\\".concat(e(\\\\\\\"togglebutton.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"togglebutton.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"togglebutton.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: 1rem;\\\\\\\\n    font-family: inherit;\\\\\\\\n    font-feature-settings: inherit;\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n        outline-color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"togglebutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"togglebutton.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-content {\\\\\\\\n    position: relative;\\\\\\\\n    display: inline-flex;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"togglebutton.gap\\\\\\\"),';\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-label,\\\\\\\\n.p-togglebutton-icon {\\\\\\\\n    position: relative;\\\\\\\\n    transition: none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton::before {\\\\\\\\n    content: \\\\\\\"\\\\\\\";\\\\\\\\n    background: transparent;\\\\\\\\n    transition: background ').concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n            outline-color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    position: absolute;\\\\\\\\n    inset-inline-start: \\\\\\\").concat(e(\\\\\\\"togglebutton.content.left\\\\\\\"),\\\\\\\";\\\\\\\\n    inset-block-start: \\\\\\\").concat(e(\\\\\\\"togglebutton.content.top\\\\\\\"),\\\\\\\";\\\\\\\\n    width: calc(100% - calc(2 * \\\\\\\").concat(e(\\\\\\\"togglebutton.content.left\\\\\\\"),\\\\\\\"));\\\\\\\\n    height: calc(100% - calc(2 * \\\\\\\").concat(e(\\\\\\\"togglebutton.content.top\\\\\\\"),\\\\\\\"));\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"togglebutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton.p-togglebutton-checked::before {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.content.checked.background\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"togglebutton.content.checked.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton.p-togglebutton-checked {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.checked.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"togglebutton.checked.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.checked.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:focus-visible {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton.p-invalid {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"togglebutton.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n    cursor: default;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"togglebutton.disabled.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.icon.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.icon.checked.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:disabled .p-togglebutton-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.icon.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-sm {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"togglebutton.sm.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"togglebutton.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-lg {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"togglebutton.lg.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"togglebutton.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-togglebutton p-component\\\\\\\",{\\\\\\\"p-togglebutton-checked\\\\\\\":e.active,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-togglebutton-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-togglebutton-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size}]},content:\\\\\\\"p-togglebutton-content\\\\\\\",icon:\\\\\\\"p-togglebutton-icon\\\\\\\",label:\\\\\\\"p-togglebutton-label\\\\\\\"}}),mo={name:\\\\\\\"ToggleButton\\\\\\\",extends:{name:\\\\\\\"BaseToggleButton\\\\\\\",extends:Bt,props:{onIcon:String,offIcon:String,onLabel:{type:String,default:\\\\\\\"Yes\\\\\\\"},offLabel:{type:String,default:\\\\\\\"No\\\\\\\"},iconPos:{type:String,default:\\\\\\\"left\\\\\\\"},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},size:{type:String,default:null}},style:bo,provide:function(){return{$pcToggleButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\"],methods:{getPTOptions:function(t){return(\\\\\\\"root\\\\\\\"===t?this.ptmi:this.ptm)(t,{context:{active:this.active,disabled:this.disabled}})},onChange:function(t){this.disabled||this.readonly||(this.writeValue(!this.d_value,t),this.$emit(\\\\\\\"change\\\\\\\",t))},onBlur:function(t){var e,n;null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)}},computed:{active:function(){return!0===this.d_value},hasLabel:function(){return K(this.onLabel)\\\\u0026\\\\u0026K(this.offLabel)},label:function(){return this.hasLabel?this.d_value?this.onLabel:this.offLabel:\\\\\\\"\\u00a0\\\\\\\"}},directives:{ripple:De}},go=[\\\\\\\"tabindex\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"aria-pressed\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"data-p-checked\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"];mo.render=function(t,e,n,o,i,r){var s=w(\\\\\\\"ripple\\\\\\\");return O((m(),g(\\\\\\\"button\\\\\\\",I({type:\\\\\\\"button\\\\\\\",class:t.cx(\\\\\\\"root\\\\\\\"),tabindex:t.tabindex,disabled:t.disabled,\\\\\\\"aria-pressed\\\\\\\":t.d_value,onClick:e[0]||(e[0]=function(){return r.onChange\\\\u0026\\\\u0026r.onChange.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)})},r.getPTOptions(\\\\\\\"root\\\\\\\"),{\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"data-p-checked\\\\\\\":r.active,\\\\\\\"data-p-disabled\\\\\\\":t.disabled}),[C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"content\\\\\\\")},r.getPTOptions(\\\\\\\"content\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\",{},(function(){return[v(t.$slots,\\\\\\\"icon\\\\\\\",{value:t.d_value,class:z(t.cx(\\\\\\\"icon\\\\\\\"))},(function(){return[t.onIcon||t.offIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"icon\\\\\\\"),t.d_value?t.onIcon:t.offIcon]},r.getPTOptions(\\\\\\\"icon\\\\\\\")),null,16)):$(\\\\\\\"\\\\\\\",!0)]})),C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"label\\\\\\\")},r.getPTOptions(\\\\\\\"label\\\\\\\")),x(r.label),17)]}))],16)],16,go)),[[s]])};var vo=St.extend({name:\\\\\\\"selectbutton\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-selectbutton {\\\\\\\\n    display: inline-flex;\\\\\\\\n    user-select: none;\\\\\\\\n    vertical-align: bottom;\\\\\\\\n    outline-color: transparent;\\\\\\\\n    border-radius: \\\\\\\".concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton .p-togglebutton {\\\\\\\\n    border-radius: 0;\\\\\\\\n    border-width: 1px 1px 1px 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton .p-togglebutton:focus-visible {\\\\\\\\n    position: relative;\\\\\\\\n    z-index: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton .p-togglebutton:first-child {\\\\\\\\n    border-inline-start-width: 1px;\\\\\\\\n    border-start-start-radius: \\\\\\\").concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border-end-start-radius: \\\\\\\").concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton .p-togglebutton:last-child {\\\\\\\\n    border-start-end-radius: \\\\\\\").concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border-end-end-radius: \\\\\\\").concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton.p-invalid {\\\\\\\\n    outline: 1px solid \\\\\\\").concat(e(\\\\\\\"selectbutton.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){return[\\\\\\\"p-selectbutton p-component\\\\\\\",{\\\\\\\"p-invalid\\\\\\\":t.instance.$invalid}]}}});function yo(t){return function(t){if(Array.isArray(t))return Io(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||xo(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function xo(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return Io(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(t,e):void 0}}function Io(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}var ko={name:\\\\\\\"SelectButton\\\\\\\",extends:{name:\\\\\\\"BaseSelectButton\\\\\\\",extends:Bt,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,allowEmpty:{type:Boolean,default:!0},dataKey:null,ariaLabelledby:{type:String,default:null},size:{type:String,default:null}},style:vo,provide:function(){return{$pcSelectButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\"],methods:{getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t){return this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled:function(t){return!!this.optionDisabled\\\\u0026\\\\u0026tt(t,this.optionDisabled)},onOptionSelect:function(t,e,n){var o=this;if(!this.disabled\\\\u0026\\\\u0026!this.isOptionDisabled(e)){var i=this.isSelected(e);if(!i||this.allowEmpty){var r,s=this.getOptionValue(e);r=this.multiple?i?this.d_value.filter((function(t){return!dt(t,s,o.equalityKey)})):this.d_value?[].concat(yo(this.d_value),[s]):[s]:i?null:s,this.writeValue(r,t),this.$emit(\\\\\\\"change\\\\\\\",{event:t,value:r})}}},isSelected:function(t){var e=!1,n=this.getOptionValue(t);if(this.multiple){if(this.d_value){var o,i=function(t,e){var n=\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026t[Symbol.iterator]||t[\\\\\\\"@@iterator\\\\\\\"];if(!n){if(Array.isArray(t)||(n=xo(t))||e){n\\\\u0026\\\\u0026(t=n);var o=0,i=function(){};return{s:i,n:function(){return o\\\\u003e=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError(\\\\\\\"Invalid attempt to iterate non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}var r,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw r}}}}(this.d_value);try{for(i.s();!(o=i.n()).done;){var r=o.value;if(dt(r,n,this.equalityKey)){e=!0;break}}}catch(s){i.e(s)}finally{i.f()}}}else e=dt(this.d_value,n,this.equalityKey);return e}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey}},directives:{ripple:De},components:{ToggleButton:mo}},wo=[\\\\\\\"aria-labelledby\\\\\\\"];ko.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"ToggleButton\\\\\\\");return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\"),role:\\\\\\\"group\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby},t.ptmi(\\\\\\\"root\\\\\\\")),[(m(!0),g(_,null,M(t.options,(function(e,n){return m(),S(s,{key:r.getOptionRenderKey(e),modelValue:r.isSelected(e),onLabel:r.getOptionLabel(e),offLabel:r.getOptionLabel(e),disabled:t.disabled||r.isOptionDisabled(e),unstyled:t.unstyled,size:t.size,readonly:!t.allowEmpty\\\\u0026\\\\u0026r.isSelected(e),onChange:function(t){return r.onOptionSelect(t,e,n)},pt:t.ptm(\\\\\\\"pcToggleButton\\\\\\\")},A({_:2},[t.$slots.option?{name:\\\\\\\"default\\\\\\\",fn:L((function(){return[v(t.$slots,\\\\\\\"option\\\\\\\",{option:e,index:n},(function(){return[C(\\\\\\\"span\\\\\\\",I({ref_for:!0},t.ptm(\\\\\\\"pcToggleButton\\\\\\\").label),x(r.getOptionLabel(e)),17)]}))]})),key:\\\\\\\"0\\\\\\\"}:void 0]),1032,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"onLabel\\\\\\\",\\\\\\\"offLabel\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"size\\\\\\\",\\\\\\\"readonly\\\\\\\",\\\\\\\"onChange\\\\\\\",\\\\\\\"pt\\\\\\\"])})),128))],16,wo)};export{On as T,pn as a,jn as b,Qn as c,re as d,se as e,Ne as f,We as g,Ce as h,Ue as i,ko as j,oo as k,fo as l,qt as m,Ge as s};\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"web_version/v2/assets/vendor-DrOEdrAG.js\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 7,\\n        \\\"line_snippet\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(t){Rt(l),l._a=t,t.provide(Gt,l),t.config.globalProperties.$pinia=l,s.forEach((t=\\\\u003er.push(t))),s=[]},use(t){return this._a?r.push(t):s.push(t),this},_p:r,_a:null,_e:o,_s:new Map,state:i});return l}(Wt=Nt||(Nt={})).direct=\\\\\\\"direct\\\\\\\",Wt.patchObject=\\\\\\\"patch object\\\\\\\",Wt.patchFunction=\\\\\\\"patch function\\\\\\\";const Xt=()=\\\\u003e{};function Yt(t,e,n,o=Xt){t.push(e);const i=()=\\\\u003e{const n=t.indexOf(e);n\\\\u003e-1\\\\u0026\\\\u0026(t.splice(n,1),o())};return!n\\\\u0026\\\\u0026c()\\\\u0026\\\\u0026u(i),i}function Zt(t,...e){t.slice().forEach((t=\\\\u003e{t(...e)}))}const Jt=t=\\\\u003et(),Qt=Symbol(),te=Symbol();function ee(t,e){t instanceof Map\\\\u0026\\\\u0026e instanceof Map?e.forEach(((e,n)=\\\\u003et.set(n,e))):t instanceof Set\\\\u0026\\\\u0026e instanceof Set\\\\u0026\\\\u0026e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],i=t[n];Ut(i)\\\\u0026\\\\u0026Ut(o)\\\\u0026\\\\u0026t.hasOwnProperty(n)\\\\u0026\\\\u0026!r(o)\\\\u0026\\\\u0026!s(o)?t[n]=ee(i,o):t[n]=o}return t}const ne=Symbol();const{assign:oe}=Object;function ie(n,a,c={},u,p,h){let f;const b=oe({actions:{}},c),m={deep:!0};let g,v,y,x=[],I=[];const k=u.state.value[n];let w;function O(t){let e;g=v=!1,\\\\\\\"function\\\\\\\"==typeof t?(t(u.state.value[n]),e={type:Nt.patchFunction,storeId:n,events:y}):(ee(u.state.value[n],t),e={type:Nt.patchObject,payload:t,storeId:n,events:y});const o=w=Symbol();d().then((()=\\\\u003e{w===o\\\\u0026\\\\u0026(g=!0)})),v=!0,Zt(x,e,u.state.value[n])}h||k||(u.state.value[n]={}),e({});const S=h?function(){const{state:t}=c,e=t?t():{};this.$patch((t=\\\\u003e{oe(t,e)}))}:Xt;const L=(t,e=\\\\\\\"\\\\\\\")=\\\\u003e{if(Qt in t)return t[te]=e,t;const o=function(){Rt(u);const e=Array.from(arguments),i=[],r=[];let s;Zt(I,{args:e,name:o[te],store:C,after:function(t){i.push(t)},onError:function(t){r.push(t)}});try{s=t.apply(this\\\\u0026\\\\u0026this.$id===n?this:C,e)}catch(l){throw Zt(r,l),l}return s instanceof Promise?s.then((t=\\\\u003e(Zt(i,t),t))).catch((t=\\\\u003e(Zt(r,t),Promise.reject(t)))):(Zt(i,s),s)};return o[Qt]=!0,o[te]=e,o},$={_p:u,$id:n,$onAction:Yt.bind(null,I),$patch:O,$reset:S,$subscribe(t,e={}){const i=Yt(x,t,e.detached,(()=\\\\u003er())),r=f.run((()=\\\\u003eo((()=\\\\u003eu.state.value[n]),(o=\\\\u003e{(\\\\\\\"sync\\\\\\\"===e.flush?v:g)\\\\u0026\\\\u0026t({storeId:n,type:Nt.direct,events:y},o)}),oe({},m,e))));return i},$dispose:function(){f.stop(),x=[],I=[],u._s.delete(n)}},C=i($);u._s.set(n,C);const z=(u._a\\\\u0026\\\\u0026u._a.runWithContext||Jt)((()=\\\\u003eu._e.run((()=\\\\u003e(f=t()).run((()=\\\\u003ea({action:L})))))));for(const t in z){const e=z[t];if(r(e)\\\\u0026\\\\u0026(!r(T=e)||!T.effect)||s(e))h||(!k||Ut(E=e)\\\\u0026\\\\u0026E.hasOwnProperty(ne)||(r(e)?e.value=k[t]:ee(e,k[t])),u.state.value[n][t]=e);else if(\\\\\\\"function\\\\\\\"==typeof e){const n=L(e,t);z[t]=n,b.actions[t]=e}}var E,T;return oe(C,z),oe(l(C),z),Object.defineProperty(C,\\\\\\\"$state\\\\\\\",{get:()=\\\\u003eu.state.value[n],set:t=\\\\u003e{O((e=\\\\u003e{oe(e,t)}))}}),u._p.forEach((t=\\\\u003e{oe(C,f.run((()=\\\\u003et({store:C,app:u._a,pinia:u,options:b}))))})),k\\\\u0026\\\\u0026h\\\\u0026\\\\u0026c.hydrate\\\\u0026\\\\u0026c.hydrate(C.$state,k),g=!0,v=!0,C}function re(t,e,o){let i,r;const s=\\\\\\\"function\\\\\\\"==typeof e;function l(t,o){const l=b();(t=t||(l?p(Gt,null):null))\\\\u0026\\\\u0026Rt(t),(t=jt)._s.has(i)||(s?ie(i,e,r,t):function(t,e,o){const{state:i,actions:r,getters:s}=e,l=o.state.value[t];let a;a=ie(t,(function(){l||(o.state.value[t]=i?i():{});const e=h(o.state.value[t]);return oe(e,r,Object.keys(s||{}).reduce(((e,i)=\\\\u003e(e[i]=n(f((()=\\\\u003e{Rt(o);const e=o._s.get(t);return s[i].call(e,e)}))),e)),{}))}),e,o,0,!0)}(i,r,t));return t._s.get(i)}return\\\\\\\"string\\\\\\\"==typeof t?(i=t,r=s?o:e):(r=t,i=t.id),l.$id=i,l}function se(t){{t=l(t);const e={};for(const n in t){const o=t[n];(r(o)||s(o))\\\\u0026\\\\u0026(e[n]=a(t,n))}return e}}const le=\\\\\\\"undefined\\\\\\\"!=typeof navigator\\\\u0026\\\\u0026navigator.userAgent.toLowerCase().indexOf(\\\\\\\"firefox\\\\\\\")\\\\u003e0;function ae(t,e,n,o){t.addEventListener?t.addEventListener(e,n,o):t.attachEvent\\\\u0026\\\\u0026t.attachEvent(\\\\\\\"on\\\\\\\".concat(e),n)}function ce(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent\\\\u0026\\\\u0026t.detachEvent(\\\\\\\"on\\\\\\\".concat(e),n)}function ue(t,e){const n=e.slice(0,e.length-1);for(let o=0;o\\\\u003cn.length;o++)n[o]=t[n[o].toLowerCase()];return n}function de(t){\\\\\\\"string\\\\\\\"!=typeof t\\\\u0026\\\\u0026(t=\\\\\\\"\\\\\\\");const e=(t=t.replace(/\\\\\\\\s/g,\\\\\\\"\\\\\\\")).split(\\\\\\\",\\\\\\\");let n=e.lastIndexOf(\\\\\\\"\\\\\\\");for(;n\\\\u003e=0;)e[n-1]+=\\\\\\\",\\\\\\\",e.splice(n,1),n=e.lastIndexOf(\\\\\\\"\\\\\\\");return e}const pe={backspace:8,\\\\\\\"\\u232b\\\\\\\":8,tab:9,clear:12,enter:13,\\\\\\\"\\u21a9\\\\\\\":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,\\\\\\\"\\u21ea\\\\\\\":20,\\\\\\\",\\\\\\\":188,\\\\\\\".\\\\\\\":190,\\\\\\\"/\\\\\\\":191,\\\\\\\"`\\\\\\\":192,\\\\\\\"-\\\\\\\":le?173:189,\\\\\\\"=\\\\\\\":le?61:187,\\\\\\\";\\\\\\\":le?59:186,\\\\\\\"'\\\\\\\":222,\\\\\\\"[\\\\\\\":219,\\\\\\\"]\\\\\\\":221,\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\":220},he={\\\\\\\"\\u21e7\\\\\\\":16,shift:16,\\\\\\\"\\u2325\\\\\\\":18,alt:18,option:18,\\\\\\\"\\u2303\\\\\\\":17,ctrl:17,control:17,\\\\\\\"\\u2318\\\\\\\":91,cmd:91,command:91},fe={16:\\\\\\\"shiftKey\\\\\\\",18:\\\\\\\"altKey\\\\\\\",17:\\\\\\\"ctrlKey\\\\\\\",91:\\\\\\\"metaKey\\\\\\\",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},be={16:!1,18:!1,17:!1,91:!1},me={};for(let Oo=1;Oo\\\\u003c20;Oo++)pe[\\\\\\\"f\\\\\\\".concat(Oo)]=111+Oo;let ge=[],ve=null,ye=\\\\\\\"all\\\\\\\";const xe=new Map,Ie=t=\\\\u003epe[t.toLowerCase()]||he[t.toLowerCase()]||t.toUpperCase().charCodeAt(0);function ke(t){ye=t||\\\\\\\"all\\\\\\\"}function we(){return ye||\\\\\\\"all\\\\\\\"}function Oe(t){if(void 0===t)Object.keys(me).forEach((t=\\\\u003e{Array.isArray(me[t])\\\\u0026\\\\u0026me[t].forEach((t=\\\\u003eSe(t))),delete me[t]})),ze(null);else if(Array.isArray(t))t.forEach((t=\\\\u003e{t.key\\\\u0026\\\\u0026Se(t)}));else if(\\\\\\\"object\\\\\\\"==typeof t)t.key\\\\u0026\\\\u0026Se(t);else if(\\\\\\\"string\\\\\\\"==typeof t){for(var e=arguments.length,n=new Array(e\\\\u003e1?e-1:0),o=1;o\\\\u003ce;o++)n[o-1]=arguments[o];let[i,r]=n;\\\\\\\"function\\\\\\\"==typeof i\\\\u0026\\\\u0026(r=i,i=\\\\\\\"\\\\\\\"),Se({key:t,scope:i,method:r,splitKey:\\\\\\\"+\\\\\\\"})}}const Se=t=\\\\u003e{let{key:e,scope:n,method:o,splitKey:i=\\\\\\\"+\\\\\\\"}=t;de(e).forEach((t=\\\\u003e{const e=t.split(i),r=e.length,s=e[r-1],l=\\\\\\\"*\\\\\\\"===s?\\\\\\\"*\\\\\\\":Ie(s);if(!me[l])return;n||(n=we());const a=r\\\\u003e1?ue(he,e):[],c=[];me[l]=me[l].filter((t=\\\\u003e{const e=(!o||t.method===o)\\\\u0026\\\\u0026t.scope===n\\\\u0026\\\\u0026function(t,e){const n=t.length\\\\u003e=e.length?t:e,o=t.length\\\\u003e=e.length?e:t;let i=!0;for(let r=0;r\\\\u003cn.length;r++)-1===o.indexOf(n[r])\\\\u0026\\\\u0026(i=!1);return i}(t.mods,a);return e\\\\u0026\\\\u0026c.push(t.element),!e})),c.forEach((t=\\\\u003eze(t)))}))};function Le(t,e,n,o){if(e.element!==o)return;let i;if(e.scope===n||\\\\\\\"all\\\\\\\"===e.scope){i=e.mods.length\\\\u003e0;for(const t in be)Object.prototype.hasOwnProperty.call(be,t)\\\\u0026\\\\u0026(!be[t]\\\\u0026\\\\u0026e.mods.indexOf(+t)\\\\u003e-1||be[t]\\\\u0026\\\\u0026-1===e.mods.indexOf(+t))\\\\u0026\\\\u0026(i=!1);(0!==e.mods.length||be[16]||be[18]||be[17]||be[91])\\\\u0026\\\\u0026!i\\\\u0026\\\\u0026\\\\\\\"*\\\\\\\"!==e.shortcut||(e.keys=[],e.keys=e.keys.concat(ge),!1===e.method(t,e)\\\\u0026\\\\u0026(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation\\\\u0026\\\\u0026t.stopPropagation(),t.cancelBubble\\\\u0026\\\\u0026(t.cancelBubble=!0)))}}function $e(t,e){const n=me[\\\\\\\"*\\\\\\\"];let o=t.keyCode||t.which||t.charCode;if(!Ce.filter.call(this,t))return;if(93!==o\\\\u0026\\\\u0026224!==o||(o=91),-1===ge.indexOf(o)\\\\u0026\\\\u0026229!==o\\\\u0026\\\\u0026ge.push(o),[\\\\\\\"ctrlKey\\\\\\\",\\\\\\\"altKey\\\\\\\",\\\\\\\"shiftKey\\\\\\\",\\\\\\\"metaKey\\\\\\\"].forEach((e=\\\\u003e{const n=fe[e];t[e]\\\\u0026\\\\u0026-1===ge.indexOf(n)?ge.push(n):!t[e]\\\\u0026\\\\u0026ge.indexOf(n)\\\\u003e-1?ge.splice(ge.indexOf(n),1):\\\\\\\"metaKey\\\\\\\"===e\\\\u0026\\\\u0026t[e]\\\\u0026\\\\u00263===ge.length\\\\u0026\\\\u0026(t.ctrlKey||t.shiftKey||t.altKey||(ge=ge.slice(ge.indexOf(n))))})),o in be){be[o]=!0;for(const t in he)he[t]===o\\\\u0026\\\\u0026(Ce[t]=!0);if(!n)return}for(const l in be)Object.prototype.hasOwnProperty.call(be,l)\\\\u0026\\\\u0026(be[l]=t[fe[l]]);t.getModifierState\\\\u0026\\\\u0026(!t.altKey||t.ctrlKey)\\\\u0026\\\\u0026t.getModifierState(\\\\\\\"AltGraph\\\\\\\")\\\\u0026\\\\u0026(-1===ge.indexOf(17)\\\\u0026\\\\u0026ge.push(17),-1===ge.indexOf(18)\\\\u0026\\\\u0026ge.push(18),be[17]=!0,be[18]=!0);const i=we();if(n)for(let l=0;l\\\\u003cn.length;l++)n[l].scope===i\\\\u0026\\\\u0026(\\\\\\\"keydown\\\\\\\"===t.type\\\\u0026\\\\u0026n[l].keydown||\\\\\\\"keyup\\\\\\\"===t.type\\\\u0026\\\\u0026n[l].keyup)\\\\u0026\\\\u0026Le(t,n[l],i,e);if(!(o in me))return;const r=me[o],s=r.length;for(let l=0;l\\\\u003cs;l++)if((\\\\\\\"keydown\\\\\\\"===t.type\\\\u0026\\\\u0026r[l].keydown||\\\\\\\"keyup\\\\\\\"===t.type\\\\u0026\\\\u0026r[l].keyup)\\\\u0026\\\\u0026r[l].key){const n=r[l],{splitKey:o}=n,s=n.key.split(o),a=[];for(let t=0;t\\\\u003cs.length;t++)a.push(Ie(s[t]));a.sort().join(\\\\\\\"\\\\\\\")===ge.sort().join(\\\\\\\"\\\\\\\")\\\\u0026\\\\u0026Le(t,n,i,e)}}function Ce(t,e,n){ge=[];const o=de(t);let i=[],r=\\\\\\\"all\\\\\\\",s=document,l=0,a=!1,c=!0,u=\\\\\\\"+\\\\\\\",d=!1,p=!1;for(void 0===n\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof e\\\\u0026\\\\u0026(n=e),\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(e)\\\\u0026\\\\u0026(e.scope\\\\u0026\\\\u0026(r=e.scope),e.element\\\\u0026\\\\u0026(s=e.element),e.keyup\\\\u0026\\\\u0026(a=e.keyup),void 0!==e.keydown\\\\u0026\\\\u0026(c=e.keydown),void 0!==e.capture\\\\u0026\\\\u0026(d=e.capture),\\\\\\\"string\\\\\\\"==typeof e.splitKey\\\\u0026\\\\u0026(u=e.splitKey),!0===e.single\\\\u0026\\\\u0026(p=!0)),\\\\\\\"string\\\\\\\"==typeof e\\\\u0026\\\\u0026(r=e),p\\\\u0026\\\\u0026Oe(t,r);l\\\\u003co.length;l++)i=[],(t=o[l].split(u)).length\\\\u003e1\\\\u0026\\\\u0026(i=ue(he,t)),(t=\\\\\\\"*\\\\\\\"===(t=t[t.length-1])?\\\\\\\"*\\\\\\\":Ie(t))in me||(me[t]=[]),me[t].push({keyup:a,keydown:c,scope:r,mods:i,shortcut:o[l],method:n,key:o[l],splitKey:u,element:s});if(void 0!==s\\\\u0026\\\\u0026window){if(!xe.has(s)){const t=function(){return $e(arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:window.event,s)},e=function(){let t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:window.event;$e(t,s),function(t){let e=t.keyCode||t.which||t.charCode;const n=ge.indexOf(e);if(n\\\\u003e=0\\\\u0026\\\\u0026ge.splice(n,1),t.key\\\\u0026\\\\u0026\\\\\\\"meta\\\\\\\"===t.key.toLowerCase()\\\\u0026\\\\u0026ge.splice(0,ge.length),93!==e\\\\u0026\\\\u0026224!==e||(e=91),e in be){be[e]=!1;for(const t in he)he[t]===e\\\\u0026\\\\u0026(Ce[t]=!1)}}(t)};xe.set(s,{keydownListener:t,keyupListenr:e,capture:d}),ae(s,\\\\\\\"keydown\\\\\\\",t,d),ae(s,\\\\\\\"keyup\\\\\\\",e,d)}if(!ve){const t=()=\\\\u003e{ge=[]};ve={listener:t,capture:d},ae(window,\\\\\\\"focus\\\\\\\",t,d)}}}function ze(t){const e=Object.values(me).flat();if(e.findIndex((e=\\\\u003e{let{element:n}=e;return n===t}))\\\\u003c0){const{keydownListener:e,keyupListenr:n,capture:o}=xe.get(t)||{};e\\\\u0026\\\\u0026n\\\\u0026\\\\u0026(ce(t,\\\\\\\"keyup\\\\\\\",n,o),ce(t,\\\\\\\"keydown\\\\\\\",e,o),xe.delete(t))}if(e.length\\\\u003c=0||xe.size\\\\u003c=0){if(Object.keys(xe).forEach((t=\\\\u003e{const{keydownListener:e,keyupListenr:n,capture:o}=xe.get(t)||{};e\\\\u0026\\\\u0026n\\\\u0026\\\\u0026(ce(t,\\\\\\\"keyup\\\\\\\",n,o),ce(t,\\\\\\\"keydown\\\\\\\",e,o),xe.delete(t))})),xe.clear(),Object.keys(me).forEach((t=\\\\u003edelete me[t])),ve){const{listener:t,capture:e}=ve;ce(window,\\\\\\\"focus\\\\\\\",t,e),ve=null}}}const Ee={getPressedKeyString:function(){return ge.map((t=\\\\u003e{return e=t,Object.keys(pe).find((t=\\\\u003epe[t]===e))||(t=\\\\u003eObject.keys(he).find((e=\\\\u003ehe[e]===t)))(t)||String.fromCharCode(t);var e}))},setScope:ke,getScope:we,deleteScope:function(t,e){let n,o;t||(t=we());for(const i in me)if(Object.prototype.hasOwnProperty.call(me,i))for(n=me[i],o=0;o\\\\u003cn.length;)if(n[o].scope===t){n.splice(o,1).forEach((t=\\\\u003e{let{element:e}=t;return ze(e)}))}else o++;we()===t\\\\u0026\\\\u0026ke(e||\\\\\\\"all\\\\\\\")},getPressedKeyCodes:function(){return ge.slice(0)},getAllKeyCodes:function(){const t=[];return Object.keys(me).forEach((e=\\\\u003e{me[e].forEach((e=\\\\u003e{let{key:n,scope:o,mods:i,shortcut:r}=e;t.push({scope:o,shortcut:r,mods:i,keys:n.split(\\\\\\\"+\\\\\\\").map((t=\\\\u003eIe(t)))})}))})),t},isPressed:function(t){return\\\\\\\"string\\\\\\\"==typeof t\\\\u0026\\\\u0026(t=Ie(t)),-1!==ge.indexOf(t)},filter:function(t){const e=t.target||t.srcElement,{tagName:n}=e;let o=!0;const i=\\\\\\\"INPUT\\\\\\\"===n\\\\u0026\\\\u0026![\\\\\\\"checkbox\\\\\\\",\\\\\\\"radio\\\\\\\",\\\\\\\"range\\\\\\\",\\\\\\\"button\\\\\\\",\\\\\\\"file\\\\\\\",\\\\\\\"reset\\\\\\\",\\\\\\\"submit\\\\\\\",\\\\\\\"color\\\\\\\"].includes(e.type);return(e.isContentEditable||(i||\\\\\\\"TEXTAREA\\\\\\\"===n||\\\\\\\"SELECT\\\\\\\"===n)\\\\u0026\\\\u0026!e.readOnly)\\\\u0026\\\\u0026(o=!1),o},trigger:function(t){let e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:\\\\\\\"all\\\\\\\";Object.keys(me).forEach((n=\\\\u003e{me[n].filter((n=\\\\u003en.scope===e\\\\u0026\\\\u0026n.shortcut===t)).forEach((t=\\\\u003e{t\\\\u0026\\\\u0026t.method\\\\u0026\\\\u0026t.method()}))}))},unbind:Oe,keyMap:pe,modifier:he,modifierMap:fe};for(const Oo in Ee)Object.prototype.hasOwnProperty.call(Ee,Oo)\\\\u0026\\\\u0026(Ce[Oo]=Ee[Oo]);if(\\\\\\\"undefined\\\\\\\"!=typeof window){const t=window.hotkeys;Ce.noConflict=e=\\\\u003e(e\\\\u0026\\\\u0026window.hotkeys===Ce\\\\u0026\\\\u0026(window.hotkeys=t),Ce),window.hotkeys=Ce}var Te={root:function(t){var e=t.props,n=t.instance;return[\\\\\\\"p-badge p-component\\\\\\\",{\\\\\\\"p-badge-circle\\\\\\\":K(e.value)\\\\u0026\\\\u00261===String(e.value).length,\\\\\\\"p-badge-dot\\\\\\\":D(e.value)\\\\u0026\\\\u0026!n.$slots.default,\\\\\\\"p-badge-sm\\\\\\\":\\\\\\\"small\\\\\\\"===e.size,\\\\\\\"p-badge-lg\\\\\\\":\\\\\\\"large\\\\\\\"===e.size,\\\\\\\"p-badge-xl\\\\\\\":\\\\\\\"xlarge\\\\\\\"===e.size,\\\\\\\"p-badge-info\\\\\\\":\\\\\\\"info\\\\\\\"===e.severity,\\\\\\\"p-badge-success\\\\\\\":\\\\\\\"success\\\\\\\"===e.severity,\\\\\\\"p-badge-warn\\\\\\\":\\\\\\\"warn\\\\\\\"===e.severity,\\\\\\\"p-badge-danger\\\\\\\":\\\\\\\"danger\\\\\\\"===e.severity,\\\\\\\"p-badge-secondary\\\\\\\":\\\\\\\"secondary\\\\\\\"===e.severity,\\\\\\\"p-badge-contrast\\\\\\\":\\\\\\\"contrast\\\\\\\"===e.severity}]}},_e=St.extend({name:\\\\\\\"badge\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-badge {\\\\\\\\n    display: inline-flex;\\\\\\\\n    border-radius: \\\\\\\".concat(e(\\\\\\\"badge.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"badge.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.primary.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"badge.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"badge.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.min.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-dot {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"badge.dot.size\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.dot.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.dot.size\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: 50%;\\\\\\\\n    padding: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-circle {\\\\\\\\n    padding: 0;\\\\\\\\n    border-radius: 50%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-secondary {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.secondary.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-success {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.success.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-info {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.info.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-warn {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.warn.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-danger {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.danger.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-contrast {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"badge.contrast.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"badge.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-sm {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"badge.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.sm.min.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.sm.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-lg {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"badge.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.lg.min.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.lg.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-badge-xl {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"badge.xl.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"badge.xl.min.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"badge.xl.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:Te}),Me={name:\\\\\\\"Badge\\\\\\\",extends:{name:\\\\\\\"BaseBadge\\\\\\\",extends:Lt,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:_e,provide:function(){return{$pcBadge:this,$parentInstance:this}}},inheritAttrs:!1};Me.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\")},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\",{},(function(){return[y(x(t.value),1)]}))],16)};var Ve=St.extend({name:\\\\\\\"ripple-directive\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-ink {\\\\\\\\n    display: block;\\\\\\\\n    position: absolute;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"ripple.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: 100%;\\\\\\\\n    transform: scale(0);\\\\\\\\n    pointer-events: none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-ink-active {\\\\\\\\n    animation: ripple 0.4s linear;\\\\\\\\n}\\\\\\\\n\\\\\\\\n@keyframes ripple {\\\\\\\\n    100% {\\\\\\\\n        opacity: 0;\\\\\\\\n        transform: scale(2.5);\\\\\\\\n    }\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-ink\\\\\\\"}});function Pe(t){return(Pe=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function Fe(t){return function(t){if(Array.isArray(t))return Ae(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return Ae(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function Ae(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}function Ke(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Pe(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Pe(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var De=$t.extend({style:Ve}).extend(\\\\\\\"ripple\\\\\\\",{watch:{\\\\\\\"config.ripple\\\\\\\":function(t){t?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute(\\\\\\\"data-pd-ripple\\\\\\\",!0),this.$host.style.overflow=\\\\\\\"hidden\\\\\\\",this.$host.style.position=\\\\\\\"relative\\\\\\\"):(this.remove(this.$host),this.$host.removeAttribute(\\\\\\\"data-pd-ripple\\\\\\\"))}},unmounted:function(t){this.remove(t)},timeout:void 0,methods:{bindEvents:function(t){t.addEventListener(\\\\\\\"mousedown\\\\\\\",this.onMouseDown.bind(this))},unbindEvents:function(t){t.removeEventListener(\\\\\\\"mousedown\\\\\\\",this.onMouseDown.bind(this))},createRipple:function(t){var e=B(\\\\\\\"span\\\\\\\",Ke(Ke({role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":!0,\\\\\\\"data-p-ink\\\\\\\":!0,\\\\\\\"data-p-ink-active\\\\\\\":!1,class:!this.isUnstyled()\\\\u0026\\\\u0026this.cx(\\\\\\\"root\\\\\\\"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,\\\\\\\"\\\\\\\"),\\\\\\\"p-bind\\\\\\\",this.ptm(\\\\\\\"root\\\\\\\")));t.appendChild(e),this.$el=e},remove:function(t){var e=this.getInk(t);e\\\\u0026\\\\u0026(this.$host.style.overflow=\\\\\\\"\\\\\\\",this.$host.style.position=\\\\\\\"\\\\\\\",this.unbindEvents(t),e.removeEventListener(\\\\\\\"animationend\\\\\\\",this.onAnimationEnd),e.remove())},onMouseDown:function(t){var e=this,n=t.currentTarget,o=this.getInk(n);if(o\\\\u0026\\\\u0026\\\\\\\"none\\\\\\\"!==getComputedStyle(o,null).display){if(!this.isUnstyled()\\\\u0026\\\\u0026H(o,\\\\\\\"p-ink-active\\\\\\\"),o.setAttribute(\\\\\\\"data-p-ink-active\\\\\\\",\\\\\\\"false\\\\\\\"),!j(o)\\\\u0026\\\\u0026!R(o)){var i=Math.max(G(n),U(n));o.style.height=i+\\\\\\\"px\\\\\\\",o.style.width=i+\\\\\\\"px\\\\\\\"}var r=N(n),s=t.pageX-r.left+document.body.scrollTop-R(o)/2,l=t.pageY-r.top+document.body.scrollLeft-j(o)/2;o.style.top=l+\\\\\\\"px\\\\\\\",o.style.left=s+\\\\\\\"px\\\\\\\",!this.isUnstyled()\\\\u0026\\\\u0026W(o,\\\\\\\"p-ink-active\\\\\\\"),o.setAttribute(\\\\\\\"data-p-ink-active\\\\\\\",\\\\\\\"true\\\\\\\"),this.timeout=setTimeout((function(){o\\\\u0026\\\\u0026(!e.isUnstyled()\\\\u0026\\\\u0026H(o,\\\\\\\"p-ink-active\\\\\\\"),o.setAttribute(\\\\\\\"data-p-ink-active\\\\\\\",\\\\\\\"false\\\\\\\"))}),401)}},onAnimationEnd:function(t){this.timeout\\\\u0026\\\\u0026clearTimeout(this.timeout),!this.isUnstyled()\\\\u0026\\\\u0026H(t.currentTarget,\\\\\\\"p-ink-active\\\\\\\"),t.currentTarget.setAttribute(\\\\\\\"data-p-ink-active\\\\\\\",\\\\\\\"false\\\\\\\")},getInk:function(t){return t\\\\u0026\\\\u0026t.children?Fe(t.children).find((function(t){return\\\\\\\"ripple\\\\\\\"===q(t,\\\\\\\"data-pc-name\\\\\\\")})):void 0}}});function Be(t){return(Be=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function He(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Be(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Be(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Be(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var je={root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-button p-component\\\\\\\",He(He(He(He(He(He(He(He(He({\\\\\\\"p-button-icon-only\\\\\\\":e.hasIcon\\\\u0026\\\\u0026!n.label\\\\u0026\\\\u0026!n.badge,\\\\\\\"p-button-vertical\\\\\\\":(\\\\\\\"top\\\\\\\"===n.iconPos||\\\\\\\"bottom\\\\\\\"===n.iconPos)\\\\u0026\\\\u0026n.label,\\\\\\\"p-button-loading\\\\\\\":n.loading,\\\\\\\"p-button-link\\\\\\\":n.link||\\\\\\\"link\\\\\\\"===n.variant},\\\\\\\"p-button-\\\\\\\".concat(n.severity),n.severity),\\\\\\\"p-button-raised\\\\\\\",n.raised),\\\\\\\"p-button-rounded\\\\\\\",n.rounded),\\\\\\\"p-button-text\\\\\\\",n.text||\\\\\\\"text\\\\\\\"===n.variant),\\\\\\\"p-button-outlined\\\\\\\",n.outlined||\\\\\\\"outlined\\\\\\\"===n.variant),\\\\\\\"p-button-sm\\\\\\\",\\\\\\\"small\\\\\\\"===n.size),\\\\\\\"p-button-lg\\\\\\\",\\\\\\\"large\\\\\\\"===n.size),\\\\\\\"p-button-plain\\\\\\\",n.plain),\\\\\\\"p-button-fluid\\\\\\\",e.hasFluid)]},loadingIcon:\\\\\\\"p-button-loading-icon\\\\\\\",icon:function(t){var e=t.props;return[\\\\\\\"p-button-icon\\\\\\\",He({},\\\\\\\"p-button-icon-\\\\\\\".concat(e.iconPos),e.label)]},label:\\\\\\\"p-button-label\\\\\\\"},Re=St.extend({name:\\\\\\\"button\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-button {\\\\\\\\n    display: inline-flex;\\\\\\\\n    cursor: pointer;\\\\\\\\n    user-select: none;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    overflow: hidden;\\\\\\\\n    position: relative;\\\\\\\\n    color: \\\\\\\".concat(e(\\\\\\\"button.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.primary.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.primary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"button.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: 1rem;\\\\\\\\n    font-family: inherit;\\\\\\\\n    font-feature-settings: inherit;\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n            outline-color \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"button.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"button.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"button.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:disabled {\\\\\\\\n    cursor: default;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-right {\\\\\\\\n    order: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-right:dir(rtl) {\\\\\\\\n    order: -1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {\\\\\\\\n    order: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-bottom {\\\\\\\\n    order: 2;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-only {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"button.icon.only.width\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline-start: 0;\\\\\\\\n    padding-inline-end: 0;\\\\\\\\n    gap: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-only.p-button-rounded {\\\\\\\\n    border-radius: 50%;\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"button.icon.only.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-icon-only .p-button-label {\\\\\\\\n    visibility: hidden;\\\\\\\\n    width: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-sm {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"button.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"button.sm.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.sm.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-sm .p-button-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"button.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-lg {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"button.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"button.lg.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.lg.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-lg .p-button-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"button.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-vertical {\\\\\\\\n    flex-direction: column;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-label {\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"button.label.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-fluid {\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-fluid.p-button-icon-only {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"button.icon.only.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.primary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.primary.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.primary.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.primary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.primary.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.primary.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button:focus-visible {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.primary.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"button.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"button.primary.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"button.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button .p-badge {\\\\\\\\n    min-width: \\\\\\\").concat(e(\\\\\\\"button.badge.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"button.badge.size\\\\\\\"),\\\\\\\";\\\\\\\\n    line-height: \\\\\\\").concat(e(\\\\\\\"button.badge.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-raised {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.raised.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-rounded {\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"button.rounded.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-secondary {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.secondary.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.secondary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-secondary:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.secondary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.secondary.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.secondary.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-secondary:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.secondary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.secondary.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.secondary.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-secondary:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.secondary.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.secondary.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-success {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.success.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.success.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-success:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.success.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.success.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.success.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-success:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.success.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.success.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.success.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-success:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.success.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.success.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-info {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.info.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.info.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-info:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.info.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.info.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.info.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-info:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.info.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.info.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.info.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-info:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.info.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.info.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-warn {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.warn.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.warn.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-warn:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.warn.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.warn.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.warn.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-warn:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.warn.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.warn.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.warn.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-warn:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.warn.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.warn.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-help {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.help.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.help.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-help:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.help.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.help.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.help.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-help:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.help.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.help.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.help.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-help:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.help.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.help.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-danger {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.danger.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.danger.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-danger:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.danger.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.danger.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.danger.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-danger:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.danger.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.danger.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.danger.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-danger:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.danger.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.danger.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-contrast {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.contrast.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.contrast.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-contrast:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.contrast.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.contrast.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.contrast.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-contrast:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.contrast.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"button.contrast.active.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.contrast.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-contrast:focus-visible {\\\\\\\\n    outline-color: \\\\\\\").concat(e(\\\\\\\"button.contrast.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"button.contrast.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-secondary {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-secondary:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-secondary:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-success {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-success:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-success:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-info {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-info:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-info:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-warn {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-warn:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-warn:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-help {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-help:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-help:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-danger {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-danger:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-danger:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-contrast {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-contrast:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-contrast:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-plain {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-plain:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-outlined.p-button-plain:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.outlined.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.primary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.primary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.primary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-secondary {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-secondary:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-secondary:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.secondary.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-success {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-success:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.success.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-success:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.success.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.success.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-info {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-info:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.info.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-info:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.info.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.info.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-warn {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-warn:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.warn.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-warn:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.warn.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.warn.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-help {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-help:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.help.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-help:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.help.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.help.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-danger {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-danger:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.danger.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-danger:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.danger.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.danger.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-contrast {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-contrast:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-contrast:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.contrast.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-plain {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-plain:not(:disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.plain.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-text.p-button-plain:not(:disabled):active {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"button.text.plain.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.text.plain.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-link {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.link.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-link:not(:disabled):hover {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.link.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-link:not(:disabled):hover .p-button-label {\\\\\\\\n    text-decoration: underline;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-button-link:not(:disabled):active {\\\\\\\\n    background: transparent;\\\\\\\\n    border-color: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"button.link.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:je}),Ge={name:\\\\\\\"Button\\\\\\\",extends:{name:\\\\\\\"BaseButton\\\\\\\",extends:Lt,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:\\\\\\\"left\\\\\\\"},iconClass:{type:[String,Object],default:null},badge:{type:String,default:null},badgeClass:{type:[String,Object],default:null},badgeSeverity:{type:String,default:\\\\\\\"secondary\\\\\\\"},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},as:{type:[String,Object],default:\\\\\\\"BUTTON\\\\\\\"},asChild:{type:Boolean,default:!1},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},variant:{type:String,default:null},plain:{type:Boolean,default:!1},fluid:{type:Boolean,default:null}},style:Re,provide:function(){return{$pcButton:this,$parentInstance:this}}},inheritAttrs:!1,inject:{$pcFluid:{default:null}},methods:{getPTOptions:function(t){return(\\\\\\\"root\\\\\\\"===t?this.ptmi:this.ptm)(t,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||\\\\\\\"\\\\\\\"===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?\\\\\\\" \\\\\\\"+this.badge:\\\\\\\"\\\\\\\"):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon},attrs:function(){return I(this.asAttrs,this.a11yAttrs,this.getPTOptions(\\\\\\\"root\\\\\\\"))},asAttrs:function(){return\\\\\\\"BUTTON\\\\\\\"===this.as?{type:\\\\\\\"button\\\\\\\",disabled:this.disabled}:void 0},a11yAttrs:function(){return{\\\\\\\"aria-label\\\\\\\":this.defaultAriaLabel,\\\\\\\"data-pc-name\\\\\\\":\\\\\\\"button\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\":this.disabled,\\\\\\\"data-p-severity\\\\\\\":this.severity}},hasFluid:function(){return D(this.fluid)?!!this.$pcFluid:this.fluid}},components:{SpinnerIcon:Ct,Badge:Me},directives:{ripple:De}};Ge.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"SpinnerIcon\\\\\\\"),l=k(\\\\\\\"Badge\\\\\\\"),a=w(\\\\\\\"ripple\\\\\\\");return t.asChild?v(t.$slots,\\\\\\\"default\\\\\\\",{key:1,class:z(t.cx(\\\\\\\"root\\\\\\\")),a11yAttrs:r.a11yAttrs}):O((m(),S(E(t.as),I({key:0,class:t.cx(\\\\\\\"root\\\\\\\")},r.attrs),{default:L((function(){return[v(t.$slots,\\\\\\\"default\\\\\\\",{},(function(){return[t.loading?v(t.$slots,\\\\\\\"loadingicon\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),t.cx(\\\\\\\"icon\\\\\\\")]},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),(function(){return[t.loadingIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),t.cx(\\\\\\\"icon\\\\\\\"),t.loadingIcon]},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16)):(m(),S(s,I({key:1,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),t.cx(\\\\\\\"icon\\\\\\\")],spin:\\\\\\\"\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]})):v(t.$slots,\\\\\\\"icon\\\\\\\",I({key:1,class:[t.cx(\\\\\\\"icon\\\\\\\")]},t.ptm(\\\\\\\"icon\\\\\\\")),(function(){return[t.icon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"icon\\\\\\\"),t.icon,t.iconClass]},t.ptm(\\\\\\\"icon\\\\\\\")),null,16)):$(\\\\\\\"\\\\\\\",!0)]})),C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"label\\\\\\\")},t.ptm(\\\\\\\"label\\\\\\\")),x(t.label||\\\\\\\"\\u00a0\\\\\\\"),17),t.badge?(m(),S(l,{key:2,value:t.badge,class:z(t.badgeClass),severity:t.badgeSeverity,unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcBadge\\\\\\\")},null,8,[\\\\\\\"value\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"severity\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)]}))]})),_:3},16,[\\\\\\\"class\\\\\\\"])),[[a]])};var Ue={name:\\\\\\\"IconField\\\\\\\",extends:{name:\\\\\\\"BaseIconField\\\\\\\",extends:Lt,style:St.extend({name:\\\\\\\"iconfield\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-iconfield {\\\\\\\\n    position: relative;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputicon {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 50%;\\\\\\\\n    margin-top: calc(-1 * (\\\\\\\".concat(e(\\\\\\\"icon.size\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"iconfield.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    line-height: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield .p-inputicon:first-child {\\\\\\\\n    inset-inline-start: \\\\\\\").concat(e(\\\\\\\"form.field.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield .p-inputicon:last-child {\\\\\\\\n    inset-inline-end: \\\\\\\").concat(e(\\\\\\\"form.field.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield .p-inputtext:not(:first-child) {\\\\\\\\n    padding-inline-start: calc((\\\\\\\").concat(e(\\\\\\\"form.field.padding.x\\\\\\\"),\\\\\\\" * 2) + \\\\\\\").concat(e(\\\\\\\"icon.size\\\\\\\"),\\\\\\\");\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield .p-inputtext:not(:last-child) {\\\\\\\\n    padding-inline-end: calc((\\\\\\\").concat(e(\\\\\\\"form.field.padding.x\\\\\\\"),\\\\\\\" * 2) + \\\\\\\").concat(e(\\\\\\\"icon.size\\\\\\\"),\\\\\\\");\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield:has(.p-inputfield-sm) .p-inputicon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"form.field.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"form.field.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"form.field.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-top: calc(-1 * (\\\\\\\").concat(e(\\\\\\\"form.field.sm.font.size\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-iconfield:has(.p-inputfield-lg) .p-inputicon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"form.field.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"form.field.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"form.field.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-top: calc(-1 * (\\\\\\\").concat(e(\\\\\\\"form.field.lg.font.size\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-iconfield\\\\\\\"}}),provide:function(){return{$pcIconField:this,$parentInstance:this}}},inheritAttrs:!1};Ue.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\")},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\")],16)};var Ne={name:\\\\\\\"InputIcon\\\\\\\",extends:{name:\\\\\\\"BaseInputIcon\\\\\\\",extends:Lt,style:St.extend({name:\\\\\\\"inputicon\\\\\\\",classes:{root:\\\\\\\"p-inputicon\\\\\\\"}}),props:{class:null},provide:function(){return{$pcInputIcon:this,$parentInstance:this}}},inheritAttrs:!1,computed:{containerClass:function(){return[this.cx(\\\\\\\"root\\\\\\\"),this.class]}}};Ne.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"span\\\\\\\",I({class:r.containerClass},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\")],16)};var We={name:\\\\\\\"InputText\\\\\\\",extends:{name:\\\\\\\"BaseInputText\\\\\\\",extends:zt,style:St.extend({name:\\\\\\\"inputtext\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-inputtext {\\\\\\\\n    font-family: inherit;\\\\\\\\n    font-feature-settings: inherit;\\\\\\\\n    font-size: 1rem;\\\\\\\\n    color: \\\\\\\".concat(e(\\\\\\\"inputtext.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.background\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"inputtext.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"inputtext.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"inputtext.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"inputtext.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    appearance: none;\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"inputtext.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"inputtext.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext:enabled:hover {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"inputtext.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext:enabled:focus {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"inputtext.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"inputtext.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-invalid {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"inputtext.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-variant-filled {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.filled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-variant-filled:enabled:hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.filled.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-variant-filled:enabled:focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.filled.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext:disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"inputtext.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"inputtext.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext::placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"inputtext.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext.p-invalid::placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"inputtext.invalid.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext-sm {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"inputtext.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"inputtext.sm.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"inputtext.sm.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext-lg {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"inputtext.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"inputtext.lg.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"inputtext.lg.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-inputtext-fluid {\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-inputtext p-component\\\\\\\",{\\\\\\\"p-filled\\\\\\\":e.$filled,\\\\\\\"p-inputtext-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-inputtext-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-variant-filled\\\\\\\":\\\\\\\"filled\\\\\\\"===e.$variant,\\\\\\\"p-inputtext-fluid\\\\\\\":e.$fluid}]}}}),provide:function(){return{$pcInputText:this,$parentInstance:this}}},inheritAttrs:!1,methods:{onInput:function(t){this.writeValue(t.target.value,t)}},computed:{attrs:function(){return I(this.ptmi(\\\\\\\"root\\\\\\\",{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)}}},qe=[\\\\\\\"value\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"aria-invalid\\\\\\\"];We.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"input\\\\\\\",I({type:\\\\\\\"text\\\\\\\",class:t.cx(\\\\\\\"root\\\\\\\"),value:t.d_value,disabled:t.disabled,\\\\\\\"aria-invalid\\\\\\\":t.$invalid||void 0,onInput:e[0]||(e[0]=function(){return r.onInput\\\\u0026\\\\u0026r.onInput.apply(r,arguments)})},r.attrs),null,16,qe)};var Xe=X(),Ye={name:\\\\\\\"Portal\\\\\\\",props:{appendTo:{type:[String,Object],default:\\\\\\\"body\\\\\\\"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=Y()},computed:{inline:function(){return this.disabled||\\\\\\\"self\\\\\\\"===this.appendTo}}};Ye.render=function(t,e,n,o,i,r){return r.inline?v(t.$slots,\\\\\\\"default\\\\\\\",{key:0}):i.mounted?(m(),S(T,{key:1,to:n.appendTo},[v(t.$slots,\\\\\\\"default\\\\\\\")],8,[\\\\\\\"to\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)};var Ze=St.extend({name:\\\\\\\"virtualscroller\\\\\\\",css:\\\\\\\"\\\\\\\\n.p-virtualscroller {\\\\\\\\n    position: relative;\\\\\\\\n    overflow: auto;\\\\\\\\n    contain: strict;\\\\\\\\n    transform: translateZ(0);\\\\\\\\n    will-change: scroll-position;\\\\\\\\n    outline: 0 none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-content {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    min-height: 100%;\\\\\\\\n    min-width: 100%;\\\\\\\\n    will-change: transform;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-spacer {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    height: 1px;\\\\\\\\n    width: 1px;\\\\\\\\n    transform-origin: 0 0;\\\\\\\\n    pointer-events: none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-loader {\\\\\\\\n    position: sticky;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    width: 100%;\\\\\\\\n    height: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-loader-mask {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-horizontal \\\\u003e .p-virtualscroller-content {\\\\\\\\n    display: flex;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-inline .p-virtualscroller-content {\\\\\\\\n    position: static;\\\\\\\\n}\\\\\\\\n\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-virtualscroller-loader {\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"virtualscroller.loader.mask.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"virtualscroller.loader.mask.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-virtualscroller-loading-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"virtualscroller.loader.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"virtualscroller.loader.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"virtualscroller.loader.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")}});function Je(t){return(Je=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function Qe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\\\u0026\\\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function tn(t){for(var e=1;e\\\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qe(Object(n),!0).forEach((function(e){en(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function en(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Je(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Je(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nn={name:\\\\\\\"VirtualScroller\\\\\\\",extends:{name:\\\\\\\"BaseVirtualScroller\\\\\\\",extends:Lt,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:\\\\\\\"vertical\\\\\\\"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:Ze,provide:function(){return{$pcVirtualScroller:this,$parentInstance:this}},beforeMount:function(){var t;Ze.loadCSS({nonce:null===(t=this.$primevueConfig)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce})}},inheritAttrs:!1,emits:[\\\\\\\"update:numToleratedItems\\\\\\\",\\\\\\\"scroll\\\\\\\",\\\\\\\"scroll-index-change\\\\\\\",\\\\\\\"lazy-load\\\\\\\"],data:function(){var t=this.isBoth();return{first:t?{rows:0,cols:0}:0,last:t?{rows:0,cols:0}:0,page:t?{rows:0,cols:0}:0,numItemsInViewport:t?{rows:0,cols:0}:0,lastScrollPos:t?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(t){this.d_numToleratedItems=t},loading:function(t,e){this.lazy\\\\u0026\\\\u0026t!==e\\\\u0026\\\\u0026t!==this.d_loading\\\\u0026\\\\u0026(this.d_loading=t)},items:function(t,e){e\\\\u0026\\\\u0026e.length===(t||[]).length||(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized\\\\u0026\\\\u0026this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){Z(this.element)\\\\u0026\\\\u0026(this.setContentEl(this.content),this.init(),this.calculateAutoSize(),this.bindResizeListener(),this.defaultWidth=R(this.element),this.defaultHeight=j(this.element),this.defaultContentWidth=R(this.content),this.defaultContentHeight=j(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return\\\\\\\"vertical\\\\\\\"===this.orientation},isHorizontal:function(){return\\\\\\\"horizontal\\\\\\\"===this.orientation},isBoth:function(){return\\\\\\\"both\\\\\\\"===this.orientation},scrollTo:function(t){this.element\\\\u0026\\\\u0026this.element.scrollTo(t)},scrollToIndex:function(t){var e=this,n=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:\\\\\\\"auto\\\\\\\",o=this.isBoth(),i=this.isHorizontal();if(o?t.every((function(t){return t\\\\u003e-1})):t\\\\u003e-1){var r=this.first,s=this.element,l=s.scrollTop,a=void 0===l?0:l,c=s.scrollLeft,u=void 0===c?0:c,d=this.calculateNumItems().numToleratedItems,p=this.getContentPosition(),h=this.itemSize,f=function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0;return t\\\\u003c=(arguments.length\\\\u003e1?arguments[1]:void 0)?0:t},b=function(t,e,n){return t*e+n},m=function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0,o=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:0;return e.scrollTo({left:t,top:o,behavior:n})},g=o?{rows:0,cols:0}:0,v=!1,y=!1;o?(m(b((g={rows:f(t[0],d[0]),cols:f(t[1],d[1])}).cols,h[1],p.left),b(g.rows,h[0],p.top)),y=this.lastScrollPos.top!==a||this.lastScrollPos.left!==u,v=g.rows!==r.rows||g.cols!==r.cols):(g=f(t,d),i?m(b(g,h,p.left),a):m(u,b(g,h,p.top)),y=this.lastScrollPos!==(i?u:a),v=g!==r),this.isRangeChanged=v,y\\\\u0026\\\\u0026(this.first=g)}},scrollInView:function(t,e){var n=this,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]?arguments[2]:\\\\\\\"auto\\\\\\\";if(e){var i=this.isBoth(),r=this.isHorizontal();if(i?t.every((function(t){return t\\\\u003e-1})):t\\\\u003e-1){var s=this.getRenderedRange(),l=s.first,a=s.viewport,c=function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0,e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:0;return n.scrollTo({left:t,top:e,behavior:o})},u=\\\\\\\"to-end\\\\\\\"===e;if(\\\\\\\"to-start\\\\\\\"===e){if(i)a.first.rows-l.rows\\\\u003et[0]?c(a.first.cols*this.itemSize[1],(a.first.rows-1)*this.itemSize[0]):a.first.cols-l.cols\\\\u003et[1]\\\\u0026\\\\u0026c((a.first.cols-1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.first-l\\\\u003et){var d=(a.first-1)*this.itemSize;r?c(d,0):c(0,d)}}else if(u)if(i)a.last.rows-l.rows\\\\u003c=t[0]+1?c(a.first.cols*this.itemSize[1],(a.first.rows+1)*this.itemSize[0]):a.last.cols-l.cols\\\\u003c=t[1]+1\\\\u0026\\\\u0026c((a.first.cols+1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.last-l\\\\u003c=t+1){var p=(a.first+1)*this.itemSize;r?c(p,0):c(0,p)}}}else this.scrollToIndex(t,o)},getRenderedRange:function(){var t=function(t,e){return Math.floor(t/(e||t))},e=this.first,n=0;if(this.element){var o=this.isBoth(),i=this.isHorizontal(),r=this.element,s=r.scrollTop,l=r.scrollLeft;if(o)n={rows:(e={rows:t(s,this.itemSize[0]),cols:t(l,this.itemSize[1])}).rows+this.numItemsInViewport.rows,cols:e.cols+this.numItemsInViewport.cols};else n=(e=t(i?l:s,this.itemSize))+this.numItemsInViewport}return{first:this.first,last:this.last,viewport:{first:e,last:n}}},calculateNumItems:function(){var t=this.isBoth(),e=this.isHorizontal(),n=this.itemSize,o=this.getContentPosition(),i=this.element?this.element.offsetWidth-o.left:0,r=this.element?this.element.offsetHeight-o.top:0,s=function(t,e){return Math.ceil(t/(e||t))},l=function(t){return Math.ceil(t/2)},a=t?{rows:s(r,n[0]),cols:s(i,n[1])}:s(e?i:r,n);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(t?[l(a.rows),l(a.cols)]:l(a))}},calculateOptions:function(){var t=this,e=this.isBoth(),n=this.first,o=this.calculateNumItems(),i=o.numItemsInViewport,r=o.numToleratedItems,s=function(e,n,o){var i=arguments.length\\\\u003e3\\\\u0026\\\\u0026void 0!==arguments[3]\\\\u0026\\\\u0026arguments[3];return t.getLast(e+n+(e\\\\u003co?2:3)*o,i)},l=e?{rows:s(n.rows,i.rows,r[0]),cols:s(n.cols,i.cols,r[1],!0)}:s(n,i,r);this.last=l,this.numItemsInViewport=i,this.d_numToleratedItems=r,this.$emit(\\\\\\\"update:numToleratedItems\\\\\\\",this.d_numToleratedItems),this.showLoader\\\\u0026\\\\u0026(this.loaderArr=e?Array.from({length:i.rows}).map((function(){return Array.from({length:i.cols})})):Array.from({length:i})),this.lazy\\\\u0026\\\\u0026Promise.resolve().then((function(){var o;t.lazyLoadState={first:t.step?e?{rows:0,cols:n.cols}:0:n,last:Math.min(t.step?t.step:l,(null===(o=t.items)||void 0===o?void 0:o.length)||0)},t.$emit(\\\\\\\"lazy-load\\\\\\\",t.lazyLoadState)}))},calculateAutoSize:function(){var t=this;this.autoSize\\\\u0026\\\\u0026!this.d_loading\\\\u0026\\\\u0026Promise.resolve().then((function(){if(t.content){var e=t.isBoth(),n=t.isHorizontal(),o=t.isVertical();t.content.style.minHeight=t.content.style.minWidth=\\\\\\\"auto\\\\\\\",t.content.style.position=\\\\\\\"relative\\\\\\\",t.element.style.contain=\\\\\\\"none\\\\\\\";var i=[R(t.element),j(t.element)],r=i[0],s=i[1];(e||n)\\\\u0026\\\\u0026(t.element.style.width=r\\\\u003ct.defaultWidth?r+\\\\\\\"px\\\\\\\":t.scrollWidth||t.defaultWidth+\\\\\\\"px\\\\\\\"),(e||o)\\\\u0026\\\\u0026(t.element.style.height=s\\\\u003ct.defaultHeight?s+\\\\\\\"px\\\\\\\":t.scrollHeight||t.defaultHeight+\\\\\\\"px\\\\\\\"),t.content.style.minHeight=t.content.style.minWidth=\\\\\\\"\\\\\\\",t.content.style.position=\\\\\\\"\\\\\\\",t.element.style.contain=\\\\\\\"\\\\\\\"}}))},getLast:function(){var t,e,n=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0,o=arguments.length\\\\u003e1?arguments[1]:void 0;return this.items?Math.min(o?(null===(t=this.columns||this.items[0])||void 0===t?void 0:t.length)||0:(null===(e=this.items)||void 0===e?void 0:e.length)||0,n):0},getContentPosition:function(){if(this.content){var t=getComputedStyle(this.content),e=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),n=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),o=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),i=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:e,right:n,top:o,bottom:i,x:e+n,y:o+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var t=this;if(this.element){var e=this.isBoth(),n=this.isHorizontal(),o=this.element.parentElement,i=this.scrollWidth||\\\\\\\"\\\\\\\".concat(this.element.offsetWidth||o.offsetWidth,\\\\\\\"px\\\\\\\"),r=this.scrollHeight||\\\\\\\"\\\\\\\".concat(this.element.offsetHeight||o.offsetHeight,\\\\\\\"px\\\\\\\"),s=function(e,n){return t.element.style[e]=n};e||n?(s(\\\\\\\"height\\\\\\\",r),s(\\\\\\\"width\\\\\\\",i)):s(\\\\\\\"height\\\\\\\",r)}},setSpacerSize:function(){var t=this,e=this.items;if(e){var n=this.isBoth(),o=this.isHorizontal(),i=this.getContentPosition(),r=function(e,n,o){var i=arguments.length\\\\u003e3\\\\u0026\\\\u0026void 0!==arguments[3]?arguments[3]:0;return t.spacerStyle=tn(tn({},t.spacerStyle),en({},\\\\\\\"\\\\\\\".concat(e),(n||[]).length*o+i+\\\\\\\"px\\\\\\\"))};n?(r(\\\\\\\"height\\\\\\\",e,this.itemSize[0],i.y),r(\\\\\\\"width\\\\\\\",this.columns||e[1],this.itemSize[1],i.x)):o?r(\\\\\\\"width\\\\\\\",this.columns||e,this.itemSize,i.x):r(\\\\\\\"height\\\\\\\",e,this.itemSize,i.y)}},setContentPosition:function(t){var e=this;if(this.content\\\\u0026\\\\u0026!this.appendOnly){var n=this.isBoth(),o=this.isHorizontal(),i=t?t.first:this.first,r=function(t,e){return t*e},s=function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:0,n=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:0;return e.contentStyle=tn(tn({},e.contentStyle),{transform:\\\\\\\"translate3d(\\\\\\\".concat(t,\\\\\\\"px, \\\\\\\").concat(n,\\\\\\\"px, 0)\\\\\\\")})};if(n)s(r(i.cols,this.itemSize[1]),r(i.rows,this.itemSize[0]));else{var l=r(i,this.itemSize);o?s(l,0):s(0,l)}}},onScrollPositionChange:function(t){var e=this,n=t.target,o=this.isBoth(),i=this.isHorizontal(),r=this.getContentPosition(),s=function(t,e){return t?t\\\\u003ee?t-e:t:0},l=function(t,e){return Math.floor(t/(e||t))},a=function(t,e,n,o,i,r){return t\\\\u003c=i?i:r?n-o-i:e+i-1},c=function(t,e,n,o,i,r,s){return t\\\\u003c=r?0:Math.max(0,s?t\\\\u003ce?n:t-r:t\\\\u003ee?n:t-2*r)},u=function(t,n,o,i,r,s){var l=n+i+2*r;return t\\\\u003e=r\\\\u0026\\\\u0026(l+=r+1),e.getLast(l,s)},d=s(n.scrollTop,r.top),p=s(n.scrollLeft,r.left),h=o?{rows:0,cols:0}:0,f=this.last,b=!1,m=this.lastScrollPos;if(o){var g=this.lastScrollPos.top\\\\u003c=d,v=this.lastScrollPos.left\\\\u003c=p;if(!this.appendOnly||this.appendOnly\\\\u0026\\\\u0026(g||v)){var y={rows:l(d,this.itemSize[0]),cols:l(p,this.itemSize[1])},x={rows:a(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:a(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)};h={rows:c(y.rows,x.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],g),cols:c(y.cols,x.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],v)},f={rows:u(y.rows,h.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:u(y.cols,h.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=h.rows!==this.first.rows||f.rows!==this.last.rows||h.cols!==this.first.cols||f.cols!==this.last.cols||this.isRangeChanged,m={top:d,left:p}}}else{var I=i?p:d,k=this.lastScrollPos\\\\u003c=I;if(!this.appendOnly||this.appendOnly\\\\u0026\\\\u0026k){var w=l(I,this.itemSize);f=u(w,h=c(w,a(w,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,k),this.last,this.numItemsInViewport,this.d_numToleratedItems),b=h!==this.first||f!==this.last||this.isRangeChanged,m=I}}return{first:h,last:f,isRangeChanged:b,scrollPos:m}},onScrollChange:function(t){var e=this.onScrollPositionChange(t),n=e.first,o=e.last,i=e.isRangeChanged,r=e.scrollPos;if(i){var s={first:n,last:o};if(this.setContentPosition(s),this.first=n,this.last=o,this.lastScrollPos=r,this.$emit(\\\\\\\"scroll-index-change\\\\\\\",s),this.lazy\\\\u0026\\\\u0026this.isPageChanged(n)){var l,a,c={first:this.step?Math.min(this.getPageByFirst(n)*this.step,((null===(l=this.items)||void 0===l?void 0:l.length)||0)-this.step):n,last:Math.min(this.step?(this.getPageByFirst(n)+1)*this.step:o,(null===(a=this.items)||void 0===a?void 0:a.length)||0)};(this.lazyLoadState.first!==c.first||this.lazyLoadState.last!==c.last)\\\\u0026\\\\u0026this.$emit(\\\\\\\"lazy-load\\\\\\\",c),this.lazyLoadState=c}}},onScroll:function(t){var e=this;if(this.$emit(\\\\\\\"scroll\\\\\\\",t),this.delay){if(this.scrollTimeout\\\\u0026\\\\u0026clearTimeout(this.scrollTimeout),this.isPageChanged()){if(!this.d_loading\\\\u0026\\\\u0026this.showLoader)(this.onScrollPositionChange(t).isRangeChanged||!!this.step\\\\u0026\\\\u0026this.isPageChanged())\\\\u0026\\\\u0026(this.d_loading=!0);this.scrollTimeout=setTimeout((function(){e.onScrollChange(t),!e.d_loading||!e.showLoader||e.lazy\\\\u0026\\\\u0026void 0!==e.loading||(e.d_loading=!1,e.page=e.getPageByFirst())}),this.delay)}}else this.onScrollChange(t)},onResize:function(){var t=this;this.resizeTimeout\\\\u0026\\\\u0026clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){if(Z(t.element)){var e=t.isBoth(),n=t.isVertical(),o=t.isHorizontal(),i=[R(t.element),j(t.element)],r=i[0],s=i[1],l=r!==t.defaultWidth,a=s!==t.defaultHeight;(e?l||a:o?l:!!n\\\\u0026\\\\u0026a)\\\\u0026\\\\u0026(t.d_numToleratedItems=t.numToleratedItems,t.defaultWidth=r,t.defaultHeight=s,t.defaultContentWidth=R(t.content),t.defaultContentHeight=j(t.content),t.init())}}),this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),window.addEventListener(\\\\\\\"orientationchange\\\\\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\\\u0026\\\\u0026(window.removeEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),window.removeEventListener(\\\\\\\"orientationchange\\\\\\\",this.resizeListener),this.resizeListener=null)},getOptions:function(t){var e=(this.items||[]).length,n=this.isBoth()?this.first.rows+t:this.first+t;return{index:n,count:e,first:0===n,last:n===e-1,even:n%2==0,odd:n%2!=0}},getLoaderOptions:function(t,e){var n=this.loaderArr.length;return tn({index:t,count:n,first:0===t,last:t===n-1,even:t%2==0,odd:t%2!=0},e)},getPageByFirst:function(t){return Math.floor(((null!=t?t:this.first)+4*this.d_numToleratedItems)/(this.step||1))},isPageChanged:function(t){return!(this.step\\\\u0026\\\\u0026!this.lazy)||this.page!==this.getPageByFirst(null!=t?t:this.first)},setContentEl:function(t){this.content=t||this.content||J(this.element,'[data-pc-section=\\\\\\\"content\\\\\\\"]')},elementRef:function(t){this.element=t},contentRef:function(t){this.content=t}},computed:{containerClass:function(){return[\\\\\\\"p-virtualscroller\\\\\\\",this.class,{\\\\\\\"p-virtualscroller-inline\\\\\\\":this.inline,\\\\\\\"p-virtualscroller-both p-both-scroll\\\\\\\":this.isBoth(),\\\\\\\"p-virtualscroller-horizontal p-horizontal-scroll\\\\\\\":this.isHorizontal()}]},contentClass:function(){return[\\\\\\\"p-virtualscroller-content\\\\\\\",{\\\\\\\"p-virtualscroller-loading\\\\\\\":this.d_loading}]},loaderClass:function(){return[\\\\\\\"p-virtualscroller-loader\\\\\\\",{\\\\\\\"p-virtualscroller-loader-mask\\\\\\\":!this.$slots.loader}]},loadedItems:function(){var t=this;return this.items\\\\u0026\\\\u0026!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map((function(e){return t.columns?e:e.slice(t.appendOnly?0:t.first.cols,t.last.cols)})):this.isHorizontal()\\\\u0026\\\\u0026this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var t=this.isBoth(),e=this.isHorizontal();if(t||e)return this.d_loading\\\\u0026\\\\u0026this.loaderDisabled?t?this.loaderArr[0]:this.loaderArr:this.columns.slice(t?this.first.cols:this.first,t?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:Ct}},on=[\\\\\\\"tabindex\\\\\\\"];nn.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"SpinnerIcon\\\\\\\");return t.disabled?(m(),g(_,{key:1},[v(t.$slots,\\\\\\\"default\\\\\\\"),v(t.$slots,\\\\\\\"content\\\\\\\",{items:t.items,rows:t.items,columns:r.loadedColumns})],64)):(m(),g(\\\\\\\"div\\\\\\\",I({key:0,ref:r.elementRef,class:r.containerClass,tabindex:t.tabindex,style:t.style,onScroll:e[0]||(e[0]=function(){return r.onScroll\\\\u0026\\\\u0026r.onScroll.apply(r,arguments)})},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"content\\\\\\\",{styleClass:r.contentClass,items:r.loadedItems,getItemOptions:r.getOptions,loading:i.d_loading,getLoaderOptions:r.getLoaderOptions,itemSize:t.itemSize,rows:r.loadedRows,columns:r.loadedColumns,contentRef:r.contentRef,spacerStyle:i.spacerStyle,contentStyle:i.contentStyle,vertical:r.isVertical(),horizontal:r.isHorizontal(),both:r.isBoth()},(function(){return[C(\\\\\\\"div\\\\\\\",I({ref:r.contentRef,class:r.contentClass,style:i.contentStyle},t.ptm(\\\\\\\"content\\\\\\\")),[(m(!0),g(_,null,M(r.loadedItems,(function(e,n){return v(t.$slots,\\\\\\\"item\\\\\\\",{key:n,item:e,options:r.getOptions(n)})})),128))],16)]})),t.showSpacer?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:\\\\\\\"p-virtualscroller-spacer\\\\\\\",style:i.spacerStyle},t.ptm(\\\\\\\"spacer\\\\\\\")),null,16)):$(\\\\\\\"\\\\\\\",!0),!t.loaderDisabled\\\\u0026\\\\u0026t.showLoader\\\\u0026\\\\u0026i.d_loading?(m(),g(\\\\\\\"div\\\\\\\",I({key:1,class:r.loaderClass},t.ptm(\\\\\\\"loader\\\\\\\")),[t.$slots\\\\u0026\\\\u0026t.$slots.loader?(m(!0),g(_,{key:0},M(i.loaderArr,(function(e,n){return v(t.$slots,\\\\\\\"loader\\\\\\\",{key:n,options:r.getLoaderOptions(n,r.isBoth()\\\\u0026\\\\u0026{numCols:t.d_numItemsInViewport.cols})})})),128)):$(\\\\\\\"\\\\\\\",!0),v(t.$slots,\\\\\\\"loadingicon\\\\\\\",{},(function(){return[V(s,I({spin:\\\\\\\"\\\\\\\",class:\\\\\\\"p-virtualscroller-loading-icon\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16)]}))],16)):$(\\\\\\\"\\\\\\\",!0)],16,on))};var rn=St.extend({name:\\\\\\\"select\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-select {\\\\\\\\n    display: inline-flex;\\\\\\\\n    cursor: pointer;\\\\\\\\n    position: relative;\\\\\\\\n    user-select: none;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"select.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"select.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n        outline-color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"select.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"select.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select:not(.p-disabled):hover {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"select.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select:not(.p-disabled).p-focus {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"select.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"select.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"select.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"select.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"select.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"select.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-variant-filled {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.filled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-variant-filled:not(.p-disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.filled.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-variant-filled:not(.p-disabled).p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.filled.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-invalid {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"select.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-clear-icon {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 50%;\\\\\\\\n    margin-top: -0.5rem;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.clear.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    inset-inline-end: \\\\\\\").concat(e(\\\\\\\"select.dropdown.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-dropdown {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    flex-shrink: 0;\\\\\\\\n    background: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.dropdown.color\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"select.dropdown.width\\\\\\\"),\\\\\\\";\\\\\\\\n    border-start-end-radius: \\\\\\\").concat(e(\\\\\\\"select.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border-end-end-radius: \\\\\\\").concat(e(\\\\\\\"select.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-label {\\\\\\\\n    display: block;\\\\\\\\n    white-space: nowrap;\\\\\\\\n    overflow: hidden;\\\\\\\\n    flex: 1 1 auto;\\\\\\\\n    width: 1%;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"select.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    text-overflow: ellipsis;\\\\\\\\n    cursor: pointer;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: transparent;\\\\\\\\n    border: 0 none;\\\\\\\\n    outline: 0 none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-label.p-placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-invalid .p-select-label.p-placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.invalid.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select:has(.p-select-clear-icon) .p-select-label {\\\\\\\\n    padding-inline-end: calc(1rem + \\\\\\\").concat(e(\\\\\\\"select.padding.x\\\\\\\"),\\\\\\\");\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select.p-disabled .p-select-label {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-label-empty {\\\\\\\\n    overflow: hidden;\\\\\\\\n    opacity: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\ninput.p-select-label {\\\\\\\\n    cursor: default;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select .p-select-overlay {\\\\\\\\n    min-width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-overlay {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.overlay.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.overlay.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"select.overlay.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"select.overlay.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"select.overlay.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-header {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.list.header.padding\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-filter {\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-list-container {\\\\\\\\n    overflow: auto;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option-group {\\\\\\\\n    cursor: auto;\\\\\\\\n    margin: 0;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.option.group.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.option.group.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.group.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"select.option.group.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-list {\\\\\\\\n    margin: 0;\\\\\\\\n    padding: 0;\\\\\\\\n    list-style-type: none;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.list.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"select.list.gap\\\\\\\"),\\\\\\\";\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option {\\\\\\\\n    cursor: pointer;\\\\\\\\n    font-weight: normal;\\\\\\\\n    white-space: nowrap;\\\\\\\\n    position: relative;\\\\\\\\n    overflow: hidden;\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.option.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 0 none;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: transparent;\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n            box-shadow \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"select.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"select.option.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.option.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option.p-select-option-selected {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.option.selected.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.selected.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option.p-select-option-selected.p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"select.option.selected.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.option.selected.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-option-check-icon {\\\\\\\\n    position: relative;\\\\\\\\n    margin-inline-start: \\\\\\\").concat(e(\\\\\\\"select.checkmark.gutter.start\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-inline-end: \\\\\\\").concat(e(\\\\\\\"select.checkmark.gutter.end\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"select.checkmark.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-empty-message {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"select.empty.message.padding\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-fluid {\\\\\\\\n    display: flex;\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-sm .p-select-label {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"select.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"select.sm.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"select.sm.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-sm .p-select-dropdown .p-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"select.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"select.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"select.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-lg .p-select-label {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"select.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"select.lg.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"select.lg.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-select-lg .p-select-dropdown .p-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"select.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"select.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"select.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props,o=t.state;return[\\\\\\\"p-select p-component p-inputwrapper\\\\\\\",{\\\\\\\"p-disabled\\\\\\\":n.disabled,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-variant-filled\\\\\\\":\\\\\\\"filled\\\\\\\"===e.$variant,\\\\\\\"p-focus\\\\\\\":o.focused,\\\\\\\"p-inputwrapper-filled\\\\\\\":e.$filled,\\\\\\\"p-inputwrapper-focus\\\\\\\":o.focused||o.overlayVisible,\\\\\\\"p-select-open\\\\\\\":o.overlayVisible,\\\\\\\"p-select-fluid\\\\\\\":e.$fluid,\\\\\\\"p-select-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-select-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size}]},label:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-select-label\\\\\\\",{\\\\\\\"p-placeholder\\\\\\\":!n.editable\\\\u0026\\\\u0026e.label===n.placeholder,\\\\\\\"p-select-label-empty\\\\\\\":!(n.editable||e.$slots.value||\\\\\\\"p-emptylabel\\\\\\\"!==e.label\\\\u0026\\\\u00260!==e.label.length)}]},clearIcon:\\\\\\\"p-select-clear-icon\\\\\\\",dropdown:\\\\\\\"p-select-dropdown\\\\\\\",loadingicon:\\\\\\\"p-select-loading-icon\\\\\\\",dropdownIcon:\\\\\\\"p-select-dropdown-icon\\\\\\\",overlay:\\\\\\\"p-select-overlay p-component\\\\\\\",header:\\\\\\\"p-select-header\\\\\\\",pcFilter:\\\\\\\"p-select-filter\\\\\\\",listContainer:\\\\\\\"p-select-list-container\\\\\\\",list:\\\\\\\"p-select-list\\\\\\\",optionGroup:\\\\\\\"p-select-option-group\\\\\\\",optionGroupLabel:\\\\\\\"p-select-option-group-label\\\\\\\",option:function(t){var e=t.instance,n=t.props,o=t.state,i=t.option,r=t.focusedOption;return[\\\\\\\"p-select-option\\\\\\\",{\\\\\\\"p-select-option-selected\\\\\\\":e.isSelected(i)\\\\u0026\\\\u0026n.highlightOnSelect,\\\\\\\"p-focus\\\\\\\":o.focusedOptionIndex===r,\\\\\\\"p-disabled\\\\\\\":e.isOptionDisabled(i)}]},optionLabel:\\\\\\\"p-select-option-label\\\\\\\",optionCheckIcon:\\\\\\\"p-select-option-check-icon\\\\\\\",optionBlankIcon:\\\\\\\"p-select-option-blank-icon\\\\\\\",emptyMessage:\\\\\\\"p-select-empty-message\\\\\\\"}});function sn(t){return(sn=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function ln(t){return function(t){if(Array.isArray(t))return an(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return an(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?an(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function an(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\\\u0026\\\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function un(t){for(var e=1;e\\\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(n),!0).forEach((function(e){dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=sn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=sn(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==sn(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pn={name:\\\\\\\"Select\\\\\\\",extends:{name:\\\\\\\"BaseSelect\\\\\\\",extends:zt,props:{options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:\\\\\\\"14rem\\\\\\\"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:\\\\\\\"contains\\\\\\\"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},labelId:{type:String,default:null},labelClass:{type:[String,Object],default:null},labelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},overlayStyle:{type:Object,default:null},overlayClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},appendTo:{type:[String,Object],default:\\\\\\\"body\\\\\\\"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},resetFilterOnClear:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!0},checkmark:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:rn,provide:function(){return{$pcSelect:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\",\\\\\\\"focus\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"before-show\\\\\\\",\\\\\\\"before-hide\\\\\\\",\\\\\\\"show\\\\\\\",\\\\\\\"hide\\\\\\\",\\\\\\\"filter\\\\\\\"],outsideClickListener:null,scrollHandler:null,resizeListener:null,labelClickListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{\\\\\\\"$attrs.id\\\\\\\":function(t){this.id=t||Et()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Et(),this.autoUpdateModel(),this.bindLabelClickListener()},updated:function(){this.overlayVisible\\\\u0026\\\\u0026this.isModelValueChanged\\\\u0026\\\\u0026this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindLabelClickListener(),this.scrollHandler\\\\u0026\\\\u0026(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay\\\\u0026\\\\u0026(Q.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,e){return this.virtualScrollerDisabled?t:e\\\\u0026\\\\u0026e(t).index},getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t,e){return(this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t))+\\\\\\\"_\\\\\\\"+e},getPTItemOptions:function(t,e,n,o){return this.ptm(o,{context:{option:t,index:n,selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(n,e),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return!!this.optionDisabled\\\\u0026\\\\u0026tt(t,this.optionDisabled)},isOptionGroup:function(t){return this.optionGroupLabel\\\\u0026\\\\u0026t.optionGroup\\\\u0026\\\\u0026t.group},getOptionGroupLabel:function(t){return tt(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return tt(t,this.optionGroupChildren)},getAriaPosInset:function(t){var e=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter((function(t){return e.isOptionGroup(t)})).length:t)+1},show:function(t){this.$emit(\\\\\\\"before-show\\\\\\\"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),t\\\\u0026\\\\u0026et(this.$refs.focusInput)},hide:function(t){var e=this;setTimeout((function(){e.$emit(\\\\\\\"before-hide\\\\\\\"),e.overlayVisible=!1,e.clicked=!1,e.focusedOptionIndex=-1,e.searchValue=\\\\\\\"\\\\\\\",e.resetFilterOnHide\\\\u0026\\\\u0026(e.filterValue=null),t\\\\u0026\\\\u0026et(e.$refs.focusInput)}),0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible\\\\u0026\\\\u0026(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit(\\\\\\\"focus\\\\\\\",t))},onBlur:function(t){var e,n;this.focused=!1,this.focusedOptionIndex=-1,this.searchValue=\\\\\\\"\\\\\\\",this.$emit(\\\\\\\"blur\\\\\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)},onKeyDown:function(t){if(this.disabled||nt())t.preventDefault();else{var e=t.metaKey||t.ctrlKey;switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t,this.editable);break;case\\\\\\\"ArrowLeft\\\\\\\":case\\\\\\\"ArrowRight\\\\\\\":this.onArrowLeftKey(t,this.editable);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t,this.editable);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t,this.editable);break;case\\\\\\\"PageDown\\\\\\\":this.onPageDownKey(t);break;case\\\\\\\"PageUp\\\\\\\":this.onPageUpKey(t);break;case\\\\\\\"Space\\\\\\\":this.onSpaceKey(t,this.editable);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t);break;case\\\\\\\"Backspace\\\\\\\":this.onBackspaceKey(t,this.editable);break;case\\\\\\\"ShiftLeft\\\\\\\":case\\\\\\\"ShiftRight\\\\\\\":break;default:!e\\\\u0026\\\\u0026ot(t.key)\\\\u0026\\\\u0026(!this.overlayVisible\\\\u0026\\\\u0026this.show(),!this.editable\\\\u0026\\\\u0026this.searchOptions(t,t.key))}this.clicked=!1}},onEditableInput:function(t){var e=t.target.value;this.searchValue=\\\\\\\"\\\\\\\",!this.searchOptions(t,e)\\\\u0026\\\\u0026(this.focusedOptionIndex=-1),this.updateModel(t,e),!this.overlayVisible\\\\u0026\\\\u0026K(e)\\\\u0026\\\\u0026this.show()},onContainerClick:function(t){this.disabled||this.loading||\\\\\\\"INPUT\\\\\\\"===t.target.tagName||\\\\\\\"clearicon\\\\\\\"===t.target.getAttribute(\\\\\\\"data-pc-section\\\\\\\")||t.target.closest('[data-pc-section=\\\\\\\"clearicon\\\\\\\"]')||(this.overlay\\\\u0026\\\\u0026this.overlay.contains(t.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear\\\\u0026\\\\u0026(this.filterValue=null)},onFirstHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?it(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])'):this.$refs.focusInput;et(e)},onLastHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?rt(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])'):this.$refs.focusInput;et(e)},onOptionSelect:function(t,e){var n=!(arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2])||arguments[2],o=this.getOptionValue(e);this.updateModel(t,o),n\\\\u0026\\\\u0026this.hide(!0)},onOptionMouseMove:function(t,e){this.focusOnHover\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,e)},onFilterChange:function(t){var e=t.target.value;this.filterValue=e,this.focusedOptionIndex=-1,this.$emit(\\\\\\\"filter\\\\\\\",{originalEvent:t,value:e}),!this.virtualScrollerDisabled\\\\u0026\\\\u0026this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){if(!t.isComposing)switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t,!0);break;case\\\\\\\"ArrowLeft\\\\\\\":case\\\\\\\"ArrowRight\\\\\\\":this.onArrowLeftKey(t,!0);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t,!0);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t,!0);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible\\\\u0026\\\\u0026this.alignOverlay()},onOverlayClick:function(t){Xe.emit(\\\\\\\"overlay-click\\\\\\\",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){if(\\\\\\\"Escape\\\\\\\"===t.code)this.onEscapeKey(t)},onArrowDownKey:function(t){if(this.overlayVisible){var e=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(t,e)}else this.show(),this.editable\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,this.findSelectedOptionIndex());t.preventDefault()},onArrowUpKey:function(t){var e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1];if(t.altKey\\\\u0026\\\\u0026!e)-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\\\u0026\\\\u0026this.hide(),t.preventDefault();else{var n=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(t,n),!this.overlayVisible\\\\u0026\\\\u0026this.show(),t.preventDefault()}},onArrowLeftKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]\\\\u0026\\\\u0026(this.focusedOptionIndex=-1)},onHomeKey:function(t){if(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]){var e=t.currentTarget;t.shiftKey?e.setSelectionRange(0,t.target.selectionStart):(e.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else this.changeFocusedOptionIndex(t,this.findFirstOptionIndex()),!this.overlayVisible\\\\u0026\\\\u0026this.show();t.preventDefault()},onEndKey:function(t){if(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]){var e=t.currentTarget;if(t.shiftKey)e.setSelectionRange(t.target.selectionStart,e.value.length);else{var n=e.value.length;e.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else this.changeFocusedOptionIndex(t,this.findLastOptionIndex()),!this.overlayVisible\\\\u0026\\\\u0026this.show();t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?(-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.hide()):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onSpaceKey:function(t){!(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1])\\\\u0026\\\\u0026this.onEnterKey(t)},onEscapeKey:function(t){this.overlayVisible\\\\u0026\\\\u0026this.hide(!0),t.preventDefault(),t.stopPropagation()},onTabKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]||(this.overlayVisible\\\\u0026\\\\u0026this.hasFocusableElements()?(et(this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\\\u0026\\\\u0026this.hide(this.filter)))},onBackspaceKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]\\\\u0026\\\\u0026!this.overlayVisible\\\\u0026\\\\u0026this.show()},onOverlayEnter:function(t){var e=this;Q.set(\\\\\\\"overlay\\\\\\\",t,this.$primevue.config.zIndex.overlay),st(t,{position:\\\\\\\"absolute\\\\\\\",top:\\\\\\\"0\\\\\\\",left:\\\\\\\"0\\\\\\\"}),this.alignOverlay(),this.scrollInView(),setTimeout((function(){e.autoFilterFocus\\\\u0026\\\\u0026e.filter\\\\u0026\\\\u0026et(e.$refs.filterInput.$el)}),1)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(\\\\\\\"show\\\\\\\")},onOverlayLeave:function(){var t=this;this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.autoFilterFocus\\\\u0026\\\\u0026this.filter\\\\u0026\\\\u0026!this.editable\\\\u0026\\\\u0026this.$nextTick((function(){et(t.$refs.filterInput.$el)})),this.$emit(\\\\\\\"hide\\\\\\\"),this.overlay=null},onOverlayAfterLeave:function(t){Q.clear(t)},alignOverlay:function(){\\\\\\\"self\\\\\\\"===this.appendTo?lt(this.overlay,this.$el):(this.overlay.style.minWidth=G(this.$el)+\\\\\\\"px\\\\\\\",at(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){t.overlayVisible\\\\u0026\\\\u0026t.overlay\\\\u0026\\\\u0026!t.$el.contains(e.target)\\\\u0026\\\\u0026!t.overlay.contains(e.target)\\\\u0026\\\\u0026t.hide()},document.addEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Tt(this.$refs.container,(function(){t.overlayVisible\\\\u0026\\\\u0026t.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler\\\\u0026\\\\u0026this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible\\\\u0026\\\\u0026!ct()\\\\u0026\\\\u0026t.hide()},window.addEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\\\u0026\\\\u0026(window.removeEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),this.resizeListener=null)},bindLabelClickListener:function(){var t=this;if(!this.editable\\\\u0026\\\\u0026!this.labelClickListener){var e=document.querySelector('label[for=\\\\\\\"'.concat(this.labelId,'\\\\\\\"]'));e\\\\u0026\\\\u0026Z(e)\\\\u0026\\\\u0026(this.labelClickListener=function(){et(t.$refs.focusInput)},e.addEventListener(\\\\\\\"click\\\\\\\",this.labelClickListener))}},unbindLabelClickListener:function(){if(this.labelClickListener){var t=document.querySelector('label[for=\\\\\\\"'.concat(this.labelId,'\\\\\\\"]'));t\\\\u0026\\\\u0026Z(t)\\\\u0026\\\\u0026t.removeEventListener(\\\\\\\"click\\\\\\\",this.labelClickListener)}},hasFocusableElements:function(){return ut(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])').length\\\\u003e0},isOptionMatched:function(t){var e;return this.isValidOption(t)\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"==typeof this.getOptionLabel(t)\\\\u0026\\\\u0026(null===(e=this.getOptionLabel(t))||void 0===e?void 0:e.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return K(t)\\\\u0026\\\\u0026!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)\\\\u0026\\\\u0026this.isSelected(t)},isSelected:function(t){return dt(this.d_value,this.getOptionValue(t),this.equalityKey)},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex((function(e){return t.isValidOption(e)}))},findLastOptionIndex:function(){var t=this;return pt(this.visibleOptions,(function(e){return t.isValidOption(e)}))},findNextOptionIndex:function(t){var e=this,n=t\\\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidOption(t)})):-1;return n\\\\u003e-1?n+t+1:t},findPrevOptionIndex:function(t){var e=this,n=t\\\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidOption(t)})):-1;return n\\\\u003e-1?n:t},findSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex((function(e){return t.isValidSelectedOption(e)})):-1},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\\\u003c0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\\\u003c0?this.findLastOptionIndex():t},searchOptions:function(t,e){var n=this;this.searchValue=(this.searchValue||\\\\\\\"\\\\\\\")+e;var o=-1,i=!1;return K(this.searchValue)\\\\u0026\\\\u0026(-1!==(o=-1!==this.focusedOptionIndex?-1===(o=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(t){return n.isOptionMatched(t)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(t){return n.isOptionMatched(t)})):o+this.focusedOptionIndex:this.visibleOptions.findIndex((function(t){return n.isOptionMatched(t)})))\\\\u0026\\\\u0026(i=!0),-1===o\\\\u0026\\\\u0026-1===this.focusedOptionIndex\\\\u0026\\\\u0026(o=this.findFirstFocusedOptionIndex()),-1!==o\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,o)),this.searchTimeout\\\\u0026\\\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){n.searchValue=\\\\\\\"\\\\\\\",n.searchTimeout=null}),500),i},changeFocusedOptionIndex:function(t,e){this.focusedOptionIndex!==e\\\\u0026\\\\u0026(this.focusedOptionIndex=e,this.scrollInView(),this.selectOnFocus\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[e],!1))},scrollInView:function(){var t=this,e=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var n=-1!==e?\\\\\\\"\\\\\\\".concat(t.id,\\\\\\\"_\\\\\\\").concat(e):t.focusedOptionId,o=J(t.list,'li[id=\\\\\\\"'.concat(n,'\\\\\\\"]'));o?o.scrollIntoView\\\\u0026\\\\u0026o.scrollIntoView({block:\\\\\\\"nearest\\\\\\\",inline:\\\\\\\"start\\\\\\\"}):t.virtualScrollerDisabled||t.virtualScroller\\\\u0026\\\\u0026t.virtualScroller.scrollToIndex(-1!==e?e:t.focusedOptionIndex)}))},autoUpdateModel:function(){this.selectOnFocus\\\\u0026\\\\u0026this.autoOptionFocus\\\\u0026\\\\u0026!this.$filled\\\\u0026\\\\u0026(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(t,e){this.writeValue(e,t),this.$emit(\\\\\\\"change\\\\\\\",{originalEvent:t,value:e})},flatOptions:function(t){var e=this;return(t||[]).reduce((function(t,n,o){t.push({optionGroup:n,group:!0,index:o});var i=e.getOptionGroupChildren(n);return i\\\\u0026\\\\u0026i.forEach((function(e){return t.push(e)})),t}),[])},overlayRef:function(t){this.overlay=t},listRef:function(t,e){this.list=t,e\\\\u0026\\\\u0026e(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=_t.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach((function(e){var o=t.getOptionGroupChildren(e).filter((function(t){return n.includes(t)}));o.length\\\\u003e0\\\\u0026\\\\u0026i.push(un(un({},e),{},dn({},\\\\\\\"string\\\\\\\"==typeof t.optionGroupChildren?t.optionGroupChildren:\\\\\\\"items\\\\\\\",ln(o))))})),this.flatOptions(i)}return n}return e},hasSelectedOption:function(){return this.$filled},label:function(){var t=this.findSelectedOptionIndex();return-1!==t?this.getOptionLabel(this.visibleOptions[t]):this.placeholder||\\\\\\\"p-emptylabel\\\\\\\"},editableInputValue:function(){var t=this.findSelectedOptionIndex();return-1!==t?this.getOptionLabel(this.visibleOptions[t]):this.d_value||\\\\\\\"\\\\\\\"},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return K(this.visibleOptions)?this.filterMessageText.replaceAll(\\\\\\\"{0}\\\\\\\",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||\\\\\\\"\\\\\\\"},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||\\\\\\\"\\\\\\\"},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||\\\\\\\"\\\\\\\"},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||\\\\\\\"\\\\\\\"},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||\\\\\\\"\\\\\\\"},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(\\\\\\\"{0}\\\\\\\",\\\\\\\"1\\\\\\\"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?\\\\\\\"\\\\\\\".concat(this.id,\\\\\\\"_\\\\\\\").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter((function(e){return!t.isOptionGroup(e)})).length},isClearIconVisible:function(){return this.showClear\\\\u0026\\\\u0026null!=this.d_value\\\\u0026\\\\u0026K(this.options)},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:De},components:{InputText:We,VirtualScroller:nn,Portal:Ye,InputIcon:Ne,IconField:Ue,TimesIcon:Mt,ChevronDownIcon:Vt,SpinnerIcon:Ct,SearchIcon:Pt,CheckIcon:Ft,BlankIcon:At}},hn=[\\\\\\\"id\\\\\\\"],fn=[\\\\\\\"id\\\\\\\",\\\\\\\"value\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-expanded\\\\\\\",\\\\\\\"aria-controls\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"aria-invalid\\\\\\\"],bn=[\\\\\\\"id\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-expanded\\\\\\\",\\\\\\\"aria-controls\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"aria-disabled\\\\\\\"],mn=[\\\\\\\"id\\\\\\\"],gn=[\\\\\\\"id\\\\\\\"],vn=[\\\\\\\"id\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-selected\\\\\\\",\\\\\\\"aria-disabled\\\\\\\",\\\\\\\"aria-setsize\\\\\\\",\\\\\\\"aria-posinset\\\\\\\",\\\\\\\"onClick\\\\\\\",\\\\\\\"onMousemove\\\\\\\",\\\\\\\"data-p-selected\\\\\\\",\\\\\\\"data-p-focused\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"];pn.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"SpinnerIcon\\\\\\\"),l=k(\\\\\\\"InputText\\\\\\\"),a=k(\\\\\\\"SearchIcon\\\\\\\"),c=k(\\\\\\\"InputIcon\\\\\\\"),u=k(\\\\\\\"IconField\\\\\\\"),d=k(\\\\\\\"CheckIcon\\\\\\\"),p=k(\\\\\\\"BlankIcon\\\\\\\"),h=k(\\\\\\\"VirtualScroller\\\\\\\"),f=k(\\\\\\\"Portal\\\\\\\"),b=w(\\\\\\\"ripple\\\\\\\");return m(),g(\\\\\\\"div\\\\\\\",I({ref:\\\\\\\"container\\\\\\\",id:i.id,class:t.cx(\\\\\\\"root\\\\\\\"),onClick:e[11]||(e[11]=function(){return r.onContainerClick\\\\u0026\\\\u0026r.onContainerClick.apply(r,arguments)})},t.ptmi(\\\\\\\"root\\\\\\\")),[t.editable?(m(),g(\\\\\\\"input\\\\\\\",I({key:0,ref:\\\\\\\"focusInput\\\\\\\",id:t.labelId||t.inputId,type:\\\\\\\"text\\\\\\\",class:[t.cx(\\\\\\\"label\\\\\\\"),t.inputClass,t.labelClass],style:[t.inputStyle,t.labelStyle],value:r.editableInputValue,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,disabled:t.disabled,autocomplete:\\\\\\\"off\\\\\\\",role:\\\\\\\"combobox\\\\\\\",\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-haspopup\\\\\\\":\\\\\\\"listbox\\\\\\\",\\\\\\\"aria-expanded\\\\\\\":i.overlayVisible,\\\\\\\"aria-controls\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":i.focused?r.focusedOptionId:void 0,\\\\\\\"aria-invalid\\\\\\\":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\\\u0026\\\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onKeyDown\\\\u0026\\\\u0026r.onKeyDown.apply(r,arguments)}),onInput:e[3]||(e[3]=function(){return r.onEditableInput\\\\u0026\\\\u0026r.onEditableInput.apply(r,arguments)})},t.ptm(\\\\\\\"label\\\\\\\")),null,16,fn)):(m(),g(\\\\\\\"span\\\\\\\",I({key:1,ref:\\\\\\\"focusInput\\\\\\\",id:t.labelId||t.inputId,class:[t.cx(\\\\\\\"label\\\\\\\"),t.inputClass,t.labelClass],style:[t.inputStyle,t.labelStyle],tabindex:t.disabled?-1:t.tabindex,role:\\\\\\\"combobox\\\\\\\",\\\\\\\"aria-label\\\\\\\":t.ariaLabel||(\\\\\\\"p-emptylabel\\\\\\\"===r.label?void 0:r.label),\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-haspopup\\\\\\\":\\\\\\\"listbox\\\\\\\",\\\\\\\"aria-expanded\\\\\\\":i.overlayVisible,\\\\\\\"aria-controls\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":i.focused?r.focusedOptionId:void 0,\\\\\\\"aria-disabled\\\\\\\":t.disabled,onFocus:e[4]||(e[4]=function(){return r.onFocus\\\\u0026\\\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[5]||(e[5]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[6]||(e[6]=function(){return r.onKeyDown\\\\u0026\\\\u0026r.onKeyDown.apply(r,arguments)})},t.ptm(\\\\\\\"label\\\\\\\")),[v(t.$slots,\\\\\\\"value\\\\\\\",{value:t.d_value,placeholder:t.placeholder},(function(){var t;return[y(x(\\\\\\\"p-emptylabel\\\\\\\"===r.label?\\\\\\\"\\u00a0\\\\\\\":null!==(t=r.label)\\\\u0026\\\\u0026void 0!==t?t:\\\\\\\"empty\\\\\\\"),1)]}))],16,bn)),r.isClearIconVisible?v(t.$slots,\\\\\\\"clearicon\\\\\\\",{key:2,class:z(t.cx(\\\\\\\"clearIcon\\\\\\\")),clearCallback:r.onClearClick},(function(){return[(m(),S(E(t.clearIcon?\\\\\\\"i\\\\\\\":\\\\\\\"TimesIcon\\\\\\\"),I({ref:\\\\\\\"clearIcon\\\\\\\",class:[t.cx(\\\\\\\"clearIcon\\\\\\\"),t.clearIcon],onClick:r.onClearClick},t.ptm(\\\\\\\"clearIcon\\\\\\\"),{\\\\\\\"data-pc-section\\\\\\\":\\\\\\\"clearicon\\\\\\\"}),null,16,[\\\\\\\"class\\\\\\\",\\\\\\\"onClick\\\\\\\"]))]})):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"dropdown\\\\\\\")},t.ptm(\\\\\\\"dropdown\\\\\\\")),[t.loading?v(t.$slots,\\\\\\\"loadingicon\\\\\\\",{key:0,class:z(t.cx(\\\\\\\"loadingIcon\\\\\\\"))},(function(){return[t.loadingIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),\\\\\\\"pi-spin\\\\\\\",t.loadingIcon],\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16)):(m(),S(s,I({key:1,class:t.cx(\\\\\\\"loadingIcon\\\\\\\"),spin:\\\\\\\"\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]})):v(t.$slots,\\\\\\\"dropdownicon\\\\\\\",{key:1,class:z(t.cx(\\\\\\\"dropdownIcon\\\\\\\"))},(function(){return[(m(),S(E(t.dropdownIcon?\\\\\\\"span\\\\\\\":\\\\\\\"ChevronDownIcon\\\\\\\"),I({class:[t.cx(\\\\\\\"dropdownIcon\\\\\\\"),t.dropdownIcon],\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"dropdownIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]}))],16),V(f,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\\\\\"p-connected-overlay\\\\\\\",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},t.ptm(\\\\\\\"transition\\\\\\\")),{default:L((function(){return[i.overlayVisible?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,ref:r.overlayRef,class:[t.cx(\\\\\\\"overlay\\\\\\\"),t.panelClass,t.overlayClass],style:[t.panelStyle,t.overlayStyle],onClick:e[9]||(e[9]=function(){return r.onOverlayClick\\\\u0026\\\\u0026r.onOverlayClick.apply(r,arguments)}),onKeydown:e[10]||(e[10]=function(){return r.onOverlayKeyDown\\\\u0026\\\\u0026r.onOverlayKeyDown.apply(r,arguments)})},t.ptm(\\\\\\\"overlay\\\\\\\")),[C(\\\\\\\"span\\\\\\\",I({ref:\\\\\\\"firstHiddenFocusableElementOnOverlay\\\\\\\",role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\",class:\\\\\\\"p-hidden-accessible p-hidden-focusable\\\\\\\",tabindex:0,onFocus:e[7]||(e[7]=function(){return r.onFirstHiddenFocus\\\\u0026\\\\u0026r.onFirstHiddenFocus.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenFirstFocusableEl\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0,\\\\\\\"data-p-hidden-focusable\\\\\\\":!0}),null,16),v(t.$slots,\\\\\\\"header\\\\\\\",{value:t.d_value,options:r.visibleOptions}),t.filter?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"header\\\\\\\")},t.ptm(\\\\\\\"header\\\\\\\")),[V(u,{unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcFilterContainer\\\\\\\")},{default:L((function(){return[V(l,{ref:\\\\\\\"filterInput\\\\\\\",type:\\\\\\\"text\\\\\\\",value:i.filterValue,onVnodeMounted:r.onFilterUpdated,onVnodeUpdated:r.onFilterUpdated,class:z(t.cx(\\\\\\\"pcFilter\\\\\\\")),placeholder:t.filterPlaceholder,variant:t.variant,unstyled:t.unstyled,role:\\\\\\\"searchbox\\\\\\\",autocomplete:\\\\\\\"off\\\\\\\",\\\\\\\"aria-owns\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":r.focusedOptionId,onKeydown:r.onFilterKeyDown,onBlur:r.onFilterBlur,onInput:r.onFilterChange,pt:t.ptm(\\\\\\\"pcFilter\\\\\\\")},null,8,[\\\\\\\"value\\\\\\\",\\\\\\\"onVnodeMounted\\\\\\\",\\\\\\\"onVnodeUpdated\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"variant\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"aria-owns\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"onKeydown\\\\\\\",\\\\\\\"onBlur\\\\\\\",\\\\\\\"onInput\\\\\\\",\\\\\\\"pt\\\\\\\"]),V(c,{unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcFilterIconContainer\\\\\\\")},{default:L((function(){return[v(t.$slots,\\\\\\\"filtericon\\\\\\\",{},(function(){return[t.filterIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:t.filterIcon},t.ptm(\\\\\\\"filterIcon\\\\\\\")),null,16)):(m(),S(a,F(I({key:1},t.ptm(\\\\\\\"filterIcon\\\\\\\"))),null,16))]}))]})),_:3},8,[\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])]})),_:3},8,[\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"]),C(\\\\\\\"span\\\\\\\",I({role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenFilterResult\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.filterResultMessageText),17)],16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"listContainer\\\\\\\"),style:{\\\\\\\"max-height\\\\\\\":r.virtualScrollerDisabled?t.scrollHeight:\\\\\\\"\\\\\\\"}},t.ptm(\\\\\\\"listContainer\\\\\\\")),[V(h,I({ref:r.virtualScrollerRef},t.virtualScrollerOptions,{items:r.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:t.ptm(\\\\\\\"virtualScroller\\\\\\\")}),A({content:L((function(e){var n=e.styleClass,o=e.contentRef,s=e.items,l=e.getItemOptions,a=e.contentStyle,c=e.itemSize;return[C(\\\\\\\"ul\\\\\\\",I({ref:function(t){return r.listRef(t,o)},id:i.id+\\\\\\\"_list\\\\\\\",class:[t.cx(\\\\\\\"list\\\\\\\"),n],style:a,role:\\\\\\\"listbox\\\\\\\"},t.ptm(\\\\\\\"list\\\\\\\")),[(m(!0),g(_,null,M(s,(function(e,n){return m(),g(_,{key:r.getOptionRenderKey(e,r.getOptionIndex(n,l))},[r.isOptionGroup(e)?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,id:i.id+\\\\\\\"_\\\\\\\"+r.getOptionIndex(n,l),style:{height:c?c+\\\\\\\"px\\\\\\\":void 0},class:t.cx(\\\\\\\"optionGroup\\\\\\\"),role:\\\\\\\"option\\\\\\\",ref_for:!0},t.ptm(\\\\\\\"optionGroup\\\\\\\")),[v(t.$slots,\\\\\\\"optiongroup\\\\\\\",{option:e.optionGroup,index:r.getOptionIndex(n,l)},(function(){return[C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"optionGroupLabel\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"optionGroupLabel\\\\\\\")),x(r.getOptionGroupLabel(e.optionGroup)),17)]}))],16,gn)):O((m(),g(\\\\\\\"li\\\\\\\",I({key:1,id:i.id+\\\\\\\"_\\\\\\\"+r.getOptionIndex(n,l),class:t.cx(\\\\\\\"option\\\\\\\",{option:e,focusedOption:r.getOptionIndex(n,l)}),style:{height:c?c+\\\\\\\"px\\\\\\\":void 0},role:\\\\\\\"option\\\\\\\",\\\\\\\"aria-label\\\\\\\":r.getOptionLabel(e),\\\\\\\"aria-selected\\\\\\\":r.isSelected(e),\\\\\\\"aria-disabled\\\\\\\":r.isOptionDisabled(e),\\\\\\\"aria-setsize\\\\\\\":r.ariaSetSize,\\\\\\\"aria-posinset\\\\\\\":r.getAriaPosInset(r.getOptionIndex(n,l)),onClick:function(t){return r.onOptionSelect(t,e)},onMousemove:function(t){return r.onOptionMouseMove(t,r.getOptionIndex(n,l))},\\\\\\\"data-p-selected\\\\\\\":r.isSelected(e),\\\\\\\"data-p-focused\\\\\\\":i.focusedOptionIndex===r.getOptionIndex(n,l),\\\\\\\"data-p-disabled\\\\\\\":r.isOptionDisabled(e),ref_for:!0},r.getPTItemOptions(e,l,n,\\\\\\\"option\\\\\\\")),[t.checkmark?(m(),g(_,{key:0},[r.isSelected(e)?(m(),S(d,I({key:0,class:t.cx(\\\\\\\"optionCheckIcon\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"optionCheckIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):(m(),S(p,I({key:1,class:t.cx(\\\\\\\"optionBlankIcon\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"optionBlankIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))],64)):$(\\\\\\\"\\\\\\\",!0),v(t.$slots,\\\\\\\"option\\\\\\\",{option:e,selected:r.isSelected(e),index:r.getOptionIndex(n,l)},(function(){return[C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"optionLabel\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"optionLabel\\\\\\\")),x(r.getOptionLabel(e)),17)]}))],16,vn)),[[b]])],64)})),128)),i.filterValue\\\\u0026\\\\u0026(!s||s\\\\u0026\\\\u00260===s.length)?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,class:t.cx(\\\\\\\"emptyMessage\\\\\\\"),role:\\\\\\\"option\\\\\\\"},t.ptm(\\\\\\\"emptyMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),[v(t.$slots,\\\\\\\"emptyfilter\\\\\\\",{},(function(){return[y(x(r.emptyFilterMessageText),1)]}))],16)):!t.options||t.options\\\\u0026\\\\u00260===t.options.length?(m(),g(\\\\\\\"li\\\\\\\",I({key:1,class:t.cx(\\\\\\\"emptyMessage\\\\\\\"),role:\\\\\\\"option\\\\\\\"},t.ptm(\\\\\\\"emptyMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),[v(t.$slots,\\\\\\\"empty\\\\\\\",{},(function(){return[y(x(r.emptyMessageText),1)]}))],16)):$(\\\\\\\"\\\\\\\",!0)],16,mn)]})),_:2},[t.$slots.loader?{name:\\\\\\\"loader\\\\\\\",fn:L((function(e){var n=e.options;return[v(t.$slots,\\\\\\\"loader\\\\\\\",{options:n})]})),key:\\\\\\\"0\\\\\\\"}:void 0]),1040,[\\\\\\\"items\\\\\\\",\\\\\\\"style\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"pt\\\\\\\"])],16),v(t.$slots,\\\\\\\"footer\\\\\\\",{value:t.d_value,options:r.visibleOptions}),!t.options||t.options\\\\u0026\\\\u00260===t.options.length?(m(),g(\\\\\\\"span\\\\\\\",I({key:1,role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenEmptyMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.emptyMessageText),17)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"span\\\\\\\",I({role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenSelectedMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.selectedMessageText),17),C(\\\\\\\"span\\\\\\\",I({ref:\\\\\\\"lastHiddenFocusableElementOnOverlay\\\\\\\",role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\",class:\\\\\\\"p-hidden-accessible p-hidden-focusable\\\\\\\",tabindex:0,onFocus:e[8]||(e[8]=function(){return r.onLastHiddenFocus\\\\u0026\\\\u0026r.onLastHiddenFocus.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenLastFocusableEl\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0,\\\\\\\"data-p-hidden-focusable\\\\\\\":!0}),null,16)],16)):$(\\\\\\\"\\\\\\\",!0)]})),_:3},16,[\\\\\\\"onEnter\\\\\\\",\\\\\\\"onAfterEnter\\\\\\\",\\\\\\\"onLeave\\\\\\\",\\\\\\\"onAfterLeave\\\\\\\"])]})),_:3},8,[\\\\\\\"appendTo\\\\\\\"])],16,hn)};var yn=St.extend({name:\\\\\\\"tooltip-directive\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-tooltip {\\\\\\\\n    position: absolute;\\\\\\\\n    display: none;\\\\\\\\n    max-width: \\\\\\\".concat(e(\\\\\\\"tooltip.max.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-right,\\\\\\\\n.p-tooltip-left {\\\\\\\\n    padding: 0 \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-top,\\\\\\\\n.p-tooltip-bottom {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-text {\\\\\\\\n    white-space: pre-line;\\\\\\\\n    word-break: break-word;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"tooltip.color\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"tooltip.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"tooltip.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"tooltip.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-arrow {\\\\\\\\n    position: absolute;\\\\\\\\n    width: 0;\\\\\\\\n    height: 0;\\\\\\\\n    border-color: transparent;\\\\\\\\n    border-style: solid;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-right .p-tooltip-arrow {\\\\\\\\n    margin-top: calc(-1 * \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\");\\\\\\\\n    border-width: \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" 0;\\\\\\\\n    border-right-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-left .p-tooltip-arrow {\\\\\\\\n    margin-top: calc(-1 * \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\");\\\\\\\\n    border-width: \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" 0 \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\";\\\\\\\\n    border-left-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-top .p-tooltip-arrow {\\\\\\\\n    margin-left: calc(-1 * \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\");\\\\\\\\n    border-width: \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" 0 \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\";\\\\\\\\n    border-top-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-bottom-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-tooltip-bottom .p-tooltip-arrow {\\\\\\\\n    margin-left: calc(-1 * \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\");\\\\\\\\n    border-width: 0 \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"tooltip.gutter\\\\\\\"),\\\\\\\";\\\\\\\\n    border-top-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-bottom-color: \\\\\\\").concat(e(\\\\\\\"tooltip.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-tooltip p-component\\\\\\\",arrow:\\\\\\\"p-tooltip-arrow\\\\\\\",text:\\\\\\\"p-tooltip-text\\\\\\\"}});function xn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026t[Symbol.iterator]||t[\\\\\\\"@@iterator\\\\\\\"];if(null!=n){var o,i,r,s,l=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e);else for(;!(a=(o=r.call(n)).done)\\\\u0026\\\\u0026(l.push(o.value),l.length!==e);a=!0);}catch(u){c=!0,i=u}finally{try{if(!a\\\\u0026\\\\u0026null!=n.return\\\\u0026\\\\u0026(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return In(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(t,e):void 0}}(t,e)||function(){throw new TypeError(\\\\\\\"Invalid attempt to destructure non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function In(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}function kn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=wn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=wn(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==wn(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wn(t){return(wn=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}var On=$t.extend({style:yn}).extend(\\\\\\\"tooltip\\\\\\\",{beforeMount:function(t,e){var n,o=this.getTarget(t);if(o.$_ptooltipModifiers=this.getModifiers(e),e.value){if(\\\\\\\"string\\\\\\\"==typeof e.value)o.$_ptooltipValue=e.value,o.$_ptooltipDisabled=!1,o.$_ptooltipEscape=!0,o.$_ptooltipClass=null,o.$_ptooltipFitContent=!0,o.$_ptooltipIdAttr=Et()+\\\\\\\"_tooltip\\\\\\\",o.$_ptooltipShowDelay=0,o.$_ptooltipHideDelay=0,o.$_ptooltipAutoHide=!0;else if(\\\\\\\"object\\\\\\\"===wn(e.value)\\\\u0026\\\\u0026e.value){if(D(e.value.value)||\\\\\\\"\\\\\\\"===e.value.value.trim())return;o.$_ptooltipValue=e.value.value,o.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled\\\\u0026\\\\u0026e.value.disabled,o.$_ptooltipEscape=!!e.value.escape!==e.value.escape||e.value.escape,o.$_ptooltipClass=e.value.class||\\\\\\\"\\\\\\\",o.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent,o.$_ptooltipIdAttr=e.value.id||Et()+\\\\\\\"_tooltip\\\\\\\",o.$_ptooltipShowDelay=e.value.showDelay||0,o.$_ptooltipHideDelay=e.value.hideDelay||0,o.$_ptooltipAutoHide=!!e.value.autoHide!==e.value.autoHide||e.value.autoHide}o.$_ptooltipZIndex=null===(n=e.instance.$primevue)||void 0===n||null===(n=n.config)||void 0===n||null===(n=n.zIndex)||void 0===n?void 0:n.tooltip,this.bindEvents(o,e),t.setAttribute(\\\\\\\"data-pd-tooltip\\\\\\\",!0)}},updated:function(t,e){var n=this.getTarget(t);if(n.$_ptooltipModifiers=this.getModifiers(e),this.unbindEvents(n),e.value)if(\\\\\\\"string\\\\\\\"==typeof e.value)n.$_ptooltipValue=e.value,n.$_ptooltipDisabled=!1,n.$_ptooltipEscape=!0,n.$_ptooltipClass=null,n.$_ptooltipIdAttr=n.$_ptooltipIdAttr||Et()+\\\\\\\"_tooltip\\\\\\\",n.$_ptooltipShowDelay=0,n.$_ptooltipHideDelay=0,n.$_ptooltipAutoHide=!0,this.bindEvents(n,e);else if(\\\\\\\"object\\\\\\\"===wn(e.value)\\\\u0026\\\\u0026e.value){if(D(e.value.value)||\\\\\\\"\\\\\\\"===e.value.value.trim())return void this.unbindEvents(n,e);n.$_ptooltipValue=e.value.value,n.$_ptooltipDisabled=!!e.value.disabled===e.value.disabled\\\\u0026\\\\u0026e.value.disabled,n.$_ptooltipEscape=!!e.value.escape!==e.value.escape||e.value.escape,n.$_ptooltipClass=e.value.class||\\\\\\\"\\\\\\\",n.$_ptooltipFitContent=!!e.value.fitContent!==e.value.fitContent||e.value.fitContent,n.$_ptooltipIdAttr=e.value.id||n.$_ptooltipIdAttr||Et()+\\\\\\\"_tooltip\\\\\\\",n.$_ptooltipShowDelay=e.value.showDelay||0,n.$_ptooltipHideDelay=e.value.hideDelay||0,n.$_ptooltipAutoHide=!!e.value.autoHide!==e.value.autoHide||e.value.autoHide,this.bindEvents(n,e)}},unmounted:function(t,e){var n=this.getTarget(t);this.remove(n),this.unbindEvents(n,e),n.$_ptooltipScrollHandler\\\\u0026\\\\u0026(n.$_ptooltipScrollHandler.destroy(),n.$_ptooltipScrollHandler=null)},timer:void 0,methods:{bindEvents:function(t,e){var n=this;t.$_ptooltipModifiers.focus?(t.$_focusevent=function(t){return n.onFocus(t,e)},t.addEventListener(\\\\\\\"focus\\\\\\\",t.$_focusevent),t.addEventListener(\\\\\\\"blur\\\\\\\",this.onBlur.bind(this))):(t.$_mouseenterevent=function(t){return n.onMouseEnter(t,e)},t.addEventListener(\\\\\\\"mouseenter\\\\\\\",t.$_mouseenterevent),t.addEventListener(\\\\\\\"mouseleave\\\\\\\",this.onMouseLeave.bind(this)),t.addEventListener(\\\\\\\"click\\\\\\\",this.onClick.bind(this))),t.addEventListener(\\\\\\\"keydown\\\\\\\",this.onKeydown.bind(this))},unbindEvents:function(t){t.$_ptooltipModifiers.focus?(t.removeEventListener(\\\\\\\"focus\\\\\\\",t.$_focusevent),t.$_focusevent=null,t.removeEventListener(\\\\\\\"blur\\\\\\\",this.onBlur.bind(this))):(t.removeEventListener(\\\\\\\"mouseenter\\\\\\\",t.$_mouseenterevent),t.$_mouseenterevent=null,t.removeEventListener(\\\\\\\"mouseleave\\\\\\\",this.onMouseLeave.bind(this)),t.removeEventListener(\\\\\\\"click\\\\\\\",this.onClick.bind(this))),t.removeEventListener(\\\\\\\"keydown\\\\\\\",this.onKeydown.bind(this))},bindScrollListener:function(t){var e=this;t.$_ptooltipScrollHandler||(t.$_ptooltipScrollHandler=new Tt(t,(function(){e.hide(t)}))),t.$_ptooltipScrollHandler.bindScrollListener()},unbindScrollListener:function(t){t.$_ptooltipScrollHandler\\\\u0026\\\\u0026t.$_ptooltipScrollHandler.unbindScrollListener()},onMouseEnter:function(t,e){var n=t.currentTarget,o=n.$_ptooltipShowDelay;this.show(n,e,o)},onMouseLeave:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;e.$_ptooltipAutoHide?this.hide(e,n):!(\\\\\\\"tooltip\\\\\\\"===q(t.target,\\\\\\\"data-pc-name\\\\\\\")||\\\\\\\"arrow\\\\\\\"===q(t.target,\\\\\\\"data-pc-section\\\\\\\")||\\\\\\\"text\\\\\\\"===q(t.target,\\\\\\\"data-pc-section\\\\\\\")||\\\\\\\"tooltip\\\\\\\"===q(t.relatedTarget,\\\\\\\"data-pc-name\\\\\\\")||\\\\\\\"arrow\\\\\\\"===q(t.relatedTarget,\\\\\\\"data-pc-section\\\\\\\")||\\\\\\\"text\\\\\\\"===q(t.relatedTarget,\\\\\\\"data-pc-section\\\\\\\"))\\\\u0026\\\\u0026this.hide(e,n)},onFocus:function(t,e){var n=t.currentTarget,o=n.$_ptooltipShowDelay;this.show(n,e,o)},onBlur:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;this.hide(e,n)},onClick:function(t){var e=t.currentTarget,n=e.$_ptooltipHideDelay;this.hide(e,n)},onKeydown:function(t){var e=t.currentTarget.$_ptooltipHideDelay;\\\\\\\"Escape\\\\\\\"===t.code\\\\u0026\\\\u0026this.hide(t.currentTarget,e)},tooltipActions:function(t,e){if(!t.$_ptooltipDisabled\\\\u0026\\\\u0026ht(t)){var n=this.create(t,e);this.align(t),!this.isUnstyled()\\\\u0026\\\\u0026ft(n,250);var o=this;window.addEventListener(\\\\\\\"resize\\\\\\\",(function e(){ct()||o.hide(t),window.removeEventListener(\\\\\\\"resize\\\\\\\",e)})),n.addEventListener(\\\\\\\"mouseleave\\\\\\\",(function e(){o.hide(t),n.removeEventListener(\\\\\\\"mouseleave\\\\\\\",e),t.removeEventListener(\\\\\\\"mouseenter\\\\\\\",t.$_mouseenterevent),setTimeout((function(){return t.addEventListener(\\\\\\\"mouseenter\\\\\\\",t.$_mouseenterevent)}),50)})),this.bindScrollListener(t),Q.set(\\\\\\\"tooltip\\\\\\\",n,t.$_ptooltipZIndex)}},show:function(t,e,n){var o=this;void 0!==n?this.timer=setTimeout((function(){return o.tooltipActions(t,e)}),n):this.tooltipActions(t,e)},tooltipRemoval:function(t){this.remove(t),this.unbindScrollListener(t)},hide:function(t,e){var n=this;clearTimeout(this.timer),void 0!==e?setTimeout((function(){return n.tooltipRemoval(t)}),e):this.tooltipRemoval(t)},getTooltipElement:function(t){return document.getElementById(t.$_ptooltipId)},create:function(t){var e=t.$_ptooltipModifiers,n=B(\\\\\\\"div\\\\\\\",{class:!this.isUnstyled()\\\\u0026\\\\u0026this.cx(\\\\\\\"arrow\\\\\\\"),\\\\\\\"p-bind\\\\\\\":this.ptm(\\\\\\\"arrow\\\\\\\",{context:e})}),o=B(\\\\\\\"div\\\\\\\",{class:!this.isUnstyled()\\\\u0026\\\\u0026this.cx(\\\\\\\"text\\\\\\\"),\\\\\\\"p-bind\\\\\\\":this.ptm(\\\\\\\"text\\\\\\\",{context:e})});t.$_ptooltipEscape?(o.innerHTML=\\\\\\\"\\\\\\\",o.appendChild(document.createTextNode(t.$_ptooltipValue))):o.innerHTML=t.$_ptooltipValue;var i=B(\\\\\\\"div\\\\\\\",kn(kn({id:t.$_ptooltipIdAttr,role:\\\\\\\"tooltip\\\\\\\",style:{display:\\\\\\\"inline-block\\\\\\\",width:t.$_ptooltipFitContent?\\\\\\\"fit-content\\\\\\\":void 0,pointerEvents:!this.isUnstyled()\\\\u0026\\\\u0026t.$_ptooltipAutoHide\\\\u0026\\\\u0026\\\\\\\"none\\\\\\\"},class:[!this.isUnstyled()\\\\u0026\\\\u0026this.cx(\\\\\\\"root\\\\\\\"),t.$_ptooltipClass]},this.$attrSelector,\\\\\\\"\\\\\\\"),\\\\\\\"p-bind\\\\\\\",this.ptm(\\\\\\\"root\\\\\\\",{context:e})),n,o);return document.body.appendChild(i),t.$_ptooltipId=i.id,this.$el=i,i},remove:function(t){if(t){var e=this.getTooltipElement(t);e\\\\u0026\\\\u0026e.parentElement\\\\u0026\\\\u0026(Q.clear(e),document.body.removeChild(e)),t.$_ptooltipId=null}},align:function(t){var e=t.$_ptooltipModifiers;e.top?(this.alignTop(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026this.alignTop(t))):e.left?(this.alignLeft(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignRight(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026this.alignLeft(t))))):e.bottom?(this.alignBottom(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026this.alignBottom(t))):(this.alignRight(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignLeft(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignTop(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026(this.alignBottom(t),this.isOutOfBounds(t)\\\\u0026\\\\u0026this.alignRight(t)))))},getHostOffset:function(t){var e=t.getBoundingClientRect();return{left:e.left+bt(),top:e.top+mt()}},alignRight:function(t){this.preAlign(t,\\\\\\\"right\\\\\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+G(t),i=n.top+(U(t)-U(e))/2;e.style.left=o+\\\\\\\"px\\\\\\\",e.style.top=i+\\\\\\\"px\\\\\\\"},alignLeft:function(t){this.preAlign(t,\\\\\\\"left\\\\\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left-G(e),i=n.top+(U(t)-U(e))/2;e.style.left=o+\\\\\\\"px\\\\\\\",e.style.top=i+\\\\\\\"px\\\\\\\"},alignTop:function(t){this.preAlign(t,\\\\\\\"top\\\\\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+(G(t)-G(e))/2,i=n.top-U(e);e.style.left=o+\\\\\\\"px\\\\\\\",e.style.top=i+\\\\\\\"px\\\\\\\"},alignBottom:function(t){this.preAlign(t,\\\\\\\"bottom\\\\\\\");var e=this.getTooltipElement(t),n=this.getHostOffset(t),o=n.left+(G(t)-G(e))/2,i=n.top+U(t);e.style.left=o+\\\\\\\"px\\\\\\\",e.style.top=i+\\\\\\\"px\\\\\\\"},preAlign:function(t,e){var n=this.getTooltipElement(t);n.style.left=\\\\\\\"-999px\\\\\\\",n.style.top=\\\\\\\"-999px\\\\\\\",H(n,\\\\\\\"p-tooltip-\\\\\\\".concat(n.$_ptooltipPosition)),!this.isUnstyled()\\\\u0026\\\\u0026W(n,\\\\\\\"p-tooltip-\\\\\\\".concat(e)),n.$_ptooltipPosition=e,n.setAttribute(\\\\\\\"data-p-position\\\\\\\",e);var o=J(n,'[data-pc-section=\\\\\\\"arrow\\\\\\\"]');o.style.top=\\\\\\\"bottom\\\\\\\"===e?\\\\\\\"0\\\\\\\":\\\\\\\"right\\\\\\\"===e||\\\\\\\"left\\\\\\\"===e||\\\\\\\"right\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"left\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"top\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"bottom\\\\\\\"!==e?\\\\\\\"50%\\\\\\\":null,o.style.bottom=\\\\\\\"top\\\\\\\"===e?\\\\\\\"0\\\\\\\":null,o.style.left=\\\\\\\"right\\\\\\\"===e||\\\\\\\"right\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"left\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"top\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"bottom\\\\\\\"!==e?\\\\\\\"0\\\\\\\":\\\\\\\"top\\\\\\\"===e||\\\\\\\"bottom\\\\\\\"===e?\\\\\\\"50%\\\\\\\":null,o.style.right=\\\\\\\"left\\\\\\\"===e?\\\\\\\"0\\\\\\\":null},isOutOfBounds:function(t){var e=this.getTooltipElement(t),n=e.getBoundingClientRect(),o=n.top,i=n.left,r=G(e),s=U(e),l=gt();return i+r\\\\u003el.width||i\\\\u003c0||o\\\\u003c0||o+s\\\\u003el.height},getTarget:function(t){var e;return vt(t,\\\\\\\"p-inputwrapper\\\\\\\")\\\\u0026\\\\u0026null!==(e=J(t,\\\\\\\"input\\\\\\\"))\\\\u0026\\\\u0026void 0!==e?e:t},getModifiers:function(t){return t.modifiers\\\\u0026\\\\u0026Object.keys(t.modifiers).length?t.modifiers:t.arg\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"===wn(t.arg)?Object.entries(t.arg).reduce((function(t,e){var n=xn(e,2),o=n[0],i=n[1];return\\\\\\\"event\\\\\\\"!==o\\\\u0026\\\\u0026\\\\\\\"position\\\\\\\"!==o||(t[i]=!0),t}),{}):{}}}}),Sn=St.extend({name:\\\\\\\"checkbox\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-checkbox {\\\\\\\\n    position: relative;\\\\\\\\n    display: inline-flex;\\\\\\\\n    user-select: none;\\\\\\\\n    vertical-align: bottom;\\\\\\\\n    width: \\\\\\\".concat(e(\\\\\\\"checkbox.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-input {\\\\\\\\n    cursor: pointer;\\\\\\\\n    appearance: none;\\\\\\\\n    position: absolute;\\\\\\\\n    inset-block-start: 0;\\\\\\\\n    inset-inline-start: 0;\\\\\\\\n    width: 100%;\\\\\\\\n    height: 100%;\\\\\\\\n    padding: 0;\\\\\\\\n    margin: 0;\\\\\\\\n    opacity: 0;\\\\\\\\n    z-index: 1;\\\\\\\\n    outline: 0 none;\\\\\\\\n    border: 1px solid transparent;\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"checkbox.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-box {\\\\\\\\n    display: flex;\\\\\\\\n    justify-content: center;\\\\\\\\n    align-items: center;\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"checkbox.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"checkbox.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.background\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.height\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"checkbox.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-icon {\\\\\\\\n    transition-duration: \\\\\\\").concat(e(\\\\\\\"checkbox.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked .p-checkbox-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.checked.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.checked.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"checkbox.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-invalid \\\\u003e .p-checkbox-box {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-variant-filled .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.filled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked.p-variant-filled .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-disabled .p-checkbox-box {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"checkbox.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"checkbox.checked.disabled.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-sm,\\\\\\\\n.p-checkbox-sm .p-checkbox-box {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.sm.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.sm.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-sm .p-checkbox-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.sm.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.sm.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.sm.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-lg,\\\\\\\\n.p-checkbox-lg .p-checkbox-box {\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.lg.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.lg.height\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-checkbox-lg .p-checkbox-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.lg.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.lg.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"checkbox.icon.lg.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-checkbox p-component\\\\\\\",{\\\\\\\"p-checkbox-checked\\\\\\\":e.checked,\\\\\\\"p-disabled\\\\\\\":n.disabled,\\\\\\\"p-invalid\\\\\\\":e.$pcCheckboxGroup?e.$pcCheckboxGroup.$invalid:e.$invalid,\\\\\\\"p-variant-filled\\\\\\\":\\\\\\\"filled\\\\\\\"===e.$variant,\\\\\\\"p-checkbox-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-checkbox-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size}]},box:\\\\\\\"p-checkbox-box\\\\\\\",input:\\\\\\\"p-checkbox-input\\\\\\\",icon:\\\\\\\"p-checkbox-icon\\\\\\\"}});function Ln(t){return function(t){if(Array.isArray(t))return $n(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return $n(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$n(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function $n(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}var Cn={name:\\\\\\\"Checkbox\\\\\\\",extends:{name:\\\\\\\"BaseCheckbox\\\\\\\",extends:zt,props:{value:null,binary:Boolean,indeterminate:{type:Boolean,default:!1},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Sn,provide:function(){return{$pcCheckbox:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\",\\\\\\\"focus\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"update:indeterminate\\\\\\\"],inject:{$pcCheckboxGroup:{default:void 0}},data:function(){return{d_indeterminate:this.indeterminate}},watch:{indeterminate:function(t){this.d_indeterminate=t}},methods:{getPTOptions:function(t){return(\\\\\\\"root\\\\\\\"===t?this.ptmi:this.ptm)(t,{context:{checked:this.checked,indeterminate:this.d_indeterminate,disabled:this.disabled}})},onChange:function(t){var e=this;if(!this.disabled\\\\u0026\\\\u0026!this.readonly){var n,o=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;n=this.binary?this.d_indeterminate?this.trueValue:this.checked?this.falseValue:this.trueValue:this.checked||this.d_indeterminate?o.filter((function(t){return!dt(t,e.value)})):o?[].concat(Ln(o),[this.value]):[this.value],this.d_indeterminate\\\\u0026\\\\u0026(this.d_indeterminate=!1,this.$emit(\\\\\\\"update:indeterminate\\\\\\\",this.d_indeterminate)),this.$pcCheckboxGroup?this.$pcCheckboxGroup.writeValue(n,t):this.writeValue(n,t),this.$emit(\\\\\\\"change\\\\\\\",t)}},onFocus:function(t){this.$emit(\\\\\\\"focus\\\\\\\",t)},onBlur:function(t){var e,n;this.$emit(\\\\\\\"blur\\\\\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)}},computed:{groupName:function(){return this.$pcCheckboxGroup?this.$pcCheckboxGroup.groupName:this.$formName},checked:function(){var t=this.$pcCheckboxGroup?this.$pcCheckboxGroup.d_value:this.d_value;return!this.d_indeterminate\\\\u0026\\\\u0026(this.binary?t===this.trueValue:yt(this.value,t))}},components:{CheckIcon:Ft,MinusIcon:Kt}},zn=[\\\\\\\"data-p-checked\\\\\\\",\\\\\\\"data-p-indeterminate\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"],En=[\\\\\\\"id\\\\\\\",\\\\\\\"value\\\\\\\",\\\\\\\"name\\\\\\\",\\\\\\\"checked\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"readonly\\\\\\\",\\\\\\\"required\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-invalid\\\\\\\",\\\\\\\"aria-checked\\\\\\\"];Cn.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"CheckIcon\\\\\\\"),l=k(\\\\\\\"MinusIcon\\\\\\\");return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\")},r.getPTOptions(\\\\\\\"root\\\\\\\"),{\\\\\\\"data-p-checked\\\\\\\":r.checked,\\\\\\\"data-p-indeterminate\\\\\\\":i.d_indeterminate||void 0,\\\\\\\"data-p-disabled\\\\\\\":t.disabled}),[C(\\\\\\\"input\\\\\\\",I({id:t.inputId,type:\\\\\\\"checkbox\\\\\\\",class:[t.cx(\\\\\\\"input\\\\\\\"),t.inputClass],style:t.inputStyle,value:t.value,name:r.groupName,checked:r.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,required:t.required,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-invalid\\\\\\\":t.invalid||void 0,\\\\\\\"aria-checked\\\\\\\":i.d_indeterminate?\\\\\\\"mixed\\\\\\\":void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\\\u0026\\\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)}),onChange:e[2]||(e[2]=function(){return r.onChange\\\\u0026\\\\u0026r.onChange.apply(r,arguments)})},r.getPTOptions(\\\\\\\"input\\\\\\\")),null,16,En),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"box\\\\\\\")},r.getPTOptions(\\\\\\\"box\\\\\\\")),[v(t.$slots,\\\\\\\"icon\\\\\\\",{checked:r.checked,indeterminate:i.d_indeterminate,class:z(t.cx(\\\\\\\"icon\\\\\\\"))},(function(){return[r.checked?(m(),S(s,I({key:0,class:t.cx(\\\\\\\"icon\\\\\\\")},r.getPTOptions(\\\\\\\"icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):i.d_indeterminate?(m(),S(l,I({key:1,class:t.cx(\\\\\\\"icon\\\\\\\")},r.getPTOptions(\\\\\\\"icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)]}))],16)],16,zn)};var Tn=St.extend({name:\\\\\\\"chip\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-chip {\\\\\\\\n    display: inline-flex;\\\\\\\\n    align-items: center;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"chip.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"chip.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"chip.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"chip.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"chip.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"chip.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"chip.icon.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"chip.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"chip.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip-image {\\\\\\\\n    border-radius: 50%;\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"chip.image.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"chip.image.height\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-inline-start: calc(-1 * \\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\");\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip:has(.p-chip-remove-icon) {\\\\\\\\n    padding-inline-end: \\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip:has(.p-chip-image) {\\\\\\\\n    padding-block-start: calc(\\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n    padding-block-end: calc(\\\\\\\").concat(e(\\\\\\\"chip.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip-remove-icon {\\\\\\\\n    cursor: pointer;\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: 50%;\\\\\\\\n    transition: outline-color \\\\\\\").concat(e(\\\\\\\"chip.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"chip.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-chip-remove-icon:focus-visible {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"chip.remove.icon.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-chip p-component\\\\\\\",image:\\\\\\\"p-chip-image\\\\\\\",icon:\\\\\\\"p-chip-icon\\\\\\\",label:\\\\\\\"p-chip-label\\\\\\\",removeIcon:\\\\\\\"p-chip-remove-icon\\\\\\\"}}),_n={name:\\\\\\\"Chip\\\\\\\",extends:{name:\\\\\\\"BaseChip\\\\\\\",extends:Lt,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:Tn,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"remove\\\\\\\"],data:function(){return{visible:!0}},methods:{onKeydown:function(t){\\\\\\\"Enter\\\\\\\"!==t.key\\\\u0026\\\\u0026\\\\\\\"Backspace\\\\\\\"!==t.key||this.close(t)},close:function(t){this.visible=!1,this.$emit(\\\\\\\"remove\\\\\\\",t)}},components:{TimesCircleIcon:Dt}},Mn=[\\\\\\\"aria-label\\\\\\\"],Vn=[\\\\\\\"src\\\\\\\"];_n.render=function(t,e,n,o,i,r){return i.visible?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"root\\\\\\\"),\\\\\\\"aria-label\\\\\\\":t.label},t.ptmi(\\\\\\\"root\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\",{},(function(){return[t.image?(m(),g(\\\\\\\"img\\\\\\\",I({key:0,src:t.image},t.ptm(\\\\\\\"image\\\\\\\"),{class:t.cx(\\\\\\\"image\\\\\\\")}),null,16,Vn)):t.$slots.icon?(m(),S(E(t.$slots.icon),I({key:1,class:t.cx(\\\\\\\"icon\\\\\\\")},t.ptm(\\\\\\\"icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):t.icon?(m(),g(\\\\\\\"span\\\\\\\",I({key:2,class:[t.cx(\\\\\\\"icon\\\\\\\"),t.icon]},t.ptm(\\\\\\\"icon\\\\\\\")),null,16)):$(\\\\\\\"\\\\\\\",!0),t.label?(m(),g(\\\\\\\"div\\\\\\\",I({key:3,class:t.cx(\\\\\\\"label\\\\\\\")},t.ptm(\\\\\\\"label\\\\\\\")),x(t.label),17)):$(\\\\\\\"\\\\\\\",!0)]})),t.removable?v(t.$slots,\\\\\\\"removeicon\\\\\\\",{key:0,removeCallback:r.close,keydownCallback:r.onKeydown},(function(){return[(m(),S(E(t.removeIcon?\\\\\\\"span\\\\\\\":\\\\\\\"TimesCircleIcon\\\\\\\"),I({class:[t.cx(\\\\\\\"removeIcon\\\\\\\"),t.removeIcon],onClick:r.close,onKeydown:r.onKeydown},t.ptm(\\\\\\\"removeIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\",\\\\\\\"onClick\\\\\\\",\\\\\\\"onKeydown\\\\\\\"]))]})):$(\\\\\\\"\\\\\\\",!0)],16,Mn)):$(\\\\\\\"\\\\\\\",!0)};var Pn=St.extend({name:\\\\\\\"multiselect\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-multiselect {\\\\\\\\n    display: inline-flex;\\\\\\\\n    cursor: pointer;\\\\\\\\n    position: relative;\\\\\\\\n    user-select: none;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"multiselect.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"multiselect.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"multiselect.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect:not(.p-disabled):hover {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"multiselect.hover.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect:not(.p-disabled).p-focus {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"multiselect.focus.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"multiselect.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-variant-filled {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.filled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-variant-filled:not(.p-disabled):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.filled.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-variant-filled.p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.filled.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-invalid {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"multiselect.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-dropdown {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    flex-shrink: 0;\\\\\\\\n    background: transparent;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.dropdown.color\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"multiselect.dropdown.width\\\\\\\"),\\\\\\\";\\\\\\\\n    border-start-end-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border-end-end-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-clear-icon {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 50%;\\\\\\\\n    margin-top: -0.5rem;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.clear.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    inset-inline-end: \\\\\\\").concat(e(\\\\\\\"multiselect.dropdown.width\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label-container {\\\\\\\\n    overflow: hidden;\\\\\\\\n    flex: 1 1 auto;\\\\\\\\n    cursor: pointer;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    gap: calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n    white-space: nowrap;\\\\\\\\n    cursor: pointer;\\\\\\\\n    overflow: hidden;\\\\\\\\n    text-overflow: ellipsis;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"multiselect.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label.p-placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-invalid .p-multiselect-label.p-placeholder {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.invalid.placeholder.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect.p-disabled .p-multiselect-label {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label-empty {\\\\\\\\n    overflow: hidden;\\\\\\\\n    visibility: hidden;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect .p-multiselect-overlay {\\\\\\\\n    min-width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-overlay {\\\\\\\\n    position: absolute;\\\\\\\\n    top: 0;\\\\\\\\n    left: 0;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"multiselect.overlay.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-header {\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.list.header.padding\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-header .p-checkbox {\\\\\\\\n    margin-inline-end: \\\\\\\").concat(e(\\\\\\\"multiselect.option.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-filter-container {\\\\\\\\n    flex: 1 1 auto;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-filter {\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-list-container {\\\\\\\\n    overflow: auto;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-list {\\\\\\\\n    margin: 0;\\\\\\\\n    padding: 0;\\\\\\\\n    list-style-type: none;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.list.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"multiselect.list.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option {\\\\\\\\n    cursor: pointer;\\\\\\\\n    font-weight: normal;\\\\\\\\n    white-space: nowrap;\\\\\\\\n    position: relative;\\\\\\\\n    overflow: hidden;\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"multiselect.option.gap\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.option.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 0 none;\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: transparent;\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"multiselect.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.option.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.option.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option.p-multiselect-option-selected {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.option.selected.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.selected.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option.p-multiselect-option-selected.p-focus {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.option.selected.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.selected.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-option-group {\\\\\\\\n    cursor: auto;\\\\\\\\n    margin: 0;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.option.group.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"multiselect.option.group.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"multiselect.option.group.color\\\\\\\"),\\\\\\\";\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"multiselect.option.group.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-empty-message {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"multiselect.empty.message.padding\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label .p-chip {\\\\\\\\n    padding-block-start: calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n    padding-block-end: calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"multiselect.chip.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-label:has(.p-chip) {\\\\\\\\n    padding: calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.y\\\\\\\"),\\\\\\\" / 2) calc(\\\\\\\").concat(e(\\\\\\\"multiselect.padding.x\\\\\\\"),\\\\\\\" / 2);\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-fluid {\\\\\\\\n    display: flex;\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-sm .p-multiselect-label {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-sm .p-multiselect-dropdown .p-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"multiselect.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-lg .p-multiselect-label {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-block: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.padding.y\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.padding.x\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-multiselect-lg .p-multiselect-dropdown .p-icon {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"multiselect.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-multiselect p-component p-inputwrapper\\\\\\\",{\\\\\\\"p-multiselect-display-chip\\\\\\\":\\\\\\\"chip\\\\\\\"===n.display,\\\\\\\"p-disabled\\\\\\\":n.disabled,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-variant-filled\\\\\\\":\\\\\\\"filled\\\\\\\"===e.$variant,\\\\\\\"p-focus\\\\\\\":e.focused,\\\\\\\"p-inputwrapper-filled\\\\\\\":e.$filled,\\\\\\\"p-inputwrapper-focus\\\\\\\":e.focused||e.overlayVisible,\\\\\\\"p-multiselect-open\\\\\\\":e.overlayVisible,\\\\\\\"p-multiselect-fluid\\\\\\\":e.$fluid,\\\\\\\"p-multiselect-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-multiselect-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size}]},labelContainer:\\\\\\\"p-multiselect-label-container\\\\\\\",label:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-multiselect-label\\\\\\\",{\\\\\\\"p-placeholder\\\\\\\":e.label===n.placeholder,\\\\\\\"p-multiselect-label-empty\\\\\\\":!(n.placeholder||n.modelValue\\\\u0026\\\\u00260!==n.modelValue.length)}]},clearIcon:\\\\\\\"p-multiselect-clear-icon\\\\\\\",chipItem:\\\\\\\"p-multiselect-chip-item\\\\\\\",pcChip:\\\\\\\"p-multiselect-chip\\\\\\\",chipIcon:\\\\\\\"p-multiselect-chip-icon\\\\\\\",dropdown:\\\\\\\"p-multiselect-dropdown\\\\\\\",loadingIcon:\\\\\\\"p-multiselect-loading-icon\\\\\\\",dropdownIcon:\\\\\\\"p-multiselect-dropdown-icon\\\\\\\",overlay:\\\\\\\"p-multiselect-overlay p-component\\\\\\\",header:\\\\\\\"p-multiselect-header\\\\\\\",pcFilterContainer:\\\\\\\"p-multiselect-filter-container\\\\\\\",pcFilter:\\\\\\\"p-multiselect-filter\\\\\\\",listContainer:\\\\\\\"p-multiselect-list-container\\\\\\\",list:\\\\\\\"p-multiselect-list\\\\\\\",optionGroup:\\\\\\\"p-multiselect-option-group\\\\\\\",option:function(t){var e=t.instance,n=t.option,o=t.index,i=t.getItemOptions,r=t.props;return[\\\\\\\"p-multiselect-option\\\\\\\",{\\\\\\\"p-multiselect-option-selected\\\\\\\":e.isSelected(n)\\\\u0026\\\\u0026r.highlightOnSelect,\\\\\\\"p-focus\\\\\\\":e.focusedOptionIndex===e.getOptionIndex(o,i),\\\\\\\"p-disabled\\\\\\\":e.isOptionDisabled(n)}]},emptyMessage:\\\\\\\"p-multiselect-empty-message\\\\\\\"},inlineStyles:{root:function(t){return{position:\\\\\\\"self\\\\\\\"===t.props.appendTo?\\\\\\\"relative\\\\\\\":void 0}}}});function Fn(t){return(Fn=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e\\\\u0026\\\\u0026(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function Kn(t){for(var e=1;e\\\\u003carguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?An(Object(n),!0).forEach((function(e){Dn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Fn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Fn(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Fn(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bn(t){return function(t){if(Array.isArray(t))return Hn(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return Hn(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hn(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function Hn(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}var jn={name:\\\\\\\"MultiSelect\\\\\\\",extends:{name:\\\\\\\"BaseMultiSelect\\\\\\\",extends:zt,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:\\\\\\\"14rem\\\\\\\"},placeholder:String,inputId:{type:String,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},overlayClass:{type:String,default:null},overlayStyle:{type:null,default:null},dataKey:null,showClear:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},resetFilterOnClear:{type:Boolean,default:!1},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:\\\\\\\"contains\\\\\\\"},filterFields:{type:Array,default:null},appendTo:{type:[String,Object],default:\\\\\\\"body\\\\\\\"},display:{type:String,default:\\\\\\\"comma\\\\\\\"},selectedItemsLabel:{type:String,default:null},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},checkboxIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},chipIcon:{type:String,default:void 0},selectAll:{type:Boolean,default:null},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!1},autoFilterFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},highlightOnSelect:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:Pn,provide:function(){return{$pcMultiSelect:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\",\\\\\\\"focus\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"before-show\\\\\\\",\\\\\\\"before-hide\\\\\\\",\\\\\\\"show\\\\\\\",\\\\\\\"hide\\\\\\\",\\\\\\\"filter\\\\\\\",\\\\\\\"selectall-change\\\\\\\"],inject:{$pcFluid:{default:null}},outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,startRangeIndex:-1,searchTimeout:null,searchValue:\\\\\\\"\\\\\\\",selectOnFocus:!1,data:function(){return{id:this.$attrs.id,clicked:!1,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{\\\\\\\"$attrs.id\\\\\\\":function(t){this.id=t||Et()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||Et(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler\\\\u0026\\\\u0026(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay\\\\u0026\\\\u0026(Q.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(t,e){return this.virtualScrollerDisabled?t:e\\\\u0026\\\\u0026e(t).index},getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t,e){return this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t)+\\\\\\\"_\\\\\\\".concat(e)},getHeaderCheckboxPTOptions:function(t){return this.ptm(t,{context:{selected:this.allSelected}})},getCheckboxPTOptions:function(t,e,n,o){return this.ptm(o,{context:{selected:this.isSelected(t),focused:this.focusedOptionIndex===this.getOptionIndex(n,e),disabled:this.isOptionDisabled(t)}})},isOptionDisabled:function(t){return!(!this.maxSelectionLimitReached||this.isSelected(t))||!!this.optionDisabled\\\\u0026\\\\u0026tt(t,this.optionDisabled)},isOptionGroup:function(t){return this.optionGroupLabel\\\\u0026\\\\u0026t.optionGroup\\\\u0026\\\\u0026t.group},getOptionGroupLabel:function(t){return tt(t,this.optionGroupLabel)},getOptionGroupChildren:function(t){return tt(t,this.optionGroupChildren)},getAriaPosInset:function(t){var e=this;return(this.optionGroupLabel?t-this.visibleOptions.slice(0,t).filter((function(t){return e.isOptionGroup(t)})).length:t)+1},show:function(t){this.$emit(\\\\\\\"before-show\\\\\\\"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),t\\\\u0026\\\\u0026et(this.$refs.focusInput)},hide:function(t){var e=this;setTimeout((function(){e.$emit(\\\\\\\"before-hide\\\\\\\"),e.overlayVisible=!1,e.clicked=!1,e.focusedOptionIndex=-1,e.searchValue=\\\\\\\"\\\\\\\",e.resetFilterOnHide\\\\u0026\\\\u0026(e.filterValue=null),t\\\\u0026\\\\u0026et(e.$refs.focusInput)}),0)},onFocus:function(t){this.disabled||(this.focused=!0,this.overlayVisible\\\\u0026\\\\u0026(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex(),this.scrollInView(this.focusedOptionIndex)),this.$emit(\\\\\\\"focus\\\\\\\",t))},onBlur:function(t){var e,n;this.clicked=!1,this.focused=!1,this.focusedOptionIndex=-1,this.searchValue=\\\\\\\"\\\\\\\",this.$emit(\\\\\\\"blur\\\\\\\",t),null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n)},onKeyDown:function(t){var e=this;if(this.disabled)t.preventDefault();else{var n=t.metaKey||t.ctrlKey;switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t);break;case\\\\\\\"PageDown\\\\\\\":this.onPageDownKey(t);break;case\\\\\\\"PageUp\\\\\\\":this.onPageUpKey(t);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":case\\\\\\\"Space\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t);break;case\\\\\\\"ShiftLeft\\\\\\\":case\\\\\\\"ShiftRight\\\\\\\":this.onShiftKey(t);break;default:if(\\\\\\\"KeyA\\\\\\\"===t.code\\\\u0026\\\\u0026n){var o=this.visibleOptions.filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,o),t.preventDefault();break}!n\\\\u0026\\\\u0026ot(t.key)\\\\u0026\\\\u0026(!this.overlayVisible\\\\u0026\\\\u0026this.show(),this.searchOptions(t),t.preventDefault())}this.clicked=!1}},onContainerClick:function(t){this.disabled||this.loading||\\\\\\\"INPUT\\\\\\\"===t.target.tagName||\\\\\\\"clearicon\\\\\\\"===t.target.getAttribute(\\\\\\\"data-pc-section\\\\\\\")||t.target.closest('[data-pc-section=\\\\\\\"clearicon\\\\\\\"]')||(this.overlay\\\\u0026\\\\u0026this.overlay.contains(t.target)||(this.overlayVisible?this.hide(!0):this.show(!0)),this.clicked=!0)},onClearClick:function(t){this.updateModel(t,null),this.resetFilterOnClear\\\\u0026\\\\u0026(this.filterValue=null)},onFirstHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?it(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])'):this.$refs.focusInput;et(e)},onLastHiddenFocus:function(t){var e=t.relatedTarget===this.$refs.focusInput?rt(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])'):this.$refs.focusInput;et(e)},onOptionSelect:function(t,e){var n=this,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]?arguments[2]:-1,i=arguments.length\\\\u003e3\\\\u0026\\\\u0026void 0!==arguments[3]\\\\u0026\\\\u0026arguments[3];if(!this.disabled\\\\u0026\\\\u0026!this.isOptionDisabled(e)){var r=null;r=this.isSelected(e)?this.d_value.filter((function(t){return!dt(t,n.getOptionValue(e),n.equalityKey)})):[].concat(Bn(this.d_value||[]),[this.getOptionValue(e)]),this.updateModel(t,r),-1!==o\\\\u0026\\\\u0026(this.focusedOptionIndex=o),i\\\\u0026\\\\u0026et(this.$refs.focusInput)}},onOptionMouseMove:function(t,e){this.focusOnHover\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,e)},onOptionSelectRange:function(t){var e=this,n=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:-1,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]?arguments[2]:-1;if(-1===n\\\\u0026\\\\u0026(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o\\\\u0026\\\\u0026(o=this.findNearestSelectedOptionIndex(n)),-1!==n\\\\u0026\\\\u0026-1!==o){var i=Math.min(n,o),r=Math.max(n,o),s=this.visibleOptions.slice(i,r+1).filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,s)}},onFilterChange:function(t){var e=t.target.value;this.filterValue=e,this.focusedOptionIndex=-1,this.$emit(\\\\\\\"filter\\\\\\\",{originalEvent:t,value:e}),!this.virtualScrollerDisabled\\\\u0026\\\\u0026this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(t){switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t,!0);break;case\\\\\\\"ArrowLeft\\\\\\\":case\\\\\\\"ArrowRight\\\\\\\":this.onArrowLeftKey(t,!0);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t,!0);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t,!0);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible\\\\u0026\\\\u0026this.alignOverlay()},onOverlayClick:function(t){Xe.emit(\\\\\\\"overlay-click\\\\\\\",{originalEvent:t,target:this.$el})},onOverlayKeyDown:function(t){if(\\\\\\\"Escape\\\\\\\"===t.code)this.onEscapeKey(t)},onArrowDownKey:function(t){if(this.overlayVisible){var e=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.clicked?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();t.shiftKey\\\\u0026\\\\u0026this.onOptionSelectRange(t,this.startRangeIndex,e),this.changeFocusedOptionIndex(t,e)}else this.show();t.preventDefault()},onArrowUpKey:function(t){var e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1];if(t.altKey\\\\u0026\\\\u0026!e)-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\\\u0026\\\\u0026this.hide(),t.preventDefault();else{var n=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.clicked?this.findLastOptionIndex():this.findLastFocusedOptionIndex();t.shiftKey\\\\u0026\\\\u0026this.onOptionSelectRange(t,n,this.startRangeIndex),this.changeFocusedOptionIndex(t,n),!this.overlayVisible\\\\u0026\\\\u0026this.show(),t.preventDefault()}},onArrowLeftKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]\\\\u0026\\\\u0026(this.focusedOptionIndex=-1)},onHomeKey:function(t){if(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]){var e=t.currentTarget;t.shiftKey?e.setSelectionRange(0,t.target.selectionStart):(e.setSelectionRange(0,0),this.focusedOptionIndex=-1)}else{var n=t.metaKey||t.ctrlKey,o=this.findFirstOptionIndex();t.shiftKey\\\\u0026\\\\u0026n\\\\u0026\\\\u0026this.onOptionSelectRange(t,o,this.startRangeIndex),this.changeFocusedOptionIndex(t,o),!this.overlayVisible\\\\u0026\\\\u0026this.show()}t.preventDefault()},onEndKey:function(t){if(arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]){var e=t.currentTarget;if(t.shiftKey)e.setSelectionRange(t.target.selectionStart,e.value.length);else{var n=e.value.length;e.setSelectionRange(n,n),this.focusedOptionIndex=-1}}else{var o=t.metaKey||t.ctrlKey,i=this.findLastOptionIndex();t.shiftKey\\\\u0026\\\\u0026o\\\\u0026\\\\u0026this.onOptionSelectRange(t,this.startRangeIndex,i),this.changeFocusedOptionIndex(t,i),!this.overlayVisible\\\\u0026\\\\u0026this.show()}t.preventDefault()},onPageUpKey:function(t){this.scrollInView(0),t.preventDefault()},onPageDownKey:function(t){this.scrollInView(this.visibleOptions.length-1),t.preventDefault()},onEnterKey:function(t){this.overlayVisible?-1!==this.focusedOptionIndex\\\\u0026\\\\u0026(t.shiftKey?this.onOptionSelectRange(t,this.focusedOptionIndex):this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex])):(this.focusedOptionIndex=-1,this.onArrowDownKey(t)),t.preventDefault()},onEscapeKey:function(t){this.overlayVisible\\\\u0026\\\\u0026this.hide(!0),t.preventDefault()},onTabKey:function(t){arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1]||(this.overlayVisible\\\\u0026\\\\u0026this.hasFocusableElements()?(et(t.shiftKey?this.$refs.lastHiddenFocusableElementOnOverlay:this.$refs.firstHiddenFocusableElementOnOverlay),t.preventDefault()):(-1!==this.focusedOptionIndex\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible\\\\u0026\\\\u0026this.hide(this.filter)))},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onOverlayEnter:function(t){Q.set(\\\\\\\"overlay\\\\\\\",t,this.$primevue.config.zIndex.overlay),st(t,{position:\\\\\\\"absolute\\\\\\\",top:\\\\\\\"0\\\\\\\",left:\\\\\\\"0\\\\\\\"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus\\\\u0026\\\\u0026et(this.$refs.filterInput.$el)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit(\\\\\\\"show\\\\\\\")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit(\\\\\\\"hide\\\\\\\"),this.overlay=null},onOverlayAfterLeave:function(t){Q.clear(t)},alignOverlay:function(){\\\\\\\"self\\\\\\\"===this.appendTo?lt(this.overlay,this.$el):(this.overlay.style.minWidth=G(this.$el)+\\\\\\\"px\\\\\\\",at(this.overlay,this.$el))},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){t.overlayVisible\\\\u0026\\\\u0026t.isOutsideClicked(e)\\\\u0026\\\\u0026t.hide()},document.addEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var t=this;this.scrollHandler||(this.scrollHandler=new Tt(this.$refs.container,(function(){t.overlayVisible\\\\u0026\\\\u0026t.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler\\\\u0026\\\\u0026this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.overlayVisible\\\\u0026\\\\u0026!ct()\\\\u0026\\\\u0026t.hide()},window.addEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\\\u0026\\\\u0026(window.removeEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(t){return!(this.$el.isSameNode(t.target)||this.$el.contains(t.target)||this.overlay\\\\u0026\\\\u0026this.overlay.contains(t.target))},getLabelByValue:function(t){var e=this,n=(this.optionGroupLabel?this.flatOptions(this.options):this.options||[]).find((function(n){return!e.isOptionGroup(n)\\\\u0026\\\\u0026dt(e.getOptionValue(n),t,e.equalityKey)}));return n?this.getOptionLabel(n):null},getSelectedItemsLabel:function(){var t=/{(.*?)}/,e=this.selectedItemsLabel||this.$primevue.config.locale.selectionMessage;return t.test(e)?e.replace(e.match(t)[0],this.d_value.length+\\\\\\\"\\\\\\\"):e},onToggleAll:function(t){var e=this;if(null!==this.selectAll)this.$emit(\\\\\\\"selectall-change\\\\\\\",{originalEvent:t,checked:!this.allSelected});else{var n=this.allSelected?[]:this.visibleOptions.filter((function(t){return e.isValidOption(t)})).map((function(t){return e.getOptionValue(t)}));this.updateModel(t,n)}},removeOption:function(t,e){var n=this;t.stopPropagation();var o=this.d_value.filter((function(t){return!dt(t,e,n.equalityKey)}));this.updateModel(t,o)},clearFilter:function(){this.filterValue=null},hasFocusableElements:function(){return ut(this.overlay,':not([data-p-hidden-focusable=\\\\\\\"true\\\\\\\"])').length\\\\u003e0},isOptionMatched:function(t){var e;return this.isValidOption(t)\\\\u0026\\\\u0026\\\\\\\"string\\\\\\\"==typeof this.getOptionLabel(t)\\\\u0026\\\\u0026(null===(e=this.getOptionLabel(t))||void 0===e?void 0:e.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)))},isValidOption:function(t){return K(t)\\\\u0026\\\\u0026!(this.isOptionDisabled(t)||this.isOptionGroup(t))},isValidSelectedOption:function(t){return this.isValidOption(t)\\\\u0026\\\\u0026this.isSelected(t)},isEquals:function(t,e){return dt(t,e,this.equalityKey)},isSelected:function(t){var e=this,n=this.getOptionValue(t);return(this.d_value||[]).some((function(t){return e.isEquals(t,n)}))},findFirstOptionIndex:function(){var t=this;return this.visibleOptions.findIndex((function(e){return t.isValidOption(e)}))},findLastOptionIndex:function(){var t=this;return pt(this.visibleOptions,(function(e){return t.isValidOption(e)}))},findNextOptionIndex:function(t){var e=this,n=t\\\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidOption(t)})):-1;return n\\\\u003e-1?n+t+1:t},findPrevOptionIndex:function(t){var e=this,n=t\\\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidOption(t)})):-1;return n\\\\u003e-1?n:t},findSelectedOptionIndex:function(){var t=this;if(this.$filled)for(var e,n=function(){var e=t.d_value[o],n=t.visibleOptions.findIndex((function(n){return t.isValidSelectedOption(n)\\\\u0026\\\\u0026t.isEquals(e,t.getOptionValue(n))}));if(n\\\\u003e-1)return{v:n}},o=this.d_value.length-1;o\\\\u003e=0;o--)if(e=n())return e.v;return-1},findFirstSelectedOptionIndex:function(){var t=this;return this.$filled?this.visibleOptions.findIndex((function(e){return t.isValidSelectedOption(e)})):-1},findLastSelectedOptionIndex:function(){var t=this;return this.$filled?pt(this.visibleOptions,(function(e){return t.isValidSelectedOption(e)})):-1},findNextSelectedOptionIndex:function(t){var e=this,n=this.$filled\\\\u0026\\\\u0026t\\\\u003cthis.visibleOptions.length-1?this.visibleOptions.slice(t+1).findIndex((function(t){return e.isValidSelectedOption(t)})):-1;return n\\\\u003e-1?n+t+1:-1},findPrevSelectedOptionIndex:function(t){var e=this,n=this.$filled\\\\u0026\\\\u0026t\\\\u003e0?pt(this.visibleOptions.slice(0,t),(function(t){return e.isValidSelectedOption(t)})):-1;return n\\\\u003e-1?n:-1},findNearestSelectedOptionIndex:function(t){var e=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]\\\\u0026\\\\u0026arguments[1],n=-1;return this.$filled\\\\u0026\\\\u0026(n=e?-1===(n=this.findPrevSelectedOptionIndex(t))?this.findNextSelectedOptionIndex(t):n:-1===(n=this.findNextSelectedOptionIndex(t))?this.findPrevSelectedOptionIndex(t):n),n\\\\u003e-1?n:t},findFirstFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\\\u003c0?this.findFirstOptionIndex():t},findLastFocusedOptionIndex:function(){var t=this.findSelectedOptionIndex();return t\\\\u003c0?this.findLastOptionIndex():t},searchOptions:function(t){var e=this;this.searchValue=(this.searchValue||\\\\\\\"\\\\\\\")+t.key;var n=-1;K(this.searchValue)\\\\u0026\\\\u0026(-1===(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(t){return e.isOptionMatched(t)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(t){return e.isOptionMatched(t)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(t){return e.isOptionMatched(t)})))\\\\u0026\\\\u0026-1===this.focusedOptionIndex\\\\u0026\\\\u0026(n=this.findFirstFocusedOptionIndex()),-1!==n\\\\u0026\\\\u0026this.changeFocusedOptionIndex(t,n)),this.searchTimeout\\\\u0026\\\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){e.searchValue=\\\\\\\"\\\\\\\",e.searchTimeout=null}),500)},changeFocusedOptionIndex:function(t,e){this.focusedOptionIndex!==e\\\\u0026\\\\u0026(this.focusedOptionIndex=e,this.scrollInView(),this.selectOnFocus\\\\u0026\\\\u0026this.onOptionSelect(t,this.visibleOptions[e]))},scrollInView:function(){var t=this,e=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:-1;this.$nextTick((function(){var n=-1!==e?\\\\\\\"\\\\\\\".concat(t.id,\\\\\\\"_\\\\\\\").concat(e):t.focusedOptionId,o=J(t.list,'li[id=\\\\\\\"'.concat(n,'\\\\\\\"]'));o?o.scrollIntoView\\\\u0026\\\\u0026o.scrollIntoView({block:\\\\\\\"nearest\\\\\\\",inline:\\\\\\\"nearest\\\\\\\"}):t.virtualScrollerDisabled||t.virtualScroller\\\\u0026\\\\u0026t.virtualScroller.scrollToIndex(-1!==e?e:t.focusedOptionIndex)}))},autoUpdateModel:function(){if(this.selectOnFocus\\\\u0026\\\\u0026this.autoOptionFocus\\\\u0026\\\\u0026!this.$filled){this.focusedOptionIndex=this.findFirstFocusedOptionIndex();var t=this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);this.updateModel(null,[t])}},updateModel:function(t,e){this.writeValue(e,t),this.$emit(\\\\\\\"change\\\\\\\",{originalEvent:t,value:e})},flatOptions:function(t){var e=this;return(t||[]).reduce((function(t,n,o){t.push({optionGroup:n,group:!0,index:o});var i=e.getOptionGroupChildren(n);return i\\\\u0026\\\\u0026i.forEach((function(e){return t.push(e)})),t}),[])},overlayRef:function(t){this.overlay=t},listRef:function(t,e){this.list=t,e\\\\u0026\\\\u0026e(t)},virtualScrollerRef:function(t){this.virtualScroller=t}},computed:{visibleOptions:function(){var t=this,e=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=_t.filter(e,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=this.options||[],i=[];return o.forEach((function(e){var o=t.getOptionGroupChildren(e).filter((function(t){return n.includes(t)}));o.length\\\\u003e0\\\\u0026\\\\u0026i.push(Kn(Kn({},e),{},Dn({},\\\\\\\"string\\\\\\\"==typeof t.optionGroupChildren?t.optionGroupChildren:\\\\\\\"items\\\\\\\",Bn(o))))})),this.flatOptions(i)}return n}return e},label:function(){var t;if(this.d_value\\\\u0026\\\\u0026this.d_value.length){if(K(this.maxSelectedLabels)\\\\u0026\\\\u0026this.d_value.length\\\\u003ethis.maxSelectedLabels)return this.getSelectedItemsLabel();t=\\\\\\\"\\\\\\\";for(var e=0;e\\\\u003cthis.d_value.length;e++)0!==e\\\\u0026\\\\u0026(t+=\\\\\\\", \\\\\\\"),t+=this.getLabelByValue(this.d_value[e])}else t=this.placeholder;return t},chipSelectedItems:function(){return K(this.maxSelectedLabels)\\\\u0026\\\\u0026this.d_value\\\\u0026\\\\u0026this.d_value.length\\\\u003ethis.maxSelectedLabels},allSelected:function(){var t=this;return null!==this.selectAll?this.selectAll:K(this.visibleOptions)\\\\u0026\\\\u0026this.visibleOptions.every((function(e){return t.isOptionGroup(e)||t.isOptionDisabled(e)||t.isSelected(e)}))},hasSelectedOption:function(){return this.$filled},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},maxSelectionLimitReached:function(){return this.selectionLimit\\\\u0026\\\\u0026this.d_value\\\\u0026\\\\u0026this.d_value.length===this.selectionLimit},filterResultMessageText:function(){return K(this.visibleOptions)?this.filterMessageText.replaceAll(\\\\\\\"{0}\\\\\\\",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||\\\\\\\"\\\\\\\"},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||\\\\\\\"\\\\\\\"},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||\\\\\\\"\\\\\\\"},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||\\\\\\\"\\\\\\\"},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||\\\\\\\"\\\\\\\"},selectedMessageText:function(){return this.$filled?this.selectionMessageText.replaceAll(\\\\\\\"{0}\\\\\\\",this.d_value.length):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?\\\\\\\"\\\\\\\".concat(this.id,\\\\\\\"_\\\\\\\").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var t=this;return this.visibleOptions.filter((function(e){return!t.isOptionGroup(e)})).length},toggleAllAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[this.allSelected?\\\\\\\"selectAll\\\\\\\":\\\\\\\"unselectAll\\\\\\\"]:void 0},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions},hasFluid:function(){return D(this.fluid)?!!this.$pcFluid:this.fluid},isClearIconVisible:function(){return this.showClear\\\\u0026\\\\u0026null!=this.d_value\\\\u0026\\\\u0026K(this.options)}},directives:{ripple:De},components:{InputText:We,Checkbox:Cn,VirtualScroller:nn,Portal:Ye,Chip:_n,IconField:Ue,InputIcon:Ne,TimesIcon:Mt,SearchIcon:Pt,ChevronDownIcon:Vt,SpinnerIcon:Ct,CheckIcon:Ft}};function Rn(t){return(Rn=\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026\\\\\\\"symbol\\\\\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"==typeof Symbol\\\\u0026\\\\u0026t.constructor===Symbol\\\\u0026\\\\u0026t!==Symbol.prototype?\\\\\\\"symbol\\\\\\\":typeof t})(t)}function Gn(t,e,n){return(e=function(t){var e=function(t,e){if(\\\\\\\"object\\\\\\\"!=Rn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||\\\\\\\"default\\\\\\\");if(\\\\\\\"object\\\\\\\"!=Rn(o))return o;throw new TypeError(\\\\\\\"@@toPrimitive must return a primitive value.\\\\\\\")}return(\\\\\\\"string\\\\\\\"===e?String:Number)(t)}(t,\\\\\\\"string\\\\\\\");return\\\\\\\"symbol\\\\\\\"==Rn(e)?e:e+\\\\\\\"\\\\\\\"}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Un=[\\\\\\\"id\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-expanded\\\\\\\",\\\\\\\"aria-controls\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"aria-invalid\\\\\\\"],Nn={key:0},Wn=[\\\\\\\"id\\\\\\\",\\\\\\\"aria-label\\\\\\\"],qn=[\\\\\\\"id\\\\\\\"],Xn=[\\\\\\\"id\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-selected\\\\\\\",\\\\\\\"aria-disabled\\\\\\\",\\\\\\\"aria-setsize\\\\\\\",\\\\\\\"aria-posinset\\\\\\\",\\\\\\\"onClick\\\\\\\",\\\\\\\"onMousemove\\\\\\\",\\\\\\\"data-p-selected\\\\\\\",\\\\\\\"data-p-focused\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"];jn.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"Chip\\\\\\\"),l=k(\\\\\\\"SpinnerIcon\\\\\\\"),a=k(\\\\\\\"Checkbox\\\\\\\"),c=k(\\\\\\\"InputText\\\\\\\"),u=k(\\\\\\\"SearchIcon\\\\\\\"),d=k(\\\\\\\"InputIcon\\\\\\\"),p=k(\\\\\\\"IconField\\\\\\\"),h=k(\\\\\\\"VirtualScroller\\\\\\\"),f=k(\\\\\\\"Portal\\\\\\\"),b=w(\\\\\\\"ripple\\\\\\\");return m(),g(\\\\\\\"div\\\\\\\",I({ref:\\\\\\\"container\\\\\\\",class:t.cx(\\\\\\\"root\\\\\\\"),style:t.sx(\\\\\\\"root\\\\\\\"),onClick:e[7]||(e[7]=function(){return r.onContainerClick\\\\u0026\\\\u0026r.onContainerClick.apply(r,arguments)})},t.ptmi(\\\\\\\"root\\\\\\\")),[C(\\\\\\\"div\\\\\\\",I({class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenInputContainer\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),[C(\\\\\\\"input\\\\\\\",I({ref:\\\\\\\"focusInput\\\\\\\",id:t.inputId,type:\\\\\\\"text\\\\\\\",readonly:\\\\\\\"\\\\\\\",disabled:t.disabled,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,role:\\\\\\\"combobox\\\\\\\",\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-haspopup\\\\\\\":\\\\\\\"listbox\\\\\\\",\\\\\\\"aria-expanded\\\\\\\":i.overlayVisible,\\\\\\\"aria-controls\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":i.focused?r.focusedOptionId:void 0,\\\\\\\"aria-invalid\\\\\\\":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return r.onFocus\\\\u0026\\\\u0026r.onFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onKeyDown\\\\u0026\\\\u0026r.onKeyDown.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenInput\\\\\\\")),null,16,Un)],16),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"labelContainer\\\\\\\")},t.ptm(\\\\\\\"labelContainer\\\\\\\")),[C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"label\\\\\\\")},t.ptm(\\\\\\\"label\\\\\\\")),[v(t.$slots,\\\\\\\"value\\\\\\\",{value:t.d_value,placeholder:t.placeholder},(function(){return[\\\\\\\"comma\\\\\\\"===t.display?(m(),g(_,{key:0},[y(x(r.label||\\\\\\\"empty\\\\\\\"),1)],64)):\\\\\\\"chip\\\\\\\"===t.display?(m(),g(_,{key:1},[r.chipSelectedItems?(m(),g(\\\\\\\"span\\\\\\\",Nn,x(r.label),1)):(m(!0),g(_,{key:1},M(t.d_value,(function(e){return m(),g(\\\\\\\"span\\\\\\\",I({key:r.getLabelByValue(e),class:t.cx(\\\\\\\"chipItem\\\\\\\"),ref_for:!0},t.ptm(\\\\\\\"chipItem\\\\\\\")),[v(t.$slots,\\\\\\\"chip\\\\\\\",{value:e,removeCallback:function(t){return r.removeOption(t,e)}},(function(){return[V(s,{class:z(t.cx(\\\\\\\"pcChip\\\\\\\")),label:r.getLabelByValue(e),removeIcon:t.chipIcon||t.removeTokenIcon,removable:\\\\\\\"\\\\\\\",unstyled:t.unstyled,onRemove:function(t){return r.removeOption(t,e)},pt:t.ptm(\\\\\\\"pcChip\\\\\\\")},{removeicon:L((function(){return[v(t.$slots,t.$slots.chipicon?\\\\\\\"chipicon\\\\\\\":\\\\\\\"removetokenicon\\\\\\\",{class:z(t.cx(\\\\\\\"chipIcon\\\\\\\")),item:e,removeCallback:function(t){return r.removeOption(t,e)}})]})),_:2},1032,[\\\\\\\"class\\\\\\\",\\\\\\\"label\\\\\\\",\\\\\\\"removeIcon\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"onRemove\\\\\\\",\\\\\\\"pt\\\\\\\"])]}))],16)})),128)),t.d_value\\\\u0026\\\\u00260!==t.d_value.length?$(\\\\\\\"\\\\\\\",!0):(m(),g(_,{key:2},[y(x(t.placeholder||\\\\\\\"empty\\\\\\\"),1)],64))],64)):$(\\\\\\\"\\\\\\\",!0)]}))],16)],16),r.isClearIconVisible?v(t.$slots,\\\\\\\"clearicon\\\\\\\",{key:0,class:z(t.cx(\\\\\\\"clearIcon\\\\\\\")),clearCallback:r.onClearClick},(function(){return[(m(),S(E(t.clearIcon?\\\\\\\"i\\\\\\\":\\\\\\\"TimesIcon\\\\\\\"),I({ref:\\\\\\\"clearIcon\\\\\\\",class:[t.cx(\\\\\\\"clearIcon\\\\\\\"),t.clearIcon],onClick:r.onClearClick},t.ptm(\\\\\\\"clearIcon\\\\\\\"),{\\\\\\\"data-pc-section\\\\\\\":\\\\\\\"clearicon\\\\\\\"}),null,16,[\\\\\\\"class\\\\\\\",\\\\\\\"onClick\\\\\\\"]))]})):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"dropdown\\\\\\\")},t.ptm(\\\\\\\"dropdown\\\\\\\")),[t.loading?v(t.$slots,\\\\\\\"loadingicon\\\\\\\",{key:0,class:z(t.cx(\\\\\\\"loadingIcon\\\\\\\"))},(function(){return[t.loadingIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"loadingIcon\\\\\\\"),\\\\\\\"pi-spin\\\\\\\",t.loadingIcon],\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16)):(m(),S(l,I({key:1,class:t.cx(\\\\\\\"loadingIcon\\\\\\\"),spin:\\\\\\\"\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"loadingIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]})):v(t.$slots,\\\\\\\"dropdownicon\\\\\\\",{key:1,class:z(t.cx(\\\\\\\"dropdownIcon\\\\\\\"))},(function(){return[(m(),S(E(t.dropdownIcon?\\\\\\\"span\\\\\\\":\\\\\\\"ChevronDownIcon\\\\\\\"),I({class:[t.cx(\\\\\\\"dropdownIcon\\\\\\\"),t.dropdownIcon],\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\"},t.ptm(\\\\\\\"dropdownIcon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"]))]}))],16),V(f,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\\\\\"p-connected-overlay\\\\\\\",onEnter:r.onOverlayEnter,onAfterEnter:r.onOverlayAfterEnter,onLeave:r.onOverlayLeave,onAfterLeave:r.onOverlayAfterLeave},t.ptm(\\\\\\\"transition\\\\\\\")),{default:L((function(){return[i.overlayVisible?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,ref:r.overlayRef,style:[t.panelStyle,t.overlayStyle],class:[t.cx(\\\\\\\"overlay\\\\\\\"),t.panelClass,t.overlayClass],onClick:e[5]||(e[5]=function(){return r.onOverlayClick\\\\u0026\\\\u0026r.onOverlayClick.apply(r,arguments)}),onKeydown:e[6]||(e[6]=function(){return r.onOverlayKeyDown\\\\u0026\\\\u0026r.onOverlayKeyDown.apply(r,arguments)})},t.ptm(\\\\\\\"overlay\\\\\\\")),[C(\\\\\\\"span\\\\\\\",I({ref:\\\\\\\"firstHiddenFocusableElementOnOverlay\\\\\\\",role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\",class:\\\\\\\"p-hidden-accessible p-hidden-focusable\\\\\\\",tabindex:0,onFocus:e[3]||(e[3]=function(){return r.onFirstHiddenFocus\\\\u0026\\\\u0026r.onFirstHiddenFocus.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenFirstFocusableEl\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0,\\\\\\\"data-p-hidden-focusable\\\\\\\":!0}),null,16),v(t.$slots,\\\\\\\"header\\\\\\\",{value:t.d_value,options:r.visibleOptions}),t.showToggleAll\\\\u0026\\\\u0026null==t.selectionLimit||t.filter?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"header\\\\\\\")},t.ptm(\\\\\\\"header\\\\\\\")),[t.showToggleAll\\\\u0026\\\\u0026null==t.selectionLimit?(m(),S(a,{key:0,modelValue:r.allSelected,binary:!0,disabled:t.disabled,variant:t.variant,\\\\\\\"aria-label\\\\\\\":r.toggleAllAriaLabel,onChange:r.onToggleAll,unstyled:t.unstyled,pt:r.getHeaderCheckboxPTOptions(\\\\\\\"pcHeaderCheckbox\\\\\\\")},{icon:L((function(e){return[t.$slots.headercheckboxicon?(m(),S(E(t.$slots.headercheckboxicon),{key:0,checked:e.checked,class:z(e.class)},null,8,[\\\\\\\"checked\\\\\\\",\\\\\\\"class\\\\\\\"])):e.checked?(m(),S(E(t.checkboxIcon?\\\\\\\"span\\\\\\\":\\\\\\\"CheckIcon\\\\\\\"),I({key:1,class:[e.class,Gn({},t.checkboxIcon,e.checked)]},r.getHeaderCheckboxPTOptions(\\\\\\\"pcHeaderCheckbox.icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)]})),_:1},8,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"variant\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"onChange\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0),t.filter?(m(),S(p,{key:1,class:z(t.cx(\\\\\\\"pcFilterContainer\\\\\\\")),unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcFilterContainer\\\\\\\")},{default:L((function(){return[V(c,{ref:\\\\\\\"filterInput\\\\\\\",value:i.filterValue,onVnodeMounted:r.onFilterUpdated,onVnodeUpdated:r.onFilterUpdated,class:z(t.cx(\\\\\\\"pcFilter\\\\\\\")),placeholder:t.filterPlaceholder,disabled:t.disabled,variant:t.variant,unstyled:t.unstyled,role:\\\\\\\"searchbox\\\\\\\",autocomplete:\\\\\\\"off\\\\\\\",\\\\\\\"aria-owns\\\\\\\":i.id+\\\\\\\"_list\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":r.focusedOptionId,onKeydown:r.onFilterKeyDown,onBlur:r.onFilterBlur,onInput:r.onFilterChange,pt:t.ptm(\\\\\\\"pcFilter\\\\\\\")},null,8,[\\\\\\\"value\\\\\\\",\\\\\\\"onVnodeMounted\\\\\\\",\\\\\\\"onVnodeUpdated\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"placeholder\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"variant\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"aria-owns\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"onKeydown\\\\\\\",\\\\\\\"onBlur\\\\\\\",\\\\\\\"onInput\\\\\\\",\\\\\\\"pt\\\\\\\"]),V(d,{unstyled:t.unstyled,pt:t.ptm(\\\\\\\"pcFilterIconContainer\\\\\\\")},{default:L((function(){return[v(t.$slots,\\\\\\\"filtericon\\\\\\\",{},(function(){return[t.filterIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:t.filterIcon},t.ptm(\\\\\\\"filterIcon\\\\\\\")),null,16)):(m(),S(u,F(I({key:1},t.ptm(\\\\\\\"filterIcon\\\\\\\"))),null,16))]}))]})),_:3},8,[\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])]})),_:3},8,[\\\\\\\"class\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0),t.filter?(m(),g(\\\\\\\"span\\\\\\\",I({key:2,role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenFilterResult\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.filterResultMessageText),17)):$(\\\\\\\"\\\\\\\",!0)],16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"listContainer\\\\\\\"),style:{\\\\\\\"max-height\\\\\\\":r.virtualScrollerDisabled?t.scrollHeight:\\\\\\\"\\\\\\\"}},t.ptm(\\\\\\\"listContainer\\\\\\\")),[V(h,I({ref:r.virtualScrollerRef},t.virtualScrollerOptions,{items:r.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:r.virtualScrollerDisabled,pt:t.ptm(\\\\\\\"virtualScroller\\\\\\\")}),A({content:L((function(e){var n=e.styleClass,o=e.contentRef,s=e.items,l=e.getItemOptions,c=e.contentStyle,u=e.itemSize;return[C(\\\\\\\"ul\\\\\\\",I({ref:function(t){return r.listRef(t,o)},id:i.id+\\\\\\\"_list\\\\\\\",class:[t.cx(\\\\\\\"list\\\\\\\"),n],style:c,role:\\\\\\\"listbox\\\\\\\",\\\\\\\"aria-multiselectable\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"aria-label\\\\\\\":r.listAriaLabel},t.ptm(\\\\\\\"list\\\\\\\")),[(m(!0),g(_,null,M(s,(function(e,n){return m(),g(_,{key:r.getOptionRenderKey(e,r.getOptionIndex(n,l))},[r.isOptionGroup(e)?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,id:i.id+\\\\\\\"_\\\\\\\"+r.getOptionIndex(n,l),style:{height:u?u+\\\\\\\"px\\\\\\\":void 0},class:t.cx(\\\\\\\"optionGroup\\\\\\\"),role:\\\\\\\"option\\\\\\\",ref_for:!0},t.ptm(\\\\\\\"optionGroup\\\\\\\")),[v(t.$slots,\\\\\\\"optiongroup\\\\\\\",{option:e.optionGroup,index:r.getOptionIndex(n,l)},(function(){return[y(x(r.getOptionGroupLabel(e.optionGroup)),1)]}))],16,qn)):O((m(),g(\\\\\\\"li\\\\\\\",I({key:1,id:i.id+\\\\\\\"_\\\\\\\"+r.getOptionIndex(n,l),style:{height:u?u+\\\\\\\"px\\\\\\\":void 0},class:t.cx(\\\\\\\"option\\\\\\\",{option:e,index:n,getItemOptions:l}),role:\\\\\\\"option\\\\\\\",\\\\\\\"aria-label\\\\\\\":r.getOptionLabel(e),\\\\\\\"aria-selected\\\\\\\":r.isSelected(e),\\\\\\\"aria-disabled\\\\\\\":r.isOptionDisabled(e),\\\\\\\"aria-setsize\\\\\\\":r.ariaSetSize,\\\\\\\"aria-posinset\\\\\\\":r.getAriaPosInset(r.getOptionIndex(n,l)),onClick:function(t){return r.onOptionSelect(t,e,r.getOptionIndex(n,l),!0)},onMousemove:function(t){return r.onOptionMouseMove(t,r.getOptionIndex(n,l))},ref_for:!0},r.getCheckboxPTOptions(e,l,n,\\\\\\\"option\\\\\\\"),{\\\\\\\"data-p-selected\\\\\\\":r.isSelected(e),\\\\\\\"data-p-focused\\\\\\\":i.focusedOptionIndex===r.getOptionIndex(n,l),\\\\\\\"data-p-disabled\\\\\\\":r.isOptionDisabled(e)}),[V(a,{defaultValue:r.isSelected(e),binary:!0,tabindex:-1,variant:t.variant,unstyled:t.unstyled,pt:r.getCheckboxPTOptions(e,l,n,\\\\\\\"pcOptionCheckbox\\\\\\\")},{icon:L((function(o){return[t.$slots.optioncheckboxicon||t.$slots.itemcheckboxicon?(m(),S(E(t.$slots.optioncheckboxicon||t.$slots.itemcheckboxicon),{key:0,checked:o.checked,class:z(o.class)},null,8,[\\\\\\\"checked\\\\\\\",\\\\\\\"class\\\\\\\"])):o.checked?(m(),S(E(t.checkboxIcon?\\\\\\\"span\\\\\\\":\\\\\\\"CheckIcon\\\\\\\"),I({key:1,class:[o.class,Gn({},t.checkboxIcon,o.checked)],ref_for:!0},r.getCheckboxPTOptions(e,l,n,\\\\\\\"pcOptionCheckbox.icon\\\\\\\")),null,16,[\\\\\\\"class\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)]})),_:2},1032,[\\\\\\\"defaultValue\\\\\\\",\\\\\\\"variant\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"pt\\\\\\\"]),v(t.$slots,\\\\\\\"option\\\\\\\",{option:e,selected:r.isSelected(e),index:r.getOptionIndex(n,l)},(function(){return[C(\\\\\\\"span\\\\\\\",I({ref_for:!0},t.ptm(\\\\\\\"optionLabel\\\\\\\")),x(r.getOptionLabel(e)),17)]}))],16,Xn)),[[b]])],64)})),128)),i.filterValue\\\\u0026\\\\u0026(!s||s\\\\u0026\\\\u00260===s.length)?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,class:t.cx(\\\\\\\"emptyMessage\\\\\\\"),role:\\\\\\\"option\\\\\\\"},t.ptm(\\\\\\\"emptyMessage\\\\\\\")),[v(t.$slots,\\\\\\\"emptyfilter\\\\\\\",{},(function(){return[y(x(r.emptyFilterMessageText),1)]}))],16)):!t.options||t.options\\\\u0026\\\\u00260===t.options.length?(m(),g(\\\\\\\"li\\\\\\\",I({key:1,class:t.cx(\\\\\\\"emptyMessage\\\\\\\"),role:\\\\\\\"option\\\\\\\"},t.ptm(\\\\\\\"emptyMessage\\\\\\\")),[v(t.$slots,\\\\\\\"empty\\\\\\\",{},(function(){return[y(x(r.emptyMessageText),1)]}))],16)):$(\\\\\\\"\\\\\\\",!0)],16,Wn)]})),_:2},[t.$slots.loader?{name:\\\\\\\"loader\\\\\\\",fn:L((function(e){var n=e.options;return[v(t.$slots,\\\\\\\"loader\\\\\\\",{options:n})]})),key:\\\\\\\"0\\\\\\\"}:void 0]),1040,[\\\\\\\"items\\\\\\\",\\\\\\\"style\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"pt\\\\\\\"])],16),v(t.$slots,\\\\\\\"footer\\\\\\\",{value:t.d_value,options:r.visibleOptions}),!t.options||t.options\\\\u0026\\\\u00260===t.options.length?(m(),g(\\\\\\\"span\\\\\\\",I({key:1,role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenEmptyMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.emptyMessageText),17)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"span\\\\\\\",I({role:\\\\\\\"status\\\\\\\",\\\\\\\"aria-live\\\\\\\":\\\\\\\"polite\\\\\\\",class:\\\\\\\"p-hidden-accessible\\\\\\\"},t.ptm(\\\\\\\"hiddenSelectedMessage\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0}),x(r.selectedMessageText),17),C(\\\\\\\"span\\\\\\\",I({ref:\\\\\\\"lastHiddenFocusableElementOnOverlay\\\\\\\",role:\\\\\\\"presentation\\\\\\\",\\\\\\\"aria-hidden\\\\\\\":\\\\\\\"true\\\\\\\",class:\\\\\\\"p-hidden-accessible p-hidden-focusable\\\\\\\",tabindex:0,onFocus:e[4]||(e[4]=function(){return r.onLastHiddenFocus\\\\u0026\\\\u0026r.onLastHiddenFocus.apply(r,arguments)})},t.ptm(\\\\\\\"hiddenLastFocusableEl\\\\\\\"),{\\\\\\\"data-p-hidden-accessible\\\\\\\":!0,\\\\\\\"data-p-hidden-focusable\\\\\\\":!0}),null,16)],16)):$(\\\\\\\"\\\\\\\",!0)]})),_:3},16,[\\\\\\\"onEnter\\\\\\\",\\\\\\\"onAfterEnter\\\\\\\",\\\\\\\"onLeave\\\\\\\",\\\\\\\"onAfterLeave\\\\\\\"])]})),_:3},8,[\\\\\\\"appendTo\\\\\\\"])],16)};var Yn=St.extend({name:\\\\\\\"slider\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-slider {\\\\\\\\n    position: relative;\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"slider.track.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"slider.track.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-handle {\\\\\\\\n    cursor: grab;\\\\\\\\n    touch-action: none;\\\\\\\\n    user-select: none;\\\\\\\\n    display: flex;\\\\\\\\n    justify-content: center;\\\\\\\\n    align-items: center;\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"slider.handle.height\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"slider.handle.width\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.handle.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"slider.handle.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\", outline-color \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),';\\\\\\\\n    outline-color: transparent;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-handle::before {\\\\\\\\n    content: \\\\\\\"\\\\\\\";\\\\\\\\n    width: ').concat(e(\\\\\\\"slider.handle.content.width\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.height\\\\\\\"),\\\\\\\";\\\\\\\\n    display: block;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"slider.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.handle.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider:not(.p-disabled) .p-slider-handle:hover::before {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.handle.content.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-handle:focus-visible {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"slider.handle.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-range {\\\\\\\\n    display: block;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"slider.range.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"slider.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider.p-slider-horizontal {\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"slider.track.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-horizontal .p-slider-range {\\\\\\\\n    inset-block-start: 0;\\\\\\\\n    inset-inline-start: 0;\\\\\\\\n    height: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-horizontal .p-slider-handle {\\\\\\\\n    inset-block-start: 50%;\\\\\\\\n    margin-block-start: calc(-1 * calc(\\\\\\\").concat(e(\\\\\\\"slider.handle.height\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n    margin-inline-start: calc(-1 * calc(\\\\\\\").concat(e(\\\\\\\"slider.handle.width\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-vertical {\\\\\\\\n    min-height: 100px;\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"slider.track.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-vertical .p-slider-handle {\\\\\\\\n    inset-inline-start: 50%;\\\\\\\\n    margin-inline-start: calc(-1 * calc(\\\\\\\").concat(e(\\\\\\\"slider.handle.width\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n    margin-block-end: calc(-1 * calc(\\\\\\\").concat(e(\\\\\\\"slider.handle.height\\\\\\\"),\\\\\\\" / 2));\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-slider-vertical .p-slider-range {\\\\\\\\n    inset-block-end: 0;\\\\\\\\n    inset-inline-start: 0;\\\\\\\\n    width: 100%;\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-slider p-component\\\\\\\",{\\\\\\\"p-disabled\\\\\\\":n.disabled,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-slider-horizontal\\\\\\\":\\\\\\\"horizontal\\\\\\\"===n.orientation,\\\\\\\"p-slider-vertical\\\\\\\":\\\\\\\"vertical\\\\\\\"===n.orientation}]},range:\\\\\\\"p-slider-range\\\\\\\",handle:\\\\\\\"p-slider-handle\\\\\\\"},inlineStyles:{handle:{position:\\\\\\\"absolute\\\\\\\"},range:{position:\\\\\\\"absolute\\\\\\\"}}});function Zn(t){return function(t){if(Array.isArray(t))return Jn(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||function(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return Jn(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jn(t,e):void 0}}(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function Jn(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}var Qn={name:\\\\\\\"Slider\\\\\\\",extends:{name:\\\\\\\"BaseSlider\\\\\\\",extends:Bt,props:{min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:\\\\\\\"horizontal\\\\\\\"},step:{type:Number,default:null},range:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Yn,provide:function(){return{$pcSlider:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\",\\\\\\\"slideend\\\\\\\"],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var t=this.$el.getBoundingClientRect();this.initX=t.left+bt(),this.initY=t.top+mt(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue:function(t){var e,n=t.touches?t.touches[0].pageX:t.pageX,o=t.touches?t.touches[0].pageY:t.pageY;e=\\\\\\\"horizontal\\\\\\\"===this.orientation?xt(this.$el)?100*(this.initX+this.barWidth-n)/this.barWidth:100*(n-this.initX)/this.barWidth:100*(this.initY+this.barHeight-o)/this.barHeight;var i=(this.max-this.min)*(e/100)+this.min;if(this.step){var r=this.range?this.value[this.handleIndex]:this.value,s=i-r;s\\\\u003c0?i=r+Math.ceil(i/this.step-r/this.step)*this.step:s\\\\u003e0\\\\u0026\\\\u0026(i=r+Math.floor(i/this.step-r/this.step)*this.step)}else i=Math.floor(i);this.updateModel(t,i)},updateModel:function(t,e){var n,o=parseFloat(e.toFixed(10));this.range?(n=this.value?Zn(this.value):[],0==this.handleIndex?(o\\\\u003cthis.min?o=this.min:o\\\\u003e=this.max\\\\u0026\\\\u0026(o=this.max),n[0]=o):(o\\\\u003ethis.max?o=this.max:o\\\\u003c=this.min\\\\u0026\\\\u0026(o=this.min),n[1]=o)):(o\\\\u003cthis.min?o=this.min:o\\\\u003ethis.max\\\\u0026\\\\u0026(o=this.max),n=o),this.writeValue(n,t),this.$emit(\\\\\\\"change\\\\\\\",n)},onDragStart:function(t,e){this.disabled||(this.$el.setAttribute(\\\\\\\"data-p-sliding\\\\\\\",!0),this.dragging=!0,this.updateDomData(),this.range\\\\u0026\\\\u0026this.value[0]===this.max?this.handleIndex=0:this.handleIndex=e,t.currentTarget.focus())},onDrag:function(t){this.dragging\\\\u0026\\\\u0026this.setValue(t)},onDragEnd:function(t){this.dragging\\\\u0026\\\\u0026(this.dragging=!1,this.$el.setAttribute(\\\\\\\"data-p-sliding\\\\\\\",!1),this.$emit(\\\\\\\"slideend\\\\\\\",{originalEvent:t,value:this.value}))},onBarClick:function(t){this.disabled||\\\\\\\"handle\\\\\\\"!==q(t.target,\\\\\\\"data-pc-section\\\\\\\")\\\\u0026\\\\u0026(this.updateDomData(),this.setValue(t))},onMouseDown:function(t,e){this.bindDragListeners(),this.onDragStart(t,e)},onKeyDown:function(t,e){switch(this.handleIndex=e,t.code){case\\\\\\\"ArrowDown\\\\\\\":case\\\\\\\"ArrowLeft\\\\\\\":this.decrementValue(t,e),t.preventDefault();break;case\\\\\\\"ArrowUp\\\\\\\":case\\\\\\\"ArrowRight\\\\\\\":this.incrementValue(t,e),t.preventDefault();break;case\\\\\\\"PageDown\\\\\\\":this.decrementValue(t,e,!0),t.preventDefault();break;case\\\\\\\"PageUp\\\\\\\":this.incrementValue(t,e,!0),t.preventDefault();break;case\\\\\\\"Home\\\\\\\":this.updateModel(t,this.min),t.preventDefault();break;case\\\\\\\"End\\\\\\\":this.updateModel(t,this.max),t.preventDefault()}},onBlur:function(t,e){var n,o;null===(n=(o=this.formField).onBlur)||void 0===n||n.call(o,t)},decrementValue:function(t,e){var n,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]\\\\u0026\\\\u0026arguments[2];n=this.range?this.step?this.value[e]-this.step:this.value[e]-1:this.step?this.value-this.step:!this.step\\\\u0026\\\\u0026o?this.value-10:this.value-1,this.updateModel(t,n),t.preventDefault()},incrementValue:function(t,e){var n,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]\\\\u0026\\\\u0026arguments[2];n=this.range?this.step?this.value[e]+this.step:this.value[e]+1:this.step?this.value+this.step:!this.step\\\\u0026\\\\u0026o?this.value+10:this.value+1,this.updateModel(t,n),t.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener(\\\\\\\"mousemove\\\\\\\",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener(\\\\\\\"mouseup\\\\\\\",this.dragEndListener))},unbindDragListeners:function(){this.dragListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"mousemove\\\\\\\",this.dragListener),this.dragListener=null),this.dragEndListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"mouseup\\\\\\\",this.dragEndListener),this.dragEndListener=null)},rangeStyle:function(){if(this.range){var t=this.rangeEndPosition\\\\u003ethis.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,e=this.rangeEndPosition\\\\u003ethis.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{\\\\\\\"inset-inline-start\\\\\\\":e+\\\\\\\"%\\\\\\\",width:t+\\\\\\\"%\\\\\\\"}:{bottom:e+\\\\\\\"%\\\\\\\",height:t+\\\\\\\"%\\\\\\\"}}return this.horizontal?{width:this.handlePosition+\\\\\\\"%\\\\\\\"}:{height:this.handlePosition+\\\\\\\"%\\\\\\\"}},handleStyle:function(){return this.horizontal?{\\\\\\\"inset-inline-start\\\\\\\":this.handlePosition+\\\\\\\"%\\\\\\\"}:{bottom:this.handlePosition+\\\\\\\"%\\\\\\\"}},rangeStartHandleStyle:function(){return this.horizontal?{\\\\\\\"inset-inline-start\\\\\\\":this.rangeStartPosition+\\\\\\\"%\\\\\\\"}:{bottom:this.rangeStartPosition+\\\\\\\"%\\\\\\\"}},rangeEndHandleStyle:function(){return this.horizontal?{\\\\\\\"inset-inline-start\\\\\\\":this.rangeEndPosition+\\\\\\\"%\\\\\\\"}:{bottom:this.rangeEndPosition+\\\\\\\"%\\\\\\\"}}},computed:{value:function(){var t,e,n,o,i;return this.range?[null!==(e=null===(n=this.d_value)||void 0===n?void 0:n[0])\\\\u0026\\\\u0026void 0!==e?e:this.min,null!==(o=null===(i=this.d_value)||void 0===i?void 0:i[1])\\\\u0026\\\\u0026void 0!==o?o:this.max]:null!==(t=this.d_value)\\\\u0026\\\\u0026void 0!==t?t:this.min},horizontal:function(){return\\\\\\\"horizontal\\\\\\\"===this.orientation},vertical:function(){return\\\\\\\"vertical\\\\\\\"===this.orientation},handlePosition:function(){return this.value\\\\u003cthis.min?0:this.value\\\\u003ethis.max?100:100*(this.value-this.min)/(this.max-this.min)},rangeStartPosition:function(){return this.value\\\\u0026\\\\u0026void 0!==this.value[0]?this.value[0]\\\\u003cthis.min?0:100*(this.value[0]-this.min)/(this.max-this.min):0},rangeEndPosition:function(){return this.value\\\\u0026\\\\u00262===this.value.length\\\\u0026\\\\u0026void 0!==this.value[1]?this.value[1]\\\\u003ethis.max?100:100*(this.value[1]-this.min)/(this.max-this.min):100}}},to=[\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\",\\\\\\\"aria-valuenow\\\\\\\",\\\\\\\"aria-valuemax\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-orientation\\\\\\\"],eo=[\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\",\\\\\\\"aria-valuenow\\\\\\\",\\\\\\\"aria-valuemax\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-orientation\\\\\\\"],no=[\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\",\\\\\\\"aria-valuenow\\\\\\\",\\\\\\\"aria-valuemax\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-orientation\\\\\\\"];Qn.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\"),onClick:e[18]||(e[18]=function(){return r.onBarClick\\\\u0026\\\\u0026r.onBarClick.apply(r,arguments)})},t.ptmi(\\\\\\\"root\\\\\\\"),{\\\\\\\"data-p-sliding\\\\\\\":!1}),[C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"range\\\\\\\"),style:[t.sx(\\\\\\\"range\\\\\\\"),r.rangeStyle()]},t.ptm(\\\\\\\"range\\\\\\\")),null,16),t.range?$(\\\\\\\"\\\\\\\",!0):(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:t.cx(\\\\\\\"handle\\\\\\\"),style:[t.sx(\\\\\\\"handle\\\\\\\"),r.handleStyle()],onTouchstartPassive:e[0]||(e[0]=function(t){return r.onDragStart(t)}),onTouchmovePassive:e[1]||(e[1]=function(t){return r.onDrag(t)}),onTouchend:e[2]||(e[2]=function(t){return r.onDragEnd(t)}),onMousedown:e[3]||(e[3]=function(t){return r.onMouseDown(t)}),onKeydown:e[4]||(e[4]=function(t){return r.onKeyDown(t)}),onBlur:e[5]||(e[5]=function(t){return r.onBlur(t)}),tabindex:t.tabindex,role:\\\\\\\"slider\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\":t.min,\\\\\\\"aria-valuenow\\\\\\\":t.d_value,\\\\\\\"aria-valuemax\\\\\\\":t.max,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-orientation\\\\\\\":t.orientation},t.ptm(\\\\\\\"handle\\\\\\\")),null,16,to)),t.range?(m(),g(\\\\\\\"span\\\\\\\",I({key:1,class:t.cx(\\\\\\\"handle\\\\\\\"),style:[t.sx(\\\\\\\"handle\\\\\\\"),r.rangeStartHandleStyle()],onTouchstartPassive:e[6]||(e[6]=function(t){return r.onDragStart(t,0)}),onTouchmovePassive:e[7]||(e[7]=function(t){return r.onDrag(t)}),onTouchend:e[8]||(e[8]=function(t){return r.onDragEnd(t)}),onMousedown:e[9]||(e[9]=function(t){return r.onMouseDown(t,0)}),onKeydown:e[10]||(e[10]=function(t){return r.onKeyDown(t,0)}),onBlur:e[11]||(e[11]=function(t){return r.onBlur(t,0)}),tabindex:t.tabindex,role:\\\\\\\"slider\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\":t.min,\\\\\\\"aria-valuenow\\\\\\\":t.d_value?t.d_value[0]:null,\\\\\\\"aria-valuemax\\\\\\\":t.max,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-orientation\\\\\\\":t.orientation},t.ptm(\\\\\\\"startHandler\\\\\\\")),null,16,eo)):$(\\\\\\\"\\\\\\\",!0),t.range?(m(),g(\\\\\\\"span\\\\\\\",I({key:2,class:t.cx(\\\\\\\"handle\\\\\\\"),style:[t.sx(\\\\\\\"handle\\\\\\\"),r.rangeEndHandleStyle()],onTouchstartPassive:e[12]||(e[12]=function(t){return r.onDragStart(t,1)}),onTouchmovePassive:e[13]||(e[13]=function(t){return r.onDrag(t)}),onTouchend:e[14]||(e[14]=function(t){return r.onDragEnd(t)}),onMousedown:e[15]||(e[15]=function(t){return r.onMouseDown(t,1)}),onKeydown:e[16]||(e[16]=function(t){return r.onKeyDown(t,1)}),onBlur:e[17]||(e[17]=function(t){return r.onBlur(t,1)}),tabindex:t.tabindex,role:\\\\\\\"slider\\\\\\\",\\\\\\\"aria-valuemin\\\\\\\":t.min,\\\\\\\"aria-valuenow\\\\\\\":t.d_value?t.d_value[1]:null,\\\\\\\"aria-valuemax\\\\\\\":t.max,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,\\\\\\\"aria-orientation\\\\\\\":t.orientation},t.ptm(\\\\\\\"endHandler\\\\\\\")),null,16,no)):$(\\\\\\\"\\\\\\\",!0)],16)};var oo={name:\\\\\\\"Card\\\\\\\",extends:{name:\\\\\\\"BaseCard\\\\\\\",extends:Lt,style:St.extend({name:\\\\\\\"card\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-card {\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"card.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"card.color\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"card.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"card.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-card-caption {\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"card.caption.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-card-body {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"card.body.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"card.body.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-card-title {\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"card.title.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"card.title.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-card-subtitle {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"card.subtitle.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:\\\\\\\"p-card p-component\\\\\\\",header:\\\\\\\"p-card-header\\\\\\\",body:\\\\\\\"p-card-body\\\\\\\",caption:\\\\\\\"p-card-caption\\\\\\\",title:\\\\\\\"p-card-title\\\\\\\",subtitle:\\\\\\\"p-card-subtitle\\\\\\\",content:\\\\\\\"p-card-content\\\\\\\",footer:\\\\\\\"p-card-footer\\\\\\\"}}),provide:function(){return{$pcCard:this,$parentInstance:this}}},inheritAttrs:!1};oo.render=function(t,e,n,o,i,r){return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\")},t.ptmi(\\\\\\\"root\\\\\\\")),[t.$slots.header?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"header\\\\\\\")},t.ptm(\\\\\\\"header\\\\\\\")),[v(t.$slots,\\\\\\\"header\\\\\\\")],16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"body\\\\\\\")},t.ptm(\\\\\\\"body\\\\\\\")),[t.$slots.title||t.$slots.subtitle?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"caption\\\\\\\")},t.ptm(\\\\\\\"caption\\\\\\\")),[t.$slots.title?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,class:t.cx(\\\\\\\"title\\\\\\\")},t.ptm(\\\\\\\"title\\\\\\\")),[v(t.$slots,\\\\\\\"title\\\\\\\")],16)):$(\\\\\\\"\\\\\\\",!0),t.$slots.subtitle?(m(),g(\\\\\\\"div\\\\\\\",I({key:1,class:t.cx(\\\\\\\"subtitle\\\\\\\")},t.ptm(\\\\\\\"subtitle\\\\\\\")),[v(t.$slots,\\\\\\\"subtitle\\\\\\\")],16)):$(\\\\\\\"\\\\\\\",!0)],16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"content\\\\\\\")},t.ptm(\\\\\\\"content\\\\\\\")),[v(t.$slots,\\\\\\\"content\\\\\\\")],16),t.$slots.footer?(m(),g(\\\\\\\"div\\\\\\\",I({key:1,class:t.cx(\\\\\\\"footer\\\\\\\")},t.ptm(\\\\\\\"footer\\\\\\\")),[v(t.$slots,\\\\\\\"footer\\\\\\\")],16)):$(\\\\\\\"\\\\\\\",!0)],16)],16)};var io=St.extend({name:\\\\\\\"contextmenu\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-contextmenu {\\\\\\\\n    background: \\\\\\\".concat(e(\\\\\\\"contextmenu.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"contextmenu.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"contextmenu.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"contextmenu.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    min-width: 12.5rem;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-root-list,\\\\\\\\n.p-contextmenu-submenu {\\\\\\\\n    margin: 0;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"contextmenu.list.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    list-style: none;\\\\\\\\n    outline: 0 none;\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"contextmenu.list.gap\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-submenu {\\\\\\\\n    position: absolute;\\\\\\\\n    display: flex;\\\\\\\\n    flex-direction: column;\\\\\\\\n    min-width: 100%;\\\\\\\\n    z-index: 1;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"contextmenu.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"contextmenu.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"contextmenu.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"contextmenu.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item {\\\\\\\\n    position: relative;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-content {\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"contextmenu.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"contextmenu.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-link {\\\\\\\\n    cursor: pointer;\\\\\\\\n    display: flex;\\\\\\\\n    align-items: center;\\\\\\\\n    text-decoration: none;\\\\\\\\n    overflow: hidden;\\\\\\\\n    position: relative;\\\\\\\\n    color: inherit;\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.gap\\\\\\\"),\\\\\\\";\\\\\\\\n    user-select: none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-label {\\\\\\\\n    line-height: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-submenu-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n    margin-left: auto;\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    width: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n    height: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-submenu-icon:dir(rtl) {\\\\\\\\n    margin-left: 0;\\\\\\\\n    margin-right: auto;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item.p-focus \\\\u003e .p-contextmenu-item-content {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item.p-focus \\\\u003e .p-contextmenu-item-content .p-contextmenu-item-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.icon.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item.p-focus \\\\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item:not(.p-disabled) \\\\u003e .p-contextmenu-item-content:hover {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.focus.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item:not(.p-disabled) \\\\u003e .p-contextmenu-item-content:hover .p-contextmenu-item-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.icon.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item:not(.p-disabled) \\\\u003e .p-contextmenu-item-content:hover .p-contextmenu-submenu-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.focus.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-active \\\\u003e .p-contextmenu-item-content {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.active.background\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-active \\\\u003e .p-contextmenu-item-content .p-contextmenu-item-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.item.icon.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-item-active \\\\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"contextmenu.submenu.icon.active.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-separator {\\\\\\\\n    border-block-start: 1px solid \\\\\\\").concat(e(\\\\\\\"contextmenu.separator.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-enter-from,\\\\\\\\n.p-contextmenu-leave-active {\\\\\\\\n    opacity: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-enter-active {\\\\\\\\n    transition: opacity 250ms;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-mobile .p-contextmenu-submenu {\\\\\\\\n    position: static;\\\\\\\\n    box-shadow: none;\\\\\\\\n    border: 0 none;\\\\\\\\n    padding-inline-start: \\\\\\\").concat(e(\\\\\\\"tieredmenu.submenu.mobile.indent\\\\\\\"),\\\\\\\";\\\\\\\\n    padding-inline-end: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-mobile .p-contextmenu-submenu-icon {\\\\\\\\n    transition: transform 0.2s;\\\\\\\\n    transform: rotate(90deg);\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-contextmenu-mobile .p-contextmenu-item-active \\\\u003e .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\\\\\\\n    transform: rotate(-90deg);\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){return[\\\\\\\"p-contextmenu p-component\\\\\\\",{\\\\\\\"p-contextmenu-mobile\\\\\\\":t.instance.queryMatches}]},rootList:\\\\\\\"p-contextmenu-root-list\\\\\\\",item:function(t){var e=t.instance,n=t.processedItem;return[\\\\\\\"p-contextmenu-item\\\\\\\",{\\\\\\\"p-contextmenu-item-active\\\\\\\":e.isItemActive(n),\\\\\\\"p-focus\\\\\\\":e.isItemFocused(n),\\\\\\\"p-disabled\\\\\\\":e.isItemDisabled(n)}]},itemContent:\\\\\\\"p-contextmenu-item-content\\\\\\\",itemLink:\\\\\\\"p-contextmenu-item-link\\\\\\\",itemIcon:\\\\\\\"p-contextmenu-item-icon\\\\\\\",itemLabel:\\\\\\\"p-contextmenu-item-label\\\\\\\",submenuIcon:\\\\\\\"p-contextmenu-submenu-icon\\\\\\\",submenu:\\\\\\\"p-contextmenu-submenu\\\\\\\",separator:\\\\\\\"p-contextmenu-separator\\\\\\\"}}),ro={name:\\\\\\\"BaseContextMenu\\\\\\\",extends:Lt,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:\\\\\\\"body\\\\\\\"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},breakpoint:{type:String,default:\\\\\\\"960px\\\\\\\"},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:io,provide:function(){return{$pcContextMenu:this,$parentInstance:this}}},so={name:\\\\\\\"ContextMenuSub\\\\\\\",hostName:\\\\\\\"ContextMenu\\\\\\\",extends:Lt,emits:[\\\\\\\"item-click\\\\\\\",\\\\\\\"item-mouseenter\\\\\\\",\\\\\\\"item-mousemove\\\\\\\"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(t){return\\\\\\\"\\\\\\\".concat(this.menuId,\\\\\\\"_\\\\\\\").concat(t.key)},getItemKey:function(t){return this.getItemId(t)},getItemProp:function(t,e,n){return t\\\\u0026\\\\u0026t.item?It(t.item[e],n):void 0},getItemLabel:function(t){return this.getItemProp(t,\\\\\\\"label\\\\\\\")},getItemLabelId:function(t){return\\\\\\\"\\\\\\\".concat(this.menuId,\\\\\\\"_\\\\\\\").concat(t.key,\\\\\\\"_label\\\\\\\")},getPTOptions:function(t,e,n){return this.ptm(t,{context:{item:e.item,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e),index:n}})},isItemActive:function(t){return this.activeItemPath.some((function(e){return e.key===t.key}))},isItemVisible:function(t){return!1!==this.getItemProp(t,\\\\\\\"visible\\\\\\\")},isItemDisabled:function(t){return this.getItemProp(t,\\\\\\\"disabled\\\\\\\")},isItemFocused:function(t){return this.focusedItemId===this.getItemId(t)},isItemGroup:function(t){return K(t.items)},onItemClick:function(t,e){this.getItemProp(e,\\\\\\\"command\\\\\\\",{originalEvent:t,item:e.item}),this.$emit(\\\\\\\"item-click\\\\\\\",{originalEvent:t,processedItem:e,isFocus:!0})},onItemMouseEnter:function(t,e){this.$emit(\\\\\\\"item-mouseenter\\\\\\\",{originalEvent:t,processedItem:e})},onItemMouseMove:function(t,e){this.$emit(\\\\\\\"item-mousemove\\\\\\\",{originalEvent:t,processedItem:e,isFocus:!0})},getAriaSetSize:function(){var t=this;return this.items.filter((function(e){return t.isItemVisible(e)\\\\u0026\\\\u0026!t.getItemProp(e,\\\\\\\"separator\\\\\\\")})).length},getAriaPosInset:function(t){var e=this;return t-this.items.slice(0,t).filter((function(t){return e.isItemVisible(t)\\\\u0026\\\\u0026e.getItemProp(t,\\\\\\\"separator\\\\\\\")})).length+1},onEnter:function(){Ot(this.$refs.container,this.level)},getMenuItemProps:function(t,e){return{action:I({class:this.cx(\\\\\\\"itemLink\\\\\\\"),tabindex:-1},this.getPTOptions(\\\\\\\"itemLink\\\\\\\",t,e)),icon:I({class:[this.cx(\\\\\\\"itemIcon\\\\\\\"),this.getItemProp(t,\\\\\\\"icon\\\\\\\")]},this.getPTOptions(\\\\\\\"itemIcon\\\\\\\",t,e)),label:I({class:this.cx(\\\\\\\"itemLabel\\\\\\\")},this.getPTOptions(\\\\\\\"itemLabel\\\\\\\",t,e)),submenuicon:I({class:this.cx(\\\\\\\"submenuIcon\\\\\\\")},this.getPTOptions(\\\\\\\"submenuicon\\\\\\\",t,e))}}},components:{AngleRightIcon:Ht},directives:{ripple:De}},lo=[\\\\\\\"tabindex\\\\\\\"],ao=[\\\\\\\"id\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"aria-disabled\\\\\\\",\\\\\\\"aria-expanded\\\\\\\",\\\\\\\"aria-haspopup\\\\\\\",\\\\\\\"aria-level\\\\\\\",\\\\\\\"aria-setsize\\\\\\\",\\\\\\\"aria-posinset\\\\\\\",\\\\\\\"data-p-active\\\\\\\",\\\\\\\"data-p-focused\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"],co=[\\\\\\\"onClick\\\\\\\",\\\\\\\"onMouseenter\\\\\\\",\\\\\\\"onMousemove\\\\\\\"],uo=[\\\\\\\"href\\\\\\\",\\\\\\\"target\\\\\\\"],po=[\\\\\\\"id\\\\\\\"],ho=[\\\\\\\"id\\\\\\\"];so.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"AngleRightIcon\\\\\\\"),l=k(\\\\\\\"ContextMenuSub\\\\\\\",!0),a=w(\\\\\\\"ripple\\\\\\\");return m(),S(P,I({name:\\\\\\\"p-contextmenusub\\\\\\\",onEnter:r.onEnter},t.ptm(\\\\\\\"menu.transition\\\\\\\")),{default:L((function(){return[n.root||n.visible?(m(),g(\\\\\\\"ul\\\\\\\",I({key:0,ref:\\\\\\\"container\\\\\\\",tabindex:n.tabindex},t.ptm(\\\\\\\"rootList\\\\\\\")),[(m(!0),g(_,null,M(n.items,(function(o,i){return m(),g(_,{key:r.getItemKey(o)},[r.isItemVisible(o)\\\\u0026\\\\u0026!r.getItemProp(o,\\\\\\\"separator\\\\\\\")?(m(),g(\\\\\\\"li\\\\\\\",I({key:0,id:r.getItemId(o),style:r.getItemProp(o,\\\\\\\"style\\\\\\\"),class:[t.cx(\\\\\\\"item\\\\\\\",{processedItem:o}),r.getItemProp(o,\\\\\\\"class\\\\\\\")],role:\\\\\\\"menuitem\\\\\\\",\\\\\\\"aria-label\\\\\\\":r.getItemLabel(o),\\\\\\\"aria-disabled\\\\\\\":r.isItemDisabled(o)||void 0,\\\\\\\"aria-expanded\\\\\\\":r.isItemGroup(o)?r.isItemActive(o):void 0,\\\\\\\"aria-haspopup\\\\\\\":r.isItemGroup(o)\\\\u0026\\\\u0026!r.getItemProp(o,\\\\\\\"to\\\\\\\")?\\\\\\\"menu\\\\\\\":void 0,\\\\\\\"aria-level\\\\\\\":n.level+1,\\\\\\\"aria-setsize\\\\\\\":r.getAriaSetSize(),\\\\\\\"aria-posinset\\\\\\\":r.getAriaPosInset(i),ref_for:!0},r.getPTOptions(\\\\\\\"item\\\\\\\",o,i),{\\\\\\\"data-p-active\\\\\\\":r.isItemActive(o),\\\\\\\"data-p-focused\\\\\\\":r.isItemFocused(o),\\\\\\\"data-p-disabled\\\\\\\":r.isItemDisabled(o)}),[C(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"itemContent\\\\\\\"),onClick:function(t){return r.onItemClick(t,o)},onMouseenter:function(t){return r.onItemMouseEnter(t,o)},onMousemove:function(t){return r.onItemMouseMove(t,o)},ref_for:!0},r.getPTOptions(\\\\\\\"itemContent\\\\\\\",o,i)),[n.templates.item?(m(),S(E(n.templates.item),{key:1,item:o.item,hasSubmenu:r.getItemProp(o,\\\\\\\"items\\\\\\\"),label:r.getItemLabel(o),props:r.getMenuItemProps(o,i)},null,8,[\\\\\\\"item\\\\\\\",\\\\\\\"hasSubmenu\\\\\\\",\\\\\\\"label\\\\\\\",\\\\\\\"props\\\\\\\"])):O((m(),g(\\\\\\\"a\\\\\\\",I({key:0,href:r.getItemProp(o,\\\\\\\"url\\\\\\\"),class:t.cx(\\\\\\\"itemLink\\\\\\\"),target:r.getItemProp(o,\\\\\\\"target\\\\\\\"),tabindex:\\\\\\\"-1\\\\\\\",ref_for:!0},r.getPTOptions(\\\\\\\"itemLink\\\\\\\",o,i)),[n.templates.itemicon?(m(),S(E(n.templates.itemicon),{key:0,item:o.item,class:z(t.cx(\\\\\\\"itemIcon\\\\\\\"))},null,8,[\\\\\\\"item\\\\\\\",\\\\\\\"class\\\\\\\"])):r.getItemProp(o,\\\\\\\"icon\\\\\\\")?(m(),g(\\\\\\\"span\\\\\\\",I({key:1,class:[t.cx(\\\\\\\"itemIcon\\\\\\\"),r.getItemProp(o,\\\\\\\"icon\\\\\\\")],ref_for:!0},r.getPTOptions(\\\\\\\"itemIcon\\\\\\\",o,i)),null,16)):$(\\\\\\\"\\\\\\\",!0),C(\\\\\\\"span\\\\\\\",I({id:r.getItemLabelId(o),class:t.cx(\\\\\\\"itemLabel\\\\\\\"),ref_for:!0},r.getPTOptions(\\\\\\\"itemLabel\\\\\\\",o,i)),x(r.getItemLabel(o)),17,po),r.getItemProp(o,\\\\\\\"items\\\\\\\")?(m(),g(_,{key:2},[n.templates.submenuicon?(m(),S(E(n.templates.submenuicon),{key:0,active:r.isItemActive(o),class:z(t.cx(\\\\\\\"submenuIcon\\\\\\\"))},null,8,[\\\\\\\"active\\\\\\\",\\\\\\\"class\\\\\\\"])):(m(),S(s,I({key:1,class:t.cx(\\\\\\\"submenuIcon\\\\\\\"),ref_for:!0},r.getPTOptions(\\\\\\\"submenuicon\\\\\\\",o,i)),null,16,[\\\\\\\"class\\\\\\\"]))],64)):$(\\\\\\\"\\\\\\\",!0)],16,uo)),[[a]])],16,co),r.isItemVisible(o)\\\\u0026\\\\u0026r.isItemGroup(o)?(m(),S(l,I({key:0,id:r.getItemId(o)+\\\\\\\"_list\\\\\\\",role:\\\\\\\"menu\\\\\\\",class:t.cx(\\\\\\\"submenu\\\\\\\"),menuId:n.menuId,focusedItemId:n.focusedItemId,items:o.items,templates:n.templates,activeItemPath:n.activeItemPath,level:n.level+1,visible:r.isItemActive(o)\\\\u0026\\\\u0026r.isItemGroup(o),pt:t.pt,unstyled:t.unstyled,onItemClick:e[0]||(e[0]=function(e){return t.$emit(\\\\\\\"item-click\\\\\\\",e)}),onItemMouseenter:e[1]||(e[1]=function(e){return t.$emit(\\\\\\\"item-mouseenter\\\\\\\",e)}),onItemMousemove:e[2]||(e[2]=function(e){return t.$emit(\\\\\\\"item-mousemove\\\\\\\",e)}),\\\\\\\"aria-labelledby\\\\\\\":r.getItemLabelId(o),ref_for:!0},t.ptm(\\\\\\\"submenu\\\\\\\")),null,16,[\\\\\\\"id\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"menuId\\\\\\\",\\\\\\\"focusedItemId\\\\\\\",\\\\\\\"items\\\\\\\",\\\\\\\"templates\\\\\\\",\\\\\\\"activeItemPath\\\\\\\",\\\\\\\"level\\\\\\\",\\\\\\\"visible\\\\\\\",\\\\\\\"pt\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\"])):$(\\\\\\\"\\\\\\\",!0)],16,ao)):$(\\\\\\\"\\\\\\\",!0),r.isItemVisible(o)\\\\u0026\\\\u0026r.getItemProp(o,\\\\\\\"separator\\\\\\\")?(m(),g(\\\\\\\"li\\\\\\\",I({key:1,id:r.getItemId(o),style:r.getItemProp(o,\\\\\\\"style\\\\\\\"),class:[t.cx(\\\\\\\"separator\\\\\\\"),r.getItemProp(o,\\\\\\\"class\\\\\\\")],role:\\\\\\\"separator\\\\\\\",ref_for:!0},t.ptm(\\\\\\\"separator\\\\\\\")),null,16,ho)):$(\\\\\\\"\\\\\\\",!0)],64)})),128))],16,lo)):$(\\\\\\\"\\\\\\\",!0)]})),_:1},16,[\\\\\\\"onEnter\\\\\\\"])};var fo={name:\\\\\\\"ContextMenu\\\\\\\",extends:ro,inheritAttrs:!1,emits:[\\\\\\\"focus\\\\\\\",\\\\\\\"blur\\\\\\\",\\\\\\\"show\\\\\\\",\\\\\\\"hide\\\\\\\",\\\\\\\"before-show\\\\\\\",\\\\\\\"before-hide\\\\\\\"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,matchMediaListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"},activeItemPath:[],visible:!1,submenuVisible:!1,query:null,queryMatches:!1}},watch:{\\\\\\\"$attrs.id\\\\\\\":function(t){this.id=t||Et()},activeItemPath:function(t){K(t)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||Et(),this.bindMatchMediaListener(),this.global\\\\u0026\\\\u0026this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.unbindMatchMediaListener(),this.container\\\\u0026\\\\u0026this.autoZIndex\\\\u0026\\\\u0026Q.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(t,e){return t?It(t[e]):void 0},getItemLabel:function(t){return this.getItemProp(t,\\\\\\\"label\\\\\\\")},isItemDisabled:function(t){return this.getItemProp(t,\\\\\\\"disabled\\\\\\\")},isItemVisible:function(t){return!1!==this.getItemProp(t,\\\\\\\"visible\\\\\\\")},isItemGroup:function(t){return K(this.getItemProp(t,\\\\\\\"items\\\\\\\"))},isItemSeparator:function(t){return this.getItemProp(t,\\\\\\\"separator\\\\\\\")},getProccessedItemLabel:function(t){return t?this.getItemLabel(t.item):void 0},isProccessedItemGroup:function(t){return t\\\\u0026\\\\u0026K(t.items)},toggle:function(t){this.visible?this.hide():this.show(t)},show:function(t){this.$emit(\\\\\\\"before-show\\\\\\\"),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"},et(this.list),this.pageX=t.pageX,this.pageY=t.pageY,this.visible?this.position():this.visible=!0,t.stopPropagation(),t.preventDefault()},hide:function(){this.$emit(\\\\\\\"before-hide\\\\\\\"),this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"}},onFocus:function(t){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"},this.$emit(\\\\\\\"focus\\\\\\\",t)},onBlur:function(t){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:\\\\\\\"\\\\\\\"},this.searchValue=\\\\\\\"\\\\\\\",this.$emit(\\\\\\\"blur\\\\\\\",t)},onKeyDown:function(t){var e=t.metaKey||t.ctrlKey;switch(t.code){case\\\\\\\"ArrowDown\\\\\\\":this.onArrowDownKey(t);break;case\\\\\\\"ArrowUp\\\\\\\":this.onArrowUpKey(t);break;case\\\\\\\"ArrowLeft\\\\\\\":this.onArrowLeftKey(t);break;case\\\\\\\"ArrowRight\\\\\\\":this.onArrowRightKey(t);break;case\\\\\\\"Home\\\\\\\":this.onHomeKey(t);break;case\\\\\\\"End\\\\\\\":this.onEndKey(t);break;case\\\\\\\"Space\\\\\\\":this.onSpaceKey(t);break;case\\\\\\\"Enter\\\\\\\":case\\\\\\\"NumpadEnter\\\\\\\":this.onEnterKey(t);break;case\\\\\\\"Escape\\\\\\\":this.onEscapeKey(t);break;case\\\\\\\"Tab\\\\\\\":this.onTabKey(t);break;case\\\\\\\"PageDown\\\\\\\":case\\\\\\\"PageUp\\\\\\\":case\\\\\\\"Backspace\\\\\\\":case\\\\\\\"ShiftLeft\\\\\\\":case\\\\\\\"ShiftRight\\\\\\\":break;default:!e\\\\u0026\\\\u0026ot(t.key)\\\\u0026\\\\u0026this.searchItems(t,t.key)}},onItemChange:function(t,e){var n=t.processedItem,o=t.isFocus;if(!D(n)){var i=n.index,r=n.key,s=n.level,l=n.parentKey,a=n.items,c=K(a),u=this.activeItemPath.filter((function(t){return t.parentKey!==l\\\\u0026\\\\u0026t.parentKey!==r}));c\\\\u0026\\\\u0026(u.push(n),this.submenuVisible=!0),this.focusedItemInfo={index:i,level:s,parentKey:l},o\\\\u0026\\\\u0026et(this.list),\\\\\\\"hover\\\\\\\"===e\\\\u0026\\\\u0026this.queryMatches||(this.activeItemPath=u)}},onItemClick:function(t){var e=t.processedItem,n=this.isProccessedItemGroup(e);if(this.isSelected(e)){var o=e.index,i=e.key,r=e.level,s=e.parentKey;this.activeItemPath=this.activeItemPath.filter((function(t){return i!==t.key\\\\u0026\\\\u0026i.startsWith(t.key)})),this.focusedItemInfo={index:o,level:r,parentKey:s},et(this.list)}else n?this.onItemChange(t):this.hide()},onItemMouseEnter:function(t){this.onItemChange(t,\\\\\\\"hover\\\\\\\")},onItemMouseMove:function(t){this.focused\\\\u0026\\\\u0026this.changeFocusedItemIndex(t,t.processedItem.index)},onArrowDownKey:function(t){var e=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(t,e),t.preventDefault()},onArrowUpKey:function(t){if(t.altKey){if(-1!==this.focusedItemInfo.index){var e=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(e)\\\\u0026\\\\u0026this.onItemChange({originalEvent:t,processedItem:e})}this.popup\\\\u0026\\\\u0026this.hide(),t.preventDefault()}else{var n=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(t,n),t.preventDefault()}},onArrowLeftKey:function(t){var e=this,n=this.visibleItems[this.focusedItemInfo.index],o=this.activeItemPath.find((function(t){return t.key===n.parentKey}));D(n.parent)||(this.focusedItemInfo={index:-1,parentKey:o?o.parentKey:\\\\\\\"\\\\\\\"},this.searchValue=\\\\\\\"\\\\\\\",this.onArrowDownKey(t)),this.activeItemPath=this.activeItemPath.filter((function(t){return t.parentKey!==e.focusedItemInfo.parentKey})),t.preventDefault()},onArrowRightKey:function(t){var e=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(e)\\\\u0026\\\\u0026(this.onItemChange({originalEvent:t,processedItem:e}),this.focusedItemInfo={index:-1,parentKey:e.key},this.searchValue=\\\\\\\"\\\\\\\",this.onArrowDownKey(t)),t.preventDefault()},onHomeKey:function(t){this.changeFocusedItemIndex(t,this.findFirstItemIndex()),t.preventDefault()},onEndKey:function(t){this.changeFocusedItemIndex(t,this.findLastItemIndex()),t.preventDefault()},onEnterKey:function(t){if(-1!==this.focusedItemInfo.index){var e=J(this.list,'li[id=\\\\\\\"'.concat(\\\\\\\"\\\\\\\".concat(this.focusedItemIdx),'\\\\\\\"]')),n=e\\\\u0026\\\\u0026J(e,'[data-pc-section=\\\\\\\"itemlink\\\\\\\"]');n?n.click():e\\\\u0026\\\\u0026e.click();var o=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(o)\\\\u0026\\\\u0026(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}t.preventDefault()},onSpaceKey:function(t){this.onEnterKey(t)},onEscapeKey:function(t){this.hide(),!this.popup\\\\u0026\\\\u0026(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),t.preventDefault()},onTabKey:function(t){if(-1!==this.focusedItemInfo.index){var e=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(e)\\\\u0026\\\\u0026this.onItemChange({originalEvent:t,processedItem:e})}this.hide()},onEnter:function(t){st(t,{position:\\\\\\\"absolute\\\\\\\"}),this.position(),this.autoZIndex\\\\u0026\\\\u0026Q.set(\\\\\\\"menu\\\\\\\",t,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit(\\\\\\\"show\\\\\\\"),et(this.list)},onLeave:function(){this.$emit(\\\\\\\"hide\\\\\\\"),this.container=null},onAfterLeave:function(t){this.autoZIndex\\\\u0026\\\\u0026Q.clear(t),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var t=this.pageX+1,e=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:kt(this.container),o=this.container.offsetParent?this.container.offsetHeight:wt(this.container),i=gt(),r=window.scrollY||document.documentElement.scrollTop||document.body.scrollTop||0,s=window.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft||0;t+n-s\\\\u003ei.width\\\\u0026\\\\u0026(t-=n),e+o-r\\\\u003ei.height\\\\u0026\\\\u0026(e-=o),t\\\\u003cs\\\\u0026\\\\u0026(t=s),e\\\\u003cr\\\\u0026\\\\u0026(e=r),this.container.style.left=t+\\\\\\\"px\\\\\\\",this.container.style.top=e+\\\\\\\"px\\\\\\\"},bindOutsideClickListener:function(){var t=this;this.outsideClickListener||(this.outsideClickListener=function(e){var n=t.container\\\\u0026\\\\u0026!t.container.contains(e.target),o=!t.visible||!(t.target\\\\u0026\\\\u0026(t.target===e.target||t.target.contains(e.target)));n\\\\u0026\\\\u0026o\\\\u0026\\\\u0026t.hide()},document.addEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"click\\\\\\\",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var t=this;this.resizeListener||(this.resizeListener=function(){t.visible\\\\u0026\\\\u0026!ct()\\\\u0026\\\\u0026t.hide()},window.addEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener))},unbindResizeListener:function(){this.resizeListener\\\\u0026\\\\u0026(window.removeEventListener(\\\\\\\"resize\\\\\\\",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var t=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(e){2===e.button\\\\u0026\\\\u0026t.show(e)},document.addEventListener(\\\\\\\"contextmenu\\\\\\\",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener\\\\u0026\\\\u0026(document.removeEventListener(\\\\\\\"contextmenu\\\\\\\",this.documentContextMenuListener),this.documentContextMenuListener=null)},bindMatchMediaListener:function(){var t=this;if(!this.matchMediaListener){var e=matchMedia(\\\\\\\"(max-width: \\\\\\\".concat(this.breakpoint,\\\\\\\")\\\\\\\"));this.query=e,this.queryMatches=e.matches,this.matchMediaListener=function(){t.queryMatches=e.matches},this.query.addEventListener(\\\\\\\"change\\\\\\\",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener\\\\u0026\\\\u0026(this.query.removeEventListener(\\\\\\\"change\\\\\\\",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(t){var e;return this.isValidItem(t)\\\\u0026\\\\u0026(null===(e=this.getProccessedItemLabel(t))||void 0===e?void 0:e.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(t){return!!t\\\\u0026\\\\u0026!this.isItemDisabled(t.item)\\\\u0026\\\\u0026!this.isItemSeparator(t.item)\\\\u0026\\\\u0026this.isItemVisible(t.item)},isValidSelectedItem:function(t){return this.isValidItem(t)\\\\u0026\\\\u0026this.isSelected(t)},isSelected:function(t){return this.activeItemPath.some((function(e){return e.key===t.key}))},findFirstItemIndex:function(){var t=this;return this.visibleItems.findIndex((function(e){return t.isValidItem(e)}))},findLastItemIndex:function(){var t=this;return pt(this.visibleItems,(function(e){return t.isValidItem(e)}))},findNextItemIndex:function(t){var e=this,n=t\\\\u003cthis.visibleItems.length-1?this.visibleItems.slice(t+1).findIndex((function(t){return e.isValidItem(t)})):-1;return n\\\\u003e-1?n+t+1:t},findPrevItemIndex:function(t){var e=this,n=t\\\\u003e0?pt(this.visibleItems.slice(0,t),(function(t){return e.isValidItem(t)})):-1;return n\\\\u003e-1?n:t},findSelectedItemIndex:function(){var t=this;return this.visibleItems.findIndex((function(e){return t.isValidSelectedItem(e)}))},findFirstFocusedItemIndex:function(){var t=this.findSelectedItemIndex();return t\\\\u003c0?this.findFirstItemIndex():t},findLastFocusedItemIndex:function(){var t=this.findSelectedItemIndex();return t\\\\u003c0?this.findLastItemIndex():t},searchItems:function(t,e){var n=this;this.searchValue=(this.searchValue||\\\\\\\"\\\\\\\")+e;var o=-1,i=!1;return-1!==(o=-1!==this.focusedItemInfo.index?-1===(o=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(t){return n.isItemMatched(t)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(t){return n.isItemMatched(t)})):o+this.focusedItemInfo.index:this.visibleItems.findIndex((function(t){return n.isItemMatched(t)})))\\\\u0026\\\\u0026(i=!0),-1===o\\\\u0026\\\\u0026-1===this.focusedItemInfo.index\\\\u0026\\\\u0026(o=this.findFirstFocusedItemIndex()),-1!==o\\\\u0026\\\\u0026this.changeFocusedItemIndex(t,o),this.searchTimeout\\\\u0026\\\\u0026clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){n.searchValue=\\\\\\\"\\\\\\\",n.searchTimeout=null}),500),i},changeFocusedItemIndex:function(t,e){this.focusedItemInfo.index!==e\\\\u0026\\\\u0026(this.focusedItemInfo.index=e,this.scrollInView())},scrollInView:function(){var t=arguments.length\\\\u003e0\\\\u0026\\\\u0026void 0!==arguments[0]?arguments[0]:-1,e=-1!==t?\\\\\\\"\\\\\\\".concat(this.id,\\\\\\\"_\\\\\\\").concat(t):this.focusedItemIdx,n=J(this.list,'li[id=\\\\\\\"'.concat(e,'\\\\\\\"]'));n\\\\u0026\\\\u0026n.scrollIntoView\\\\u0026\\\\u0026n.scrollIntoView({block:\\\\\\\"nearest\\\\\\\",inline:\\\\\\\"start\\\\\\\"})},createProcessedItems:function(t){var e=this,n=arguments.length\\\\u003e1\\\\u0026\\\\u0026void 0!==arguments[1]?arguments[1]:0,o=arguments.length\\\\u003e2\\\\u0026\\\\u0026void 0!==arguments[2]?arguments[2]:{},i=arguments.length\\\\u003e3\\\\u0026\\\\u0026void 0!==arguments[3]?arguments[3]:\\\\\\\"\\\\\\\",r=[];return t\\\\u0026\\\\u0026t.forEach((function(t,s){var l=(\\\\\\\"\\\\\\\"!==i?i+\\\\\\\"_\\\\\\\":\\\\\\\"\\\\\\\")+s,a={item:t,index:s,level:n,key:l,parent:o,parentKey:i};a.items=e.createProcessedItems(t.items,n+1,a,l),r.push(a)})),r},containerRef:function(t){this.container=t},listRef:function(t){this.list=t?t.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var t=this,e=this.activeItemPath.find((function(e){return e.key===t.focusedItemInfo.parentKey}));return e?e.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?\\\\\\\"\\\\\\\".concat(this.id).concat(K(this.focusedItemInfo.parentKey)?\\\\\\\"_\\\\\\\"+this.focusedItemInfo.parentKey:\\\\\\\"\\\\\\\",\\\\\\\"_\\\\\\\").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:so,Portal:Ye}};fo.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"ContextMenuSub\\\\\\\"),l=k(\\\\\\\"Portal\\\\\\\");return m(),S(l,{appendTo:t.appendTo},{default:L((function(){return[V(P,I({name:\\\\\\\"p-contextmenu\\\\\\\",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},t.ptm(\\\\\\\"transition\\\\\\\")),{default:L((function(){return[i.visible?(m(),g(\\\\\\\"div\\\\\\\",I({key:0,ref:r.containerRef,class:t.cx(\\\\\\\"root\\\\\\\")},t.ptmi(\\\\\\\"root\\\\\\\")),[V(s,{ref:r.listRef,id:i.id+\\\\\\\"_list\\\\\\\",class:z(t.cx(\\\\\\\"rootList\\\\\\\")),role:\\\\\\\"menubar\\\\\\\",root:!0,tabindex:t.tabindex,\\\\\\\"aria-orientation\\\\\\\":\\\\\\\"vertical\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\":i.focused?r.focusedItemIdx:void 0,menuId:i.id,focusedItemId:i.focused?r.focusedItemIdx:void 0,items:r.processedItems,templates:t.$slots,activeItemPath:i.activeItemPath,\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"aria-label\\\\\\\":t.ariaLabel,level:0,visible:i.submenuVisible,pt:t.pt,unstyled:t.unstyled,onFocus:r.onFocus,onBlur:r.onBlur,onKeydown:r.onKeyDown,onItemClick:r.onItemClick,onItemMouseenter:r.onItemMouseEnter,onItemMousemove:r.onItemMouseMove},null,8,[\\\\\\\"id\\\\\\\",\\\\\\\"class\\\\\\\",\\\\\\\"tabindex\\\\\\\",\\\\\\\"aria-activedescendant\\\\\\\",\\\\\\\"menuId\\\\\\\",\\\\\\\"focusedItemId\\\\\\\",\\\\\\\"items\\\\\\\",\\\\\\\"templates\\\\\\\",\\\\\\\"activeItemPath\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"aria-label\\\\\\\",\\\\\\\"visible\\\\\\\",\\\\\\\"pt\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"onFocus\\\\\\\",\\\\\\\"onBlur\\\\\\\",\\\\\\\"onKeydown\\\\\\\",\\\\\\\"onItemClick\\\\\\\",\\\\\\\"onItemMouseenter\\\\\\\",\\\\\\\"onItemMousemove\\\\\\\"])],16)):$(\\\\\\\"\\\\\\\",!0)]})),_:1},16,[\\\\\\\"onEnter\\\\\\\",\\\\\\\"onAfterEnter\\\\\\\",\\\\\\\"onLeave\\\\\\\",\\\\\\\"onAfterLeave\\\\\\\"])]})),_:1},8,[\\\\\\\"appendTo\\\\\\\"])};var bo=St.extend({name:\\\\\\\"togglebutton\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-togglebutton {\\\\\\\\n    display: inline-flex;\\\\\\\\n    cursor: pointer;\\\\\\\\n    user-select: none;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    overflow: hidden;\\\\\\\\n    position: relative;\\\\\\\\n    color: \\\\\\\".concat(e(\\\\\\\"togglebutton.color\\\\\\\"),\\\\\\\";\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border: 1px solid \\\\\\\").concat(e(\\\\\\\"togglebutton.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"togglebutton.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: 1rem;\\\\\\\\n    font-family: inherit;\\\\\\\\n    font-feature-settings: inherit;\\\\\\\\n    transition: background \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n        outline-color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"togglebutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-color: transparent;\\\\\\\\n    font-weight: \\\\\\\").concat(e(\\\\\\\"togglebutton.font.weight\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-content {\\\\\\\\n    position: relative;\\\\\\\\n    display: inline-flex;\\\\\\\\n    align-items: center;\\\\\\\\n    justify-content: center;\\\\\\\\n    gap: \\\\\\\").concat(e(\\\\\\\"togglebutton.gap\\\\\\\"),';\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-label,\\\\\\\\n.p-togglebutton-icon {\\\\\\\\n    position: relative;\\\\\\\\n    transition: none;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton::before {\\\\\\\\n    content: \\\\\\\"\\\\\\\";\\\\\\\\n    background: transparent;\\\\\\\\n    transition: background ').concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", border-color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\",\\\\\\\\n            outline-color \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\", box-shadow \\\\\\\").concat(e(\\\\\\\"togglebutton.transition.duration\\\\\\\"),\\\\\\\";\\\\\\\\n    position: absolute;\\\\\\\\n    inset-inline-start: \\\\\\\").concat(e(\\\\\\\"togglebutton.content.left\\\\\\\"),\\\\\\\";\\\\\\\\n    inset-block-start: \\\\\\\").concat(e(\\\\\\\"togglebutton.content.top\\\\\\\"),\\\\\\\";\\\\\\\\n    width: calc(100% - calc(2 * \\\\\\\").concat(e(\\\\\\\"togglebutton.content.left\\\\\\\"),\\\\\\\"));\\\\\\\\n    height: calc(100% - calc(2 * \\\\\\\").concat(e(\\\\\\\"togglebutton.content.top\\\\\\\"),\\\\\\\"));\\\\\\\\n    border-radius: \\\\\\\").concat(e(\\\\\\\"togglebutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton.p-togglebutton-checked::before {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.content.checked.background\\\\\\\"),\\\\\\\";\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"togglebutton.content.checked.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.hover.background\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton.p-togglebutton-checked {\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.checked.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"togglebutton.checked.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.checked.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:focus-visible {\\\\\\\\n    box-shadow: \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.shadow\\\\\\\"),\\\\\\\";\\\\\\\\n    outline: \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.width\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.style\\\\\\\"),\\\\\\\" \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: \\\\\\\").concat(e(\\\\\\\"togglebutton.focus.ring.offset\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton.p-invalid {\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"togglebutton.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:disabled {\\\\\\\\n    opacity: 1;\\\\\\\\n    cursor: default;\\\\\\\\n    background: \\\\\\\").concat(e(\\\\\\\"togglebutton.disabled.background\\\\\\\"),\\\\\\\";\\\\\\\\n    border-color: \\\\\\\").concat(e(\\\\\\\"togglebutton.disabled.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.icon.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.icon.hover.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.icon.checked.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton:disabled .p-togglebutton-icon {\\\\\\\\n    color: \\\\\\\").concat(e(\\\\\\\"togglebutton.icon.disabled.color\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-sm {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"togglebutton.sm.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"togglebutton.sm.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-togglebutton-lg {\\\\\\\\n    padding: \\\\\\\").concat(e(\\\\\\\"togglebutton.lg.padding\\\\\\\"),\\\\\\\";\\\\\\\\n    font-size: \\\\\\\").concat(e(\\\\\\\"togglebutton.lg.font.size\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){var e=t.instance,n=t.props;return[\\\\\\\"p-togglebutton p-component\\\\\\\",{\\\\\\\"p-togglebutton-checked\\\\\\\":e.active,\\\\\\\"p-invalid\\\\\\\":e.$invalid,\\\\\\\"p-togglebutton-sm p-inputfield-sm\\\\\\\":\\\\\\\"small\\\\\\\"===n.size,\\\\\\\"p-togglebutton-lg p-inputfield-lg\\\\\\\":\\\\\\\"large\\\\\\\"===n.size}]},content:\\\\\\\"p-togglebutton-content\\\\\\\",icon:\\\\\\\"p-togglebutton-icon\\\\\\\",label:\\\\\\\"p-togglebutton-label\\\\\\\"}}),mo={name:\\\\\\\"ToggleButton\\\\\\\",extends:{name:\\\\\\\"BaseToggleButton\\\\\\\",extends:Bt,props:{onIcon:String,offIcon:String,onLabel:{type:String,default:\\\\\\\"Yes\\\\\\\"},offLabel:{type:String,default:\\\\\\\"No\\\\\\\"},iconPos:{type:String,default:\\\\\\\"left\\\\\\\"},readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},size:{type:String,default:null}},style:bo,provide:function(){return{$pcToggleButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\"],methods:{getPTOptions:function(t){return(\\\\\\\"root\\\\\\\"===t?this.ptmi:this.ptm)(t,{context:{active:this.active,disabled:this.disabled}})},onChange:function(t){this.disabled||this.readonly||(this.writeValue(!this.d_value,t),this.$emit(\\\\\\\"change\\\\\\\",t))},onBlur:function(t){var e,n;null===(e=(n=this.formField).onBlur)||void 0===e||e.call(n,t)}},computed:{active:function(){return!0===this.d_value},hasLabel:function(){return K(this.onLabel)\\\\u0026\\\\u0026K(this.offLabel)},label:function(){return this.hasLabel?this.d_value?this.onLabel:this.offLabel:\\\\\\\"\\u00a0\\\\\\\"}},directives:{ripple:De}},go=[\\\\\\\"tabindex\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"aria-pressed\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\",\\\\\\\"data-p-checked\\\\\\\",\\\\\\\"data-p-disabled\\\\\\\"];mo.render=function(t,e,n,o,i,r){var s=w(\\\\\\\"ripple\\\\\\\");return O((m(),g(\\\\\\\"button\\\\\\\",I({type:\\\\\\\"button\\\\\\\",class:t.cx(\\\\\\\"root\\\\\\\"),tabindex:t.tabindex,disabled:t.disabled,\\\\\\\"aria-pressed\\\\\\\":t.d_value,onClick:e[0]||(e[0]=function(){return r.onChange\\\\u0026\\\\u0026r.onChange.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onBlur\\\\u0026\\\\u0026r.onBlur.apply(r,arguments)})},r.getPTOptions(\\\\\\\"root\\\\\\\"),{\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby,\\\\\\\"data-p-checked\\\\\\\":r.active,\\\\\\\"data-p-disabled\\\\\\\":t.disabled}),[C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"content\\\\\\\")},r.getPTOptions(\\\\\\\"content\\\\\\\")),[v(t.$slots,\\\\\\\"default\\\\\\\",{},(function(){return[v(t.$slots,\\\\\\\"icon\\\\\\\",{value:t.d_value,class:z(t.cx(\\\\\\\"icon\\\\\\\"))},(function(){return[t.onIcon||t.offIcon?(m(),g(\\\\\\\"span\\\\\\\",I({key:0,class:[t.cx(\\\\\\\"icon\\\\\\\"),t.d_value?t.onIcon:t.offIcon]},r.getPTOptions(\\\\\\\"icon\\\\\\\")),null,16)):$(\\\\\\\"\\\\\\\",!0)]})),C(\\\\\\\"span\\\\\\\",I({class:t.cx(\\\\\\\"label\\\\\\\")},r.getPTOptions(\\\\\\\"label\\\\\\\")),x(r.label),17)]}))],16)],16,go)),[[s]])};var vo=St.extend({name:\\\\\\\"selectbutton\\\\\\\",theme:function(t){var e=t.dt;return\\\\\\\"\\\\\\\\n.p-selectbutton {\\\\\\\\n    display: inline-flex;\\\\\\\\n    user-select: none;\\\\\\\\n    vertical-align: bottom;\\\\\\\\n    outline-color: transparent;\\\\\\\\n    border-radius: \\\\\\\".concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton .p-togglebutton {\\\\\\\\n    border-radius: 0;\\\\\\\\n    border-width: 1px 1px 1px 0;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton .p-togglebutton:focus-visible {\\\\\\\\n    position: relative;\\\\\\\\n    z-index: 1;\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton .p-togglebutton:first-child {\\\\\\\\n    border-inline-start-width: 1px;\\\\\\\\n    border-start-start-radius: \\\\\\\").concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border-end-start-radius: \\\\\\\").concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton .p-togglebutton:last-child {\\\\\\\\n    border-start-end-radius: \\\\\\\").concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n    border-end-end-radius: \\\\\\\").concat(e(\\\\\\\"selectbutton.border.radius\\\\\\\"),\\\\\\\";\\\\\\\\n}\\\\\\\\n\\\\\\\\n.p-selectbutton.p-invalid {\\\\\\\\n    outline: 1px solid \\\\\\\").concat(e(\\\\\\\"selectbutton.invalid.border.color\\\\\\\"),\\\\\\\";\\\\\\\\n    outline-offset: 0;\\\\\\\\n}\\\\\\\\n\\\\\\\")},classes:{root:function(t){return[\\\\\\\"p-selectbutton p-component\\\\\\\",{\\\\\\\"p-invalid\\\\\\\":t.instance.$invalid}]}}});function yo(t){return function(t){if(Array.isArray(t))return Io(t)}(t)||function(t){if(\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026null!=t[Symbol.iterator]||null!=t[\\\\\\\"@@iterator\\\\\\\"])return Array.from(t)}(t)||xo(t)||function(){throw new TypeError(\\\\\\\"Invalid attempt to spread non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}()}function xo(t,e){if(t){if(\\\\\\\"string\\\\\\\"==typeof t)return Io(t,e);var n={}.toString.call(t).slice(8,-1);return\\\\\\\"Object\\\\\\\"===n\\\\u0026\\\\u0026t.constructor\\\\u0026\\\\u0026(n=t.constructor.name),\\\\\\\"Map\\\\\\\"===n||\\\\\\\"Set\\\\\\\"===n?Array.from(t):\\\\\\\"Arguments\\\\\\\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(t,e):void 0}}function Io(t,e){(null==e||e\\\\u003et.length)\\\\u0026\\\\u0026(e=t.length);for(var n=0,o=Array(e);n\\\\u003ce;n++)o[n]=t[n];return o}var ko={name:\\\\\\\"SelectButton\\\\\\\",extends:{name:\\\\\\\"BaseSelectButton\\\\\\\",extends:Bt,props:{options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,allowEmpty:{type:Boolean,default:!0},dataKey:null,ariaLabelledby:{type:String,default:null},size:{type:String,default:null}},style:vo,provide:function(){return{$pcSelectButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[\\\\\\\"change\\\\\\\"],methods:{getOptionLabel:function(t){return this.optionLabel?tt(t,this.optionLabel):t},getOptionValue:function(t){return this.optionValue?tt(t,this.optionValue):t},getOptionRenderKey:function(t){return this.dataKey?tt(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled:function(t){return!!this.optionDisabled\\\\u0026\\\\u0026tt(t,this.optionDisabled)},onOptionSelect:function(t,e,n){var o=this;if(!this.disabled\\\\u0026\\\\u0026!this.isOptionDisabled(e)){var i=this.isSelected(e);if(!i||this.allowEmpty){var r,s=this.getOptionValue(e);r=this.multiple?i?this.d_value.filter((function(t){return!dt(t,s,o.equalityKey)})):this.d_value?[].concat(yo(this.d_value),[s]):[s]:i?null:s,this.writeValue(r,t),this.$emit(\\\\\\\"change\\\\\\\",{event:t,value:r})}}},isSelected:function(t){var e=!1,n=this.getOptionValue(t);if(this.multiple){if(this.d_value){var o,i=function(t,e){var n=\\\\\\\"undefined\\\\\\\"!=typeof Symbol\\\\u0026\\\\u0026t[Symbol.iterator]||t[\\\\\\\"@@iterator\\\\\\\"];if(!n){if(Array.isArray(t)||(n=xo(t))||e){n\\\\u0026\\\\u0026(t=n);var o=0,i=function(){};return{s:i,n:function(){return o\\\\u003e=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError(\\\\\\\"Invalid attempt to iterate non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\\\\\")}var r,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw r}}}}(this.d_value);try{for(i.s();!(o=i.n()).done;){var r=o.value;if(dt(r,n,this.equalityKey)){e=!0;break}}}catch(s){i.e(s)}finally{i.f()}}}else e=dt(this.d_value,n,this.equalityKey);return e}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey}},directives:{ripple:De},components:{ToggleButton:mo}},wo=[\\\\\\\"aria-labelledby\\\\\\\"];ko.render=function(t,e,n,o,i,r){var s=k(\\\\\\\"ToggleButton\\\\\\\");return m(),g(\\\\\\\"div\\\\\\\",I({class:t.cx(\\\\\\\"root\\\\\\\"),role:\\\\\\\"group\\\\\\\",\\\\\\\"aria-labelledby\\\\\\\":t.ariaLabelledby},t.ptmi(\\\\\\\"root\\\\\\\")),[(m(!0),g(_,null,M(t.options,(function(e,n){return m(),S(s,{key:r.getOptionRenderKey(e),modelValue:r.isSelected(e),onLabel:r.getOptionLabel(e),offLabel:r.getOptionLabel(e),disabled:t.disabled||r.isOptionDisabled(e),unstyled:t.unstyled,size:t.size,readonly:!t.allowEmpty\\\\u0026\\\\u0026r.isSelected(e),onChange:function(t){return r.onOptionSelect(t,e,n)},pt:t.ptm(\\\\\\\"pcToggleButton\\\\\\\")},A({_:2},[t.$slots.option?{name:\\\\\\\"default\\\\\\\",fn:L((function(){return[v(t.$slots,\\\\\\\"option\\\\\\\",{option:e,index:n},(function(){return[C(\\\\\\\"span\\\\\\\",I({ref_for:!0},t.ptm(\\\\\\\"pcToggleButton\\\\\\\").label),x(r.getOptionLabel(e)),17)]}))]})),key:\\\\\\\"0\\\\\\\"}:void 0]),1032,[\\\\\\\"modelValue\\\\\\\",\\\\\\\"onLabel\\\\\\\",\\\\\\\"offLabel\\\\\\\",\\\\\\\"disabled\\\\\\\",\\\\\\\"unstyled\\\\\\\",\\\\\\\"size\\\\\\\",\\\\\\\"readonly\\\\\\\",\\\\\\\"onChange\\\\\\\",\\\\\\\"pt\\\\\\\"])})),128))],16,wo)};export{On as T,pn as a,jn as b,Qn as c,re as d,se as e,Ne as f,We as g,Ce as h,Ue as i,ko as j,oo as k,fo as l,qt as m,Ge as s};\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$socket4\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v2/assets/vendor-DrOEdrAG.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$socket4\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 2055\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 16562\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 16651\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 16864\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 66713\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 116775\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 116952\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 117004\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 117061\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let jt;const Rt=t=\\\\u003ejt=t,Gt=Symbol();function Ut(t){return t\\\\u0026\\\\u0026\\\\\\\"object\\\\\\\"==typeof t\\\\u0026\\\\u0026\\\\\\\"[object Object]\\\\\\\"===Object.prototype.toString.call(t)\\\\u0026\\\\u0026\\\\\\\"function\\\\\\\"!=typeof t.toJSON}var Nt,Wt;function qt(){const o=t(!0),i=o.run((()=\\\\u003ee({})));let r=[],s=[];const l=n({install(\\\",\\n                                    \\\"line_number\\\": 7,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 117235\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-network-requests\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"10 | * (c) 2018-present Yuxi (Evan) You and Vue contributors\\\\n11 | * @license MIT\\\\n12 | **/\\\\n13 | let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\\\u0026\\\\u0026te\\\\u0026\\\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e\\\\u003ct;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e\\\\u003ct;e++)this.effects[e].pause()}}resume(){if(this._active\\\\u0026\\\\u0026this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e\\\\u003ct;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e\\\\u003ct;e++)this.effects[e].resume()}}run(e){if(this._active){const t=te;try{return te=this,e()}finally{te=t}}}on(){1==++this._on\\\\u0026\\\\u0026(this.prevScope=te,te=this)}off(){this._on\\\\u003e0\\\\u0026\\\\u00260==--this._on\\\\u0026\\\\u0026(te=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t\\\\u003cn;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t\\\\u003cn;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t\\\\u003cn;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached\\\\u0026\\\\u0026this.parent\\\\u0026\\\\u0026!e){const e=this.parent.scopes.pop();e\\\\u0026\\\\u0026e!==this\\\\u0026\\\\u0026(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function re(e){return new se(e)}function oe(){return te}function ie(e,t=!1){te\\\\u0026\\\\u0026te.cleanups.push(e)}const le=new WeakSet;class ce{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,te\\\\u0026\\\\u0026te.active\\\\u0026\\\\u0026te.effects.push(this)}pause(){this.flags|=64}resume(){64\\\\u0026this.flags\\\\u0026\\\\u0026(this.flags\\\\u0026=-65,le.has(this)\\\\u0026\\\\u0026(le.delete(this),this.trigger()))}notify(){2\\\\u0026this.flags\\\\u0026\\\\u0026!(32\\\\u0026this.flags)||8\\\\u0026this.flags||pe(this)}run(){if(!(1\\\\u0026this.flags))return this.fn();this.flags|=2,ke(this),ve(this);const e=ne,t=xe;ne=this,xe=!0;try{return this.fn()}finally{ge(this),ne=e,xe=t,this.flags\\\\u0026=-3}}stop(){if(1\\\\u0026this.flags){for(let e=this.deps;e;e=e.nextDep)ye(e);this.deps=this.depsTail=void 0,ke(this),this.onStop\\\\u0026\\\\u0026this.onStop(),this.flags\\\\u0026=-2}}trigger(){64\\\\u0026this.flags?le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){me(this)\\\\u0026\\\\u0026this.run()}get dirty(){return me(this)}}let ae,ue,fe=0;function pe(e,t=!1){if(e.flags|=8,t)return e.next=ue,void(ue=e);e.next=ae,ae=e}function de(){fe++}function he(){if(--fe\\\\u003e0)return;if(ue){let e=ue;for(ue=void 0;e;){const t=e.next;e.next=void 0,e.flags\\\\u0026=-9,e=t}}let e;for(;ae;){let n=ae;for(ae=void 0;n;){const s=n.next;if(n.next=void 0,n.flags\\\\u0026=-9,1\\\\u0026n.flags)try{n.trigger()}catch(t){e||(e=t)}n=s}}if(e)throw e}function ve(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ge(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n\\\\u0026\\\\u0026(n=e),ye(s),be(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function me(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed\\\\u0026\\\\u0026(_e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _e(e){if(4\\\\u0026e.flags\\\\u0026\\\\u0026!(16\\\\u0026e.flags))return;if(e.flags\\\\u0026=-17,e.globalVersion===Ae)return;if(e.globalVersion=Ae,!e.isSSR\\\\u0026\\\\u0026128\\\\u0026e.flags\\\\u0026\\\\u0026(!e.deps\\\\u0026\\\\u0026!e._dirty||!me(e)))return;e.flags|=2;const t=e.dep,n=ne,s=xe;ne=e,xe=!0;try{ve(e);const n=e.fn(e._value);(0===t.version||j(n,e._value))\\\\u0026\\\\u0026(e.flags|=128,e._value=n,t.version++)}catch(r){throw t.version++,r}finally{ne=n,xe=s,ge(e),e.flags\\\\u0026=-3}}function ye(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s\\\\u0026\\\\u0026(s.nextSub=r,e.prevSub=void 0),r\\\\u0026\\\\u0026(r.prevSub=s,e.nextSub=void 0),n.subs===e\\\\u0026\\\\u0026(n.subs=s,!s\\\\u0026\\\\u0026n.computed)){n.computed.flags\\\\u0026=-5;for(let e=n.computed.deps;e;e=e.nextDep)ye(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function be(e){const{prevDep:t,nextDep:n}=e;t\\\\u0026\\\\u0026(t.nextDep=n,e.prevDep=void 0),n\\\\u0026\\\\u0026(n.prevDep=t,e.nextDep=void 0)}let xe=!0;const Se=[];function Ce(){Se.push(xe),xe=!1}function we(){const e=Se.pop();xe=void 0===e||e}function ke(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ne;ne=void 0;try{t()}finally{ne=e}}}let Ae=0;class Ee{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Te{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ne||!xe||ne===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ne)t=this.activeLink=new Ee(ne,this),ne.deps?(t.prevDep=ne.depsTail,ne.depsTail.nextDep=t,ne.depsTail=t):ne.deps=ne.depsTail=t,Oe(t);else if(-1===t.version\\\\u0026\\\\u0026(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep\\\\u0026\\\\u0026(t.prevDep.nextDep=e),t.prevDep=ne.depsTail,t.nextDep=void 0,ne.depsTail.nextDep=t,ne.depsTail=t,ne.deps===t\\\\u0026\\\\u0026(ne.deps=e)}return t}trigger(e){this.version++,Ae++,this.notify(e)}notify(e){de();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()\\\\u0026\\\\u0026e.sub.dep.notify()}finally{he()}}}function Oe(e){if(e.dep.sc++,4\\\\u0026e.sub.flags){const t=e.dep.computed;if(t\\\\u0026\\\\u0026!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Oe(e)}const n=e.dep.subs;n!==e\\\\u0026\\\\u0026(e.prevSub=n,n\\\\u0026\\\\u0026(n.nextSub=e)),e.dep.subs=e}}const Fe=new WeakMap,Le=Symbol(\\\\\\\"\\\\\\\"),Me=Symbol(\\\\\\\"\\\\\\\"),je=Symbol(\\\\\\\"\\\\\\\");function Pe(e,t,n){if(xe\\\\u0026\\\\u0026ne){let t=Fe.get(e);t||Fe.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Te),s.map=t,s.key=n),s.track()}}function De(e,t,n,s,r,o){const i=Fe.get(e);if(!i)return void Ae++;const l=e=\\\\u003e{e\\\\u0026\\\\u0026e.trigger()};if(de(),\\\\\\\"clear\\\\\\\"===t)i.forEach(l);else{const r=f(e),o=r\\\\u0026\\\\u0026w(n);if(r\\\\u0026\\\\u0026\\\\\\\"length\\\\\\\"===n){const e=Number(s);i.forEach(((t,n)=\\\\u003e{(\\\\\\\"length\\\\\\\"===n||n===je||!m(n)\\\\u0026\\\\u0026n\\\\u003e=e)\\\\u0026\\\\u0026l(t)}))}else switch((void 0!==n||i.has(void 0))\\\\u0026\\\\u0026l(i.get(n)),o\\\\u0026\\\\u0026l(i.get(je)),t){case\\\\\\\"add\\\\\\\":r?o\\\\u0026\\\\u0026l(i.get(\\\\\\\"length\\\\\\\")):(l(i.get(Le)),p(e)\\\\u0026\\\\u0026l(i.get(Me)));break;case\\\\\\\"delete\\\\\\\":r||(l(i.get(Le)),p(e)\\\\u0026\\\\u0026l(i.get(Me)));break;case\\\\\\\"set\\\\\\\":p(e)\\\\u0026\\\\u0026l(i.get(Le))}}he()}function Ve(e){const t=yt(e);return t===e?t:(Pe(t,0,je),mt(e)?t:t.map(xt))}function Re(e){return Pe(e=yt(e),0,je),e}const $e={__proto__:null,[Symbol.iterator](){return Ie(this,Symbol.iterator,xt)},concat(...e){return Ve(this).concat(...e.map((e=\\\\u003ef(e)?Ve(e):e)))},entries(){return Ie(this,\\\\\\\"entries\\\\\\\",(e=\\\\u003e(e[1]=xt(e[1]),e)))},every(e,t){return Ue(this,\\\\\\\"every\\\\\\\",e,t,void 0,arguments)},filter(e,t){return Ue(this,\\\\\\\"filter\\\\\\\",e,t,(e=\\\\u003ee.map(xt)),arguments)},find(e,t){return Ue(this,\\\\\\\"find\\\\\\\",e,t,xt,arguments)},findIndex(e,t){return Ue(this,\\\\\\\"findIndex\\\\\\\",e,t,void 0,arguments)},findLast(e,t){return Ue(this,\\\\\\\"findLast\\\\\\\",e,t,xt,arguments)},findLastIndex(e,t){return Ue(this,\\\\\\\"findLastIndex\\\\\\\",e,t,void 0,arguments)},forEach(e,t){return Ue(this,\\\\\\\"forEach\\\\\\\",e,t,void 0,arguments)},includes(...e){return We(this,\\\\\\\"includes\\\\\\\",e)},indexOf(...e){return We(this,\\\\\\\"indexOf\\\\\\\",e)},join(e){return Ve(this).join(e)},lastIndexOf(...e){return We(this,\\\\\\\"lastIndexOf\\\\\\\",e)},map(e,t){return Ue(this,\\\\\\\"map\\\\\\\",e,t,void 0,arguments)},pop(){return He(this,\\\\\\\"pop\\\\\\\")},push(...e){return He(this,\\\\\\\"push\\\\\\\",e)},reduce(e,...t){return Be(this,\\\\\\\"reduce\\\\\\\",e,t)},reduceRight(e,...t){return Be(this,\\\\\\\"reduceRight\\\\\\\",e,t)},shift(){return He(this,\\\\\\\"shift\\\\\\\")},some(e,t){return Ue(this,\\\\\\\"some\\\\\\\",e,t,void 0,arguments)},splice(...e){return He(this,\\\\\\\"splice\\\\\\\",e)},toReversed(){return Ve(this).toReversed()},toSorted(e){return Ve(this).toSorted(e)},toSpliced(...e){return Ve(this).toSpliced(...e)},unshift(...e){return He(this,\\\\\\\"unshift\\\\\\\",e)},values(){return Ie(this,\\\\\\\"values\\\\\\\",xt)}};function Ie(e,t,n){const s=Re(e),r=s[t]();return s===e||mt(e)||(r._next=r.next,r.next=()=\\\\u003e{const e=r._next();return e.value\\\\u0026\\\\u0026(e.value=n(e.value)),e}),r}const Ne=Array.prototype;function Ue(e,t,n,s,r,o){const i=Re(e),l=i!==e\\\\u0026\\\\u0026!mt(e),c=i[t];if(c!==Ne[t]){const t=c.apply(e,o);return l?xt(t):t}let a=n;i!==e\\\\u0026\\\\u0026(l?a=function(t,s){return n.call(this,xt(t),s,e)}:n.length\\\\u003e2\\\\u0026\\\\u0026(a=function(t,s){return n.call(this,t,s,e)}));const u=c.call(i,a,s);return l\\\\u0026\\\\u0026r?r(u):u}function Be(e,t,n,s){const r=Re(e);let o=n;return r!==e\\\\u0026\\\\u0026(mt(e)?n.length\\\\u003e3\\\\u0026\\\\u0026(o=function(t,s,r){return n.call(this,t,s,r,e)}):o=function(t,s,r){return n.call(this,t,xt(s),r,e)}),r[t](o,...s)}function We(e,t,n){const s=yt(e);Pe(s,0,je);const r=s[t](...n);return-1!==r\\\\u0026\\\\u0026!1!==r||!_t(n[0])?r:(n[0]=yt(n[0]),s[t](...n))}function He(e,t,n=[]){Ce(),de();const s=yt(e)[t].apply(e,n);return he(),we(),s}const Ke=e(\\\\\\\"__proto__,__v_isRef,__isVue\\\\\\\"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter((e=\\\\u003e\\\\\\\"arguments\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"caller\\\\\\\"!==e)).map((e=\\\\u003eSymbol[e])).filter(m));function qe(e){m(e)||(e=String(e));const t=yt(this);return Pe(t,0,e),t.hasOwnProperty(e)}class Ge{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(\\\\\\\"__v_skip\\\\\\\"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if(\\\\\\\"__v_isReactive\\\\\\\"===t)return!s;if(\\\\\\\"__v_isReadonly\\\\\\\"===t)return s;if(\\\\\\\"__v_isShallow\\\\\\\"===t)return r;if(\\\\\\\"__v_raw\\\\\\\"===t)return n===(s?r?ft:ut:r?at:ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=f(e);if(!s){let e;if(o\\\\u0026\\\\u0026(e=$e[t]))return e;if(\\\\\\\"hasOwnProperty\\\\\\\"===t)return qe}const i=Reflect.get(e,t,Ct(e)?e:n);return(m(t)?ze.has(t):Ke(t))?i:(s||Pe(e,0,t),r?i:Ct(i)?o\\\\u0026\\\\u0026w(t)?i:i.value:_(i)?s?dt(i):pt(i):i)}}class Je extends Ge{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=gt(r);if(mt(n)||gt(n)||(r=yt(r),n=yt(n)),!f(e)\\\\u0026\\\\u0026Ct(r)\\\\u0026\\\\u0026!Ct(n))return!t\\\\u0026\\\\u0026(r.value=n,!0)}const o=f(e)\\\\u0026\\\\u0026w(t)?Number(t)\\\\u003ce.length:u(e,t),i=Reflect.set(e,t,n,Ct(e)?e:s);return e===yt(s)\\\\u0026\\\\u0026(o?j(n,r)\\\\u0026\\\\u0026De(e,\\\\\\\"set\\\\\\\",t,n):De(e,\\\\\\\"add\\\\\\\",t,n)),i}deleteProperty(e,t){const n=u(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s\\\\u0026\\\\u0026n\\\\u0026\\\\u0026De(e,\\\\\\\"delete\\\\\\\",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return m(t)\\\\u0026\\\\u0026ze.has(t)||Pe(e,0,t),n}ownKeys(e){return Pe(e,0,f(e)?\\\\\\\"length\\\\\\\":Le),Reflect.ownKeys(e)}}class Ze extends Ge{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Xe=new Je,Qe=new Ze,Ye=new Je(!0),et=e=\\\\u003ee,tt=e=\\\\u003eReflect.getPrototypeOf(e);function nt(e){return function(...t){return\\\\\\\"delete\\\\\\\"!==e\\\\u0026\\\\u0026(\\\\\\\"clear\\\\\\\"===e?void 0:this)}}function st(e,t){const n={get(n){const s=this.__v_raw,r=yt(s),o=yt(n);e||(j(n,o)\\\\u0026\\\\u0026Pe(r,0,n),Pe(r,0,o));const{has:i}=tt(r),l=t?et:e?St:xt;return i.call(r,n)?l(s.get(n)):i.call(r,o)?l(s.get(o)):void(s!==r\\\\u0026\\\\u0026s.get(n))},get size(){const t=this.__v_raw;return!e\\\\u0026\\\\u0026Pe(yt(t),0,Le),Reflect.get(t,\\\\\\\"size\\\\\\\",t)},has(t){const n=this.__v_raw,s=yt(n),r=yt(t);return e||(j(t,r)\\\\u0026\\\\u0026Pe(s,0,t),Pe(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,o=r.__v_raw,i=yt(o),l=t?et:e?St:xt;return!e\\\\u0026\\\\u0026Pe(i,0,Le),o.forEach(((e,t)=\\\\u003en.call(s,l(e),l(t),r)))}};l(n,e?{add:nt(\\\\\\\"add\\\\\\\"),set:nt(\\\\\\\"set\\\\\\\"),delete:nt(\\\\\\\"delete\\\\\\\"),clear:nt(\\\\\\\"clear\\\\\\\")}:{add(e){t||mt(e)||gt(e)||(e=yt(e));const n=yt(this);return tt(n).has.call(n,e)||(n.add(e),De(n,\\\\\\\"add\\\\\\\",e,e)),this},set(e,n){t||mt(n)||gt(n)||(n=yt(n));const s=yt(this),{has:r,get:o}=tt(s);let i=r.call(s,e);i||(e=yt(e),i=r.call(s,e));const l=o.call(s,e);return s.set(e,n),i?j(n,l)\\\\u0026\\\\u0026De(s,\\\\\\\"set\\\\\\\",e,n):De(s,\\\\\\\"add\\\\\\\",e,n),this},delete(e){const t=yt(this),{has:n,get:s}=tt(t);let r=n.call(t,e);r||(e=yt(e),r=n.call(t,e)),s\\\\u0026\\\\u0026s.call(t,e);const o=t.delete(e);return r\\\\u0026\\\\u0026De(t,\\\\\\\"delete\\\\\\\",e,void 0),o},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t\\\\u0026\\\\u0026De(e,\\\\\\\"clear\\\\\\\",void 0,void 0),n}});return[\\\\\\\"keys\\\\\\\",\\\\\\\"values\\\\\\\",\\\\\\\"entries\\\\\\\",Symbol.iterator].forEach((s=\\\\u003e{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,o=yt(r),i=p(o),l=\\\\\\\"entries\\\\\\\"===e||e===Symbol.iterator\\\\u0026\\\\u0026i,c=\\\\\\\"keys\\\\\\\"===e\\\\u0026\\\\u0026i,a=r[e](...s),u=n?et:t?St:xt;return!t\\\\u0026\\\\u0026Pe(o,0,c?Me:Le),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(s,e,t)})),n}function rt(e,t){const n=st(e,t);return(t,s,r)=\\\\u003e\\\\\\\"__v_isReactive\\\\\\\"===s?!e:\\\\\\\"__v_isReadonly\\\\\\\"===s?e:\\\\\\\"__v_raw\\\\\\\"===s?t:Reflect.get(u(n,s)\\\\u0026\\\\u0026s in t?n:t,s,r)}const ot={get:rt(!1,!1)},it={get:rt(!1,!0)},lt={get:rt(!0,!1)},ct=new WeakMap,at=new WeakMap,ut=new WeakMap,ft=new WeakMap;function pt(e){return gt(e)?e:ht(e,!1,Xe,ot,ct)}function dt(e){return ht(e,!0,Qe,lt,ut)}function ht(e,t,n,s,r){if(!_(e))return e;if(e.__v_raw\\\\u0026\\\\u0026(!t||!e.__v_isReactive))return e;const o=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case\\\\\\\"Object\\\\\\\":case\\\\\\\"Array\\\\\\\":return 1;case\\\\\\\"Map\\\\\\\":case\\\\\\\"Set\\\\\\\":case\\\\\\\"WeakMap\\\\\\\":case\\\\\\\"WeakSet\\\\\\\":return 2;default:return 0}}(S(i));var i;if(0===o)return e;const l=r.get(e);if(l)return l;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function vt(e){return gt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function gt(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function _t(e){return!!e\\\\u0026\\\\u0026!!e.__v_raw}function yt(e){const t=e\\\\u0026\\\\u0026e.__v_raw;return t?yt(t):e}function bt(e){return!u(e,\\\\\\\"__v_skip\\\\\\\")\\\\u0026\\\\u0026Object.isExtensible(e)\\\\u0026\\\\u0026D(e,\\\\\\\"__v_skip\\\\\\\",!0),e}const xt=e=\\\\u003e_(e)?pt(e):e,St=e=\\\\u003e_(e)?dt(e):e;function Ct(e){return!!e\\\\u0026\\\\u0026!0===e.__v_isRef}function wt(e){return At(e,!1)}function kt(e){return At(e,!0)}function At(e,t){return Ct(e)?e:new Et(e,t)}class Et{constructor(e,t){this.dep=new Te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:xt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||mt(e)||gt(e);e=n?e:yt(e),j(e,t)\\\\u0026\\\\u0026(this._rawValue=e,this._value=n?e:xt(e),this.dep.trigger())}}function Tt(e){return Ct(e)?e.value:e}function Ot(e){return v(e)?e():Tt(e)}const Ft={get:(e,t,n)=\\\\u003e\\\\\\\"__v_raw\\\\\\\"===t?e:Tt(Reflect.get(e,t,n)),set:(e,t,n,s)=\\\\u003e{const r=e[t];return Ct(r)\\\\u0026\\\\u0026!Ct(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Lt(e){return vt(e)?e:new Proxy(e,Ft)}function Mt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=Vt(e,n);return t}class jt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Fe.get(e);return n\\\\u0026\\\\u0026n.get(t)}(yt(this._object),this._key)}}class Pt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Dt(e,t,n){return Ct(e)?e:v(e)?new Pt(e):_(e)\\\\u0026\\\\u0026arguments.length\\\\u003e1?Vt(e,t,n):wt(e)}function Vt(e,t,n){const s=e[t];return Ct(s)?s:new jt(e,t,n)}class Rt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ae-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8\\\\u0026this.flags)\\\\u0026\\\\u0026ne!==this)return pe(this,!0),!0}get value(){const e=this.dep.track();return _e(this),e\\\\u0026\\\\u0026(e.version=this.dep.version),this._value}set value(e){this.setter\\\\u0026\\\\u0026this.setter(e)}}const $t={},It=new WeakMap;let Nt;function Ut(e,n,r=t){const{immediate:o,deep:i,once:l,scheduler:a,augmentJob:u,call:p}=r,d=e=\\\\u003ei?e:mt(e)||!1===i||0===i?Bt(e,1):Bt(e);let h,g,m,_,y=!1,b=!1;if(Ct(e)?(g=()=\\\\u003ee.value,y=mt(e)):vt(e)?(g=()=\\\\u003ed(e),y=!0):f(e)?(b=!0,y=e.some((e=\\\\u003evt(e)||mt(e))),g=()=\\\\u003ee.map((e=\\\\u003eCt(e)?e.value:vt(e)?d(e):v(e)?p?p(e,2):e():void 0))):g=v(e)?n?p?()=\\\\u003ep(e,2):e:()=\\\\u003e{if(m){Ce();try{m()}finally{we()}}const t=Nt;Nt=h;try{return p?p(e,3,[_]):e(_)}finally{Nt=t}}:s,n\\\\u0026\\\\u0026i){const e=g,t=!0===i?1/0:i;g=()=\\\\u003eBt(e(),t)}const x=oe(),S=()=\\\\u003e{h.stop(),x\\\\u0026\\\\u0026x.active\\\\u0026\\\\u0026c(x.effects,h)};if(l\\\\u0026\\\\u0026n){const e=n;n=(...t)=\\\\u003e{e(...t),S()}}let C=b?new Array(e.length).fill($t):$t;const w=e=\\\\u003e{if(1\\\\u0026h.flags\\\\u0026\\\\u0026(h.dirty||e))if(n){const e=h.run();if(i||y||(b?e.some(((e,t)=\\\\u003ej(e,C[t]))):j(e,C))){m\\\\u0026\\\\u0026m();const t=Nt;Nt=h;try{const t=[e,C===$t?void 0:b\\\\u0026\\\\u0026C[0]===$t?[]:C,_];C=e,p?p(n,3,t):n(...t)}finally{Nt=t}}}else h.run()};return u\\\\u0026\\\\u0026u(w),h=new ce(g),h.scheduler=a?()=\\\\u003ea(w,!1):w,_=e=\\\\u003efunction(e,t=!1,n=Nt){if(n){let t=It.get(n);t||It.set(n,t=[]),t.push(e)}}(e,!1,h),m=h.onStop=()=\\\\u003e{const e=It.get(h);if(e){if(p)p(e,4);else for(const t of e)t();It.delete(h)}},n?o?w(!0):C=h.run():a?a(w.bind(null,!0),!0):h.run(),S.pause=h.pause.bind(h),S.resume=h.resume.bind(h),S.stop=S,S}function Bt(e,t=1/0,n){if(t\\\\u003c=0||!_(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Ct(e))Bt(e.value,t,n);else if(f(e))for(let s=0;s\\\\u003ce.length;s++)Bt(e[s],t,n);else if(d(e)||p(e))e.forEach((e=\\\\u003e{Bt(e,t,n)}));else if(C(e)){for(const s in e)Bt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)\\\\u0026\\\\u0026Bt(e[s],t,n)}return e}\\\\n14 | /**\\\\n15 | * @vue/runtime-core v3.5.17\\\\n16 | * (c) 2018-present Yuxi (Evan) You and Vue contributors\\\",\\n        \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n        \\\"file_path\\\": \\\"web_version/v2/assets/vue-DfGw76ex.js\\\",\\n        \\\"issue_type\\\": \\\"python_network_operations\\\",\\n        \\\"line_number\\\": 13,\\n        \\\"line_snippet\\\": \\\"let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\\\u0026\\\\u0026te\\\\u0026\\\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e\\\\u003ct;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e\\\\u003ct;e++)this.effects[e].pause()}}resume(){if(this._active\\\\u0026\\\\u0026this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e\\\\u003ct;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e\\\\u003ct;e++)this.effects[e].resume()}}run(e){if(this._active){const t=te;try{return te=this,e()}finally{te=t}}}on(){1==++this._on\\\\u0026\\\\u0026(this.prevScope=te,te=this)}off(){this._on\\\\u003e0\\\\u0026\\\\u00260==--this._on\\\\u0026\\\\u0026(te=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t\\\\u003cn;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t\\\\u003cn;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t\\\\u003cn;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached\\\\u0026\\\\u0026this.parent\\\\u0026\\\\u0026!e){const e=this.parent.scopes.pop();e\\\\u0026\\\\u0026e!==this\\\\u0026\\\\u0026(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function re(e){return new se(e)}function oe(){return te}function ie(e,t=!1){te\\\\u0026\\\\u0026te.cleanups.push(e)}const le=new WeakSet;class ce{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,te\\\\u0026\\\\u0026te.active\\\\u0026\\\\u0026te.effects.push(this)}pause(){this.flags|=64}resume(){64\\\\u0026this.flags\\\\u0026\\\\u0026(this.flags\\\\u0026=-65,le.has(this)\\\\u0026\\\\u0026(le.delete(this),this.trigger()))}notify(){2\\\\u0026this.flags\\\\u0026\\\\u0026!(32\\\\u0026this.flags)||8\\\\u0026this.flags||pe(this)}run(){if(!(1\\\\u0026this.flags))return this.fn();this.flags|=2,ke(this),ve(this);const e=ne,t=xe;ne=this,xe=!0;try{return this.fn()}finally{ge(this),ne=e,xe=t,this.flags\\\\u0026=-3}}stop(){if(1\\\\u0026this.flags){for(let e=this.deps;e;e=e.nextDep)ye(e);this.deps=this.depsTail=void 0,ke(this),this.onStop\\\\u0026\\\\u0026this.onStop(),this.flags\\\\u0026=-2}}trigger(){64\\\\u0026this.flags?le.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){me(this)\\\\u0026\\\\u0026this.run()}get dirty(){return me(this)}}let ae,ue,fe=0;function pe(e,t=!1){if(e.flags|=8,t)return e.next=ue,void(ue=e);e.next=ae,ae=e}function de(){fe++}function he(){if(--fe\\\\u003e0)return;if(ue){let e=ue;for(ue=void 0;e;){const t=e.next;e.next=void 0,e.flags\\\\u0026=-9,e=t}}let e;for(;ae;){let n=ae;for(ae=void 0;n;){const s=n.next;if(n.next=void 0,n.flags\\\\u0026=-9,1\\\\u0026n.flags)try{n.trigger()}catch(t){e||(e=t)}n=s}}if(e)throw e}function ve(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ge(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n\\\\u0026\\\\u0026(n=e),ye(s),be(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function me(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed\\\\u0026\\\\u0026(_e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _e(e){if(4\\\\u0026e.flags\\\\u0026\\\\u0026!(16\\\\u0026e.flags))return;if(e.flags\\\\u0026=-17,e.globalVersion===Ae)return;if(e.globalVersion=Ae,!e.isSSR\\\\u0026\\\\u0026128\\\\u0026e.flags\\\\u0026\\\\u0026(!e.deps\\\\u0026\\\\u0026!e._dirty||!me(e)))return;e.flags|=2;const t=e.dep,n=ne,s=xe;ne=e,xe=!0;try{ve(e);const n=e.fn(e._value);(0===t.version||j(n,e._value))\\\\u0026\\\\u0026(e.flags|=128,e._value=n,t.version++)}catch(r){throw t.version++,r}finally{ne=n,xe=s,ge(e),e.flags\\\\u0026=-3}}function ye(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s\\\\u0026\\\\u0026(s.nextSub=r,e.prevSub=void 0),r\\\\u0026\\\\u0026(r.prevSub=s,e.nextSub=void 0),n.subs===e\\\\u0026\\\\u0026(n.subs=s,!s\\\\u0026\\\\u0026n.computed)){n.computed.flags\\\\u0026=-5;for(let e=n.computed.deps;e;e=e.nextDep)ye(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function be(e){const{prevDep:t,nextDep:n}=e;t\\\\u0026\\\\u0026(t.nextDep=n,e.prevDep=void 0),n\\\\u0026\\\\u0026(n.prevDep=t,e.nextDep=void 0)}let xe=!0;const Se=[];function Ce(){Se.push(xe),xe=!1}function we(){const e=Se.pop();xe=void 0===e||e}function ke(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ne;ne=void 0;try{t()}finally{ne=e}}}let Ae=0;class Ee{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Te{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ne||!xe||ne===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ne)t=this.activeLink=new Ee(ne,this),ne.deps?(t.prevDep=ne.depsTail,ne.depsTail.nextDep=t,ne.depsTail=t):ne.deps=ne.depsTail=t,Oe(t);else if(-1===t.version\\\\u0026\\\\u0026(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep\\\\u0026\\\\u0026(t.prevDep.nextDep=e),t.prevDep=ne.depsTail,t.nextDep=void 0,ne.depsTail.nextDep=t,ne.depsTail=t,ne.deps===t\\\\u0026\\\\u0026(ne.deps=e)}return t}trigger(e){this.version++,Ae++,this.notify(e)}notify(e){de();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()\\\\u0026\\\\u0026e.sub.dep.notify()}finally{he()}}}function Oe(e){if(e.dep.sc++,4\\\\u0026e.sub.flags){const t=e.dep.computed;if(t\\\\u0026\\\\u0026!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Oe(e)}const n=e.dep.subs;n!==e\\\\u0026\\\\u0026(e.prevSub=n,n\\\\u0026\\\\u0026(n.nextSub=e)),e.dep.subs=e}}const Fe=new WeakMap,Le=Symbol(\\\\\\\"\\\\\\\"),Me=Symbol(\\\\\\\"\\\\\\\"),je=Symbol(\\\\\\\"\\\\\\\");function Pe(e,t,n){if(xe\\\\u0026\\\\u0026ne){let t=Fe.get(e);t||Fe.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Te),s.map=t,s.key=n),s.track()}}function De(e,t,n,s,r,o){const i=Fe.get(e);if(!i)return void Ae++;const l=e=\\\\u003e{e\\\\u0026\\\\u0026e.trigger()};if(de(),\\\\\\\"clear\\\\\\\"===t)i.forEach(l);else{const r=f(e),o=r\\\\u0026\\\\u0026w(n);if(r\\\\u0026\\\\u0026\\\\\\\"length\\\\\\\"===n){const e=Number(s);i.forEach(((t,n)=\\\\u003e{(\\\\\\\"length\\\\\\\"===n||n===je||!m(n)\\\\u0026\\\\u0026n\\\\u003e=e)\\\\u0026\\\\u0026l(t)}))}else switch((void 0!==n||i.has(void 0))\\\\u0026\\\\u0026l(i.get(n)),o\\\\u0026\\\\u0026l(i.get(je)),t){case\\\\\\\"add\\\\\\\":r?o\\\\u0026\\\\u0026l(i.get(\\\\\\\"length\\\\\\\")):(l(i.get(Le)),p(e)\\\\u0026\\\\u0026l(i.get(Me)));break;case\\\\\\\"delete\\\\\\\":r||(l(i.get(Le)),p(e)\\\\u0026\\\\u0026l(i.get(Me)));break;case\\\\\\\"set\\\\\\\":p(e)\\\\u0026\\\\u0026l(i.get(Le))}}he()}function Ve(e){const t=yt(e);return t===e?t:(Pe(t,0,je),mt(e)?t:t.map(xt))}function Re(e){return Pe(e=yt(e),0,je),e}const $e={__proto__:null,[Symbol.iterator](){return Ie(this,Symbol.iterator,xt)},concat(...e){return Ve(this).concat(...e.map((e=\\\\u003ef(e)?Ve(e):e)))},entries(){return Ie(this,\\\\\\\"entries\\\\\\\",(e=\\\\u003e(e[1]=xt(e[1]),e)))},every(e,t){return Ue(this,\\\\\\\"every\\\\\\\",e,t,void 0,arguments)},filter(e,t){return Ue(this,\\\\\\\"filter\\\\\\\",e,t,(e=\\\\u003ee.map(xt)),arguments)},find(e,t){return Ue(this,\\\\\\\"find\\\\\\\",e,t,xt,arguments)},findIndex(e,t){return Ue(this,\\\\\\\"findIndex\\\\\\\",e,t,void 0,arguments)},findLast(e,t){return Ue(this,\\\\\\\"findLast\\\\\\\",e,t,xt,arguments)},findLastIndex(e,t){return Ue(this,\\\\\\\"findLastIndex\\\\\\\",e,t,void 0,arguments)},forEach(e,t){return Ue(this,\\\\\\\"forEach\\\\\\\",e,t,void 0,arguments)},includes(...e){return We(this,\\\\\\\"includes\\\\\\\",e)},indexOf(...e){return We(this,\\\\\\\"indexOf\\\\\\\",e)},join(e){return Ve(this).join(e)},lastIndexOf(...e){return We(this,\\\\\\\"lastIndexOf\\\\\\\",e)},map(e,t){return Ue(this,\\\\\\\"map\\\\\\\",e,t,void 0,arguments)},pop(){return He(this,\\\\\\\"pop\\\\\\\")},push(...e){return He(this,\\\\\\\"push\\\\\\\",e)},reduce(e,...t){return Be(this,\\\\\\\"reduce\\\\\\\",e,t)},reduceRight(e,...t){return Be(this,\\\\\\\"reduceRight\\\\\\\",e,t)},shift(){return He(this,\\\\\\\"shift\\\\\\\")},some(e,t){return Ue(this,\\\\\\\"some\\\\\\\",e,t,void 0,arguments)},splice(...e){return He(this,\\\\\\\"splice\\\\\\\",e)},toReversed(){return Ve(this).toReversed()},toSorted(e){return Ve(this).toSorted(e)},toSpliced(...e){return Ve(this).toSpliced(...e)},unshift(...e){return He(this,\\\\\\\"unshift\\\\\\\",e)},values(){return Ie(this,\\\\\\\"values\\\\\\\",xt)}};function Ie(e,t,n){const s=Re(e),r=s[t]();return s===e||mt(e)||(r._next=r.next,r.next=()=\\\\u003e{const e=r._next();return e.value\\\\u0026\\\\u0026(e.value=n(e.value)),e}),r}const Ne=Array.prototype;function Ue(e,t,n,s,r,o){const i=Re(e),l=i!==e\\\\u0026\\\\u0026!mt(e),c=i[t];if(c!==Ne[t]){const t=c.apply(e,o);return l?xt(t):t}let a=n;i!==e\\\\u0026\\\\u0026(l?a=function(t,s){return n.call(this,xt(t),s,e)}:n.length\\\\u003e2\\\\u0026\\\\u0026(a=function(t,s){return n.call(this,t,s,e)}));const u=c.call(i,a,s);return l\\\\u0026\\\\u0026r?r(u):u}function Be(e,t,n,s){const r=Re(e);let o=n;return r!==e\\\\u0026\\\\u0026(mt(e)?n.length\\\\u003e3\\\\u0026\\\\u0026(o=function(t,s,r){return n.call(this,t,s,r,e)}):o=function(t,s,r){return n.call(this,t,xt(s),r,e)}),r[t](o,...s)}function We(e,t,n){const s=yt(e);Pe(s,0,je);const r=s[t](...n);return-1!==r\\\\u0026\\\\u0026!1!==r||!_t(n[0])?r:(n[0]=yt(n[0]),s[t](...n))}function He(e,t,n=[]){Ce(),de();const s=yt(e)[t].apply(e,n);return he(),we(),s}const Ke=e(\\\\\\\"__proto__,__v_isRef,__isVue\\\\\\\"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter((e=\\\\u003e\\\\\\\"arguments\\\\\\\"!==e\\\\u0026\\\\u0026\\\\\\\"caller\\\\\\\"!==e)).map((e=\\\\u003eSymbol[e])).filter(m));function qe(e){m(e)||(e=String(e));const t=yt(this);return Pe(t,0,e),t.hasOwnProperty(e)}class Ge{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(\\\\\\\"__v_skip\\\\\\\"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if(\\\\\\\"__v_isReactive\\\\\\\"===t)return!s;if(\\\\\\\"__v_isReadonly\\\\\\\"===t)return s;if(\\\\\\\"__v_isShallow\\\\\\\"===t)return r;if(\\\\\\\"__v_raw\\\\\\\"===t)return n===(s?r?ft:ut:r?at:ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=f(e);if(!s){let e;if(o\\\\u0026\\\\u0026(e=$e[t]))return e;if(\\\\\\\"hasOwnProperty\\\\\\\"===t)return qe}const i=Reflect.get(e,t,Ct(e)?e:n);return(m(t)?ze.has(t):Ke(t))?i:(s||Pe(e,0,t),r?i:Ct(i)?o\\\\u0026\\\\u0026w(t)?i:i.value:_(i)?s?dt(i):pt(i):i)}}class Je extends Ge{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=gt(r);if(mt(n)||gt(n)||(r=yt(r),n=yt(n)),!f(e)\\\\u0026\\\\u0026Ct(r)\\\\u0026\\\\u0026!Ct(n))return!t\\\\u0026\\\\u0026(r.value=n,!0)}const o=f(e)\\\\u0026\\\\u0026w(t)?Number(t)\\\\u003ce.length:u(e,t),i=Reflect.set(e,t,n,Ct(e)?e:s);return e===yt(s)\\\\u0026\\\\u0026(o?j(n,r)\\\\u0026\\\\u0026De(e,\\\\\\\"set\\\\\\\",t,n):De(e,\\\\\\\"add\\\\\\\",t,n)),i}deleteProperty(e,t){const n=u(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s\\\\u0026\\\\u0026n\\\\u0026\\\\u0026De(e,\\\\\\\"delete\\\\\\\",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return m(t)\\\\u0026\\\\u0026ze.has(t)||Pe(e,0,t),n}ownKeys(e){return Pe(e,0,f(e)?\\\\\\\"length\\\\\\\":Le),Reflect.ownKeys(e)}}class Ze extends Ge{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Xe=new Je,Qe=new Ze,Ye=new Je(!0),et=e=\\\\u003ee,tt=e=\\\\u003eReflect.getPrototypeOf(e);function nt(e){return function(...t){return\\\\\\\"delete\\\\\\\"!==e\\\\u0026\\\\u0026(\\\\\\\"clear\\\\\\\"===e?void 0:this)}}function st(e,t){const n={get(n){const s=this.__v_raw,r=yt(s),o=yt(n);e||(j(n,o)\\\\u0026\\\\u0026Pe(r,0,n),Pe(r,0,o));const{has:i}=tt(r),l=t?et:e?St:xt;return i.call(r,n)?l(s.get(n)):i.call(r,o)?l(s.get(o)):void(s!==r\\\\u0026\\\\u0026s.get(n))},get size(){const t=this.__v_raw;return!e\\\\u0026\\\\u0026Pe(yt(t),0,Le),Reflect.get(t,\\\\\\\"size\\\\\\\",t)},has(t){const n=this.__v_raw,s=yt(n),r=yt(t);return e||(j(t,r)\\\\u0026\\\\u0026Pe(s,0,t),Pe(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,o=r.__v_raw,i=yt(o),l=t?et:e?St:xt;return!e\\\\u0026\\\\u0026Pe(i,0,Le),o.forEach(((e,t)=\\\\u003en.call(s,l(e),l(t),r)))}};l(n,e?{add:nt(\\\\\\\"add\\\\\\\"),set:nt(\\\\\\\"set\\\\\\\"),delete:nt(\\\\\\\"delete\\\\\\\"),clear:nt(\\\\\\\"clear\\\\\\\")}:{add(e){t||mt(e)||gt(e)||(e=yt(e));const n=yt(this);return tt(n).has.call(n,e)||(n.add(e),De(n,\\\\\\\"add\\\\\\\",e,e)),this},set(e,n){t||mt(n)||gt(n)||(n=yt(n));const s=yt(this),{has:r,get:o}=tt(s);let i=r.call(s,e);i||(e=yt(e),i=r.call(s,e));const l=o.call(s,e);return s.set(e,n),i?j(n,l)\\\\u0026\\\\u0026De(s,\\\\\\\"set\\\\\\\",e,n):De(s,\\\\\\\"add\\\\\\\",e,n),this},delete(e){const t=yt(this),{has:n,get:s}=tt(t);let r=n.call(t,e);r||(e=yt(e),r=n.call(t,e)),s\\\\u0026\\\\u0026s.call(t,e);const o=t.delete(e);return r\\\\u0026\\\\u0026De(t,\\\\\\\"delete\\\\\\\",e,void 0),o},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t\\\\u0026\\\\u0026De(e,\\\\\\\"clear\\\\\\\",void 0,void 0),n}});return[\\\\\\\"keys\\\\\\\",\\\\\\\"values\\\\\\\",\\\\\\\"entries\\\\\\\",Symbol.iterator].forEach((s=\\\\u003e{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,o=yt(r),i=p(o),l=\\\\\\\"entries\\\\\\\"===e||e===Symbol.iterator\\\\u0026\\\\u0026i,c=\\\\\\\"keys\\\\\\\"===e\\\\u0026\\\\u0026i,a=r[e](...s),u=n?et:t?St:xt;return!t\\\\u0026\\\\u0026Pe(o,0,c?Me:Le),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(s,e,t)})),n}function rt(e,t){const n=st(e,t);return(t,s,r)=\\\\u003e\\\\\\\"__v_isReactive\\\\\\\"===s?!e:\\\\\\\"__v_isReadonly\\\\\\\"===s?e:\\\\\\\"__v_raw\\\\\\\"===s?t:Reflect.get(u(n,s)\\\\u0026\\\\u0026s in t?n:t,s,r)}const ot={get:rt(!1,!1)},it={get:rt(!1,!0)},lt={get:rt(!0,!1)},ct=new WeakMap,at=new WeakMap,ut=new WeakMap,ft=new WeakMap;function pt(e){return gt(e)?e:ht(e,!1,Xe,ot,ct)}function dt(e){return ht(e,!0,Qe,lt,ut)}function ht(e,t,n,s,r){if(!_(e))return e;if(e.__v_raw\\\\u0026\\\\u0026(!t||!e.__v_isReactive))return e;const o=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case\\\\\\\"Object\\\\\\\":case\\\\\\\"Array\\\\\\\":return 1;case\\\\\\\"Map\\\\\\\":case\\\\\\\"Set\\\\\\\":case\\\\\\\"WeakMap\\\\\\\":case\\\\\\\"WeakSet\\\\\\\":return 2;default:return 0}}(S(i));var i;if(0===o)return e;const l=r.get(e);if(l)return l;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function vt(e){return gt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function gt(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function _t(e){return!!e\\\\u0026\\\\u0026!!e.__v_raw}function yt(e){const t=e\\\\u0026\\\\u0026e.__v_raw;return t?yt(t):e}function bt(e){return!u(e,\\\\\\\"__v_skip\\\\\\\")\\\\u0026\\\\u0026Object.isExtensible(e)\\\\u0026\\\\u0026D(e,\\\\\\\"__v_skip\\\\\\\",!0),e}const xt=e=\\\\u003e_(e)?pt(e):e,St=e=\\\\u003e_(e)?dt(e):e;function Ct(e){return!!e\\\\u0026\\\\u0026!0===e.__v_isRef}function wt(e){return At(e,!1)}function kt(e){return At(e,!0)}function At(e,t){return Ct(e)?e:new Et(e,t)}class Et{constructor(e,t){this.dep=new Te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:xt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||mt(e)||gt(e);e=n?e:yt(e),j(e,t)\\\\u0026\\\\u0026(this._rawValue=e,this._value=n?e:xt(e),this.dep.trigger())}}function Tt(e){return Ct(e)?e.value:e}function Ot(e){return v(e)?e():Tt(e)}const Ft={get:(e,t,n)=\\\\u003e\\\\\\\"__v_raw\\\\\\\"===t?e:Tt(Reflect.get(e,t,n)),set:(e,t,n,s)=\\\\u003e{const r=e[t];return Ct(r)\\\\u0026\\\\u0026!Ct(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Lt(e){return vt(e)?e:new Proxy(e,Ft)}function Mt(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=Vt(e,n);return t}class jt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=Fe.get(e);return n\\\\u0026\\\\u0026n.get(t)}(yt(this._object),this._key)}}class Pt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Dt(e,t,n){return Ct(e)?e:v(e)?new Pt(e):_(e)\\\\u0026\\\\u0026arguments.length\\\\u003e1?Vt(e,t,n):wt(e)}function Vt(e,t,n){const s=e[t];return Ct(s)?s:new jt(e,t,n)}class Rt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ae-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8\\\\u0026this.flags)\\\\u0026\\\\u0026ne!==this)return pe(this,!0),!0}get value(){const e=this.dep.track();return _e(this),e\\\\u0026\\\\u0026(e.version=this.dep.version),this._value}set value(e){this.setter\\\\u0026\\\\u0026this.setter(e)}}const $t={},It=new WeakMap;let Nt;function Ut(e,n,r=t){const{immediate:o,deep:i,once:l,scheduler:a,augmentJob:u,call:p}=r,d=e=\\\\u003ei?e:mt(e)||!1===i||0===i?Bt(e,1):Bt(e);let h,g,m,_,y=!1,b=!1;if(Ct(e)?(g=()=\\\\u003ee.value,y=mt(e)):vt(e)?(g=()=\\\\u003ed(e),y=!0):f(e)?(b=!0,y=e.some((e=\\\\u003evt(e)||mt(e))),g=()=\\\\u003ee.map((e=\\\\u003eCt(e)?e.value:vt(e)?d(e):v(e)?p?p(e,2):e():void 0))):g=v(e)?n?p?()=\\\\u003ep(e,2):e:()=\\\\u003e{if(m){Ce();try{m()}finally{we()}}const t=Nt;Nt=h;try{return p?p(e,3,[_]):e(_)}finally{Nt=t}}:s,n\\\\u0026\\\\u0026i){const e=g,t=!0===i?1/0:i;g=()=\\\\u003eBt(e(),t)}const x=oe(),S=()=\\\\u003e{h.stop(),x\\\\u0026\\\\u0026x.active\\\\u0026\\\\u0026c(x.effects,h)};if(l\\\\u0026\\\\u0026n){const e=n;n=(...t)=\\\\u003e{e(...t),S()}}let C=b?new Array(e.length).fill($t):$t;const w=e=\\\\u003e{if(1\\\\u0026h.flags\\\\u0026\\\\u0026(h.dirty||e))if(n){const e=h.run();if(i||y||(b?e.some(((e,t)=\\\\u003ej(e,C[t]))):j(e,C))){m\\\\u0026\\\\u0026m();const t=Nt;Nt=h;try{const t=[e,C===$t?void 0:b\\\\u0026\\\\u0026C[0]===$t?[]:C,_];C=e,p?p(n,3,t):n(...t)}finally{Nt=t}}}else h.run()};return u\\\\u0026\\\\u0026u(w),h=new ce(g),h.scheduler=a?()=\\\\u003ea(w,!1):w,_=e=\\\\u003efunction(e,t=!1,n=Nt){if(n){let t=It.get(n);t||It.set(n,t=[]),t.push(e)}}(e,!1,h),m=h.onStop=()=\\\\u003e{const e=It.get(h);if(e){if(p)p(e,4);else for(const t of e)t();It.delete(h)}},n?o?w(!0):C=h.run():a?a(w.bind(null,!0),!0):h.run(),S.pause=h.pause.bind(h),S.resume=h.resume.bind(h),S.stop=S,S}function Bt(e,t=1/0,n){if(t\\\\u003c=0||!_(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Ct(e))Bt(e.value,t,n);else if(f(e))for(let s=0;s\\\\u003ce.length;s++)Bt(e[s],t,n);else if(d(e)||p(e))e.forEach((e=\\\\u003e{Bt(e,t,n)}));else if(C(e)){for(const s in e)Bt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)\\\\u0026\\\\u0026Bt(e[s],t,n)}return e}\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$socket4\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v2/assets/vue-DfGw76ex.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$socket4\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\\\u0026\\\\u0026te\\\\u0026\\\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this\\\",\\n                                    \\\"line_number\\\": 13,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 15797\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\\\u0026\\\\u0026te\\\\u0026\\\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this\\\",\\n                                    \\\"line_number\\\": 13,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 15839\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"let te,ne;class se{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=te,!e\\\\u0026\\\\u0026te\\\\u0026\\\\u0026(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this\\\",\\n                                    \\\"line_number\\\": 13,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 15865\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\\\u0026\\\\u0026y(r)\\\\u0026\\\\u0026r.catch((e=\\\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\\\",\\n                                    \\\"line_number\\\": 18,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 868\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\\\u0026\\\\u0026y(r)\\\\u0026\\\\u0026r.catch((e=\\\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\\\",\\n                                    \\\"line_number\\\": 18,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 12431\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\\\u0026\\\\u0026y(r)\\\\u0026\\\\u0026r.catch((e=\\\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\\\",\\n                                    \\\"line_number\\\": 18,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 12459\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\\\u0026\\\\u0026y(r)\\\\u0026\\\\u0026r.catch((e=\\\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\\\",\\n                                    \\\"line_number\\\": 18,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 14428\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\\\u0026\\\\u0026y(r)\\\\u0026\\\\u0026r.catch((e=\\\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\\\",\\n                                    \\\"line_number\\\": 18,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 14535\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\\\u0026\\\\u0026y(r)\\\\u0026\\\\u0026r.catch((e=\\\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\\\",\\n                                    \\\"line_number\\\": 18,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 14560\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"   function Wt(e,t,n,s){try{return s?e(...s):e()}catch(r){Kt(r,t,n)}}function Ht(e,t,n,s){if(v(e)){const r=Wt(e,t,n,s);return r\\\\u0026\\\\u0026y(r)\\\\u0026\\\\u0026r.catch((e=\\\\u003e{Kt(e,t,n)})),r}if(f(e)){const r=[];for(let o=0;o\\\\u003ce.length;or.push(Ht(e[o],t,n,s));return r}}function Kt(e,n,\\\",\\n                                    \\\"line_number\\\": 18,\\n                                    \\\"matched_data\\\": \\\".bind(\\\",\\n                                    \\\"matched_length\\\": 6,\\n                                    \\\"offset\\\": 14596\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1041 Exfiltration Over C2 Channel\\\",\\n                \\\"attack_id2\\\": \\\"T1048 Exfiltration Over Alternative Protocol\\\",\\n                \\\"category\\\": \\\"Exfiltration\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects network operations and potential data exfiltration patterns\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1041/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"1198 |         # -c:v libvpx-vp9 =\\\\u003e VP9 encoder\\\\n1199 |         # -pix_fmt yuva420p =\\\\u003e alpha-enabled pixel format\\\\n1200 |         # -auto-alt-ref 0 =\\\\u003e helps preserve alpha frames (libvpx quirk)\\\\n1201 |         ffmpeg_cmd = [\\\\n1202 |             \\\\\\\"ffmpeg\\\\\\\", \\\\\\\"-y\\\\\\\",\\\\n1203 |             \\\\\\\"-framerate\\\\\\\", str(fps),\\\\n1204 |             \\\\\\\"-i\\\\\\\", os.path.join(tmpdir, \\\\\\\"%06d.png\\\\\\\"),\\\",\\n        \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n        \\\"file_path\\\": \\\"py/modules/ben/model.py\\\",\\n        \\\"issue_type\\\": \\\"python_url_command_execution\\\",\\n        \\\"line_number\\\": 1201,\\n        \\\"line_snippet\\\": \\\"ffmpeg_cmd = [\\\",\\n        \\\"metadata\\\": {\\n            \\\"attack_id\\\": [\\n                \\\"T1071.001 Web Protocols\\\",\\n                \\\"T1105 Ingress Tool Transfer\\\"\\n            ],\\n            \\\"confidence\\\": 75,\\n            \\\"matched_patterns\\\": [\\n                \\\"$media_list_assign_indirect\\\"\\n            ],\\n            \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1071.001 Web Protocols\\\",\\n                \\\"attack_id2\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n                \\\"category\\\": \\\"SSRF / Execution\\\",\\n                \\\"confidence_note\\\": \\\"Four confidence tiers: _direct (95%) matches execution sinks (subprocess, os.system, os.popen, os.exec*, asyncio) with URL-accepting tool names. _wrapper (80%) matches Python library wrappers (ffmpeg-python, ffmpy, moviepy, pdfkit, imgkit, yt-dlp, weasyprint). _indirect (75%) matches variable assignment and deferred execution prep (shlex.split, list assignment). _presence (60%) matches command-like strings with tool names and flags, elevated to 85% when _sink_indicator co-occurs (URL/web patterns, subprocess usage, variable-based tool resolution in same file). Sink indicators include: URL/web framework patterns, subprocess usage, variable-based tool names (ffmpeg_path, curl_cmd), shutil.which/find_executable, os.path.join with tool names. Designed as first-pass triage for external SSRF re-verification pipeline.\\\",\\n                \\\"date\\\": \\\"2026-02-26\\\",\\n                \\\"description\\\": \\\"Detects execution of external tools that accept URLs as input, flagging potential SSRF attack surfaces for external re-verification\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1071/001/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"traceability\\\": \\\"Pattern IDs: UCE-001..UCE-048. See docs/PATTERN_TRACEABILITY.md\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            },\\n            \\\"yara_rule\\\": \\\"python_url_command_execution\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-folder-access\\\",\\n            \\\"system-modification\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"502 | import platform\\\\n503 | class pipeXYPlotAdvanced:\\\\n504 |     if platform.system() == \\\\\\\"Windows\\\\\\\":\\\\n505 |         system_root = os.environ.get(\\\\\\\"SystemRoot\\\\\\\")\\\\n506 |         user_root = os.environ.get(\\\\\\\"USERPROFILE\\\\\\\")\\\\n507 |         font_dir = os.path.join(system_root, \\\\\\\"Fonts\\\\\\\") if system_root else None\\\\n508 |         user_font_dir = os.path.join(user_root, \\\\\\\"AppData\\\\\\\",\\\\\\\"Local\\\\\\\",\\\\\\\"Microsoft\\\\\\\",\\\\\\\"Windows\\\\\\\", \\\\\\\"Fonts\\\\\\\") if user_root else None\\\",\\n        \\\"description\\\": \\\"Detects environment variable manipulation and reading\\\",\\n        \\\"file_path\\\": \\\"py/nodes/pipe.py\\\",\\n        \\\"issue_type\\\": \\\"python_environment_manipulation\\\",\\n        \\\"line_number\\\": 505,\\n        \\\"line_snippet\\\": \\\"system_root = os.environ.get(\\\\\\\"SystemRoot\\\\\\\")\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$env_read2\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"py/nodes/pipe.py\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$env_read2\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"        system_root = os.environ.get(\\\\\\\"SystemRoot\\\\\\\")\\\\n\\\",\\n                                    \\\"line_number\\\": 505,\\n                                    \\\"matched_data\\\": \\\"os.environ.get(\\\",\\n                                    \\\"matched_length\\\": 15,\\n                                    \\\"offset\\\": 22\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        user_root = os.environ.get(\\\\\\\"USERPROFILE\\\\\\\")\\\\n\\\",\\n                                    \\\"line_number\\\": 506,\\n                                    \\\"matched_data\\\": \\\"os.environ.get(\\\",\\n                                    \\\"matched_length\\\": 15,\\n                                    \\\"offset\\\": 20\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1574.007 Environment Variable Hijacking\\\",\\n                \\\"category\\\": \\\"Defense Evasion\\\",\\n                \\\"date\\\": \\\"2025-06-30\\\",\\n                \\\"description\\\": \\\"Detects environment variable manipulation and reading\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1574/007/\\\",\\n                \\\"severity\\\": \\\"3\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [],\\n        \\\"code_snippet\\\": \\\"630 |         preset += load_preset(\\\\\\\"mmb-preset.txt\\\\\\\")\\\\n631 |         preset += load_preset(\\\\\\\"mmb-preset.custom.txt\\\\\\\")\\\\n632 | \\\\n633 |         default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n634 |         return {\\\\n635 |             \\\\\\\"required\\\\\\\": {\\\\n636 |                 \\\\\\\"ckpt_name_1\\\\\\\": (checkpoints,),\\\",\\n        \\\"description\\\": \\\"Detects minified Python code using optimized heuristics for semicolon density and import compression\\\",\\n        \\\"file_path\\\": \\\"py/nodes/xyplot.py\\\",\\n        \\\"issue_type\\\": \\\"python_minified_code\\\",\\n        \\\"line_number\\\": 633,\\n        \\\"line_snippet\\\": \\\"default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\",\\n        \\\"metadata\\\": {\\n            \\\"confidence\\\": 90,\\n            \\\"matched_patterns\\\": [\\n                \\\"$semicolon_5\\\"\\n            ],\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"py/nodes/xyplot.py\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$semicolon_5\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 77,\\n                                    \\\"offset\\\": 0\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\"       default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 76,\\n                                    \\\"offset\\\": 1\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\"      default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 75,\\n                                    \\\"offset\\\": 2\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\"     default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 74,\\n                                    \\\"offset\\\": 3\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\"    default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 73,\\n                                    \\\"offset\\\": 4\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\"   default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 72,\\n                                    \\\"offset\\\": 5\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\"  default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 71,\\n                                    \\\"offset\\\": 6\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\" default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 70,\\n                                    \\\"offset\\\": 7\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\"default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 69,\\n                                    \\\"offset\\\": 8\\n                                },\\n                                {\\n                                    \\\"line\\\": \\\"        default_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1; \\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 633,\\n                                    \\\"matched_data\\\": \\\"efault_vectors = \\\\\\\"1,0,0; \\\\\\\\n0,1,0; \\\\\\\\n0,0,1; \\\\\\\\n1,1,0; \\\\\\\\n1,0,1; \\\\\\\\n0,1,1\\\",\\n                                    \\\"matched_length\\\": 68,\\n                                    \\\"offset\\\": 9\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1027 Obfuscated Files or Information\\\",\\n                \\\"attack_id2\\\": \\\"T1027.002 Software Packing\\\",\\n                \\\"author\\\": \\\"Comfy Security Team\\\",\\n                \\\"category\\\": \\\"Obfuscation\\\",\\n                \\\"date\\\": \\\"2025-11-19\\\",\\n                \\\"description\\\": \\\"Detects minified Python code using optimized heuristics for semicolon density and import compression\\\",\\n                \\\"optimization\\\": \\\"Removed unbounded regex patterns to prevent OOM issues\\\",\\n                \\\"reference\\\": \\\"https://attack.mitre.org/techniques/T1027/\\\",\\n                \\\"severity\\\": \\\"4\\\",\\n                \\\"version\\\": \\\"2.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\",\\n            \\\"system-modification\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"69 |         import subprocess\\\\n70 |         package_command = package + '==' + v if v is not None else package\\\\n71 |         PromptServer.instance.send_sync(\\\\\\\"easyuse-toast\\\\\\\", {'content': f\\\\\\\"Installing {package_command}...\\\\\\\", 'duration': 5000})\\\\n72 |         result = subprocess.run([sys.executable, '-s', '-m', 'pip', 'install', package_command], capture_output=True, text=True)\\\\n73 |         if result.returncode == 0:\\\\n74 |             PromptServer.instance.send_sync(\\\\\\\"easyuse-toast\\\\\\\", {'content': f\\\\\\\"{package} installed successfully\\\\\\\", 'type': 'success', 'duration': 5000})\\\\n75 |             print(f\\\\\\\"Package {package} installed successfully\\\\\\\")\\\",\\n        \\\"description\\\": \\\"Subprocess call with pip install detected\\\",\\n        \\\"file_path\\\": \\\"py/libs/utils.py\\\",\\n        \\\"issue_type\\\": \\\"subprocess-pip-install\\\",\\n        \\\"line_number\\\": 72,\\n        \\\"line_snippet\\\": \\\"result = subprocess.run([sys.executable, '-s', '-m', 'pip', 'install', package_command], capture_output=True, text=True)\\\",\\n        \\\"metadata\\\": {\\n            \\\"pylint_category\\\": \\\"W\\\",\\n            \\\"pylint_column\\\": 17,\\n            \\\"pylint_symbol\\\": \\\"subprocess-pip-install\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"pylint-scanner\\\",\\n        \\\"severity\\\": \\\"high\\\"\\n    },\\n    {\\n        \\\"admin_tags\\\": [\\n            \\\"any-code-execute\\\",\\n            \\\"system-modification\\\"\\n        ],\\n        \\\"code_snippet\\\": \\\"210 |                         import cpm_kernels\\\\n211 |                     except ImportError:\\\\n212 |                         print(\\\\\\\"Installing cpm_kernels...\\\\\\\")\\\\n213 |                         subprocess.run([sys.executable, \\\\\\\"-m\\\\\\\", \\\\\\\"pip\\\\\\\", \\\\\\\"install\\\\\\\", \\\\\\\"cpm_kernels\\\\\\\"], check=True)\\\\n214 |                         pass\\\\n215 |                     self.text_encoder.quantize(4)\\\\n216 |                 elif '8bit' in model_path:\\\",\\n        \\\"description\\\": \\\"Subprocess call with pip install detected\\\",\\n        \\\"file_path\\\": \\\"py/modules/kolors/loader.py\\\",\\n        \\\"issue_type\\\": \\\"subprocess-pip-install\\\",\\n        \\\"line_number\\\": 213,\\n        \\\"line_snippet\\\": \\\"subprocess.run([sys.executable, \\\\\\\"-m\\\\\\\", \\\\\\\"pip\\\\\\\", \\\\\\\"install\\\\\\\", \\\\\\\"cpm_kernels\\\\\\\"], check=True)\\\",\\n        \\\"metadata\\\": {\\n            \\\"pylint_category\\\": \\\"W\\\",\\n            \\\"pylint_column\\\": 24,\\n            \\\"pylint_symbol\\\": \\\"subprocess-pip-install\\\"\\n        },\\n        \\\"recommendation\\\": null,\\n        \\\"scanner\\\": \\\"pylint-scanner\\\",\\n        \\\"severity\\\": \\\"high\\\"\\n    }\\n]\", \"by\": \"admin@comfy.org\"}]}","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"tags_admin":[],"version":"1.4.0"},{"changelog":"","comfy_node_extract_status":"failed","createdAt":"2026-01-23T06:19:17.505188Z","dependencies":["diffusers","accelerate","clip_interrogator","sentencepiece","lark","onnxruntime","spandrel","opencv-python-headless","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.6/node.zip","id":"775ab2a5-4a2e-4313-b6f4-10fb8b3456c1","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","status_reason":"Passed automated checks","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"tags_admin":[],"version":"1.3.6"},{"changelog":"","comfy_node_extract_status":"success","createdAt":"2025-12-19T04:14:43.062121Z","dependencies":["diffusers","accelerate","clip_interrogator\u003e=0.6.0","sentencepiece","lark","onnxruntime","spandrel","opencv-python-headless","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.5/node.zip","id":"a4848739-bcce-471a-8bf4-2bf12ff23a73","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","status_reason":"Passed automated checks","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"tags_admin":[],"version":"1.3.5"},{"changelog":"","comfy_node_extract_status":"success","createdAt":"2025-10-15T13:34:43.350536Z","dependencies":["diffusers","accelerate","clip_interrogator\u003e=0.6.0","sentencepiece","lark","onnxruntime","spandrel","opencv-python-headless","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip","id":"d6cbf9fb-bb40-4d51-9559-1bac0c6c965e","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","status_reason":"Passed automated checks","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"tags_admin":[],"version":"1.3.4"},{"changelog":"","comfy_node_extract_status":"success","createdAt":"2025-08-29T07:27:35.536355Z","dependencies":["diffusers","accelerate","clip_interrogator\u003e=0.6.0","sentencepiece","lark","onnxruntime","spandrel","opencv-python","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.3/node.zip","id":"7e161594-10f8-4c8b-902e-e76ea02f1e3e","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","status_reason":"Passed automated checks","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"tags_admin":[],"version":"1.3.3"},{"changelog":"","comfy_node_extract_status":"success","createdAt":"2025-08-08T11:02:31.87442Z","dependencies":["diffusers","accelerate","clip_interrogator\u003e=0.6.0","sentencepiece","lark","onnxruntime","spandrel","opencv-python","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.2/node.zip","id":"55349c6d-501a-4584-9900-e95c8079d1a2","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","status_reason":"Passed automated checks","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"tags_admin":[],"version":"1.3.2"},{"changelog":"","comfy_node_extract_status":"success","createdAt":"2025-06-29T03:43:51.764233Z","dependencies":["diffusers","accelerate","clip_interrogator\u003e=0.6.0","sentencepiece","lark","onnxruntime","spandrel","opencv-python","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.1/node.zip","id":"73d888b0-3cba-4127-8d5d-085e84336590","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","status_reason":"{\"message\":\"Approved by admin\",\"by\":\"dr.lt.data@gmail.com\",\"statusHistory\":[{\"status\":\"NodeVersionStatusFlagged\",\"message\":\"[\\n    {\\n        \\\"code_snippet\\\": \\\"43 | # inpaint\\\\n44 | INPAINT_DIR = os.path.join(folder_paths.models_dir, \\\\\\\"inpaint\\\\\\\")\\\\n45 | FOOOCUS_STYLES_DIR = os.path.join(Path(__file__).parent.parent, \\\\\\\"styles\\\\\\\")\\\\n46 | FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\\n47 | FOOOCUS_INPAINT_HEAD = {\\\\n48 |     \\\\\\\"fooocus_inpaint_head\\\\\\\": {\\\\n49 |         \\\\\\\"model_url\\\\\\\": \\\\\\\"https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/fooocus_inpaint_head.pth\\\\\\\"\\\",\\n        \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n        \\\"file_path\\\": \\\"py/config.py\\\",\\n        \\\"issue_type\\\": \\\"contains_blacklisted_url\\\",\\n        \\\"line_number\\\": 46,\\n        \\\"line_snippet\\\": \\\"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\",\\n        \\\"metadata\\\": {\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"py/config.py\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_ascii_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\\n\\\",\\n                                    \\\"line_number\\\": 46,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 31\\n                                }\\n                            ]\\n                        },\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_xor_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\\n\\\",\\n                                    \\\"line_number\\\": 46,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 31\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1102 Web Service\\\",\\n                \\\"category\\\": \\\"C2\\\",\\n                \\\"date\\\": \\\"12.08.2024\\\",\\n                \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n                \\\"observable_refs\\\": \\\"url\\\",\\n                \\\"reference1\\\": \\\"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\\\",\\n                \\\"reference2\\\": \\\"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\\\",\\n                \\\"severity\\\": \\\"1\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"code_snippet\\\": \\\"372 |         max_float_value = 1.95\\\\n373 |         prompt_path = os.path.join(RESOURCES_DIR, 'portrait_prompt.json')\\\\n374 |         if not os.path.exists(prompt_path):\\\\n375 |             response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\\n376 |             temp_prompt = json.loads(response.read())\\\\n377 |             prompt_serialized = json.dumps(temp_prompt, indent=4)\\\\n378 |             with open(prompt_path, \\\\\\\"w\\\\\\\") as f:\\\",\\n        \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n        \\\"file_path\\\": \\\"py/nodes/prompt.py\\\",\\n        \\\"issue_type\\\": \\\"contains_blacklisted_url\\\",\\n        \\\"line_number\\\": 375,\\n        \\\"line_snippet\\\": \\\"response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\",\\n        \\\"metadata\\\": {\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"py/nodes/prompt.py\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_ascii_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"            response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\\n\\\",\\n                                    \\\"line_number\\\": 375,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 37\\n                                }\\n                            ]\\n                        },\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_xor_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"            response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\\n\\\",\\n                                    \\\"line_number\\\": 375,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 37\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1102 Web Service\\\",\\n                \\\"category\\\": \\\"C2\\\",\\n                \\\"date\\\": \\\"12.08.2024\\\",\\n                \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n                \\\"observable_refs\\\": \\\"url\\\",\\n                \\\"reference1\\\": \\\"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\\\",\\n                \\\"reference2\\\": \\\"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\\\",\\n                \\\"severity\\\": \\\"1\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    },\\n    {\\n        \\\"code_snippet\\\": \\\"79 |     return rlist\\\\n80 | }\\\\n81 | \\\\n82 | const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\\n83 | const empty_img = \\\\\\\"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QNLaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA5LjEtYzAwMSA3OS4xNDYyODk5Nzc3LCAyMDIzLzA2LzI1LTIzOjU3OjE0ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjUuMSAoMjAyMzA5MDUubS4yMzE2IDk3OWM4NmQpICAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjA3NEU1QzNCNUJBMTFFRUExMUVDNkZDRjI0NzlBN0QiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjA3NEU1QzRCNUJBMTFFRUExMUVDNkZDRjI0NzlBN0QiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGMDc0RTVDMUI1QkExMUVFQTExRUM2RkNGMjQ3OUE3RCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGMDc0RTVDMkI1QkExMUVFQTExRUM2RkNGMjQ3OUE3RCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pv/uAA5BZG9iZQBkwAAAAAH/2wCEAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHB8fHx8fHx8fHx8BBwcHDQwNGBAQGBoVERUaHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fH//AABEIAIAAgAMBEQACEQEDEQH/xACLAAEAAgMBAQEAAAAAAAAAAAAABAUCAwYBBwgBAQADAQEBAAAAAAAAAAAAAAABAgMEBQYQAAEEAgECAwUHAwUAAAAAAAEAAgMEEQUhEgYxEwdBYSIyFFFxgVJyIxWRoTOxwdFiJBEBAAICAQQBBAIDAAAAAAAAAAECEQMxIUESBBOB0SIyUXGCIwX/2gAMAwEAAhEDEQA/AP1SgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICDXJYgj+d4afsVopM8KWvEcy8it1pXdMcjXO/Lnn+im2u0cwV2VniW1UXEBAQEBAQEBAQEBAQRNlc+mgyDh7zhv+5WunX5Sw37fCHM2dh48r06ank7N6rn2Ja7qa4hw5BBwQV010uK+/DsO29v/J68SOI86Jxjl95HIP4gryPc0fHfHaXu+j7Py68zzHSVquV2iAgICAgICAgICDyTr6HdHz4PTnwypjnqic46OauNbY6mGX99p+L8w9xaeV6OufHt0eXtr59M9VFb194E9LmuH3kf6rv17avO2ets7YVcuuuk/uOa3PgBlxP4BdMbq9nLPqbJ5xDbSM9azFXpyujuSO+Bo5kcf0NPyj25We2YtEzaPxdfr6519Kz+UvqEIlELBKQZQ0eYRwC7HOPxXzVsZ6cPpK5x15ZKEiAgICAgICAgICCNc1tG40CzA2XHg4j4h9zhyFpr22p+s4Z7NNL/ALRlTX+1dVFBJOJrcTI2lxZHYcBx+sldWv3bzOMVn6fZy39OkRnNo+v3aoOx9JOxks8tqwHDPS+1IW8+IzGWZVrf9DZHSMR/j9yvo656zMz9V1rdLqdYwsoVIqwd87mNAc79Tvmd+JXJt332ftMy6temlP1jCasmggICAgICAgICAgwlmiib1SPDB7zhWrWZ4VtaI5QXb2l5ojYHvLjjIGB/dbR61sZlhPtVziFb3PYdd0luCvAZbXludVZ1huZQPgyTx4/atvWj4rxaZ6d/6Ye1/t1zSI6zx/bzti5YqaOpBeg8u41n/oa14cA4ccH7lPs1jZebVn8eyPUtOrXFbR+XdYx9xa90pjeXROaSCXDj+oysZ9S+Mx1bR7uvOJ6LGOWKVgfG8PafAtOQueazHLqraJjMMlCRAQEBAQEBAQRLNp4HTFx/2/4WtKR3Y32T2Udl8j3knk/aeSu6kREPPvaZlpY3DmyY8DyrzPZWv8tkvmFv7bg12RyR1DGeeMj2KnjE9JaeUx1hi1sgaet/U7JIOMcE8Dj7FMREcK2zPKMasr5XO6fmOVt5xEOadVplYU45IAOhxa72kLm2TFuXXqrNeF1WtlwDZeHfmHguO+vHDupszylLJsICAgICAg8cMjCQiYR5IVpFmc1Q5qLXHPgfbhbV2MLaYlqNQAYA4V/kV+PDA1fcp81fjYurtYMu4CmLZRNYhtZWBAI8CqzdaKN8df3LObtIokxwe5ZzZrFUloIGFnLWHqhIgICAgICAgxMbSpyjDAwAq3kr4MTWCnzR4MX02PGHDISNmETqieWba7QABwB4KJumKNgjaFXK0VZYChYQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEHzvuv1G7k1W9s6/Xamtaq15oaonmnsCR008HntaI4K8/s4HOeEGXZXqTud7uqtG7r6kNa5HdMU9aaw9zZde+FkrHsnr1+M2MZBPIKDRe9cO2K2mjs/V0m7X61lWzq32W+ZFEbfkSSO4B+GL9zw4QWm99TqFVmjsaSu7fUtxeNM2aTmSMBbHI9zWHqHVJlnDTxjPKCJL6sea502t1D7Ouhr0rNqxNM2CSNuwnkgjAi6ZOotdEc/Egibf1j/j+7JNL9DWdWg84TWn2ywtdFKyMZb5Tg0nLyG55x48IJ3bXqe/ea/a26dFtyTXtldDUqyOdNL5VqaDHS5gwXRxMe3xz1Y9iDKP1Sa7uefUnR7TyYqUVoEU5jY6pJZIz1RY4ZiMYd7TkexBA749Wr2gtCKlrIpGs17NjK29LLWmPmMsyiFkbIZsPEdKQu6y0eAQWdD1E2L93W1tzRyCDY3paev2NaxVlhIjidMfMb5vmse1kbi9pZ7MeKDt0BAQEBAQfEPU+lFY2++q2K1uSSezTnrReVsTTmiZVYHOd9LVuQyubIwANkbxz4FA7FsQ0NrrLNXX7N0eo1+3darGDYPjb5j6prxVRajjDetsRAjj4yM4CDre2uxO7q2hqtm7nua6w9rp5tfXgoSxwyTOMr42PlrPe4Nc8jJJQRDb3Oz1fYFrcV7As0mu3u7nbWkBZ9LSfG5nlxs/yySWRiNozwcBBx9EXadGTXz62+LG41+jZS6adhzS6vfnlkEjgzEZax7T8ePFBu3nbPdUXqJZsw6S5cqbCW1YdIY2lxhhfEGMjfHtoG9HxucwPEZy4/A7kMC87aq2Kmv7mdvxuqGmklFjUU4G2Yp21rdyW00t+kJkFl88pY9vDgwNDvEoK9np73FBcHdkrt2+rZd5FjQx7O0b8WvbzDKZhN1SSse573QdeAHkN+Ichj3p2rBvZq9vUnY2tcNQPqpZYZpJ44GxXqzHdVlzZZpib73mLHViI85c1BZ6OpsIe/6/XSuntevdsz6+8+pI0/yM1dtWVr2Z644P8rmyuj6S53jxkh9aQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBB/9k=\\\\\\\"\\\\n84 | async function displayImage(imgName, styleName) {\\\\n85 |     var e = event || window.event;\\\",\\n        \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n        \\\"file_path\\\": \\\"web_version/v1/js/easy/easySelector.js\\\",\\n        \\\"issue_type\\\": \\\"contains_blacklisted_url\\\",\\n        \\\"line_number\\\": 82,\\n        \\\"line_snippet\\\": \\\"const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\",\\n        \\\"metadata\\\": {\\n            \\\"yara_matches\\\": [\\n                {\\n                    \\\"filepath\\\": \\\"web_version/v1/js/easy/easySelector.js\\\",\\n                    \\\"strings\\\": [\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_ascii_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 82,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 31\\n                                }\\n                            ]\\n                        },\\n                        {\\n                            \\\"identifier\\\": \\\"$blacklisted_url4_xor_44\\\",\\n                            \\\"instances\\\": [\\n                                {\\n                                    \\\"line\\\": \\\"const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\\n\\\",\\n                                    \\\"line_number\\\": 82,\\n                                    \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                    \\\"matched_length\\\": 28,\\n                                    \\\"offset\\\": 31\\n                                }\\n                            ]\\n                        }\\n                    ]\\n                }\\n            ],\\n            \\\"yara_meta\\\": {\\n                \\\"attack_id1\\\": \\\"T1102 Web Service\\\",\\n                \\\"category\\\": \\\"C2\\\",\\n                \\\"date\\\": \\\"12.08.2024\\\",\\n                \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n                \\\"observable_refs\\\": \\\"url\\\",\\n                \\\"reference1\\\": \\\"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\\\",\\n                \\\"reference2\\\": \\\"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\\\",\\n                \\\"severity\\\": \\\"1\\\",\\n                \\\"version\\\": \\\"1.0\\\"\\n            }\\n        },\\n        \\\"recommendation\\\": \\\"\\\",\\n        \\\"scanner\\\": \\\"yara_scan\\\",\\n        \\\"severity\\\": \\\"info\\\"\\n    }\\n]\",\"by\":\"admin@comfy.org\"}]}","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"tags_admin":[],"version":"1.3.1"},{"changelog":"","comfy_node_extract_status":"success","createdAt":"2025-05-09T16:03:32.835483Z","dependencies":["diffusers","accelerate","clip_interrogator\u003e=0.6.0","sentencepiece","lark","onnxruntime","spandrel","opencv-python","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.0/node.zip","id":"f1226d97-41f2-4325-bee6-9bc70d64e2d2","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","status_reason":"{\"message\":\"Subprocess: ffmpeg\",\"by\":\"dr.lt.data@gmail.com\",\"statusHistory\":[{\"status\":\"NodeVersionStatusFlagged\",\"message\":\"[\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/libs/translate.py\\\",\\n        \\\"line\\\": \\\"zh_en_model = AutoModelForSeq2SeqLM.from_pretrained(zh_en_model_path).eval()\\\",\\n        \\\"line_number\\\": 100,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/libs/translate.py\\\",\\n        \\\"line\\\": \\\"zh_en_model = AutoModelForSeq2SeqLM.from_pretrained(zh_en_model_path).eval()\\\",\\n        \\\"line_number\\\": 215,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"SubprocessCall\\\",\\n        \\\"file_name\\\": \\\"/py/libs/utils.py\\\",\\n        \\\"line\\\": \\\"import subprocess\\\",\\n        \\\"line_number\\\": 65,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"SubprocessCall\\\",\\n        \\\"file_name\\\": \\\"/py/libs/utils.py\\\",\\n        \\\"line\\\": \\\"result = subprocess.run([sys.executable, '-s', '-m', 'pip', 'install', package_command], capture_output=True, text=True)\\\",\\n        \\\"line_number\\\": 68,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"SubprocessCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/ben/model.py\\\",\\n        \\\"line\\\": \\\"import subprocess\\\",\\n        \\\"line_number\\\": 15,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/ben/model.py\\\",\\n        \\\"line\\\": \\\"frozen_stages (int): Stages to be frozen (stop grad and set eval mode).\\\",\\n        \\\"line_number\\\": 476,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/ben/model.py\\\",\\n        \\\"line\\\": \\\"self.patch_embed.eval()\\\",\\n        \\\"line_number\\\": 563,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/ben/model.py\\\",\\n        \\\"line\\\": \\\"self.pos_drop.eval()\\\",\\n        \\\"line_number\\\": 571,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/ben/model.py\\\",\\n        \\\"line\\\": \\\"m.eval()\\\",\\n        \\\"line_number\\\": 574,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"SubprocessCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/ben/model.py\\\",\\n        \\\"line\\\": \\\"subprocess.run(ffmpeg_cmd, check=True)\\\",\\n        \\\"line_number\\\": 1211,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"SubprocessCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/ben/model.py\\\",\\n        \\\"line\\\": \\\"result = subprocess.run(probe_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)\\\",\\n        \\\"line_number\\\": 1228,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"SubprocessCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/ben/model.py\\\",\\n        \\\"line\\\": \\\"subprocess.run(command, check=True)\\\",\\n        \\\"line_number\\\": 1246,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"HttpCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/brushnet/unet_2d_blocks.py\\\",\\n        \\\"line\\\": \\\"#     http://www.apache.org/licenses/LICENSE-2.0\\\",\\n        \\\"line_number\\\": 7,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"HttpCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/brushnet/unet_2d_condition.py\\\",\\n        \\\"line\\\": \\\"#     http://www.apache.org/licenses/LICENSE-2.0\\\",\\n        \\\"line_number\\\": 7,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/dit/pixArt/loader.py\\\",\\n        \\\"line\\\": \\\"model.diffusion_model.eval()\\\",\\n        \\\"line_number\\\": 117,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/dit/pixArt/models/pixart_controlnet.py\\\",\\n        \\\"line\\\": \\\"self.base_model = base_model.eval()\\\",\\n        \\\"line_number\\\": 58,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/ipadapter/__init__.py\\\",\\n        \\\"line\\\": \\\"self.resampler.eval()\\\",\\n        \\\"line_number\\\": 230,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"SubprocessCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/kolors/loader.py\\\",\\n        \\\"line\\\": \\\"import subprocess\\\",\\n        \\\"line_number\\\": 4,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/kolors/loader.py\\\",\\n        \\\"line\\\": \\\"self.text_encoder = ChatGLMModel(textmodel_json_config).eval()\\\",\\n        \\\"line_number\\\": 207,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"SubprocessCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/kolors/loader.py\\\",\\n        \\\"line\\\": \\\"subprocess.run([sys.executable, \\\\\\\"-m\\\\\\\", \\\\\\\"pip\\\\\\\", \\\\\\\"install\\\\\\\", \\\\\\\"cpm_kernels\\\\\\\"], check=True)\\\",\\n        \\\"line_number\\\": 213,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/kolors/chatglm/modeling_chatglm.py\\\",\\n        \\\"line\\\": \\\"parameters = eval(content)\\\",\\n        \\\"line_number\\\": 1019,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/modules/layer_diffuse/model.py\\\",\\n        \\\"line\\\": \\\"model.eval()\\\",\\n        \\\"line_number\\\": 258,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/nodes/fix.py\\\",\\n        \\\"line\\\": \\\"upscale_model = model_loading.load_state_dict(sd).eval()\\\",\\n        \\\"line_number\\\": 74,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/nodes/image.py\\\",\\n        \\\"line\\\": \\\"model.eval()\\\",\\n        \\\"line_number\\\": 874,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/nodes/image.py\\\",\\n        \\\"line\\\": \\\"net.eval()\\\",\\n        \\\"line_number\\\": 918,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"EvalCall\\\",\\n        \\\"file_name\\\": \\\"/py/nodes/image.py\\\",\\n        \\\"line\\\": \\\"model = BEN_Base().to(device).eval()\\\",\\n        \\\"line_number\\\": 947,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"OSEnvironCall\\\",\\n        \\\"file_name\\\": \\\"/py/nodes/pipe.py\\\",\\n        \\\"line\\\": \\\"system_root = os.environ.get(\\\\\\\"SystemRoot\\\\\\\")\\\",\\n        \\\"line_number\\\": 505,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"OSEnvironCall\\\",\\n        \\\"file_name\\\": \\\"/py/nodes/pipe.py\\\",\\n        \\\"line\\\": \\\"user_root = os.environ.get(\\\\\\\"USERPROFILE\\\\\\\")\\\",\\n        \\\"line_number\\\": 506,\\n        \\\"scanner\\\": \\\"scan_python_file\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"contains_custom_url_dependency\\\",\\n        \\\"matches\\\": [\\n            {\\n                \\\"filepath\\\": \\\"/install.bat\\\",\\n                \\\"strings\\\": [\\n                    {\\n                        \\\"identifier\\\": \\\"$plaintext_url\\\",\\n                        \\\"instances\\\": [\\n                            {\\n                                \\\"line\\\": \\\"        %aki_python_exec% -s -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \\\\\\\"%%i\\\\\\\"\\\\n\\\",\\n                                \\\"line_number\\\": 18,\\n                                \\\"matched_data\\\": \\\"https://pypi.tuna.tsinghua.edu.cn/simple\\\",\\n                                \\\"matched_length\\\": 40,\\n                                \\\"offset\\\": 47\\n                            },\\n                            {\\n                                \\\"line\\\": \\\"        %aki_python_exec% -s -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \\\\\\\"%%i\\\\\\\"\\\\n\\\",\\n                                \\\"line_number\\\": 18,\\n                                \\\"matched_data\\\": \\\"://pypi.tuna.tsinghua.edu.cn/simple\\\",\\n                                \\\"matched_length\\\": 35,\\n                                \\\"offset\\\": 52\\n                            }\\n                        ]\\n                    }\\n                ]\\n            },\\n            {\\n                \\\"filepath\\\": \\\"/install.sh\\\",\\n                \\\"strings\\\": [\\n                    {\\n                        \\\"identifier\\\": \\\"$plaintext_url\\\",\\n                        \\\"instances\\\": [\\n                            {\\n                                \\\"line\\\": \\\"        \\\\\\\"$aki_python_exec\\\\\\\" -s -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \\\\\\\"$line\\\\\\\"\\\\n\\\",\\n                                \\\"line_number\\\": 17,\\n                                \\\"matched_data\\\": \\\"https://pypi.tuna.tsinghua.edu.cn/simple\\\",\\n                                \\\"matched_length\\\": 40,\\n                                \\\"offset\\\": 48\\n                            },\\n                            {\\n                                \\\"line\\\": \\\"        \\\\\\\"$aki_python_exec\\\\\\\" -s -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \\\\\\\"$line\\\\\\\"\\\\n\\\",\\n                                \\\"line_number\\\": 17,\\n                                \\\"matched_data\\\": \\\"://pypi.tuna.tsinghua.edu.cn/simple\\\",\\n                                \\\"matched_length\\\": 35,\\n                                \\\"offset\\\": 53\\n                            }\\n                        ]\\n                    }\\n                ]\\n            }\\n        ],\\n        \\\"meta\\\": {\\n            \\\"attack_id1\\\": \\\"T1105 Ingress Tool Transfer\\\",\\n            \\\"attack_id2\\\": \\\"T1059 Command and Scripting Interpreter\\\",\\n            \\\"category\\\": \\\"C2\\\",\\n            \\\"date\\\": \\\"01.08.2024\\\",\\n            \\\"description\\\": \\\"Detects custom wheel or URL dependencies\\\",\\n            \\\"observable_refs\\\": \\\"url\\\",\\n            \\\"reference\\\": \\\"https://old.reddit.com/r/comfyui/comments/1dbls5n/psa_if_youve_used_the_comfyui_llmvision_node_from/\\\",\\n            \\\"severity\\\": \\\"3\\\",\\n            \\\"version\\\": \\\"1.1\\\"\\n        },\\n        \\\"scanner\\\": \\\"yara_scan\\\"\\n    },\\n    {\\n        \\\"error_type\\\": \\\"contains_blacklisted_url\\\",\\n        \\\"matches\\\": [\\n            {\\n                \\\"filepath\\\": \\\"/py/config.py\\\",\\n                \\\"strings\\\": [\\n                    {\\n                        \\\"identifier\\\": \\\"$blacklisted_url4_ascii_44\\\",\\n                        \\\"instances\\\": [\\n                            {\\n                                \\\"line\\\": \\\"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\\n\\\",\\n                                \\\"line_number\\\": 46,\\n                                \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                \\\"matched_length\\\": 28,\\n                                \\\"offset\\\": 31\\n                            }\\n                        ]\\n                    },\\n                    {\\n                        \\\"identifier\\\": \\\"$blacklisted_url4_xor_44\\\",\\n                        \\\"instances\\\": [\\n                            {\\n                                \\\"line\\\": \\\"FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'\\\\n\\\",\\n                                \\\"line_number\\\": 46,\\n                                \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                \\\"matched_length\\\": 28,\\n                                \\\"offset\\\": 31\\n                            }\\n                        ]\\n                    }\\n                ]\\n            },\\n            {\\n                \\\"filepath\\\": \\\"/py/nodes/prompt.py\\\",\\n                \\\"strings\\\": [\\n                    {\\n                        \\\"identifier\\\": \\\"$blacklisted_url4_ascii_44\\\",\\n                        \\\"instances\\\": [\\n                            {\\n                                \\\"line\\\": \\\"            response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\\n\\\",\\n                                \\\"line_number\\\": 375,\\n                                \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                \\\"matched_length\\\": 28,\\n                                \\\"offset\\\": 37\\n                            }\\n                        ]\\n                    },\\n                    {\\n                        \\\"identifier\\\": \\\"$blacklisted_url4_xor_44\\\",\\n                        \\\"instances\\\": [\\n                            {\\n                                \\\"line\\\": \\\"            response = urlopen('https://raw.githubusercontent.com/yolain/ComfyUI-Easy-Use/main/resources/portrait_prompt.json')\\\\n\\\",\\n                                \\\"line_number\\\": 375,\\n                                \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                \\\"matched_length\\\": 28,\\n                                \\\"offset\\\": 37\\n                            }\\n                        ]\\n                    }\\n                ]\\n            },\\n            {\\n                \\\"filepath\\\": \\\"/web_version/v1/js/easy/easySelector.js\\\",\\n                \\\"strings\\\": [\\n                    {\\n                        \\\"identifier\\\": \\\"$blacklisted_url4_ascii_44\\\",\\n                        \\\"instances\\\": [\\n                            {\\n                                \\\"line\\\": \\\"const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\\n\\\",\\n                                \\\"line_number\\\": 82,\\n                                \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                \\\"matched_length\\\": 28,\\n                                \\\"offset\\\": 31\\n                            }\\n                        ]\\n                    },\\n                    {\\n                        \\\"identifier\\\": \\\"$blacklisted_url4_xor_44\\\",\\n                        \\\"instances\\\": [\\n                            {\\n                                \\\"line\\\": \\\"const foocus_base_path = \\\\\\\"https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/\\\\\\\"\\\\n\\\",\\n                                \\\"line_number\\\": 82,\\n                                \\\"matched_data\\\": \\\"://raw.githubusercontent.com\\\",\\n                                \\\"matched_length\\\": 28,\\n                                \\\"offset\\\": 31\\n                            }\\n                        ]\\n                    }\\n                ]\\n            }\\n        ],\\n        \\\"meta\\\": {\\n            \\\"attack_id1\\\": \\\"T1102 Web Service\\\",\\n            \\\"category\\\": \\\"C2\\\",\\n            \\\"date\\\": \\\"12.08.2024\\\",\\n            \\\"description\\\": \\\"Detects blacklisted URLs in code\\\",\\n            \\\"observable_refs\\\": \\\"url\\\",\\n            \\\"reference1\\\": \\\"https://www.reversinglabs.com/blog/malware-leveraging-public-infrastructure-like-github-on-the-rise\\\",\\n            \\\"reference2\\\": \\\"https://cybersixgill.com/news/articles/file-sharing-services-on-the-cybercriminal-underground\\\",\\n            \\\"severity\\\": \\\"1\\\",\\n            \\\"version\\\": \\\"1.0\\\"\\n        },\\n        \\\"scanner\\\": \\\"yara_scan\\\"\\n    },\\n    {\\n        \\\"file\\\": \\\"py/libs/utils.py\\\",\\n        \\\"line\\\": 68,\\n        \\\"message\\\": \\\"Subprocess call with pip install detected\\\",\\n        \\\"severity\\\": \\\"WARNING\\\",\\n        \\\"type\\\": \\\"subprocess_pip_install\\\"\\n    },\\n    {\\n        \\\"file\\\": \\\"py/modules/brushnet/unet_2d_blocks.py\\\",\\n        \\\"line\\\": 39,\\n        \\\"message\\\": \\\"Unknown option value for 'disable', expected a valid pylint message and got 'invalid-name'\\\",\\n        \\\"severity\\\": \\\"WARNING\\\",\\n        \\\"type\\\": \\\"prohibited_string\\\"\\n    },\\n    {\\n        \\\"file\\\": \\\"py/modules/brushnet/unet_2d_condition.py\\\",\\n        \\\"line\\\": 52,\\n        \\\"message\\\": \\\"Unknown option value for 'disable', expected a valid pylint message and got 'invalid-name'\\\",\\n        \\\"severity\\\": \\\"WARNING\\\",\\n        \\\"type\\\": \\\"prohibited_string\\\"\\n    },\\n    {\\n        \\\"file\\\": \\\"py/modules/kolors/loader.py\\\",\\n        \\\"line\\\": 213,\\n        \\\"message\\\": \\\"Subprocess call with pip install detected\\\",\\n        \\\"severity\\\": \\\"WARNING\\\",\\n        \\\"type\\\": \\\"subprocess_pip_install\\\"\\n    },\\n    {\\n        \\\"file\\\": \\\"py/nodes/image.py\\\",\\n        \\\"line\\\": 74,\\n        \\\"message\\\": \\\"Unknown option value for 'disable', expected a valid pylint message and got 'invalid-name'\\\",\\n        \\\"severity\\\": \\\"WARNING\\\",\\n        \\\"type\\\": \\\"prohibited_string\\\"\\n    },\\n    {\\n        \\\"file\\\": \\\"py/nodes/image.py\\\",\\n        \\\"line\\\": 74,\\n        \\\"message\\\": \\\"Unknown option value for 'disable', expected a valid pylint message and got 'missing-function-docstring'\\\",\\n        \\\"severity\\\": \\\"WARNING\\\",\\n        \\\"type\\\": \\\"prohibited_string\\\"\\n    },\\n    {\\n        \\\"file\\\": \\\"py/nodes/image.py\\\",\\n        \\\"line\\\": 111,\\n        \\\"message\\\": \\\"Unknown option value for 'disable', expected a valid pylint message and got 'too-many-arguments'\\\",\\n        \\\"severity\\\": \\\"WARNING\\\",\\n        \\\"type\\\": \\\"prohibited_string\\\"\\n    }\\n]\",\"by\":\"admin@comfy.org\"}],\"batchId\":\"b2e2a7be\"}","supported_accelerators":null,"supported_comfyui_frontend_version":"","supported_comfyui_version":"\u003c0.3.40","supported_os":null,"tags":[],"tags_admin":[],"version":"1.3.0"},{"changelog":"","comfy_node_extract_status":"success","createdAt":"2025-04-15T06:21:33.817017Z","dependencies":["diffusers","accelerate","clip_interrogator\u003e=0.6.0","sentencepiece","lark","onnxruntime","spandrel","opencv-python","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.2.9/node.zip","id":"e4afb0ab-f18c-4909-860d-4c8ab11a78f9","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","status_reason":"Approved by admin","supported_accelerators":null,"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":null,"tags":[],"tags_admin":[],"version":"1.2.9"}]}
