ruru
Version:
Grafast-flavoured GraphiQL distribution
2 lines • 311 kB
JavaScript
/*! For license information please see 1004.js.LICENSE.txt */
export const __webpack_esm_id__=1004;export const __webpack_esm_ids__=[1004];export const __webpack_esm_modules__={65600(e,t,i){i.r(t),i.d(t,{addMatchMediaChangeListener:()=>s,getZoomFactor:()=>r,isAndroid:()=>g,isChrome:()=>d,isElectron:()=>f,isFirefox:()=>l,isSafari:()=>h,isStandalone:()=>m,isWebKit:()=>c,isWebkitWebView:()=>u});var n=i(866);class o{constructor(){this.mapWindowIdToZoomFactor=new Map}static{this.INSTANCE=new o}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}}function s(e,t,i){"string"==typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function r(e){return o.INSTANCE.getZoomFactor(e)}const a=navigator.userAgent,l=a.indexOf("Firefox")>=0,c=a.indexOf("AppleWebKit")>=0,d=a.indexOf("Chrome")>=0,h=!d&&a.indexOf("Safari")>=0,u=!d&&!h&&c,f=a.indexOf("Electron/")>=0,g=a.indexOf("Android")>=0;let p=!1;if("function"==typeof n.mainWindow.matchMedia){const e=n.mainWindow.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=n.mainWindow.matchMedia("(display-mode: fullscreen)");p=e.matches,s(n.mainWindow,e,({matches:e})=>{p&&t.matches||(p=e)})}function m(){return p}},28272(e,t,i){i.r(t),i.d(t,{BrowserFeatures:()=>r});var n=i(65600),o=i(866),s=i(69958);const r={clipboard:{writeText:s.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:s.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:s.isNative||n.isStandalone()?0:navigator.keyboard||n.isSafari?1:2,touch:"ontouchstart"in o.mainWindow||navigator.maxTouchPoints>0,pointerEvents:o.mainWindow.PointerEvent&&("ontouchstart"in o.mainWindow||navigator.maxTouchPoints>0)}},79284(e,t,i){i.r(t),i.d(t,{$:()=>Be,Dimension:()=>j,DragAndDropObserver:()=>tt,EventHelper:()=>Oe,EventType:()=>Ee,ModifierKeyEmitter:()=>et,Namespace:()=>Ve,WindowIdleValue:()=>N,WindowIntervalTimer:()=>V,addDisposableGenericMouseDownListener:()=>R,addDisposableGenericMouseUpListener:()=>I,addDisposableListener:()=>A,addStandardDisposableGenericMouseDownListener:()=>x,addStandardDisposableGenericMouseUpListener:()=>z,addStandardDisposableListener:()=>M,after:()=>Ie,animate:()=>$e,append:()=>We,asCSSPropertyValue:()=>Xe,asCSSUrl:()=>Ye,asCssValueWithDefault:()=>Ze,basicMarkupHtmlTags:()=>Je,clearNode:()=>D,computeScreenAwareSize:()=>Ge,createCSSRule:()=>Ce,createStyleSheet:()=>ge,createStyleSheet2:()=>ue,findParentWithClass:()=>te,getActiveDocument:()=>ce,getActiveElement:()=>re,getActiveWindow:()=>de,getClientArea:()=>U,getComputedStyle:()=>B,getContentHeight:()=>Q,getContentWidth:()=>Z,getDocument:()=>y,getDomNodePagePosition:()=>$,getDomNodeZoomLevel:()=>Y,getShadowRoot:()=>se,getTopLeftOffset:()=>G,getTotalHeight:()=>J,getTotalWidth:()=>X,getWindow:()=>w,getWindowById:()=>S,getWindowId:()=>v,getWindows:()=>b,getWindowsCount:()=>C,h:()=>nt,hasParentWithClass:()=>ie,hasWindow:()=>_,hide:()=>je,hookDomPurifyHrefAndSrcSanitizer:()=>Qe,isActiveElement:()=>ae,isAncestor:()=>ee,isAncestorOfActiveElement:()=>le,isEventLike:()=>Ae,isHTMLAnchorElement:()=>Le,isHTMLElement:()=>_e,isInShadowDOM:()=>oe,isKeyboardEvent:()=>De,isMouseEvent:()=>ke,isSVGElement:()=>Te,isShadowRoot:()=>ne,onDidRegisterWindow:()=>L,onDidUnregisterWindow:()=>k,onWillUnregisterWindow:()=>T,prepend:()=>Ne,registerWindow:()=>m,removeCSSRulesContainingSelector:()=>ve,reset:()=>Pe,restoreParentsScrollTop:()=>xe,runAtThisOrScheduleAtNextAnimationFrame:()=>P,runWhenWindowIdle:()=>W,saveParentsScrollTop:()=>Me,scheduleAtNextAnimationFrame:()=>F,setVisibility:()=>Ue,sharedMutationObserver:()=>me,show:()=>Ke,size:()=>q,svgElem:()=>ot,trackFocus:()=>Re,windowOpenNoOpener:()=>qe});var n=i(65600),o=i(28272),s=i(44503),r=i(65698),a=i(30325),l=i(73226),c=i(22573),d=i(20931),h=i(32293),u=i(54835),f=i(69958),g=i(58053),p=i(866);const{registerWindow:m,getWindow:w,getDocument:y,getWindows:b,getWindowsCount:C,getWindowId:v,getWindowById:S,hasWindow:_,onDidRegisterWindow:L,onWillUnregisterWindow:T,onDidUnregisterWindow:k}=function(){const e=new Map;(0,p.ensureCodeWindow)(p.mainWindow,1);const t={window:p.mainWindow,disposables:new h.DisposableStore};e.set(p.mainWindow.vscodeWindowId,t);const i=new c.Emitter,n=new c.Emitter,o=new c.Emitter;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:o.event,onDidUnregisterWindow:n.event,registerWindow(t){if(e.has(t.vscodeWindowId))return h.Disposable.None;const s=new h.DisposableStore,r={window:t,disposables:s.add(new h.DisposableStore)};return e.set(t.vscodeWindowId,r),s.add((0,h.toDisposable)(()=>{e.delete(t.vscodeWindowId),n.fire(t)})),s.add(A(t,Ee.BEFORE_UNLOAD,()=>{o.fire(t)})),i.fire(r),s},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,n){return("number"==typeof i?e.get(i):void 0)??(n?t:void 0)},getWindow(e){const t=e;if(t?.ownerDocument?.defaultView)return t.ownerDocument.defaultView.window;const i=e;return i?.view?i.view.window:p.mainWindow},getDocument:e=>w(e).document}}();function D(e){for(;e.firstChild;)e.firstChild.remove()}class E{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function A(e,t,i,n){return new E(e,t,i,n)}function O(e,t){return function(i){return t(new r.StandardMouseEvent(e,i))}}const M=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t||"contextmenu"===t?o=O(w(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new s.StandardKeyboardEvent(t))}}(i)),A(e,t,o,n)},x=function(e,t,i){return R(e,O(w(e),t),i)},z=function(e,t,i){return I(e,O(w(e),t),i)};function R(e,t,i){return A(e,f.isIOS&&o.BrowserFeatures.pointerEvents?Ee.POINTER_DOWN:Ee.MOUSE_DOWN,t,i)}function I(e,t,i){return A(e,f.isIOS&&o.BrowserFeatures.pointerEvents?Ee.POINTER_UP:Ee.MOUSE_UP,t,i)}function W(e,t,i){return(0,a._runWhenIdle)(e,t,i)}class N extends a.AbstractIdleValue{constructor(e,t){super(e,t)}}let P,F;class V extends a.IntervalTimer{constructor(e){super(),this.defaultTarget=e&&w(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,i??this.defaultTarget)}}class H{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.onUnexpectedError)(e)}}static sort(e,t){return t.priority-e.priority}}function B(e){return w(e).getComputedStyle(e,null)}function U(e,t){const i=w(e),n=i.document;if(e!==n.body)return new j(e.clientWidth,e.clientHeight);if(f.isIOS&&i?.visualViewport)return new j(i.visualViewport.width,i.visualViewport.height);if(i?.innerWidth&&i.innerHeight)return new j(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new j(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new j(n.documentElement.clientWidth,n.documentElement.clientHeight);if(t)return U(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,n=new Map;F=(o,s,r=0)=>{const a=v(o),l=new H(s,r);let c=e.get(a);return c||(c=[],e.set(a,c)),c.push(l),i.get(a)||(i.set(a,!0),o.requestAnimationFrame(()=>(o=>{i.set(o,!1);const s=e.get(o)??[];for(t.set(o,s),e.set(o,[]),n.set(o,!0);s.length>0;)s.sort(H.sort),s.shift().execute();n.set(o,!1)})(a))),l},P=(e,i,o)=>{const s=v(e);if(n.get(s)){const e=new H(i,o);let n=t.get(s);return n||(n=[],t.set(s,n)),n.push(e),e}return F(e,i,o)}}();class K{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=B(e),o=n?n.getPropertyValue(t):"0";return K.convertToPixels(e,o)}static getBorderLeftWidth(e){return K.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return K.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return K.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return K.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return K.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return K.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return K.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return K.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return K.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return K.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return K.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return K.getDimension(e,"margin-bottom","marginBottom")}}class j{static{this.None=new j(0,0)}constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new j(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof j?e:new j(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&e.width===t.width&&e.height===t.height}}function G(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const o=ne(e)?null:B(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=K.getBorderLeftWidth(e),i+=K.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function q(e,t,i){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof i&&(e.style.height=`${i}px`)}function $(e){const t=e.getBoundingClientRect(),i=w(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function Y(e){let t=e,i=1;do{const e=B(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function X(e){const t=K.getMarginLeft(e)+K.getMarginRight(e);return e.offsetWidth+t}function Z(e){const t=K.getBorderLeftWidth(e)+K.getBorderRightWidth(e),i=K.getPaddingLeft(e)+K.getPaddingRight(e);return e.offsetWidth-t-i}function Q(e){const t=K.getBorderTopWidth(e)+K.getBorderBottomWidth(e),i=K.getPaddingTop(e)+K.getPaddingBottom(e);return e.offsetHeight-t-i}function J(e){const t=K.getMarginTop(e)+K.getMarginBottom(e);return e.offsetHeight+t}function ee(e,t){return Boolean(t?.contains(e))}function te(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"==typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}function ie(e,t,i){return!!te(e,t,i)}function ne(e){return e&&!!e.host&&!!e.mode}function oe(e){return!!se(e)}function se(e){for(;e.parentNode;){if(e===e.ownerDocument?.body)return null;e=e.parentNode}return ne(e)?e:null}function re(){let e=ce().activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ae(e){return re()===e}function le(e){return ee(re(),e)}function ce(){return C()<=1?p.mainWindow.document:Array.from(b()).map(({window:e})=>e.document).find(e=>e.hasFocus())??p.mainWindow.document}function de(){const e=ce();return e.defaultView?.window??p.mainWindow}const he=new Map;function ue(){return new fe}class fe{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=ge(p.mainWindow.document.head,t=>t.innerText=e))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function ge(e=p.mainWindow.document.head,t,i){const n=document.createElement("style");if(n.type="text/css",n.media="screen",t?.(n),e.appendChild(n),i&&i.add((0,h.toDisposable)(()=>n.remove())),e===p.mainWindow.document.head){const e=new Set;he.set(n,e);for(const{window:t,disposables:o}of b()){if(t===p.mainWindow)continue;const s=o.add(pe(n,e,t));i?.add(s)}}return n}function pe(e,t,i){const n=new h.DisposableStore,o=e.cloneNode(!0);i.document.head.appendChild(o),n.add((0,h.toDisposable)(()=>o.remove()));for(const t of be(e))o.sheet?.insertRule(t.cssText,o.sheet?.cssRules.length);return n.add(me.observe(e,n,{childList:!0})(()=>{o.textContent=e.textContent})),t.add(o),n.add((0,h.toDisposable)(()=>t.delete(o))),n}const me=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));const o=(0,g.hash)(i);let s=n.get(o);if(s)s.users+=1;else{const r=new c.Emitter,a=new MutationObserver(e=>r.fire(e));a.observe(e,i);const l=s={users:1,observer:a,onDidMutate:r.event};t.add((0,h.toDisposable)(()=>{l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),n?.delete(o),0===n?.size&&this.mutationObservers.delete(e))})),n.set(o,s)}return s.onDidMutate}};let we=null;function ye(){return we||(we=ge()),we}function be(e){return e?.sheet?.rules?e.sheet.rules:e?.sheet?.cssRules?e.sheet.cssRules:[]}function Ce(e,t,i=ye()){if(i&&t){i.sheet?.insertRule(`${e} {${t}}`,0);for(const n of he.get(i)??[])Ce(e,t,n)}}function ve(e,t=ye()){if(!t)return;const i=be(t),n=[];for(let t=0;t<i.length;t++){const o=i[t];Se(o)&&-1!==o.selectorText.indexOf(e)&&n.push(t)}for(let e=n.length-1;e>=0;e--)t.sheet?.deleteRule(n[e]);for(const i of he.get(t)??[])ve(e,i)}function Se(e){return"string"==typeof e.selectorText}function _e(e){return e instanceof HTMLElement||e instanceof w(e).HTMLElement}function Le(e){return e instanceof HTMLAnchorElement||e instanceof w(e).HTMLAnchorElement}function Te(e){return e instanceof SVGElement||e instanceof w(e).SVGElement}function ke(e){return e instanceof MouseEvent||e instanceof w(e).MouseEvent}function De(e){return e instanceof KeyboardEvent||e instanceof w(e).KeyboardEvent}const Ee={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:n.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.isWebKit?"webkitAnimationIteration":"animationiteration"};function Ae(e){const t=e;return!(!t||"function"!=typeof t.preventDefault||"function"!=typeof t.stopPropagation)}const Oe={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Me(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function xe(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class ze extends h.Disposable{static hasFocusWithin(e){if(_e(e)){const t=se(e);return ee(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return ee(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new c.Emitter),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new c.Emitter),this.onDidBlur=this._onDidBlur.event;let t=ze.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(_e(e)?w(e):e).setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{ze.hasFocusWithin(e)!==t&&(t?o():n())},this._register(A(e,Ee.FOCUS,n,!0)),this._register(A(e,Ee.BLUR,o,!0)),_e(e)&&(this._register(A(e,Ee.FOCUS_IN,()=>this._refreshStateHandler())),this._register(A(e,Ee.FOCUS_OUT,()=>this._refreshStateHandler())))}}function Re(e){return new ze(e)}function Ie(e,t){return e.after(t),t}function We(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function Ne(e,t){return e.insertBefore(t,e.firstChild),t}function Pe(e,...t){e.innerText="",We(e,...t)}const Fe=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Ve;function He(e,t,i,...n){const o=Fe.exec(t);if(!o)throw new Error("Bad use of emmet");const s=o[1]||"div";let r;return r=e!==Ve.HTML?document.createElementNS(e,s):document.createElement(s),o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?r[e]=t:"selected"===e?t&&r.setAttribute(e,"true"):r.setAttribute(e,t))}),r.append(...n),r}function Be(e,t,...i){return He(Ve.HTML,e,t,...i)}function Ue(e,...t){e?Ke(...t):je(...t)}function Ke(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function je(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Ge(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function qe(e){p.mainWindow.open(e,"_blank","noopener")}function $e(e,t){const i=()=>{t(),n=F(e,i)};let n=F(e,i);return(0,h.toDisposable)(()=>n.dispose())}function Ye(e){return e?`url('${u.FileAccess.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Xe(e){return`'${e.replace(/'/g,"%27")}'`}function Ze(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ze(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function Qe(e,t=!1){const i=document.createElement("a");return d.addHook("afterSanitizeAttributes",n=>{for(const o of["href","src"])if(n.hasAttribute(o)){const s=n.getAttribute(o);if("href"===o&&s.startsWith("#"))continue;if(i.href=s,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===o&&i.href.startsWith("data:"))continue;n.removeAttribute(o)}}}),(0,h.toDisposable)(()=>{d.removeHook("afterSanitizeAttributes")})}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Ve||(Ve={})),Be.SVG=function(e,t,...i){return He(Ve.SVG,e,t,...i)},u.RemoteAuthorities.setPreferredWebSchema(/^https:/.test(p.mainWindow.location.href)?"https":"http");const Je=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class et extends c.Emitter{constructor(){super(),this._subscriptions=new h.DisposableStore,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(c.Event.runAndSubscribe(L,({window:e,disposables:t})=>this.registerListeners(e,t),{window:p.mainWindow,disposables:this._subscriptions}))}registerListeners(e,t){t.add(A(e,"keydown",e=>{if(e.defaultPrevented)return;const t=new s.StandardKeyboardEvent(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),t.add(A(e,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),t.add(A(e.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(A(e.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),t.add(A(e.document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),t.add(A(e,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return et.instance||(et.instance=new et),et.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class tt extends h.Disposable{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(A(this.element,Ee.DRAG_START,e=>{this.callbacks.onDragStart?.(e)})),this.callbacks.onDrag&&this._register(A(this.element,Ee.DRAG,e=>{this.callbacks.onDrag?.(e)})),this._register(A(this.element,Ee.DRAG_ENTER,e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter?.(e)})),this._register(A(this.element,Ee.DRAG_OVER,e=>{e.preventDefault(),this.callbacks.onDragOver?.(e,e.timeStamp-this.dragStartTime)})),this._register(A(this.element,Ee.DRAG_LEAVE,e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave?.(e))})),this._register(A(this.element,Ee.DRAG_END,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd?.(e)})),this._register(A(this.element,Ee.DROP,e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop?.(e)}))}}const it=/(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;function nt(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);const o=it.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");const s=o.groups.tag||"div",r=document.createElement(s);o.groups.id&&(r.id=o.groups.id);const a=[];if(o.groups.class)for(const e of o.groups.class.split("."))""!==e&&a.push(e);if(void 0!==i.className)for(const e of i.className.split("."))""!==e&&a.push(e);a.length>0&&(r.className=a.join(" "));const l={};if(o.groups.name&&(l[o.groups.name]=r),n)for(const e of n)_e(e)?r.appendChild(e):"string"==typeof e?r.append(e):"root"in e&&(Object.assign(l,e),r.appendChild(e.root));for(const[e,t]of Object.entries(i))if("className"!==e)if("style"===e)for(const[e,i]of Object.entries(t))r.style.setProperty(st(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?r.tabIndex=t:r.setAttribute(st(e),t.toString());return l.root=r,l}function ot(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);const o=it.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");const s=o.groups.tag||"div",r=document.createElementNS("http://www.w3.org/2000/svg",s);o.groups.id&&(r.id=o.groups.id);const a=[];if(o.groups.class)for(const e of o.groups.class.split("."))""!==e&&a.push(e);if(void 0!==i.className)for(const e of i.className.split("."))""!==e&&a.push(e);a.length>0&&(r.className=a.join(" "));const l={};if(o.groups.name&&(l[o.groups.name]=r),n)for(const e of n)_e(e)?r.appendChild(e):"string"==typeof e?r.append(e):"root"in e&&(Object.assign(l,e),r.appendChild(e.root));for(const[e,t]of Object.entries(i))if("className"!==e)if("style"===e)for(const[e,i]of Object.entries(t))r.style.setProperty(st(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?r.tabIndex=t:r.setAttribute(st(e),t.toString());return l.root=r,l}function st(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},20931(e,t,i){i.r(t),i.d(t,{addHook:()=>le,clearConfig:()=>re,default:()=>te,isSupported:()=>ne,isValidAttribute:()=>ae,removeAllHooks:()=>he,removeHook:()=>ce,removeHooks:()=>de,sanitize:()=>oe,setConfig:()=>se,version:()=>ie});const{entries:n,setPrototypeOf:o,isFrozen:s,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:c,create:d}=Object,{apply:h,construct:u}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),h||(h=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const f=k(Array.prototype.forEach),g=k(Array.prototype.pop),p=k(Array.prototype.push),m=k(String.prototype.toLowerCase),w=k(String.prototype.toString),y=k(String.prototype.match),b=k(String.prototype.replace),C=k(String.prototype.indexOf),v=k(String.prototype.trim),S=k(Object.prototype.hasOwnProperty),_=k(RegExp.prototype.test),L=(T=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(T,t)});var T;function k(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return h(e,t,n)}}function D(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;o&&o(e,null);let n=t.length;for(;n--;){let o=t[n];if("string"==typeof o){const e=i(o);e!==o&&(s(t)||(t[n]=e),o=e)}e[o]=!0}return e}function E(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}function A(e){const t=d(null);for(const[i,o]of n(e))S(e,i)&&(Array.isArray(o)?t[i]=E(o):o&&"object"==typeof o&&o.constructor===Object?t[i]=A(o):t[i]=o);return t}function O(e,t){for(;null!==e;){const i=a(e,t);if(i){if(i.get)return k(i.get);if("function"==typeof i.value)return k(i.value)}e=r(e)}return function(){return null}}const M=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),x=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),W=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N=l(["#text"]),P=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),F=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=c(/<%[\w\W]*|[\w\W]*%>/gm),K=c(/\${[\w\W]*}/gm),j=c(/^data-[\-\w.\u00B7-\uFFFF]/),G=c(/^aria-[\-\w]+$/),q=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=c(/^(?:\w+script|data):/i),Y=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=c(/^html$/i),Z=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:U,TMPLIT_EXPR:K,DATA_ATTR:j,ARIA_ATTR:G,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:Y,DOCTYPE_NAME:X,CUSTOM_ELEMENT:Z});const J=function(){return"undefined"==typeof window?null:window};var ee=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J();const i=t=>e(t);if(i.version="3.1.7",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;let{document:o}=t;const s=o,r=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:h,Element:u,NodeFilter:T,NamedNodeMap:k=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:E,DOMParser:B,trustedTypes:U}=t,K=u.prototype,j=O(K,"cloneNode"),G=O(K,"remove"),$=O(K,"nextSibling"),Y=O(K,"childNodes"),Z=O(K,"parentNode");if("function"==typeof c){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let ee,te="";const{implementation:ie,createNodeIterator:ne,createDocumentFragment:oe,getElementsByTagName:se}=o,{importNode:re}=s;let ae={};i.isSupported="function"==typeof n&&"function"==typeof Z&&ie&&void 0!==ie.createHTMLDocument;const{MUSTACHE_EXPR:le,ERB_EXPR:ce,TMPLIT_EXPR:de,DATA_ATTR:he,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:pe}=Q;let{IS_ALLOWED_URI:me}=Q,we=null;const ye=D({},[...M,...x,...z,...I,...N]);let be=null;const Ce=D({},[...P,...F,...V,...H]);let ve=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,_e=null,Le=!0,Te=!0,ke=!1,De=!0,Ee=!1,Ae=!0,Oe=!1,Me=!1,xe=!1,ze=!1,Re=!1,Ie=!1,We=!0,Ne=!1,Pe=!0,Fe=!1,Ve={},He=null;const Be=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ue=null;const Ke=D({},["audio","video","img","source","image","track"]);let je=null;const Ge=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qe="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml";let Xe=Ye,Ze=!1,Qe=null;const Je=D({},[qe,$e,Ye],w);let et=null;const tt=["application/xhtml+xml","text/html"];let it=null,nt=null;const ot=o.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},rt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!nt||nt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),et=-1===tt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,it="application/xhtml+xml"===et?w:m,we=S(e,"ALLOWED_TAGS")?D({},e.ALLOWED_TAGS,it):ye,be=S(e,"ALLOWED_ATTR")?D({},e.ALLOWED_ATTR,it):Ce,Qe=S(e,"ALLOWED_NAMESPACES")?D({},e.ALLOWED_NAMESPACES,w):Je,je=S(e,"ADD_URI_SAFE_ATTR")?D(A(Ge),e.ADD_URI_SAFE_ATTR,it):Ge,Ue=S(e,"ADD_DATA_URI_TAGS")?D(A(Ke),e.ADD_DATA_URI_TAGS,it):Ke,He=S(e,"FORBID_CONTENTS")?D({},e.FORBID_CONTENTS,it):Be,Se=S(e,"FORBID_TAGS")?D({},e.FORBID_TAGS,it):{},_e=S(e,"FORBID_ATTR")?D({},e.FORBID_ATTR,it):{},Ve=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,Le=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ee=e.SAFE_FOR_TEMPLATES||!1,Ae=!1!==e.SAFE_FOR_XML,Oe=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,Ie=e.RETURN_TRUSTED_TYPE||!1,xe=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ne=e.SANITIZE_NAMED_PROPS||!1,Pe=!1!==e.KEEP_CONTENT,Fe=e.IN_PLACE||!1,me=e.ALLOWED_URI_REGEXP||q,Xe=e.NAMESPACE||Ye,ve=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ve.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ve.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ve.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(Te=!1),Re&&(ze=!0),Ve&&(we=D({},N),be=[],!0===Ve.html&&(D(we,M),D(be,P)),!0===Ve.svg&&(D(we,x),D(be,F),D(be,H)),!0===Ve.svgFilters&&(D(we,z),D(be,F),D(be,H)),!0===Ve.mathMl&&(D(we,I),D(be,V),D(be,H))),e.ADD_TAGS&&(we===ye&&(we=A(we)),D(we,e.ADD_TAGS,it)),e.ADD_ATTR&&(be===Ce&&(be=A(be)),D(be,e.ADD_ATTR,it)),e.ADD_URI_SAFE_ATTR&&D(je,e.ADD_URI_SAFE_ATTR,it),e.FORBID_CONTENTS&&(He===Be&&(He=A(He)),D(He,e.FORBID_CONTENTS,it)),Pe&&(we["#text"]=!0),Oe&&D(we,["html","head","body"]),we.table&&(D(we,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=e.TRUSTED_TYPES_POLICY,te=ee.createHTML("")}else void 0===ee&&(ee=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(U,r)),null!==ee&&"string"==typeof te&&(te=ee.createHTML(""));l&&l(e),nt=e}},at=D({},["mi","mo","mn","ms","mtext"]),lt=D({},["annotation-xml"]),ct=D({},["title","style","font","a","script"]),dt=D({},[...x,...z,...R]),ht=D({},[...I,...W]),ut=function(e){p(i.removed,{element:e});try{Z(e).removeChild(e)}catch(t){G(e)}},ft=function(e,t){try{p(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!be[e])if(ze||Re)try{ut(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){let t=null,i=null;if(xe)e="<remove></remove>"+e;else{const t=y(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===et&&Xe===Ye&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=ee?ee.createHTML(e):e;if(Xe===Ye)try{t=(new B).parseFromString(n,et)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Ze?te:n}catch(e){}}const s=t.body||t.documentElement;return e&&i&&s.insertBefore(o.createTextNode(i),s.childNodes[0]||null),Xe===Ye?se.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:s},pt=function(e){return ne.call(e.ownerDocument||e,e,T.SHOW_ELEMENT|T.SHOW_COMMENT|T.SHOW_TEXT|T.SHOW_PROCESSING_INSTRUCTION|T.SHOW_CDATA_SECTION,null)},mt=function(e){return e instanceof E&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof k)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof h&&e instanceof h},yt=function(e,t,n){ae[e]&&f(ae[e],e=>{e.call(i,t,n,nt)})},bt=function(e){let t=null;if(yt("beforeSanitizeElements",e,null),mt(e))return ut(e),!0;const n=it(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:n,allowedTags:we}),e.hasChildNodes()&&!wt(e.firstElementChild)&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return ut(e),!0;if(7===e.nodeType)return ut(e),!0;if(Ae&&8===e.nodeType&&_(/<[/\w]/g,e.data))return ut(e),!0;if(!we[n]||Se[n]){if(!Se[n]&&vt(n)){if(ve.tagNameCheck instanceof RegExp&&_(ve.tagNameCheck,n))return!1;if(ve.tagNameCheck instanceof Function&&ve.tagNameCheck(n))return!1}if(Pe&&!He[n]){const t=Z(e)||e.parentNode,i=Y(e)||e.childNodes;if(i&&t)for(let n=i.length-1;n>=0;--n){const o=j(i[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,$(e))}}return ut(e),!0}return e instanceof u&&!function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const i=m(e.tagName),n=m(t.tagName);return!!Qe[e.namespaceURI]&&(e.namespaceURI===$e?t.namespaceURI===Ye?"svg"===i:t.namespaceURI===qe?"svg"===i&&("annotation-xml"===n||at[n]):Boolean(dt[i]):e.namespaceURI===qe?t.namespaceURI===Ye?"math"===i:t.namespaceURI===$e?"math"===i&<[n]:Boolean(ht[i]):e.namespaceURI===Ye?!(t.namespaceURI===$e&&!lt[n])&&!(t.namespaceURI===qe&&!at[n])&&!ht[i]&&(ct[i]||!dt[i]):!("application/xhtml+xml"!==et||!Qe[e.namespaceURI]))}(e)?(ut(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ee&&3===e.nodeType&&(t=e.textContent,f([le,ce,de],e=>{t=b(t,e," ")}),e.textContent!==t&&(p(i.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(ut(e),!0)},Ct=function(e,t,i){if(We&&("id"===t||"name"===t)&&(i in o||i in ot))return!1;if(Te&&!_e[t]&&_(he,t));else if(Le&&_(ue,t));else if(!be[t]||_e[t]){if(!(vt(e)&&(ve.tagNameCheck instanceof RegExp&&_(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&_(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t))||"is"===t&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&_(ve.tagNameCheck,i)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(i))))return!1}else if(je[t]);else if(_(me,b(i,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(i,"data:")||!Ue[e])if(ke&&!_(fe,b(i,ge,"")));else if(i)return!1;return!0},vt=function(e){return"annotation-xml"!==e&&y(e,pe)},St=function(e){yt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be};let o=t.length;for(;o--;){const s=t[o],{name:r,namespaceURI:a,value:l}=s,c=it(r);let d="value"===r?l:v(l);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,n),d=n.attrValue,n.forceKeepAttr)continue;if(ft(r,e),!n.keepAttr)continue;if(!De&&_(/\/>/i,d)){ft(r,e);continue}Ee&&f([le,ce,de],e=>{d=b(d,e," ")});const h=it(e.nodeName);if(Ct(h,c,d))if(!Ne||"id"!==c&&"name"!==c||(ft(r,e),d="user-content-"+d),Ae&&_(/((--!?|])>)|<\/(style|title)/i,d))ft(r,e);else{if(ee&&"object"==typeof U&&"function"==typeof U.getAttributeType)if(a);else switch(U.getAttributeType(h,c)){case"TrustedHTML":d=ee.createHTML(d);break;case"TrustedScriptURL":d=ee.createScriptURL(d)}try{a?e.setAttributeNS(a,r,d):e.setAttribute(r,d),mt(e)?ut(e):g(i.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)},_t=function e(t){let i=null;const n=pt(t);for(yt("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)yt("uponSanitizeShadowNode",i,null),bt(i)||(i.content instanceof a&&e(i.content),St(i));yt("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,r=null,l=null;if(Ze=!e,Ze&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw L("toString is not a function");if("string"!=typeof(e=e.toString()))throw L("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Me||rt(t),i.removed=[],"string"==typeof e&&(Fe=!1),Fe){if(e.nodeName){const t=it(e.nodeName);if(!we[t]||Se[t])throw L("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof h)n=gt("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!ze&&!Ee&&!Oe&&-1===e.indexOf("<"))return ee&&Ie?ee.createHTML(e):e;if(n=gt(e),!n)return ze?null:Ie?te:""}n&&xe&&ut(n.firstChild);const c=pt(Fe?e:n);for(;r=c.nextNode();)bt(r)||(r.content instanceof a&&_t(r.content),St(r));if(Fe)return e;if(ze){if(Re)for(l=oe.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(be.shadowroot||be.shadowrootmode)&&(l=re.call(s,l,!0)),l}let d=Oe?n.outerHTML:n.innerHTML;return Oe&&we["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(X,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Ee&&f([le,ce,de],e=>{d=b(d,e," ")}),ee&&Ie?ee.createHTML(d):d},i.setConfig=function(){rt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},i.clearConfig=function(){nt=null,Me=!1},i.isValidAttribute=function(e,t,i){nt||rt({});const n=it(e),o=it(t);return Ct(n,o,i)},i.addHook=function(e,t){"function"==typeof t&&(ae[e]=ae[e]||[],p(ae[e],t))},i.removeHook=function(e){if(ae[e])return g(ae[e])},i.removeHooks=function(e){ae[e]&&(ae[e]=[])},i.removeAllHooks=function(){ae={}},i}();const te=ee,ie=ee.version,ne=ee.isSupported,oe=ee.sanitize,se=ee.setConfig,re=ee.clearConfig,ae=ee.isValidAttribute,le=ee.addHook,ce=ee.removeHook,de=ee.removeHooks,he=ee.removeAllHooks},43618(e,t,i){i.r(t),i.d(t,{FastDomNode:()=>n,createFastDomNode:()=>s});class n{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=o(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=o(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=o(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=o(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=o(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=o(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=o(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=o(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=o(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=o(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=o(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e