@kizenapps/cli 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/viewer/assets/AppDetailPage-BorvgFPN.js +1 -0
- package/dist/viewer/assets/{CodeStepsPage-BzaaN9Kb.js → CodeStepsPage-BZ2IGkjP.js} +1 -1
- package/dist/viewer/assets/{ConfigurationPage-DyGQQTe-.js → ConfigurationPage-n8Uo_HL7.js} +1 -1
- package/dist/viewer/assets/{DevSidebar-h9gYdctz.js → DevSidebar-DS8UU-G8.js} +1 -1
- package/dist/viewer/assets/{SandboxPage-IYn-KIbv.js → SandboxPage-CB4FgqI3.js} +1 -1
- package/dist/viewer/assets/SourceBrowserPage-BBZcr3MI.js +1 -0
- package/dist/viewer/assets/{WhenBadge-GxhTQKsq.js → WhenBadge-y4k1WgBK.js} +1 -1
- package/dist/viewer/assets/{api-C5Iu-4AS.js → api-CT-MKz2h.js} +1 -1
- package/dist/viewer/assets/{configStorage-BnMh081m.js → configStorage-CNoQ0cy5.js} +1 -1
- package/dist/viewer/assets/formatBytes-C9lOTtsO.js +1 -0
- package/dist/viewer/assets/{index-CjU7OUke.js → index-BMMO15ja.js} +3 -3
- package/dist/viewer/assets/{storageKeys-ClzdCxlg.js → storageKeys-C6c8YF5Y.js} +1 -1
- package/dist/viewer/assets/{useCriticalExceptionDialog-DK8ufamu.js → useCriticalExceptionDialog-C3m9pLEk.js} +1 -1
- package/dist/viewer/index.html +3 -5
- package/package.json +5 -3
- package/dist/viewer/assets/AppDetailPage-D4r3W5v5.js +0 -1
- package/dist/viewer/assets/SourceBrowserPage-BOlm36Dg.js +0 -1
- package/dist/viewer/manifest.json +0 -10
- /package/dist/viewer/assets/{CodeViewer-Ce2qKSWi.js → CodeViewer-C9aVhzG7.js} +0 -0
- /package/dist/viewer/assets/{IconReferencePage-BLciUKH9.js → IconReferencePage-bTBpdJEd.js} +0 -0
- /package/dist/viewer/assets/{VersionsPage-C02dpN3Y.js → VersionsPage-D6QScnTb.js} +0 -0
- /package/dist/viewer/assets/{useLocalStorage-B73GyZbK.js → useLocalStorage-CyZiO78q.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DF2fYuay.js";import{A as t,T as n,a as r,d as i,j as a,k as o,m as s,p as c,r as l}from"./fa-core-BoBqCOD3.js";import{t as u}from"./useQuery-5OkVbV1s.js";import{t as d}from"./formatBytes-C9lOTtsO.js";import{n as f,t as p}from"./CodeViewer-C9aVhzG7.js";import{t as m}from"./useLocalStorage-CyZiO78q.js";var h=e(a(),1),g=new Set([`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`,`.cjs`,`.json`,`.md`,`.mdx`,`.yml`,`.yaml`,`.toml`,`.css`,`.scss`,`.html`,`.htm`,`.xml`,`.svg`,`.txt`,`.sh`,`.py`,`.env`,`.gitignore`,`.prettierrc`,`.eslintrc`]),_=t(),v=new Set([`.png`,`.jpg`,`.jpeg`,`.gif`,`.webp`,`.svg`,`.ico`]);function y(e){let t=e.lastIndexOf(`/`),n=t>=0?e.slice(t+1):e,r=n.lastIndexOf(`.`);return r<=0?``:n.slice(r).toLowerCase()}function b(e,t){return e===``?t:`${e}/${t}`}function x(e){return{queryKey:[`source-tree`,e],queryFn:async()=>{let t=await fetch(`/api/source/tree?path=${encodeURIComponent(e)}`);if(!t.ok)throw Error(`Failed to list ${e||`/`}`);return await t.json()}}}var S=class extends Error{status;constructor(e,t){super(e),this.status=t}};function C(e){return{queryKey:[`source-file`,e],enabled:e!==null&&e!==``,retry:(e,t)=>t instanceof S&&t.status>=400&&t.status<500?!1:e<3,queryFn:async()=>{if(e===null||e===``)throw Error(`No path`);let t=await fetch(`/api/source/file?path=${encodeURIComponent(e)}`),n=t.headers.get(`content-type`)??`application/octet-stream`,r=t.headers.get(`content-length`),i=r===null?0:Number(r);if(t.status===413)return{kind:`too-large`,size:(await t.json()).size??i,contentType:n};if(!t.ok)throw new S(`Failed to read ${e}`,t.status);let a=y(e);if(v.has(a)&&!n.startsWith(`text/`))return{kind:`image`,size:i,contentType:n};if(g.has(a)||n.startsWith(`text/`)||n.includes(`json`)){let e=await t.text();return{kind:`text`,content:e,size:e.length,contentType:n}}return{kind:`binary`,size:i,contentType:n}}}}var w=({path:e,name:t,depth:a,expanded:d,toggleExpanded:f,selectedPath:p,onSelect:m})=>{let h=d.has(e),{data:g,isLoading:v,isError:y}=u({...x(e),enabled:h});return(0,_.jsxs)(`div`,{children:[(0,_.jsxs)(`button`,{onClick:()=>{f(e)},className:`flex w-full items-center gap-1.5 px-2 py-0.5 text-left text-[12px] text-neutral-700 hover:bg-neutral-100`,style:{paddingLeft:`${String(8+a*12)}px`},children:[(0,_.jsx)(o,{icon:h?l:r,className:`w-3 text-[9px] text-neutral-400`}),(0,_.jsx)(o,{icon:h?s:c,className:`w-3 text-[11px] text-amber-500`}),(0,_.jsx)(`span`,{className:`truncate`,children:t})]}),h&&(0,_.jsxs)(`div`,{children:[v&&(0,_.jsxs)(`div`,{className:`flex items-center gap-1.5 px-2 py-0.5 text-[11px] text-neutral-400`,style:{paddingLeft:`${String(24+a*12)}px`},children:[(0,_.jsx)(o,{icon:n,className:`animate-spin text-[9px]`}),(0,_.jsx)(`span`,{children:`Loading…`})]}),y&&(0,_.jsx)(`div`,{className:`px-2 py-0.5 text-[11px] text-red-500`,style:{paddingLeft:`${String(24+a*12)}px`},children:`Failed to load`}),g?.entries.map(t=>{let n=b(e,t.name);if(t.kind===`dir`)return(0,_.jsx)(w,{path:n,name:t.name,depth:a+1,expanded:d,toggleExpanded:f,selectedPath:p,onSelect:m},n);let r=p===n;return(0,_.jsxs)(`button`,{onClick:()=>{m(n)},className:`flex w-full items-center gap-1.5 px-2 py-0.5 text-left text-[12px] ${r?`bg-neutral-800 text-white`:`text-neutral-700 hover:bg-neutral-100`}`,style:{paddingLeft:`${String(24+(a+1)*12)}px`},title:n,children:[(0,_.jsx)(o,{icon:i,className:`w-3 text-[11px] ${r?`text-white/70`:`text-neutral-400`}`}),(0,_.jsx)(`span`,{className:`truncate`,children:t.name})]},n)})]})]})},T=({path:e,onMissing:t})=>{let{data:r,isLoading:i,isError:a,error:s}=u(C(e)),c=y(e);return(0,h.useEffect)(()=>{a&&s instanceof S&&s.status===404&&t()},[a,s,t]),i?(0,_.jsxs)(`div`,{className:`flex items-center gap-2 p-4 text-[12px] text-neutral-500`,children:[(0,_.jsx)(o,{icon:n,className:`animate-spin`}),(0,_.jsxs)(`span`,{children:[`Loading `,e,`…`]})]}):a||!r?(0,_.jsx)(`div`,{className:`p-4 text-[12px] text-red-600`,children:s instanceof Error?s.message:`Could not read ${e}`}):r.kind===`too-large`?(0,_.jsxs)(`div`,{className:`p-4 text-[12px] text-neutral-600`,children:[`File too large to preview (`,d(r.size),`).`]}):r.kind===`image`?(0,_.jsx)(`div`,{className:`flex items-start justify-start p-4`,children:(0,_.jsx)(`img`,{src:`/api/source/file?path=${encodeURIComponent(e)}`,alt:e,className:`max-w-full rounded border border-black/10 bg-[url('data:image/svg+xml;utf8,<svg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2216%22%20height=%2216%22><rect%20width=%228%22%20height=%228%22%20fill=%22%23f3f4f6%22/><rect%20x=%228%22%20y=%228%22%20width=%228%22%20height=%228%22%20fill=%22%23f3f4f6%22/></svg>')]`})}):r.kind===`binary`?(0,_.jsxs)(`div`,{className:`p-4 text-[12px] text-neutral-600`,children:[`Binary file (`,d(r.size),`) — cannot preview.`]}):(0,_.jsx)(`div`,{className:`p-4`,children:(0,_.jsx)(p,{code:r.content??``,language:f(c)})})},E=()=>{let{data:e,isLoading:t,isError:n}=u(x(``)),[r,a]=m(`source-browser-expanded`,[]),[s,c]=m(`source-browser-selected`,null),l=(0,h.useMemo)(()=>new Set(r),[r]),d=e=>{let t=new Set(l);t.has(e)?t.delete(e):t.add(e),a([...t])},[f,p]=(0,h.useState)(!1);return t?(0,_.jsx)(`div`,{className:`-m-6 flex h-[calc(100%+3rem)] items-center justify-center bg-white text-[13px] text-neutral-600`,children:`Loading source tree…`}):n||!e?(0,_.jsx)(`div`,{className:`-m-6 flex h-[calc(100%+3rem)] items-center justify-center bg-white text-[13px] text-red-600`,children:`Could not load source tree.`}):(0,_.jsxs)(`div`,{className:`-m-6 flex h-[calc(100%+3rem)] overflow-hidden bg-white`,children:[(0,_.jsxs)(`div`,{className:`flex w-72 shrink-0 flex-col border-r border-black/10 bg-neutral-50/60`,children:[(0,_.jsx)(`div`,{className:`flex h-10 shrink-0 items-center border-b border-black/10 px-4 text-[11px] font-semibold uppercase tracking-widest text-neutral-400`,children:`Plugin Source`}),(0,_.jsx)(`div`,{className:`flex-1 overflow-auto py-1`,children:e.entries.map(e=>{let t=b(``,e.name);if(e.kind===`dir`)return(0,_.jsx)(w,{path:t,name:e.name,depth:0,expanded:l,toggleExpanded:d,selectedPath:s,onSelect:c},t);let n=s===t;return(0,_.jsxs)(`button`,{onClick:()=>{c(t)},className:`flex w-full items-center gap-1.5 px-2 py-0.5 text-left text-[12px] ${n?`bg-neutral-800 text-white`:`text-neutral-700 hover:bg-neutral-100`}`,style:{paddingLeft:`24px`},title:t,children:[(0,_.jsx)(o,{icon:i,className:`w-3 text-[11px] ${n?`text-white/70`:`text-neutral-400`}`}),(0,_.jsx)(`span`,{className:`truncate`,children:e.name})]},t)})})]}),(0,_.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,_.jsx)(`div`,{className:`flex h-10 shrink-0 items-center gap-2 border-b border-black/10 px-4`,children:s===null?(0,_.jsx)(`span`,{className:`text-[12px] text-neutral-400`,children:`Select a file to preview`}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`span`,{className:`truncate font-mono text-[12px] text-neutral-700`,children:s}),(0,_.jsx)(`button`,{onClick:()=>{s!==null&&navigator.clipboard.writeText(s).then(()=>{p(!0),setTimeout(()=>{p(!1)},1200)})},className:`rounded-full border border-black/10 bg-white px-2 py-0.5 text-[10px] font-medium text-neutral-500 hover:border-black/20 hover:text-neutral-800`,children:f?`Copied`:`Copy path`})]})}),(0,_.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto`,children:s!==null&&s!==``&&(0,_.jsx)(T,{path:s,onMissing:()=>{c(null)}})})]})]})};export{E as SourceBrowserPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DF2fYuay.js";import{A as t,j as n}from"./fa-core-BoBqCOD3.js";import{t as r}from"./Tooltip-tpqNw0op.js";import{l as i}from"./configStorage-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DF2fYuay.js";import{A as t,j as n}from"./fa-core-BoBqCOD3.js";import{t as r}from"./Tooltip-tpqNw0op.js";import{l as i}from"./configStorage-CNoQ0cy5.js";var a=e(n(),1),o=t(),s=({when:e,whenState:t})=>{let[n,s]=(0,a.useState)(null);return(0,a.useEffect)(()=>{i(e,t).then(s).catch(()=>{s(null)})},[e,t]),n===null?null:(0,o.jsx)(r,{text:e,children:(0,o.jsxs)(`span`,{className:`font-mono text-[10px] ${n?`text-green-600`:`text-amber-600`}`,children:[n?`enabled`:`disabled`,` by condition`]})})};export{s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DF2fYuay.js";import{j as t}from"./fa-core-BoBqCOD3.js";import{
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DF2fYuay.js";import{j as t}from"./fa-core-BoBqCOD3.js";import{d as n}from"./storageKeys-C6c8YF5Y.js";var r=e(t(),1),i={go:`https://app.go.kizen.com/api`,fmo:`https://app.fmo.kizen.com/api`,staging:`https://staging.kizen.dev/api`,integration:`https://integration.kizen.dev/api`,test1:`https://test1.kizen.dev/api`},a={go:`https://go.kizen.com`,fmo:`https://fmo.kizen.com`,staging:`https://v2.staging.kizen.com`,integration:`https://v2.integration.kizen.dev`,test1:`https://test1.kizen.dev`};function o(){let{apiKey:e,userId:t,businessId:a,environment:o}=n(),s=i[o];return(0,r.useCallback)((n,r={})=>fetch(`/api/proxy${n}`,{...r,headers:{"x-proxy-target":s,"X-API-KEY":e,"X-USER-ID":t,"X-BUSINESS-ID":a,...r.headers}}),[s,e,t,a])}export{i as n,o as r,a as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,i as t}from"./storageKeys-ClzdCxlg.js";var n={QUERY_REQUEST:`query:request`,UI_OUTPUT:`outputui`,IFRAME_OUTPUT:`iframeoutput`,POSTFORMDATA_REQUEST:`postformdata:request`,SETSTATE:`setstate`,DONE:`done`,RUN:`run`,OPEN_WINDOW:`openwindow`,COMMUNICATE:`communicate`,HIDE:`hide`,SHOW:`show`,EXPAND:`expand`,COLLAPSE:`collapse`,HIDE_HEADER:`hideheader`,SHOW_HEADER:`showheader`,OPEN_CREATE_RECORD_MODAL_REQUEST:`opencreaterecordmodal:request`,OPEN_CREATE_RELATED_RECORD_MODAL_REQUEST:`opencreaterelatedrecordmodal:request`,SHOW_TOAST:`showtoast`,CLEAR_TOASTS:`cleartoasts`,REFRESH_TIMELINE:`refreshtimeline`,REFRESH_ENTITY:`refreshentity`,UPLOADFILE_REQUEST:`uploadfile:request`,UPDATE_SESSION_DATA:`updatesessiondata`,INSTALL_THIRD_PARTY_SCRIPT_REQUEST:`installthirdpartyscript:request`,PROMPT_REQUEST:`prompt:request`,DYNAMIC_PROMPT_REQUEST:`dynamicprompt:request`,RELEASE_BLOCKING_SCRIPT:`releaseblockingscript`,AUTHORIZE:`authorize`,COPY_TO_CLIPBOARD:`copytoclipboard`},r={QUERY_RESPONSE:`query:response`,POSTFORMDATA_RESPONSE:`postformdata:response`,ERROR:`error`,UPLOADFILE_RESPONSE:`uploadfile:response`,UPLOADFILE_PROGRESS:`uploadfile:progress`,INSTALL_THIRD_PARTY_SCRIPT_RESPONSE:`installthirdpartyscript:response`,PROMPT_RESPONSE:`prompt:response`,REFRESH_ENTITY_RESPONSE:`refreshentity:response`,CREATE_RECORD_RESPONSE:`createrecord:response`,CREATE_RELATED_RECORD_RESPONSE:`createrelatedrecord:response`},i={RUN_FRAME_SCRIPT:`runframescript`,SEND_MESSAGE_TO_FRAME:`sendmessagetoframe`,CALL_THIRD_PARTY_SCRIPT:`callthirdpartyscript`},a=`integration:route-change`,o=`kizen-route-change`,s=`kzn-integration-frame`,c=[`__plugin_engine`,`0.3.1-91391f3`],l={CALENDAR_SOURCE_CALENDAR_LIST:(e,t)=>[...c,`calendar-source`,`calendar-list`,e,t],CALENDAR_SOURCE_EVENTS:(e,t,n,r)=>[...c,`calendar-source`,`events`,e,t,n,r]},u=/https:\/\/.*widget\.freshworks\.com\/.*\.js/,d=/https:\/\/widget\.intercom\.io\/widget\/[a-z0-9]+/,f={FRESHWORKS:`freshworks`,INTERCOM:`intercom`},p=e=>{if(u.test(e))return f.FRESHWORKS;if(d.test(e))return f.INTERCOM},m={[f.FRESHWORKS]:`FreshworksWidget`,[f.INTERCOM]:`Intercom`},h={[f.FRESHWORKS]:e=>{window.fwSettings={widget_id:e.widgetId},(function(...e){if(typeof window[m[f.FRESHWORKS]]!=`function`){let t=function(){t.q.push(...e)};t.__kizen_pending=!0,t.q=[],window[m[f.FRESHWORKS]]=t}})()},[f.INTERCOM]:()=>{(function(){if(typeof window[m[f.INTERCOM]]!=`function`){let e=window,t=function(){t.c(arguments)};t.q=[],t.c=function(e){t.q.push(e)},t.__kizen_pending=!0,e[m[f.INTERCOM]]=t}})()}},g={[f.FRESHWORKS]:()=>window[m[f.FRESHWORKS]]?.__kizen_pending!==!0,[f.INTERCOM]:()=>window[m[f.INTERCOM]]?.__kizen_pending!==!0},_=()=>({host:window.location.host,hash:window.location.hash,href:window.location.href,origin:window.location.origin,pathname:window.location.pathname,search:window.location.search,port:window.location.port,protocol:window.location.protocol}),v=()=>{let e=new Date().getTime();return typeof performance<`u`&&typeof performance.now==`function`&&(e+=performance.now()),`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t===`x`?n:n&3|8).toString(16)})};Object.getPrototypeOf(async function(){}).constructor;var y=e=>`${e?.plugin_api_name??``}-${e?.id??``}-${e?.api_name??``}-${e?.script_id??``}`,b=Object.create,x=Object.defineProperty,S=Object.getOwnPropertyDescriptor,C=Object.getOwnPropertyNames,w=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(e,t)=>function(){return t||(0,e[C(e)[0]])((t={exports:{}}).exports,t),t.exports},D=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of C(t))!T.call(e,i)&&i!==n&&x(e,i,{get:()=>t[i],enumerable:!(r=S(t,i))||r.enumerable});return e},ee=(e,t,n)=>(n=e==null?{}:b(w(e)),D(t||!e||!e.__esModule?x(n,`default`,{value:e,enumerable:!0}):n,e)),{entries:O,setPrototypeOf:k,isFrozen:te,getPrototypeOf:A,getOwnPropertyDescriptor:ne}=Object,{freeze:j,seal:M,create:N}=Object,{apply:P,construct:re}=typeof Reflect<`u`&&Reflect;j||=function(e){return e},M||=function(e){return e},P||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},re||=function(e){return new e(...[...arguments].slice(1))};var ie=L(Array.prototype.forEach),ae=L(Array.prototype.lastIndexOf),oe=L(Array.prototype.pop),se=L(Array.prototype.push),ce=L(Array.prototype.splice),le=L(String.prototype.toLowerCase),ue=L(String.prototype.toString),de=L(String.prototype.match),fe=L(String.prototype.replace),pe=L(String.prototype.indexOf),me=L(String.prototype.trim),F=L(Object.prototype.hasOwnProperty),I=L(RegExp.prototype.test),he=R(TypeError);function L(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return P(e,t,n)}}function R(e){return function(){return re(e,[...arguments])}}function z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le;k&&k(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(te(t)||(t[r]=e),i=e)}e[i]=!0}return e}function ge(e){for(let t=0;t<e.length;t++)F(e,t)||(e[t]=null);return e}function B(e){let t=N(null);for(let[n,r]of O(e))F(e,n)&&(Array.isArray(r)?t[n]=ge(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=B(r):t[n]=r);return t}function _e(e,t){for(;e!==null;){let n=ne(e,t);if(n){if(n.get)return L(n.get);if(typeof n.value==`function`)return L(n.value)}e=A(e)}function n(){return null}return n}var ve=j(`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(`.`)),ye=j(`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(`.`)),be=j([`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`]),xe=j([`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`]),Se=j(`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(`.`)),Ce=j([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),we=j([`#text`]),Te=j(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.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.slot`.split(`.`)),Ee=j(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),De=j(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Oe=j([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),V=M(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ke=M(/<%[\w\W]*|[\w\W]*%>/gm),H=M(/\$\{[\w\W]*/gm),Ae=M(/^data-[\-\w.\u00B7-\uFFFF]+$/),je=M(/^aria-[\-\w]+$/),Me=M(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=M(/^(?:\w+script|data):/i),Ne=M(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pe=M(/^html$/i),Fe=M(/^[a-z][.\w]*(-[.\w]+)+$/i),Ie=Object.freeze({__proto__:null,ARIA_ATTR:je,ATTR_WHITESPACE:Ne,CUSTOM_ELEMENT:Fe,DATA_ATTR:Ae,DOCTYPE_NAME:Pe,ERB_EXPR:ke,IS_ALLOWED_URI:Me,IS_SCRIPT_OR_DATA:U,MUSTACHE_EXPR:V,TMPLIT_EXPR:H}),Le={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Re=function(){return typeof window>`u`?null:window},ze=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}},Be=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ve(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re(),t=e=>Ve(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Le.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=_e(m,`cloneNode`),g=_e(m,`remove`),_=_e(m,`nextSibling`),v=_e(m,`childNodes`),y=_e(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:E}=r,D=Be();t.isSupported=typeof O==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ee,ERB_EXPR:k,TMPLIT_EXPR:te,DATA_ATTR:A,ARIA_ATTR:ne,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:re}=Ie,{IS_ALLOWED_URI:L}=Ie,R=null,ge=z({},[...ve,...ye,...be,...Se,...we]),V=null,ke=z({},[...Te,...Ee,...De,...Oe]),H=Object.seal(N(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}})),Ae=null,je=null,U=Object.seal(N(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ne=!0,Fe=!0,He=!1,Ue=!0,We=!1,Ge=!0,W=!1,Ke=!1,qe=!1,Je=!1,Ye=!1,Xe=!1,Ze=!0,Qe=!1,$e=!0,et=!1,G={},K=null,tt=z({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),nt=null,rt=z({},[`audio`,`video`,`img`,`source`,`image`,`track`]),it=null,at=z({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),ot=`http://www.w3.org/1998/Math/MathML`,st=`http://www.w3.org/2000/svg`,q=`http://www.w3.org/1999/xhtml`,J=q,ct=!1,lt=null,ut=z({},[ot,st,q],ue),dt=z({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),ft=z({},[`annotation-xml`]),pt=z({},[`title`,`style`,`font`,`a`,`script`]),mt=null,ht=[`application/xhtml+xml`,`text/html`],Y=null,X=null,gt=n.createElement(`form`),_t=function(e){return e instanceof RegExp||e instanceof Function},vt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(X&&X===e)){if((!e||typeof e!=`object`)&&(e={}),e=B(e),mt=ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Y=mt===`application/xhtml+xml`?ue:le,R=F(e,`ALLOWED_TAGS`)?z({},e.ALLOWED_TAGS,Y):ge,V=F(e,`ALLOWED_ATTR`)?z({},e.ALLOWED_ATTR,Y):ke,lt=F(e,`ALLOWED_NAMESPACES`)?z({},e.ALLOWED_NAMESPACES,ue):ut,it=F(e,`ADD_URI_SAFE_ATTR`)?z(B(at),e.ADD_URI_SAFE_ATTR,Y):at,nt=F(e,`ADD_DATA_URI_TAGS`)?z(B(rt),e.ADD_DATA_URI_TAGS,Y):rt,K=F(e,`FORBID_CONTENTS`)?z({},e.FORBID_CONTENTS,Y):tt,Ae=F(e,`FORBID_TAGS`)?z({},e.FORBID_TAGS,Y):B({}),je=F(e,`FORBID_ATTR`)?z({},e.FORBID_ATTR,Y):B({}),G=F(e,`USE_PROFILES`)?e.USE_PROFILES:!1,Ne=e.ALLOW_ARIA_ATTR!==!1,Fe=e.ALLOW_DATA_ATTR!==!1,He=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=e.SAFE_FOR_TEMPLATES||!1,Ge=e.SAFE_FOR_XML!==!1,W=e.WHOLE_DOCUMENT||!1,Je=e.RETURN_DOM||!1,Ye=e.RETURN_DOM_FRAGMENT||!1,Xe=e.RETURN_TRUSTED_TYPE||!1,qe=e.FORCE_BODY||!1,Ze=e.SANITIZE_DOM!==!1,Qe=e.SANITIZE_NAMED_PROPS||!1,$e=e.KEEP_CONTENT!==!1,et=e.IN_PLACE||!1,L=e.ALLOWED_URI_REGEXP||Me,J=e.NAMESPACE||q,dt=e.MATHML_TEXT_INTEGRATION_POINTS||dt,ft=e.HTML_INTEGRATION_POINTS||ft,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&_t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),We&&(Fe=!1),Ye&&(Je=!0),G&&(R=z({},we),V=N(null),G.html===!0&&(z(R,ve),z(V,Te)),G.svg===!0&&(z(R,ye),z(V,Ee),z(V,Oe)),G.svgFilters===!0&&(z(R,be),z(V,Ee),z(V,Oe)),G.mathMl===!0&&(z(R,Se),z(V,De),z(V,Oe))),F(e,`ADD_TAGS`)||(U.tagCheck=null),F(e,`ADD_ATTR`)||(U.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?U.tagCheck=e.ADD_TAGS:(R===ge&&(R=B(R)),z(R,e.ADD_TAGS,Y))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?U.attributeCheck=e.ADD_ATTR:(V===ke&&(V=B(V)),z(V,e.ADD_ATTR,Y))),e.ADD_URI_SAFE_ATTR&&z(it,e.ADD_URI_SAFE_ATTR,Y),e.FORBID_CONTENTS&&(K===tt&&(K=B(K)),z(K,e.FORBID_CONTENTS,Y)),e.ADD_FORBID_CONTENTS&&(K===tt&&(K=B(K)),z(K,e.ADD_FORBID_CONTENTS,Y)),$e&&(R[`#text`]=!0),W&&z(R,[`html`,`head`,`body`]),R.table&&(z(R,[`tbody`]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw he(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw he(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=ze(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));j&&j(e),X=e}},yt=z({},[...ye,...be,...xe]),bt=z({},[...Se,...Ce]),xt=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:J,tagName:`template`});let n=le(e.tagName),r=le(t.tagName);return lt[e.namespaceURI]?e.namespaceURI===st?t.namespaceURI===q?n===`svg`:t.namespaceURI===ot?n===`svg`&&(r===`annotation-xml`||dt[r]):!!yt[n]:e.namespaceURI===ot?t.namespaceURI===q?n===`math`:t.namespaceURI===st?n===`math`&&ft[r]:!!bt[n]:e.namespaceURI===q?t.namespaceURI===st&&!ft[r]||t.namespaceURI===ot&&!dt[r]?!1:!bt[n]&&(pt[n]||!yt[n]):!!(mt===`application/xhtml+xml`&<[e.namespaceURI]):!1},Z=function(e){se(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},Q=function(e,n){try{se(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{se(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Je||Ye)try{Z(n)}catch{}else try{n.setAttribute(e,``)}catch{}},St=function(e){let t=null,r=null;if(qe)e=`<remove></remove>`+e;else{let t=de(e,/^[\r\n\t ]+/);r=t&&t[0]}mt===`application/xhtml+xml`&&J===q&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(J===q)try{t=new f().parseFromString(i,mt)}catch{}if(!t||!t.documentElement){t=S.createDocument(J,`template`,null);try{t.documentElement.innerHTML=ct?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),J===q?T.call(t,W?`html`:`body`)[0]:W?t.documentElement:a},Ct=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},Tt=function(e){return typeof s==`function`&&e instanceof s};function $(e,n,r){ie(e,e=>{e.call(t,n,r,X)})}let Et=function(e){let n=null;if($(D.beforeSanitizeElements,e,null),wt(e))return Z(e),!0;let r=Y(e.nodeName);if($(D.uponSanitizeElement,e,{tagName:r,allowedTags:R}),Ge&&e.hasChildNodes()&&!Tt(e.firstElementChild)&&I(/<[/\w!]/g,e.innerHTML)&&I(/<[/\w!]/g,e.textContent)||e.nodeType===Le.progressingInstruction||Ge&&e.nodeType===Le.comment&&I(/<[/\w]/g,e.data))return Z(e),!0;if(!(U.tagCheck instanceof Function&&U.tagCheck(r))&&(!R[r]||Ae[r])){if(!Ae[r]&&Ot(r)&&(H.tagNameCheck instanceof RegExp&&I(H.tagNameCheck,r)||H.tagNameCheck instanceof Function&&H.tagNameCheck(r)))return!1;if($e&&!K[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return Z(e),!0}return e instanceof c&&!xt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&I(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z(e),!0):(We&&e.nodeType===Le.text&&(n=e.textContent,ie([ee,k,te],e=>{n=fe(n,e,` `)}),e.textContent!==n&&(se(t.removed,{element:e.cloneNode()}),e.textContent=n)),$(D.afterSanitizeElements,e,null),!1)},Dt=function(e,t,r){if(je[t]||Ze&&(t===`id`||t===`name`)&&(r in n||r in gt))return!1;if(!(Fe&&!je[t]&&I(A,t))&&!(Ne&&I(ne,t))&&!(U.attributeCheck instanceof Function&&U.attributeCheck(t,e))){if(!V[t]||je[t]){if(!(Ot(e)&&(H.tagNameCheck instanceof RegExp&&I(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&I(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t,e))||t===`is`&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&I(H.tagNameCheck,r)||H.tagNameCheck instanceof Function&&H.tagNameCheck(r))))return!1}else if(!it[t]&&!I(L,fe(r,P,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&pe(r,`data:`)===0&&nt[e])&&!(He&&!I(M,fe(r,P,``)))&&r)return!1}return!0},Ot=function(e){return e!==`annotation-xml`&&de(e,re)},kt=function(e){$(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||wt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Y(a),l=s,u=a===`value`?l:me(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,$(D.uponSanitizeAttribute,e,r),u=r.attrValue,Qe&&(c===`id`||c===`name`)&&(Q(a,e),u=`user-content-`+u),Ge&&I(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Q(a,e);continue}if(c===`attributename`&&de(u,`href`)){Q(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Q(a,e);continue}if(!Ue&&I(/\/>/i,u)){Q(a,e);continue}We&&ie([ee,k,te],e=>{u=fe(u,e,` `)});let d=Y(e.nodeName);if(!Dt(d,c,u)){Q(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),wt(e)?Z(e):oe(t.removed)}catch{Q(a,e)}}$(D.afterSanitizeAttributes,e,null)},At=function e(t){let n=null,r=Ct(t);for($(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)$(D.uponSanitizeShadowNode,n,null),Et(n),kt(n),n.content instanceof a&&e(n.content);$(D.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(ct=!e,ct&&(e=`<!-->`),typeof e!=`string`&&!Tt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw he(`dirty is not a string, aborting`)}else throw he(`toString is not a function`);if(!t.isSupported)return e;if(Ke||vt(n),t.removed=[],typeof e==`string`&&(et=!1),et){if(e.nodeName){let t=Y(e.nodeName);if(!R[t]||Ae[t])throw he(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=St(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Le.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!Je&&!We&&!W&&e.indexOf(`<`)===-1)return b&&Xe?b.createHTML(e):e;if(i=St(e),!i)return Je?null:Xe?x:``}i&&qe&&Z(i.firstChild);let u=Ct(et?e:i);for(;c=u.nextNode();)Et(c),kt(c),c.content instanceof a&&At(c.content);if(et)return e;if(Je){if(Ye)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(V.shadowroot||V.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=W?i.outerHTML:i.innerHTML;return W&&R[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&I(Pe,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
1
|
+
import{a as e,i as t}from"./storageKeys-C6c8YF5Y.js";var n={QUERY_REQUEST:`query:request`,UI_OUTPUT:`outputui`,IFRAME_OUTPUT:`iframeoutput`,POSTFORMDATA_REQUEST:`postformdata:request`,SETSTATE:`setstate`,DONE:`done`,RUN:`run`,OPEN_WINDOW:`openwindow`,COMMUNICATE:`communicate`,HIDE:`hide`,SHOW:`show`,EXPAND:`expand`,COLLAPSE:`collapse`,HIDE_HEADER:`hideheader`,SHOW_HEADER:`showheader`,OPEN_CREATE_RECORD_MODAL_REQUEST:`opencreaterecordmodal:request`,OPEN_CREATE_RELATED_RECORD_MODAL_REQUEST:`opencreaterelatedrecordmodal:request`,SHOW_TOAST:`showtoast`,CLEAR_TOASTS:`cleartoasts`,REFRESH_TIMELINE:`refreshtimeline`,REFRESH_ENTITY:`refreshentity`,UPLOADFILE_REQUEST:`uploadfile:request`,UPDATE_SESSION_DATA:`updatesessiondata`,INSTALL_THIRD_PARTY_SCRIPT_REQUEST:`installthirdpartyscript:request`,PROMPT_REQUEST:`prompt:request`,DYNAMIC_PROMPT_REQUEST:`dynamicprompt:request`,RELEASE_BLOCKING_SCRIPT:`releaseblockingscript`,AUTHORIZE:`authorize`,COPY_TO_CLIPBOARD:`copytoclipboard`},r={QUERY_RESPONSE:`query:response`,POSTFORMDATA_RESPONSE:`postformdata:response`,ERROR:`error`,UPLOADFILE_RESPONSE:`uploadfile:response`,UPLOADFILE_PROGRESS:`uploadfile:progress`,INSTALL_THIRD_PARTY_SCRIPT_RESPONSE:`installthirdpartyscript:response`,PROMPT_RESPONSE:`prompt:response`,REFRESH_ENTITY_RESPONSE:`refreshentity:response`,CREATE_RECORD_RESPONSE:`createrecord:response`,CREATE_RELATED_RECORD_RESPONSE:`createrelatedrecord:response`},i={RUN_FRAME_SCRIPT:`runframescript`,SEND_MESSAGE_TO_FRAME:`sendmessagetoframe`,CALL_THIRD_PARTY_SCRIPT:`callthirdpartyscript`},a=`integration:route-change`,o=`kizen-route-change`,s=`kzn-integration-frame`,c=[`__plugin_engine`,`1.0.0`],l={CALENDAR_SOURCE_CALENDAR_LIST:(e,t)=>[...c,`calendar-source`,`calendar-list`,e,t],CALENDAR_SOURCE_EVENTS:(e,t,n,r)=>[...c,`calendar-source`,`events`,e,t,n,r]},u=/https:\/\/.*widget\.freshworks\.com\/.*\.js/,d=/https:\/\/widget\.intercom\.io\/widget\/[a-z0-9]+/,f={FRESHWORKS:`freshworks`,INTERCOM:`intercom`},p=e=>{if(u.test(e))return f.FRESHWORKS;if(d.test(e))return f.INTERCOM},m={[f.FRESHWORKS]:`FreshworksWidget`,[f.INTERCOM]:`Intercom`},h={[f.FRESHWORKS]:e=>{window.fwSettings={widget_id:e.widgetId},(function(...e){if(typeof window[m[f.FRESHWORKS]]!=`function`){let t=function(){t.q.push(...e)};t.__kizen_pending=!0,t.q=[],window[m[f.FRESHWORKS]]=t}})()},[f.INTERCOM]:()=>{(function(){if(typeof window[m[f.INTERCOM]]!=`function`){let e=window,t=function(){t.c(arguments)};t.q=[],t.c=function(e){t.q.push(e)},t.__kizen_pending=!0,e[m[f.INTERCOM]]=t}})()}},g={[f.FRESHWORKS]:()=>window[m[f.FRESHWORKS]]?.__kizen_pending!==!0,[f.INTERCOM]:()=>window[m[f.INTERCOM]]?.__kizen_pending!==!0},_=()=>({host:window.location.host,hash:window.location.hash,href:window.location.href,origin:window.location.origin,pathname:window.location.pathname,search:window.location.search,port:window.location.port,protocol:window.location.protocol}),v=()=>{let e=new Date().getTime();return typeof performance<`u`&&typeof performance.now==`function`&&(e+=performance.now()),`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t===`x`?n:n&3|8).toString(16)})};Object.getPrototypeOf(async function(){}).constructor;var y=e=>`${e?.plugin_api_name??``}-${e?.id??``}-${e?.api_name??``}-${e?.script_id??``}`,b=Object.create,x=Object.defineProperty,S=Object.getOwnPropertyDescriptor,C=Object.getOwnPropertyNames,w=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(e,t)=>function(){return t||(0,e[C(e)[0]])((t={exports:{}}).exports,t),t.exports},D=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of C(t))!T.call(e,i)&&i!==n&&x(e,i,{get:()=>t[i],enumerable:!(r=S(t,i))||r.enumerable});return e},ee=(e,t,n)=>(n=e==null?{}:b(w(e)),D(t||!e||!e.__esModule?x(n,`default`,{value:e,enumerable:!0}):n,e)),{entries:O,setPrototypeOf:k,isFrozen:te,getPrototypeOf:A,getOwnPropertyDescriptor:ne}=Object,{freeze:j,seal:M,create:N}=Object,{apply:P,construct:re}=typeof Reflect<`u`&&Reflect;j||=function(e){return e},M||=function(e){return e},P||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},re||=function(e){return new e(...[...arguments].slice(1))};var ie=L(Array.prototype.forEach),ae=L(Array.prototype.lastIndexOf),oe=L(Array.prototype.pop),se=L(Array.prototype.push),ce=L(Array.prototype.splice),le=L(String.prototype.toLowerCase),ue=L(String.prototype.toString),de=L(String.prototype.match),fe=L(String.prototype.replace),pe=L(String.prototype.indexOf),me=L(String.prototype.trim),F=L(Object.prototype.hasOwnProperty),I=L(RegExp.prototype.test),he=R(TypeError);function L(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return P(e,t,n)}}function R(e){return function(){return re(e,[...arguments])}}function z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le;k&&k(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(te(t)||(t[r]=e),i=e)}e[i]=!0}return e}function ge(e){for(let t=0;t<e.length;t++)F(e,t)||(e[t]=null);return e}function B(e){let t=N(null);for(let[n,r]of O(e))F(e,n)&&(Array.isArray(r)?t[n]=ge(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=B(r):t[n]=r);return t}function _e(e,t){for(;e!==null;){let n=ne(e,t);if(n){if(n.get)return L(n.get);if(typeof n.value==`function`)return L(n.value)}e=A(e)}function n(){return null}return n}var ve=j(`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(`.`)),ye=j(`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(`.`)),be=j([`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`]),xe=j([`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`]),Se=j(`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(`.`)),Ce=j([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),we=j([`#text`]),Te=j(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.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.slot`.split(`.`)),Ee=j(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),De=j(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Oe=j([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),V=M(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ke=M(/<%[\w\W]*|[\w\W]*%>/gm),H=M(/\$\{[\w\W]*/gm),Ae=M(/^data-[\-\w.\u00B7-\uFFFF]+$/),je=M(/^aria-[\-\w]+$/),Me=M(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=M(/^(?:\w+script|data):/i),Ne=M(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pe=M(/^html$/i),Fe=M(/^[a-z][.\w]*(-[.\w]+)+$/i),Ie=Object.freeze({__proto__:null,ARIA_ATTR:je,ATTR_WHITESPACE:Ne,CUSTOM_ELEMENT:Fe,DATA_ATTR:Ae,DOCTYPE_NAME:Pe,ERB_EXPR:ke,IS_ALLOWED_URI:Me,IS_SCRIPT_OR_DATA:U,MUSTACHE_EXPR:V,TMPLIT_EXPR:H}),Le={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Re=function(){return typeof window>`u`?null:window},ze=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}},Be=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ve(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re(),t=e=>Ve(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Le.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=_e(m,`cloneNode`),g=_e(m,`remove`),_=_e(m,`nextSibling`),v=_e(m,`childNodes`),y=_e(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:E}=r,D=Be();t.isSupported=typeof O==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ee,ERB_EXPR:k,TMPLIT_EXPR:te,DATA_ATTR:A,ARIA_ATTR:ne,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:re}=Ie,{IS_ALLOWED_URI:L}=Ie,R=null,ge=z({},[...ve,...ye,...be,...Se,...we]),V=null,ke=z({},[...Te,...Ee,...De,...Oe]),H=Object.seal(N(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}})),Ae=null,je=null,U=Object.seal(N(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ne=!0,Fe=!0,He=!1,Ue=!0,We=!1,Ge=!0,W=!1,Ke=!1,qe=!1,Je=!1,Ye=!1,Xe=!1,Ze=!0,Qe=!1,$e=!0,et=!1,G={},K=null,tt=z({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),nt=null,rt=z({},[`audio`,`video`,`img`,`source`,`image`,`track`]),it=null,at=z({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),ot=`http://www.w3.org/1998/Math/MathML`,st=`http://www.w3.org/2000/svg`,q=`http://www.w3.org/1999/xhtml`,J=q,ct=!1,lt=null,ut=z({},[ot,st,q],ue),dt=z({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),ft=z({},[`annotation-xml`]),pt=z({},[`title`,`style`,`font`,`a`,`script`]),mt=null,ht=[`application/xhtml+xml`,`text/html`],Y=null,X=null,gt=n.createElement(`form`),_t=function(e){return e instanceof RegExp||e instanceof Function},vt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(X&&X===e)){if((!e||typeof e!=`object`)&&(e={}),e=B(e),mt=ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Y=mt===`application/xhtml+xml`?ue:le,R=F(e,`ALLOWED_TAGS`)?z({},e.ALLOWED_TAGS,Y):ge,V=F(e,`ALLOWED_ATTR`)?z({},e.ALLOWED_ATTR,Y):ke,lt=F(e,`ALLOWED_NAMESPACES`)?z({},e.ALLOWED_NAMESPACES,ue):ut,it=F(e,`ADD_URI_SAFE_ATTR`)?z(B(at),e.ADD_URI_SAFE_ATTR,Y):at,nt=F(e,`ADD_DATA_URI_TAGS`)?z(B(rt),e.ADD_DATA_URI_TAGS,Y):rt,K=F(e,`FORBID_CONTENTS`)?z({},e.FORBID_CONTENTS,Y):tt,Ae=F(e,`FORBID_TAGS`)?z({},e.FORBID_TAGS,Y):B({}),je=F(e,`FORBID_ATTR`)?z({},e.FORBID_ATTR,Y):B({}),G=F(e,`USE_PROFILES`)?e.USE_PROFILES:!1,Ne=e.ALLOW_ARIA_ATTR!==!1,Fe=e.ALLOW_DATA_ATTR!==!1,He=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=e.SAFE_FOR_TEMPLATES||!1,Ge=e.SAFE_FOR_XML!==!1,W=e.WHOLE_DOCUMENT||!1,Je=e.RETURN_DOM||!1,Ye=e.RETURN_DOM_FRAGMENT||!1,Xe=e.RETURN_TRUSTED_TYPE||!1,qe=e.FORCE_BODY||!1,Ze=e.SANITIZE_DOM!==!1,Qe=e.SANITIZE_NAMED_PROPS||!1,$e=e.KEEP_CONTENT!==!1,et=e.IN_PLACE||!1,L=e.ALLOWED_URI_REGEXP||Me,J=e.NAMESPACE||q,dt=e.MATHML_TEXT_INTEGRATION_POINTS||dt,ft=e.HTML_INTEGRATION_POINTS||ft,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&_t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),We&&(Fe=!1),Ye&&(Je=!0),G&&(R=z({},we),V=N(null),G.html===!0&&(z(R,ve),z(V,Te)),G.svg===!0&&(z(R,ye),z(V,Ee),z(V,Oe)),G.svgFilters===!0&&(z(R,be),z(V,Ee),z(V,Oe)),G.mathMl===!0&&(z(R,Se),z(V,De),z(V,Oe))),F(e,`ADD_TAGS`)||(U.tagCheck=null),F(e,`ADD_ATTR`)||(U.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?U.tagCheck=e.ADD_TAGS:(R===ge&&(R=B(R)),z(R,e.ADD_TAGS,Y))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?U.attributeCheck=e.ADD_ATTR:(V===ke&&(V=B(V)),z(V,e.ADD_ATTR,Y))),e.ADD_URI_SAFE_ATTR&&z(it,e.ADD_URI_SAFE_ATTR,Y),e.FORBID_CONTENTS&&(K===tt&&(K=B(K)),z(K,e.FORBID_CONTENTS,Y)),e.ADD_FORBID_CONTENTS&&(K===tt&&(K=B(K)),z(K,e.ADD_FORBID_CONTENTS,Y)),$e&&(R[`#text`]=!0),W&&z(R,[`html`,`head`,`body`]),R.table&&(z(R,[`tbody`]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw he(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw he(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=ze(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));j&&j(e),X=e}},yt=z({},[...ye,...be,...xe]),bt=z({},[...Se,...Ce]),xt=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:J,tagName:`template`});let n=le(e.tagName),r=le(t.tagName);return lt[e.namespaceURI]?e.namespaceURI===st?t.namespaceURI===q?n===`svg`:t.namespaceURI===ot?n===`svg`&&(r===`annotation-xml`||dt[r]):!!yt[n]:e.namespaceURI===ot?t.namespaceURI===q?n===`math`:t.namespaceURI===st?n===`math`&&ft[r]:!!bt[n]:e.namespaceURI===q?t.namespaceURI===st&&!ft[r]||t.namespaceURI===ot&&!dt[r]?!1:!bt[n]&&(pt[n]||!yt[n]):!!(mt===`application/xhtml+xml`&<[e.namespaceURI]):!1},Z=function(e){se(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},Q=function(e,n){try{se(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{se(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Je||Ye)try{Z(n)}catch{}else try{n.setAttribute(e,``)}catch{}},St=function(e){let t=null,r=null;if(qe)e=`<remove></remove>`+e;else{let t=de(e,/^[\r\n\t ]+/);r=t&&t[0]}mt===`application/xhtml+xml`&&J===q&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(J===q)try{t=new f().parseFromString(i,mt)}catch{}if(!t||!t.documentElement){t=S.createDocument(J,`template`,null);try{t.documentElement.innerHTML=ct?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),J===q?T.call(t,W?`html`:`body`)[0]:W?t.documentElement:a},Ct=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},Tt=function(e){return typeof s==`function`&&e instanceof s};function $(e,n,r){ie(e,e=>{e.call(t,n,r,X)})}let Et=function(e){let n=null;if($(D.beforeSanitizeElements,e,null),wt(e))return Z(e),!0;let r=Y(e.nodeName);if($(D.uponSanitizeElement,e,{tagName:r,allowedTags:R}),Ge&&e.hasChildNodes()&&!Tt(e.firstElementChild)&&I(/<[/\w!]/g,e.innerHTML)&&I(/<[/\w!]/g,e.textContent)||e.nodeType===Le.progressingInstruction||Ge&&e.nodeType===Le.comment&&I(/<[/\w]/g,e.data))return Z(e),!0;if(!(U.tagCheck instanceof Function&&U.tagCheck(r))&&(!R[r]||Ae[r])){if(!Ae[r]&&Ot(r)&&(H.tagNameCheck instanceof RegExp&&I(H.tagNameCheck,r)||H.tagNameCheck instanceof Function&&H.tagNameCheck(r)))return!1;if($e&&!K[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return Z(e),!0}return e instanceof c&&!xt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&I(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z(e),!0):(We&&e.nodeType===Le.text&&(n=e.textContent,ie([ee,k,te],e=>{n=fe(n,e,` `)}),e.textContent!==n&&(se(t.removed,{element:e.cloneNode()}),e.textContent=n)),$(D.afterSanitizeElements,e,null),!1)},Dt=function(e,t,r){if(je[t]||Ze&&(t===`id`||t===`name`)&&(r in n||r in gt))return!1;if(!(Fe&&!je[t]&&I(A,t))&&!(Ne&&I(ne,t))&&!(U.attributeCheck instanceof Function&&U.attributeCheck(t,e))){if(!V[t]||je[t]){if(!(Ot(e)&&(H.tagNameCheck instanceof RegExp&&I(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&I(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t,e))||t===`is`&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&I(H.tagNameCheck,r)||H.tagNameCheck instanceof Function&&H.tagNameCheck(r))))return!1}else if(!it[t]&&!I(L,fe(r,P,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&pe(r,`data:`)===0&&nt[e])&&!(He&&!I(M,fe(r,P,``)))&&r)return!1}return!0},Ot=function(e){return e!==`annotation-xml`&&de(e,re)},kt=function(e){$(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||wt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Y(a),l=s,u=a===`value`?l:me(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,$(D.uponSanitizeAttribute,e,r),u=r.attrValue,Qe&&(c===`id`||c===`name`)&&(Q(a,e),u=`user-content-`+u),Ge&&I(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Q(a,e);continue}if(c===`attributename`&&de(u,`href`)){Q(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Q(a,e);continue}if(!Ue&&I(/\/>/i,u)){Q(a,e);continue}We&&ie([ee,k,te],e=>{u=fe(u,e,` `)});let d=Y(e.nodeName);if(!Dt(d,c,u)){Q(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),wt(e)?Z(e):oe(t.removed)}catch{Q(a,e)}}$(D.afterSanitizeAttributes,e,null)},At=function e(t){let n=null,r=Ct(t);for($(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)$(D.uponSanitizeShadowNode,n,null),Et(n),kt(n),n.content instanceof a&&e(n.content);$(D.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(ct=!e,ct&&(e=`<!-->`),typeof e!=`string`&&!Tt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw he(`dirty is not a string, aborting`)}else throw he(`toString is not a function`);if(!t.isSupported)return e;if(Ke||vt(n),t.removed=[],typeof e==`string`&&(et=!1),et){if(e.nodeName){let t=Y(e.nodeName);if(!R[t]||Ae[t])throw he(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=St(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Le.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!Je&&!We&&!W&&e.indexOf(`<`)===-1)return b&&Xe?b.createHTML(e):e;if(i=St(e),!i)return Je?null:Xe?x:``}i&&qe&&Z(i.firstChild);let u=Ct(et?e:i);for(;c=u.nextNode();)Et(c),kt(c),c.content instanceof a&&At(c.content);if(et)return e;if(Je){if(Ye)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(V.shadowroot||V.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=W?i.outerHTML:i.innerHTML;return W&&R[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&I(Pe,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
2
2
|
`+d),We&&ie([ee,k,te],e=>{d=fe(d,e,` `)}),b&&Xe?b.createHTML(d):d},t.setConfig=function(){vt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Ke=!0},t.clearConfig=function(){X=null,Ke=!1},t.isValidAttribute=function(e,t,n){return X||vt({}),Dt(Y(e),Y(t),n)},t.addHook=function(e,t){typeof t==`function`&&se(D[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=ae(D[e],t);return n===-1?void 0:ce(D[e],n,1)[0]}return oe(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=Be()},t}var He=Ve(),Ue=E({"node_modules/.pnpm/jsonify@0.0.1/node_modules/jsonify/lib/parse.js"(e,t){var n,r,i={'"':`"`,"\\":`\\`,"/":`/`,b:`\b`,f:`\f`,n:`
|
|
3
3
|
`,r:`\r`,t:` `},a;function o(e){throw{name:`SyntaxError`,message:e,at:n,text:a}}function s(e){return e&&e!==r&&o(`Expected '`+e+`' instead of '`+r+`'`),r=a.charAt(n),n+=1,r}function c(){var e,t=``;for(r===`-`&&(t=`-`,s(`-`));r>=`0`&&r<=`9`;)t+=r,s();if(r===`.`)for(t+=`.`;s()&&r>=`0`&&r<=`9`;)t+=r;if(r===`e`||r===`E`)for(t+=r,s(),(r===`-`||r===`+`)&&(t+=r,s());r>=`0`&&r<=`9`;)t+=r,s();return e=Number(t),isFinite(e)||o(`Bad number`),e}function l(){var e,t,n=``,a;if(r===`"`)for(;s();)if(r===`"`)return s(),n;else if(r===`\\`)if(s(),r===`u`){for(a=0,t=0;t<4&&(e=parseInt(s(),16),isFinite(e));t+=1)a=a*16+e;n+=String.fromCharCode(a)}else if(typeof i[r]==`string`)n+=i[r];else break;else n+=r;o(`Bad string`)}function u(){for(;r&&r<=` `;)s()}function d(){switch(r){case`t`:return s(`t`),s(`r`),s(`u`),s(`e`),!0;case`f`:return s(`f`),s(`a`),s(`l`),s(`s`),s(`e`),!1;case`n`:return s(`n`),s(`u`),s(`l`),s(`l`),null;default:o(`Unexpected '`+r+`'`)}}function f(){var e=[];if(r===`[`){if(s(`[`),u(),r===`]`)return s(`]`),e;for(;r;){if(e.push(m()),u(),r===`]`)return s(`]`),e;s(`,`),u()}}o(`Bad array`)}function p(){var e,t={};if(r===`{`){if(s(`{`),u(),r===`}`)return s(`}`),t;for(;r;){if(e=l(),u(),s(`:`),Object.prototype.hasOwnProperty.call(t,e)&&o(`Duplicate key "`+e+`"`),t[e]=m(),u(),r===`}`)return s(`}`),t;s(`,`),u()}}o(`Bad object`)}function m(){switch(u(),r){case`{`:return p();case`[`:return f();case`"`:return l();case`-`:return c();default:return r>=`0`&&r<=`9`?c():d()}}t.exports=function(e,t){var i;return a=e,n=0,r=` `,i=m(),u(),r&&o(`Syntax error`),typeof t==`function`?(function e(n,r){var i,a,o=n[r];if(o&&typeof o==`object`)for(i in m)Object.prototype.hasOwnProperty.call(o,i)&&(a=e(o,i),a===void 0?delete o[i]:o[i]=a);return t.call(n,r,o)})({"":i},``):i}}}),We=E({"node_modules/.pnpm/jsonify@0.0.1/node_modules/jsonify/lib/stringify.js"(e,t){var n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,i,a={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,'"':`\\"`,"\\":`\\\\`},o;function s(e){return n.lastIndex=0,n.test(e)?`"`+e.replace(n,function(e){var t=a[e];return typeof t==`string`?t:`\\u`+(`0000`+e.charCodeAt(0).toString(16)).slice(-4)})+`"`:`"`+e+`"`}function c(e,t){var n,a,l,u,d=r,f,p=t[e];switch(p&&typeof p==`object`&&typeof p.toJSON==`function`&&(p=p.toJSON(e)),typeof o==`function`&&(p=o.call(t,e,p)),typeof p){case`string`:return s(p);case`number`:return isFinite(p)?String(p):`null`;case`boolean`:case`null`:return String(p);case`object`:if(!p)return`null`;if(r+=i,f=[],Object.prototype.toString.apply(p)===`[object Array]`){for(u=p.length,n=0;n<u;n+=1)f[n]=c(n,p)||`null`;return l=f.length===0?`[]`:r?`[
|
|
4
4
|
`+r+f.join(`,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return e<1024?`${String(e)} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(2)} MB`}export{e as t};
|