@digital-realty/ui-knowledgebase 17.0.3 → 17.0.4-IXUAT-11245.566629

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.
@@ -1,6 +1,6 @@
1
- import{LitElement as e,css as t,html as n,nothing as r,svg as i}from"lit";import{customElement as a,property as o,state as s}from"lit/decorators.js";import{Router as c}from"@vaadin/router";import{unsafeHTML as l}from"lit/directives/unsafe-html.js";import"@digital-realty/ix-search-bar/ix-search-bar.js";import{styleMap as u}from"lit/directives/style-map.js";import"@digital-realty/ix-icon/ix-icon.js";import"@digital-realty/ix-progress/ix-progress.js";import{repeat as d}from"lit/directives/repeat.js";import"@digital-realty/ix-button/ix-button.js";import{live as f}from"lit/directives/live.js";import{ifDefined as p}from"lit/directives/if-defined.js";import"@digital-realty/ix-switch/ix-switch.js";var m=null;function ee(e,t,n){m=new c(e,{baseUrl:`/`}),m.setRoutes(n)}function te(){return m}function ne(){m?.unsubscribe(),m?.setRoutes([],!0),m=null}var h=window.registeredApps?.[`ui-knowledgebase`]?.path??`/knowledge-base`,re=e=>e===h||e.startsWith(`${h}/`);function g(e,t,n){if(e!=null){if(Array.isArray(e)){e.forEach((e,r)=>g(e,`${t}[${r}]`,n));return}if(typeof e==`object`){for(let[r,i]of Object.entries(e))i!==void 0&&g(i,`${t}[${r}]`,n);return}n.push(`${encodeURIComponent(t)}=${encodeURIComponent(String(e))}`)}}function ie(e){let t=[];for(let[n,r]of Object.entries(e))r!==void 0&&g(r,n,t);return t.length?`?${t.join(`&`)}`:``}function _(e,t){if(!e)return``;try{let n=new URL(t);if(![`http:`,`https:`].includes(n.protocol)||n.username||n.password)return``;n.pathname=`${n.pathname.replace(/\/$/,``)}/`,n.search=``,n.hash=``;let r=e.startsWith(`/`)&&!e.startsWith(`//`)?e.slice(1):e,i=new URL(r,n);if(![`http:`,`https:`].includes(i.protocol)||i.username||i.password)return``;let a=e=>[`localhost`,`127.0.0.1`,`[::1]`].includes(e)||e.endsWith(`.localhost`);return a(n.hostname)&&!a(i.hostname)?``:i.href}catch{return``}}function ae(e,t){this.v=e,this.k=t}function oe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e){if(Array.isArray(e))return e}function se(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ce(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(e,t){return v(e)||se(e,t)||ue(e,t)||ce()}function ue(e,t){if(e){if(typeof e==`string`)return oe(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}function de(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof ae;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}de.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},de.prototype.next=function(e){return this._invoke(`next`,e)},de.prototype.throw=function(e){return this._invoke(`throw`,e)},de.prototype.return=function(e){return this._invoke(`return`,e)};var fe=Object.entries,pe=Object.setPrototypeOf,me=Object.isFrozen,he=Object.getPrototypeOf,ge=Object.getOwnPropertyDescriptor,y=Object.freeze,b=Object.seal,_e=Object.create,ve=typeof Reflect<`u`&&Reflect,ye=ve.apply,be=ve.construct;y||=function(e){return e},b||=function(e){return e},ye||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},be||=function(e){return new e(...[...arguments].slice(1))};var xe=w(Array.prototype.forEach);Array.prototype.indexOf;var Se=w(Array.prototype.lastIndexOf),Ce=w(Array.prototype.pop),we=w(Array.prototype.push);Array.prototype.slice;var Te=w(Array.prototype.splice),Ee=Array.isArray,De=w(String.prototype.toLowerCase),Oe=w(String.prototype.toString),ke=w(String.prototype.match),Ae=w(String.prototype.replace),je=w(String.prototype.indexOf),Me=w(String.prototype.trim),Ne=w(Number.prototype.toString),Pe=w(Boolean.prototype.toString),x=typeof BigInt>`u`?null:w(BigInt.prototype.toString),Fe=typeof Symbol>`u`?null:w(Symbol.prototype.toString),S=w(Object.prototype.hasOwnProperty),Ie=w(Object.prototype.toString),C=w(RegExp.prototype.test),Le=Re(TypeError);function w(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return ye(e,t,n)}}function Re(e){return function(){return be(e,[...arguments])}}function T(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:De;if(pe&&pe(e,null),!Ee(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(me(t)||(t[r]=e),i=e)}e[i]=!0}return e}function ze(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}function E(e){let t=_e(null);for(let r of fe(e)){var n=le(r,2);let i=n[0],a=n[1];S(e,i)&&(t[i]=Ee(a)?ze(a):a&&typeof a==`object`&&a.constructor===Object?E(a):a)}return t}function Be(e){switch(typeof e){case`string`:return e;case`number`:return Ne(e);case`boolean`:return Pe(e);case`bigint`:return x?x(e):`0`;case`symbol`:return Fe?Fe(e):`Symbol()`;case`undefined`:return Ie(e);case`function`:case`object`:{if(e===null)return Ie(e);let t=e,n=D(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Ie(e)}return Ie(e)}default:return Ie(e)}}function D(e,t){for(;e!==null;){let n=ge(e,t);if(n){if(n.get)return w(n.get);if(typeof n.value==`function`)return w(n.value)}e=he(e)}function n(){return null}return n}function Ve(e){try{return C(e,``),!0}catch{return!1}}var He=y(`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.search.section.select.shadow.slot.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`.split(`.`)),Ue=y(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),We=y([`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`]),Ge=y([`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`]),Ke=y(`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`.split(`.`)),qe=y([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Je=y([`#text`]),Ye=y(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.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.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Xe=y(`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.dominant-baseline.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.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.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-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.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`.split(`.`)),Ze=y(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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`.split(`.`)),Qe=y([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),$e=b(/{{[\w\W]*|^[\w\W]*}}/g),et=b(/<%[\w\W]*|^[\w\W]*%>/g),tt=b(/\${[\w\W]*/g),nt=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),rt=b(/^aria-[\-\w]+$/),it=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),at=b(/^(?:\w+script|data):/i),ot=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),st=b(/^html$/i),ct=b(/^[a-z][.\w]*(-[.\w]+)+$/i),lt=b(/<[/\w!]/g),ut=b(/<[/\w]/g),dt=b(/<\/no(script|embed|frames)/i),ft=b(/\/>/i),O={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},pt=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],mt=y(T({},pt)),ht=function(){let e={};return xe(pt,t=>{e[t]=b(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),y(e)}(),gt=function(){return typeof window>`u`?null:window},_t=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},vt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},k=function(e,t,n,r){return S(e,t)&&Ee(e[t])?T(r.base?E(r.base):{},e[t],r.transform):n},yt=function(e,t,n){let r=S(e,t)?e[t]:void 0;return r&&typeof r==`object`?E(r):n()};function bt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt(),t=e=>bt(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==O.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=D(d,`cloneNode`),p=D(d,`remove`),m=D(d,`removeAttributeNode`),ee=D(d,`nextSibling`),te=D(d,`childNodes`),ne=D(d,`parentNode`),h=D(d,`shadowRoot`),re=D(d,`attributes`),g=o&&o.prototype?D(o.prototype,`nodeType`):null,ie=o&&o.prototype?D(o.prototype,`nodeName`):null,_=o&&o.prototype?D(o.prototype,`ownerDocument`):null,ae=function(e){return g?g(e):e.nodeType},oe=function(e){return ie?ie(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let v,se=``,ce,le=!1,ue=0,de=function(){if(ue>0)throw Le(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},pe=function(e){de(),ue++;try{return v.createHTML(e)}finally{ue--}},me=function(e){de(),ue++;try{return v.createScriptURL(e)}finally{ue--}},he=function(){return le||=(ce=_t(u,i),!0),ce},ge=n,ve=ge.implementation,ye=ge.createNodeIterator,be=ge.createDocumentFragment,Ne=ge.getElementsByTagName,Pe=r.importNode,x=vt();t.isSupported=typeof fe==`function`&&typeof ne==`function`&&ve&&ve.createHTMLDocument!==void 0;let Fe=$e,Ie=et,w=tt,Re=nt,ze=rt,pt=at,xt=ot,St=ct,Ct=it,A=null,wt=T({},[...He,...Ue,...We,...Ke,...Je]),j=null,M=T({},[...Ye,...Xe,...Ze,...Qe]),N=Object.seal(_e(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}})),Tt=null,Et=null,P=Object.seal(_e(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Dt=!0,F=!0,Ot=!1,kt=!0,I=!1,L=!0,R=!1,At=!1,jt=null,Mt=null,Nt=!1,z=!1,Pt=!1,Ft=!1,It=!0,Lt=!1,Rt=`user-content-`,zt=!0,Bt=!1,B={},V=null,Vt=T({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),H=null,Ht=T({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ut=null,Wt=T({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Gt=`http://www.w3.org/1998/Math/MathML`,Kt=`http://www.w3.org/2000/svg`,U=`http://www.w3.org/1999/xhtml`,qt=U,Jt=!1,Yt=null,Xt=T({},[Gt,Kt,U],Oe),Zt=y([`mi`,`mo`,`mn`,`ms`,`mtext`]),Qt=T({},Zt),$t=y([`annotation-xml`]),en=T({},$t),tn=T({},[`title`,`style`,`font`,`a`,`script`]),W=null,nn=[`application/xhtml+xml`,`text/html`],G=null,rn=null,an=n.createElement(`form`),on=function(e){return e instanceof RegExp||e instanceof Function},sn=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rn&&rn===e)return;(!e||typeof e!=`object`)&&(e={}),e=E(e),W=nn.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,G=W===`application/xhtml+xml`?Oe:De,A=k(e,`ALLOWED_TAGS`,wt,{transform:G}),j=k(e,`ALLOWED_ATTR`,M,{transform:G}),Yt=k(e,`ALLOWED_NAMESPACES`,Xt,{transform:Oe}),Ut=k(e,`ADD_URI_SAFE_ATTR`,Wt,{transform:G,base:Wt}),H=k(e,`ADD_DATA_URI_TAGS`,Ht,{transform:G,base:Ht}),V=k(e,`FORBID_CONTENTS`,Vt,{transform:G}),Tt=k(e,`FORBID_TAGS`,E({}),{transform:G}),Et=k(e,`FORBID_ATTR`,E({}),{transform:G}),B=S(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?E(e.USE_PROFILES):e.USE_PROFILES:!1,Dt=e.ALLOW_ARIA_ATTR!==!1,F=e.ALLOW_DATA_ATTR!==!1,Ot=e.ALLOW_UNKNOWN_PROTOCOLS||!1,kt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,I=e.SAFE_FOR_TEMPLATES||!1,L=e.SAFE_FOR_XML!==!1,R=e.WHOLE_DOCUMENT||!1,z=e.RETURN_DOM||!1,Pt=e.RETURN_DOM_FRAGMENT||!1,Ft=e.RETURN_TRUSTED_TYPE||!1,Nt=e.FORCE_BODY||!1,It=e.SANITIZE_DOM!==!1,Lt=e.SANITIZE_NAMED_PROPS||!1,zt=e.KEEP_CONTENT!==!1,Bt=e.IN_PLACE||!1,Ct=Ve(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:it,qt=typeof e.NAMESPACE==`string`?e.NAMESPACE:U,Qt=yt(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>T({},Zt)),en=yt(e,`HTML_INTEGRATION_POINTS`,()=>T({},$t));let t=yt(e,`CUSTOM_ELEMENT_HANDLING`,()=>_e(null));if(N=_e(null),S(t,`tagNameCheck`)&&on(t.tagNameCheck)&&(N.tagNameCheck=t.tagNameCheck),S(t,`attributeNameCheck`)&&on(t.attributeNameCheck)&&(N.attributeNameCheck=t.attributeNameCheck),S(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(N.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),b(N),I&&(F=!1),Pt&&(z=!0),B&&(A=T({},Je),j=_e(null),B.html===!0&&(T(A,He),T(j,Ye)),B.svg===!0&&(T(A,Ue),T(j,Xe),T(j,Qe)),B.svgFilters===!0&&(T(A,We),T(j,Xe),T(j,Qe)),B.mathMl===!0&&(T(A,Ke),T(j,Ze),T(j,Qe))),P.tagCheck=null,P.attributeCheck=null,S(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?P.tagCheck=e.ADD_TAGS:Ee(e.ADD_TAGS)&&(A===wt&&(A=E(A)),T(A,e.ADD_TAGS,G))),S(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?P.attributeCheck=e.ADD_ATTR:Ee(e.ADD_ATTR)&&(j===M&&(j=E(j)),T(j,e.ADD_ATTR,G))),S(e,`ADD_FORBID_CONTENTS`)&&Ee(e.ADD_FORBID_CONTENTS)&&(V===Vt&&(V=E(V)),T(V,e.ADD_FORBID_CONTENTS,G)),zt&&(A[`#text`]=!0),R&&T(A,[`html`,`head`,`body`]),A.table&&(T(A,[`tbody`]),delete Tt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Le(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Le(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=v;v=e.TRUSTED_TYPES_POLICY;try{se=pe(``)}catch(e){throw v=t,e}}else e.TRUSTED_TYPES_POLICY===null?(v=void 0,se=``):(v===void 0&&(v=he()),v&&typeof se==`string`&&(se=pe(``)));y&&y(e),rn=e},cn=T({},[...Ue,...We,...Ge]),ln=T({},[...Ke,...qe]),un=function(e,t,n){return t.namespaceURI===U?e===`svg`:t.namespaceURI===Gt?e===`svg`&&(n===`annotation-xml`||Qt[n]):!!cn[e]},dn=function(e,t,n){return t.namespaceURI===U?e===`math`:t.namespaceURI===Kt?e===`math`&&en[n]:!!ln[e]},fn=function(e,t,n){return t.namespaceURI===Kt&&!en[n]||t.namespaceURI===Gt&&!Qt[n]?!1:!ln[e]&&(tn[e]||!cn[e])},pn=function(e){let t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:qt,tagName:`template`});let n=De(e.tagName),r=De(t.tagName);return Yt[e.namespaceURI]?e.namespaceURI===Kt?un(n,t,r):e.namespaceURI===Gt?dn(n,t,r):e.namespaceURI===U?fn(n,t,r):!!(W===`application/xhtml+xml`&&Yt[e.namespaceURI]):!1},mn=function(e){we(t.removed,{element:e});try{ne(e).removeChild(e)}catch{if(p(e),!ne(e))throw Le(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},K=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},hn=function(e){_n(e);let t=te(e);if(t){let e=[];xe(t,t=>{we(e,t)}),xe(e,e=>{try{p(e)}catch{}})}let n=re(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&K(e,r,i)}},q=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}we(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(z||Pt)try{mn(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},gn=function(e){let t=re(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||j[G(i)]||K(e,r,i)}},_n=function(e){let t=[e];for(;t.length>0;){let e=t.pop();ae(e)===O.element&&gn(e);let n=te(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},vn=function(e,t){return L?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},yn=function(e){if(!L)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=ae(e);if(n===O.processingInstruction||n===O.comment&&C(ut,e.data)){try{p(e)}catch{}continue}if(n===O.element){let t=e,n=G(oe(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&vn(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=te(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},bn=function(e){let t=null,r=null;if(Nt)e=`<remove></remove>`+e;else{let t=ke(e,/^[\r\n\t ]+/);r=t&&t[0]}W===`application/xhtml+xml`&&qt===U&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=v?pe(e):e;if(qt===U)try{t=new l().parseFromString(i,W)}catch{}if(!t||!t.documentElement){t=ve.createDocument(qt,`template`,null);try{t.documentElement.innerHTML=Jt?se:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),qt===U?Ne.call(t,R?`html`:`body`)[0]:R?t.documentElement:a},xn=function(e){let t=_?_(e):e.ownerDocument;return ye.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Sn=function(e){return e=Ae(e,Fe,` `),e=Ae(e,Ie,` `),e=Ae(e,w,` `),e},Cn=function(e){e.normalize();let t=_?_(e):e.ownerDocument,n=ye.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Sn(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&xe(i,e=>{Y(e.content)&&Cn(e.content)})},J=function(e){let t=ie?ie(e):null;return typeof t!=`string`||G(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==re(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==g(e)||e.childNodes!==te(e)},Y=function(e){if(!g||typeof e!=`object`||!e)return!1;try{return g(e)===O.documentFragment}catch{return!1}},wn=function(e){if(!g||typeof e!=`object`||!e)return!1;try{return typeof g(e)==`number`}catch{return!1}};function X(e,n,r){e.length!==0&&xe(e,e=>{e.call(t,n,r,rn)})}let Tn=function(e,t){return!!(L&&e.hasChildNodes()&&!wn(e.firstElementChild)&&C(lt,e.textContent)&&C(lt,e.innerHTML)||L&&e.namespaceURI===U&&mt[t]&&(wn(e.firstElementChild)||typeof e.textContent==`string`&&C(ht[t],e.textContent))||e.nodeType===O.processingInstruction||L&&e.nodeType===O.comment&&C(ut,e.data))},En=function(e,t){return e instanceof RegExp?C(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Dn=function(e,t,n){if(!Tt[t]&&Mn(t)&&En(N.tagNameCheck,t))return!1;if(zt&&!V[t]){let t=ne(e),r=te(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,ee(e))}}}return mn(e),!0},On=function(e,t,n,r){return e.length===0?t:t===n||t===r?E(t):t},Z=function(e,t){return e===t||ne(e)!==null?!1:(Bt&&_n(e),!0)},kn=function(e,n){if(X(x.beforeSanitizeElements,e,null),Z(e,n))return!0;if(J(e))return mn(e),!0;let r=G(oe(e));if(A=On(x.uponSanitizeElement,A,wt,jt),X(x.uponSanitizeElement,e,{tagName:r,allowedTags:A}),Z(e,n))return!0;if(Tn(e,r))return mn(e),!0;if(Tt[r]||!(P.tagCheck instanceof Function&&P.tagCheck(r))&&!A[r]){let t=Dn(e,r,n);return t===!1&&(X(x.afterSanitizeElements,e,null),Z(e,n))?!0:t}if(ae(e)===O.element&&!pn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&C(dt,e.innerHTML))return mn(e),!0;if(I&&e.nodeType===O.text){let n=Sn(e.textContent);e.textContent!==n&&(we(t.removed,{element:e.cloneNode()}),e.textContent=n)}return X(x.afterSanitizeElements,e,null),Z(e,n)},An=function(e,t,r){if(Et[t]||vn(t,e)||It&&(t===`id`||t===`name`)&&(r in n||r in an))return!1;let i=j[t]||P.attributeCheck instanceof Function&&P.attributeCheck(t,e);return F&&C(Re,t)||Dt&&C(ze,t)?!0:i?Ut[t]||C(Ct,Ae(r,xt,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&je(r,`data:`)===0&&H[e]||Ot&&!C(pt,Ae(r,xt,``))?!0:!r:Mn(e)&&En(N.tagNameCheck,e)&&En(N.attributeNameCheck,t,e)||t===`is`&&N.allowCustomizedBuiltInElements&&En(N.tagNameCheck,r)},jn=T({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Mn=function(e){return!jn[De(e)]&&C(St,e)},Nn=function(e,t,n,r){if(v&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return pe(r);case`TrustedScriptURL`:return me(r)}return r},Pn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!J(e)||(mn(e),!1)}catch{return q(t,e),!1}},Fn=function(e,n){if(X(x.beforeSanitizeAttributes,e,null),Z(e,n))return;let r=e.attributes;if(!r||J(e))return;j=On(x.uponSanitizeAttribute,j,M,Mt);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0},a=r.length,o=G(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=G(s),d=l,f=s===`value`?d:Me(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,X(x.uponSanitizeAttribute,e,i),f=i.attrValue,Lt&&(u===`id`||u===`name`)&&je(f,Rt)!==0&&(q(s,e,n),f=Rt+f,p=!0),L&&C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){q(s,e,n);continue}if(u===`attributename`&&ke(f,`href`)){q(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){q(s,e,n);continue}if(!kt&&C(ft,f)){q(s,e,n);continue}if(I&&(f=Sn(f)),!An(o,u,f)){q(s,e,n);continue}f=Nn(o,u,c,f),f!==d&&Pn(e,s,c,f)&&p&&Ce(t.removed)}}X(x.afterSanitizeAttributes,e,null),Z(e,n)},Q=function(e){let t=null,n=xn(e);for(X(x.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(X(x.uponSanitizeShadowNode,t,null),kn(t,e),Fn(t,e),Y(t.content)&&Q(t.content),ae(t)===O.element){let e=h(t);Y(e)&&($(e),Q(e))}X(x.afterSanitizeShadowDOM,e,null)},$=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Q(e.shadow);continue}let n=e.node,r=ae(n)===O.element,i=te(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=ie?ie(n):null;if(typeof e==`string`&&G(e)===`template`){let e=n.content;Y(e)&&t.push({node:e,shadow:null})}}if(r){let e=h(n);Y(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Jt=!e,Jt&&(e=`<!-->`),typeof e!=`string`&&!wn(e)&&(e=Be(e),typeof e!=`string`))throw Le(`dirty is not a string, aborting`);if(!t.isSupported)return e;At?(A=jt,j=Mt):sn(n),(x.uponSanitizeElement.length>0||x.uponSanitizeAttribute.length>0)&&(A=E(A)),x.uponSanitizeAttribute.length>0&&(j=E(j)),t.removed=[];let c=Bt&&typeof e!=`string`&&wn(e);if(c){yn(e);let t=oe(e);if(typeof t==`string`){let n=G(t);if(!A[n]||Tt[n])throw hn(e),Le(`root node is forbidden and cannot be sanitized in-place`)}if(J(e))throw hn(e),Le(`root node is clobbered and cannot be sanitized in-place`);try{$(e)}catch(t){throw hn(e),t}}else if(wn(e))i=bn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===O.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),$(i);else{if(!z&&!I&&!R&&e.indexOf(`<`)===-1)return v&&Ft?pe(e):e;if(i=bn(e),!i)return z?null:Ft?se:``}i&&Nt&&mn(i.firstChild);let l=c?e:i;try{let e=xn(l);for(;o=e.nextNode();)kn(o,l),Fn(o,l),Y(o.content)&&Q(o.content)}catch(n){throw c&&(hn(e),xe(t.removed,e=>{e.element&&_n(e.element)})),n}if(c){let n=!1;if(xe(t.removed,t=>{t.element&&(t.element===e&&(n=!0),_n(t.element))}),n)throw Le(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return I&&Cn(e),e}if(z){if(I&&Cn(i),Pt)for(s=be.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(j.shadowroot||j.shadowrootmode)&&(s=Pe.call(r,s,!0)),s}let u=R?i.outerHTML:i.innerHTML;return R&&A[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&C(st,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
3
- `+u),I&&(u=Sn(u)),v&&Ft?pe(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sn(e),At=!0,jt=A,Mt=j},t.clearConfig=function(){rn=null,At=!1,jt=null,Mt=null,v=ce,se=``},t.isValidAttribute=function(e,t,n){rn||sn({});let r=G(e),i=G(t);return An(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&S(x,e)&&we(x[e],t)},t.removeHook=function(e,t){if(S(x,e)){if(t!==void 0){let n=Se(x[e],t);return n===-1?void 0:Te(x[e],n,1)[0]}return Ce(x[e])}},t.removeHooks=function(e){S(x,e)&&(x[e]=[])},t.removeAllHooks=function(){x=vt()},t}var xt=bt(),St=(e,t)=>{t.attrName===`crossorigin`&&(t.keepAttr=[`audio`,`video`].includes(e.localName)&&t.attrValue.toLowerCase()===`anonymous`,t.keepAttr&&(t.attrValue=`anonymous`))};function Ct(e){let t={ALLOWED_TAGS:`a.abbr.article.audio.b.blockquote.br.caption.cite.code.dd.del.details.div.dl.dt.em.figcaption.figure.h1.h2.h3.h4.h5.h6.hr.i.img.ins.kbd.li.mark.ol.p.picture.pre.q.s.small.source.span.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.time.tr.track.u.ul.video.wbr`.split(`.`),ALLOWED_ATTR:`alt.class.colspan.controls.crossorigin.datetime.dir.download.height.href.id.kind.label.lang.loading.poster.preload.rel.rowspan.scope.src.srclang.start.target.title.type.width`.split(`.`),ALLOW_DATA_ATTR:!1};xt.addHook(`uponSanitizeAttribute`,St);try{return xt.sanitize(e,t)}finally{xt.removeHook(`uponSanitizeAttribute`,St)}}function A(e,t){let n=new DOMParser().parseFromString(e,`text/html`);return n.querySelectorAll(`a[href]`).forEach(e=>{let n=e.getAttribute(`href`)??``,r=/^(?:\/)?(?:uploads|media)\//.test(n)?_(n,t):n;r!==n&&e.setAttribute(`href`,r),wt(r)&&(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`))}),n.querySelectorAll(`img[src], video[src], audio[src], source[src], track[src]`).forEach(e=>{let n=_(e.getAttribute(`src`)??``,t);n?e.setAttribute(`src`,n):e.removeAttribute(`src`)}),n.querySelectorAll(`video[poster]`).forEach(e=>{let n=_(e.getAttribute(`poster`)??``,t);n?e.setAttribute(`poster`,n):e.removeAttribute(`poster`)}),n.querySelectorAll(`[srcset]`).forEach(e=>e.removeAttribute(`srcset`)),n.querySelectorAll(`[style]`).forEach(e=>{/url\s*\(|@import|\\/i.test(e.getAttribute(`style`)??``)&&e.removeAttribute(`style`)}),n.body.innerHTML}function wt(e){if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e).origin!==window.location.origin}catch{return!1}}function j(e,t){let r=A(Ct(e??``),t);return n`${l(r)}`}function M(e,t){if(!e||!e.url)return null;let n=_(e.url,t);if(!n)return null;let r;if(e.formats){r={};for(let[n,i]of Object.entries(e.formats))i?.url&&(r[n]={url:_(i.url,t),width:i.width,height:i.height})}return{url:n,alternativeText:e.alternativeText??null,mime:e.mime,name:e.name,width:e.width,height:e.height,formats:r}}var N=e=>e===`text`||e===`accordion`||e===`video_card`||e===`document_card`?e:void 0;function Tt(e){return{documentId:e.documentId??``,code:e.code??``,name:e.name??``,icon:e.icon}}function Et(e,t){return{documentId:e.documentId??``,uid:e.uid??``,title:e.title??``,subtitle:e.subtitle,icon:e.icon,image:M(e.image,t),behavior:N(e.behavior),order:e.order,showSortBy:e.showSortBy??!1,showFilterByTopic:e.showFilterByTopic??!1}}function P(e,t){return{documentId:e.documentId??``,uid:e.uid??``,title:e.title??``,abstract:e.abstract,body:j(e.text,t),behavior:N(e.behavior)??N(e.category?.behavior),featured:e.featured??!1,duration:e.duration,dateAdded:e.dateAdded,publishedAt:e.publishedAt??null,topics:(e.topics??[]).map(Tt),category:e.category?Et(e.category,t):null,thumbnail:M(e.thumbnail,t),video:M(e.video,t),captions:M(e.captions,t),documents:(e.documents??[]).map(e=>M(e,t)).filter(e=>e!==null)}}function Dt(e,t){return e?{heading:e.heading??``,description:e.description??``,backgroundImage:M(e.backgroundImage,t)}:null}var F=class extends Error{constructor(e,t){super(e,t?.cause===void 0?void 0:{cause:t.cause}),this.name=`KbApiError`,this.status=t?.status}};function Ot(e){return!e.uid||!e.title?null:{uid:e.uid,title:e.title,categoryUid:e.category?.uid??``,categoryIcon:e.category?.icon}}var kt=`whats-new`,I=100,L={thumbnail:!0,video:!0,documents:!0,topics:!0,captions:!0,category:{populate:{image:!0}}};function R(e){let t=e.apiBaseUrl.replace(/\/+$/,``),n=e.mediaBaseUrl,r=()=>typeof e.previewDrafts==`function`?e.previewDrafts():e.previewDrafts===!0,i=e.locale,a=e.fetch??globalThis.fetch.bind(globalThis),o=e.pageSize??I;if(!Number.isInteger(o)||o<1||o>I)throw new F(`KB page size must be an integer from 1 to 100`);async function s(e,n){let o=r()?`draft`:`published`,s=ie({...n,status:o,locale:i}),c=`${t}/api/${e}${s}`,l;try{l=await a(c,{credentials:`omit`,redirect:`error`,signal:AbortSignal.timeout(15e3)})}catch(t){throw new F(`Network error fetching ${e}`,{cause:t})}if(!l.ok)throw new F(`Strapi responded ${l.status} for ${e}`,{status:l.status});let u;try{u=await l.json()}catch(t){throw new F(`Invalid JSON from ${e}`,{cause:t})}if(!u||typeof u!=`object`||!Object.hasOwn(u,`data`))throw new F(`Invalid Strapi response from ${e}`);return u}async function c(e,t){return(await s(e,t)).data}async function l(e,t,n=!0){let r=[];for(let i=1;i<=1e4;i++){let a=typeof t.pagination==`object`?t.pagination:{},o=await s(e,{...t,pagination:{...a,page:i}});if(!Array.isArray(o.data))throw new F(`Invalid Strapi collection from ${e}`);r.push(...o.data);let c=o.meta?.pagination;if(!c)return r;if(!Number.isInteger(c.page)||c.page!==i||!Number.isInteger(c.pageSize)||c.pageSize<1||!Number.isInteger(c.pageCount)||c.pageCount<0||!Number.isInteger(c.total)||c.total<0||c.pageCount>i&&o.data.length===0)throw new F(`Invalid Strapi pagination from ${e}`);if(!n||i>=c.pageCount)return r}throw new F(`Strapi pagination limit exceeded for ${e}`)}async function u(){return(await l(`categories`,{populate:{image:!0},sort:[`order:asc`,`id:asc`],pagination:{pageSize:o}})).map(e=>Et(e,n))}return{getCategories:u,async getLanding(){let[e,t,r,i,a]=await Promise.all([c(`index-page`,{populate:{backgroundImage:!0}}),u(),l(`topics`,{sort:[`order:asc`,`id:asc`],pagination:{pageSize:o}}),l(`posts`,{filters:{featured:{$eq:!0}},populate:L,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}}),l(`posts`,{filters:{category:{uid:{$eq:kt}}},populate:L,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}})]);return{indexPage:Dt(e,n),categories:t,topics:r.map(e=>Tt(e)),featured:i.map(e=>P(e,n)),whatsNew:a.map(e=>P(e,n))}},async getCategory(e){let[t,r]=await Promise.all([l(`categories`,{filters:{uid:{$eq:e}},populate:{image:!0},pagination:{pageSize:1}},!1),l(`posts`,{filters:{category:{uid:{$eq:e}}},populate:L,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}})]);return{category:t[0]?Et(t[0],n):null,posts:r.map(e=>P(e,n))}},async getTopic(e){let[t,r]=await Promise.all([l(`topics`,{filters:{code:{$eq:e}},pagination:{pageSize:1}},!1),l(`posts`,{filters:{topics:{code:{$eq:e}}},populate:L,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}})]);return{topic:t[0]?Tt(t[0]):null,posts:r.map(e=>P(e,n))}},async getPost(e){let t=await l(`posts`,{filters:{uid:{$eq:e}},populate:L,pagination:{pageSize:1}},!1);return t[0]?P(t[0],n):null},async getPostLinks(e){let t={};return e?.categoryUid&&(t.category={uid:{$eq:e.categoryUid}}),e?.topicCode&&(t.topics={code:{$eq:e.topicCode}}),(await l(`posts`,{fields:[`uid`,`title`],populate:{category:{fields:[`uid`,`icon`]}},filters:Object.keys(t).length?t:void 0,sort:[`title:asc`,`id:asc`],pagination:{pageSize:o}})).map(Ot).filter(e=>e!==null)}}}function At(){return window.gpConfig?.[`ui-knowledgebase`]}function jt(){let e=At(),t=e?.[`KB:strapiBaseUrl`];if(!t)throw Error(`ui-knowledgebase config not loaded: window.gpConfig['ui-knowledgebase']['KB:strapiBaseUrl'] is missing. Ensure config.json is fetched before the KB route renders.`);let n;try{if(n=new URL(t),![`http:`,`https:`].includes(n.protocol)||n.username||n.password||n.search||n.hash||n.pathname!==`/`)throw Error()}catch{throw Error(`KB CMS configuration must be an HTTP(S) origin, without an API path or credentials.`)}return{apiBaseUrl:n.origin,mediaBaseUrl:n.origin,previewDrafts:e?.[`KB:previewDraftContent`]??!1}}var Mt=`KB:previewDraftContent`,Nt=null,z=null,Pt=new Set;function Ft(){Nt===null&&(Nt=At()?.[Mt]===!0,z=Nt)}function It(){return Ft(),Nt}function Lt(){return Ft(),z}function Rt(e){if(Ft(),Nt&&e!==z){z=e;for(let e of Pt)e()}}function zt(e){return Pt.add(e),()=>{Pt.delete(e)}}function Bt(e){let t=new Map;function n(e,n){let r=t.get(e);if(r)return r;let i=n().catch(n=>{throw t.delete(e),n});return t.set(e,i),i}let r=e=>`${Lt()?`draft`:`pub`}:${e}`;return{getLanding:()=>n(r(`landing`),()=>e.getLanding()),getCategories:()=>n(r(`categories`),()=>e.getCategories()),getCategory:t=>n(r(`category:${t}`),()=>e.getCategory(t)),getTopic:t=>n(r(`topic:${t}`),()=>e.getTopic(t)),getPost:t=>n(r(`post:${t}`),()=>e.getPost(t)),getPostLinks:t=>n(r(`postlinks:${t?.categoryUid??``}:${t?.topicCode??``}`),()=>e.getPostLinks(t)),invalidate:e=>{e?t.delete(e):t.clear()}}}var B;function V(){return B||=Bt(R({...jt(),previewDrafts:()=>Lt()})),B}var Vt=t`
1
+ import{LitElement as e,css as t,html as n,nothing as r,svg as i}from"lit";import{customElement as a,property as o,state as s}from"lit/decorators.js";import{Router as c}from"@vaadin/router";import{unsafeHTML as l}from"lit/directives/unsafe-html.js";import"@digital-realty/ix-search-bar/ix-search-bar.js";import{styleMap as u}from"lit/directives/style-map.js";import"@digital-realty/ix-icon/ix-icon.js";import"@digital-realty/ix-progress/ix-progress.js";import{repeat as d}from"lit/directives/repeat.js";import"@digital-realty/ix-button/ix-button.js";import{live as f}from"lit/directives/live.js";import{ifDefined as p}from"lit/directives/if-defined.js";import"@digital-realty/ix-switch/ix-switch.js";var m=null;function ee(e,t,n){m=new c(e,{baseUrl:`/`}),m.setRoutes(n)}function te(){return m}function ne(){m?.unsubscribe(),m?.setRoutes([],!0),m=null}var h=window.registeredApps?.[`ui-knowledgebase`]?.path??`/knowledge-base`,re=e=>e===h||e.startsWith(`${h}/`);function g(e,t,n){if(e!=null){if(Array.isArray(e)){e.forEach((e,r)=>g(e,`${t}[${r}]`,n));return}if(typeof e==`object`){for(let[r,i]of Object.entries(e))i!==void 0&&g(i,`${t}[${r}]`,n);return}n.push(`${encodeURIComponent(t)}=${encodeURIComponent(String(e))}`)}}function ie(e){let t=[];for(let[n,r]of Object.entries(e))r!==void 0&&g(r,n,t);return t.length?`?${t.join(`&`)}`:``}function _(e,t){if(!e)return``;try{let n=new URL(t);if(![`http:`,`https:`].includes(n.protocol)||n.username||n.password)return``;n.pathname=`${n.pathname.replace(/\/$/,``)}/`,n.search=``,n.hash=``;let r=e.startsWith(`/`)&&!e.startsWith(`//`)?e.slice(1):e,i=new URL(r,n);if(![`http:`,`https:`].includes(i.protocol)||i.username||i.password)return``;let a=e=>[`localhost`,`127.0.0.1`,`[::1]`].includes(e)||e.endsWith(`.localhost`);return a(n.hostname)&&!a(i.hostname)?``:i.href}catch{return``}}function ae(e,t){this.v=e,this.k=t}function oe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e){if(Array.isArray(e))return e}function y(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function se(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(e,t){return v(e)||y(e,t)||le(e,t)||se()}function le(e,t){if(e){if(typeof e==`string`)return oe(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}function ue(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof ae;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}ue.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},ue.prototype.next=function(e){return this._invoke(`next`,e)},ue.prototype.throw=function(e){return this._invoke(`throw`,e)},ue.prototype.return=function(e){return this._invoke(`return`,e)};var de=Object.entries,fe=Object.setPrototypeOf,pe=Object.isFrozen,me=Object.getPrototypeOf,he=Object.getOwnPropertyDescriptor,b=Object.freeze,x=Object.seal,ge=Object.create,_e=typeof Reflect<`u`&&Reflect,ve=_e.apply,ye=_e.construct;b||=function(e){return e},x||=function(e){return e},ve||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ye||=function(e){return new e(...[...arguments].slice(1))};var be=E(Array.prototype.forEach);Array.prototype.indexOf;var xe=E(Array.prototype.lastIndexOf),Se=E(Array.prototype.pop),Ce=E(Array.prototype.push);Array.prototype.slice;var we=E(Array.prototype.splice),Te=Array.isArray,Ee=E(String.prototype.toLowerCase),De=E(String.prototype.toString),Oe=E(String.prototype.match),ke=E(String.prototype.replace),Ae=E(String.prototype.indexOf),je=E(String.prototype.trim),Me=E(Number.prototype.toString),Ne=E(Boolean.prototype.toString),S=typeof BigInt>`u`?null:E(BigInt.prototype.toString),Pe=typeof Symbol>`u`?null:E(Symbol.prototype.toString),C=E(Object.prototype.hasOwnProperty),Fe=E(Object.prototype.toString),w=E(RegExp.prototype.test),T=Ie(TypeError);function E(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return ve(e,t,n)}}function Ie(e){return function(){return ye(e,[...arguments])}}function D(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee;if(fe&&fe(e,null),!Te(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(pe(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Le(e){for(let t=0;t<e.length;t++)C(e,t)||(e[t]=null);return e}function O(e){let t=ge(null);for(let r of de(e)){var n=ce(r,2);let i=n[0],a=n[1];C(e,i)&&(t[i]=Te(a)?Le(a):a&&typeof a==`object`&&a.constructor===Object?O(a):a)}return t}function Re(e){switch(typeof e){case`string`:return e;case`number`:return Me(e);case`boolean`:return Ne(e);case`bigint`:return S?S(e):`0`;case`symbol`:return Pe?Pe(e):`Symbol()`;case`undefined`:return Fe(e);case`function`:case`object`:{if(e===null)return Fe(e);let t=e,n=k(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Fe(e)}return Fe(e)}default:return Fe(e)}}function k(e,t){for(;e!==null;){let n=he(e,t);if(n){if(n.get)return E(n.get);if(typeof n.value==`function`)return E(n.value)}e=me(e)}function n(){return null}return n}function ze(e){try{return w(e,``),!0}catch{return!1}}var Be=b(`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.search.section.select.shadow.slot.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`.split(`.`)),Ve=b(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),He=b([`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`]),Ue=b([`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`]),We=b(`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`.split(`.`)),Ge=b([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Ke=b([`#text`]),qe=b(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.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.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Je=b(`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.dominant-baseline.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.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.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-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.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`.split(`.`)),Ye=b(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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`.split(`.`)),Xe=b([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ze=x(/{{[\w\W]*|^[\w\W]*}}/g),Qe=x(/<%[\w\W]*|^[\w\W]*%>/g),$e=x(/\${[\w\W]*/g),et=x(/^data-[\-\w.\u00B7-\uFFFF]+$/),tt=x(/^aria-[\-\w]+$/),nt=x(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rt=x(/^(?:\w+script|data):/i),it=x(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),at=x(/^html$/i),ot=x(/^[a-z][.\w]*(-[.\w]+)+$/i),st=x(/<[/\w!]/g),ct=x(/<[/\w]/g),lt=x(/<\/no(script|embed|frames)/i),ut=x(/\/>/i),A={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},dt=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],ft=b(D({},dt)),pt=function(){let e={};return be(dt,t=>{e[t]=x(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),b(e)}(),mt=function(){return typeof window>`u`?null:window},ht=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},gt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},j=function(e,t,n,r){return C(e,t)&&Te(e[t])?D(r.base?O(r.base):{},e[t],r.transform):n},_t=function(e,t,n){let r=C(e,t)?e[t]:void 0;return r&&typeof r==`object`?O(r):n()};function vt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mt(),t=e=>vt(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==A.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=k(d,`cloneNode`),p=k(d,`remove`),m=k(d,`removeAttributeNode`),ee=k(d,`nextSibling`),te=k(d,`childNodes`),ne=k(d,`parentNode`),h=k(d,`shadowRoot`),re=k(d,`attributes`),g=o&&o.prototype?k(o.prototype,`nodeType`):null,ie=o&&o.prototype?k(o.prototype,`nodeName`):null,_=o&&o.prototype?k(o.prototype,`ownerDocument`):null,ae=function(e){return g?g(e):e.nodeType},oe=function(e){return ie?ie(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let v,y=``,se,ce=!1,le=0,ue=function(){if(le>0)throw T(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},fe=function(e){ue(),le++;try{return v.createHTML(e)}finally{le--}},pe=function(e){ue(),le++;try{return v.createScriptURL(e)}finally{le--}},me=function(){return ce||=(se=ht(u,i),!0),se},he=n,_e=he.implementation,ve=he.createNodeIterator,ye=he.createDocumentFragment,Me=he.getElementsByTagName,Ne=r.importNode,S=gt();t.isSupported=typeof de==`function`&&typeof ne==`function`&&_e&&_e.createHTMLDocument!==void 0;let Pe=Ze,Fe=Qe,E=$e,Ie=et,Le=tt,dt=rt,yt=it,bt=ot,xt=nt,M=null,St=D({},[...Be,...Ve,...He,...We,...Ke]),N=null,P=D({},[...qe,...Je,...Ye,...Xe]),F=Object.seal(ge(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}})),Ct=null,wt=null,I=Object.seal(ge(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Tt=!0,L=!0,Et=!1,Dt=!0,R=!1,z=!0,Ot=!1,kt=!1,At=null,jt=null,Mt=!1,B=!1,Nt=!1,Pt=!1,Ft=!0,It=!1,Lt=`user-content-`,Rt=!0,zt=!1,Bt={},V=null,Vt=D({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),H=null,Ht=D({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ut=null,Wt=D({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Gt=`http://www.w3.org/1998/Math/MathML`,Kt=`http://www.w3.org/2000/svg`,U=`http://www.w3.org/1999/xhtml`,qt=U,Jt=!1,Yt=null,Xt=D({},[Gt,Kt,U],De),Zt=b([`mi`,`mo`,`mn`,`ms`,`mtext`]),Qt=D({},Zt),$t=b([`annotation-xml`]),en=D({},$t),tn=D({},[`title`,`style`,`font`,`a`,`script`]),W=null,nn=[`application/xhtml+xml`,`text/html`],G=null,rn=null,an=n.createElement(`form`),on=function(e){return e instanceof RegExp||e instanceof Function},sn=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rn&&rn===e)return;(!e||typeof e!=`object`)&&(e={}),e=O(e),W=nn.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,G=W===`application/xhtml+xml`?De:Ee,M=j(e,`ALLOWED_TAGS`,St,{transform:G}),N=j(e,`ALLOWED_ATTR`,P,{transform:G}),Yt=j(e,`ALLOWED_NAMESPACES`,Xt,{transform:De}),Ut=j(e,`ADD_URI_SAFE_ATTR`,Wt,{transform:G,base:Wt}),H=j(e,`ADD_DATA_URI_TAGS`,Ht,{transform:G,base:Ht}),V=j(e,`FORBID_CONTENTS`,Vt,{transform:G}),Ct=j(e,`FORBID_TAGS`,O({}),{transform:G}),wt=j(e,`FORBID_ATTR`,O({}),{transform:G}),Bt=C(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?O(e.USE_PROFILES):e.USE_PROFILES:!1,Tt=e.ALLOW_ARIA_ATTR!==!1,L=e.ALLOW_DATA_ATTR!==!1,Et=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Dt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,R=e.SAFE_FOR_TEMPLATES||!1,z=e.SAFE_FOR_XML!==!1,Ot=e.WHOLE_DOCUMENT||!1,B=e.RETURN_DOM||!1,Nt=e.RETURN_DOM_FRAGMENT||!1,Pt=e.RETURN_TRUSTED_TYPE||!1,Mt=e.FORCE_BODY||!1,Ft=e.SANITIZE_DOM!==!1,It=e.SANITIZE_NAMED_PROPS||!1,Rt=e.KEEP_CONTENT!==!1,zt=e.IN_PLACE||!1,xt=ze(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:nt,qt=typeof e.NAMESPACE==`string`?e.NAMESPACE:U,Qt=_t(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>D({},Zt)),en=_t(e,`HTML_INTEGRATION_POINTS`,()=>D({},$t));let t=_t(e,`CUSTOM_ELEMENT_HANDLING`,()=>ge(null));if(F=ge(null),C(t,`tagNameCheck`)&&on(t.tagNameCheck)&&(F.tagNameCheck=t.tagNameCheck),C(t,`attributeNameCheck`)&&on(t.attributeNameCheck)&&(F.attributeNameCheck=t.attributeNameCheck),C(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(F.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),x(F),R&&(L=!1),Nt&&(B=!0),Bt&&(M=D({},Ke),N=ge(null),Bt.html===!0&&(D(M,Be),D(N,qe)),Bt.svg===!0&&(D(M,Ve),D(N,Je),D(N,Xe)),Bt.svgFilters===!0&&(D(M,He),D(N,Je),D(N,Xe)),Bt.mathMl===!0&&(D(M,We),D(N,Ye),D(N,Xe))),I.tagCheck=null,I.attributeCheck=null,C(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?I.tagCheck=e.ADD_TAGS:Te(e.ADD_TAGS)&&(M===St&&(M=O(M)),D(M,e.ADD_TAGS,G))),C(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?I.attributeCheck=e.ADD_ATTR:Te(e.ADD_ATTR)&&(N===P&&(N=O(N)),D(N,e.ADD_ATTR,G))),C(e,`ADD_FORBID_CONTENTS`)&&Te(e.ADD_FORBID_CONTENTS)&&(V===Vt&&(V=O(V)),D(V,e.ADD_FORBID_CONTENTS,G)),Rt&&(M[`#text`]=!0),Ot&&D(M,[`html`,`head`,`body`]),M.table&&(D(M,[`tbody`]),delete Ct.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw T(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw T(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=v;v=e.TRUSTED_TYPES_POLICY;try{y=fe(``)}catch(e){throw v=t,e}}else e.TRUSTED_TYPES_POLICY===null?(v=void 0,y=``):(v===void 0&&(v=me()),v&&typeof y==`string`&&(y=fe(``)));b&&b(e),rn=e},cn=D({},[...Ve,...He,...Ue]),ln=D({},[...We,...Ge]),un=function(e,t,n){return t.namespaceURI===U?e===`svg`:t.namespaceURI===Gt?e===`svg`&&(n===`annotation-xml`||Qt[n]):!!cn[e]},dn=function(e,t,n){return t.namespaceURI===U?e===`math`:t.namespaceURI===Kt?e===`math`&&en[n]:!!ln[e]},fn=function(e,t,n){return t.namespaceURI===Kt&&!en[n]||t.namespaceURI===Gt&&!Qt[n]?!1:!ln[e]&&(tn[e]||!cn[e])},pn=function(e){let t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:qt,tagName:`template`});let n=Ee(e.tagName),r=Ee(t.tagName);return Yt[e.namespaceURI]?e.namespaceURI===Kt?un(n,t,r):e.namespaceURI===Gt?dn(n,t,r):e.namespaceURI===U?fn(n,t,r):!!(W===`application/xhtml+xml`&&Yt[e.namespaceURI]):!1},K=function(e){Ce(t.removed,{element:e});try{ne(e).removeChild(e)}catch{if(p(e),!ne(e))throw T(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},mn=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},hn=function(e){_n(e);let t=te(e);if(t){let e=[];be(t,t=>{Ce(e,t)}),be(e,e=>{try{p(e)}catch{}})}let n=re(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&mn(e,r,i)}},q=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Ce(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(B||Nt)try{K(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},gn=function(e){let t=re(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||N[G(i)]||mn(e,r,i)}},_n=function(e){let t=[e];for(;t.length>0;){let e=t.pop();ae(e)===A.element&&gn(e);let n=te(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},vn=function(e,t){return z?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},yn=function(e){if(!z)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=ae(e);if(n===A.processingInstruction||n===A.comment&&w(ct,e.data)){try{p(e)}catch{}continue}if(n===A.element){let t=e,n=G(oe(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&vn(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=te(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},bn=function(e){let t=null,r=null;if(Mt)e=`<remove></remove>`+e;else{let t=Oe(e,/^[\r\n\t ]+/);r=t&&t[0]}W===`application/xhtml+xml`&&qt===U&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=v?fe(e):e;if(qt===U)try{t=new l().parseFromString(i,W)}catch{}if(!t||!t.documentElement){t=_e.createDocument(qt,`template`,null);try{t.documentElement.innerHTML=Jt?y:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),qt===U?Me.call(t,Ot?`html`:`body`)[0]:Ot?t.documentElement:a},xn=function(e){let t=_?_(e):e.ownerDocument;return ve.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Sn=function(e){return e=ke(e,Pe,` `),e=ke(e,Fe,` `),e=ke(e,E,` `),e},Cn=function(e){e.normalize();let t=_?_(e):e.ownerDocument,n=ve.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Sn(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&be(i,e=>{Tn(e.content)&&Cn(e.content)})},wn=function(e){let t=ie?ie(e):null;return typeof t!=`string`||G(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==re(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==g(e)||e.childNodes!==te(e)},Tn=function(e){if(!g||typeof e!=`object`||!e)return!1;try{return g(e)===A.documentFragment}catch{return!1}},J=function(e){if(!g||typeof e!=`object`||!e)return!1;try{return typeof g(e)==`number`}catch{return!1}};function Y(e,n,r){e.length!==0&&be(e,e=>{e.call(t,n,r,rn)})}let En=function(e,t){return!!(z&&e.hasChildNodes()&&!J(e.firstElementChild)&&w(st,e.textContent)&&w(st,e.innerHTML)||z&&e.namespaceURI===U&&ft[t]&&(J(e.firstElementChild)||typeof e.textContent==`string`&&w(pt[t],e.textContent))||e.nodeType===A.processingInstruction||z&&e.nodeType===A.comment&&w(ct,e.data))},X=function(e,t){return e instanceof RegExp?w(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Dn=function(e,t,n){if(!Ct[t]&&Mn(t)&&X(F.tagNameCheck,t))return!1;if(Rt&&!V[t]){let t=ne(e),r=te(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,ee(e))}}}return K(e),!0},On=function(e,t,n,r){return e.length===0?t:t===n||t===r?O(t):t},Z=function(e,t){return e===t||ne(e)!==null?!1:(zt&&_n(e),!0)},kn=function(e,n){if(Y(S.beforeSanitizeElements,e,null),Z(e,n))return!0;if(wn(e))return K(e),!0;let r=G(oe(e));if(M=On(S.uponSanitizeElement,M,St,At),Y(S.uponSanitizeElement,e,{tagName:r,allowedTags:M}),Z(e,n))return!0;if(En(e,r))return K(e),!0;if(Ct[r]||!(I.tagCheck instanceof Function&&I.tagCheck(r))&&!M[r]){let t=Dn(e,r,n);return t===!1&&(Y(S.afterSanitizeElements,e,null),Z(e,n))?!0:t}if(ae(e)===A.element&&!pn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&w(lt,e.innerHTML))return K(e),!0;if(R&&e.nodeType===A.text){let n=Sn(e.textContent);e.textContent!==n&&(Ce(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Y(S.afterSanitizeElements,e,null),Z(e,n)},An=function(e,t,r){if(wt[t]||vn(t,e)||Ft&&(t===`id`||t===`name`)&&(r in n||r in an))return!1;let i=N[t]||I.attributeCheck instanceof Function&&I.attributeCheck(t,e);return L&&w(Ie,t)||Tt&&w(Le,t)?!0:i?Ut[t]||w(xt,ke(r,yt,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ae(r,`data:`)===0&&H[e]||Et&&!w(dt,ke(r,yt,``))?!0:!r:Mn(e)&&X(F.tagNameCheck,e)&&X(F.attributeNameCheck,t,e)||t===`is`&&F.allowCustomizedBuiltInElements&&X(F.tagNameCheck,r)},jn=D({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Mn=function(e){return!jn[Ee(e)]&&w(bt,e)},Nn=function(e,t,n,r){if(v&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return fe(r);case`TrustedScriptURL`:return pe(r)}return r},Pn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!wn(e)||(K(e),!1)}catch{return q(t,e),!1}},Fn=function(e,n){if(Y(S.beforeSanitizeAttributes,e,null),Z(e,n))return;let r=e.attributes;if(!r||wn(e))return;N=On(S.uponSanitizeAttribute,N,P,jt);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:N,forceKeepAttr:void 0},a=r.length,o=G(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=G(s),d=l,f=s===`value`?d:je(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Y(S.uponSanitizeAttribute,e,i),f=i.attrValue,It&&(u===`id`||u===`name`)&&Ae(f,Lt)!==0&&(q(s,e,n),f=Lt+f,p=!0),z&&w(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){q(s,e,n);continue}if(u===`attributename`&&Oe(f,`href`)){q(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){q(s,e,n);continue}if(!Dt&&w(ut,f)){q(s,e,n);continue}if(R&&(f=Sn(f)),!An(o,u,f)){q(s,e,n);continue}f=Nn(o,u,c,f),f!==d&&Pn(e,s,c,f)&&p&&Se(t.removed)}}Y(S.afterSanitizeAttributes,e,null),Z(e,n)},In=function(e){let t=null,n=xn(e);for(Y(S.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Y(S.uponSanitizeShadowNode,t,null),kn(t,e),Fn(t,e),Tn(t.content)&&In(t.content),ae(t)===A.element){let e=h(t);Tn(e)&&(Q(e),In(e))}Y(S.afterSanitizeShadowDOM,e,null)},Q=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){In(e.shadow);continue}let n=e.node,r=ae(n)===A.element,i=te(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=ie?ie(n):null;if(typeof e==`string`&&G(e)===`template`){let e=n.content;Tn(e)&&t.push({node:e,shadow:null})}}if(r){let e=h(n);Tn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Jt=!e,Jt&&(e=`<!-->`),typeof e!=`string`&&!J(e)&&(e=Re(e),typeof e!=`string`))throw T(`dirty is not a string, aborting`);if(!t.isSupported)return e;kt?(M=At,N=jt):sn(n),(S.uponSanitizeElement.length>0||S.uponSanitizeAttribute.length>0)&&(M=O(M)),S.uponSanitizeAttribute.length>0&&(N=O(N)),t.removed=[];let c=zt&&typeof e!=`string`&&J(e);if(c){yn(e);let t=oe(e);if(typeof t==`string`){let n=G(t);if(!M[n]||Ct[n])throw hn(e),T(`root node is forbidden and cannot be sanitized in-place`)}if(wn(e))throw hn(e),T(`root node is clobbered and cannot be sanitized in-place`);try{Q(e)}catch(t){throw hn(e),t}}else if(J(e))i=bn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===A.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Q(i);else{if(!B&&!R&&!Ot&&e.indexOf(`<`)===-1)return v&&Pt?fe(e):e;if(i=bn(e),!i)return B?null:Pt?y:``}i&&Mt&&K(i.firstChild);let l=c?e:i;try{let e=xn(l);for(;o=e.nextNode();)kn(o,l),Fn(o,l),Tn(o.content)&&In(o.content)}catch(n){throw c&&(hn(e),be(t.removed,e=>{e.element&&_n(e.element)})),n}if(c){let n=!1;if(be(t.removed,t=>{t.element&&(t.element===e&&(n=!0),_n(t.element))}),n)throw T(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return R&&Cn(e),e}if(B){if(R&&Cn(i),Nt)for(s=ye.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(N.shadowroot||N.shadowrootmode)&&(s=Ne.call(r,s,!0)),s}let u=Ot?i.outerHTML:i.innerHTML;return Ot&&M[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&w(at,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
3
+ `+u),R&&(u=Sn(u)),v&&Pt?fe(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sn(e),kt=!0,At=M,jt=N},t.clearConfig=function(){rn=null,kt=!1,At=null,jt=null,v=se,y=``},t.isValidAttribute=function(e,t,n){rn||sn({});let r=G(e),i=G(t);return An(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&C(S,e)&&Ce(S[e],t)},t.removeHook=function(e,t){if(C(S,e)){if(t!==void 0){let n=xe(S[e],t);return n===-1?void 0:we(S[e],n,1)[0]}return Se(S[e])}},t.removeHooks=function(e){C(S,e)&&(S[e]=[])},t.removeAllHooks=function(){S=gt()},t}var yt=vt(),bt=(e,t)=>{t.attrName===`crossorigin`&&(t.keepAttr=[`audio`,`video`].includes(e.localName)&&t.attrValue.toLowerCase()===`anonymous`,t.keepAttr&&(t.attrValue=`anonymous`))};function xt(e){let t={ALLOWED_TAGS:`a.abbr.article.audio.b.blockquote.br.caption.cite.code.dd.del.details.div.dl.dt.em.figcaption.figure.h1.h2.h3.h4.h5.h6.hr.i.img.ins.kbd.li.mark.ol.p.picture.pre.q.s.small.source.span.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.time.tr.track.u.ul.video.wbr`.split(`.`),ALLOWED_ATTR:`alt.class.colspan.controls.crossorigin.datetime.dir.download.height.href.id.kind.label.lang.loading.poster.preload.rel.rowspan.scope.src.srclang.start.target.title.type.width`.split(`.`),ALLOW_DATA_ATTR:!1};yt.addHook(`uponSanitizeAttribute`,bt);try{return yt.sanitize(e,t)}finally{yt.removeHook(`uponSanitizeAttribute`,bt)}}function M(e,t){let n=new DOMParser().parseFromString(e,`text/html`);return n.querySelectorAll(`a[href]`).forEach(e=>{let n=e.getAttribute(`href`)??``,r=/^(?:\/)?(?:uploads|media)\//.test(n)?_(n,t):n;r!==n&&e.setAttribute(`href`,r),St(r)&&(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`))}),n.querySelectorAll(`img[src], video[src], audio[src], source[src], track[src]`).forEach(e=>{let n=_(e.getAttribute(`src`)??``,t);n?e.setAttribute(`src`,n):e.removeAttribute(`src`)}),n.querySelectorAll(`video[poster]`).forEach(e=>{let n=_(e.getAttribute(`poster`)??``,t);n?e.setAttribute(`poster`,n):e.removeAttribute(`poster`)}),n.querySelectorAll(`[srcset]`).forEach(e=>e.removeAttribute(`srcset`)),n.querySelectorAll(`[style]`).forEach(e=>{/url\s*\(|@import|\\/i.test(e.getAttribute(`style`)??``)&&e.removeAttribute(`style`)}),n.body.innerHTML}function St(e){if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e).origin!==window.location.origin}catch{return!1}}function N(e,t){let r=M(xt(e??``),t);return n`${l(r)}`}function P(e,t){if(!e||!e.url)return null;let n=_(e.url,t);if(!n)return null;let r;if(e.formats){r={};for(let[n,i]of Object.entries(e.formats))i?.url&&(r[n]={url:_(i.url,t),width:i.width,height:i.height})}return{url:n,alternativeText:e.alternativeText??null,mime:e.mime,name:e.name,width:e.width,height:e.height,formats:r}}var F=e=>e===`text`||e===`accordion`||e===`video_card`||e===`document_card`?e:void 0;function Ct(e){return{documentId:e.documentId??``,code:e.code??``,name:e.name??``,icon:e.icon}}function wt(e,t){return{documentId:e.documentId??``,uid:e.uid??``,title:e.title??``,subtitle:e.subtitle,icon:e.icon,image:P(e.image,t),behavior:F(e.behavior),order:e.order,showSortBy:e.showSortBy??!1,showFilterByTopic:e.showFilterByTopic??!1}}function I(e,t){return{documentId:e.documentId??``,uid:e.uid??``,title:e.title??``,abstract:e.abstract,body:N(e.text,t),behavior:F(e.behavior)??F(e.category?.behavior),featured:e.featured??!1,duration:e.duration,dateAdded:e.dateAdded,publishedAt:e.publishedAt??null,topics:(e.topics??[]).map(Ct),category:e.category?wt(e.category,t):null,thumbnail:P(e.thumbnail,t),video:P(e.video,t),captions:P(e.captions,t),documents:(e.documents??[]).map(e=>P(e,t)).filter(e=>e!==null)}}function Tt(e,t){return e?{heading:e.heading??``,description:e.description??``,backgroundImage:P(e.backgroundImage,t)}:null}var L=class extends Error{constructor(e,t){super(e,t?.cause===void 0?void 0:{cause:t.cause}),this.name=`KbApiError`,this.status=t?.status}};function Et(e){return!e.uid||!e.title?null:{uid:e.uid,title:e.title,categoryUid:e.category?.uid??``,categoryIcon:e.category?.icon}}var Dt=`whats-new`,R=100,z={thumbnail:!0,video:!0,documents:!0,topics:!0,captions:!0,category:{populate:{image:!0}}};function Ot(e){let t=e.apiBaseUrl.replace(/\/+$/,``),n=e.mediaBaseUrl,r=()=>typeof e.previewDrafts==`function`?e.previewDrafts():e.previewDrafts===!0,i=e.locale,a=e.fetch??globalThis.fetch.bind(globalThis),o=e.pageSize??R;if(!Number.isInteger(o)||o<1||o>R)throw new L(`KB page size must be an integer from 1 to 100`);async function s(e,n){let o=r()?`draft`:`published`,s=ie({...n,status:o,locale:i}),c=`${t}/api/${e}${s}`,l;try{l=await a(c,{credentials:`omit`,redirect:`error`,signal:AbortSignal.timeout(15e3)})}catch(t){throw new L(`Network error fetching ${e}`,{cause:t})}if(!l.ok)throw new L(`Strapi responded ${l.status} for ${e}`,{status:l.status});let u;try{u=await l.json()}catch(t){throw new L(`Invalid JSON from ${e}`,{cause:t})}if(!u||typeof u!=`object`||!Object.hasOwn(u,`data`))throw new L(`Invalid Strapi response from ${e}`);return u}async function c(e,t){return(await s(e,t)).data}async function l(e,t,n=!0){let r=[];for(let i=1;i<=1e4;i++){let a=typeof t.pagination==`object`?t.pagination:{},o=await s(e,{...t,pagination:{...a,page:i}});if(!Array.isArray(o.data))throw new L(`Invalid Strapi collection from ${e}`);r.push(...o.data);let c=o.meta?.pagination;if(!c)return r;if(!Number.isInteger(c.page)||c.page!==i||!Number.isInteger(c.pageSize)||c.pageSize<1||!Number.isInteger(c.pageCount)||c.pageCount<0||!Number.isInteger(c.total)||c.total<0||c.pageCount>i&&o.data.length===0)throw new L(`Invalid Strapi pagination from ${e}`);if(!n||i>=c.pageCount)return r}throw new L(`Strapi pagination limit exceeded for ${e}`)}async function u(){return(await l(`categories`,{populate:{image:!0},sort:[`order:asc`,`id:asc`],pagination:{pageSize:o}})).map(e=>wt(e,n))}return{getCategories:u,async getLanding(){let[e,t,r,i,a]=await Promise.all([c(`index-page`,{populate:{backgroundImage:!0}}),u(),l(`topics`,{sort:[`order:asc`,`id:asc`],pagination:{pageSize:o}}),l(`posts`,{filters:{featured:{$eq:!0}},populate:z,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}}),l(`posts`,{filters:{category:{uid:{$eq:Dt}}},populate:z,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}})]);return{indexPage:Tt(e,n),categories:t,topics:r.map(e=>Ct(e)),featured:i.map(e=>I(e,n)),whatsNew:a.map(e=>I(e,n))}},async getCategory(e){let[t,r]=await Promise.all([l(`categories`,{filters:{uid:{$eq:e}},populate:{image:!0},pagination:{pageSize:1}},!1),l(`posts`,{filters:{category:{uid:{$eq:e}}},populate:z,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}})]);return{category:t[0]?wt(t[0],n):null,posts:r.map(e=>I(e,n))}},async getTopic(e){let[t,r]=await Promise.all([l(`topics`,{filters:{code:{$eq:e}},pagination:{pageSize:1}},!1),l(`posts`,{filters:{topics:{code:{$eq:e}}},populate:z,sort:[`dateAdded:desc`,`id:asc`],pagination:{pageSize:o}})]);return{topic:t[0]?Ct(t[0]):null,posts:r.map(e=>I(e,n))}},async getPost(e){let t=await l(`posts`,{filters:{uid:{$eq:e}},populate:z,pagination:{pageSize:1}},!1);return t[0]?I(t[0],n):null},async getPostLinks(e){let t={};return e?.categoryUid&&(t.category={uid:{$eq:e.categoryUid}}),e?.topicCode&&(t.topics={code:{$eq:e.topicCode}}),(await l(`posts`,{fields:[`uid`,`title`],populate:{category:{fields:[`uid`,`icon`]}},filters:Object.keys(t).length?t:void 0,sort:[`title:asc`,`id:asc`],pagination:{pageSize:o}})).map(Et).filter(e=>e!==null)}}}function kt(){return window.gpConfig?.[`ui-knowledgebase`]}function At(){let e=kt(),t=e?.[`KB:strapiBaseUrl`];if(!t)throw Error(`ui-knowledgebase config not loaded: window.gpConfig['ui-knowledgebase']['KB:strapiBaseUrl'] is missing. Ensure config.json is fetched before the KB route renders.`);let n;try{if(n=new URL(t),![`http:`,`https:`].includes(n.protocol)||n.username||n.password||n.search||n.hash||n.pathname!==`/`)throw Error()}catch{throw Error(`KB CMS configuration must be an HTTP(S) origin, without an API path or credentials.`)}return{apiBaseUrl:n.origin,mediaBaseUrl:n.origin,previewDrafts:e?.[`KB:previewDraftContent`]??!1}}var jt=`KB:previewDraftContent`,Mt=null,B=null,Nt=new Set;function Pt(){Mt===null&&(Mt=kt()?.[jt]===!0,B=Mt)}function Ft(){return Pt(),Mt}function It(){return Pt(),B}function Lt(e){if(Pt(),Mt&&e!==B){B=e;for(let e of Nt)e()}}function Rt(e){return Nt.add(e),()=>{Nt.delete(e)}}function zt(e){let t=new Map;function n(e,n){let r=t.get(e);if(r)return r;let i=n().catch(n=>{throw t.delete(e),n});return t.set(e,i),i}let r=e=>`${It()?`draft`:`pub`}:${e}`;return{getLanding:()=>n(r(`landing`),()=>e.getLanding()),getCategories:()=>n(r(`categories`),()=>e.getCategories()),getCategory:t=>n(r(`category:${t}`),()=>e.getCategory(t)),getTopic:t=>n(r(`topic:${t}`),()=>e.getTopic(t)),getPost:t=>n(r(`post:${t}`),()=>e.getPost(t)),getPostLinks:t=>n(r(`postlinks:${t?.categoryUid??``}:${t?.topicCode??``}`),()=>e.getPostLinks(t)),invalidate:e=>{e?t.delete(e):t.clear()}}}var Bt;function V(){return Bt||=zt(Ot({...At(),previewDrafts:()=>It()})),Bt}var Vt=t`
4
4
  :host {
5
5
  display: block;
6
6
  width: 100%;
@@ -17,7 +17,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
17
17
  border-radius: 999px;
18
18
  box-shadow: inset 0 0 0 1px rgba(9, 34, 65, 0.16);
19
19
  --md-outlined-text-field-input-text-color: rgb(9, 34, 65);
20
- --md-outlined-text-field-input-text-placeholder-color: rgba(9, 34, 65, 0.6);
20
+ /* 65% navy on white composites to rgb(95,111,132) ≈ 5.11:1, so the
21
+ placeholder keeps the 4.5:1 minimum contrast instead of 4.36:1. */
22
+ --md-outlined-text-field-input-text-placeholder-color: rgba(9, 34, 65, 0.65);
21
23
  --md-outlined-text-field-outline-color: transparent;
22
24
  --md-outlined-text-field-hover-outline-color: transparent;
23
25
  /* 24px input + 8px top/bottom = 40px field height (default padding is 10px, i.e. 44px). */
@@ -37,12 +39,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
37
39
  inset 0 0 0 1px rgb(9, 34, 65),
38
40
  0 0 0 3px rgba(9, 34, 65, 0.15);
39
41
  }
40
- `;function H(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Ht=class extends e{constructor(...e){super(...e),this.category=``,this.topic=``,this.items=[],this.onSelected=e=>{let{item:t}=e.detail;this.dispatchEvent(new CustomEvent(`kb-search-select`,{detail:{uid:t.uid},bubbles:!0,composed:!0}))}}static{this.styles=Vt}connectedCallback(){super.connectedCallback(),this.unsubscribePreview=zt(()=>void this.load())}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribePreview?.()}updated(e){(e.has(`category`)||e.has(`topic`))&&this.load()}async load(){try{let e=await V().getPostLinks({categoryUid:this.category||void 0,topicCode:this.topic||void 0});this.items=e.map(Ut)}catch{this.items=[]}}render(){return n`
42
+ `;function H(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Ht=class extends e{constructor(...e){super(...e),this.category=``,this.topic=``,this.items=[],this.onSelected=e=>{let{item:t}=e.detail;this.dispatchEvent(new CustomEvent(`kb-search-select`,{detail:{uid:t.uid},bubbles:!0,composed:!0}))}}static{this.styles=Vt}connectedCallback(){super.connectedCallback(),this.unsubscribePreview=Rt(()=>void this.load())}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribePreview?.()}updated(e){(e.has(`category`)||e.has(`topic`))&&this.load()}async load(){try{let e=await V().getPostLinks({categoryUid:this.category||void 0,topicCode:this.topic||void 0});this.items=e.map(Ut)}catch{this.items=[]}}render(){return n`
41
43
  <ix-search-bar
42
44
  dropdown
43
45
  shape="pill"
44
46
  leading-icon="search"
45
47
  placeholder="Search..."
48
+ input-label="Search knowledge base"
46
49
  label-field="title"
47
50
  href-field="href"
48
51
  min-chars="3"
@@ -320,9 +323,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
320
323
  opacity: 0;
321
324
  }
322
325
  }
323
- `,rn={indexPage:{heading:`Welcome to Knowledge Base!`,description:`Find information about our Portal, Products, Services and so much more on the Knowledge base pages.`,backgroundImage:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fknowledge_base_banner_d4dcd9e2f4.webp&w=1920&q=75`,alternativeText:`Knowledge Base banner`,mime:`image/webp`,name:`knowledge-base-banner.webp`,width:1840,height:514}},categories:[{documentId:`g5rq78kmd343fkt4hzdrb0hw`,uid:`whats-new`,title:`What's New`,subtitle:`Click here to find out more about our newly released functionality and enhancements!`,icon:`local_offer`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:`servers.jpg`,mime:`image/jpeg`,name:`servers.jpg`,width:4060,height:2092},behavior:`accordion`,order:1,showSortBy:!0,showFilterByTopic:!0},{documentId:`ozvhy3lnmkhjg33tf57r0vij`,uid:`documentation`,title:`User Guides`,subtitle:`Find documents that will guide you through our Global Portal functionality here.`,icon:`assignment`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:`city.jpg`,mime:`image/jpeg`,name:`city.jpg`,width:3980,height:2944},behavior:`document_card`,order:2,showSortBy:!0,showFilterByTopic:!0},{documentId:`aq1jyyyrwsrh1npo6c8s294f`,uid:`mediaresources`,title:`Media Resources`,subtitle:`The answers to all of your most frequently asked questions.`,icon:`web_asset`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:`metro.jpg`,mime:`image/jpeg`,name:`metro.jpg`,width:3840,height:2160},behavior:`video_card`,order:4,showSortBy:!0,showFilterByTopic:!0},{documentId:`pmt6iqnbgmo33sakbl5aj4rl`,uid:`operational-documents`,title:`Operational Documents`,subtitle:`Reference DLR's SOP documents.`,icon:`userguides`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:null,mime:`image/jpeg`,name:`Updated_DLRGlobalPortalLogin.jpg`,width:10003,height:5080},behavior:`document_card`,order:100,showSortBy:!0,showFilterByTopic:!1}],topics:[{documentId:`s629hzyncwphtl3iquv2v95s`,code:`facilityaccess`,name:`Facility Access`,icon:`key`},{documentId:`tqiyw62aqtehuf1njbzzakpx`,code:`usermanagement`,name:`User Management`,icon:`person`},{documentId:`iygzje1mz1fv2fmkh35hxbxo`,code:`rolemanagement`,name:`Role Management`,icon:`book`},{documentId:`yyhu0fen2ru3zqi0xkcnxnux`,code:`servicetickets`,name:`Service Tickets`,icon:`list`},{documentId:`ypucau2kzi95zv38sz9bt18c`,code:`operations`,name:`Operations`,icon:`house`},{documentId:`z7p302fogy2bveaa6qs7oy9g`,code:`reports`,name:`Reports`,icon:`report`}],featured:[{documentId:`emc4t20cdqw2wyyy6xl1c2fb`,uid:`global-portal-welcome-video`,title:`Global Portal Overview Video`,abstract:void 0,body:j(`<p>Welcome to the Global Portal! Discover how our Global Portal streamlines access to key services, integrates seamlessly with backend systems, and empowers you with self-service capabilities designed for scale and ease.</p>`,``),featured:!0,duration:229,dateAdded:`2025-06-11`,publishedAt:`2026-05-08T10:56:59.967Z`,topics:[],category:{documentId:`aq1jyyyrwsrh1npo6c8s294f`,uid:`mediaresources`,title:`Media Resources`,subtitle:`The answers to all of your most frequently asked questions.`,icon:`web_asset`,image:null,behavior:`video_card`,order:4,showSortBy:!0,showFilterByTopic:!0},thumbnail:{url:` https://gp-uat.digitalrealty.com/_next/image?url=%2Fimages%2Fdefault-strapi-image.png&w=1920&q=75`,alternativeText:null,mime:`image/png`,name:`2026-05-08_12-52-26.png`,width:1499,height:851},video:{url:`https://gp-uat.digitalrealty.com/api/files?url=%2Fuploads%2FAN_v6_FULL_36021addbb.mp4`,alternativeText:`Global Portal Overview`,mime:`video/mp4`,name:`AN v9 - Global Portal - FULL.mp4`,width:void 0,height:void 0,formats:{}},documents:[]},{documentId:`ifez9p97ezdtz9lohf9rikvl`,uid:`DLRSiteRules`,title:`Digital Realty Site Rules`,abstract:`This manual is written to provide the highest level of service while minimizing disruption to any stakeholders in our shared environments.
324
- These site rules apply to everyone who enters or uses any properties owned or managed by Digital Realty and its affiliates.`,body:j(`This manual is written to provide the highest level of service while minimizing disruption to any stakeholders in our shared environments.
325
- These site rules apply to everyone who enters or uses any properties owned or managed by Digital Realty and its affiliates.`,``),featured:!0,duration:void 0,dateAdded:`2023-02-14`,publishedAt:`2023-04-28T12:49:07.666Z`,topics:[{documentId:`ypucau2kzi95zv38sz9bt18c`,code:`operations`,name:`Operations`,icon:`house`}],category:{documentId:`pmt6iqnbgmo33sakbl5aj4rl`,uid:`operational-documents`,title:`Operational Documents`,subtitle:`Reference DLR's SOP documents.`,icon:`userguides`,image:null,behavior:`document_card`,order:100,showSortBy:!0,showFilterByTopic:!1},thumbnail:{url:`https://gp-uat.digitalrealty.com/_next/image?url=%2Fimages%2Fdefault-strapi-image.png&w=1920&q=75`,alternativeText:null,mime:`image/png`,name:`2026-05-08_12-52-26.png`,width:1499,height:851},video:null,documents:[{url:`http://127.0.0.1:10000/devstoreaccount1/assets/assets/Site_Rules2023_ddc9041213.pdf`,alternativeText:`Digital Realty Site Rules`,mime:`application/pdf`,name:`SiteRules2023.pdf`,width:void 0,height:void 0}]}],whatsNew:[{documentId:`d9i05bkwziza6v654okhyiz1`,uid:`welcome-to-the-global-portal`,title:`Welcome to the Global Portal!`,abstract:`We are delighted to welcome you to Digital Realty's new Global Portal! `,body:j(`<p>Our new Global Portal is your passport to DLR's a single global experience - any product, any service, any time and any where! Using the latest in technology and UX design is the culmination of our new best-in-class customer experience combining existing trusted capabilities along with expanded user management and control functionality which allows you to drive who and how they interact with products and services. The Global Portal introduces a clean and information-rich interface that is context-aware allowing single-click access for the most used and critical functions without leaving the Launchpad. This completely redesigned platform sits at the crossroads of DLR providing endless opportunities to securely integrate with products and service via our Global APIs.</p>`,``),featured:!1,duration:void 0,dateAdded:`2025-06-17`,publishedAt:`2022-08-03T00:38:14.022Z`,topics:[],category:{documentId:`g5rq78kmd343fkt4hzdrb0hw`,uid:`whats-new`,title:`What's New`,subtitle:`Click here to find out more about our newly released functionality and enhancements!`,icon:`local_offer`,image:null,behavior:`accordion`,order:1,showSortBy:!0,showFilterByTopic:!0},thumbnail:null,video:null,documents:[]},{documentId:`d9i05bkwziza6v654okhyiz1`,uid:`welcome-to-the-global-portal`,title:`Physical access requests are here!`,abstract:`Curabitur blandit tempus porttitor. Maecenas sed diam eget risus varius blandit sit amet non magna. Vestibulum id ligula porta felis euismod semper.`,body:j(`<p>Our new Global Portal is your passport to DLR's a single global experience - any product, any service, any time and any where! Using the latest in technology and UX design is the culmination of our new best-in-class customer experience combining existing trusted capabilities along with expanded user management and control functionality which allows you to drive who and how they interact with products and services. The Global Portal introduces a clean and information-rich interface that is context-aware allowing single-click access for the most used and critical functions without leaving the Launchpad. This completely redesigned platform sits at the crossroads of DLR providing endless opportunities to securely integrate with products and service via our Global APIs.</p>`,``),featured:!1,duration:void 0,dateAdded:`2024-04-07`,publishedAt:`2022-08-03T00:38:14.022Z`,topics:[],category:{documentId:`g5rq78kmd343fkt4hzdrb0hw`,uid:`whats-new`,title:`What's New`,subtitle:`Click here to find out more about our newly released functionality and enhancements!`,icon:`local_offer`,image:null,behavior:`accordion`,order:1,showSortBy:!0,showFilterByTopic:!0},thumbnail:null,video:null,documents:[]}]},an=class extends e{constructor(...e){super(...e),this.loading=!0,this.error=!1,this.data=null,this.request=0}static{this.styles=[W,G,nn]}connectedCallback(){super.connectedCallback(),this.load(),this.unsubscribePreview=zt(()=>void this.load())}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribePreview?.(),++this.request}async load(){let e=++this.request;this.loading=!0,this.error=!1;try{let t=await V().getLanding();e===this.request&&(this.data=t)}catch{e===this.request&&(this.data=rn)}finally{e===this.request&&(this.loading=!1)}}render(){if(this.loading)return n`<div class="my-16 tablet:my-32">
326
+ `,rn={indexPage:{heading:`Welcome to Knowledge Base!`,description:`Find information about our Portal, Products, Services and so much more on the Knowledge base pages.`,backgroundImage:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fknowledge_base_banner_d4dcd9e2f4.webp&w=1920&q=75`,alternativeText:`Knowledge Base banner`,mime:`image/webp`,name:`knowledge-base-banner.webp`,width:1840,height:514}},categories:[{documentId:`g5rq78kmd343fkt4hzdrb0hw`,uid:`whats-new`,title:`What's New`,subtitle:`Click here to find out more about our newly released functionality and enhancements!`,icon:`local_offer`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:`servers.jpg`,mime:`image/jpeg`,name:`servers.jpg`,width:4060,height:2092},behavior:`accordion`,order:1,showSortBy:!0,showFilterByTopic:!0},{documentId:`ozvhy3lnmkhjg33tf57r0vij`,uid:`documentation`,title:`User Guides`,subtitle:`Find documents that will guide you through our Global Portal functionality here.`,icon:`assignment`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:`city.jpg`,mime:`image/jpeg`,name:`city.jpg`,width:3980,height:2944},behavior:`document_card`,order:2,showSortBy:!0,showFilterByTopic:!0},{documentId:`aq1jyyyrwsrh1npo6c8s294f`,uid:`mediaresources`,title:`Media Resources`,subtitle:`The answers to all of your most frequently asked questions.`,icon:`web_asset`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:`metro.jpg`,mime:`image/jpeg`,name:`metro.jpg`,width:3840,height:2160},behavior:`video_card`,order:4,showSortBy:!0,showFilterByTopic:!0},{documentId:`pmt6iqnbgmo33sakbl5aj4rl`,uid:`operational-documents`,title:`Operational Documents`,subtitle:`Reference DLR's SOP documents.`,icon:`userguides`,image:{url:`https://gp-uat.digitalrealty.com/_next/image?url=https%3A%2F%2Fuat-cms-strapi.digitalrealtytrust.com%2Fuploads%2Fdownload_c3901bb9c7.png&w=1920&q=75`,alternativeText:null,mime:`image/jpeg`,name:`Updated_DLRGlobalPortalLogin.jpg`,width:10003,height:5080},behavior:`document_card`,order:100,showSortBy:!0,showFilterByTopic:!1}],topics:[{documentId:`s629hzyncwphtl3iquv2v95s`,code:`facilityaccess`,name:`Facility Access`,icon:`key`},{documentId:`tqiyw62aqtehuf1njbzzakpx`,code:`usermanagement`,name:`User Management`,icon:`person`},{documentId:`iygzje1mz1fv2fmkh35hxbxo`,code:`rolemanagement`,name:`Role Management`,icon:`book`},{documentId:`yyhu0fen2ru3zqi0xkcnxnux`,code:`servicetickets`,name:`Service Tickets`,icon:`list`},{documentId:`ypucau2kzi95zv38sz9bt18c`,code:`operations`,name:`Operations`,icon:`house`},{documentId:`z7p302fogy2bveaa6qs7oy9g`,code:`reports`,name:`Reports`,icon:`report`}],featured:[{documentId:`emc4t20cdqw2wyyy6xl1c2fb`,uid:`global-portal-welcome-video`,title:`Global Portal Overview Video`,abstract:void 0,body:N(`<p>Welcome to the Global Portal! Discover how our Global Portal streamlines access to key services, integrates seamlessly with backend systems, and empowers you with self-service capabilities designed for scale and ease.</p>`,``),featured:!0,duration:229,dateAdded:`2025-06-11`,publishedAt:`2026-05-08T10:56:59.967Z`,topics:[],category:{documentId:`aq1jyyyrwsrh1npo6c8s294f`,uid:`mediaresources`,title:`Media Resources`,subtitle:`The answers to all of your most frequently asked questions.`,icon:`web_asset`,image:null,behavior:`video_card`,order:4,showSortBy:!0,showFilterByTopic:!0},thumbnail:{url:` https://gp-uat.digitalrealty.com/_next/image?url=%2Fimages%2Fdefault-strapi-image.png&w=1920&q=75`,alternativeText:null,mime:`image/png`,name:`2026-05-08_12-52-26.png`,width:1499,height:851},video:{url:`https://gp-uat.digitalrealty.com/api/files?url=%2Fuploads%2FAN_v6_FULL_36021addbb.mp4`,alternativeText:`Global Portal Overview`,mime:`video/mp4`,name:`AN v9 - Global Portal - FULL.mp4`,width:void 0,height:void 0,formats:{}},documents:[]},{documentId:`ifez9p97ezdtz9lohf9rikvl`,uid:`DLRSiteRules`,title:`Digital Realty Site Rules`,abstract:`This manual is written to provide the highest level of service while minimizing disruption to any stakeholders in our shared environments.
327
+ These site rules apply to everyone who enters or uses any properties owned or managed by Digital Realty and its affiliates.`,body:N(`This manual is written to provide the highest level of service while minimizing disruption to any stakeholders in our shared environments.
328
+ These site rules apply to everyone who enters or uses any properties owned or managed by Digital Realty and its affiliates.`,``),featured:!0,duration:void 0,dateAdded:`2023-02-14`,publishedAt:`2023-04-28T12:49:07.666Z`,topics:[{documentId:`ypucau2kzi95zv38sz9bt18c`,code:`operations`,name:`Operations`,icon:`house`}],category:{documentId:`pmt6iqnbgmo33sakbl5aj4rl`,uid:`operational-documents`,title:`Operational Documents`,subtitle:`Reference DLR's SOP documents.`,icon:`userguides`,image:null,behavior:`document_card`,order:100,showSortBy:!0,showFilterByTopic:!1},thumbnail:{url:`https://gp-uat.digitalrealty.com/_next/image?url=%2Fimages%2Fdefault-strapi-image.png&w=1920&q=75`,alternativeText:null,mime:`image/png`,name:`2026-05-08_12-52-26.png`,width:1499,height:851},video:null,documents:[{url:`http://127.0.0.1:10000/devstoreaccount1/assets/assets/Site_Rules2023_ddc9041213.pdf`,alternativeText:`Digital Realty Site Rules`,mime:`application/pdf`,name:`SiteRules2023.pdf`,width:void 0,height:void 0}]}],whatsNew:[{documentId:`d9i05bkwziza6v654okhyiz1`,uid:`welcome-to-the-global-portal`,title:`Welcome to the Global Portal!`,abstract:`We are delighted to welcome you to Digital Realty's new Global Portal! `,body:N(`<p>Our new Global Portal is your passport to DLR's a single global experience - any product, any service, any time and any where! Using the latest in technology and UX design is the culmination of our new best-in-class customer experience combining existing trusted capabilities along with expanded user management and control functionality which allows you to drive who and how they interact with products and services. The Global Portal introduces a clean and information-rich interface that is context-aware allowing single-click access for the most used and critical functions without leaving the Launchpad. This completely redesigned platform sits at the crossroads of DLR providing endless opportunities to securely integrate with products and service via our Global APIs.</p>`,``),featured:!1,duration:void 0,dateAdded:`2025-06-17`,publishedAt:`2022-08-03T00:38:14.022Z`,topics:[],category:{documentId:`g5rq78kmd343fkt4hzdrb0hw`,uid:`whats-new`,title:`What's New`,subtitle:`Click here to find out more about our newly released functionality and enhancements!`,icon:`local_offer`,image:null,behavior:`accordion`,order:1,showSortBy:!0,showFilterByTopic:!0},thumbnail:null,video:null,documents:[]},{documentId:`d9i05bkwziza6v654okhyiz1`,uid:`welcome-to-the-global-portal`,title:`Physical access requests are here!`,abstract:`Curabitur blandit tempus porttitor. Maecenas sed diam eget risus varius blandit sit amet non magna. Vestibulum id ligula porta felis euismod semper.`,body:N(`<p>Our new Global Portal is your passport to DLR's a single global experience - any product, any service, any time and any where! Using the latest in technology and UX design is the culmination of our new best-in-class customer experience combining existing trusted capabilities along with expanded user management and control functionality which allows you to drive who and how they interact with products and services. The Global Portal introduces a clean and information-rich interface that is context-aware allowing single-click access for the most used and critical functions without leaving the Launchpad. This completely redesigned platform sits at the crossroads of DLR providing endless opportunities to securely integrate with products and service via our Global APIs.</p>`,``),featured:!1,duration:void 0,dateAdded:`2024-04-07`,publishedAt:`2022-08-03T00:38:14.022Z`,topics:[],category:{documentId:`g5rq78kmd343fkt4hzdrb0hw`,uid:`whats-new`,title:`What's New`,subtitle:`Click here to find out more about our newly released functionality and enhancements!`,icon:`local_offer`,image:null,behavior:`accordion`,order:1,showSortBy:!0,showFilterByTopic:!0},thumbnail:null,video:null,documents:[]}]},an=class extends e{constructor(...e){super(...e),this.loading=!0,this.error=!1,this.data=null,this.request=0}static{this.styles=[W,G,nn]}connectedCallback(){super.connectedCallback(),this.load(),this.unsubscribePreview=Rt(()=>void this.load())}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribePreview?.(),++this.request}async load(){let e=++this.request;this.loading=!0,this.error=!1;try{let t=await V().getLanding();e===this.request&&(this.data=t)}catch{e===this.request&&(this.data=rn)}finally{e===this.request&&(this.loading=!1)}}render(){if(this.loading)return n`<div class="my-16 tablet:my-32">
326
329
  <ix-progress
327
330
  class="flex justify-center"
328
331
  aria-label="Loading Knowledge Base"
@@ -361,10 +364,10 @@ These site rules apply to everyone who enters or uses any properties owned or ma
361
364
  </div>
362
365
  </div>
363
366
  </div>
364
- `}};H([s()],an.prototype,`loading`,void 0),H([s()],an.prototype,`error`,void 0),H([s()],an.prototype,`data`,void 0),an=H([a(`kb-landing-view`)],an);var on=new Intl.Collator(`en`,{sensitivity:`accent`});function sn(e,t){return on.compare(e.title,t.title)||(e.uid<t.uid?-1:+(e.uid>t.uid))}function cn(e){for(let t of e.topics){let e=t.name.trim();if(e)return e}}function ln(e,t=`newest`){return[...e].sort((e,n)=>{if(t===`topic`){let t=cn(e),r=cn(n);return t===void 0&&r!==void 0?1:r===void 0&&t!==void 0?-1:on.compare(t??``,r??``)||sn(e,n)}let r=Date.parse(e.dateAdded??``),i=Date.parse(n.dateAdded??``),a=Number.isFinite(r),o=Number.isFinite(i);return a===o?a&&o&&r!==i?t===`oldest`?r-i:i-r:sn(e,n):a?-1:1})}function un(e){return Number.isInteger(e)&&e>=1&&e<=9999}function dn(e){return[...new Set(e.filter(un))].sort((e,t)=>t-e)}function fn(e){if(typeof e!=`string`)return null;let t=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})(?:\.\d{1,9})?(Z|[+-]\d{2}:\d{2}))?$/.exec(e);if(!t||t[0]!==e)return null;let[,n,r,i,a,o,s,c]=t,l=Number(n),u=Number(r),d=Number(i),f=[31,l%4==0&&(l%100!=0||l%400==0)?29:28,31,30,31,30,31,31,30,31,30,31];if(!un(l)||u<1||u>12||d<1||d>f[u-1])return null;if(a===void 0)return l;if(Number(a)>23||Number(o)>59||Number(s)>59||c!==`Z`&&(Number(c.slice(1,3))>23||Number(c.slice(4,6))>59))return null;let p=new Date(e).getUTCFullYear();return un(p)?p:null}function pn(e){return dn(e.map(e=>fn(e.dateAdded)).filter(e=>e!==null))}var mn=i`<svg
367
+ `}};H([s()],an.prototype,`loading`,void 0),H([s()],an.prototype,`error`,void 0),H([s()],an.prototype,`data`,void 0),an=H([a(`kb-landing-view`)],an);var on=new Intl.Collator(`en`,{sensitivity:`accent`});function sn(e,t){return on.compare(e.title,t.title)||(e.uid<t.uid?-1:+(e.uid>t.uid))}function cn(e){for(let t of e.topics){let e=t.name.trim();if(e)return e}}var ln=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})(?:\.\d{1,9})?(Z|[+-]\d{2}:\d{2}))?$/;function un(e){if(typeof e!=`string`)return NaN;let t=ln.exec(e);if(!t||t[0]!==e)return NaN;let[,n,r,i,a,o,s,c]=t,l=Number(n),u=Number(r),d=Number(i);if(l<1||u<1||u>12)return NaN;let f=[31,l%4==0&&(l%100!=0||l%400==0)?29:28,31,30,31,30,31,31,30,31,30,31];if(d<1||d>f[u-1]||a!==void 0&&(Number(a)>23||Number(o)>59||Number(s)>59||c!==`Z`&&(Number(c.slice(1,3))>23||Number(c.slice(4,6))>59)))return NaN;let p=Date.parse(e);return Number.isFinite(p)?p:NaN}function dn(e,t=`newest`){return[...e].sort((e,n)=>{if(t===`topic`){let t=cn(e),r=cn(n);return t===void 0&&r!==void 0?1:r===void 0&&t!==void 0?-1:on.compare(t??``,r??``)||sn(e,n)}let r=un(e.dateAdded),i=un(n.dateAdded),a=Number.isFinite(r),o=Number.isFinite(i);return a===o?a&&o&&r!==i?t===`oldest`?r-i:i-r:sn(e,n):a?-1:1})}function fn(e){return Number.isInteger(e)&&e>=1&&e<=9999}function pn(e){return[...new Set(e.filter(fn))].sort((e,t)=>t-e)}function K(e){if(typeof e!=`string`)return null;let t=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})(?:\.\d{1,9})?(Z|[+-]\d{2}:\d{2}))?$/.exec(e);if(!t||t[0]!==e)return null;let[,n,r,i,a,o,s,c]=t,l=Number(n),u=Number(r),d=Number(i),f=[31,l%4==0&&(l%100!=0||l%400==0)?29:28,31,30,31,30,31,31,30,31,30,31];if(!fn(l)||u<1||u>12||d<1||d>f[u-1])return null;if(a===void 0)return l;if(Number(a)>23||Number(o)>59||Number(s)>59||c!==`Z`&&(Number(c.slice(1,3))>23||Number(c.slice(4,6))>59))return null;let p=new Date(e).getUTCFullYear();return fn(p)?p:null}function mn(e){return pn(e.map(e=>K(e.dateAdded)).filter(e=>e!==null))}var hn=i`<svg
365
368
  slot="icon" aria-hidden="true" focusable="false"
366
369
  width="20" height="20" viewBox="0 0 24 24" fill="currentColor"
367
- ><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"></path></svg>`,K=[],hn=!1;function q(e){e!==K[K.length-1]&&(e===K[K.length-2]?K.pop():K.push(e))}function gn(e){let t=e.detail?.location;q(t?.pathname??window.location.pathname)}function _n(){hn||(hn=!0,q(window.location.pathname),window.addEventListener(`vaadin-router-location-changed`,gn))}function vn(){return K.length>=2?K[K.length-2]:null}function yn(){let e=vn();e&&re(e)?window.history.back():c.go(h)}var bn=class extends e{static{this.styles=t`
370
+ ><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"></path></svg>`,q=[],gn=!1;function _n(e){e!==q[q.length-1]&&(e===q[q.length-2]?q.pop():q.push(e))}function vn(e){let t=e.detail?.location;_n(t?.pathname??window.location.pathname)}function yn(){gn||(gn=!0,_n(window.location.pathname),window.addEventListener(`vaadin-router-location-changed`,vn))}function bn(){return q.length>=2?q[q.length-2]:null}function xn(){let e=bn();e&&re(e)?window.history.back():c.go(h)}var Sn=class extends e{static{this.styles=t`
368
371
  :host {
369
372
  display: inline-block;
370
373
  font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
@@ -381,16 +384,16 @@ These site rules apply to everyone who enters or uses any properties owned or ma
381
384
  .label {
382
385
  text-transform: uppercase;
383
386
  }
384
- `}connectedCallback(){super.connectedCallback(),_n()}render(){return n`
385
- <ix-button appearance="text" has-icon @click=${()=>yn()}>
386
- ${mn}
387
+ `}connectedCallback(){super.connectedCallback(),yn()}render(){return n`
388
+ <ix-button appearance="text" has-icon @click=${()=>xn()}>
389
+ ${hn}
387
390
  <span class="label">Back</span>
388
391
  </ix-button>
389
- `}};bn=H([a(`kb-back-btn`)],bn);var xn=n`
392
+ `}};Sn=H([a(`kb-back-btn`)],Sn);var Cn=n`
390
393
  <svg viewBox="0 0 24 24" width="16" height="16" aria-hidden="true" focusable="false">
391
394
  <path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path>
392
395
  </svg>
393
- `,Sn=class extends e{constructor(...e){super(...e),this.current=``}static{this.styles=t`
396
+ `,wn=class extends e{constructor(...e){super(...e),this.current=``}static{this.styles=t`
394
397
  :host {
395
398
  display: block;
396
399
  font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
@@ -447,12 +450,12 @@ These site rules apply to everyone who enters or uses any properties owned or ma
447
450
  <ol>
448
451
  <li><a href=${h}>Knowledge Base</a></li>
449
452
  ${this.current?n`
450
- <li class="sep" aria-hidden="true">${xn}</li>
453
+ <li class="sep" aria-hidden="true">${Cn}</li>
451
454
  <li><span class="current" aria-current="page">${this.current}</span></li>
452
455
  `:r}
453
456
  </ol>
454
457
  </nav>
455
- `}};H([o({type:String})],Sn.prototype,`current`,void 0),Sn=H([a(`kb-breadcrumb`)],Sn);function Cn(e){let t=[`mediaresources`,`operational-documents`,`documentation`,`whats-new`],n=e=>{let n=t.indexOf(e);return n<0?t.length:n};return[...e].sort((e,t)=>n(e.uid)-n(t.uid))}var J=class extends e{constructor(...e){super(...e),this.categories=[],this.currentUid=``,this.compact=!1}static{this.styles=t`
458
+ `}};H([o({type:String})],wn.prototype,`current`,void 0),wn=H([a(`kb-breadcrumb`)],wn);function Tn(e){let t=[`mediaresources`,`operational-documents`,`documentation`,`whats-new`],n=e=>{let n=t.indexOf(e);return n<0?t.length:n};return[...e].sort((e,t)=>n(e.uid)-n(t.uid))}var J=class extends e{constructor(...e){super(...e),this.categories=[],this.currentUid=``,this.compact=!1}static{this.styles=t`
456
459
  :host {
457
460
  display: block;
458
461
  min-inline-size: 0;
@@ -664,7 +667,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
664
667
  </div>
665
668
  </div>
666
669
  </div>
667
- `}};H([o({type:Number})],Y.prototype,`count`,void 0),H([o({type:String})],Y.prototype,`value`,void 0),Y=H([a(`kb-sort-control`)],Y);function wn(e){return n`<svg
670
+ `}};H([o({type:Number})],Y.prototype,`count`,void 0),H([o({type:String})],Y.prototype,`value`,void 0),Y=H([a(`kb-sort-control`)],Y);function En(e){return n`<svg
668
671
  class="topic-icon"
669
672
  viewBox="0 0 24 24"
670
673
  width="20"
@@ -862,7 +865,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
862
865
  aria-pressed=${String(this.selectedCode===e.code)}
863
866
  @click=${()=>this.select(e.code)}
864
867
  >
865
- ${wn(e.icon)}
868
+ ${En(e.icon)}
866
869
  <span>${e.name?.trim()?e.name:e.code}</span>
867
870
  ${this.selectedCode===e.code?n`<svg class="selected-icon" aria-hidden="true" focusable="false" width="22" height="22" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"></path></svg>`:r}
868
871
  </button>
@@ -890,7 +893,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
890
893
  </svg>
891
894
  </button>
892
895
  </div>
893
- `:r}};H([o({attribute:!1})],X.prototype,`topics`,void 0),H([o({type:String,attribute:`selected-code`})],X.prototype,`selectedCode`,void 0),H([s()],X.prototype,`canScrollBack`,void 0),H([s()],X.prototype,`canScrollForward`,void 0),X=H([a(`kb-topic-filter`)],X);var Tn=class extends e{constructor(...e){super(...e),this.years=[],this.selectedYear=null}static{this.styles=t`
896
+ `:r}};H([o({attribute:!1})],X.prototype,`topics`,void 0),H([o({type:String,attribute:`selected-code`})],X.prototype,`selectedCode`,void 0),H([s()],X.prototype,`canScrollBack`,void 0),H([s()],X.prototype,`canScrollForward`,void 0),X=H([a(`kb-topic-filter`)],X);var Dn=class extends e{constructor(...e){super(...e),this.years=[],this.selectedYear=null}static{this.styles=t`
894
897
  :host {
895
898
  display: block;
896
899
  font-family: var(--text-default-font, var(--root-primary-font, 'Open Sans', sans-serif));
@@ -941,7 +944,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
941
944
  outline-color: Highlight;
942
945
  }
943
946
  }
944
- `}selectYear(e){dn(this.years).includes(e)&&this.dispatchEvent(new CustomEvent(`kb-year-change`,{detail:{year:e},bubbles:!0,composed:!0}))}render(){let e=dn(this.years);return e.length?n`
947
+ `}selectYear(e){pn(this.years).includes(e)&&this.dispatchEvent(new CustomEvent(`kb-year-change`,{detail:{year:e},bubbles:!0,composed:!0}))}render(){let e=pn(this.years);return e.length?n`
945
948
  <div class="years" role="group" aria-label="Filter release notes by year">
946
949
  ${d(e,e=>e,e=>n`
947
950
  <button
@@ -954,7 +957,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
954
957
  </button>
955
958
  `)}
956
959
  </div>
957
- `:r}};H([o({attribute:!1})],Tn.prototype,`years`,void 0),H([o({attribute:!1})],Tn.prototype,`selectedYear`,void 0),Tn=H([a(`kb-whats-new-year-filter`)],Tn);function En(e){for(let t of[e.dateAdded,e.publishedAt]){if(!t)continue;let e=new Date(t);if(Number.isFinite(e.getTime()))return e}}var Dn=class extends e{constructor(...e){super(...e),this.post=null}static{this.styles=t`
960
+ `:r}};H([o({attribute:!1})],Dn.prototype,`years`,void 0),H([o({attribute:!1})],Dn.prototype,`selectedYear`,void 0),Dn=H([a(`kb-whats-new-year-filter`)],Dn);function On(e){for(let t of[e.dateAdded,e.publishedAt]){if(!t)continue;let e=new Date(t);if(Number.isFinite(e.getTime()))return e}}var Z=class extends e{constructor(...e){super(...e),this.post=null}static{this.styles=t`
958
961
  :host {
959
962
  display: block;
960
963
  min-inline-size: 0;
@@ -1065,7 +1068,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1065
1068
  border: 1px solid CanvasText;
1066
1069
  }
1067
1070
  }
1068
- `}render(){let e=this.post;if(!e)return r;let t=En(e),i=e.topics.filter(e=>e.name.trim());return n`
1071
+ `}render(){let e=this.post;if(!e)return r;let t=On(e),i=e.topics.filter(e=>e.name.trim());return n`
1069
1072
  <article aria-labelledby="post-title">
1070
1073
  <svg
1071
1074
  class="chain-icon"
@@ -1097,7 +1100,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1097
1100
  <div class="body">${e.body}</div>
1098
1101
  </div>
1099
1102
  </article>
1100
- `}};H([o({attribute:!1})],Dn.prototype,`post`,void 0),Dn=H([a(`kb-post-text`)],Dn);function On(e){if(e)try{let t=new URL(e);return(t.protocol===`https:`||t.protocol===`http:`)&&!t.username&&!t.password?t.href:void 0}catch{return}}var Z=class extends e{constructor(...e){super(...e),this.post=null}static{this.styles=t`
1103
+ `}};H([o({attribute:!1})],Z.prototype,`post`,void 0),Z=H([a(`kb-post-text`)],Z);function kn(e){if(e)try{let t=new URL(e);return(t.protocol===`https:`||t.protocol===`http:`)&&!t.username&&!t.password?t.href:void 0}catch{return}}var An=class extends e{constructor(...e){super(...e),this.post=null}static{this.styles=t`
1101
1104
  :host {
1102
1105
  display: block;
1103
1106
  min-inline-size: 0;
@@ -1238,7 +1241,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1238
1241
  border: 1px solid CanvasText;
1239
1242
  }
1240
1243
  }
1241
- `}render(){let e=this.post;if(!e)return r;let t=e.topics.filter(e=>e.name.trim()),i=e.documents.flatMap((e,t)=>{let n=On(e.url);return n?[{href:n,label:e.name?.trim()||`Document ${t+1}`}]:[]}),a=i.length===1?i[0]:void 0;return n`
1244
+ `}render(){let e=this.post;if(!e)return r;let t=e.topics.filter(e=>e.name.trim()),i=e.documents.flatMap((e,t)=>{let n=kn(e.url);return n?[{href:n,label:e.name?.trim()||`Document ${t+1}`}]:[]}),a=i.length===1?i[0]:void 0;return n`
1242
1245
  <article aria-labelledby="post-title">
1243
1246
  <svg
1244
1247
  class="chain-icon"
@@ -1274,7 +1277,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1274
1277
  </ul>`:r}
1275
1278
  </div>
1276
1279
  </article>
1277
- `}};H([o({attribute:!1})],Z.prototype,`post`,void 0),Z=H([a(`kb-post-document-card`)],Z);function kn(e){if(e<=0)return 0;let t=e/36;return Math.round(10*(4+15*t**.25+t/5))}var An=0,jn=class extends e{constructor(...e){super(...e),this.post=null,this.expanded=!1,this.retaining=!1,this.fromHeight=0,this.motionPreference=()=>{this.reduceMotion?.matches&&(this.cancelMotion(),this.retaining=!1)},this.buttonId=`kb-accordion-button-${++An}`,this.panelId=`${this.buttonId}-panel`}connectedCallback(){super.connectedCallback(),this.reduceMotion=window.matchMedia?.(`(prefers-reduced-motion: reduce)`),this.reduceMotion?.addEventListener?.(`change`,this.motionPreference)}disconnectedCallback(){this.cancelMotion(),this.retaining=!1,this.reduceMotion?.removeEventListener?.(`change`,this.motionPreference),super.disconnectedCallback()}cancelMotion(){this.motionTimer!==void 0&&clearTimeout(this.motionTimer),this.motionTimer=void 0,this.motion&&(this.motion.onfinish=null,this.motion.cancel()),this.motion=void 0}willUpdate(e){if(!e.has(`expanded`)&&!e.has(`post`))return;let t=this.shadowRoot?.querySelector(`.panel`);this.fromHeight=t?.getBoundingClientRect().height??0,this.cancelMotion(),this.retaining=this.hasUpdated&&!e.has(`post`)&&!!t?.animate&&!this.reduceMotion?.matches,!this.expanded&&t?.contains(this.shadowRoot?.activeElement??null)&&this.shadowRoot?.querySelector(`button`)?.focus()}updated(e){if(!this.retaining||!e.has(`expanded`)||!this.isConnected)return;let t=this.shadowRoot.querySelector(`.panel`),n=this.shadowRoot.querySelector(`.panel-content`);if(!t||!n){this.retaining=!1;return}let r=n.getBoundingClientRect().height,i=kn(r),a=this.expanded?r:0;if(!i||this.fromHeight===a){this.retaining=!1;return}let o=t.animate([{height:`${this.fromHeight}px`},{height:`${a}px`}],{duration:i,easing:`cubic-bezier(0.4, 0, 0.2, 1)`});this.motion=o;let s=()=>{this.motion===o&&(this.cancelMotion(),this.retaining=!1)};o.onfinish=s,this.motionTimer=setTimeout(s,i+60)}static{this.styles=t`
1280
+ `}};H([o({attribute:!1})],An.prototype,`post`,void 0),An=H([a(`kb-post-document-card`)],An);function jn(e){if(e<=0)return 0;let t=e/36;return Math.round(10*(4+15*t**.25+t/5))}var Mn=0,Nn=class extends e{constructor(...e){super(...e),this.post=null,this.expanded=!1,this.retaining=!1,this.fromHeight=0,this.motionPreference=()=>{this.reduceMotion?.matches&&(this.cancelMotion(),this.retaining=!1)},this.buttonId=`kb-accordion-button-${++Mn}`,this.panelId=`${this.buttonId}-panel`}connectedCallback(){super.connectedCallback(),this.reduceMotion=window.matchMedia?.(`(prefers-reduced-motion: reduce)`),this.reduceMotion?.addEventListener?.(`change`,this.motionPreference)}disconnectedCallback(){this.cancelMotion(),this.retaining=!1,this.reduceMotion?.removeEventListener?.(`change`,this.motionPreference),super.disconnectedCallback()}cancelMotion(){this.motionTimer!==void 0&&clearTimeout(this.motionTimer),this.motionTimer=void 0,this.motion&&(this.motion.onfinish=null,this.motion.cancel()),this.motion=void 0}willUpdate(e){if(!e.has(`expanded`)&&!e.has(`post`))return;let t=this.shadowRoot?.querySelector(`.panel`);this.fromHeight=t?.getBoundingClientRect().height??0,this.cancelMotion(),this.retaining=this.hasUpdated&&!e.has(`post`)&&!!t?.animate&&!this.reduceMotion?.matches,!this.expanded&&t?.contains(this.shadowRoot?.activeElement??null)&&this.shadowRoot?.querySelector(`button`)?.focus()}updated(e){if(!this.retaining||!e.has(`expanded`)||!this.isConnected)return;let t=this.shadowRoot.querySelector(`.panel`),n=this.shadowRoot.querySelector(`.panel-content`);if(!t||!n){this.retaining=!1;return}let r=n.getBoundingClientRect().height,i=jn(r),a=this.expanded?r:0;if(!i||this.fromHeight===a){this.retaining=!1;return}let o=t.animate([{height:`${this.fromHeight}px`},{height:`${a}px`}],{duration:i,easing:`cubic-bezier(0.4, 0, 0.2, 1)`});this.motion=o;let s=()=>{this.motion===o&&(this.cancelMotion(),this.retaining=!1)};o.onfinish=s,this.motionTimer=setTimeout(s,i+60)}static{this.styles=t`
1278
1281
  :host {
1279
1282
  display: block;
1280
1283
  color: var(--clr-on-surface, #092241);
@@ -1415,7 +1418,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1415
1418
  <div class="panel-content">${this.expanded||this.retaining?e.body:r}</div>
1416
1419
  </div>
1417
1420
  </article>
1418
- `:r}};H([o({attribute:!1})],jn.prototype,`post`,void 0),H([o({type:Boolean})],jn.prototype,`expanded`,void 0),H([s()],jn.prototype,`retaining`,void 0),jn=H([a(`kb-post-accordion`)],jn);var Mn=t`
1421
+ `:r}};H([o({attribute:!1})],Nn.prototype,`post`,void 0),H([o({type:Boolean})],Nn.prototype,`expanded`,void 0),H([s()],Nn.prototype,`retaining`,void 0),Nn=H([a(`kb-post-accordion`)],Nn);var Pn=t`
1419
1422
  .sr-only {
1420
1423
  position: absolute;
1421
1424
  width: 1px;
@@ -1428,8 +1431,8 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1428
1431
  white-space: nowrap;
1429
1432
  border: 0;
1430
1433
  }
1431
- `;function Nn(e,t){if(e?.url&&!(e.mime&&(t===`captions`?e.mime!==`text/vtt`:!e.mime.startsWith(`${t}/`))))try{let t=new URL(e.url);return[`http:`,`https:`].includes(t.protocol)&&!t.username&&!t.password?t.href:void 0}catch{return}}function Pn(e){if(e===void 0||!Number.isFinite(e)||e<0||e>2**53-1)return;let t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=e=>String(e).padStart(2,`0`);return{text:n?`${n}:${a(r)}:${a(i)}`:`${r}:${a(i)}`,label:`Duration: ${n?`${n} hours, `:``}${r} minutes, ${i} seconds`}}var Fn=class extends e{constructor(...e){super(...e),this.post=null,this.expanded=!1,this.playbackMessage=``,this.captionMessage=``,this.generation=0,this.onRouteChange=()=>{++this.generation,this.stopPlayer()}}static{this.styles=t`
1432
- ${Mn}
1434
+ `;function Fn(e,t){if(e?.url&&!(e.mime&&(t===`captions`?e.mime!==`text/vtt`:!e.mime.startsWith(`${t}/`))))try{let t=new URL(e.url);return[`http:`,`https:`].includes(t.protocol)&&!t.username&&!t.password?t.href:void 0}catch{return}}function In(e){if(e===void 0||!Number.isFinite(e)||e<0||e>2**53-1)return;let t=Math.floor(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=e=>String(e).padStart(2,`0`);return{text:n?`${n}:${a(r)}:${a(i)}`:`${r}:${a(i)}`,label:`Duration: ${n?`${n} hours, `:``}${r} minutes, ${i} seconds`}}var Q=class extends e{constructor(...e){super(...e),this.post=null,this.expanded=!1,this.playbackMessage=``,this.captionMessage=``,this.generation=0,this.onRouteChange=()=>{++this.generation,this.stopPlayer()}}static{this.styles=t`
1435
+ ${Pn}
1433
1436
  :host {
1434
1437
  display: block;
1435
1438
  min-width: 0;
@@ -1653,7 +1656,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1653
1656
  outline-color: Highlight;
1654
1657
  }
1655
1658
  }
1656
- `}connectedCallback(){super.connectedCallback(),window.addEventListener(`vaadin-router-location-changed`,this.onRouteChange)}willUpdate(e){e.has(`post`)&&(++this.generation,this.stopPlayer())}disconnectedCallback(){window.removeEventListener(`vaadin-router-location-changed`,this.onRouteChange),++this.generation,this.stopPlayer(),super.disconnectedCallback()}stopPlayer(){let e=this.renderRoot?.querySelector(`dialog`);if(!this.expanded&&!this.activeVideo&&!e?.open)return!1;this.generation++;let t=this.activeVideo??this.renderRoot?.querySelector(`.player video`);if(this.activeVideo=void 0,this.expanded=!1,t&&(t.pause(),t.removeAttribute(`src`),t.querySelectorAll(`track`).forEach(e=>e.removeAttribute(`src`)),t.load()),this.playbackMessage=``,this.captionMessage=``,e?.open){let t=this.focusedElement(),n=t instanceof HTMLElement&&!e.contains(t);e.close(),n&&t.isConnected&&this.focusedElement()!==t&&t.focus()}return!0}async openPlayer(){if(!this.isConnected||!Nn(this.post?.video,`video`))return;this.playbackMessage=``;let e=++this.generation,t=this.post;if(this.expanded=!0,await this.updateComplete,!this.isConnected||!this.expanded||this.post!==t||e!==this.generation)return;let n=this.renderRoot.querySelector(`dialog`),r=this.renderRoot.querySelector(`.player video`);if(n&&r){this.activeVideo=r,n.open||n.showModal(),r.focus();try{await r.play()}catch{this.isConnected&&this.expanded&&e===this.generation&&(this.playbackMessage=`Use the player controls to start playback. If the video cannot load, try again later.`)}}}focusedElement(){let e=this.ownerDocument.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}async closePlayer(){if(!this.stopPlayer())return;let e=this.generation,t=this.post;await this.updateComplete;let n=this.renderRoot.querySelector(`.play`),r=this.focusedElement();this.isConnected&&this.post===t&&e===this.generation&&(!r||r===this.ownerDocument.body||r===this||r===n)&&n?.focus()}render(){let e=this.post;if(!e)return r;let t=e.title||`Video`,i=Nn(e.video,`video`),a=Nn(e.thumbnail,`image`),o=Nn(e.captions,`captions`),s=Pn(e.duration),c=o&&new URL(o).origin!==new URL(this.ownerDocument.baseURI).origin;return n` <article>
1659
+ `}connectedCallback(){super.connectedCallback(),window.addEventListener(`vaadin-router-location-changed`,this.onRouteChange)}willUpdate(e){e.has(`post`)&&(++this.generation,this.stopPlayer())}disconnectedCallback(){window.removeEventListener(`vaadin-router-location-changed`,this.onRouteChange),++this.generation,this.stopPlayer(),super.disconnectedCallback()}stopPlayer(){let e=this.renderRoot?.querySelector(`dialog`);if(!this.expanded&&!this.activeVideo&&!e?.open)return!1;this.generation++;let t=this.activeVideo??this.renderRoot?.querySelector(`.player video`);if(this.activeVideo=void 0,this.expanded=!1,t&&(t.pause(),t.removeAttribute(`src`),t.querySelectorAll(`track`).forEach(e=>e.removeAttribute(`src`)),t.load()),this.playbackMessage=``,this.captionMessage=``,e?.open){let t=this.focusedElement(),n=t instanceof HTMLElement&&!e.contains(t);e.close(),n&&t.isConnected&&this.focusedElement()!==t&&t.focus()}return!0}async openPlayer(){if(!this.isConnected||!Fn(this.post?.video,`video`))return;this.playbackMessage=``;let e=++this.generation,t=this.post;if(this.expanded=!0,await this.updateComplete,!this.isConnected||!this.expanded||this.post!==t||e!==this.generation)return;let n=this.renderRoot.querySelector(`dialog`),r=this.renderRoot.querySelector(`.player video`);if(n&&r){this.activeVideo=r,n.open||n.showModal(),r.focus();try{await r.play()}catch{this.isConnected&&this.expanded&&e===this.generation&&(this.playbackMessage=`Use the player controls to start playback. If the video cannot load, try again later.`)}}}focusedElement(){let e=this.ownerDocument.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}async closePlayer(){if(!this.stopPlayer())return;let e=this.generation,t=this.post;await this.updateComplete;let n=this.renderRoot.querySelector(`.play`),r=this.focusedElement();this.isConnected&&this.post===t&&e===this.generation&&(!r||r===this.ownerDocument.body||r===this||r===n)&&n?.focus()}render(){let e=this.post;if(!e)return r;let t=e.title||`Video`,i=Fn(e.video,`video`),a=Fn(e.thumbnail,`image`),o=Fn(e.captions,`captions`),s=In(e.duration),c=o&&new URL(o).origin!==new URL(this.ownerDocument.baseURI).origin;return n` <article>
1657
1660
  ${i?n`<button
1658
1661
  class="play"
1659
1662
  type="button"
@@ -1729,7 +1732,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1729
1732
  </svg>
1730
1733
  </button>
1731
1734
  </div>`:r}
1732
- </dialog>`}};H([o({attribute:!1})],Fn.prototype,`post`,void 0),H([s()],Fn.prototype,`expanded`,void 0),H([s()],Fn.prototype,`playbackMessage`,void 0),H([s()],Fn.prototype,`captionMessage`,void 0),Fn=H([a(`kb-post-video-card`)],Fn);var Q=class extends e{constructor(...e){super(...e),this.uid=``,this.loading=!0,this.error=!1,this.data=null,this.categories=[],this.categoriesLoading=!0,this.categoriesError=!1,this.topic=``,this.sort=`newest`,this.year=null,this.expandedUid=null,this.wide=!1,this.navigationOpen=!1,this.resizeNavigation=()=>{let e=this.shadowRoot?.activeElement,t=e?.closest(`[data-navigation]`)||e?.id===`category-disclosure`;this.wide=this.media?.matches??!1,this.navigationOpen=!1,t&&this.updateComplete.then(()=>this.focusHeading())},this.outsideNavigation=e=>{let t=e.composedPath(),n=this.shadowRoot?.querySelector(`#category-disclosure`),r=this.shadowRoot?.querySelector(`#category-navigation`);(!n||!t.includes(n))&&(!r||!t.includes(r))&&this.closeNavigation(!0)},this.navigationFocus=e=>{let t=e.composedPath(),n=this.shadowRoot?.querySelector(`#category-disclosure`),r=this.shadowRoot?.querySelector(`#category-navigation`);(!n||!t.includes(n))&&(!r||!t.includes(r))&&this.closeNavigation()},this.request=0,this.categoriesRequest=0,this.initialOpenVersion=0}static{this.styles=[W]}connectedCallback(){super.connectedCallback(),this.media=window.matchMedia?.(`(min-width: 900px)`),this.wide=this.media?.matches??!1,this.media?.addEventListener(`change`,this.resizeNavigation),document.addEventListener(`pointerdown`,this.outsideNavigation),this.renderRoot.addEventListener(`focusin`,this.navigationFocus),document.addEventListener(`focusin`,this.navigationFocus)}focusHeading(){this.shadowRoot?.querySelector(`#category-heading`)?.focus()}closeNavigation(e=!1){this.navigationOpen&&=(e&&this.shadowRoot?.activeElement?.closest(`[data-navigation]`)&&this.shadowRoot.querySelector(`#category-disclosure`)?.focus(),!1)}navigationKey(e){let t=e.composedPath(),n=this.shadowRoot?.querySelector(`#category-disclosure`),r=this.shadowRoot?.querySelector(`#category-navigation`),i=n&&t.includes(n)||r&&t.includes(r);e.key===`Escape`&&this.navigationOpen&&i&&(e.preventDefault(),this.shadowRoot?.querySelector(`#category-disclosure`)?.focus(),this.closeNavigation())}cancelInitialOpen(){++this.initialOpenVersion,this.initialOpenFrame!==void 0&&cancelAnimationFrame(this.initialOpenFrame),this.initialOpenFrame=void 0}async openInitialMonth(e){let t=this.initialOpenVersion,n=this.firstAccordion(this.visiblePosts());if(!n)return;await this.updateComplete;let r=()=>this.isConnected&&e===this.request&&t===this.initialOpenVersion;r()&&(this.initialOpenFrame=requestAnimationFrame(()=>{r()&&(this.initialOpenFrame=requestAnimationFrame(()=>{r()&&(this.initialOpenFrame=void 0,this.expandedUid===null&&(this.expandedUid=n))}))}))}onAfterEnter(e){this.focusBeforePageChange(),this.closeNavigation(!0),this.uid=String(e.params.uid??``),this.topic=``,this.sort=`newest`,this.year=null,this.expandedUid=null,this.load(),this.loadCategories()}disconnectedCallback(){this.media?.removeEventListener(`change`,this.resizeNavigation),document.removeEventListener(`pointerdown`,this.outsideNavigation),this.renderRoot.removeEventListener(`focusin`,this.navigationFocus),document.removeEventListener(`focusin`,this.navigationFocus),super.disconnectedCallback(),this.cancelInitialOpen(),++this.request,++this.categoriesRequest}focusBeforePageChange(){let e=this.shadowRoot?.activeElement;e&&e.id!==`category-heading`&&(e.closest(`[data-content]`)||e.closest(`[data-navigation]`))&&this.shadowRoot?.querySelector(`#category-heading`)?.focus()}async load(){this.cancelInitialOpen(),this.focusBeforePageChange();let e=++this.request;this.loading=!0,this.error=!1,this.data=null;try{let t=this.uid?await V().getCategory(this.uid):null;if(e!==this.request)return;this.data=t,this.year=this.uid===`whats-new`?pn(t?.posts??[])[0]??null:null,this.expandedUid=this.uid===`whats-new`?null:this.firstAccordion(this.visiblePosts())}catch{e===this.request&&(this.error=!0)}finally{e===this.request&&(this.loading=!1)}e===this.request&&!this.error&&this.uid===`whats-new`&&this.openInitialMonth(e)}async loadCategories(){this.shadowRoot?.activeElement?.closest(`[data-navigation]`)&&this.shadowRoot.querySelector(`#category-heading`)?.focus();let e=++this.categoriesRequest;this.categoriesLoading=!0,this.categoriesError=!1,this.categories=[];try{let t=await V().getCategories();e===this.categoriesRequest&&(this.categories=Cn(t))}catch{e===this.categoriesRequest&&(this.categoriesError=!0)}finally{e===this.categoriesRequest&&(this.categoriesLoading=!1)}}behavior(e){return e.behavior??this.data?.category?.behavior??`text`}visiblePosts(e=this.topic,t=this.year){let n=this.data?.category,r=(this.data?.posts??[]).filter(r=>(!n?.showFilterByTopic||!e||r.topics.some(t=>t.code===e))&&(this.uid!==`whats-new`||t===null||fn(r.dateAdded)===t));return n?.showSortBy?ln(r,this.sort):r}firstAccordion(e){return e.find(e=>this.behavior(e)===`accordion`)?.uid??null}focusBeforePostsChange(e,t){let n=this.shadowRoot?.activeElement,r=n?.closest(`[data-post]`);n&&r&&(e.some(e=>e.uid===r.dataset.post)?n.localName===`kb-post-accordion`&&r.dataset.post!==t&&(n.shadowRoot?.activeElement)?.closest(`[role="region"]`)&&n.shadowRoot?.querySelector(`button`)?.focus():this.shadowRoot?.querySelector(`#posts-heading`)?.focus())}filter(e,t){this.cancelInitialOpen();let n=this.visiblePosts(),r=this.visiblePosts(e,t),i=n.length===r.length&&n.every(e=>r.includes(e))?this.expandedUid:this.firstAccordion(r);this.focusBeforePostsChange(r,i),this.topic=e,this.year=t,this.expandedUid=i}onTopicChange(e){if(!this.data?.category?.showFilterByTopic)return;let t=e.detail.code;(!t||this.data.posts.some(e=>e.topics.some(e=>e.code===t)))&&this.filter(t,this.year)}onYearChange(e){let t=e.detail.year;this.uid===`whats-new`&&pn(this.data?.posts??[]).includes(t)&&this.filter(this.topic,t)}onSortChange(e){let t=e.detail.value;this.data?.category?.showSortBy&&[`newest`,`oldest`,`topic`].includes(t)&&(this.cancelInitialOpen(),this.sort=t)}onAccordionToggle(e){let{uid:t,expanded:n}=e.detail,r=this.visiblePosts();if(!r.some(e=>e.uid===t&&this.behavior(e)===`accordion`))return;this.cancelInitialOpen();let i=n?t:null;this.focusBeforePostsChange(r,i),this.expandedUid=i}renderPost(e){switch(this.behavior(e)){case`document_card`:return n`<kb-post-document-card .post=${e}></kb-post-document-card>`;case`video_card`:return n`<kb-post-video-card .post=${e}></kb-post-video-card>`;case`accordion`:return n`<kb-post-accordion
1735
+ </dialog>`}};H([o({attribute:!1})],Q.prototype,`post`,void 0),H([s()],Q.prototype,`expanded`,void 0),H([s()],Q.prototype,`playbackMessage`,void 0),H([s()],Q.prototype,`captionMessage`,void 0),Q=H([a(`kb-post-video-card`)],Q);var $=class extends e{constructor(...e){super(...e),this.uid=``,this.loading=!0,this.error=!1,this.data=null,this.categories=[],this.categoriesLoading=!0,this.categoriesError=!1,this.topic=``,this.sort=`newest`,this.year=null,this.expandedUid=null,this.wide=!1,this.navigationOpen=!1,this.resizeNavigation=()=>{let e=this.shadowRoot?.activeElement,t=e?.closest(`[data-navigation]`)||e?.id===`category-disclosure`;this.wide=this.media?.matches??!1,this.navigationOpen=!1,t&&this.updateComplete.then(()=>this.focusHeading())},this.outsideNavigation=e=>{let t=e.composedPath(),n=this.shadowRoot?.querySelector(`#category-disclosure`),r=this.shadowRoot?.querySelector(`#category-navigation`);(!n||!t.includes(n))&&(!r||!t.includes(r))&&this.closeNavigation(!0)},this.navigationFocus=e=>{let t=e.composedPath(),n=this.shadowRoot?.querySelector(`#category-disclosure`),r=this.shadowRoot?.querySelector(`#category-navigation`);(!n||!t.includes(n))&&(!r||!t.includes(r))&&this.closeNavigation()},this.request=0,this.categoriesRequest=0,this.initialOpenVersion=0}static{this.styles=[W]}connectedCallback(){super.connectedCallback(),this.media=window.matchMedia?.(`(min-width: 900px)`),this.wide=this.media?.matches??!1,this.media?.addEventListener(`change`,this.resizeNavigation),document.addEventListener(`pointerdown`,this.outsideNavigation),this.renderRoot.addEventListener(`focusin`,this.navigationFocus),document.addEventListener(`focusin`,this.navigationFocus)}focusHeading(){this.shadowRoot?.querySelector(`#category-heading`)?.focus()}closeNavigation(e=!1){this.navigationOpen&&=(e&&this.shadowRoot?.activeElement?.closest(`[data-navigation]`)&&this.shadowRoot.querySelector(`#category-disclosure`)?.focus(),!1)}navigationKey(e){let t=e.composedPath(),n=this.shadowRoot?.querySelector(`#category-disclosure`),r=this.shadowRoot?.querySelector(`#category-navigation`),i=n&&t.includes(n)||r&&t.includes(r);e.key===`Escape`&&this.navigationOpen&&i&&(e.preventDefault(),this.shadowRoot?.querySelector(`#category-disclosure`)?.focus(),this.closeNavigation())}cancelInitialOpen(){++this.initialOpenVersion,this.initialOpenFrame!==void 0&&cancelAnimationFrame(this.initialOpenFrame),this.initialOpenFrame=void 0}async openInitialMonth(e){let t=this.initialOpenVersion,n=this.firstAccordion(this.visiblePosts());if(!n)return;await this.updateComplete;let r=()=>this.isConnected&&e===this.request&&t===this.initialOpenVersion;r()&&(this.initialOpenFrame=requestAnimationFrame(()=>{r()&&(this.initialOpenFrame=requestAnimationFrame(()=>{r()&&(this.initialOpenFrame=void 0,this.expandedUid===null&&(this.expandedUid=n))}))}))}onAfterEnter(e){this.focusBeforePageChange(),this.closeNavigation(!0),this.uid=String(e.params.uid??``),this.topic=``,this.sort=`newest`,this.year=null,this.expandedUid=null,this.load(),this.loadCategories()}disconnectedCallback(){this.media?.removeEventListener(`change`,this.resizeNavigation),document.removeEventListener(`pointerdown`,this.outsideNavigation),this.renderRoot.removeEventListener(`focusin`,this.navigationFocus),document.removeEventListener(`focusin`,this.navigationFocus),super.disconnectedCallback(),this.cancelInitialOpen(),++this.request,++this.categoriesRequest}focusBeforePageChange(){let e=this.shadowRoot?.activeElement;e&&e.id!==`category-heading`&&(e.closest(`[data-content]`)||e.closest(`[data-navigation]`))&&this.shadowRoot?.querySelector(`#category-heading`)?.focus()}async load(){this.cancelInitialOpen(),this.focusBeforePageChange();let e=++this.request;this.loading=!0,this.error=!1,this.data=null;try{let t=this.uid?await V().getCategory(this.uid):null;if(e!==this.request)return;this.data=t,this.year=this.uid===`whats-new`?mn(t?.posts??[])[0]??null:null,this.expandedUid=this.uid===`whats-new`?null:this.firstAccordion(this.visiblePosts())}catch{e===this.request&&(this.error=!0)}finally{e===this.request&&(this.loading=!1)}e===this.request&&!this.error&&this.uid===`whats-new`&&this.openInitialMonth(e)}async loadCategories(){this.shadowRoot?.activeElement?.closest(`[data-navigation]`)&&this.shadowRoot.querySelector(`#category-heading`)?.focus();let e=++this.categoriesRequest;this.categoriesLoading=!0,this.categoriesError=!1,this.categories=[];try{let t=await V().getCategories();e===this.categoriesRequest&&(this.categories=Tn(t))}catch{e===this.categoriesRequest&&(this.categoriesError=!0)}finally{e===this.categoriesRequest&&(this.categoriesLoading=!1)}}behavior(e){return e.behavior??this.data?.category?.behavior??`text`}visiblePosts(e=this.topic,t=this.year){let n=this.data?.category,r=(this.data?.posts??[]).filter(r=>(!n?.showFilterByTopic||!e||r.topics.some(t=>t.code===e))&&(this.uid!==`whats-new`||t===null||K(r.dateAdded)===t));return n?.showSortBy||this.uid===`whats-new`?dn(r,this.sort):r}firstAccordion(e){return e.find(e=>this.behavior(e)===`accordion`)?.uid??null}focusBeforePostsChange(e,t){let n=this.shadowRoot?.activeElement,r=n?.closest(`[data-post]`);n&&r&&(e.some(e=>e.uid===r.dataset.post)?n.localName===`kb-post-accordion`&&r.dataset.post!==t&&(n.shadowRoot?.activeElement)?.closest(`[role="region"]`)&&n.shadowRoot?.querySelector(`button`)?.focus():this.shadowRoot?.querySelector(`#posts-heading`)?.focus())}filter(e,t){this.cancelInitialOpen();let n=this.visiblePosts(),r=this.visiblePosts(e,t),i=n.length===r.length&&n.every(e=>r.includes(e))?this.expandedUid:this.firstAccordion(r);this.focusBeforePostsChange(r,i),this.topic=e,this.year=t,this.expandedUid=i}onTopicChange(e){if(!this.data?.category?.showFilterByTopic)return;let t=e.detail.code;(!t||this.data.posts.some(e=>e.topics.some(e=>e.code===t)))&&this.filter(t,this.year)}onYearChange(e){let t=e.detail.year;this.uid===`whats-new`&&mn(this.data?.posts??[]).includes(t)&&this.filter(this.topic,t)}onSortChange(e){let t=e.detail.value;this.data?.category?.showSortBy&&[`newest`,`oldest`,`topic`].includes(t)&&(this.cancelInitialOpen(),this.sort=t)}onAccordionToggle(e){let{uid:t,expanded:n}=e.detail,r=this.visiblePosts();if(!r.some(e=>e.uid===t&&this.behavior(e)===`accordion`))return;this.cancelInitialOpen();let i=n?t:null;this.focusBeforePostsChange(r,i),this.expandedUid=i}renderPost(e){switch(this.behavior(e)){case`document_card`:return n`<kb-post-document-card .post=${e}></kb-post-document-card>`;case`video_card`:return n`<kb-post-video-card .post=${e}></kb-post-video-card>`;case`accordion`:return n`<kb-post-accordion
1733
1736
  .post=${e}
1734
1737
  .expanded=${this.expandedUid===e.uid}
1735
1738
  @kb-accordion-toggle=${this.onAccordionToggle}
@@ -1740,7 +1743,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1740
1743
  @click=${()=>void this.load()}
1741
1744
  >
1742
1745
  Retry category
1743
- </button>`;if(!this.data?.category)return n`<p>This category is unavailable.</p>`;let{category:e,posts:t}=this.data,i=new Map;for(let e of t.flatMap(e=>e.topics))e.code.trim()&&!i.has(e.code)&&i.set(e.code,e);let a=[...i.values()],o=this.uid===`whats-new`?pn(t):[],s=this.visiblePosts();return n`
1746
+ </button>`;if(!this.data?.category)return n`<p>This category is unavailable.</p>`;let{category:e,posts:t}=this.data,i=new Map;for(let e of t.flatMap(e=>e.topics))e.code.trim()&&!i.has(e.code)&&i.set(e.code,e);let a=[...i.values()],o=this.uid===`whats-new`?mn(t):[],s=this.visiblePosts();return n`
1744
1747
  <kb-search-bar class="min-[900px]:!mt-8" .category=${this.uid}></kb-search-bar>
1745
1748
  ${e.subtitle?n`<p>${e.subtitle}</p>`:r}
1746
1749
  ${o.length?n`<kb-whats-new-year-filter .years=${o} .selectedYear=${this.year} @kb-year-change=${this.onYearChange}></kb-whats-new-year-filter>`:r}
@@ -1811,7 +1814,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1811
1814
  ${this.renderContent()}
1812
1815
  </section>
1813
1816
  </div>
1814
- </div>`}};H([s()],Q.prototype,`uid`,void 0),H([s()],Q.prototype,`loading`,void 0),H([s()],Q.prototype,`error`,void 0),H([s()],Q.prototype,`data`,void 0),H([s()],Q.prototype,`categories`,void 0),H([s()],Q.prototype,`categoriesLoading`,void 0),H([s()],Q.prototype,`categoriesError`,void 0),H([s()],Q.prototype,`topic`,void 0),H([s()],Q.prototype,`sort`,void 0),H([s()],Q.prototype,`year`,void 0),H([s()],Q.prototype,`expandedUid`,void 0),H([s()],Q.prototype,`wide`,void 0),H([s()],Q.prototype,`navigationOpen`,void 0),Q=H([a(`kb-category-view`)],Q);var $=class extends e{constructor(...e){super(...e),this.code=``,this.loading=!0,this.error=!1,this.data=null,this.expandedUid=null,this.request=0}static{this.styles=[W]}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.code&&this.load()}onAfterEnter(e){this.code=String(e.params.code??``),this.load()}disconnectedCallback(){super.disconnectedCallback(),++this.request}async load(){let e=++this.request;this.loading=!0,this.error=!1,this.data=null,this.expandedUid=null;let t=()=>e===this.request;try{let e=this.code?await V().getTopic(this.code):null;t()&&(this.data=e)}catch{t()&&(this.error=!0)}finally{t()&&(this.loading=!1)}}behavior(e){return e.behavior??e.category?.behavior??`text`}onAccordionToggle(e){let{uid:t,expanded:n}=e.detail;this.data?.posts.some(e=>e.uid===t&&this.behavior(e)===`accordion`)&&(this.expandedUid=n?t:null)}renderPost(e){switch(this.behavior(e)){case`document_card`:return n`<kb-post-document-card .post=${e}></kb-post-document-card>`;case`video_card`:return n`<kb-post-video-card .post=${e}></kb-post-video-card>`;case`accordion`:return n`<kb-post-accordion
1817
+ </div>`}};H([s()],$.prototype,`uid`,void 0),H([s()],$.prototype,`loading`,void 0),H([s()],$.prototype,`error`,void 0),H([s()],$.prototype,`data`,void 0),H([s()],$.prototype,`categories`,void 0),H([s()],$.prototype,`categoriesLoading`,void 0),H([s()],$.prototype,`categoriesError`,void 0),H([s()],$.prototype,`topic`,void 0),H([s()],$.prototype,`sort`,void 0),H([s()],$.prototype,`year`,void 0),H([s()],$.prototype,`expandedUid`,void 0),H([s()],$.prototype,`wide`,void 0),H([s()],$.prototype,`navigationOpen`,void 0),$=H([a(`kb-category-view`)],$);var Ln=class extends e{constructor(...e){super(...e),this.code=``,this.loading=!0,this.error=!1,this.data=null,this.expandedUid=null,this.request=0}static{this.styles=[W]}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.code&&this.load()}onAfterEnter(e){this.code=String(e.params.code??``),this.load()}disconnectedCallback(){super.disconnectedCallback(),++this.request}async load(){let e=++this.request;this.loading=!0,this.error=!1,this.data=null,this.expandedUid=null;let t=()=>e===this.request;try{let e=this.code?await V().getTopic(this.code):null;t()&&(this.data=e)}catch{t()&&(this.error=!0)}finally{t()&&(this.loading=!1)}}behavior(e){return e.behavior??e.category?.behavior??`text`}onAccordionToggle(e){let{uid:t,expanded:n}=e.detail;this.data?.posts.some(e=>e.uid===t&&this.behavior(e)===`accordion`)&&(this.expandedUid=n?t:null)}renderPost(e){switch(this.behavior(e)){case`document_card`:return n`<kb-post-document-card .post=${e}></kb-post-document-card>`;case`video_card`:return n`<kb-post-video-card .post=${e}></kb-post-video-card>`;case`accordion`:return n`<kb-post-accordion
1815
1818
  .post=${e}
1816
1819
  .expanded=${this.expandedUid===e.uid}
1817
1820
  @kb-accordion-toggle=${this.onAccordionToggle}
@@ -1841,12 +1844,12 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1841
1844
  ${d(this.data.posts,e=>`${this.code}:${e.documentId||e.uid}`,e=>n`<li class="min-w-0" data-post=${e.uid}>${this.renderPost(e)}</li>`)}
1842
1845
  </ul>`:n`<p role="status">No posts in this topic yet.</p>`}
1843
1846
  `:n`<h1 id="topic-heading" class="dlr-text-page-title">Topic not found</h1>
1844
- <p>This topic is unavailable.</p>`}};H([s()],$.prototype,`code`,void 0),H([s()],$.prototype,`loading`,void 0),H([s()],$.prototype,`error`,void 0),H([s()],$.prototype,`data`,void 0),H([s()],$.prototype,`expandedUid`,void 0),$=H([a(`kb-topic-view`)],$);function In(e){if(e)try{let t=new URL(e);return(t.protocol===`https:`||t.protocol===`http:`)&&!t.username&&!t.password?t.href:void 0}catch{return}}function Ln(e,t=``){let i=In(e?.url);return!i||e?.mime&&!e.mime.startsWith(`image/`)?r:n`<img
1847
+ <p>This topic is unavailable.</p>`}};H([s()],Ln.prototype,`code`,void 0),H([s()],Ln.prototype,`loading`,void 0),H([s()],Ln.prototype,`error`,void 0),H([s()],Ln.prototype,`data`,void 0),H([s()],Ln.prototype,`expandedUid`,void 0),Ln=H([a(`kb-topic-view`)],Ln);function Rn(e){if(e)try{let t=new URL(e);return(t.protocol===`https:`||t.protocol===`http:`)&&!t.username&&!t.password?t.href:void 0}catch{return}}function zn(e,t=``){let i=Rn(e?.url);return!i||e?.mime&&!e.mime.startsWith(`image/`)?r:n`<img
1845
1848
  src=${i}
1846
1849
  alt=${e?.alternativeText??t}
1847
1850
  loading="lazy"
1848
1851
  decoding="async"
1849
- />`}var Rn=class extends e{constructor(...e){super(...e),this.post=null,this.preview=!1,this.showTitle=!0}static{this.styles=t`
1852
+ />`}var Bn=class extends e{constructor(...e){super(...e),this.post=null,this.preview=!1,this.showTitle=!0}static{this.styles=t`
1850
1853
  :host {
1851
1854
  display: block;
1852
1855
  color: var(--clr-on-surface, #092241);
@@ -1917,7 +1920,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1917
1920
  margin: 0.5rem 0;
1918
1921
  }
1919
1922
  `}render(){let e=this.post;if(!e)return r;let t=`${h}/details/${encodeURIComponent(e.uid)}`,i=n`
1920
- ${this.metadata(e)} ${Ln(e.thumbnail)}
1923
+ ${this.metadata(e)} ${zn(e.thumbnail)}
1921
1924
  ${e.abstract?n`<p>${e.abstract}</p>`:r}
1922
1925
  ${this.preview?r:n`<div class="body">${e.body}</div>
1923
1926
  ${this.media(e)}`}
@@ -1934,7 +1937,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1934
1937
  <span class="topics"
1935
1938
  >${e.topics.map(e=>n`<a href=${`${h}/topic/${encodeURIComponent(e.code)}`}>${e.name}</a>`)}</span
1936
1939
  >
1937
- </div>`}media(e){let t=In(e.video?.url),i=In(e.captions?.url),a=In(e.thumbnail?.url),o=i&&new URL(i).origin!==new URL(this.ownerDocument.baseURI).origin;return n`
1940
+ </div>`}media(e){let t=Rn(e.video?.url),i=Rn(e.captions?.url),a=Rn(e.thumbnail?.url),o=i&&new URL(i).origin!==new URL(this.ownerDocument.baseURI).origin;return n`
1938
1941
  ${t&&(!e.video?.mime||e.video.mime.startsWith(`video/`))?n` <video
1939
1942
  controls
1940
1943
  preload="metadata"
@@ -1947,13 +1950,13 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1947
1950
  <a href=${t} target="_blank" rel="noopener noreferrer">Download video</a>
1948
1951
  </video>`:r}
1949
1952
  ${e.documents.length?n`<ul class="documents" aria-label="Documents">
1950
- ${e.documents.map(e=>{let t=In(e.url);return t?n`<li>
1953
+ ${e.documents.map(e=>{let t=Rn(e.url);return t?n`<li>
1951
1954
  <a href=${t} download target="_blank" rel="noopener noreferrer"
1952
1955
  >${e.name||`Download document`}</a
1953
1956
  >
1954
1957
  </li>`:r})}
1955
1958
  </ul>`:r}
1956
- `}};H([o({attribute:!1})],Rn.prototype,`post`,void 0),H([o({type:Boolean})],Rn.prototype,`preview`,void 0),H([o({type:Boolean,attribute:`show-title`})],Rn.prototype,`showTitle`,void 0),Rn=H([a(`kb-post-content`)],Rn);var zn=class extends e{constructor(...e){super(...e),this.uid=``,this.loading=!0,this.error=!1,this.post=null,this.request=0}static{this.styles=[W]}onAfterEnter(e){this.uid=String(e.params.uid??``),this.load()}disconnectedCallback(){super.disconnectedCallback(),++this.request}async load(){let e=++this.request;this.loading=!0,this.error=!1,this.post=null;try{let t=this.uid?await V().getPost(this.uid):null;e===this.request&&(this.post=t)}catch{e===this.request&&(this.error=!0)}finally{e===this.request&&(this.loading=!1)}}render(){return n`<div class="p-4 space-y-4">${this.renderContent()}</div>`}renderContent(){let e=n`<a
1959
+ `}};H([o({attribute:!1})],Bn.prototype,`post`,void 0),H([o({type:Boolean})],Bn.prototype,`preview`,void 0),H([o({type:Boolean,attribute:`show-title`})],Bn.prototype,`showTitle`,void 0),Bn=H([a(`kb-post-content`)],Bn);var Vn=class extends e{constructor(...e){super(...e),this.uid=``,this.loading=!0,this.error=!1,this.post=null,this.request=0}static{this.styles=[W]}onAfterEnter(e){this.uid=String(e.params.uid??``),this.load()}disconnectedCallback(){super.disconnectedCallback(),++this.request}async load(){let e=++this.request;this.loading=!0,this.error=!1,this.post=null;try{let t=this.uid?await V().getPost(this.uid):null;e===this.request&&(this.post=t)}catch{e===this.request&&(this.error=!0)}finally{e===this.request&&(this.loading=!1)}}render(){return n`<div class="p-4 space-y-4">${this.renderContent()}</div>`}renderContent(){let e=n`<a
1957
1960
  class="dlr-text-link inline-flex min-h-11 items-center focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-primary"
1958
1961
  href=${h}
1959
1962
  >&larr; Knowledge Base</a
@@ -1971,7 +1974,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1971
1974
  <kb-post-content .post=${this.post} .showTitle=${!1}></kb-post-content>
1972
1975
  `:n`${e}
1973
1976
  <h1 class="dlr-text-page-title">Article not found</h1>
1974
- <p>This article is unavailable.</p>`}};H([s()],zn.prototype,`uid`,void 0),H([s()],zn.prototype,`loading`,void 0),H([s()],zn.prototype,`error`,void 0),H([s()],zn.prototype,`post`,void 0),zn=H([a(`kb-details-view`)],zn);var Bn={Landing:`kb-landing`,Category:`kb-category`,Topic:`kb-topic`,Details:`kb-details`},Vn=[{path:h,children:[{name:Bn.Landing,path:`/`,component:`kb-landing-view`},{name:Bn.Category,path:`/category/:uid`,component:`kb-category-view`},{name:Bn.Topic,path:`/topic/:code`,component:`kb-topic-view`},{name:Bn.Details,path:`/details/:uid`,component:`kb-details-view`}]},{path:`(.*)`,component:`no-elem`}],Hn=class extends e{constructor(...e){super(...e),this.drafts=Lt(),this.onToggle=e=>{let t=e.currentTarget.querySelector(`md-switch`)?.selected??!this.drafts;this.drafts=t,Rt(t)}}static{this.styles=[W,t`
1977
+ <p>This article is unavailable.</p>`}};H([s()],Vn.prototype,`uid`,void 0),H([s()],Vn.prototype,`loading`,void 0),H([s()],Vn.prototype,`error`,void 0),H([s()],Vn.prototype,`post`,void 0),Vn=H([a(`kb-details-view`)],Vn);var Hn={Landing:`kb-landing`,Category:`kb-category`,Topic:`kb-topic`,Details:`kb-details`},Un=[{path:h,children:[{name:Hn.Landing,path:`/`,component:`kb-landing-view`},{name:Hn.Category,path:`/category/:uid`,component:`kb-category-view`},{name:Hn.Topic,path:`/topic/:code`,component:`kb-topic-view`},{name:Hn.Details,path:`/details/:uid`,component:`kb-details-view`}]},{path:`(.*)`,component:`no-elem`}],Wn=class extends e{constructor(...e){super(...e),this.drafts=It(),this.onToggle=e=>{let t=e.currentTarget.querySelector(`md-switch`)?.selected??!this.drafts;this.drafts=t,Lt(t)}}static{this.styles=[W,t`
1975
1978
  :host {
1976
1979
  display: block;
1977
1980
  position: absolute;
@@ -1979,7 +1982,7 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1979
1982
  right: 12px;
1980
1983
  z-index: 50;
1981
1984
  }
1982
- `]}render(){return It()?n`
1985
+ `]}render(){return Ft()?n`
1983
1986
  <div
1984
1987
  class="flex items-center gap-3 rounded-full border border-[rgba(9,34,65,0.12)] bg-white px-4 py-2 text-sm text-[rgba(9,34,65,0.85)] shadow-lg"
1985
1988
  role="region"
@@ -1997,9 +2000,9 @@ These site rules apply to everyone who enters or uses any properties owned or ma
1997
2000
  >${this.drafts?`— includes unpublished edits`:`— what production shows`}</span
1998
2001
  >
1999
2002
  </div>
2000
- `:r}};H([s()],Hn.prototype,`drafts`,void 0),Hn=H([a(`kb-preview-toggle`)],Hn);var Un=class extends e{constructor(...e){super(...e),this.baseUrl=`/`,this.active=!1,this.outlet=document.createElement(`main`),this.onLocationChanged=e=>{let{router:t,location:n}=e.detail;t===te()&&(this.active=re(n.pathname))}}static{this.styles=t`
2003
+ `:r}};H([s()],Wn.prototype,`drafts`,void 0),Wn=H([a(`kb-preview-toggle`)],Wn);var Gn=class extends e{constructor(...e){super(...e),this.baseUrl=`/`,this.active=!1,this.outlet=document.createElement(`main`),this.onLocationChanged=e=>{let{router:t,location:n}=e.detail;t===te()&&(this.active=re(n.pathname))}}static{this.styles=t`
2001
2004
  :host {
2002
2005
  display: block;
2003
2006
  position: relative;
2004
2007
  }
2005
- `}connectedCallback(){super.connectedCallback(),window.addEventListener(`vaadin-router-location-changed`,this.onLocationChanged),ee(this.outlet,this.baseUrl,Vn),this.dispatchEvent(new CustomEvent(`mfe-loaded`,{detail:{routes:Vn}}))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(`vaadin-router-location-changed`,this.onLocationChanged),ne(),this.active=!1}render(){return this.active?n`<kb-preview-toggle></kb-preview-toggle>${this.outlet}`:r}};H([o({type:String})],Un.prototype,`baseUrl`,void 0),H([s()],Un.prototype,`active`,void 0),Un=H([a(`ui-knowledgebase`)],Un);export{Un as UiKnowledgebase};
2008
+ `}connectedCallback(){super.connectedCallback(),window.addEventListener(`vaadin-router-location-changed`,this.onLocationChanged),ee(this.outlet,this.baseUrl,Un),this.dispatchEvent(new CustomEvent(`mfe-loaded`,{detail:{routes:Un}}))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(`vaadin-router-location-changed`,this.onLocationChanged),ne(),this.active=!1}render(){return this.active?n`<kb-preview-toggle></kb-preview-toggle>${this.outlet}`:r}};H([o({type:String})],Gn.prototype,`baseUrl`,void 0),H([s()],Gn.prototype,`active`,void 0),Gn=H([a(`ui-knowledgebase`)],Gn);export{Gn as UiKnowledgebase};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-realty/ui-knowledgebase",
3
- "version": "17.0.3",
3
+ "version": "17.0.4-IXUAT-11245.566629",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"