From fb58a270a831bd5250df6da9c21f11d44150ccc4 Mon Sep 17 00:00:00 2001 From: Carson Date: Wed, 18 Feb 2026 17:02:30 -0600 Subject: [PATCH 1/5] Increment version number to 1.13.0 --- DESCRIPTION | 2 +- NEWS.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index eee515238..e72744252 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: shiny Title: Web Application Framework for R -Version: 1.12.1.9000 +Version: 1.13.0 Authors@R: c( person("Winston", "Chang", , "winston@posit.co", role = "aut", comment = c(ORCID = "0000-0002-1576-2126")), diff --git a/NEWS.md b/NEWS.md index d71871501..2e4f11bc5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# shiny (development version) +# shiny 1.13.0 ## New features From 2ac0ec56aeb194ff41f94024f20edf07d17a46e9 Mon Sep 17 00:00:00 2001 From: Carson Date: Wed, 18 Feb 2026 17:06:05 -0600 Subject: [PATCH 2/5] Fix broken URL in NEWS --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 2e4f11bc5..773d0cf3a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -808,7 +808,7 @@ This release features plot caching, an important new tool for improving performa ### Minor new features and improvements -* Upgrade FontAwesome from 4.7.0 to 5.3.1 and made `icon` tags browsable, which means they will display in a web browser or RStudio viewer by default (#2186). Note that if your application or library depends on FontAwesome directly using custom CSS, you may need to make some or all of the changes recommended in [Upgrade from Version 4](https://docs.fontawesome.com/v5/web/setup/upgrade-from-v4). Font Awesome icons can also now be used in static R Markdown documents. +* Upgrade FontAwesome from 4.7.0 to 5.3.1 and made `icon` tags browsable, which means they will display in a web browser or RStudio viewer by default (#2186). Note that if your application or library depends on FontAwesome directly using custom CSS, you may need to make some or all of the changes recommended in [Upgrade from Version 4](https://docs-v5.fontawesome.com/web/setup/upgrade-from-v4). Font Awesome icons can also now be used in static R Markdown documents. * Address #174: Added `datesdisabled` and `daysofweekdisabled` as new parameters to `dateInput()`. This resolves #174 and exposes the underlying arguments of [Bootstrap Datepicker](http://bootstrap-datepicker.readthedocs.io/en/latest/options.html#datesdisabled). `datesdisabled` expects a character vector with values in `yyyy/mm/dd` format and `daysofweekdisabled` expects an integer vector with day interger ids (Sunday=0, Saturday=6). The default value for both is `NULL`, which leaves all days selectable. Thanks, @nathancday! (#2147) From 94290dbfbbebd91cfaf0da65f44a9824001bcb0e Mon Sep 17 00:00:00 2001 From: Carson Date: Wed, 18 Feb 2026 17:06:20 -0600 Subject: [PATCH 3/5] Reorder NEWS bullets --- NEWS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 773d0cf3a..16a3b7c07 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,9 +6,10 @@ ## Bug fixes and minor improvements +* Stack traces from render functions (e.g., `renderPlot()`, `renderDataTable()`) now hide internal Shiny rendering pipeline frames, making error messages cleaner and more focused on user code. (#4358) + * Fixed an issue with `actionLink()` that extended the link underline to whitespace around the text. (#4348) -* Stack traces from render functions (e.g., `renderPlot()`, `renderDataTable()`) now hide internal Shiny rendering pipeline frames, making error messages cleaner and more focused on user code. (#4358) # shiny 1.12.1 From b00ba6543e96724c8a6aac39e2d3d599166f8003 Mon Sep 17 00:00:00 2001 From: cpsievert Date: Wed, 18 Feb 2026 23:21:14 +0000 Subject: [PATCH 4/5] `npm run build` (GitHub Actions) --- inst/www/shared/busy-indicators/busy-indicators.css | 2 +- inst/www/shared/shiny-autoreload.js | 2 +- inst/www/shared/shiny-showcase.css | 2 +- inst/www/shared/shiny-showcase.js | 2 +- inst/www/shared/shiny-testmode.js | 2 +- inst/www/shared/shiny.js | 4 ++-- inst/www/shared/shiny.min.js | 4 ++-- inst/www/shared/shiny.min.js.map | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/inst/www/shared/busy-indicators/busy-indicators.css b/inst/www/shared/busy-indicators/busy-indicators.css index aab3d9a33..867cbc387 100644 --- a/inst/www/shared/busy-indicators/busy-indicators.css +++ b/inst/www/shared/busy-indicators/busy-indicators.css @@ -1,2 +1,2 @@ -/*! shiny 1.12.1.9000 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ +/*! shiny 1.13.0 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ :where([data-shiny-busy-spinners] .recalculating){position:relative}[data-shiny-busy-spinners] .recalculating{min-height:var(--shiny-spinner-size, 32px)}[data-shiny-busy-spinners] .recalculating:after{position:absolute;content:"";--_shiny-spinner-url: var(--shiny-spinner-url, url(spinners/ring.svg));--_shiny-spinner-color: var(--shiny-spinner-color, var(--bs-primary, #007bc2));--_shiny-spinner-size: var(--shiny-spinner-size, 32px);--_shiny-spinner-delay: var(--shiny-spinner-delay, 1s);background:var(--_shiny-spinner-color);width:var(--_shiny-spinner-size);height:var(--_shiny-spinner-size);inset:calc(50% - var(--_shiny-spinner-size) / 2);mask-image:var(--_shiny-spinner-url);-webkit-mask-image:var(--_shiny-spinner-url);opacity:0;animation-delay:var(--_shiny-spinner-delay);animation-name:fade-in;animation-duration:.25s;animation-fill-mode:forwards}[data-shiny-busy-spinners] .recalculating:has(>*),[data-shiny-busy-spinners] .recalculating:empty{opacity:1}[data-shiny-busy-spinners] .recalculating>*:not(.recalculating){opacity:var(--_shiny-fade-opacity);transition:opacity .25s ease var(--shiny-spinner-delay, 1s)}[data-shiny-busy-spinners] .recalculating.html-widget-output{visibility:inherit!important}[data-shiny-busy-spinners] .recalculating.html-widget-output>*{visibility:hidden}[data-shiny-busy-spinners] .recalculating.html-widget-output :after{visibility:visible}[data-shiny-busy-spinners] .recalculating.shiny-html-output:not(.shiny-table-output):after{display:none}[data-shiny-busy-spinners][data-shiny-busy-pulse].shiny-busy:after{--_shiny-pulse-background: var( --shiny-pulse-background, linear-gradient( 120deg, transparent, var(--bs-indigo, #4b00c1), var(--bs-purple, #74149c), var(--bs-pink, #bf007f), transparent ) );--_shiny-pulse-height: var(--shiny-pulse-height, 3px);--_shiny-pulse-speed: var(--shiny-pulse-speed, 1.2s);position:fixed;top:0;left:0;height:var(--_shiny-pulse-height);background:var(--_shiny-pulse-background);z-index:9999;animation-name:busy-page-pulse;animation-duration:var(--_shiny-pulse-speed);animation-direction:alternate;animation-iteration-count:infinite;animation-timing-function:ease-in-out;content:""}[data-shiny-busy-spinners][data-shiny-busy-pulse].shiny-busy:has(.recalculating:not(.shiny-html-output)):after{display:none}[data-shiny-busy-spinners][data-shiny-busy-pulse].shiny-busy:has(.recalculating.shiny-table-output):after{display:none}[data-shiny-busy-spinners][data-shiny-busy-pulse].shiny-busy:has(#shiny-disconnected-overlay):after{display:none}[data-shiny-busy-pulse]:not([data-shiny-busy-spinners]).shiny-busy:after{--_shiny-pulse-background: var( --shiny-pulse-background, linear-gradient( 120deg, transparent, var(--bs-indigo, #4b00c1), var(--bs-purple, #74149c), var(--bs-pink, #bf007f), transparent ) );--_shiny-pulse-height: var(--shiny-pulse-height, 3px);--_shiny-pulse-speed: var(--shiny-pulse-speed, 1.2s);position:fixed;top:0;left:0;height:var(--_shiny-pulse-height);background:var(--_shiny-pulse-background);z-index:9999;animation-name:busy-page-pulse;animation-duration:var(--_shiny-pulse-speed);animation-direction:alternate;animation-iteration-count:infinite;animation-timing-function:ease-in-out;content:""}[data-shiny-busy-pulse]:not([data-shiny-busy-spinners]).shiny-busy:has(#shiny-disconnected-overlay):after{display:none}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes busy-page-pulse{0%{left:-14%;right:97%}45%{left:0%;right:14%}55%{left:14%;right:0%}to{left:97%;right:-14%}}.shiny-spinner-output-container{--shiny-spinner-size: 0px} diff --git a/inst/www/shared/shiny-autoreload.js b/inst/www/shared/shiny-autoreload.js index d29559955..e85f3271f 100644 --- a/inst/www/shared/shiny-autoreload.js +++ b/inst/www/shared/shiny-autoreload.js @@ -1,3 +1,3 @@ -/*! shiny 1.12.1.9000 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ +/*! shiny 1.13.0 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ "use strict";(()=>{document.documentElement.classList.add("autoreload-enabled");var c=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.pathname.replace(/\/?$/,"/")+"autoreload/",i=`${c}//${window.location.host}${s}`,l=document.currentScript?.dataset?.wsUrl||i;async function u(o){let e=new WebSocket(o),n=!1;return new Promise((a,r)=>{e.onopen=()=>{n=!0},e.onerror=t=>{r(t)},e.onclose=()=>{n?a(!1):r(new Error("WebSocket connection failed"))},e.onmessage=function(t){t.data==="autoreload"&&a(!0)}})}async function d(o){return new Promise(e=>setTimeout(e,o))}async function w(){for(;;){try{if(await u(l)){window.location.reload();return}}catch{console.debug("Giving up on autoreload");return}await d(1e3)}}w().catch(o=>{console.error(o)});})(); //# sourceMappingURL=shiny-autoreload.js.map diff --git a/inst/www/shared/shiny-showcase.css b/inst/www/shared/shiny-showcase.css index 225692cc7..8f32637d5 100644 --- a/inst/www/shared/shiny-showcase.css +++ b/inst/www/shared/shiny-showcase.css @@ -1,2 +1,2 @@ -/*! shiny 1.12.1.9000 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ +/*! shiny 1.13.0 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ #showcase-well{border-radius:0}.shiny-code{background-color:#fff;margin-bottom:0}.shiny-code code{font-family:Menlo,Consolas,Courier New,monospace}.shiny-code-container{margin-top:20px;clear:both}.shiny-code-container h3{display:inline;margin-right:15px}.showcase-header{font-size:16px;font-weight:400}.showcase-code-link{text-align:right;padding:15px}#showcase-app-container{vertical-align:top}#showcase-code-tabs{margin-right:15px}#showcase-code-tabs pre{border:none;line-height:1em}#showcase-code-tabs .nav,#showcase-code-tabs ul{margin-bottom:0}#showcase-code-tabs .tab-content{border-style:solid;border-color:#e5e5e5;border-width:0px 1px 1px 1px;overflow:auto;border-bottom-right-radius:4px;border-bottom-left-radius:4px}#showcase-app-code{width:100%}#showcase-code-position-toggle{float:right}#showcase-sxs-code{padding-top:20px;vertical-align:top}.showcase-code-license{display:block;text-align:right}#showcase-code-content pre{background-color:#fff} diff --git a/inst/www/shared/shiny-showcase.js b/inst/www/shared/shiny-showcase.js index 2aa1e39fa..9415e45f6 100644 --- a/inst/www/shared/shiny-showcase.js +++ b/inst/www/shared/shiny-showcase.js @@ -1,3 +1,3 @@ -/*! shiny 1.12.1.9000 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ +/*! shiny 1.13.0 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ "use strict";(()=>{var m=400;function c(e,s){let t=0;if(e.nodeType===3){let n=e.nodeValue?.replace(/\n/g,"").length??0;if(n>=s)return{element:e,offset:s};t+=n}else if(e.nodeType===1&&e.firstChild){let n=c(e.firstChild,s);if(n.element!==null)return n;t+=n.offset}return e.nextSibling?c(e.nextSibling,s-t):{element:null,offset:t}}function a(e,s,t){let n=0;for(let l=0;l show below':' show with app'}),e&&$(document.body).animate({scrollTop:0},t),r=e,h(e&&s),$(window).trigger("resize")};function h(e){let t=960,n=1,l=document.getElementById("showcase-app-code").offsetWidth;l/2>960?t=l/2:l*.66>960?t=960:(t=l*.66,n=t/960),$("#showcase-app-container").animate({width:t+"px",zoom:n*100+"%"},e?m:0)}var w=function(){u(!r,!0)},y=function(){document.body.offsetWidth>1350&&u(!0,!1)};function p(){document.getElementById("showcase-code-content").style.height=$(window).height()+"px"}function E(){let e=document.getElementById("showcase-markdown-content");if(e!==null){let s=document.getElementById("readme-md");if(s!==null){let t=e.content.cloneNode(!0);s.appendChild(t)}}}$(window).resize(function(){r&&(h(!1),p())});window.toggleCodePosition=w;$(window).on("load",y);$(window).on("load",E);window.hljs&&window.hljs.initHighlightingOnLoad();})(); //# sourceMappingURL=shiny-showcase.js.map diff --git a/inst/www/shared/shiny-testmode.js b/inst/www/shared/shiny-testmode.js index 1a6ebf17f..538ac3448 100644 --- a/inst/www/shared/shiny-testmode.js +++ b/inst/www/shared/shiny-testmode.js @@ -1,3 +1,3 @@ -/*! shiny 1.12.1.9000 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ +/*! shiny 1.13.0 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ "use strict";(()=>{var t=eval;window.addEventListener("message",function(a){let e=a.data;e.code&&t(e.code)});})(); //# sourceMappingURL=shiny-testmode.js.map diff --git a/inst/www/shared/shiny.js b/inst/www/shared/shiny.js index f08b70f0a..ec743d913 100644 --- a/inst/www/shared/shiny.js +++ b/inst/www/shared/shiny.js @@ -1,4 +1,4 @@ -/*! shiny 1.12.1.9000 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ +/*! shiny 1.13.0 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ "use strict"; (() => { var __create = Object.create; @@ -7206,7 +7206,7 @@ ${duplicateIdMsg}`; // srcts/src/shiny/index.ts var ShinyClass = class { constructor() { - this.version = "1.12.1.9000"; + this.version = "1.13.0"; const { inputBindings, fileInputBinding: fileInputBinding2 } = initInputBindings(); const { outputBindings } = initOutputBindings(); setFileInputBinding(fileInputBinding2); diff --git a/inst/www/shared/shiny.min.js b/inst/www/shared/shiny.min.js index 9d20b486a..b2181ba7d 100644 --- a/inst/www/shared/shiny.min.js +++ b/inst/www/shared/shiny.min.js @@ -1,4 +1,4 @@ -/*! shiny 1.12.1.9000 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ +/*! shiny 1.13.0 | (c) 2012-2026 Posit Software, PBC. | License: MIT + file LICENSE */ "use strict";(()=>{var Rr=Object.create;var Ni=Object.defineProperty;var Or=Object.getOwnPropertyDescriptor;var Vr=Object.getOwnPropertyNames;var zr=Object.getPrototypeOf,Nr=Object.prototype.hasOwnProperty;var Ui=n=>{throw TypeError(n)};var Ur=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var Qr=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Vr(e))!Nr.call(n,s)&&s!==t&&Ni(n,s,{get:()=>e[s],enumerable:!(i=Or(e,s))||i.enumerable});return n};var M=(n,e,t)=>(t=n!=null?Rr(zr(n)):{},Qr(e||!n||!n.__esModule?Ni(t,"default",{value:n,enumerable:!0}):t,n));var Jn=(n,e,t)=>e.has(n)||Ui("Cannot "+t);var Qt=(n,e,t)=>(Jn(n,e,"read from private field"),t?t.call(n):e.get(n)),Jt=(n,e,t)=>e.has(n)?Ui("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),Qi=(n,e,t,i)=>(Jn(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t),F=(n,e,t)=>(Jn(n,e,"access private method"),t);var S=Ur((Qo,Ji)=>{Ji.exports=window.jQuery});var Ft=M(S());var Fi=!1,ji=!1,qi=-1;function Fn(n){Fi=n}function Xi(n){ji=n}function Wi(n){qi=n}function Gi(){return Fi}function Re(){return ji}function Ki(){return qi}var W;function Yi(n){W=n}function Jr(){let n=W.indexOf("MSIE ");if(Re()&&n>0)return parseInt(W.substring(n+5,W.indexOf(".",n)),10);if(W.indexOf("Trident/")>0){let t=W.indexOf("rv:");return parseInt(W.substring(t+3,W.indexOf(".",t)),10)}return-1}function Zi(){/\bQt\//.test(W)?((0,Ft.default)(document.documentElement).addClass("qt"),Fn(!0)):Fn(!1),/\bQt/.test(W)&&/\bMacintosh/.test(W)&&(0,Ft.default)(document.documentElement).addClass("qtmac"),/\bQt\/5/.test(W)&&/Linux/.test(W)&&(0,Ft.default)(document.documentElement).addClass("qt5"),Xi(/MSIE|Trident|Edge/.test(W)),Wi(Jr())}var es=M(S());function ts(){(0,es.default)(document).on("submit","form:not([action])",function(n){n.preventDefault()})}var ns=M(S());function is(){let n=window.history.pushState;window.history.pushState=function(...e){let t=n.apply(this,e);return(0,ns.default)(document).trigger("pushstate"),t}}var H=M(S());var ft=M(S());var te=M(S());function se(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function x(n,e){return Object.prototype.hasOwnProperty.call(n,e)&&n[e]!==void 0}function j(n,e){return n===void 0?e:n}function nt(n){return n==null?[]:Array.isArray(n)?n:[n]}var jn;function ss(n){jn=n}function be(){if(typeof jn>"u")throw"Shiny has not finish initialization yet. Please wait for the 'shiny-initialized' event.";return jn}function me(n,e,t){be().setInputValue(n,e,t)}function Oe(){return be().shinyapp}function rs(n){be().user=n}function os(n){be().forgetLastInputValue(n)}async function Ve(n){await be().bindAll(n)}function G(n,e=!1){be().unbindAll(n,e)}function dt(n){be().initializeInputs(n)}async function as(n,e){await Oe().bindOutput(n,e)}function ls(n,e){return Oe().unbindOutput(n,e)}function us(){return be().oncustommessage}var ds;function cs(){return ds}function ps(n){ds=n}function ms(){return be().createSocket}var ee=class{constructor(e,t,i){this.target=e,this.func=t,this.delayMs=i,this.timerId=null,this.args=null}normalCall(...e){this.$clearTimer(),this.args=e,this.timerId=setTimeout(()=>{this.timerId!==null&&(this.$clearTimer(),this.$invoke())},this.delayMs)}immediateCall(...e){this.$clearTimer(),this.args=e,this.$invoke()}isPending(){return this.timerId!==null}$clearTimer(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}$invoke(){this.args&&this.args.length>0?this.func.apply(this.target,this.args):this.func.apply(this.target),this.args=null}};function $e(n,e){let t=null;return function i(...s){t!==null&&(clearTimeout(t),t=null),t=setTimeout(()=>{t!==null&&(t=null,e.apply(i,s))},n)}}var ct=class{constructor(e,t){this.target=e,this.func=t}normalCall(...e){this.func.apply(this.target,e)}immediateCall(...e){this.func.apply(this.target,e)}};var Ce=class{constructor(e,t,i){this.target=e,this.func=t,this.delayMs=i,this.timerId=null,this.args=null}normalCall(...e){this.args=e,this.timerId===null&&this.$invoke()}immediateCall(...e){this.$clearTimer(),this.args=e,this.$invoke()}isPending(){return this.args!==null}$clearTimer(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}$invoke(){this.args!==null&&(this.func.apply(this.target,this.args),this.args=null,this.timerId=setTimeout(()=>{this.timerId!==null&&(this.$clearTimer(),this.isPending()&&this.$invoke())},this.delayMs))}};var qn=class{setImageSend(e,t){let i=new ee(null,t,0);return this.regular=function(){i.normalCall()},e.lastChanceCallback.push(function(){i.isPending()&&i.immediateCall()}),this.transitioned=$e(200,this.regular),i}},ue=new qn;var ve=M(S()),Fr=/([\s\S]*?)/,jr=/]*)?>([\s\S]*?)<\/head>/,jt={};function Xn(n,e,t){let i=Wr(n);switch(Xr(i.head),qr(i.singletons),t.toLowerCase()){case"replace":(0,ve.default)(e).html(i.html);break;case"beforebegin":(0,ve.default)(e).before(i.html);break;case"afterbegin":(0,ve.default)(e).prepend(i.html);break;case"beforeend":(0,ve.default)(e).append(i.html);break;case"afterend":(0,ve.default)(e).after(i.html);break;default:throw new Error("Unknown where position: "+t)}return i}function qr(n){ve.default.extend(jt,n)}function fs(n){if(typeof n=="string")jt[n]=!0;else if(n instanceof Array)for(let e=0;e0){let e=(0,ve.default)("
"+n+"
").get(0),t=(0,ve.default)("head");for(;e.hasChildNodes();)t.append(e.firstChild)}}function Wr(n){let e={},t,i=function(a,r,l,u){return jt[l]||e[l]?"":(e[l]=!0,u)};for(;t=n.replace(Fr,i),n.length!==t.length;)n=t;let s=[],o=function(a,r){return s.push(r),""};for(;t=n.replace(jr,o),n.length!==t.length;)n=t;return{html:n,head:s.join(` `),singletons:e}}async function re(n,e,t="replace"){t==="replace"&&G(n);let i="",s=[];e===null?i="":typeof e=="string"?i=e:typeof e=="object"&&(i=e.html,s=e.deps||[]),await mt(i,n,s,t);let o=n;if(t==="replace")dt(n),await Ve(n);else{let a=(0,te.default)(n).parent();if(a.length>0&&(o=a,t==="beforeBegin"||t==="afterEnd")){let r=a.parent();r.length>0&&(o=r)}dt(o),await Ve(o)}}function we(n,e,t="replace"){t==="replace"&&G(n);let i="",s=[];e===null?i="":typeof e=="string"?i=e:typeof e=="object"&&(i=e.html,s=e.deps||[]),Wn(i,n,s,t);let o=n;if(t==="replace")return dt(n),Ve(n);{let a=(0,te.default)(n).parent();if(a.length>0&&(o=a,t==="beforeBegin"||t==="afterEnd")){let r=a.parent();r.length>0&&(o=r)}return dt(o),Ve(o)}}async function mt(n,e,t,i="replace"){return await ze(t),Xn(n,e,i)}function Wn(n,e,t,i="replace"){return Gn(t),Xn(n,e,i)}async function ze(n){if(n)for(let e of n)await Yr(e)}function Gn(n){if(n)for(let e of n)Zr(e)}var pt={};function qt(n,e){pt[n]=e}function hs(n){if(!n.restyle)return!1;let e=Object.keys(pt),t=e.indexOf(n.name);return t===-1?!1:pt[e[t]]===n.version}function gs(n){let e=(0,te.default)("head").first(),t=function(o,a){let r=new XMLHttpRequest;r.open("GET",o),r.onload=function(){let l="shiny_restyle_"+o.split("?restyle")[0].replace(/\W/g,"_"),u=e.find("style#"+l),d=(0,te.default)("