layerpro 3.3.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
- ;(()=>{const s=document.createElement("style");s.textContent="@layer layerpro {:root{--input-background-color:#444;--input-color:white;--button-background-color:#444;--button-color:white;--inputButton-fontSize:.8em;--resize-background-color:rgba(30,150,255,.5);--resize-shadow:0 0 10px rgba(30,150,255,.5);--dock-background-color:black;--dock-height:40px;--dock-sideLeft:10px;--dock-sideCenter:auto;--dock-sideRight:10px;--dock-icon-width:140px;--bar-background:linear-gradient( 45deg,#4a4a4f 60%,#AAA 100%);--bar-selected-background:linear-gradient( 45deg,#162858 60%,#224e918a 100%);--bar-color:#eee;--bar-border-bottom:2px solid #555;--bar-shadow:0 1px 1px #888;--window-background:gray;--window-shadow:0 0 10px rgba(0,0,0,.3);--window-border-radius:10px;--window-z-high-border:#278ed0;--window-z-high-shadow:0 0 15px rgba(0,0,0,.7);--internal-background:linear-gradient( 0deg,rgba(60,60,60,1) 0%,#4a4a4f 100%);--body-color:#eee;--body-background:transparent;--raised-background:rgba(0,0,0,.3);--popup-z-index:1000;--transition-time:.5s;--border-radius:25px;--corner-size:14px;--corner-border-radius:50%;--hover-opacity:1;--hover-filter:blur(3px);}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup{position:static;}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup,#popup_dock{will-change:transform,opacity,top,left,height,width;}#popup{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;}#popup .buttons{display:flex;position:absolute;left:0;right:0;bottom:0;height:40px;justify-content:space-evenly;align-items:center;}#popup .buttons button{all:unset;width:100%;height:100%;border-right:2px solid #636363;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);overflow:hidden;position:relative;color:var(--button-color);}#popup .buttons button:last-child{border-right:none;}#popup .buttons button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup .buttons button:hover{transition:all 0.3s ease;box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup .popup_bar_selected{background:var(--bar-selected-background) !important;}#popup .zHigh{border-top-color:var(--window-z-high-border) !important;box-shadow:var(--window-z-high-shadow) !important;border:1px solid rgba(0,0,0,0.05);}#popup [class*=popup_raised_]{position:absolute;inset:0;width:100%;height:100%;background-color:var(--raised-background);z-index:1;}#popup [class*=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:var(--window-border-radius);box-shadow:var(--window-shadow);overflow:hidden;}#popup [class*=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:var(--window-border-radius);background:var(--window-background);}#popup .popup_bar,#popup [class*=popup_bar_]{display:flex;width:100%;height:36px;background:var(--bar-background);border-bottom:var(--bar-border-bottom);box-shadow:var(--bar-shadow);z-index:2;}#popup [class*=popup_drag_]{width:100%;padding:10px 0 0 10px;color:var(--bar-color);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup [class*=popup_icon_]{padding:8px 0 0 10px;color:var(--bar-color);font-size:1.1em;}#popup [class*=popup_option_]{display:flex;margin-right:15px;}#popup [class*=popup_option_] button{position:relative;display:inline-block;width:36px;height:28px;color:white;border-radius:5px;margin:4px;transition:all 0.3s ease;background:transparent;}#popup [class*=popup_option_] button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup [class*=popup_option_] button:after{content:\"\";inset:0;display:block;position:absolute;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);border-radius:5px;z-index:-1;}#popup [class*=popup_option_] button:after{opacity:0;transition:opacity 0.3s ease-in-out;}#popup [class*=popup_option_] button:hover{background:rgba(255,255,255,0.1);box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup [class*=popup_option_] button:hover::after{opacity:1;}#popup [class*=popup_option_] button [class*=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class*=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class*=popup_internal_]{position:absolute;inset:37px 0 0 0;z-index:1;background:var(--internal-background);}#popup .popup_body,#popup [class*=popup_body_]{position:absolute;inset:0;color:var(--body-color);background:var(--body-background);text-align:center;}.popupMaxSize{position:absolute !important;width:100% !important;height:100% !important;inset:0 !important;margin:0 !important;padding:0 !important;border-radius:0 !important;}#popup_dock{position:absolute;bottom:0;left:0;right:0;height:var(--dock-height);background-color:var(--dock-background-color);border-top:1px solid rgba(255,255,255,0.521);}#popup_dock #popup_dock_icon{position:absolute;top:3px;left:3px;width:70px;height:var(--dock-height);}#popup_dock #popup_dock_list{position:absolute;top:3px;left:var(--dock-sideLeft);right:var(--dock-sideLeft);height:calc(var(--dock-height) - 5px);overflow-y:auto;text-align:right;display:flex;flex-direction:row;justify-content:flex-end;height:30px;}#popup_dock #popup_dock_list [class^=icon_]{width:var(--dock-icon-width);float:left;padding:4px;color:white;margin:2px 3px 0 0;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;filter:saturate(400%);}#popup_dock #popup_dock_list [class^=icon_]:hover{background-color:rgb(77,77,77);}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(1){width:20%;text-align:center;color:#F60;}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(2){width:80%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup_dock #popup_dock_list [class^=icon_] button{width:20px;height:20px;color:white;padding:4px;margin:0;display:flex;align-content:center;justify-content:center;font-size:0.7em;border:none;background:none;}#popup_dock #popup_dock_options{position:absolute;top:3px;right:10px;width:var(--dock-sideRight);height:var(--dock-height);}#popup .iconize:before,#popup .maximize:before,#popup .close:before{content:\"\";position:absolute;inset:0;background-repeat:no-repeat !important;background-position:center !important;background-size:50% !important;filter:invert(1);opacity:0.5;margin:0;padding:0;}#popup .iconize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25pemUuc3ZnIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy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gICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiCiAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMjkxLjcwODMyKSI+CiAgICA8cmVjdAogICAgICAgcnk9IjAuNjk5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Im1heGltaXplLnN2ZyIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRw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2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpwYWdlY2hlY2tlcmJvYXJkPSIwIiAvPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTM3NjUiPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIgogICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTI5MS43MDgzMikiPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAuMTQ3MDQ1NCIKICAgICAgIGlkPSJyZWN0MzczMiIKICAgICAgIHdpZHRoPSI0Ljc2MjQ5OTgiCiAgICAgICBoZWlnaHQ9IjQuNzYyNDk5OCIKICAgICAgIHg9IjAuMjkxODUyNTMiCiAgICAgICB5PSIyOTIuMDEwNDQiCiAgICAgICByeT0iMC42NjcxMjEyMyIgLz4KICA8L2c+Cjwvc3ZnPgo=) !important;}#popup .close:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR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ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup > input,#popup > button,#popup > textarea,#popup > select{all:unset;}.popup_alert,.popup_message,.popup_prompt,.popup_confirm{height:calc(100% - 41px);box-shadow:0 1px 1px #888;overflow:auto;padding:20px;word-break:break-all;}.popup_alert input[type=text],.popup_message input[type=text],.popup_prompt input[type=text],.popup_confirm input[type=text]{position:relative;width:90%;height:35px;padding:5px;font-size:1.05em;border:2px solid rgba(0,0,0,0.3);border-radius:6px;color:#ddd;background-color:#4a4a4f;}.popup_window___alert #a___alert,.popup_window___alert #a___message,.popup_window___message #a___alert,.popup_window___message #a___message{width:100% !important;}.popup_window___prompt #a___alert,.popup_window___prompt #b___alert,.popup_window___prompt #a___message,.popup_window___prompt #b___message,.popup_window___confirm #a___alert,.popup_window___confirm #b___alert,.popup_window___confirm #a___message,.popup_window___confirm #b___message{width:50% !important;}.resize_0,.resize_1,.resize_2,.resize_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);}.resize_0{top:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_1{top:0;right:-4px;width:10px;height:100%;cursor:e-resize;}.resize_2{bottom:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_3{top:0;left:-4px;width:10px;height:100%;cursor:e-resize;}.resize_corner_0,.resize_corner_1,.resize_corner_2,.resize_corner_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);width:var(--corner-size);height:var(--corner-size);border-radius:var(--corner-border-radius);}.resize_corner_0{top:-4px;left:-4px;cursor:nw-resize;}.resize_corner_1{top:-4px;right:-4px;cursor:ne-resize;}.resize_corner_2{bottom:-4px;right:-4px;cursor:nw-resize;}.resize_corner_3{bottom:-4px;left:-4px;cursor:ne-resize;}.resize_0:hover,.resize_1:hover,.resize_2:hover,.resize_3:hover,.resize_corner_0:hover,.resize_corner_1:hover,.resize_corner_2:hover,.resize_corner_3:hover{opacity:var(--hover-opacity);filter:var(--hover-filter);box-shadow:var(--resize-shadow);transition:var(--transition-time);}#popup{}#popup::-webkit-scrollbar{width:10px;scroll-behavior:smooth;}#popup{}#popup::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px;margin:5px;}#popup{}#popup::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:rgb(30,150,255) !important;}}";document.head.appendChild(s)})();var e = Object.defineProperty, t = (t, o, i) => ((t, o, i) => o in t ? e(t, o, {
1
+ ;(()=>{if(typeof document==="undefined"||document.querySelector("style[data-layerpro-styles]"))return;const s=document.createElement("style");const n=globalThis.__layerproNonce||globalThis.layerpro?.nonce||document.querySelector("style[nonce],script[nonce]")?.nonce||document.body?.dataset?.nonce;if(n)s.setAttribute("nonce",n);s.setAttribute("data-layerpro-styles","");s.textContent=":root{--input-background-color:#444;--input-color:white;--button-background-color:#444;--button-color:white;--inputButton-fontSize:.8em;--resize-background-color:rgba(30,150,255,.5);--resize-shadow:0 0 10px rgba(30,150,255,.5);--dock-background-color:black;--dock-height:40px;--dock-sideLeft:10px;--dock-sideCenter:auto;--dock-sideRight:10px;--dock-icon-width:140px;--bar-background:linear-gradient( 45deg,#4a4a4f 60%,#AAA 100%);--bar-selected-background:linear-gradient( 45deg,#162858 60%,#224e918a 100%);--bar-color:#eee;--bar-border-bottom:2px solid #555;--bar-shadow:0 1px 1px #888;--window-background:gray;--window-shadow:0 0 10px rgba(0,0,0,.3);--window-border-radius:10px;--window-z-high-border:#278ed0;--window-z-high-shadow:0 0 15px rgba(0,0,0,.7);--internal-background:linear-gradient( 0deg,rgba(60,60,60,1) 0%,#4a4a4f 100%);--body-color:#eee;--body-background:transparent;--modal-background:rgba(0,0,0,.3);--popup-z-index:1000;--transition-time:.5s;--border-radius:25px;--corner-size:14px;--corner-border-radius:50%;--hover-opacity:1;--hover-filter:blur(3px);}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body]{position:static;}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup,#popup_dock{will-change:transform,opacity,top,left,height,width;}#popup{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;}#popup .buttons{display:flex;position:absolute;left:0;right:0;bottom:0;height:40px;justify-content:space-evenly;align-items:center;}#popup .buttons button{all:unset;width:100%;height:100%;border-right:2px solid #636363;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);overflow:hidden;position:relative;color:var(--button-color);}#popup .buttons button:last-child{border-right:none;}#popup .buttons button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup .buttons button:hover{transition:all 0.3s ease;box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup .popup_bar_selected{background:var(--bar-selected-background) !important;}#popup .zHigh{border-top-color:var(--window-z-high-border) !important;box-shadow:var(--window-z-high-shadow) !important;border:1px solid rgba(0,0,0,0.05);}#popup [class*=popup_modal_]{position:absolute;inset:0;width:100%;height:100%;background-color:var(--modal-background);z-index:1;}#popup [class*=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:var(--window-border-radius);box-shadow:var(--window-shadow);overflow:hidden;}#popup [class*=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:var(--window-border-radius);background:var(--window-background);}#popup .popup_bar,#popup [class*=popup_bar_]{display:flex;width:100%;height:36px;background:var(--bar-background);border-bottom:var(--bar-border-bottom);box-shadow:var(--bar-shadow);z-index:2;}#popup [class*=popup_drag_]{width:100%;padding:10px 0 0 10px;color:var(--bar-color);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup [class*=popup_icon_]{padding:8px 0 0 10px;color:var(--bar-color);font-size:1.1em;}#popup [class*=popup_option_]{display:flex;margin-right:15px;}#popup [class*=popup_option_] button{position:relative;display:inline-block;width:36px;height:28px;color:white;border-radius:5px;margin:4px;transition:all 0.3s ease;background:transparent;}#popup [class*=popup_option_] button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup [class*=popup_option_] button:after{content:\"\";inset:0;display:block;position:absolute;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);border-radius:5px;z-index:-1;}#popup [class*=popup_option_] button:after{opacity:0;transition:opacity 0.3s ease-in-out;}#popup [class*=popup_option_] button:hover{background:rgba(255,255,255,0.1);box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup [class*=popup_option_] button:hover::after{opacity:1;}#popup [class*=popup_option_] button [class*=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class*=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class*=popup_internal_]{position:absolute;inset:37px 0 0 0;z-index:1;background:var(--internal-background);}#popup .popup_body,#popup [class*=popup_body_]{position:absolute;inset:0;color:var(--body-color);background:var(--body-background);text-align:center;}.popupMaxSize{position:absolute !important;width:100% !important;height:100% !important;inset:0 !important;margin:0 !important;padding:0 !important;border-radius:0 !important;}#popup_dock{position:absolute;bottom:0;left:0;right:0;height:var(--dock-height);background-color:var(--dock-background-color);border-top:1px solid rgba(255,255,255,0.521);}#popup_dock #popup_dock_icon{position:absolute;top:3px;left:3px;width:70px;height:var(--dock-height);}#popup_dock #popup_dock_list{position:absolute;top:3px;left:var(--dock-sideLeft);right:var(--dock-sideLeft);height:calc(var(--dock-height) - 5px);overflow-y:auto;text-align:right;display:flex;flex-direction:row;justify-content:flex-end;height:30px;}#popup_dock #popup_dock_list [class^=icon_]{width:var(--dock-icon-width);float:left;padding:4px;color:white;margin:2px 3px 0 0;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;filter:saturate(400%);}#popup_dock #popup_dock_list [class^=icon_]:hover{background-color:rgb(77,77,77);}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(1){width:20%;text-align:center;color:#F60;}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(2){width:80%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup_dock #popup_dock_list [class^=icon_] button{width:20px;height:20px;color:white;padding:4px;margin:0;display:flex;align-content:center;justify-content:center;font-size:0.7em;border:none;background:none;}#popup_dock #popup_dock_options{position:absolute;top:3px;right:10px;width:var(--dock-sideRight);height:var(--dock-height);}#popup .iconize:before,#popup .maximize:before,#popup .close:before{content:\"\";position:absolute;inset:0;background-repeat:no-repeat !important;background-position:center !important;background-size:50% !important;filter:invert(1);opacity:0.5;margin:0;padding:0;}#popup .iconize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25pemUuc3ZnIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZ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2VjaGVja2VyYm9hcmQ9IjAiIC8+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhMzc2NSI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiCiAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMjkxLjcwODMyKSI+CiAgICA8cmVjdAogICAgICAgcnk9IjAuNjk5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g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C4yNjUzNyAwLjI2NTM3LC0wLjY5MjQ0IDAsLTAuOTU3ODEgLTAuMjY1Mzc5LC0wLjI2NTM3IC0wLjY5MjYxLC0wLjI2NTM3IC0wLjk1Nzk5LDAgbCAtMS4yMjQyMDgsMS4yMjQxNyAtMS4yMjQyMSwtMS4yMjQxNyBjIC0wLjEzMjY5LC0wLjEzMjY5IC0wLjMwNTgzLC0wLjE5OTI3IC0wLjQ3ODk4OTk1LC0wLjE5OTI3IHoiCiAgICAgICBpZD0icmVjdDM3MTUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup > input,#popup > button,#popup > textarea,#popup > select{all:unset;}.popup_alert,.popup_message,.popup_prompt,.popup_confirm{height:calc(100% - 41px);box-shadow:0 1px 1px #888;overflow:auto;padding:20px;word-break:break-all;}.popup_alert input[type=text],.popup_message input[type=text],.popup_prompt input[type=text],.popup_confirm input[type=text]{position:relative;width:90%;height:35px;padding:5px;font-size:1.05em;border:2px solid rgba(0,0,0,0.3);border-radius:6px;color:#ddd;background-color:#4a4a4f;}.popup_window___alert #a___alert,.popup_window___alert #a___message,.popup_window___message #a___alert,.popup_window___message #a___message{width:100% !important;}.popup_window___prompt #a___alert,.popup_window___prompt #b___alert,.popup_window___prompt #a___message,.popup_window___prompt #b___message,.popup_window___confirm #a___alert,.popup_window___confirm #b___alert,.popup_window___confirm #a___message,.popup_window___confirm #b___message{width:50% !important;}.resize_0,.resize_1,.resize_2,.resize_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);}.resize_0{top:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_1{top:0;right:-4px;width:10px;height:100%;cursor:e-resize;}.resize_2{bottom:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_3{top:0;left:-4px;width:10px;height:100%;cursor:e-resize;}.resize_corner_0,.resize_corner_1,.resize_corner_2,.resize_corner_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);width:var(--corner-size);height:var(--corner-size);border-radius:var(--corner-border-radius);}.resize_corner_0{top:-4px;left:-4px;cursor:nw-resize;}.resize_corner_1{top:-4px;right:-4px;cursor:ne-resize;}.resize_corner_2{bottom:-4px;right:-4px;cursor:nw-resize;}.resize_corner_3{bottom:-4px;left:-4px;cursor:ne-resize;}.resize_0:hover,.resize_1:hover,.resize_2:hover,.resize_3:hover,.resize_corner_0:hover,.resize_corner_1:hover,.resize_corner_2:hover,.resize_corner_3:hover{opacity:var(--hover-opacity);filter:var(--hover-filter);box-shadow:var(--resize-shadow);transition:var(--transition-time);}#popup{}#popup::-webkit-scrollbar{width:10px;scroll-behavior:smooth;}#popup{}#popup::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px;margin:5px;}#popup{}#popup::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:rgb(30,150,255) !important;}";document.head.appendChild(s)})();var e = Object.defineProperty, t = (t, o, n) => ((t, o, n) => o in t ? e(t, o, {
2
2
  enumerable: !0,
3
3
  configurable: !0,
4
4
  writable: !0,
5
- value: i
6
- }) : t[o] = i)(t, o + "", i), o = globalThis;
5
+ value: n
6
+ }) : t[o] = n)(t, o + "", n), o = globalThis;
7
7
 
8
8
  o.layerpro || Object.defineProperty(o, "layerpro", {
9
9
  value: {},
@@ -12,52 +12,70 @@ o.layerpro || Object.defineProperty(o, "layerpro", {
12
12
  enumerable: !1
13
13
  });
14
14
 
15
- var i = o.layerpro;
15
+ var n = o.layerpro;
16
16
 
17
- if (!i.setProps) {
17
+ if (!n.setProps) {
18
18
  const e = (t, o) => {
19
- Reflect.ownKeys(t).forEach(i => {
20
- const n = Object.getOwnPropertyDescriptor(t, i);
21
- n && (n.enumerable = o?.enumerable || !1, n.configurable = o?.enumerable || !1,
22
- n.writable = o?.writable || !1, Object.defineProperty(t, i, n));
23
- const s = t[i];
19
+ Reflect.ownKeys(t).forEach(n => {
20
+ const i = Object.getOwnPropertyDescriptor(t, n);
21
+ i && (i.enumerable = o?.enumerable ?? !1, i.configurable = o?.configurable ?? !1,
22
+ i.writable = o?.writable ?? !1, Object.defineProperty(t, n, i));
23
+ const s = t[n];
24
24
  "object" == typeof s && null !== s && e(s, o);
25
25
  });
26
26
  };
27
- Object.defineProperty(i, "setProps", {
27
+ Object.defineProperty(n, "setProps", {
28
28
  value: e,
29
29
  writable: !1,
30
30
  configurable: !1
31
31
  });
32
32
  }
33
33
 
34
- var n = globalThis.layerpro;
34
+ var i = globalThis.layerpro, s = globalThis;
35
35
 
36
- Object.defineProperty(n, "credits", {
36
+ Object.defineProperty(i, "config", {
37
+ value: e => {
38
+ void 0 !== e.nonce && (s.__layerproNonce = e.nonce);
39
+ },
40
+ writable: !1,
41
+ configurable: !1
42
+ });
43
+
44
+ var r = globalThis.layerpro;
45
+
46
+ Object.defineProperty(r, "credits", {
37
47
  value: e => {},
38
48
  writable: !1,
39
49
  configurable: !1
40
50
  });
41
51
 
42
- var s = new WeakMap, p = new WeakMap, r = e => "string" == typeof e ? document.querySelector(e) ?? document : e instanceof HTMLElement ? e : document, a = e => e ? e.split(/\s+/).filter(e => e.length > 0) : [], l = new Set([ "opacity", "zindex", "z-index", "fontweight", "font-weight", "lineheight", "line-height", "zoom", "flex", "flexgrow", "flex-grow", "flexshrink", "flex-shrink", "order", "gridcolumn", "grid-column", "gridrow", "grid-row", "columncount", "column-count", "fontsizeadjust", "font-size-adjust", "appearance" ]), c = (e, t) => "number" != typeof t || l.has(e.toLowerCase()) ? String(t) : `${t}px`, d = (e, t, o, i) => {
43
- const n = e => o(e), p = i?.ns ? `${t}.${i.ns}` : t;
44
- e.addEventListener(t, n, i);
45
- let r = s.get(e);
46
- r || (r = new Map, s.set(e, r)), r.set(p, {
47
- handler: n,
48
- opts: i ?? {}
52
+ var p = "4.0.0", a = globalThis.layerpro;
53
+
54
+ Object.defineProperty(a, "version", {
55
+ value: () => p,
56
+ writable: !1,
57
+ configurable: !1
58
+ });
59
+
60
+ var l = new WeakMap, c = new WeakMap, d = e => "string" == typeof e ? document.querySelector(e) ?? document : e instanceof HTMLElement ? e : document, u = e => e ? e.split(/\s+/).filter(e => e.length > 0) : [], h = new Set([ "opacity", "zindex", "z-index", "fontweight", "font-weight", "lineheight", "line-height", "zoom", "flex", "flexgrow", "flex-grow", "flexshrink", "flex-shrink", "order", "gridcolumn", "grid-column", "gridrow", "grid-row", "columncount", "column-count", "fontsizeadjust", "font-size-adjust", "appearance" ]), m = (e, t) => "number" != typeof t || h.has(e.toLowerCase()) ? String(t) : `${t}px`, f = (e, t, o, n) => {
61
+ const i = e => o(e), s = n?.ns ? `${t}.${n.ns}` : t;
62
+ e.addEventListener(t, i, n);
63
+ let r = l.get(e);
64
+ r || (r = new Map, l.set(e, r)), r.set(s, {
65
+ handler: i,
66
+ opts: n ?? {}
49
67
  });
50
- }, u = (e, t, o) => {
51
- const i = s.get(e);
52
- if (i) {
68
+ }, b = (e, t, o) => {
69
+ const n = l.get(e);
70
+ if (n) {
53
71
  if (o?.ns) {
54
- const n = `${t}.${o.ns}`, s = i.get(n);
55
- return void (s && (e.removeEventListener(t, s.handler, s.opts), i.delete(n)));
72
+ const i = `${t}.${o.ns}`, s = n.get(i);
73
+ return void (s && (e.removeEventListener(t, s.handler, s.opts), n.delete(i)));
56
74
  }
57
- for (const [o, n] of [ ...i ]) (o === t || o.startsWith(`${t}.`)) && (e.removeEventListener(t, n.handler, n.opts),
58
- i.delete(o));
75
+ for (const [o, i] of [ ...n ]) (o === t || o.startsWith(`${t}.`)) && (e.removeEventListener(t, i.handler, i.opts),
76
+ n.delete(o));
59
77
  }
60
- }, h = class e {
78
+ }, _ = class e {
61
79
  constructor(e) {
62
80
  t(this, "el"), this.el = e;
63
81
  }
@@ -68,7 +86,7 @@ var s = new WeakMap, p = new WeakMap, r = e => "string" == typeof e ? document.q
68
86
  appendTo(t) {
69
87
  let o;
70
88
  if (t instanceof e) o = t.el; else {
71
- const e = r(t);
89
+ const e = d(t);
72
90
  o = e === document ? document.body : e;
73
91
  }
74
92
  return o.appendChild(this.el), this;
@@ -80,19 +98,19 @@ var s = new WeakMap, p = new WeakMap, r = e => "string" == typeof e ? document.q
80
98
  return this.el.textContent = e, this;
81
99
  }
82
100
  css(e, t) {
83
- if ("object" == typeof e && null !== e) for (const [t, o] of Object.entries(e)) this.el.style.setProperty(t.replace(/[A-Z]/g, e => `-${e.toLowerCase()}`), c(t, o)); else this.el.style.setProperty(e.replace(/[A-Z]/g, e => `-${e.toLowerCase()}`), c(e, t));
101
+ if ("object" == typeof e && null !== e) for (const [t, o] of Object.entries(e)) this.el.style.setProperty(t.replace(/[A-Z]/g, e => `-${e.toLowerCase()}`), m(t, o)); else this.el.style.setProperty(e.replace(/[A-Z]/g, e => `-${e.toLowerCase()}`), m(e, t));
84
102
  return this;
85
103
  }
86
104
  addClass(e) {
87
- for (const t of a(e)) this.el.classList.add(t);
105
+ for (const t of u(e)) this.el.classList.add(t);
88
106
  return this;
89
107
  }
90
108
  removeClass(e) {
91
- for (const t of a(e)) this.el.classList.remove(t);
109
+ for (const t of u(e)) this.el.classList.remove(t);
92
110
  return this;
93
111
  }
94
112
  toggleClass(e, t) {
95
- for (const o of a(e)) this.el.classList.toggle(o, t);
113
+ for (const o of u(e)) this.el.classList.toggle(o, t);
96
114
  return this;
97
115
  }
98
116
  hasClass(e) {
@@ -129,18 +147,18 @@ var s = new WeakMap, p = new WeakMap, r = e => "string" == typeof e ? document.q
129
147
  return this.el.style.display = "none" === this.el.style.display ? "" : "none", this;
130
148
  }
131
149
  on(e, t, o) {
132
- return d(this.el, e, t, o), this;
150
+ return f(this.el, e, t, o), this;
133
151
  }
134
152
  off(e, t) {
135
- return u(this.el, e, t), this;
153
+ return b(this.el, e, t), this;
136
154
  }
137
155
  data(e, t) {
138
- let o = p.get(this.el);
139
- return o || (o = new Map, p.set(this.el, o)), void 0 === t ? o.get(e) : (o.set(e, t),
156
+ let o = c.get(this.el);
157
+ return o || (o = new Map, c.set(this.el, o)), void 0 === t ? o.get(e) : (o.set(e, t),
140
158
  this);
141
159
  }
142
160
  removeData(e) {
143
- return p.get(this.el)?.delete(e), this;
161
+ return c.get(this.el)?.delete(e), this;
144
162
  }
145
163
  offset() {
146
164
  const e = this.el.getBoundingClientRect();
@@ -173,153 +191,182 @@ var s = new WeakMap, p = new WeakMap, r = e => "string" == typeof e ? document.q
173
191
  }
174
192
  fadeIn(e, t) {
175
193
  const o = this.el;
176
- let i = 100, n = t;
177
- return "function" == typeof e ? n = e : i = e, o.style.display = "", o.style.transition = "none",
178
- o.style.opacity = "0", o.offsetWidth, o.style.transition = `opacity ${i}ms ease`,
179
- o.style.opacity = "1", this.finishTransition(i, () => {
180
- o.style.transition = "", o.style.opacity = "", n?.();
194
+ let n = 100, i = t;
195
+ return "function" == typeof e ? i = e : n = e, o.style.display = "", o.style.transition = "none",
196
+ o.style.opacity = "0", o.offsetWidth, o.style.transition = `opacity ${n}ms ease`,
197
+ o.style.opacity = "1", this.finishTransition(n, () => {
198
+ o.style.transition = "", o.style.opacity = "", i?.();
181
199
  }), this;
182
200
  }
183
201
  fadeOut(e, t) {
184
202
  const o = this.el;
185
- let i = 100, n = t;
186
- return "function" == typeof e ? n = e : i = e, o.style.transition = `opacity ${i}ms ease`,
187
- o.style.opacity = "0", this.finishTransition(i, () => {
188
- o.style.display = "none", o.style.transition = "", o.style.opacity = "", n?.();
203
+ let n = 100, i = t;
204
+ return "function" == typeof e ? i = e : n = e, o.style.transition = `opacity ${n}ms ease`,
205
+ o.style.opacity = "0", this.finishTransition(n, () => {
206
+ o.style.display = "none", o.style.transition = "", o.style.opacity = "", i?.();
189
207
  }), this;
190
208
  }
191
209
  animate(e, t, o) {
192
- const i = this.el;
193
- let n = 200, s = o;
194
- "function" == typeof t ? s = t : n = t;
195
- const p = Object.keys(e), r = {};
196
- for (const t of p) r[t] = c(t, e[t]);
197
- return i.style.transition = "none", i.offsetWidth, i.style.transition = `${p.join(", ")} ${n}ms ease`,
198
- Object.assign(i.style, r), this.finishTransition(n, () => {
199
- i.style.transition = "", s?.();
210
+ const n = this.el;
211
+ let i = 200, s = o;
212
+ "function" == typeof t ? s = t : i = t;
213
+ const r = Object.keys(e), p = {};
214
+ for (const t of r) p[t] = m(t, e[t]);
215
+ return n.style.transition = "none", n.offsetWidth, n.style.transition = `${r.join(", ")} ${i}ms ease`,
216
+ Object.assign(n.style, p), this.finishTransition(i, () => {
217
+ n.style.transition = "", s?.();
200
218
  }), this;
201
219
  }
202
220
  finishTransition(e, t) {
203
221
  const o = this.el;
204
- let i = !1;
205
- const n = () => {
206
- i || (i = !0, o.removeEventListener("transitionend", s), t());
222
+ let n = !1;
223
+ const i = () => {
224
+ n || (n = !0, o.removeEventListener("transitionend", s), t());
207
225
  }, s = e => {
208
- e.target === o && n();
226
+ e.target === o && i();
209
227
  };
210
- o.addEventListener("transitionend", s), window.setTimeout(n, e + 60);
228
+ o.addEventListener("transitionend", s), window.setTimeout(i, e + 60);
211
229
  }
212
230
  };
213
231
 
214
- function f(e, t) {
215
- const o = r(t).querySelector(e);
216
- return o ? new h(o) : null;
232
+ function g(e, t) {
233
+ const o = d(t).querySelector(e);
234
+ return o ? new _(o) : null;
217
235
  }
218
236
 
219
- function m(e, t) {
220
- return [ ...r(t).querySelectorAll(e) ].map(e => new h(e));
237
+ function v(e, t) {
238
+ return [ ...d(t).querySelectorAll(e) ].map(e => new _(e));
221
239
  }
222
240
 
223
- var b = e => {
241
+ var y = e => {
224
242
  const t = document.createElement("div");
225
243
  t.innerHTML = e.trim();
226
244
  const o = t.firstElementChild;
227
- return new h(o);
228
- }, g = {
245
+ return new _(o);
246
+ }, w = {
229
247
  on(e, t, o) {
230
- d(document, e, t, o);
248
+ f(document, e, t, o);
231
249
  },
232
250
  off(e, t) {
233
- u(document, e, t);
251
+ b(document, e, t);
234
252
  }
235
- }, _ = {
253
+ }, z = {
236
254
  on(e, t, o) {
237
- d(window, e, t, o);
255
+ f(window, e, t, o);
238
256
  },
239
257
  off(e, t) {
240
- u(window, e, t);
258
+ b(window, e, t);
241
259
  },
242
260
  height: () => window.innerHeight,
243
261
  width: () => window.innerWidth,
244
262
  scrollTop: () => window.scrollY || document.documentElement.scrollTop || 0,
245
263
  scrollLeft: () => window.scrollX || document.documentElement.scrollLeft || 0
246
- }, v = new Map, y = new Map, w = {
264
+ }, x = new Map, k = new WeakSet, $ = new Map, E = e => {
265
+ e ? Array.from(document.body.children).forEach(e => {
266
+ "popup" !== e.id && (e.setAttribute("aria-hidden", "true"), k.add(e));
267
+ }) : Array.from(document.body.children).forEach(e => {
268
+ k.has(e) && (e.removeAttribute("aria-hidden"), k.delete(e));
269
+ });
270
+ }, T = () => {
271
+ const e = x.get("__lastActive__");
272
+ e && "function" == typeof e.focus && e.focus(), x.delete("__lastActive__");
273
+ }, S = e => {
274
+ const t = $.get(e);
275
+ t && (t.el.removeEventListener("keydown", t.handler), $.delete(e));
276
+ }, C = E, L = () => {
277
+ const e = document.activeElement;
278
+ x.set("__lastActive__", e);
279
+ }, M = (e, t) => {
280
+ const o = e => {
281
+ const o = e;
282
+ if ("Tab" !== o.key) return;
283
+ const n = t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
284
+ if (0 === n.length) return;
285
+ const i = n[0], s = n[n.length - 1];
286
+ o.shiftKey ? document.activeElement === i && (e.preventDefault(), s.focus()) : document.activeElement === s && (e.preventDefault(),
287
+ i.focus());
288
+ };
289
+ $.set(e, {
290
+ el: t,
291
+ handler: o
292
+ }), t.addEventListener("keydown", o, !0);
293
+ }, A = e => {
294
+ S(e), T(), E(!1);
295
+ }, N = new Map, O = new Map, H = {
247
296
  "&": "&",
248
297
  "<": "&lt;",
249
298
  ">": "&gt;",
250
299
  '"': "&quot;",
251
300
  "'": "&#39;"
252
- }, z = e => e.replace(/[&<>"']/g, e => w[e]), x = e => {
301
+ }, P = e => e.replace(/[&<>"']/g, e => H[e]), I = e => {
253
302
  if (!e.source) return;
254
- const t = f(`.popup_body_${e.id}`), o = String(e.source);
255
- let i;
303
+ const t = g(`.popup_body_${e.id}`), o = String(e.source);
304
+ let n;
256
305
  try {
257
- i = new URL(o, window.location.origin);
306
+ n = new URL(o, window.location.origin);
258
307
  } catch {
259
308
  return;
260
309
  }
261
- if (i.origin !== window.location.origin) return;
262
- const n = new AbortController;
263
- v.set(String(e.id), n), fetch(o, {
310
+ if (n.origin !== window.location.origin) return;
311
+ const i = new AbortController;
312
+ N.set(String(e.id), i), fetch(o, {
264
313
  mode: "same-origin",
265
- signal: n.signal
314
+ signal: i.signal
266
315
  }).then(e => {
267
316
  if ((e.headers.get("content-type") || "").includes("text/html"), !e.ok) throw new Error(`HTTP error! status: ${e.status}`);
268
317
  return e.text();
269
318
  }).then(o => {
270
- if (!v.get(String(e.id)) || n.signal.aborted) return;
271
- const i = z(o);
272
- t?.hide().html(i).fadeIn(e.fadeIn);
319
+ N.get(String(e.id)) && !i.signal.aborted && t?.hide().html(o).fadeIn(e.fadeIn);
273
320
  }).catch(e => {
274
321
  e.name;
275
322
  });
276
- }, k = e => {
323
+ }, W = e => {
277
324
  if (e.body && !e.source) {
278
325
  const t = e.body;
279
326
  if ("object" == typeof t && null !== t && void 0 !== t.type && "object" == typeof t.props && null !== t.props) {
280
327
  const t = document.querySelector(".popup_body_" + e.id);
281
328
  if (!t) return;
282
329
  "function" == typeof layerpro.popup.useReactAdapter ? layerpro.popup.useReactAdapter(e, t) : import("layerpro/react").then(o => {
283
- const i = o.default;
284
- i && i(e, t);
330
+ const n = o.default;
331
+ n && n(e, t);
285
332
  }).catch(e => {});
286
333
  } else if ("string" == typeof e.body && e.body.trim().startsWith("<")) {
287
- const t = z(e.body);
288
- f(`.popup_body_${e.id}`)?.html(t).fadeIn(e.fadeIn);
334
+ const t = P(e.body);
335
+ g(`.popup_body_${e.id}`)?.html(t).fadeIn(e.fadeIn);
289
336
  } else {
290
- const t = z(String(e.body));
291
- f(`.popup_body_${e.id}`)?.text(t).fadeIn(e.fadeIn);
337
+ const t = P(String(e.body));
338
+ g(`.popup_body_${e.id}`)?.text(t).fadeIn(e.fadeIn);
292
339
  }
293
340
  }
294
- }, T = e => {
341
+ }, j = e => {
295
342
  if (e.buttons) {
296
- if (b('<div class="buttons"></div>').appendTo(`.popup_body_${e.id}`), e.buttons.confirm) {
297
- const t = z(e.buttons.confirm.text.toUpperCase()), o = b(`<button id="lp_confirm" type="button">\n ${t}\n </button>`).appendTo(".buttons");
343
+ if (y('<div class="buttons"></div>').appendTo(`.popup_body_${e.id}`), e.buttons.confirm) {
344
+ const t = P(e.buttons.confirm.text.toUpperCase()), o = y(`<button id="lp_confirm" type="button">\n ${t}\n </button>`).appendTo(`.popup_body_${e.id} .buttons`);
298
345
  e.buttons.confirm.cb && o.on("click", () => {
299
346
  e.buttons?.confirm?.cb?.(), layerpro.popup.close(e);
300
347
  });
301
348
  }
302
349
  if (e.buttons.cancel) {
303
- const t = z(e.buttons.cancel.text.toUpperCase());
304
- b(`<button id="lp_cancel" type="button">\n ${t}\n </button>`).appendTo(".buttons").on("click", () => {
350
+ const t = P(e.buttons.cancel.text.toUpperCase());
351
+ y(`<button id="lp_cancel" type="button">\n ${t}\n </button>`).appendTo(`.popup_body_${e.id} .buttons`).on("click", () => {
305
352
  e.buttons?.cancel?.cb?.(), layerpro.popup.close(e);
306
353
  });
307
354
  }
308
355
  }
309
- }, $ = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches, E = () => {
356
+ }, R = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches, D = () => {
310
357
  if (!0 === window.__FORCE_TOUCH_MODE__) return "touch";
311
358
  const e = (() => {
312
359
  if ("undefined" == typeof navigator) return !1;
313
360
  const e = navigator.userAgent;
314
361
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e);
315
- })() || $();
362
+ })() || R();
316
363
  return ("ontouchstart" in window || navigator.maxTouchPoints > 0) && e ? "touch" : "mouse";
317
- }, C = E(), L = !$(), S = null;
364
+ }, q = D(), B = !R(), X = null;
318
365
 
319
366
  if ("undefined" != typeof window) {
320
367
  const e = window.matchMedia("(max-width: 1024px)"), t = () => {
321
- const e = E(), t = C, o = !$();
322
- C = e, L !== o && (L = o, S && S(e, t));
368
+ const e = D(), t = q, o = !R();
369
+ q = e, B !== o && (B = o, X && X(e, t));
323
370
  };
324
371
  let o;
325
372
  e.addListener ? e.addListener(t) : e.addEventListener("change", t), window.addEventListener("resize", () => {
@@ -327,37 +374,42 @@ if ("undefined" != typeof window) {
327
374
  });
328
375
  }
329
376
 
330
- var M = e => {
377
+ var Y = e => {
331
378
  const t = e;
332
379
  return void 0 !== t.clientX ? t.clientX : t.touches && t.touches.length > 0 ? t.touches[0].clientX : 0;
333
- }, O = e => {
380
+ }, K = e => {
334
381
  const t = e;
335
382
  return void 0 !== t.clientY ? t.clientY : t.touches && t.touches.length > 0 ? t.touches[0].clientY : 0;
336
- }, N = 250, A = 150, H = !1, I = 1e3, P = !1, j = 0, W = new Map, R = new Map, B = null, D = () => f("body"), X = e => "object" == typeof e && null !== e ? e.id : e, Y = {
383
+ }, F = 250, U = 150, Z = !1, G = 1e3, V = !1, J = 0, Q = new Map, ee = new Map, te = new Map, oe = new Map, ne = null, ie = () => g("body"), se = e => "object" == typeof e && null !== e ? e.id : e, re = {
337
384
  open: e => {
338
- if (!e) return e;
339
- e.id = e.id ?? "popup_" + ++j, e.body = e.body ?? "", e.class = e.class ?? "", e.width = e.width ?? 340,
385
+ if (!e) return Promise.reject(new Error("LayerPro: open() requires a props object"));
386
+ e.id = e.id ?? "popup_" + ++J, e.body = e.body ?? "", e.class = e.class ?? "", e.width = e.width ?? 340,
340
387
  e.height = e.height ?? 220, e.minWidth = e.minWidth ?? 340, e.minHeight = e.minHeight ?? 220,
341
388
  e.name = e.name ?? "popUp_" + e.id, e.source = e.source ?? null, e.icon = e.icon ?? null,
342
389
  e.iconize = e.iconize ?? null, e.maximize = e.maximize ?? null, e.isMaximize = e.isMaximize ?? null,
343
- e.dockable = e.dockable ?? null, e.close = e.close ?? null, e.raised = e.raised || e.modal || null,
390
+ e.dockable = e.dockable ?? null, e.close = e.close ?? null, e.modal = e.modal ?? null,
344
391
  e.movable = e.movable ?? null, e.resizable = e.resizable ?? null, e.store = e.store ?? !1,
345
392
  e.top = e.top ?? "auto", e.left = e.left ?? "auto", e.right = e.right ?? "auto",
346
393
  e.bottom = e.bottom ?? "auto", e.fadeIn = e.fadeIn ?? 100, e.fadeOut = e.fadeOut ?? 100,
347
- N = e.minWidth, A = e.minHeight, e.width < e.minWidth && (e.width, e.width = e.minWidth),
394
+ F = e.minWidth, U = e.minHeight, e.width < e.minWidth && (e.width, e.width = e.minWidth),
348
395
  e.height < e.minHeight && (e.height, e.height = e.minHeight), "auto" === e.width && (e.width = "100%"),
349
- "auto" === e.height && (e.height = "100%"), f("#popup") || b('<div id="popup">').appendTo("body").css({
396
+ "auto" === e.height && (e.height = "100%"), g("#popup") || y('<div id="popup">').appendTo("body").css({
350
397
  "pointer-events": "none",
351
- "z-index": Y.zIndex() + 1
398
+ "z-index": re.zIndex() + 1
399
+ });
400
+ const t = String(e.id);
401
+ oe.delete(t);
402
+ const o = new Promise(e => {
403
+ oe.set(t, e);
352
404
  });
353
- return f(".popup_window_" + e.id, "#popup") ? (Y.index(e), k(e), T(e)) : (e => {
405
+ return g(".popup_window_" + e.id, "#popup") ? (re.index(e), W(e), j(e)) : (e => {
354
406
  if ("function" == typeof e.body) return;
355
- const t = !0 === e.raised ? ".popup_raised_" + e.id : "#popup";
356
- m('[class^="popup_window_"]', t).forEach(e => e.removeClass("zHigh")), m('[class^="popup_bar_"]', t).forEach(e => e.removeClass("popup_bar_selected")),
357
- m('[class^="icon_"]', t).forEach(e => e.removeClass("popup_bar_selected")), !0 === e.raised && b(`<div class="popup_raised_${e.id} popup_raised">`).appendTo("#popup").css({
407
+ const t = !0 === e.modal ? ".popup_modal_" + e.id : "#popup";
408
+ v('[class^="popup_window_"]', t).forEach(e => e.removeClass("zHigh")), v('[class^="popup_bar_"]', t).forEach(e => e.removeClass("popup_bar_selected")),
409
+ v('[class^="icon_"]', t).forEach(e => e.removeClass("popup_bar_selected")), !0 === e.modal && y(`<div class="popup_modal_${e.id} popup_modal">`).appendTo("#popup").css({
358
410
  "pointer-events": "auto",
359
411
  "z-index": layerpro.popup.zIndex() + 1e3
360
- }), b(`<div class="popup_overflow_${e.id} popup_overflow">`).appendTo(t).css({
412
+ }), y(`<div class="popup_overflow_${e.id} popup_overflow">`).appendTo(t).css({
361
413
  top: e.top,
362
414
  left: e.left,
363
415
  right: e.right,
@@ -373,11 +425,15 @@ var M = e => {
373
425
  }).on("pointerdown", () => {
374
426
  layerpro.popup.index(e);
375
427
  }).hide().fadeIn(e.fadeIn);
376
- const o = b(`<div class="popup_window_${e.id} popup_window">`).appendTo(`.popup_overflow_${e.id}`).css({
428
+ const o = y(`<div class="popup_window_${e.id} popup_window">`).appendTo(`.popup_overflow_${e.id}`).css({
377
429
  "pointer-events": "auto"
378
- }).addClass("zHigh").addClass(e.class), i = [ e.top, e.left, e.bottom, e.right ].reduce((e, t) => "number" == typeof t && isFinite(t) ? Number(e) + t : e, 0);
379
- if (!0 === e.center || 0 === i) {
380
- const t = m('[class^="popup_overflow_"]', "#popup").length, o = 20 * Math.max(0, t - 1);
430
+ }).addClass("zHigh").addClass(e.class);
431
+ o.attr("role", "dialog"), o.attr("tabindex", "-1"), o.attr("aria-modal", !0 === e.modal ? "true" : "false"),
432
+ e.name && o.attr("aria-label", String(e.name)), C(!0), L(), M(String(e.id), o.el),
433
+ "function" == typeof requestAnimationFrame ? requestAnimationFrame(() => o.el.focus()) : o.el.focus();
434
+ const n = [ e.top, e.left, e.bottom, e.right ].reduce((e, t) => "number" == typeof t && isFinite(t) ? Number(e) + t : e, 0);
435
+ if (!0 === e.center || 0 === n) {
436
+ const t = v('[class^="popup_overflow_"]', "#popup").length, o = 20 * Math.max(0, t - 1);
381
437
  layerpro.popup.center(e, o);
382
438
  }
383
439
  layerpro.popup.unmount = e => {
@@ -386,59 +442,63 @@ var M = e => {
386
442
  o.unmount && o.unmount(String(e));
387
443
  }).catch(() => {});
388
444
  }, layerpro.popup.cleanupEvents = e => {
389
- const t = y.get(e);
390
- t && (t.iconClick && f(`.icon_${e}`, "#popup_dock")?.off("click"), t.iconClose && f(`.icon_close_${e}`, "#popup_dock")?.off("click"),
391
- t.buttonIconize && f(`.button_iconize_${e}`)?.off("click"), t.buttonMaximize && f(`.button_maximize_${e}`)?.off("click"),
392
- t.buttonClose && f(`.button_close_${e}`)?.off("click"), t.escKey && g.off("keydown", {
445
+ const t = O.get(e);
446
+ t && (t.iconClick && g(`.icon_${e}`, "#popup_dock")?.off("click"), t.iconClose && g(`.icon_close_${e}`, "#popup_dock")?.off("click"),
447
+ t.buttonIconize && g(`.button_iconize_${e}`)?.off("click"), t.buttonMaximize && g(`.button_maximize_${e}`)?.off("click"),
448
+ t.buttonClose && g(`.button_close_${e}`)?.off("click"), t.escKey && w.off("keydown", {
393
449
  ns: `esc-${e}`
394
- }), y.delete(e));
450
+ }), O.delete(e));
395
451
  }, layerpro.popup.abortSource = e => {
396
- const t = v.get(e);
397
- t && (t.abort(), v.delete(e));
398
- }, b(`<div class="popup_bar_${e.id} popup_bar">`).appendTo(o).addClass("popup_bar_selected"),
399
- e.icon && b(`<div class="popup_icon_${e.id} popup_icon">${e.icon}</div>`).appendTo(`.popup_bar_${e.id}`);
400
- const n = z(String(e.name));
401
- b(`<div class="popup_drag_${e.id} popup_drag">${n}</div>`).appendTo(`.popup_bar_${e.id}`),
402
- b(`<div class="popup_option_${e.id} popup_option">`).appendTo(`.popup_bar_${e.id}`),
403
- !0 !== e.iconize || f("#popup_dock") || (f("#root")?.css("margin", "0 0 var( --dock-height ) 0"),
404
- b('\n <div id="popup_dock">\n <div id="popup_dock_icon"></div>\n <div id="popup_dock_list"></div>\n <div id="popup_dock_options"></div>\n </div>\n ').appendTo("#popup").css({
452
+ const t = N.get(e);
453
+ t && (t.abort(), N.delete(e));
454
+ }, layerpro.popup.destroy = e => {
455
+ layerpro.popup.abortSource(e), layerpro.popup.cleanupEvents(e), C(!1);
456
+ const t = document.querySelector(`.popup_window_${e}`);
457
+ t && t.remove();
458
+ }, y(`<div class="popup_bar_${e.id} popup_bar">`).appendTo(o).addClass("popup_bar_selected"),
459
+ e.icon && y(`<div class="popup_icon_${e.id} popup_icon">${e.icon}</div>`).appendTo(`.popup_bar_${e.id}`);
460
+ const i = P(String(e.name));
461
+ y(`<div class="popup_drag_${e.id} popup_drag">${i}</div>`).appendTo(`.popup_bar_${e.id}`),
462
+ y(`<div class="popup_option_${e.id} popup_option">`).appendTo(`.popup_bar_${e.id}`),
463
+ !0 !== e.iconize || g("#popup_dock") || (g("#root")?.css("margin", "0 0 var( --dock-height ) 0"),
464
+ y('\n <div id="popup_dock">\n <div id="popup_dock_icon"></div>\n <div id="popup_dock_list"></div>\n <div id="popup_dock_options"></div>\n </div>\n ').appendTo("#popup").css({
405
465
  pointerEvents: "auto",
406
466
  zIndex: layerpro.popup.zIndex() + 1e3
407
467
  }));
408
- if (f("#popup_dock") && !0 === e.dockable) {
409
- const t = String(e.id), o = `\n <div class="icon_${e.id}">\n <span>${e.icon ? e.icon : ""}</span>\n <span>${n}</span>\n </div>\n `, i = () => {
410
- const t = f(".popup_overflow_" + e.id, "#popup");
468
+ if (g("#popup_dock") && !0 === e.dockable) {
469
+ const t = String(e.id), o = `\n <div class="icon_${e.id}">\n <span>${e.icon ? e.icon : ""}</span>\n <span>${i}</span>\n </div>\n `, n = () => {
470
+ const t = g(".popup_overflow_" + e.id, "#popup");
411
471
  t && t.data("iconize") ? (layerpro.popup.index(e), layerpro.popup.iconize(e)) : layerpro.popup.iconize(e),
412
472
  layerpro.popup.index(e);
413
473
  }, s = t => {
414
474
  t?.stopPropagation(), e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
415
475
  };
416
- y.set(t, {
476
+ O.set(t, {
417
477
  iconClick: !0,
418
478
  iconClose: !0
419
- }), b(o).appendTo("#popup_dock_list").addClass("popup_bar_selected").on("click", i),
420
- b(`<button class="icon_close_${e.id}">X</button>`).appendTo(`.icon_${e.id}`).on("click", s);
479
+ }), y(o).appendTo("#popup_dock_list").addClass("popup_bar_selected").on("click", n),
480
+ y(`<button class="icon_close_${e.id}">X</button>`).appendTo(`.icon_${e.id}`).on("click", s);
421
481
  }
422
482
  if (!0 === e.iconize) {
423
483
  const t = String(e.id), o = () => {
424
484
  layerpro.popup.iconize(e);
425
- }, i = y.get(t) || {};
426
- i.buttonIconize = !0, y.set(t, i), b(`<button class="button_iconize_${e.id} iconize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
485
+ }, n = O.get(t) || {};
486
+ n.buttonIconize = !0, O.set(t, n), y(`<button class="button_iconize_${e.id} iconize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
427
487
  }
428
488
  if (!0 === e.maximize) {
429
489
  const t = String(e.id), o = () => {
430
490
  layerpro.popup.maximize(e);
431
- }, i = y.get(t) || {};
432
- i.buttonMaximize = !0, y.set(t, i), b(`<button class="button_maximize_${e.id} maximize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
491
+ }, n = O.get(t) || {};
492
+ n.buttonMaximize = !0, O.set(t, n), y(`<button class="button_maximize_${e.id} maximize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
433
493
  }
434
494
  if (!0 === e.close) {
435
495
  const t = String(e.id), o = () => {
436
496
  e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
437
- }, i = y.get(t) || {};
438
- i.buttonClose = !0, y.set(t, i), b(`<button class="button_close_${e.id} close">`).appendTo(`.popup_option_${e.id}`).on("click", o);
497
+ }, n = O.get(t) || {};
498
+ n.buttonClose = !0, O.set(t, n), y(`<button class="button_close_${e.id} close">`).appendTo(`.popup_option_${e.id}`).on("click", o);
439
499
  }
440
- const s = String(e.id), p = y.get(s) || {};
441
- if (p.escKey = !0, y.set(s, p), g.on("keydown", t => {
500
+ const s = String(e.id), r = O.get(s) || {};
501
+ if (r.escKey = !0, O.set(s, r), w.on("keydown", t => {
442
502
  const o = t;
443
503
  "Escape" !== o.key && 27 !== o.keyCode || (e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(),
444
504
  layerpro.popup.close(e));
@@ -451,74 +511,75 @@ var M = e => {
451
511
  }, e.timer);
452
512
  }
453
513
  e.movable && layerpro.popup.movable(e), e.resizable && layerpro.popup.resizable(e),
454
- e.isMaximize && layerpro.popup.maximize(e), b(`<div class="popup_internal_${e.id} popup_internal">`).appendTo(o),
455
- b(`<div class="popup_body_${e.id} popup_body">`).appendTo(`.popup_internal_${e.id}`).hide().fadeIn(e.fadeIn, () => {
456
- x(e), k(e), T(e);
514
+ e.isMaximize && layerpro.popup.maximize(e), y(`<div class="popup_internal_${e.id} popup_internal">`).appendTo(o),
515
+ y(`<div class="popup_body_${e.id} popup_body">`).appendTo(`.popup_internal_${e.id}`).hide().fadeIn(e.fadeIn, () => {
516
+ I(e), W(e), j(e);
457
517
  });
458
- })(e), e;
518
+ })(e), o;
459
519
  },
460
- dispatch: e => {
461
- Y.store(e);
520
+ store: e => {
521
+ null != e && te.set(String(Date.now()), e);
462
522
  },
463
- store: e => {},
464
523
  show: e => {
465
- const t = e instanceof h ? e : "string" == typeof e ? f(e) : null;
524
+ const t = e instanceof _ ? e : "string" == typeof e ? g(e) : null;
466
525
  t?.toggle();
467
526
  },
468
527
  vfx: (e, t, o = !1) => {
469
528
  setTimeout(() => {
470
- m('[class^="popup_overflow_"]', "#popup").forEach(e => {
529
+ v('[class^="popup_overflow_"]', "#popup").forEach(e => {
471
530
  e.css("opacity", !0 === t ? 1 : .5), e.find('[class^="popup_body_"]')?.css({
472
531
  "content-visibility": !0 === t ? "auto" : "hidden"
473
532
  });
474
533
  });
475
- const i = e instanceof h ? e : "string" == typeof e ? f(e) : null;
476
- i?.css("opacity", 1), !o && i && m('[class^="popup_body_"]', i.el).forEach(e => e.css("content-visibility", "visible"));
534
+ const n = e instanceof _ ? e : "string" == typeof e ? g(e) : null;
535
+ n?.css("opacity", 1), !o && n && v('[class^="popup_body_"]', n.el).forEach(e => e.css("content-visibility", "visible"));
477
536
  }, 1), dispatchEvent(new Event("layerProResize"));
478
537
  },
479
538
  center: (e, t = 0) => {
480
- const o = f(".popup_overflow_" + X(e), "#popup");
481
- o && (o.css("top", Math.max(0, (_.height() - o.outerHeight()) / 2 + _.scrollTop() + t)),
482
- o.css("left", Math.max(0, (_.width() - o.outerWidth()) / 2 + _.scrollLeft() + t)));
539
+ const o = g(".popup_overflow_" + se(e), "#popup");
540
+ o && (o.css("top", Math.max(0, (z.height() - o.outerHeight()) / 2 + z.scrollTop() + t)),
541
+ o.css("left", Math.max(0, (z.width() - o.outerWidth()) / 2 + z.scrollLeft() + t)));
483
542
  },
484
- checkArea: e => [ M(e), O(e), _.scrollLeft(), _.scrollTop(), _.height(), _.width() ],
543
+ checkArea: e => [ Y(e), K(e), z.scrollLeft(), z.scrollTop(), z.height(), z.width() ],
485
544
  close: e => {
486
545
  let t;
487
546
  if (e) {
488
- t = X(e);
547
+ t = se(e);
489
548
  const o = "object" == typeof e && null !== e ? e : void 0;
490
549
  layerpro.popup.unmount && layerpro.popup.unmount(String(t)), layerpro.popup.abortSource && layerpro.popup.abortSource(String(t)),
491
- layerpro.popup.cleanupEvents && layerpro.popup.cleanupEvents(String(t));
492
- const i = W.get(String(t));
550
+ layerpro.popup.cleanupEvents && layerpro.popup.cleanupEvents(String(t)), A(String(t));
551
+ const n = oe.get(String(t));
552
+ n && (n(o ?? {}), oe.delete(String(t)));
553
+ const i = Q.get(String(t));
493
554
  if (i) {
494
555
  const e = {
495
556
  passive: !1
496
557
  };
497
558
  i.move && document.removeEventListener("pointermove", i.move, e), i.up && document.removeEventListener("pointerup", i.up, e),
498
- W.delete(String(t));
559
+ Q.delete(String(t));
499
560
  }
500
- const n = R.get(String(t));
501
- if (n) {
561
+ const s = ee.get(String(t));
562
+ if (s) {
502
563
  const e = {
503
564
  passive: !1
504
565
  };
505
- n.move && document.removeEventListener("pointermove", n.move, e), n.up && document.removeEventListener("pointerup", n.up, e),
506
- R.delete(String(t));
566
+ s.move && document.removeEventListener("pointermove", s.move, e), s.up && document.removeEventListener("pointerup", s.up, e),
567
+ ee.delete(String(t));
507
568
  }
508
- (o ? !0 === o.raised : !!f(".popup_raised_" + t)) ? f(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => f(".popup_raised_" + t)?.remove()) : f(".popup_overflow_" + t)?.fadeOut(o?.fadeOut || 500, () => {
509
- f(".popup_overflow_" + t)?.remove(), f(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => f(".popup_raised_" + t)?.remove());
569
+ (o ? !0 === o.modal : !!g(".popup_modal_" + t)) ? g(".popup_modal_" + t)?.fadeOut(o?.fadeOut || 500, () => g(".popup_modal_" + t)?.remove()) : g(".popup_overflow_" + t)?.fadeOut(o?.fadeOut || 500, () => {
570
+ g(".popup_overflow_" + t)?.remove(), g(".popup_modal_" + t)?.fadeOut(o?.fadeOut || 500, () => g(".popup_modal_" + t)?.remove());
510
571
  });
511
- } else f("#popup")?.fadeOut(() => f("#popup")?.remove());
512
- setTimeout(() => Y.removeDock(e), 300);
572
+ } else g("#popup")?.fadeOut(() => g("#popup")?.remove());
573
+ setTimeout(() => re.removeDock(e), 300);
513
574
  },
514
575
  removeDock: e => {
515
- const t = X(e);
516
- f(".icon_" + t)?.remove(), m('[class^="popup_overflow_"]', "#popup").length < 1 && (f("#root")?.css("margin", "0"),
517
- f("#popup_dock")?.remove());
576
+ const t = se(e);
577
+ g(".icon_" + t)?.remove(), v('[class^="popup_overflow_"]', "#popup").length < 1 && (g("#root")?.css("margin", "0"),
578
+ g("#popup_dock")?.remove());
518
579
  },
519
580
  iconize: e => {
520
- const t = X(e), o = f(".popup_overflow_" + t, "#popup");
521
- if (o && !1 !== o.find("[class^=popup_window_]")?.hasClass("zHigh")) if (Y.vfx(o, !1, !0),
581
+ const t = se(e), o = g(".popup_overflow_" + t, "#popup");
582
+ if (o && !1 !== o.find("[class^=popup_window_]")?.hasClass("zHigh")) if (re.vfx(o, !1, !0),
522
583
  o.data("iconize")) {
523
584
  if (o.data("iconize")) {
524
585
  const e = o.data("iconize");
@@ -528,10 +589,10 @@ var M = e => {
528
589
  width: e.w,
529
590
  height: e.h,
530
591
  opacity: 1
531
- }), Y.vfx(o, !0), o.removeData("iconize");
592
+ }), re.vfx(o, !0), o.removeData("iconize");
532
593
  }
533
594
  } else {
534
- const e = f(".icon_" + t, "#popup_dock")?.el.offsetLeft ?? 0;
595
+ const e = g(".icon_" + t, "#popup_dock")?.el.offsetLeft ?? 0;
535
596
  o.data("iconize", {
536
597
  y: o.el.offsetTop,
537
598
  x: o.el.offsetLeft,
@@ -543,25 +604,25 @@ var M = e => {
543
604
  width: 0,
544
605
  height: 0,
545
606
  opacity: 0
546
- }), Y.vfx(o, !0);
607
+ }), re.vfx(o, !0);
547
608
  }
548
609
  },
549
610
  maximize: e => {
550
- const t = f(".popup_overflow_" + X(e), "#popup"), o = t ? f('[class^="resize_"]', t.el) : null;
551
- if (Y.vfx(t, !1, !0), t?.data("store")) {
611
+ const t = g(".popup_overflow_" + se(e), "#popup"), o = t ? g('[class^="resize_"]', t.el) : null;
612
+ if (re.vfx(t, !1, !0), t?.data("store")) {
552
613
  if (t?.data("store")) {
553
- const i = t.data("store");
614
+ const n = t.data("store");
554
615
  t.css({
555
616
  position: "absolute",
556
- top: i.y,
557
- left: i.x,
617
+ top: n.y,
618
+ left: n.x,
558
619
  right: "auto",
559
620
  bottom: "auto",
560
- width: i.w,
561
- height: i.h
621
+ width: n.w,
622
+ height: n.h
562
623
  }), o?.on("pointerdown", function(t) {
563
- Y.resizeModals(t, this, e);
564
- }), Y.vfx(t, !0), t.removeData("store");
624
+ re.resizeModals(t, this, e);
625
+ }), re.vfx(t, !0), t.removeData("store");
565
626
  }
566
627
  } else t.data("store", {
567
628
  y: t.el.offsetTop,
@@ -576,39 +637,39 @@ var M = e => {
576
637
  bottom: 39,
577
638
  width: "auto",
578
639
  height: "auto"
579
- }), o?.off("pointerdown"), Y.vfx(t, !0, !0);
640
+ }), o?.off("pointerdown"), re.vfx(t, !0, !0);
580
641
  },
581
642
  movable: e => {
582
643
  if (!1 === e.movable) return;
583
- const t = X(e), o = String(t), i = f(".popup_overflow_" + t, "#popup"), n = i ? f(".popup_drag_" + t, i.el) : null, s = i ? f(".popup_body_" + t, i.el) : null;
584
- i?.css("touch-action", "none");
585
- let p = 0, r = 0, a = 0, l = 0;
644
+ const t = se(e), o = String(t), n = g(".popup_overflow_" + t, "#popup"), i = n ? g(".popup_drag_" + t, n.el) : null, s = n ? g(".popup_body_" + t, n.el) : null;
645
+ n?.css("touch-action", "none");
646
+ let r = 0, p = 0, a = 0, l = 0;
586
647
  const c = e => {
587
648
  e.preventDefault();
588
- const t = M(e), o = O(e);
589
- p = a - t, r = l - o, a = t, l = o, Y.checkArea(e)[1] < Y.checkArea(e)[4] && 1 === Math.sign(Y.checkArea(e)[1]) && i?.css("top", i.el.offsetTop - r),
590
- Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && i?.css("left", i.el.offsetLeft - p);
649
+ const t = Y(e), o = K(e);
650
+ r = a - t, p = l - o, a = t, l = o, re.checkArea(e)[1] < re.checkArea(e)[4] && 1 === Math.sign(re.checkArea(e)[1]) && n?.css("top", n.el.offsetTop - p),
651
+ re.checkArea(e)[0] < re.checkArea(e)[5] && 1 === Math.sign(re.checkArea(e)[0]) && n?.css("left", n.el.offsetLeft - r);
591
652
  }, d = () => {
592
653
  const e = {
593
654
  passive: !1
594
655
  };
595
656
  document.removeEventListener("pointermove", c, e), document.removeEventListener("pointerup", d, e),
596
- W.delete(o), s?.css("pointer-events", "auto"), Y.vfx(i, !0);
657
+ Q.delete(o), s?.css("pointer-events", "auto"), re.vfx(n, !0);
597
658
  };
598
- W.set(o, {
659
+ Q.set(o, {
599
660
  move: c,
600
661
  up: d
601
662
  });
602
- n?.el.addEventListener("pointerdown", e => {
603
- "fixed" !== i?.el.style.position && (e.preventDefault(), s?.css("pointer-events", "none"),
604
- u(e), Y.vfx(i, !1));
663
+ i?.el.addEventListener("pointerdown", e => {
664
+ "fixed" !== n?.el.style.position && (e.preventDefault(), s?.css("pointer-events", "none"),
665
+ u(e), re.vfx(n, !1));
605
666
  }, {
606
667
  passive: !1
607
- }), e.maximize && n?.on("dblclick", () => {
668
+ }), e.maximize && i?.on("dblclick", () => {
608
669
  layerpro.popup.maximize(e);
609
670
  });
610
671
  const u = e => {
611
- a = M(e), l = O(e);
672
+ a = Y(e), l = K(e);
612
673
  const t = {
613
674
  passive: !1
614
675
  };
@@ -617,186 +678,176 @@ var M = e => {
617
678
  },
618
679
  resizable: e => {
619
680
  if (!e.resizable) return;
620
- const t = X(e), o = String(t), i = f(".popup_overflow_" + t, "#popup");
621
- for (let e = 4; e--; ) b(`<div class='resize_${e}'>`).appendTo(i?.el).css("touch-action", "none"),
622
- b(`<div class='resize_corner_${e}'>`).appendTo(i?.el).css("touch-action", "none");
623
- const n = R.get(o) || {};
624
- n.down = function(t) {
625
- Y.resizeModals(t, this, e);
626
- }, R.set(o, n);
681
+ const t = se(e), o = String(t), n = g(".popup_overflow_" + t, "#popup");
682
+ for (let e = 4; e--; ) y(`<div class='resize_${e}'>`).appendTo(n?.el).css("touch-action", "none"),
683
+ y(`<div class='resize_corner_${e}'>`).appendTo(n?.el).css("touch-action", "none");
684
+ const i = ee.get(o) || {};
685
+ i.down = function(t) {
686
+ re.resizeModals(t, this, e);
687
+ }, ee.set(o, i);
627
688
  const s = {
628
689
  passive: !1
629
690
  };
630
- m("[class^=resize_]").forEach(t => {
691
+ v("[class^=resize_]").forEach(t => {
631
692
  t.el.addEventListener("pointerdown", o => {
632
- o.preventDefault(), Y.resizeModals(o, t.el, e);
693
+ o.preventDefault(), re.resizeModals(o, t.el, e);
633
694
  }, s);
634
695
  });
635
696
  },
636
697
  resizeModals: (e, t, o) => {
637
- const i = t instanceof HTMLElement ? new h(t) : f(t), n = i?.parent(), s = String(o.id);
638
- n?.el.style.setProperty("transition", "none");
639
- const p = M(e), r = O(e), a = [ p - _.scrollLeft(), r - _.scrollTop() ];
640
- o.minWidth, D()?.css("pointer-events", "none"), n?.css("pointer-events", "none"),
641
- Y.vfx(n, !1);
698
+ const n = t instanceof HTMLElement ? new _(t) : g(t), i = n?.parent(), s = String(o.id);
699
+ i?.el.style.setProperty("transition", "none");
700
+ const r = Y(e), p = K(e), a = [ r - z.scrollLeft(), p - z.scrollTop() ];
701
+ o.minWidth, ie()?.css("pointer-events", "none"), i?.css("pointer-events", "none"),
702
+ re.vfx(i, !1);
642
703
  const l = e => {
643
- Y.doRes(e, t);
704
+ re.doRes(e, t);
644
705
  }, c = () => {
645
- Y.stopRes(t, s);
646
- }, d = R.get(s) || {};
647
- d.move = l, d.up = c, R.set(s, d);
706
+ re.stopRes(t, s);
707
+ }, d = ee.get(s) || {};
708
+ d.move = l, d.up = c, ee.set(s, d);
648
709
  const u = {
649
710
  passive: !1
650
711
  };
651
712
  document.addEventListener("pointermove", l, u), document.addEventListener("pointerup", c, u);
652
- const m = n?.position().left ?? 0, b = n?.position().top ?? 0, g = n?.width() ?? 0, v = n?.height() ?? 0;
653
- B = {
713
+ const h = i?.position().left ?? 0, m = i?.position().top ?? 0, f = i?.width() ?? 0, b = i?.height() ?? 0;
714
+ ne = {
654
715
  id: String(o.id),
655
716
  startX: a[0],
656
717
  startY: a[1],
657
- startWidth: g,
658
- startHeight: v,
659
- startLeft: m,
660
- startTop: b,
661
- startBottom: b + v + 1,
662
- startRight: m + g + 1
663
- }, H = t;
718
+ startWidth: f,
719
+ startHeight: b,
720
+ startLeft: h,
721
+ startTop: m,
722
+ startBottom: m + b + 1,
723
+ startRight: h + f + 1
724
+ }, Z = t;
664
725
  },
665
726
  doRes: (e, t) => {
666
727
  dispatchEvent(new Event("layerProResize"));
667
- const o = t instanceof HTMLElement ? new h(t) : f(t), i = o?.parent(), n = M(e), s = O(e), p = [ n - _.scrollLeft(), s - _.scrollTop() ];
668
- if (t === H && B) {
669
- const t = B;
670
- let n = t.startWidth + p[0] - t.startX, s = t.startHeight + p[1] - t.startY;
671
- const r = t.startWidth - p[0] + t.startX, a = t.startHeight - p[1] + t.startY;
672
- n <= 0 && (n = 0), s <= 0 && (s = 0), Y.checkArea(e)[1] < Y.checkArea(e)[4] && 1 === Math.sign(Y.checkArea(e)[1]) && o?.hasClass("resize_0") && (i && i.height() <= A && a > A && i.css({
673
- height: Number(A + 1)
674
- }), i && i.height() > A && A <= a && i.css({
728
+ const o = t instanceof HTMLElement ? new _(t) : g(t), n = o?.parent(), i = Y(e), s = K(e), r = [ i - z.scrollLeft(), s - z.scrollTop() ];
729
+ if (t === Z && ne) {
730
+ const t = ne;
731
+ let i = t.startWidth + r[0] - t.startX, s = t.startHeight + r[1] - t.startY;
732
+ const p = t.startWidth - r[0] + t.startX, a = t.startHeight - r[1] + t.startY;
733
+ i <= 0 && (i = 0), s <= 0 && (s = 0), re.checkArea(e)[1] < re.checkArea(e)[4] && 1 === Math.sign(re.checkArea(e)[1]) && o?.hasClass("resize_0") && (n && n.height() <= U && a > U && n.css({
734
+ height: Number(U + 1)
735
+ }), n && n.height() > U && U <= a && n.css({
675
736
  top: Number(t.startBottom - a),
676
737
  height: parseInt(String(a))
677
- })), Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && o?.hasClass("resize_1") && (i && i.width() >= N && i.css({
678
- width: Number(n),
679
- right: Number(t.startLeft - n)
680
- }), i && i.width() <= N && i.css({
681
- width: Number(N + 1)
682
- })), Y.checkArea(e)[1] < Y.checkArea(e)[4] && 1 === Math.sign(Y.checkArea(e)[1]) && o?.hasClass("resize_2") && (i && i.height() >= A && i.css({
738
+ })), re.checkArea(e)[0] < re.checkArea(e)[5] && 1 === Math.sign(re.checkArea(e)[0]) && o?.hasClass("resize_1") && (n && n.width() >= F && n.css({
739
+ width: Number(i),
740
+ right: Number(t.startLeft - i)
741
+ }), n && n.width() <= F && n.css({
742
+ width: Number(F + 1)
743
+ })), re.checkArea(e)[1] < re.checkArea(e)[4] && 1 === Math.sign(re.checkArea(e)[1]) && o?.hasClass("resize_2") && (n && n.height() >= U && n.css({
683
744
  height: Number(s)
684
- }), i && i.height() <= A && s > A && i.css({
685
- height: Number(A + 1)
686
- })), Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && o?.hasClass("resize_3") && (i && i.width() <= N && r > N && i.css({
687
- width: Number(N + 1)
688
- }), i && i.width() > N && N <= r && i.css({
689
- width: parseInt(String(r)),
690
- left: Number(t.startRight - r)
691
- })), Y.checkArea(e)[1] < Y.checkArea(e)[4] && Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && 1 === Math.sign(Y.checkArea(e)[1]) && (o?.hasClass("resize_corner_0") && (i && i.height() >= A && a > A && i.css({
745
+ }), n && n.height() <= U && s > U && n.css({
746
+ height: Number(U + 1)
747
+ })), re.checkArea(e)[0] < re.checkArea(e)[5] && 1 === Math.sign(re.checkArea(e)[0]) && o?.hasClass("resize_3") && (n && n.width() <= F && p > F && n.css({
748
+ width: Number(F + 1)
749
+ }), n && n.width() > F && F <= p && n.css({
750
+ width: parseInt(String(p)),
751
+ left: Number(t.startRight - p)
752
+ })), re.checkArea(e)[1] < re.checkArea(e)[4] && re.checkArea(e)[0] < re.checkArea(e)[5] && 1 === Math.sign(re.checkArea(e)[0]) && 1 === Math.sign(re.checkArea(e)[1]) && (o?.hasClass("resize_corner_0") && (n && n.height() >= U && a > U && n.css({
692
753
  top: Number(t.startBottom - a),
693
754
  height: parseInt(String(a))
694
- }), i && i.height() <= A && a > A && i.css({
695
- height: Number(A + 1)
696
- }), i && i.width() >= N && r > N && i.css({
697
- width: parseInt(String(r)),
698
- left: Number(t.startRight - r)
699
- }), i && i.width() <= N && r > N && i.css({
700
- width: Number(N + 1)
701
- })), o?.hasClass("resize_corner_1") && (i && i.height() >= A && a > A && i.css({
755
+ }), n && n.height() <= U && a > U && n.css({
756
+ height: Number(U + 1)
757
+ }), n && n.width() >= F && p > F && n.css({
758
+ width: parseInt(String(p)),
759
+ left: Number(t.startRight - p)
760
+ }), n && n.width() <= F && p > F && n.css({
761
+ width: Number(F + 1)
762
+ })), o?.hasClass("resize_corner_1") && (n && n.height() >= U && a > U && n.css({
702
763
  top: Number(t.startBottom - a),
703
764
  height: Number(a)
704
- }), i && i.height() <= A && a > A && i.css({
705
- height: Number(A + 1)
706
- }), i && i.width() >= N && i.css({
707
- width: Number(n),
708
- right: Number(t.startLeft - n)
709
- }), i && i.width() <= N && r > N && i.css({
710
- width: Number(N + 1)
711
- })), o?.hasClass("resize_corner_2") && (i && i.height() >= A && i.css({
765
+ }), n && n.height() <= U && a > U && n.css({
766
+ height: Number(U + 1)
767
+ }), n && n.width() >= F && n.css({
768
+ width: Number(i),
769
+ right: Number(t.startLeft - i)
770
+ }), n && n.width() <= F && p > F && n.css({
771
+ width: Number(F + 1)
772
+ })), o?.hasClass("resize_corner_2") && (n && n.height() >= U && n.css({
712
773
  height: Number(s)
713
- }), i && i.height() <= A && s > A && i.css({
714
- height: Number(A + 1)
715
- }), i && i.width() >= N && i.css({
716
- width: Number(n),
717
- right: Number(t.startLeft - n)
718
- }), i && i.width() <= N && i.css({
719
- width: Number(N + 1)
720
- })), o?.hasClass("resize_corner_3") && (i && i.height() >= A && s > A && i.css({
774
+ }), n && n.height() <= U && s > U && n.css({
775
+ height: Number(U + 1)
776
+ }), n && n.width() >= F && n.css({
777
+ width: Number(i),
778
+ right: Number(t.startLeft - i)
779
+ }), n && n.width() <= F && n.css({
780
+ width: Number(F + 1)
781
+ })), o?.hasClass("resize_corner_3") && (n && n.height() >= U && s > U && n.css({
721
782
  height: Number(s)
722
- }), i && i.height() <= A && s > A && i.css({
723
- height: Number(A + 1)
724
- }), i && i.width() >= N && r > N && i.css({
725
- width: Number(r),
726
- left: Number(t.startRight - r)
727
- }), i && i.width() <= N && r > N && i.css({
728
- width: Number(N + 1)
783
+ }), n && n.height() <= U && s > U && n.css({
784
+ height: Number(U + 1)
785
+ }), n && n.width() >= F && p > F && n.css({
786
+ width: Number(p),
787
+ left: Number(t.startRight - p)
788
+ }), n && n.width() <= F && p > F && n.css({
789
+ width: Number(F + 1)
729
790
  })));
730
791
  }
731
792
  },
732
793
  stopRes: (e, t) => {
733
- const o = e instanceof HTMLElement ? new h(e) : f(e), i = o?.parent();
734
- i?.el.style.setProperty("transition", ""), o?.el.style.setProperty("transition", ""),
735
- D()?.css("pointer-events", "auto"), i?.css("pointer-events", "auto"), Y.vfx(i, !0),
736
- H = !1, B?.id === t && (B = null);
737
- const n = R.get(t);
738
- if (n) {
794
+ const o = e instanceof HTMLElement ? new _(e) : g(e), n = o?.parent();
795
+ n?.el.style.setProperty("transition", ""), o?.el.style.setProperty("transition", ""),
796
+ ie()?.css("pointer-events", "auto"), n?.css("pointer-events", "auto"), re.vfx(n, !0),
797
+ Z = !1, ne?.id === t && (ne = null);
798
+ const i = ee.get(t);
799
+ if (i) {
739
800
  const e = {
740
801
  passive: !1
741
802
  };
742
- n.move && document.removeEventListener("pointermove", n.move, e), n.up && document.removeEventListener("pointerup", n.up, e),
743
- R.delete(t);
803
+ i.move && document.removeEventListener("pointermove", i.move, e), i.up && document.removeEventListener("pointerup", i.up, e),
804
+ ee.delete(t);
744
805
  }
745
806
  },
746
807
  index: e => {
747
- const t = X(e);
748
- m('[class^="popup_window_"]', "#popup").forEach(e => e.removeClass("zHigh")), m('[class^="popup_bar_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
749
- m('[class^="icon_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
750
- f(".icon_" + t, "#popup")?.addClass("popup_bar_selected"), f(".popup_overflow_" + t, "#popup")?.css("zIndex", Y.zIndex()),
751
- f(".popup_bar_" + t, "#popup")?.addClass("popup_bar_selected"), f(".popup_window_" + t, "#popup")?.addClass("zHigh");
808
+ const t = se(e);
809
+ v('[class^="popup_window_"]', "#popup").forEach(e => e.removeClass("zHigh")), v('[class^="popup_bar_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
810
+ v('[class^="icon_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
811
+ g(".icon_" + t, "#popup")?.addClass("popup_bar_selected"), g(".popup_overflow_" + t, "#popup")?.css("zIndex", re.zIndex()),
812
+ g(".popup_bar_" + t, "#popup")?.addClass("popup_bar_selected"), g(".popup_window_" + t, "#popup")?.addClass("zHigh");
752
813
  },
753
814
  zIndex: () => {
754
- if (!P) {
755
- P = !0;
815
+ if (!V) {
816
+ V = !0;
756
817
  try {
757
818
  const e = getComputedStyle(document.documentElement).getPropertyValue("--popup-z-index").trim();
758
819
  if (e) {
759
820
  const t = parseInt(e, 10);
760
- isNaN(t) || (I = t);
821
+ isNaN(t) || (G = t);
761
822
  }
762
823
  } catch {}
763
824
  }
764
- return ++I;
825
+ return ++G;
765
826
  }
766
827
  };
767
828
 
768
829
  Object.defineProperty(layerpro, "popup", {
769
- value: Y,
830
+ value: re,
770
831
  writable: !1,
771
832
  configurable: !1
772
- }), globalThis.popup = Y, Object.defineProperty(window, "popup", {
833
+ }), globalThis.popup = re, Object.defineProperty(window, "popup", {
773
834
  enumerable: !1
774
835
  });
775
836
 
776
- var q = {
837
+ var pe = {
777
838
  "&": "&amp;",
778
839
  "<": "&lt;",
779
840
  ">": "&gt;",
780
841
  '"': "&quot;",
781
842
  "'": "&#39;"
782
- }, U = e => e.replace(/[&<>"']/g, e => q[e]), K = globalThis.alert, F = globalThis.confirm, G = globalThis.prompt, Z = globalThis.message, J = () => {
783
- globalThis.message = (e, t) => layerpro.message(e, t), globalThis.alert = e => layerpro.alert(e),
784
- globalThis.confirm = (e, t, o) => layerpro.confirm(e, t, o), globalThis.prompt = (e, t, o) => layerpro.prompt(e, t),
785
- Object.defineProperty(window, "alert", {
786
- enumerable: !1
787
- }), Object.defineProperty(window, "prompt", {
788
- enumerable: !1
789
- }), Object.defineProperty(window, "message", {
790
- enumerable: !1
791
- }), Object.defineProperty(window, "confirm", {
792
- enumerable: !1
793
- });
794
- };
843
+ }, ae = e => e.replace(/[&<>"']/g, e => pe[e]);
795
844
 
796
- J(), Object.defineProperties(layerpro, {
845
+ Object.defineProperties(layerpro, {
797
846
  prompt: {
798
847
  value: (e, t) => {
799
- const o = t || "_prompt", i = U(String(e)), n = layerpro.popup.open({
848
+ const o = ae(String(e)), n = {
849
+ value: ""
850
+ }, i = {
800
851
  id: "__prompt",
801
852
  name: "Prompt",
802
853
  icon: "&#9998;",
@@ -807,34 +858,27 @@ J(), Object.defineProperties(layerpro, {
807
858
  close: !0,
808
859
  isMaximize: !1,
809
860
  dockable: !1,
810
- raised: !0,
861
+ modal: !0,
811
862
  movable: !0,
812
863
  resizable: !1
813
- }), s = `\n <div class='popup_prompt'>\n\n <div class="popup_message_body">\n <center>\n ${i}\n </center>\n </div>\n\n <input id="input_${n.id}" type="text" placeholder="write here" />\n <br/>\n\n <div class="buttons">\n <button id="a_${n.id}" type="button">OK</button>\n <button id="b_${n.id}" type="button">CANCEL</button>\n </div>\n\n </div>\n `;
814
- f(".popup_body_" + n.id)?.html(s);
815
- const p = f("#input_" + n.id);
816
- p?.on("focus", () => {
864
+ }, s = layerpro.popup.open(i), r = `\n <div class='popup_prompt'>\n\n <div class="popup_message_body">\n <center>\n ${o}\n </center>\n </div>\n\n <input id="input_${i.id}" type="text" placeholder="write here" />\n <br/>\n\n <div class="buttons">\n <button id="a_${i.id}" type="button">OK</button>\n <button id="b_${i.id}" type="button">CANCEL</button>\n </div>\n\n </div>\n `;
865
+ g(".popup_body_" + i.id)?.html(r);
866
+ const p = g("#input_" + i.id);
867
+ return t && p?.val(t), p?.on("focus", () => {
817
868
  p.attr("placeholder", "");
818
869
  })?.on("blur", () => {
819
870
  p.attr("placeholder", "write here");
820
- }), f("#a_" + n.id)?.on("click", () => {
871
+ }), g("#a_" + i.id)?.on("click", () => {
821
872
  const e = p?.val() ?? "";
822
- if (e > "") {
823
- if ("function" == typeof o) {
824
- const e = document.getElementById("input___prompt");
825
- o(String(e));
826
- }
827
- if (String(o) === o) return JSON.stringify(e);
828
- layerpro.popup.close(n);
829
- } else alert("input can't be empty!");
830
- }), f("#b_" + n.id)?.on("click", () => {
831
- layerpro.popup.close(n);
832
- });
873
+ String(e) > "" ? (n.value = String(e), layerpro.popup.close(i)) : layerpro.alert("input can't be empty!");
874
+ }), g("#b_" + i.id)?.on("click", () => {
875
+ n.value = "", layerpro.popup.close(i);
876
+ }), s.then(() => n.value);
833
877
  }
834
878
  },
835
879
  alert: {
836
880
  value: e => {
837
- const t = U(String(e)), o = layerpro.popup.open({
881
+ const t = ae(String(e)), o = {
838
882
  id: "__alert",
839
883
  name: "Warning",
840
884
  icon: "&#9888;",
@@ -845,18 +889,18 @@ J(), Object.defineProperties(layerpro, {
845
889
  close: !0,
846
890
  isMaximize: !1,
847
891
  dockable: !1,
848
- raised: !0,
892
+ modal: !0,
849
893
  movable: !0,
850
894
  resizable: !1
851
- }), i = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + o.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
852
- f(".popup_body_" + o.id)?.html(i), f("#a_" + o.id)?.on("click", () => {
895
+ }, n = layerpro.popup.open(o), i = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + o.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
896
+ return g(".popup_body_" + o.id)?.html(i), g("#a_" + o.id)?.on("click", () => {
853
897
  layerpro.popup.close(o);
854
- });
898
+ }), n.then(() => {});
855
899
  }
856
900
  },
857
901
  message: {
858
- value: (e, t) => {
859
- const o = U(String(e)), i = layerpro.popup.open({
902
+ value: e => {
903
+ const t = ae(String(e)), o = {
860
904
  id: "__message",
861
905
  name: "Message",
862
906
  icon: "&#9965;",
@@ -867,54 +911,52 @@ J(), Object.defineProperties(layerpro, {
867
911
  close: !0,
868
912
  isMaximize: !1,
869
913
  dockable: !1,
870
- raised: !0,
914
+ modal: !0,
871
915
  movable: !0,
872
916
  resizable: !1
873
- }), n = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${o}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + i.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
874
- f(".popup_body_" + i.id)?.html(n), f("#a_" + i.id)?.on("click", () => {
875
- t && t(), layerpro.popup.close(i);
876
- });
917
+ }, n = layerpro.popup.open(o), i = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + o.id}" type="button">OK</button>\n </div>\n </div>\n `;
918
+ return g(".popup_body_" + o.id)?.html(i), g("#a_" + o.id)?.on("click", () => {
919
+ layerpro.popup.close(o);
920
+ }), n.then(() => {});
877
921
  }
878
922
  },
879
923
  confirm: {
880
- value: (e, t, o) => {
881
- if (!f(".confirm")) {
882
- const i = U(String(e)), n = layerpro.popup.open({
883
- id: "__confirm",
884
- name: "Confirm",
885
- icon: "&#9745;",
886
- width: 380,
887
- height: 220,
888
- iconize: !1,
889
- maximize: !1,
890
- close: !0,
891
- isMaximize: !1,
892
- dockable: !1,
893
- raised: !0,
894
- movable: !0,
895
- resizable: !1
896
- }), s = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${i}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + n.id}" type="button">CONFIRM</button>\n <button id="${"b_" + n.id}" type="button">CANCEL</button>\n </div>\n </div>\n `;
897
- f(".popup_body_" + n.id)?.html(s), f("#a_" + n.id)?.on("click", () => {
898
- t && t(), layerpro.popup.close(n);
899
- }), f("#b_" + n.id)?.on("click", () => {
900
- o && o(), layerpro.popup.close(n);
901
- });
902
- }
924
+ value: e => {
925
+ const t = ae(String(e)), o = {
926
+ value: !1
927
+ }, n = {
928
+ id: "__confirm",
929
+ name: "Confirm",
930
+ icon: "&#9745;",
931
+ width: 380,
932
+ height: 220,
933
+ iconize: !1,
934
+ maximize: !1,
935
+ close: !0,
936
+ isMaximize: !1,
937
+ dockable: !1,
938
+ modal: !0,
939
+ movable: !0,
940
+ resizable: !1
941
+ }, i = layerpro.popup.open(n), s = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + n.id}" type="button">CONFIRM</button>\n <button id="${"b_" + n.id}" type="button">CANCEL</button>\n </div>\n </div>\n `;
942
+ return g(".popup_body_" + n.id)?.html(s), g("#a_" + n.id)?.on("click", () => {
943
+ o.value = !0, layerpro.popup.close(n);
944
+ }), g("#b_" + n.id)?.on("click", () => {
945
+ o.value = !1, layerpro.popup.close(n);
946
+ }), i.then(() => o.value);
903
947
  }
904
948
  },
905
949
  installGlobals: {
906
- value: J
907
- },
908
- noGlobals: {
909
950
  value: () => {
910
951
  const e = globalThis;
911
- e.alert = K, e.confirm = F, e.prompt = G, void 0 === Z ? delete e.message : e.message = Z;
952
+ e.alert = e => layerpro.alert(String(e)), e.confirm = e => layerpro.confirm(String(e)),
953
+ e.prompt = (e, t) => layerpro.prompt(String(e), t), e.message = e => layerpro.message(String(e));
912
954
  }
913
955
  }
914
956
  });
915
957
 
916
- S = (e, t) => {
917
- m('[class^="popup_overflow_"]').forEach(e => {
958
+ X = (e, t) => {
959
+ v('[class^="popup_overflow_"]').forEach(e => {
918
960
  const t = e.el.className.match(/popup_overflow_(\d+)/);
919
961
  t && t[1] && layerpro.popup.close({
920
962
  id: t[1],
@@ -923,10 +965,10 @@ S = (e, t) => {
923
965
  });
924
966
  };
925
967
 
926
- var V = globalThis.layerpro;
968
+ var le = globalThis.layerpro;
927
969
 
928
- V.setProps(V, {
970
+ le.setProps(le, {
929
971
  configurable: !1,
930
972
  enumerable: !1,
931
973
  writable: !1
932
- }), Object.freeze(V);
974
+ }), Object.freeze(le);