PageSourceSearch

https://www.asml.com/_next/static/chunks/149-824b71077dbc0c52.js

js asml.com collected 2026-09-24 08:35:56 UTC 98,970 bytes, 77 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[149],{1548:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>a,H5:()=>E,HZ:()=>R,Ll:()=>g,Nj:()=>F,QQ:()=>P,Rf:()=>D,Tr:()=>T,ZB:()=>_,eW:()=>N,fX:()=>i,fZ:()=>m,xv:()=>n});var n=(e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[a(r)]:e[r]}),{});function i(e){return a(e).replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,function(e){return"-"+e.toLowerCase()})}function a(e){return(e=(e=e.replace(/[-_ ]+/g," ")).charAt(0).toLowerCase()+e.slice(1)).split(/\s+/).map((e,t)=>0===t?e:e.charAt(0).toUpperCase()+e.slice(1)).join("")}var o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},s={},l=e=>{var{properties:t}=e;return Object.assign(Object.assign({},o(e,["properties"])),{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:c(t)}})};function c(e={}){return{type:"object",properties:Object.keys(e).reduce((t,r)=>{let n=e[r],{title:i}=n;return o(n,["title"]),Object.assign(Object.assign({},t),{[r]:{type:"object",properties:{value:Object.assign({title:i||r},e[r])}}})},{})}}var u={Link:()=>({type:"object",properties:{href:{required:!0,type:"string",title:"URL",description:"The URL of the link, except for media items, for which the Url property contains the path to the media item relative to /Sitecore/Media Library."},text:{type:"string",title:"Text",description:"The text content of the HTML <a> element."},linktype:{type:"string",enum:["internal","external","media","anchor","mailto","javascript"],default:"internal",title:"Target",description:"The target attribute of the HTML <a> element."},title:{type:"string",title:"Title",description:"The title attribute of the HTML <a> element."},class:{type:"string",title:"Class Name",description:"The class attribute of the HTML <a> element."},target:{type:"string",title:"Target",description:"The target attribute of the HTML <a> element.",enum:["","_blank","_self","_parent","_top"]},anchor:{type:"string",title:"Anchor",description:"The name attribute of the HTML <a> element, without the leading hash character (“#”)."},querystring:{type:"string",title:"Query String",description:"Query string parameters to add to the URL."}}}),DropLink:l,DropTree:l,File:()=>({type:"object",properties:{src:{type:"string",title:"Source",description:"The URL of the file."},title:{type:"string",title:"Title",description:"Title of a file"},displayName:{type:"string",title:"Display name",description:"Display name of a file"}}}),Date:()=>({type:"string",format:"date"}),Datetime:()=>({type:"string",format:"date-time"}),RichText:()=>({type:"string"}),Image:e=>({type:"object",properties:Object.assign({src:{type:"string"}},e.properties)}),SingleLineText:()=>{},MultiLineText:()=>({type:"string"}),Checkbox:()=>({type:"boolean"}),String:()=>({type:"string"}),Number:()=>({type:"number"}),Boolean:()=>({type:"boolean"}),Item:l,List:e=>{var{properties:t}=e;return Object.assign(Object.assign({},o(e,["properties"])),{type:"array",items:{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:c(t)}}})}};function d(e,t={}){return function e(t,r){var n={};for(var i in t){let a=t[i];a&&"object"==typeof a?Array.isArray(a)?n[i]=a.map(t=>"object"==typeof t&&t?e(t,r):t):n[i]=e(r(a),r):n[i]=t[i]}return n}(e=p(Object.assign({type:"object",properties:{},required:[]},e)),e=>e.properties?p(e,t):e)}function p(e,t={}){var r;let n=Object.assign({},e);return n.properties&&(n.required=(null==(r=e.required)?void 0:r.slice())||[],n.properties=Object.keys(n.properties).reduce((e,r)=>{var a;let o=n.properties[r],l=null==(a=s[null==o?void 0:o.type])?void 0:a.call(s,o),c=Object.assign(Object.assign(Object.assign({},l),o),{type:(null==l?void 0:l.type)||o.type,default:t.hasOwnProperty(r)?t[r]:o.default,title:o.title||i(r).split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")});return(null!=o&&o.properties||null!=l&&l.properties)&&(c.properties=Object.assign({},(null==l?void 0:l.properties)||(null==o?void 0:o.properties)),Object.keys((null==l?void 0:l.properties)||{}
1).forEach(e=>{var t,r;c.properties[e]=Object.assign(Object.assign({},null==(t=null==l?void 0:l.properties)?void 0:t[e]),null==(r=null==o?void 0:o.properties)?void 0:r[e])})),(null!=o&&o.items||null!=l&&l.items)&&(c.items=(null==l?void 0:l.items)||(null==o?void 0:o.items)),void 0===c.default&&delete c.default,"required"in c&&"boolean"==typeof c.required&&(-1==n.required.indexOf(r)&&n.required.push(r),delete c.required),Object.assign(e,{[r]:c})},{})),Object.assign({type:"object"},n)}Object.keys(u).forEach(e=>{!function(e,{name:t}){if(t.charAt(0)!=t.charAt(0).toUpperCase())throw Error("Custom types must start with a capital letter");s[t]=e}(u[e],{name:e})});var h=(e,t)=>{var r,n,i,a;let o=Object.assign({},e);for(var s in t)"object"==typeof t[s]&&t[s]&&(((null==(r=t[s])?void 0:r.type)=="integer"||(null==(n=t[s])?void 0:n.type)=="number")&&(o[s]=Object.assign(Object.assign({},o[s]),{"ui:options":{widget:"updown"}})),null!=(i=t[s])&&i.ui&&(o[s]=Object.assign(Object.assign({},o[s]),{"ui:options":Object.assign(Object.assign({},null==(a=o[s])?void 0:a["ui:options"]),t[s].ui)})),o=Object.assign(Object.assign({},o),{[s]:t[s].items?{items:h(o[s],t[s].items.properties)}:h(o[s],t[s].properties||{})}));return o};function f(e,t){switch(t){case"string":default:return e;case"object":try{return"object"==typeof e&&null!=e?e:JSON.parse(e)}catch(e){return null}case"array":try{return Array.isArray(e)?e:JSON.parse(e)}catch(e){return null}case"number":return parseFloat(e);case"integer":return parseInt(e);case"boolean":return"true"==e||"1"==e}}var m="u">typeof window?window.BYOCDatasources||(window.BYOCDatasources={}):{};function g(e,t){if("function"!=typeof e)throw Error("The first argument of registerDatasource must be a function returning DataSettings or Promise of data");if(!t.id)throw Error("Missing 'id' property in input");if(!/^[a-zA-Z0-9-_]+$/.test(t.id))throw Error("Invalid 'id' property in input. 'id' should only contain alphanumeric characters, hyphens, and underscores.");m[t.id]=Object.assign(Object.assign({},function(e){let{id:t,name:r,title:n,properties:i,sample:a,schema:o,description:s=null,type:l="object"}=e;return{id:t,description:s,sample:a,name:r||n||t,handler:e=>e,schema:o||i?d(Object.assign(Object.assign({},o||{properties:i,type:l}),{title:(null==o?void 0:o.title)||n||r})):void 0}}(t)),{handler:e}),w()}var b,y=!1,v=0,A=!1;function w(){if(clearTimeout(b),"u">typeof window&&window.parent!==window){"u"<typeof window||A||(A=!0,window.addEventListener("message",e=>{try{"register-datasources-ack"===("string"==typeof e.data?JSON.parse(e.data):e.data).action&&(y=!0,v=0,clearTimeout(b))}catch(e){}})),y=!1,v=0;let e=()=>{var t;y||v>=150||(null==(t=window.parent)||t.postMessage(JSON.stringify({action:"register-datasources",data:Object.values(m)}),"*"),v++,!y&&v<150&&(b=setTimeout(e,200)))};b=setTimeout(e,30)}}function E(e,t){let r=m[e];return null!=r&&r.handler?r.handler(t):t}w();var C,S=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},O=!1,x=0,k=!1,j="u">typeof HTMLElement?HTMLElement:"u">typeof windowJSDOM?windowJSDOM.HTMLElement:class{setAttribute(){}},R="u">typeof window?window.BYOCComponents||(window.BYOCComponents={}):{};function F(e,t,r={}){if(!(null!=t&&t.name))throw Error("Could not register external component. Please make sure you provide a name in the options"+JSON.stringify(t));let n=function(e,t,r){let{thumbnail:n="https://feaasstatic.blob.core.windows.net/assets/thumbnails/byoc.svg",name:i,id:a=e.name,group:o=null,ui:s,isHidden:l=!1,datasourceIds:c=[],links:u={},meta:p={},uiSchema:f,schema:m}=e,g=S(e,["thumbnail","name","id","group","ui","isHidden","datasourceIds","links","meta","uiSchema","schema"]),b=d(Object.assign(Object.assign({description:"External component"},m||g||{}),{type:"object"}),r),y=h(f||s||{},b.properties||{});return{component:t||(()=>null),name:i,schema:b,uiSchema:y,thumbnail:n,group:o||"Default collection",isHidden:l,id:a,datasourceIds:c,links:u,meta:p,title:(null==b?void 0:b.title)||(null==g?void 0:g.title)||i}}(t,e,r);R[n.id]=n,N(e)&&L.register("byoc-"+i(t.name),void 0,e),T()}function N(e){return e&&"prototype"in e&&"setAttribute"in e.prototype}function P(e){if("string"!=typeof e){if(e&&"schema"in e)return e;throw Error(`Component name should be a string, got ${typeof e}`)}let[t,r]=e.split("?");var n=R[t];if(r){let t=R[e];if(!t&&!n)return null;t&&(n=Object.assign(Object.assign(Object.assign({},n),t),{component:t.component||(null==n?void 0:n.component)}
1)),r.split(/\&/g).forEach(e=>{var t,r,i;let[a,o]=e.split("="),s=(null==(t=n.schema.properties)?void 0:t[a])||{type:"string"};n=Object.assign(Object.assign({},n),{schema:Object.assign(Object.assign({},n.schema),{properties:Object.assign(Object.assign({},n.schema.properties),{[a]:Object.assign(Object.assign({},s),{default:f(decodeURIComponent(o),s.type)})})}),uiSchema:Object.assign(Object.assign({},n.uiSchema),{[a]:Object.assign(Object.assign({},n.uiSchema[a]),{"ui:widget":null!=(i=null==(r=n.uiSchema[a])?void 0:r["ui:widget"])?i:"hidden"})})})})}return n}function D(e){let{componentName:t,className:r,fallbackWrapper:n,fallback:o,suppressHydrationWarning:s,_dynamic:l,datasources:c}=e,u=S(e,["componentName","className","fallbackWrapper","fallback","suppressHydrationWarning","_dynamic","datasources"]);try{var d="string"==typeof c?JSON.parse(c):c}catch(e){}let p=Object.values(d||{}).find(e=>e&&!Array.isArray(e)&&Object.keys(e).length>0),h=Object.assign(Object.assign(Object.assign({},p),function(e,t={}){var r,n;let i=null==(r=P(e))?void 0:r.schema;return i?Object.assign(Object.assign({},Object.keys((n=i).properties).reduce((e,t)=>{var r,i;return(null==(r=n.properties[t])?void 0:r.default)!=null?Object.assign(Object.assign({},e),{[t]:null==(i=n.properties[t])?void 0:i.default}):e},{})),Object.keys(t).reduce((e,r)=>{let n=t[r],o=a(r),s=null==i?void 0:i.properties[o],l=f(n,null==s?void 0:s.type);return null==l||r.startsWith("data-attribute")||["class","id","contenteditable"].includes(r)?e:Object.assign(Object.assign({},e),{[o]:l})},{})):t}(t,Object.assign(Object.assign({},p),u))),d?{datasources:d}:{}),m=Object.assign(Object.assign({"data-external-id":t},((e={})=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[i(r)]:e[r]}),{}))(h)),{suppressHydrationWarning:!0,class:r});return $.forEach(e=>{Object.assign(m,{[i(e)]:M[e]})}),Object.keys(m).forEach(e=>{let t=m[e];if(t&&"object"==typeof t&&"class"!=e&&"children"!=e)try{Object.assign(m,{[e]:JSON.stringify(t)})}catch(t){delete m[e]}("function"==typeof t||null==t)&&delete m[e]}),{attributes:m,properties:h,merged:Object.assign(Object.assign({},M),h)}}function T(){if(clearTimeout(C),"u">typeof window&&window.parent!==window){"u"<typeof window||k||(k=!0,window.addEventListener("message",e=>{try{"register-components-ack"===("string"==typeof e.data?JSON.parse(e.data):e.data).action&&(O=!0,x=0,clearTimeout(C))}catch(e){}})),O=!1,x=0;let e=()=>{var t;O||x>=150||(null==(t=window.parent)||t.postMessage(JSON.stringify({action:"register-components",data:Object.values(R)}),"*"),x++,!O&&x<150&&(C=setTimeout(e,200)))};C=setTimeout(e,30)}}T();var L=class extends j{connectedCallback(){try{JSON.parse(String(this.getAttribute("components"))).forEach(e=>{P(e.id)||F(null,e)}),JSON.parse(String(this.getAttribute("datasources"))).forEach(e=>{m[e.id]||g(e=>e,e)})}catch(e){}}static register(e,t,r=this){null==t&&(t="u">typeof window?window:void 0),t&&!t.customElements.get(e)&&t.customElements.define(e,class extends r{})}},M={};function _(e){M=e}var $=["sitecoreEdgeUrl","sitecoreEdgeContextId"];L.register("byoc-registration")},2059:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!=i--;){var n,i,a,o=a[i];if(("_owner"!==o||!t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},2130:(e,t,r)=>{"use strict";var n,i,a,o;r.d(t,{BQ:()=>l,IY:()=>n,TB:()=>s}),(o=n||(n={})).Preview="preview",o.Edit="edit",o.Normal="normal",(i||(i={})).Metadata="metadata",(a||(a={})).Component="component";let s="editing-componentmode-placeholder",l="editing-component"},4218:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>tS,ComponentProps:()=>eG,Context:()=>ts,ControlledPromise:()=>eb,DEFAULT_CDN_URL:()=>eN,DOM:()=>f,DataPath:()=>U,DataScope:()=>m,DataSettings:()=>eh,Element:()=>ev,External:()=>
1tc,ExternalComponent:()=>tw,ExternalComponentBundle:()=>tA,FEAASComponent:()=>eX,FEAASComponentsProps:()=>eG,FEAASContext:()=>ts,FEAASContextProps:()=>to,FEAASEditor:()=>tn,FEAASEditorProps:()=>tr,FEAASElement:()=>ev,FEAASExternalPropsObject:()=>tl,FEAASLoader:()=>e0,FEAASLoaderProps:()=>eK,FEAASPicker:()=>ta,FEAASPickerProps:()=>ti,FEAASReactComponent:()=>tg,FEAASReactServerComponent:()=>tm,FEAASReactStylesheet:()=>tf,FEAASStylesheet:()=>e2,FEAASStylesheetProps:()=>e1,HTMLNodeToReact:()=>tb,InvalidResponse:()=>ej,JSONPath:()=>N,Loader:()=>e0,MyComponent:()=>ew,NextExternalComponent:()=>tC,Picker:()=>ta,ReactExternalComponent:()=>tE,ServerComponent:()=>tO,Stylesheet:()=>tx,Thumbnail:()=>e4,WebComponent:()=>ey,adjustNumbers:()=>Q,autoloadScripts:()=>I,cleanCollectionBit:()=>z,clearFetchCache:()=>eS,createStylesheet:()=>eV,customizeDataSettings:()=>n.H5,enableNextClientsideComponents:()=>ty,fetchAndRevalidate:()=>eO,fetchAndRevalidateComponent:()=>e$,fetchAndRevalidateStylesheet:()=>eI,fetchBypassingCache:()=>eF,fetchCache:()=>eC,fetchComponent:()=>eB,fetchData:()=>em,fetchToValidateCache:()=>eR,fetchWithCacheAwareness:()=>ex,findStylesheet:()=>ez,getComponent:()=>n.QQ,getComponentSource:()=>eD,getComponentURL:()=>eM,getFetchCache:()=>ek,getFramePosition:()=>tt,getHumanizedLabel:()=>Y,getLastPathBit:()=>Z,getQualifier:()=>q,getStylesheetSource:()=>eT,getStylesheetURL:()=>e_,linkComponents:()=>tu,loadScript:()=>H,loadStylesheet:()=>eJ,loadStylesheetAllowStale:()=>eq,normalizeCollectionScope:()=>V,normalizeFetchAttribute:()=>th,observeDOMElement:()=>B,parseComponentSource:()=>eP,parseLimit:()=>W,parseRange:()=>J,parseStylesheetSource:()=>eL,queryObject:()=>L,queryObjectRaw:()=>T,queryScopes:()=>M,registerComponent:()=>n.Nj,registerDatasource:()=>n.Ll,renderComponent:()=>eY,renderComponentElement:()=>eQ,renderComponentPromise:()=>eZ,renderDOMContent:()=>en,renderDOMElement:()=>et,renderHTMLContent:()=>ec,renderStylesheet:()=>eH,renderStylesheetPromise:()=>eU,serializeCH1RichText:()=>$,setContextProperties:()=>tv,setDOMAttribute:()=>K,setElementImplementation:()=>tp});var n=r(1548),i=r(4232),a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},o=null,s=null;function l(e){let{componentName:t,clientFallback:r}=e,l=a(e,["componentName","clientFallback"]),c=null==(h=(0,n.QQ)(t))?void 0:h.component,d=i.useMemo(()=>i.createElement(u,Object.assign({},l,{componentName:t})),[]),p=i.useMemo(()=>s(()=>Promise.resolve(o),{ssr:!1,loading:()=>d}),[]);var h,f="u"<typeof window?JSON.parse(JSON.stringify(l)):l;return i.createElement(p,Object.assign({},f,{componentName:t,fallbackWrapper:!c,fallback:c?d:r?i.createElement(s(()=>Promise.resolve(()=>r),{ssr:!1})):e.fallback}))}function c(e){return 0==Object.keys(e).length?i.createElement(i.Fragment,null):s&&!e._dynamic?l(Object.assign({_dynamic:!0},e)):u(e)}
1function u(e){let{componentName:t,fallback:r,fallbackWrapper:a}=e,o=(0,n.QQ)(t),s=null==o?void 0:o.component,{attributes:l,properties:c,merged:u}=(0,n.Rf)(e);if(!s&&r||!t)return!1===a?i.createElement(i.Fragment,null,r):i.createElement("feaas-external",Object.assign({},l,{hydrate:"false"}),r);if(o&&s&&(0,n.eW)(s)){let e="byoc-"+(0,n.fX)(o.id);return i.createElement(e,Object.assign(Object.assign({},l),{ref:t=>{var r;t&&"u">typeof window&&(null==(r=window.customElements)||r.whenDefined(e).then(()=>{var e;null==(e=t.sitecoreContextCallback)||e.call(t,Object.assign({},u))}))}}))}return i.createElement(i.Fragment,null,i.createElement("feaas-external",Object.assign({},l,{hydrate:"false"}),null==s?null:i.createElement(s,Object.assign({},u))))}var d=r(8477),p=Object.defineProperty,h=(e,t)=>{for(var r in t)p(e,r,{get:t[r],enumerable:!0})},f={};h(f,{renderDOMContent:()=>en,renderDOMElement:()=>et,renderHTMLContent:()=>ei,setDOMAttribute:()=>K});var m={};function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function C(e,t,r){return(C=E()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&w(i,r.prototype),i}).apply(null,arguments)}function S(e){var t="function"==typeof Map?new Map:void 0;return(S=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if("u">typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return C(e,arguments,A(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),w(r,e)})(e)}function O(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x(e,t)}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}h(m,{JSONPath:()=>N,queryObject:()=>L,queryObjectRaw:()=>T,queryScopes:()=>M,serializeCH1RichText:()=>$});var k=Object.prototype.hasOwnProperty;function j(e,t){return(e=e.slice()).push(t),e}function R(e,t){return(t=t.slice()).unshift(e),t}var F=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&w(n,e);var t,r=(t=E(),function(){var e,r=A(n);e=t?Reflect.construct(r,arguments,A(this).constructor):r.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function n(e){var t;return b(this,n),(t=r.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)')).avoidNew=!0,t.value=e,t.name="NewError",t}return v(n)}(S(Error));function N(e,t,r,n,i){if(!(this instanceof N))try{return new N(e,t,r,n,i)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(i=n,n=r,r=t,t=e,e=null);var a=e&&"object"===g(e);if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!k.call(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.preventEval=e.preventEval||!1,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||n||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){var o={path:a?e.path:t};a?"json"in e&&(o.json=e.json):o.json=r;var s=this.evaluate(o);if(!s||"object"!==g(s))throw new F(s);return s}}N.prototype.evaluate=function(e,t,r,n){var i=this,a=this.parent,o=this.parentProperty,s=this.flatten,l=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=n||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"===g(e)&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!k.call(e,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,s=k.call(e,"flatten")?e.flatten:s,this.currResultType=k.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=k.call(e,"sandbox")?e.sandbox:this.currSandbox,l=k.call(e,"wrap")?e.wrap:l,this.currPreventEval=k.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=k.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=k.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,a=k.call(e,"parent")?e.parent:a,o=k.call(e,"parentProperty")?e.parentProperty:o,e=e.path}if(a=a||null,o=o||null,Array.isArray(e)&&(e=N.toPathString(e)),!(!e&&""!==e||!t)){var c=N.toPathArray(e);"$"===c[0]&&c.length>1&&c.shift(),this._hasParentSelector=null;var u=this._trace(c,t,["$"],a,o,r).filter(function(e){return e&&!e.isParentSelector});return u.length?l||1!==u.length||u[0].hasArrExpr?u.reduce(function(e,t){var r=i._getPreferredOutput(t);return s&&Array.isArray(r)?e=e.concat(r):e.push(r),e},[]):this._getPreferredOutput(u[0]):l?[]:void 0}},N.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:N.toPathArray(e.path);
1return e.pointer=N.toPointer(r),e.path="string"==typeof e.path?e.path:N.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return N.toPathString(e[t]);case"pointer":return N.toPointer(e.path);default:throw TypeError("Unknown result type")}},N.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:N.toPathString(e.path),t(n,r,e)}},N.prototype._trace=function(e,t,r,n,i,a,o,s){var l,c=this;if(!e.length)return l={path:r,value:t,parent:n,parentProperty:i,hasArrExpr:o},this._handleCallback(l,a,"value"),l;var u=e[0],d=e.slice(1),p=[];function h(e){Array.isArray(e)?e.forEach(function(e){p.push(e)}):p.push(e)}if(("string"!=typeof u||s)&&t&&k.call(t,u))h(this._trace(d,t[u],j(r,u),t,u,a,o));else if("*"===u)this._walk(t,function(e){h(c._trace(d,t[e],j(r,e),t,e,a,!0,!0))});else if(".."===u)h(this._trace(d,t,r,n,i,a,o)),this._walk(t,function(n){"object"===g(t[n])&&h(c._trace(e.slice(),t[n],j(r,n),t,n,a,!0))});else{if("^"===u)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:d,isParentSelector:!0};if("~"===u)return l={path:j(r,u),value:i,parent:n,parentProperty:null},this._handleCallback(l,a,"property"),l;if("$"===u)h(this._trace(d,t,r,null,null,a,o));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))h(this._slice(u,d,t,r,n,i,a));else if(0===u.indexOf("?(")){if(this.currPreventEval)throw Error("Eval [?(expr)] prevented in JSONPath expression.");var f=u.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1");this._walk(t,function(e){c._eval(f,t[e],e,r,n,i)&&h(c._trace(d,t[e],j(r,e),t,e,a,!0))})}else if("("===u[0]){if(this.currPreventEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");h(this._trace(R(this._eval(u,t,r[r.length-1],r.slice(0,-1),n,i),d),t,r,n,i,a,o))}else if("@"===u[0]){var m=!1,b=u.slice(1,-2);switch(b){case"scalar":t&&["object","function"].includes(g(t))||(m=!0);break;case"boolean":case"string":case"undefined":case"function":g(t)===b&&(m=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(m=!0);break;case"number":Number.isFinite(t)&&(m=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(m=!0);break;case"object":t&&g(t)===b&&(m=!0);break;case"array":Array.isArray(t)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(t,r,n,i);break;case"null":null===t&&(m=!0);break;default:throw TypeError("Unknown value type "+b)}if(m)return l={path:r,value:t,parent:n,parentProperty:i},this._handleCallback(l,a,"value"),l}else if("`"===u[0]&&t&&k.call(t,u.slice(1))){var y=u.slice(1);h(this._trace(d,t[y],j(r,y),t,y,a,o,!0))}else if(u.includes(",")){var v,A=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=O(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(o)throw i}}}}(u.split(","));try{for(A.s();!(v=A.n()).done;){var w=v.value;h(this._trace(R(w,d),t,r,n,i,a,!0))}}catch(e){A.e(e)}finally{A.f()}}else!s&&t&&k.call(t,u)&&h(this._trace(d,t[u],j(r,u),t,u,a,o,!0))}if(this._hasParentSelector)for(var E=0;E<p.length;E++){var C=p[E];if(C&&C.isParentSelector){var S=this._trace(C.expr,t,C.path,n,i,a,o);if(Array.isArray(S)){p[E]=S[0];for(var x=S.length,F=1;F<x;F++)E++,p.splice(E,0,S[F])}else p[E]=S}}return p},N.prototype._walk=function(e,t){if(Array.isArray(e))for(var r=e.length,n=0;n<r;n++)t(n);else e&&"object"===g(e)&&Object.keys(e).forEach(function(e){t(e)})},N.prototype._slice=function(e,t,r,n,i,a,o){if(Array.isArray(r)){var s=r.length,l=e.split(":"),c=l[2]&&Number.parseInt(l[2])||1,u=l[0]&&Number.parseInt(l[0])||0,d=l[1]&&Number.parseInt(l[1])||s;u=u<0?Math.max(0,u+s):Math.min(s,u),d=d<0?Math.max(0,d+s):Math.min(s,d);for(var p=[],h=u;h<d;
2h+=c)this._trace(R(h,t),r,n,i,a,o,!0).forEach(function(e){p.push(e)});return p}},N.prototype._eval=function(e,t,r,n,i,a){this.currSandbox._$_parentProperty=a,this.currSandbox._$_parent=i,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;var o=e.includes("@path");o&&(this.currSandbox._$_path=N.toPathString(n.concat([r])));var s="script:"+e;if(!N.cache[s]){var l=e.replace(/@parentProperty/g,"_$_parentProperty").replace(/@parent/g,"_$_parent").replace(/@property/g,"_$_property").replace(/@root/g,"_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g,"_$_v$1");o&&(l=l.replace(/@path/g,"_$_path")),N.cache[s]=new this.vm.Script(l)}try{return N.cache[s].runInNewContext(this.currSandbox)}catch(t){throw Error("jsonPath: "+t.message+": "+e)}},N.cache={},N.toPathString=function(e){for(var t=e.length,r="$",n=1;n<t;n++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(e[n])||(r+=/^[\*0-9]+$/.test(e[n])?"["+e[n]+"]":"['"+e[n]+"']");return r},N.toPointer=function(e){for(var t=e.length,r="",n=1;n<t;n++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(e[n])||(r+="/"+e[n].toString().replace(/~/g,"~0").replace(/\//g,"~1"));return r},N.toPathArray=function(e){var t=N.cache;if(t[e])return t[e].concat();var r=[],n=e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g,";$&;").replace(/['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))['\]]/g,function(e,t){return"[#"+(r.push(t)-1)+"]"}).replace(/\[["']((?:(?!['\]])[\s\S])*)["']\]/g,function(e,t){return"['"+t.replace(/\./g,"%@%").replace(/~/g,"%%@@%%")+"']"}).replace(/~/g,";~;").replace(/["']?\.["']?(?!(?:(?!\[)[\s\S])*\])|\[["']?/g,";").replace(/%@%/g,".").replace(/%%@@%%/g,"~").replace(/(?:;)?(\^+)(?:;)?/g,function(e,t){return";"+t.split("").join(";")+";"}).replace(/;;;|;;/g,";..;").replace(/;$|'?\]|'$/g,"").split(";").map(function(e){var t=e.match(/#([0-9]+)/);return t&&t[1]?r[t[1]]:e});return t[e]=n,t[e].concat()};var P=function(e,t,r){for(var n=e.length,i=0;i<n;i++)r(e[i])&&t.push(e.splice(i--,1)[0])},D=function(){function e(t){b(this,e),this.code=t}return v(e,[{key:"runInNewContext",value:function(e){var t=this.code,r=Object.keys(e),n=[];P(r,n,function(t){return"function"==typeof e[t]});var i=r.map(function(t,r){return e[t]});t=n.reduce(function(t,r){var n=e[r].toString();return/function/.test(n)||(n="function "+n),"var "+r+"="+n+";"+t},"")+t,/(["'])use strict\1/.test(t)||r.includes("arguments")||(t="var arguments = undefined;"+t);var a=(t=t.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"")).lastIndexOf(";"),o=a>-1?t.slice(0,a+1)+" return "+t.slice(a+1):" return "+t;return C(Function,r.concat([o])).apply(void 0,function(e){if(Array.isArray(e))return x(e)}(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||O(i)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())}}]),e}();function T(e,t){try{return N({path:t,json:e})}catch(e){return[]}}function L(e,t,r=!0){let n=T(e,t)||[];return r?n.flat(1/0):n}function M(e,t,r=!1,n=e,i=!0){var a=t;for(let i of Object.keys(e).sort((e,t)=>t.length-e.length))if(t.startsWith(i)){if(i==t){if(r)return e[i];continue}a=t.substring(i.length+1),n=e[i];break}var o=L(n,a,i);return 0==o.length&&(o=[a.replace(/^.*?\./,"_."),a.replace(/^.*?\./,""),a.replace(/^([^.]+).*?\.\$([\.\[])/,"$1$2"),a.replace(/^.*?\.\$([\.\[])/,"_$1"),a.replace(/^.*?\.\$([\.\[])/,"$$$1"),a.replace(/^[^.]+$/,"_")].filter((e,t,r)=>r.indexOf(e)===t).reduce((e,t)=>e.length>0?e:L(n,t,i),[])),r?o[0]:o}function _(e,t={},r){return r?`<${r}${Object.entries(t).map(([e,t])=>null!=t&&` ${e}="${t}
3"`).filter(Boolean).join("")}>${$(e)}</${r}>`.replace(/^<([a-z0-9][^>]*)><\/[^>]+>$/,"<$1 />"):$(e)}function $(e){var t;if(Array.isArray(e))return e.map($).join(`
4`).trim();if("string"==typeof e)return e;if(null==e)return"";switch(e.type){case"heading":let{level:r,...n}=e.attrs;return _(e.content,n,"h"+r);case"text":return(e.marks||[]).reduce((e,t)=>_(e,t.attrs,{link:"a",bold:"strong",italic:"em",strike:"s",underline:"u"}[t.type]),null==(t=e.text)?void 0:t.replace(/\s+/," "));default:return _(e.content||e.text,e.attrs,{bulletList:"ul",orderedList:"ol",listItem:"li",horizontalRule:"hr",paragraph:"p",codeBlock:"code",blockquote:"blockquote"}[e.type])}}function B(e){let t=new e.ownerDocument.defaultView.MutationObserver(e=>{e.forEach(e=>{let t=e.target,r=t.getAttribute("data-embed-src");r&&H(t,r),e.addedNodes&&e.addedNodes.forEach(e=>{1==e.nodeType&&I(e,!1)})})});return t.observe(e,{attributes:!0,subtree:!0,childList:!0}),t}function I(e,t=!0){let r=e.querySelectorAll("[data-embed-src]");for(var n=0;n<r.length;n++){let e=r[n];H(e,e.getAttribute("data-embed-src"))}if(t)return B(e)}function H(e,t){for(var r=e;r;r=r.parentElement)if(!r.parentElement){let e=r.querySelectorAll("script");for(var n=0;n<e.length;n++)if(e[n].getAttribute("src")==t)return!0;"HTML"==r.tagName&&(r=r.querySelector("head")||r);let i=r.ownerDocument.createElement("script");i.setAttribute("type","module"),i.setAttribute("src",t),r.appendChild(i);break}}N.prototype.vm={Script:D};var U={};h(U,{adjustNumbers:()=>Q,cleanCollectionBit:()=>z,getHumanizedLabel:()=>Y,getLastPathBit:()=>Z,getQualifier:()=>q,normalizeCollectionScope:()=>V,parseLimit:()=>W,parseRange:()=>J});var W=e=>{var t;let r=parseInt(null==(t=null==e?void 0:e.match(/\[0:(\d+)\]/))?void 0:t[1],10);return!isNaN(r)&&r>0?String(r):null},J=e=>{var t;let r=null==(t=null==e?void 0:e.match(/\[([^\]]+)\]/))?void 0:t[1].split(/\s*,\s*/g).filter(Boolean).map(e=>{if(e.match(/^-?\d+$/))return e;let t=e.match(/^(\d+):(\d+)$/);return t&&parseInt(t[1],10)<parseInt(t[2],10)?t[1]+"-"+t[2]:null});return null!=r&&r.every(Boolean)?r.join(","):null},q=e=>{var t;return null==(t=null==e?void 0:e.match(/(\.\*|\[[^\]]*\])$/))?void 0:t[0]};function z(e){return e.replace(/(\.?\[[^\]\[]*\]|\.\*)$/g,"")}function V(e){return z(e)+".*"}function Q(e,t){return null==e?void 0:e.replace(/(.|^)(\d+)/g,(e,r,n)=>r+(":"==r?n:String(parseInt(n)+t)))}function Y(e,t=2){var r=z(e).split(/]\.|\.\*\./g).pop().split(/\./g).slice(-3);return(r=r.filter(e=>isNaN(parseInt(e)))).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).slice(-t).join(" ")}function Z(e){return z(e).split(".").pop()}var G=["January","February","March","April","May","June","July","August","September","October","November","December"];function X(e){let t=e.getAttribute("data-path-scope");for(var r=0,n=e;n=n.previousElementSibling;)n.getAttribute("data-path-scope")==t&&r++;return r}function K(e,t,r,n,i=!0){if(e){var a,o,s,l=e;(null==r?void 0:r.type)=="doc"&&Array.isArray(r.content)&&(r=$(r)),null!=n&&n.processValue&&(r=null==n?void 0:n.processValue(e,t,r));var c=t.replace("data-path-","");if("data-path-src"==t||"data-path-alt"==t){let t=Array.from(e.children).find(e=>"picture"==e.localName)||e;l="img"==e.localName?e:t.querySelector("img, video")}else if("data-path-href"==t)l=e.querySelector("a")||e.closest("a");else if("data-path-hidden"==t)r=!r||null;else if("data-path"==t||"data-embed-html"==t||"html"==t)c="innerHTML";else if("data-embed-src"==t&&i)H(e,r);else if("data-path-attributes"==t){if(!Array.isArray(r)){let t=(null==(a=e.getAttribute("data-attributes-keys"))?void 0:a.split(",").filter(Boolean))||[];if(!Array.isArray(r))for(var u in r){var d=r[u];K(e,u,"object"==typeof d&&d?JSON.stringify(d):d,n,i)}for(var p=0;p<t.length;p++)null!=r&&t[p]in r||K(e,t[p],null,n,i);K(e,"data-attributes-keys",Object.keys(r||{}).join(","),{},i)}if("FEAAS-EXTERNAL"==e.tagName){let t=String(e.getAttribute("data-path-attributes")||"").slice(0,-1).split(".")[0]||"_";K(e,"datasources",JSON.stringify({[t]:r}),{},i)}return}if("boolean"==typeof r&&"hidden"!==c&&(r=r?"":null),l)if(("innerHTML"==c||"src"==c)&&(null==r||""===r)){var h=String(null!=(s=null!=(o=e.getAttribute("data-path-placeholder")||l[c])?o:l.getAttribute(c))?s:"");"innerHTML"==c?l.innerHTML=h:h?l.setAttribute(c,h):l.removeAttribute(c)}else if(null!=r)if("innerHTML"==c){for(var f,m=String(r),g=l;g.parentElement&&g.localName.match(/^(a|var|strong|em|i|b)$/);)g=g.parentElement;g.localName.match(/p|h\d|button|time|li/)&&(m=m.replace(/<(p|h\d|li|ul)[^>]*?>|<\/(p|h\d|li|ul)[^>]*?>/g," ").trim().replace(/\s+/g," ")),String(g.getAttribute("class")).includes("-inline--time")&&"Invalid Date"!==String(new Date(f=m))&&!isNaN(Number(new Date(f)))&&(m=(e=>{if(!e||"function"!=typeof e.getDay)return;let t=e.getFullYear(),r=G[e.getMonth()],n=e.getDate();return`${r} ${n}, ${t}`})(new Date(m))),l.innerHTML!=m&&(l.innerHTML=m)}else l.getAttribute(c)!=r&&l.setAttribute(c,r);else l.removeAttribute(c)}}
4var ee=["data-attributes-keys","data-path-attributes","data-path-scope"];function et(e,t,r,n,i=!0){if(n||(t=(null==(o=null==r?void 0:r.processData)?void 0:o.call(r,e,t))||t),1==e.nodeType){let n=e.getAttribute("data-path-scope");if(n){let i=X(e),a=M(t,n,!1);0==i&&function(e,t){let r=e.getAttribute("data-path-scope");if(null==r)return;var n=X(e);if(0!=n)return;let i=e.parentNode;if(null!=i){0==t?e.setAttribute("hidden","hidden"):null!=e.getAttribute("hidden")&&e.removeAttribute("hidden");for(var a=n+1,o=e,s=e;s=s.nextElementSibling;)s.getAttribute("data-path-scope")==r&&(a++,o=s);for(var l=a;l<t;l++)i.insertBefore(o.cloneNode(!0),o.nextElementSibling);for(var l=Math.max(1,t);l<a;l++)o=o.previousElementSibling,i.removeChild(o.nextElementSibling)}}(e,(null==(s=null==r?void 0:r.shouldRepeat)?void 0:s.call(r,e,a))===!1?1:a.length),t={...t,[V(n)]:a[i]}}let o=Array.prototype.slice.call(e.attributes).sort((e,t)=>ee.indexOf(e.name)-ee.indexOf(t.name));for(var a=0;a<o.length;a++){let{name:n,value:s}=o[a];n.startsWith("data-path")&&"data-path-scope"!=n&&K(e,n,M(t,s,!0,void 0,"FEAAS-EXTERNAL"!=e.tagName),r,i),"data-embed-src"==n&&K(e,n,e.getAttribute(n),r,i)}}for(var o,s,l,c,a=0;c=e.childNodes[a++];)er(c)&&et(c,t,r,!0,i);return n||null==(l=null==r?void 0:r.onRender)||l.call(r,e,t),e}function er(e){return 1==e.nodeType}function en(e,t,r,n,i=!0){let a=(null==(o=null==n?void 0:n.processTemplate)?void 0:o.call(n,e,t,r))||t;if(e.innerHTML=a,e.classList.add("-feaas"),(e.closest(".component.feaas")||e).className.includes("-theme--"))for(var o,s,l=0;s=e.childNodes[l++];)er(s)&&(s.className=s.className.replace(/(\s|^)-theme--[^\s]+\s*/g,"$1"));return et(e,r,n,null,i)}function ei(e,t,r,n=!1,i=!0){var a;let o=(null==(a=null==r?void 0:r.processTemplate)?void 0:a.call(r,null,e,t))||e;if("u"<typeof document||n)return et(es(o)[0],t,r,null,i).outerHTML;{let e=document.createElement("div");return e.innerHTML=o,et(e,t,r,null,i),e.innerHTML}}var ea=class{constructor(e,t=1,r){this.ownerDocument={createElement:e=>new ea(e),createDocumentFragment:()=>new ea(null,11)},this.nodeName=e,this.nodeType=t,this.textContent=r,this.attributes=[],this.childNodes=[]}setAttribute(e,t){let r=this.attributes.find(t=>t.name===e);r?r.value=t:this.attributes.push({name:e,value:t})}getAttribute(e){let t=this.attributes.find(t=>t.name===e);return t?t.value:void 0}insertBefore(e,t){if(e.parentNode=this,null===t)this.childNodes.push(e);else{let r=this.childNodes.indexOf(t);-1!==r&&this.childNodes.splice(r,0,e)}}removeAttribute(e){let t=this.attributes.findIndex(t=>t.name===e);-1!==t&&this.attributes.splice(t,1)}appendChild(e){e.parentNode=this,this.childNodes.push(e)}get tagName(){var e;return null==(e=this.nodeName)?void 0:e.toUpperCase()}get localName(){var e;return null==(e=this.nodeName)?void 0:e.toLowerCase()}get innerHTML(){return el(this.childNodes)}set innerHTML(e){this.childNodes=es(String(null!=e?e:""))}get outerHTML(){return el([this])}get children(){return this.childNodes.filter(e=>1==e.nodeType)}closest(e){let t=this;for(;t;){if(eo(e,t))return t;t=t.parentNode}return null}querySelectorAll(e){let t=e.split(/\s*,\s*/),r=[],n=e=>{for(let n of t)if(eo(n,e)){r.push(e);break}for(let t of e.childNodes)n(t)};for(let e of this.childNodes)n(e);return r}querySelector(e){return this.querySelectorAll(e)[0]}findSibling(e,t){if(!this.parentNode)return null;let r=this.parentNode.childNodes,n=r.indexOf(this);if(-1===n)return null;for(let i=n+e;i>=0&&i<r.length;i+=e){let e=r[i];if(!t||1===e.nodeType)return e}return null}removeChild(e){let t=this.childNodes.indexOf(e);if(-1!==t)return this.childNodes.splice(t,1),e.parentNode=void 0,e}get previousSibling(){return this.findSibling(-1)}get nextSibling(){return this.findSibling(1)}get previousElementSibling(){return this.findSibling(-1,!0)}get nextElementSibling(){return this.findSibling(1,!0)}cloneNode(e=!1){let t=new ea(this.nodeName,this.nodeType);if(t.attributes=JSON.parse(JSON.stringify(this.attributes)),this.textContent&&(t.textContent=this.textContent),e)for(let e of this.childNodes){let r=e.cloneNode(!0);t.appendChild(r)}return t}get parentElement(){var e;return(null==(e=this.parentNode)?void 0:e.nodeType)==1?this.parentNode:null}};function eo(e,t){let r=e.match(/([.#]?[\w-]+|\[([\w-]+)(="([^"]*)")?\])/g);if(!r)return!1;for(let e of r)if(e.startsWith("#")){if(t.getAttribute("id")!==e.slice(1))return!1}else if(e.startsWith(".")){if(!(t.getAttribute("class")||"").split(" ").includes(e.slice(1)))return!1}else if(e.startsWith("[")){let r=e.match(/^\[([\w-]+)(="([^"]*)")?\]$/);if(!r)return!1;{let e=r[1],n=r[3],i=t.getAttribute(e);
4if(void 0===n){if(void 0===i)return!1}else if(i!==n)return!1}}else if(t.nodeName!==e)return!1;return!0}function es(e){var t;let r=[],n=[];for(;e;){let i=e.match(/^<([\w-]+)(\s[^>]*)?>/),a=e.match(/^<\/([\w-]+)>/);if(i){let a=i[1].toLowerCase(),o=(null==(t=(i[2]||"").match(/([\w-]+)(="([^"]*)")?/g))?void 0:t.map(e=>{let[t,r,,n]=e.match(/([\w-]+)(="([^"]*)")?/);return{name:r,value:(n||"").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'")}}))||[],s=new ea(a,1);if(s.attributes=o,n.length>0){let e=n[n.length-1];e.childNodes.push(s),s.parentNode=e}else r.push(s);["img","input","br"].includes(a)||n.push(s),e=e.slice(i[0].length)}else if(a)n.pop(),e=e.slice(a[0].length);else{let t=e.indexOf("<"),i=e.slice(0,-1!==t?t:void 0),a=new ea("#text",3);if(a.textContent=i,n.length>0){let e=n[n.length-1];e.childNodes.push(a),a.parentNode=e}else r.push(a);e=e.slice(i.length)}}return r}function el(e){return e.map(e=>{if(3===e.nodeType)return e.textContent||"";let{nodeName:t,attributes:r}=e,n=r.map(({name:e,value:t})=>` ${e}="${String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}"`).join(""),i=el(e.childNodes);return["img","input","br"].includes(t)?`<${t}${n} />`:`<${t}${n}>${i}</${t}>`}).join("")}function ec(e,t,r){return eu(e,t,r)[0].outerHTML}function eu(e,t,r){var n;return es((null==(n=null==r?void 0:r.processTemplate)?void 0:n.call(r,null,e,t))||e).map(e=>et(e,t,r))}var ed=e=>{if(!e||"string"!=typeof e.url)return!1;for(var t in e)if("body"!=t&&"params"!=t&&"headers"!=t&&"url"!=t&&"method"!==t&&("jsonpath"!=t||"string"!=typeof e[t]))return!1;return!0};function ep(e){let{url:t,headers:r,params:n,method:i,body:a}=eh(e),o,s=r["Content-Type"];"GET"!=i&&"HEAD"!=i&&("application/json"===s&&(o=JSON.stringify(a)),"multipart/form-data"===s&&(o=Object.keys(a).reduce((e,t)=>(e.append(t,a[t]),e),new FormData)),"application/x-www-form-urlencoded"===s&&(o=new URLSearchParams(a)));let l=Object.keys(n).length?`?${new URLSearchParams(n)}`:"";return[`${t}${l}`,{headers:r,body:o,method:i}]}function eh(e){let t={};for(let r in(null==e?void 0:e.headers)||{})e.headers.hasOwnProperty(r)&&(t[r.replace(/^[a-z]|\-[a-z]/g,e=>e.toUpperCase())]=e.headers[r]);return t.Accept||(t.Accept="application/json"),{params:(null==e?void 0:e.params)||{},headers:t,jsonpath:String((null==e?void 0:e.jsonpath)||"$"),method:((null==e?void 0:e.method)||"GET").toUpperCase(),body:(null==e?void 0:e.body)||{},url:String((null==e?void 0:e.url)||"")}}var ef=async(e,t)=>{let r=(0,n.H5)(t,e);if(r instanceof Promise)return r;let i=e;r&&(i=eh(r));try{let[e,t]=ep(i),r=await (await eh.fetchImplementation(e,{...t,method:t.method.toLowerCase()})).json();return i.jsonpath&&"$"!=i.jsonpath?L(r,i.jsonpath):r}catch(e){return{}}};async function em(e){if(!e)return e;if(ed(e))return ef(e);let t=Object.keys(e),r=await Promise.all(t.map(t=>ed(e[t])?ef(e[t],t):null).filter(Boolean));return t.reduce((t,n)=>({...t,[n]:ed(e[n])?r.shift():e[n]}),{})}eh.clean=function(e){let{params:t,method:r,headers:n,body:i,url:a}=eh(e);var o={url:a},s={...n};return"application/json"===n["Content-Type"]&&delete s["Content-Type"],"application/json"===n.Accept&&delete s.Accept,Object.keys(s).length>0&&(o.headers=s),"GET"!==r&&(o.method=r),"GET"===r||"HEAD"===r||0===Object.keys(i).length||(o.body=i),Object.keys(t).length>0&&(o={...o,params:t}),o},eh.toFetchArguments=ep,eh.fetchOne=ef,eh.fetch=em,eh.isDataSettings=ed,eh.hasDataSettings=function(e){return!!e&&(ed(e)||Object.values(e).some(ed))},eh.fetchImplementation=(...e)=>fetch(...e);var eg={};function eb(e,t=e=>{}){var r;let n=()=>{var i,a,o=Object.assign(new Promise((t,r)=>{i=r=>{null==e||e(r),t(r)},a=r}),{resolve:i,reject:a,restart:n,first:r});return r=o,o.catch(t),o};return n()}h(eg,{Component:()=>eX,ComponentProps:()=>eG,Context:()=>ts,ControlledPromise:()=>eb,DEFAULT_CDN_URL:()=>eN,DOM:()=>f,DataPath:()=>U,DataScope:()=>m,DataSettings:()=>eh,Element:()=>ev,FEAASComponent:()=>eX,FEAASComponentsProps:()=>eG,FEAASContext:()=>ts,FEAASContextProps:()=>to,FEAASEditor:()=>tn,FEAASEditorProps:()=>tr,FEAASElement:()=>ev,FEAASLoader:()=>e0,FEAASLoaderProps:()=>eK,FEAASPicker:()=>ta,FEAASPickerProps:()=>ti,FEAASStylesheet:()=>e2,FEAASStylesheetProps:()=>e1,InvalidResponse:()=>ej,JSONPath:()=>N,Loader:()=>e0,MyComponent:()=>ew,Picker:()=>ta,Stylesheet:()=>e2,Thumbnail:()=>e4,WebComponent:()=>ey,adjustNumbers:()=>Q,autoloadScripts:()=>I,cleanCollectionBit:()=>z,clearFetchCache:()=>eS,createStylesheet:()=>eV,customizeDataSettings:()=>n.H5,fetchAndRevalidate:()=>eO,fetchAndRevalidateComponent:()=>e$,fetchAndRevalidateStylesheet:()=>eI,fetchBypassingCache:()=>eF,fetchCache:()=>eC,fetchComponent:()=>eB,fetchData:()=>em,fetchToValidateCache:()=>eR,fetchWithCacheAwareness:()=>ex,findStylesheet:()=>ez,getComponent:()=>n.QQ,getComponentSource:()=>eD,getComponentURL:()=>eM,getFetchCache:()=>ek,getFramePosition:()=>tt,getHumanizedLabel:()=>Y,getLastPathBit:()=>Z,getQualifier:()=>q,getStylesheetSource:()=>eT,getStylesheetURL:()=>e_,loadScript:()=>H,loadStylesheet:()=>eJ,loadStylesheetAllowStale:()=>eq,normalizeCollectionScope:()=>V,observeDOMElement:()=>B,parseComponentSource:()=>eP,parseLimit:()=>W,parseRange:()=>J,parseStylesheetSource:()=>eL,queryObject:()=>L,queryObjectRaw:()=>T,queryScopes:()=>M,registerComponent:()=>n.Nj,registerDatasource:()=>n.Ll,renderComponent:()=>eY,renderComponentElement:()=>eQ,renderComponentPromise:()=>eZ,renderDOMContent:()=>en,renderDOMElement:()=>et,renderHTMLContent:()=>ei,renderStylesheet:()=>eH,renderStylesheetPromise:()=>eU,serializeCH1RichText:()=>$,setDOMAttribute:()=>K});var ey="u"<typeof HTMLElement?"u">typeof windowJSDOM?windowJSDOM.HTMLElement:class{}:HTMLElement,ev=class extends ey{getProps(e){return{}}constructor(){super(),this.defaultProps={},this.connected=!1,this.refs={},this.descendants=[],this.whenLoaded=eb(e=>{this.payload=e}),this.whenRendered=eb(()=>this.initialized=!0,()=>this.cancelRender()),this.addEventListener("feaasMount",this),this.addEventListener("feaasUnmount",this)}getRoot(){return this}attributeChangedCallback(e,t,r){this.set()}connectedCallback(){this.mount()}disconnectedCallback(){this.unmount()}mount(){try{let e=this.getParent();if(e&&!e.connected||this.connected)return;this.connected=!0,this.log("FEAAS: Mount",this.tagName,this),this.dispatchEventIndirectly(new Event("feaasMount",{bubbles:!0,composed:!0})),this.getElements().map(e=>{var t;return null==(t=e.mount)?void 0:t.call(e)}),this.set()}catch(e){this.onError(e)}}dispatchEventIndirectly(e){this.dispatchEvent(e);let t=this.getParent();t&&!t.contains(this)&&(Object.defineProperty(e,"target",{value:this,writable:!1}),Object.defineProperty(e,"composedPath",{value:()=>[this],writable:!1}),t.handleEvent(e))}isJSONAttribute(e){return!1}log(...e){let t=e[0];("u">typeof location&&null!=location&&location.hostname.startsWith("components-")||localStorage["Sitecore.Components.Debug"])&&console.log(t+" "+e.slice(1).map(e=>e&&"object"==typeof e?"%O":"%s").join(" "),...e.slice(1))}unmount(){this.connected&&(this.log("FEAAS: Unmount",this),this.dispatchEventIndirectly(new Event("feaasUnmount",{bubbles:!0,composed:!0})),this.connected&&this.initialized&&this.render&&this.update(),this.cancelRender(),this.connected=!1,this.initialized&&this.render&&this.update())}getParent(e=!0){for(var t=this;t=t.parentElement||(t.parentNode instanceof ShadowRoot?t.parentNode.host:null);)if(!e||t.tagName.startsWith("FEAAS-"))return t;if("FEAAS-CONTEXT"!=this.tagName)return document.querySelector("feaas-context")}getElements(e=this.getRoot(),t=!0){return Array.from(e.querySelectorAll("*")).map(e=>[!t||e.tagName.startsWith("FEAAS-")?e:null,e.shadowRoot?this.getElements(e.shadowRoot,t):null]).flat().filter(
4Boolean)}handleEvent(e){let t=e.composedPath()[0];switch(e.type){case"feaasMount":t!=this&&this.nestedCallback(t);break;case"feaasUnmount":t!=this&&this.unnestedCallback(t)}}unnestedCallback(e){let t=this.descendants.indexOf(e);-1!=t&&(this.log("FEAAS: Unnest",this,e),this.descendants.splice(t,1),this.refs[e.getComponentName()]=null,e.refs.parent==this&&(e.refs.parent=null),e.refs.top==this&&(e.refs.top=e.refs.parent))}nestedCallback(e){var t,r;if(-1==this.descendants.indexOf(e)&&(this.descendants.push(e),this.log("FEAAS: Nest",this,e),this.refs[e.getComponentName()]=e,e.refs.top=this,(t=e.refs).parent||(t.parent=this),e.render))for(var n=e.refs.parent;n;n=n.refs.parent)n.render&&((r=e.refs).parentReact||(r.parentReact=n),e.refs.topReact=n)}getComponentName(){return this.tagName.replace("FEAAS-","").toLowerCase()}isReadyToLoad(){return void 0===this.payload&&null==this.getAttribute("hidden")}onError(e,t="uncaught",r=!1){let n=new CustomEvent("feaasError",{bubbles:!0,composed:!0,detail:e});if(this.dispatchEventIndirectly(n),this.whenLoaded.reject(e),!n.defaultPrevented&&!r){this.whenRendered.reject(e);try{this.unmount()}catch(e){}return!0}return!1}shouldUpdateOnLoad(){return!0}async advance(){try{if(void 0===this.payload){if(!this.isReadyToLoad())return;this.payload=null,this.dispatchEventIndirectly(new Event("feaasLoad",{bubbles:!0,composed:!0}));let e=await this.load().catch(e=>{throw this.payload=void 0,e});if(this.whenLoaded.resolve(e),this.onLoad)return}else if(null==this.payload)return;this.flush(),this.whenRendered.resolve(this)}catch(e){this.onError(e)}}flush(){var e,t;if(!this.connected)return;let r=null==(t=null==(e=this.payload)?void 0:e.ReactDOM)?void 0:t.flushSync;r?r(()=>this.update()):this.update()}load(){return Promise.resolve(null)}update(){var e,t,r;if(null==this.payload||!this.render)return;let{React:n,ReactDOM:i,ReactDOMClient:a}=this.payload||{};if(!n)throw Error(`${this.tagName}: React is not present in payload`);if(!i)throw Error(`${this.tagName}: ReactDOM is not present in payload`);"false"==this.getAttribute("hydrate")&&this.firstElementChild||(this.refs.topReact||this.forceUpdateReact?this.forceUpdateReact&&this.connected?null==(e=this.forceUpdateReact)||e.call(this):null==(r=null==(t=this.refs.topReact)?void 0:t.forceUpdateReact)||r.call(t):(this.reactRoot||(this.reactRoot=a.createRoot(this.getReactRootElement())),this.reactRoot.render(this.getReactElement())))}invokeReactRendering(){let{React:e,ReactDOM:t}=this.payload||{};if(!this.connected)return null;let r=this.descendants.filter(e=>e.refs.parentReact==this&&e.payload&&e.connected).map((e,t)=>this.getReactElement(e));return this.render({...this.props,children:r},this.payload)}getReactErrorBoundary(e=this,t=e.tagName){if(this.reactErrorBoundary)return this.reactErrorBoundary;let{React:r,ReactDOM:n}=e.payload||{};return this.reactErrorBoundary||(this.reactErrorBoundary=class extends r.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(t,r){console.error(`FEAAS: ${e.tagName} Error:`,t,r),e.onError(t,"react")}render(){if(!this.state.error)return this.props.children}})}getReactElement(e=this,t){let{React:r,ReactDOM:n}=e.payload||{},i=this.getReactErrorBoundary(),a=this.getReactWrapper(e);return r.createElement(i,{key:e.tagName+"-"+e.getUID(),slot:e.getAttribute("slot")},r.createElement(a,null))}getReactWrapper(e=this,t=e.tagName){if(e.reactWrapper)return e.reactWrapper;let{React:r,ReactDOM:n}=e.payload||{};return e.reactWrapper=t=>{if(!e.render)return e.update();{let[t,i]=r.useReducer(e=>e+1,0);return e.forceUpdateReact=i,n.createPortal(r.createElement(r.Fragment,null,e.invokeReactRendering()),e.getReactRootElement())}},Object.assign(e.reactWrapper,{key:e.tagName+"-"+e.getUID(),displayName:t}),e.reactWrapper}getUID(){return this.uid||(this.uid=String(Math.random()))}getShadowRoot(){return this.shadowRoot||this.attachShadow({mode:"open"}),this.shadowRoot}getReactRootElement(){return this.useShadowRoot?this.getShadowRoot():this.getRoot()}set(e){try{for(var t in this.scheduleRender(),this.overrides={...this.overrides,...e},this.props={...this.getProps(),...this.overrides},this.props){let e=this.isJSONAttribute(t),n=this.props[t],i=e?JSON.stringify(n):String(n),a=this.defaultProps[t],o=e?JSON.stringify(a):String(a),s=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=this.getAttribute(s);try{var r=e?JSON.stringify(JSON.parse(l)):l}catch(e){var r=null}null==n||i===o?this.removeAttribute(s):("string"==typeof n||"number"==typeof n||"boolean"==typeof n||e)&&r!=i&&this.setAttribute(s,i)}}catch(e){this.whenRendered.reject(e),this.onError(e,"set")}return this}import(e){return import(e)}scheduleRender(){null==this.nextRender&&(this.whenRendered=this.whenRendered.restart()),this.cancelRender(),this.nextRender=requestAnimationFrame(()=>{this.nextRender=null,this.advance().catch(e=>{})})}cancelRender(){cancelAnimationFrame(this.nextRender)}formatURL(e,t){return"string"==typeof e&&e.match(/^\/[^\/]/)?t+e:e}getContextAttribute(e,t=this){for(var r=this;r=r.parentElement||(r.parentNode instanceof ShadowRoot?r.parentNode.host:null);)if(null!=r.getAttribute(e))return r.getAttribute(e);return this.getAttribute(e)}static register(e,t){null==t&&(t="u">typeof window?window:null),t&&!t.customElements.get(e)&&t.customElements.define(e,this)}},eA=class extends ev{load(){return Promise.all([import("https://cdn.skypack.dev/react"),import("https://cdn.skypack.dev/react-dom"),import("https://cdn.skypack.dev/react-dom/client")]).then(([e,t,r])=>({React:e,ReactDOM:t,ReactDOMClient:r}))}render({},{React:e}){return e.createElement(e.Fragment,null)}},ew=class extends eA{constructor(){super(...arguments),this.useShadowRoot=!0}getProps(){return{counter:parseFloat(this.getAttribute("counter"))}}render({counter:e},{React:t}){let[r,n]=t.useState(0);return t.useEffect(()=>{n(e=>e+1)},[e]),t.createElement(t.Fragment,null,t.createElement("p",null,"Rendering attribute: ",e),t.createElement("p",null,"Triggered updates: ",r))}};ew.observedAttributes=["counter"];var eE=["initial","check","updated"],eC={};function eS(){eC={}}async function eO(e,t,r,n,i=eC){return ex({url:e,options:t,validator:r,callback:n,cache:i}
4).then(eR).then(e=>e.response)}async function ex({url:e,options:t,validator:r,callback:n,cache:i},a="initial"){let o=new Date;if(null!=i){var s=ek(e);if(eE.indexOf(s.phase)>=eE.indexOf(a))var l=s[a];else s.phase=a}let c=await (l||fetch(e,t));if(!l&&s&&(c.ok?s[a].resolve(c):s[a].reject(Error("Fetch failed"))),!c.ok)throw Error("Fetch failed");let u=new Date(c.headers.get("date"))<o||l&&"initial"==a&&("updated"==s.phase||"check"==s.phase);if((null==r?void 0:r(c,u))===!1)throw new ej("Response is not valid");return await (null==n?void 0:n(c,a,u)),{url:e,options:t,isCached:u,response:c,validator:r,callback:n,cache:i}}function ek(e,t=!1){let r=String(e).replace("?head","");var n=eC[r];return n||t||(n=eC[r]={phase:null,initial:eb(),check:eb(),updated:eb(),final:eb()}),n}var ej=class extends Error{};async function eR(e){let{url:t,isCached:r,options:n,validator:i,response:a,cache:o}=e;if(r){let{response:r}=await ex({url:t+(t.toString().includes("?")?"&":"?")+"head",options:{...n,method:"HEAD",cache:"no-cache"},validator:i,cache:o},"check");if(r.headers.get("last-modified")!=a.headers.get("last-modified"))return eF(e)}return e}async function eF(e){return ex({...e,options:{...e.options,cache:"reload"}},"updated")}var eN="https://feaas.blob.core.windows.net";function eP(e){let t=null==e?void 0:e.match(/^(?:(.*?)\/components)?\/?([^\/]+)\/([^\/]+)(?:\/([^\/]+)(?:\/(published|staged|saved|\d+)(?:\.html?)?)?)?$/);if(t){var[,r,n,i,a,o]=t;return{cdn:r,library:n,component:i,version:a,revision:o}}}function eD(e){if(!e||!e.library||!e.component)throw Error("Component requires `library` and `component` properties");return`${e.cdn&&e.cdn!=eN?`${e.cdn}/components`:""}/${e.library}/${e.component}/${!e.version||"responsive"==e.version&&(!e.revision||"published"==e.revision)?"":e.version}/${!e.revision||"published"==e.revision?"":e.revision}`.replace(/(^\/|\/$|\/\/)(?!.+\/components\/)/g,"")}function eT(e){return`${e.cdn&&e.cdn!=eN?`${e.cdn}/styles/`:""}${e.library}/${!e.revision||"published"==e.revision?"":e.revision}`.replace(/\/$|\/\/(?!.+\/styles\/)/g,"")}function eL(e){let t=null==e?void 0:e.match(/^(?:(.*?)\/styles\/)?([^\/]+)(?:\/(published|staged|saved|\d+)(?:.css)?)?$/);if(t){var[,r,n,i]=t;return{cdn:r,library:n,revision:i}}{let t=eP(e);if(t){var{cdn:r,library:n,revision:i}=t;return null!=i&&i.match(/\d/)&&(i=void 0),{cdn:r,library:n,revision:i}}}}function eM(e){return"string"==typeof e&&(e={src:e}),e="src"in e&&e.src?{...eP(e.src)}:{...e},`${e.cdn||e.hostname||eN}/components/${e.library}/${e.component}/${e.version||"responsive"}/${e.revision||"published"}.html`}function e_(e){if("string"==typeof e&&(e={src:e}),"src"in e){if(String(e.src).includes("v1/files/components/styles"))return e.src;e={...eL(e.src)}}else e={...e};return`${e.cdn||e.hostname||eN}/styles/${e.library}/${"staged"==e.revision?"staged":"saved"==e.revision?"saved":"published"}.css`}async function e$(e,t,r=!1){let n=e=>null==e.headers.get("x-ms-meta-versionDeletedAt"),i=e=>e.clone().text().then(t),a=await Promise.all([e.instance&&ex({options:{headers:{Accept:"text/html"},credentials:"omit"},url:eM({...e,version:e.instance}),validator:n}).catch(e=>e),ex({url:eM(e),validator:n}).catch(e=>e)]),o=a.find(e=>e&&"isCached"in e&&e);if(!o||o instanceof Error)throw a.find(e=>e&&e instanceof Error)||Error("Can not fetch component");return a[0]==o&&console.log("Using fork!",a),await i(o.response),r?o:eR({...o,callback:i}).catch(e=>{if(a[0]==o&&(eF({...o,callback:null,validator:null}),console.log("Fork was deleted"),!(a[1]instanceof Error)))return i(a[1].response),eR({...a[1],callback:i});throw e})}async function eB(e){var t;"string"==typeof e&&(e={src:e});let{response:r}=await e$(e,e=>{t=e},!0);return{...e,template:t,lastModified:r.headers.get("last-modified")}}async function eI(e,t){return eO(e_(e),{headers:{Accept:"text/css"},credentials:"omit"},e=>null==e.headers.get("x-ms-meta-deletedAt"),(e,r)=>e.clone().text().then(e=>t(e,r)))}function eH(e,t){return eU(e,t||(t=document.createElement("style"))),t}function eU(e,t){return t||(t=document.createElement("style")),eI(e,(e,r)=>{t.textContent=e}).then(()=>t)}var eW=new WeakSet;function eJ(e,t){var r,n=ez(e);if(n){if(eW.has(n))return Promise.resolve(n);e=n.getAttribute("data-href")||n.getAttribute("href")}return eI(e,(i,a)=>{"initial"==a&&n||(r||(r=n&&"LINK"!=n.tagName?n:eV(e)),r.textContent=i),null==t||t(i,a)}).then(()=>r||n)}function eq(e){return new Promise((t,r)=>{eJ(e,t).catch(r)})}function ez(e){let t=e_(e),{library:r}=eL(t),n=`/files/components/styles/${r}.css`;return document.querySelector(`style[data-href="${t}"], 
5    link[rel="stylesheet"][href="${t}"], 
6    style[data-href*="${n}"], 
7    link[rel="stylesheet"][href*="${n}"]`)}function eV(e){let t=e_(e),r=document.createElement("style");return r.setAttribute("data-href",t),document.head.appendChild(r),r}function eQ(e,t){let r=document.createElement("div");r.innerHTML=e;let n=document.createDocumentFragment();for(;r.firstChild;)n.appendChild(r.firstChild);return et(n,t),r}function eY(e,t,r=!0){return eZ(e,t||(t=document.createElement("div")),r),t}async function eZ(e,t,r=!0){return t||(t=document.createElement("div")),t.childNodes.length?et(t,e.data,e,
7null,r):"template"in e?en(t,e.template,e.data,e,r):e$(e,n=>en(t,n,e.data,e,r)).then(()=>t)}function eG(e){var t,r,n,i,a,o,s,l;let c,u=e.getAttribute("src");if(u){let e=eP(u);if(!e)throw Error(`Could not parse FEAAS Component source: ${u}`);var{cdn:d,library:p,component:h,version:f,revision:m}=e}let g=e.getAttribute("data");if(null!=g&&""!=g)try{c="string"==typeof g?JSON.parse(g):{}}catch(e){console.error(e)}let b=e.getAttribute("fetch");return{data:c||{},cdn:null!=(r=null!=(t=e.getContextAttribute("cdn"))?t:d)?r:eN,library:null!=(n=e.getAttribute("library"))?n:p,component:null!=(i=e.getAttribute("component"))?i:h,version:null!=(o=null!=(a=e.getAttribute("version"))?a:f)?o:"responsive",revision:null!=(l=null!=(s=e.getAttribute("revision"))?s:m)?l:"published",hostname:e.getAttribute("hostname"),template:e.getAttribute("template"),instance:e.getAttribute("instance"),editable:null!=e.getAttribute("editable"),suspended:null!=e.getAttribute("suspended"),lastModified:e.getAttribute("last-modified"),fetch:"false"==b||null==b&&e.hasAttribute("fetch")?[]:null==b||"true"==b?["data","template","stylesheet"]:b.split(/(\s+|\-)+/g).filter(Boolean)}}var eX=class extends ev{setData(e){this.set({data:e})}getProps(){return eG(this)}isJSONAttribute(e){return"data"==e}attributeChangedCallback(e,t,r){t!==r&&(("library"==e||"component"==e||"revision"==e||"version"==e)&&(this.payload=void 0,this.alreadyRendered&&this.connected&&(this.needsRefresh=!0,this.needsToFetchTemplate=!0)),super.attributeChangedCallback(e,t,r),"data"==e&&(this.needsRefresh=!0,(this.props.fetch.includes("data")||this.alreadyRendered||!eh.hasDataSettings(this.props.data))&&this.fetchData()))}async fetchData(){this.readyData=void 0,this.whenDataReady=this.whenDataReady.restart();let e=await eh.fetch(this.props.data),t=this.alreadyRendered;await this.whenDataReady.resolve(e),t&&this.advance()}getEditor(){var e;return null==(e=document.querySelector("feaas-context"))?void 0:e.refs.editor}constructor(){super(),this.readyData={},this.whenDataReady=eb(e=>this.readyData=e,e=>this.onError(e)),this.defaultProps={cdn:eN,revision:"published",version:"responsive",editable:!1,suspended:!1,data:{}},this.onLoad=e=>{this.payload=e,this.advance()},this.getAttribute("data"),this.getAttribute("data")||this.whenDataReady.resolve({}),this.addEventListener("click",()=>{this.props.editable&&this.edit()})}edit(){let e=this.getEditor();if(null!=e&&e.setTarget(this))return e.open(),!0}getOriginal(){let e=this.getAttribute("data-path-scope");if(e){for(var t=this;(t=t.previousElementSibling)&&t.getAttribute("data-path-scope")==e;)var r=t;return r}}isReadyToLoad(){return super.isReadyToLoad()&&null!=this.props.library&&null!=this.props.component&&null!=this.props.version}async load(){var e;if(this.getOriginal())return;let t=()=>{null!=this.payload&&(r||this.readyData&&this.onLoad(this.payload))};if(this.props.fetch.includes("stylesheet"))var r=eq({...this.props}).then(()=>{r=null,t()});if(this.props.fetch.includes("template")||this.needsToFetchTemplate){this.needsToFetchTemplate=!1;var n=e$(this.props,e=>{this.payload=e,this.needsRefresh=!0,t()})}else this.payload=null!=(e=this.props.template)?e:this.innerHTML;return Promise.all([r,this.whenDataReady.then(()=>t()),n]).then(()=>this.payload)}flush(){this.readyData&&super.flush()}update(){if(this.alreadyRendered=!0,!(!this.props.fetch.includes("data")&&!this.props.fetch.includes("template")&&this.firstElementChild&&!this.needsRefresh))if(Array.from(this.children).filter(e=>"BR"!=e.tagName).length>0&&!this.needsRefresh)et(this,this.readyData);else{if(this.needsRefresh=!1,this.getOriginal())return;en(this,this.payload,this.readyData)}}};function eK(e){return{opacity:null!=e&&e.getAttribute("opacity")?parseFloat(null==e?void 0:e.getAttribute("opacity")):1,hidden:(null==e?void 0:e.getAttribute("hidden"))!=null}}eX.observedAttributes=["library","component","version","revision","hostname","cdn","template","data","instance","editable","with-stylesheet","fetch"],eX.register("feaas-component");var e0=class extends ev{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return eK(this)}attributeChangedCallback(e,t,r){if(t!==r)return"hidden"==e&&(this.style.setProperty("display","block","important"),this.style.setProperty("transition","opacity 0.3s","important"),r?(this.style.setProperty("opacity","0","important"),this.style.pointerEvents="none"):(this.style.setProperty("opacity","1","important"),this.style.pointerEvents="all")),super.attributeChangedCallback(e,t,r)}
7connectedCallback(){this.payload=null,super.connectedCallback(),this.attributeChangedCallback("hidden",this.getAttribute("hidden"),this.getAttribute("hidden")),this.stylesheet=document.createElement("style"),this.stylesheet.textContent=`
8  #loader {
9    position: absolute;
10    top: 0;
11    left: 0;
12    right: 0;
13    bottom: 0;
14    display: flex;
15    align-items: center;
16    justify-content: center;
17    background: #f6f6ff;
18    z-index: 1000;
19  }
20  @keyframes loader-circular-track {
21    0% {
22      stroke-dasharray: 1, 400;
23      stroke-dashoffset: 0;
24    }
25    50% {
26      stroke-dasharray: 400, 400;
27      stroke-dashoffset: -100;
28    }
29    100% {
30      stroke-dasharray: 400, 400;
31      stroke-dashoffset: -260;
32    }
33  }
34  
35  @keyframes loader-circular-spinner {
36    0% {
37      transform: rotate(0deg);
38    }
39  
40    100% {
41      transform: rotate(360deg);
42    }
43  }
44  #loader .spinner {
45    width: 48px;
46    height: 48px;
47  }
48  `,this.loader=document.createElement("div"),this.loader.id="loader",this.loader.innerHTML=`
49  <div class="spinner">
50    <svg
51      viewBox="0 0 100 100"
52      style="
53        animation: 2s linear 0s infinite normal none running loader-circular-spinner;
54        display: block;
55        width: 48px;
56        height: 48px;
57      "
58    >
59      <circle fill="transparent" cx="50" cy="50" r="42" stroke="rgba(0,0,0,0.1)" stroke-width="10px"></circle>
60      <circle
61        fill="transparent"
62        stroke="#5548D9"
63        cx="50"
64        cy="50"
65        r="42"
66        stroke-width="10px"
67        stroke-linecap="round"
68        style="animation: 1.5s linear 0s infinite normal none running loader-circular-track"
69      ></circle>
70    </svg>
71  </div>`,this.getRoot().appendChild(this.stylesheet),this.getRoot().appendChild(this.loader)}update(){this.loader.style.opacity=String(this.props.opacity)}};function e1(e){var t,r,n,i;let a=e.getAttribute("src");if(a)var{cdn:o,library:s,revision:l}=eL(a);return{library:null==e?void 0:e.getContextAttribute("library"),revision:null!=(r=null!=(t=null==e?void 0:e.getAttribute("revision"))?t:l)?r:"published",cdn:null!=(i=null!=(n=null==e?void 0:e.getContextAttribute("cdn"))?n:null==e?void 0:e.getContextAttribute("hostname"))?i:eN}}e0.observedAttributes=["hidden","opacity"],e0.register("feaas-loader");var e2=class extends ev{constructor(){super(...arguments),this.onLoad=e=>{this.payload=e,this.advance()}}getProps(){return e1(this)}isReadyToLoad(){return null!=this.props.library&&null!=this.props.revision&&null!=this.props.cdn}load(){return eJ(this.props,this.onLoad)}};e2.register("feaas-stylesheet");var e4={};h(e4,{convertBase64toBlob:()=>e8,generate:()=>e9,get:()=>e6,getVersionForThumbnail:()=>e5,load:()=>e7,responseToImage:()=>e3,upload:()=>te});var e8=e=>fetch(e).then(e=>e.blob()),e3=e=>e.blob().then(e=>new Promise((t,r)=>{let n=new Image;n.onerror=r,n.onload=()=>{t(n)},n.src=URL.createObjectURL(e)}));async function e5(e){return e.versions.length||await e.versions.fetch(),e.getVersionForWidth(800)}async function e6(e,t,r){try{if(!e.isNew)return await e7(e,t,r)}catch(r){e.sdk.log(`FEAAS: Thumbnail ${e.id}, version: ${(null==t?void 0:t.id)||"responsive"}, status: generating ${status}, reason: ${r}`)}let n=await e9(e,t);return null==r||r(n,!1),n&&!e.isNew&&e8(n.src).then(r=>te(e,t,r)),n}async function e7(e,t,r){var n;let i=t?t.getThumbnailURL():e.getThumbnailURL(),a=e.library.stylesheet,o=new Date(Math.max(Number(e.modifiedAt),Number(a.modifiedAt)));return e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, loading`),await eO(i,{},(e,t)=>{let i=2e3>Math.abs(Number(new Date(e.headers.get("x-ms-meta-componentRenderedAt")))-Number(o));return t&&!i&&e3(e).then(e=>{n=e,r(e,t)}),i},(i,a,o)=>{e.sdk.log(`FEAAS: Thumbnail ${e.id}/${(null==t?void 0:t.id)||"responsive"}, status: ${a}`),e3(i).then(e=>{n=e,r(e,o)})},null),n}async function e9(e,t,r){var n,i,a,o,s,l;let c,u=t||(e.isNew?null:await e5(e));if(!u||u.isViewEmpty())return null;let d=r||e.library.stylesheets.first,{datasources:p}=e.sdk;return await (n=u.classList,i=d.getBreakpointForWidth(800,u.getBreakpoints()),a=u.view,o=p.reduce((e,t)=>
71Object.assign(e,{[t.id]:t.sample}),{}),s=d.css,l=e.sdk,(c=document.createElement("iframe")).style.position="absolute",c.style.top="-2000px",c.style.left="-2000px",c.style.width=i.props.minWidth+"px",c.style.height="720px",c.style.zIndex="100011",document.body.appendChild(c),new Promise((e,t)=>{let r=document.createElement("script");r.onerror=t,r.src=l.frontend+"/assets/html2canvas.js",r.onload=()=>{var r;((null==(r=c.contentWindow.document.fonts)?void 0:r.ready)||Promise.resolve()).then(function(){return c.contentWindow.html2canvas(p,{scale:Math.max(1.1,1e3/Math.min(1401,Math.max(320,i.props.minWidth))),width:Math.min(1401,Math.max(320,i.props.minWidth)),height:Math.max(1,Math.min(2e3,p.offsetHeight)),windowWidth:i.props.minWidth||i.props.maxWidth+"px",windowHeight:1e3,proxy:l.backend+"/proxy/media",backgroundColor:"#ffffff"}).then(r=>{let n=r.toDataURL("image/jpeg",.6);c.parentElement.removeChild(c);let i=new Image;i.onload=()=>{e(i)},i.onerror=t,i.src=n})})},c.contentWindow.document.head.appendChild(r);let u=c.contentWindow.document.createElement("style");u.textContent=`
72      ${s}
73      body, html { padding: 0; margin: 0; overflow: hidden }
74    `;let d=c.contentWindow.document.createElement("style");d.textContent=`
75      body, html { padding: 0; margin: 0; overflow: hidden }
76    `,c.contentWindow.document.head.appendChild(u),c.contentWindow.document.head.appendChild(d);let p=eY({template:a,data:o},null,!1);p.classList.add(...n,"-feaas--preview","-emulate--"+i.details.slug),c.contentWindow.document.body.appendChild(p)}))}async function te(e,t,r){let n=t?t.getThumbnailURL():e.getThumbnailURL(),i=new Date(Math.max(Number(e.modifiedAt),Number(e.library.stylesheet.modifiedAt)));try{await e.sdk.uploadBlob("thumbnails",n.split(/\/thumbnails\//)[1],r,{headers:{"x-ms-blob-content-type":"image/jpg","x-ms-blob-cache-control":"public,max-age=31536000,immutable","x-ms-meta-versionId":t?t.id:null,"x-ms-meta-versionRevision":t?t.revision.toString():null,"x-ms-meta-componentId":e.id,"x-ms-meta-componentRenderedAt":i.toUTCString(),"x-ms-meta-componentModifiedAt":e.modifiedAt.toUTCString(),"x-ms-meta-componentCreatedAt":e.createdAt.toUTCString(),"x-ms-meta-modifiedAt":e.modifiedAt.toUTCString()}}),fetch(n,{cache:"no-cache"}).then(()=>{e.sdk.log("FEAAS: Thumbnail uploaded",n)})}catch(t){e.sdk.log("FEAAS: Thumbnail failed to upload",n,t)}return n}function tt(e){let t=[];if(e){let r=e.ownerDocument.defaultView,n,i;for(;r!==window.top;){n=r.parent;for(let e=0;e<n.frames.length;e++)if(n.frames[e]===r){for(let e of n.document.getElementsByTagName("iframe"))if(e.contentWindow===r){i=e.getBoundingClientRect();let r=e.contentWindow.getComputedStyle(e);t.push({left:i.left+parseInt(r.borderLeftWidth),top:i.top+parseInt(r.borderTopWidth)})}r=n;break}}}return t.reduce((e,t)=>({left:e.left+t.left,top:e.top+t.top}),{left:0,top:0})}function tr(e){var t;return{context:HTMLElement,frontend:null==e?void 0:e.getContextAttribute("frontend"),src:null!=(t=null==e?void 0:e.getAttribute("src"))?t:"/editor.js",library:null==e?void 0:e.getAttribute("library"),component:null==e?void 0:e.getAttribute("component"),version:null==e?void 0:e.getAttribute("version"),instance:null==e?void 0:e.getAttribute("instance"),forked:null==e?void 0:e.getAttribute("forked"),revision:(null==e?void 0:e.getAttribute("revision"))||"saved",hidden:(null==e?void 0:e.getAttribute("hidden"))!=null,for:null==e?void 0:e.getAttribute("for"),state:(null==e?void 0:e.getAttribute("state"))||"idle",changed:(null==e?void 0:e.getAttribute("changed"))!=null}}"u">typeof window&&(window.FEAASReactElement=eA,null!=window.FEAASLoading||(window.FEAASLoading=Promise.resolve()));var tn=class extends ev{constructor(){super(...arguments),this.framePoint={top:0,left:0},this.wrapperRect={top:0,left:0,width:0,height:0},this.bodyRect={top:0,left:0,width:0,height:0},this.defaultProps={hidden:!1},this.setTarget=(e,t={component:e.getAttribute("component"),version:e.getAttribute("version"),revision:e.getAttribute("revision"),instance:e.getAttribute("instance")})=>{if(!this.closing&&(!this.target||null==e))return this.set(t),this.target=e,!0},this.onChromeMeasureElement=(e,t=e.getBoundingClientRect())=>e.ownerDocument==document?{left:t.left-this.bodyRect.left,top:t.top-this.bodyRect.top,width:t.width,height:t.height}:{left:t.left+this.framePoint.left-this.bodyRect.left,top:t.top+this.framePoint.top-this.bodyRect.top,width:t.width,height:t.height},this.onBeforeMeasure=e=>{e.memoized.focusable&&(this.framePoint=tt(e.memoized.focusable)),this.chrome&&(this.wrapperRect=this.chrome.positionable.getBoundingClientRect(),this.bodyRect=this.chrome.positionable.ownerDocument.body.parentElement.getBoundingClientRect())},this.onMeasure=()=>{}
76,this.onPosition=({focusable:e,root:t})=>{!this.chrome||this.props.hidden||(e?(this.chrome.wrapper.style.width=e.width+32+"px",this.chrome.wrapper.style.height=e.height+16+64+"px",this.chrome.wrapper.style.left=e.left-16+"px",this.chrome.wrapper.style.top=e.top-64+"px",this.chrome.wrapper.style.opacity="1",this.chrome.absolute=this.querySelector(".ui.overlays"),this.chrome.absolute&&(this.chrome.absolute.style.left=t.left+"px",this.chrome.absolute.style.top=t.top+"px")):(this.chrome.wrapper.style.opacity="0",this.chrome.wrapper.style.left="-1000px",this.chrome.wrapper.style.top="-1000px"))},this.onWindowMessage=e=>{var t;switch(null==(t=e.data)?void 0:t.type){case"feaasEdit":let r=this.getPlaceholder();this.setTarget(r.editable,e.data)&&(this.loader=r.loader,document.body.appendChild(r.clipper),this.editedUID=e.data.id,this.setPlaceholder(),this.open());break;case"feaasMeasurements":this.measurements=e.data.measurements,this.props.hidden||this.setPlaceholder()}},this.onContentChange=()=>{this.setAttribute("changed","changed"),requestAnimationFrame(()=>{this.setIframeComponentContent()})},this.onClose=()=>{var e;this.setAttribute("hidden","hidden"),this.placeholder&&(this.placeholder.positionable.style.opacity="0",this.placeholder.positionable.style.pointerEvents="none"),this.chrome&&(this.chrome.wrapper.style.opacity="0"),null!=(e=this.target)&&e.parentNode&&(this.target.outerHTML=this.target.outerHTML),this.setTarget(null,{component:null,version:null,instance:null,revision:null}),this.setEditorContext({isFocused:!1})},this.onVersionStateChange=(e,t)=>
76{this.versionContext=e,this.setVersionContext=t},this.onEditorStateChange=(e,t)=>{this.editorContext=e,this.setEditorContext=t,e.editor&&"loading"==this.props.state&&!this.props.hidden&&(this.setAttribute("state","ready"),this.ownerDocument.fonts.ready.then(()=>setTimeout(()=>{this.setReadyState(),this.setIframeComponentContent()},100)))}}getProps(){return tr(this)}getReactRootElement(){return this.reactRootElement||(this.reactRootElement=document.createElement("div"),this.getRoot().appendChild(this.reactRootElement)),this.reactRootElement}showLoader(){this.loader||(this.loader=document.createElement("feaas-loader"),this.loader.setAttribute("opacity","0.6"),this.loader.style.zIndex="1000",this.target.appendChild(this.loader),"FEAAS-COMPONENT"==this.target.tagName&&(this.target.style.position="relative"))}hideLoader(){this.loader&&(this.loader.setAttribute("hidden","hidden"),"FEAAS-COMPONENT"==this.target.tagName&&(this.target.style.position="relative",this.target.style.position=""))}load(){return import(this.formatURL(this.props.src,this.props.frontend))}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this.onWindowMessage)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.onWindowMessage)}setIframe(e){this.iframe=e}setIframeComponentContent(){this.placeholder&&this.iframe&&this.placeholder.editable.innerHTML&&this.iframe.contentWindow.postMessage({type:"feaasUpdate",id:this.editedUID,content:this.placeholder.editable.innerHTML})}setPlaceholder(){if(!this.iframe)return;let e=this.iframe.clientWidth,t=this.iframe.clientHeight,r=this.iframe.getBoundingClientRect(),n=this.getPlaceholder(),i=document.body.getBoundingClientRect(),a=this.measurements[this.editedUID];a&&(Object.assign(n.clipper.style,{position:"absolute",top:r.top+this.iframe.clientTop-i.top+"px",left:r.left+this.iframe.clientLeft-i.left+"px",width:e+"px",height:t+"px",pointerEvents:"none",zIndex:1,overflow:"hidden"}),Object.assign(n.positionable.style,{position:"absolute",top:a.top+"px",left:a.left+"px",width:a.width+"px",zIndex:2,transition:"opacity 0.4s",pointerEvents:this.props.hidden?"none":"all"}),Object.assign(n.loader.style,{position:"absolute",top:a.top+"px",left:a.left+"px",width:a.width+"px",height:a.height+"px",filter:"opacity(0.6)",zIndex:3,pointerEvents:"none"}),document.dispatchEvent(new Event("feaasRefresh",{bubbles:!0})))}getPlaceholder(){return this.placeholder||(this.placeholder={clipper:document.createElement("div"),positionable:document.createElement("div"),editable:Object.assign(document.createElement("div"),{className:"-feaas"}),loader:document.createElement("feaas-loader")},this.placeholder.clipper.appendChild(this.placeholder.positionable),this.placeholder.positionable.appendChild(this.placeholder.editable),this.placeholder.clipper.appendChild(this.placeholder.loader)),this.placeholder}attributeChangedCallback(e,t,r){t!==r&&("hidden"==e&&(this.style.setProperty("display","block","important"),this.style.setProperty("transition","opacity 0.3s","important"),r?(this.style.setProperty("opacity","0","important"),this.style.pointerEvents="none"):(this.style.setProperty("opacity","1","important"),this.style.pointerEvents="all")),super.attributeChangedCallback(e,t,r))}open(){clearTimeout(this.closing),this.removeAttribute("hidden"),this.removeAttribute("changed"),this.setLoadingState()}shouldFork(e){return null==e.forkOriginId&&null!=this.props.instance}cleanup(){var e;this.placeholder&&(null==(e=this.placeholder.clipper)||e.remove(),this.placeholder=null)}close(){console.log("Editor is not ready")}unfork(){console.log("Editor is not ready")}discard(){console.log("Editor is not ready")}save(){console.log("Editor is not ready")}setVersionContext(e){console.log("Editor is not ready")}setEditorContext(e){console.log("Editor is not ready")}setLoadingState(){this.showLoader(),this.setAttribute("state","loading")}setReadyState(){this.hideLoader(),this.setEditorContext({activeVersionId:this.component.versions[0].id}),this.setAttribute("state","ready")}
76render({children:e,component:t,version:r,instance:n},{Editor:i,VersionStatusList:a,VersionStatusButton:o,Version:s,VersionMenu:l,EditorUIUndo:c,EditorUIMode:u,React:{useEffect:d,useMemo:p,useState:h,useContext:f},Chakra:{HStack:m,Box:g,Button:b,MenuItem:y},Chrome:v,ReactDOM:A,useSDK:w,useLibrary:E,useSlots:C,useModelObserver:S,ConfirmationContext:O,VersionContext:x}){if(!this.payload)return;let{React:k}=this.payload,j=w(),R=E(),[F,N]=h(),{setConfirm:P}=f(O),D=n||r;F&&(this.component=F),d(()=>{if(this.props.hidden)return;let e=R.components.getItem(t).clone();return e.versions.search({ids:[r,n].filter(Boolean),componentIds:[t]}).then(t=>{e.versions.setItems(t);let i=e.findVersion(n,["staged","published"]),a=e.findVersion(r,["staged","published"]);if(i)i.deletedAt?(i.getDraft().changeAndNotify(a.toProperties()).restore(),console.error("FEAAS Editor: Restoring fork")):(console.error("FEAAS Editor: Pre-forked"),this.setAttribute("forked",i.id));else if(this.removeAttribute("forked"),this.shouldFork(a)){console.error("FEAAS Editor: Forking");let e=a.fork(n).id;this.setAttribute("instance",e)}else console.error("FEAAS Editor: Regular");N(e)}),()=>{this.closing=setTimeout(()=>{this.closing=null,this.cleanup(),N(null)},400)}},[r,this.props.hidden]);let T=S(null==F?void 0:F.versions,[]).filter(e=>e.id==D),L=T[0];L&&!this.props.hidden&&(this.version=L),d(()=>(this.unfork=()=>{P({title:"Reverting component customizations",button:"Discard",body:"Are you sure to reset component to its original state? All changes will be lost.",action:()=>{let e=F.findVersion(r,["staged","published"]);F.findVersion(n).unstage().unpublish().changeAndNotify(e.toProperties()),F.saveVersions(!1),this.setVersionContext({needsWrite:!0}),this.removeAttribute("forked"),requestAnimationFrame(this.onClose)}})},this.discard=()=>{this.props.changed&&(F.findVersion(D).revert(),F.saveVersions(!1),this.setVersionContext({needsWrite:!0}))},this.close=()=>{P({title:"Component has unsaved changes",button:"Discard",body:"Are you sure to close editor and discard changes?",bypass:!this.props.changed,action:()=>{this.discard(),requestAnimationFrame(this.onClose)}})},this.save=()=>{P({bypass:!!this.props.forked,title:"Customizing component",button:"Save",body:"Changes to the component will only be visible on that page. Changes to component done in Component Builder will not be reflected here. It will be possible to revert the customization.",action:()=>{var e,t;null==(t=null==(e=F.findVersion(D).commitData({view:this.editorContext.editor.getData({rootName:D}),model:""}))?void 0:e.stage())||t.publish(),this.removeAttribute("changed"),this.setAttribute("forked",D),F.saveVersions(!1)}})},()=>{delete this.unfork,delete this.discard,delete this.save,delete this.editorContext,delete this.versionContext,delete this.setEditorContext,delete this.setVersionContext}),[F]);let M=p(()=>this.target,[F]);return p(()=>F&&C(e,({picker:e,children:t})=>k.createElement(g,{ref:e=>{this.chrome=e?{positionable:e,wrapper:e.querySelector(".editor-chrome"),absolute:this.querySelector(".ui.overlays")}:null}},k.createElement(g,{className:"editor-wrapper",position:"absolute",left:0,top:0},k.createElement(i,{datasources:j.datasources,sdk:j,library:R,component:F,versions:T,context:{isAutosaveEnabled:!1,onChromeMeasure:this.onMeasure,onChromeBeforeMeasure:this.onBeforeMeasure,onChromeMeasureElement:this.onChromeMeasureElement,onChromePosition:this.onPosition,onContentChange:this.onContentChange}},{exports:this.onEditorStateChange,after:t,chrome:({editor:e})=>e&&k.createElement(v,null),children:({isArchivedDisplayed:e,editor:t,status:r})=>k.createElement(g,{position:"absolute",left:0,top:0,className:"editor-chrome",p:4,boxShadow:"2xl",pointerEvents:"none",opacity:0,transition:"opacity 0.3s"},k.createElement(g,{left:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),k.createElement(g,{right:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),k.createElement(g,{top:0,height:"16",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),k.createElement(g,{bottom:0,height:"4",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),L&&k.createElement(s,{version:L,node:M,ignoreBreakpoints:!0,deps:[this.props.forked,this.props.changed]},{exports:this.onVersionStateChange,left:k.createElement(m,{justifyContent:"space-between"},k.createElement(c,{size:"sm",editor:"ready"==r?t:null}),k.createElement(u,{size:"sm"})),middle:(e,t)=>
76[!1],right:k.createElement(k.Fragment,null,k.createElement(b,{variant:"secondary",size:"sm",onClick:this.close},"Close"),k.createElement(b,{variant:"primary",size:"sm",onClick:this.save,isDisabled:!this.props.changed},this.props.changed?this.props.forked?"Save":"Save customization":"Up to date"),k.createElement(l,{isDisabled:!this.props.forked&&!this.props.changed},k.createElement(y,{onClick:this.unfork,isDisabled:!this.props.forked},"Unfork"),k.createElement(y,{onClick:this.discard,isDisabled:!this.props.changed},"Discard")))}))})))),[L,this.props.forked,this.props.changed])}isReadyToLoad(){return null!=this.props.component&&null!=this.props.version&&!this.props.hidden}};function ti(e){var t,r;return{part:(null==e?void 0:e.getAttribute("part"))||"picker",slot:(null==e?void 0:e.getAttribute("part"))||"picker",mode:null==e?void 0:e.getAttribute("mode"),dialog:null==e?void 0:e.getAttribute("dialog"),placeholder:(null==e?void 0:e.getAttribute("placeholder"))||"No theme",frontend:null!=(t=null==e?void 0:e.getContextAttribute("frontend"))?t:"https://components.sitecorecloud.io",src:null!=(r=null==e?void 0:e.getAttribute("src"))?r:"/picker.js",hidden:(null==e?void 0:e.getAttribute("hidden"))!=null,variant:null==e?void 0:e.getAttribute("variant"),context:void 0,onClose:void 0,setAttribute:void 0,getAttribute:void 0}}tn.observedAttributes=["library","component","version","revision","hidden","state","changed","forked"],tn.register("feaas-editor");var ta=class extends ev{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return ti(this)}load(){return this.import(this.formatURL(this.props.src,this.props.frontend))}connectedCallback(){this.setAttribute("feaas-role","ui"),super.connectedCallback()}render({placeholder:e,context:t,mode:r,dialog:n,children:i,variant:a},{Picker:o,React:s,useContext:l,EnvironmentContext:c,useLibrary:u,useSDK:d,BYOC:p}){let[h,f]=s.useReducer(e=>e+1,0),m=d(),g=l(c),b=u("collections"),y=u("components"),v=d("datasources"),A=u(),w=(null==(S=null==(C=null==A?void 0:A.stylesheets)?void 0:C.first)?void 0:S.rules)||(null==(O=null==A?void 0:A.stylesheet)?void 0:O.styles),E=d("renderingHost.expandedComponents");var C,S,O,x=null==t?void 0:t.getAttribute("data");if(x)try{x=JSON.parse(x)}catch(e){}if(t)var k=m.ExternalComponent.getDefinition(t),j=k&&!k.getConfiguration(t),R=(null==k?void 0:k.type)=="feaas"?y.find(e=>e.id==t.getAttribute("component")):null==p?void 0:p.getComponent(String(t.getAttribute("data-external-id")));return s.createElement(o,{cdn:g.cdn,rules:w,collections:b,themeContext:t,placeholder:e,embed:R,externalComponents:E,datasources:v,data:x,versionId:null==t?void 0:t.getAttribute("version"),mode:r||(j?"library":R?"context":null),setAttribute:(e,t,r)=>{"data"==t&&r&&(r=JSON.stringify(r)),this.props.setAttribute(e,t,r),f()},getAttribute:(e,r)=>null==t?void 0:t.getAttribute(r),dialog:n,context:t,variant:a,onModeChange:(e,t)=>
76{this.set({mode:e,dialog:t})}},i)}};function to(e){var t,r,n,i,a;return{library:null==e?void 0:e.getAttribute("library"),src:null!=(t=null==e?void 0:e.getAttribute("src"))?t:"/context.js",environment:null!=(r=null==e?void 0:e.getAttribute("environment"))?r:void 0,frontend:null!=(n=null==e?void 0:e.getAttribute("frontend"))?n:"https://components.sitecorecloud.io",backend:null!=(i=null==e?void 0:e.getAttribute("backend"))?i:"https://components.sitecorecloud.io/api",cdn:null!=(a=null==e?void 0:e.getAttribute("cdn"))?a:"https://feaas.blob.core.windows.net",auth:null,isolate:(null==e?void 0:e.getAttribute("isolate"))==null||(null==e?void 0:e.getAttribute("isolate"))=="true"}}ta.observedAttributes=["library","mode","frontend","src","hidden","variant","dialog"],ta.register("feaas-picker");var ts=class extends ev{constructor(){super(...arguments),this.defaultProps={isolate:!0},this.onStatusChange=(e,t)=>{"ready"==e&&(this.whenSDKReady.resolve(t),this.dispatchEvent(new CustomEvent("feaasReady",{bubbles:!0,composed:!0,detail:t})))},this.whenSDKReady=eb(e=>{this.sdk=e})}getProps(){return to(this)}load(){return this.import(this.formatURL(this.props.src,this.props.frontend))}isReadyToLoad(){return super.isReadyToLoad()&&null!=this.props.library}getTheme(e){return e}getRoot(){return"false"===this.getAttribute("isolate")?this:this.shadowRoot||this.attachShadow({mode:"open"})}getReactRootElement(){return this.reactRootElement||(this.reactRootElement=document.createElement("div"),this.getRoot().appendChild(this.reactRootElement)),this.reactRootElement}connectedCallback(){this.setAttribute("feaas-role","ui"),Array.from(this.children).forEach(e=>{this.getRoot().appendChild(e)}),document.addEventListener("feaasMount",this),document.addEventListener("feaasUnmount",this),super.connectedCallback()}disconnectedCallback(){document.removeEventListener("feaasMount",this),document.removeEventListener("feaasUnmount",this),super.disconnectedCallback()}getPortalRoot(){return this.getRoot()}render({children:e,library:t},{AppContext:r,Chakra:{Button:n,Tooltip:i},React:a}){let o={containerRef:{current:this.getPortalRoot()}};return i.defaultProps={hasArrow:!0,placement:"top",portalProps:o},a.createElement(r,{environment:this.props.environment,backend:this.props.backend,libraryId:this.props.library,container:this.getRoot(),auth:this.props.auth,getTheme:this.getTheme,onStatusChange:this.onStatusChange,modalProps:{portalProps:o},chakraProps:{resetScope:':where([feaas-role="ui"])',cssVarsRoot:":host",resetCSS:!0,toastOptions:{portalProps:o}}},e)}};ts.observedAttributes=["library","component","version","revision","hostname","template"],ts.register("feaas-context"),ts.prototype.clientside=eg;var tl=n.Rf,tc=class extends ev{load(){return Promise.all([import("https://cdn.skypack.dev/react-dom/client")]).then(([e])=>({React:i,ReactDOM:d,ReactDOMClient:e}))}connectedCallback(){this._setAttribute||(this._setAttribute=this.setAttribute,this.setAttribute=function(e,t){let r=this.getAttribute(t);this._setAttribute(e,t),this.attributeChangedCallback(e,r,t)}),super.connectedCallback()}update(){var e;if(!(!(null!=(e=n.QQ(this.getComponentName()))&&e.component)&&"false"==this.getAttribute("hydrate")))return super.update()}render(e,{React:t}){var r;let i=null==(r=n.QQ(this.getComponentName()))?void 0:r.component;return i||console.warn(`FEAASExternal: \`${this.getComponentName()}\` is not registered`),t.createElement(t.Fragment,null,i&&t.createElement(i,{componentName:this.getComponentName(),...e}))}getComponentName(){return this.getAttribute("data-external-id")}getProps(){return tl(n.xv(Array.from(this.attributes).reduce((e,{name:t,value:r})=>("data-external-id"==t&&(t="component-name"),Object.assign(e,{[t]:r})),{}))).merged}static Preview(e){var t;let r=(null==e?void 0:e.src)||("u">typeof window?null==(t=window.location.search.match(/feaasSrc=([^&]+)/))?void 0:t[1]:null);return r?i.createElement(tS,{src:r,...e}):null}static linkComponents(e){return()=>e.map(e=>null)}};tc.registered=n.HZ,tc.registerComponent=n.Nj,tc.setRegistrationCallback=n.Tr,tc.getComponent=n.QQ,tc.register("feaas-external");var{linkComponents:tu}=tc,td={};function tp(e,t){td[e]=t}function th(e){return null==e||!0===e?["template","stylesheet","data"]:[].concat(e||[])}var tf=e=>("src"in e&&(e=eL(e.src)),i.createElement("link",{rel:"stylesheet",href:eT(e)})),tm=async({data:e,fetch:t,...r})=>{let n=await eh.fetch(e||{});t=th(null!=t?t:["stylesheet"]);let i={...r};if(("src"in r||"component"in r)&&(null==r?void 0:r.template)==null){let e=await eB(r);i.template=e.template,i.lastModified=e.lastModified}else(null==r?void 0:r.template)!=null||t.includes("template")||t.push("template");return tg({...i,data:e,fetch:t,fetchedData:n})};function tg({data:e,lastModified:t,fetchedData:r,renderNode:a,...o}){let s;"template"in o&&o.template&&(s=eu(o.template,r||e||{}).map((e,t)=>tb(e,(e,t)=>{if(a){let r=null==a?void 0:a(e,t);if(null!=r&&"type"in r)return[r.type,r.props];t={...t,...r}}if(td[e.localName])return[td[e.localName],t];if("feaas-external"==e.localName){let e={};for(var r in t)e["data-external-id"==r?"componentName":n.Cb(r)]=t[r];return[c,e]}},t))),"src"in o&&(o={...eP(o.src),...o});let l=th(o.fetch),u=l.includes("data")?e:l.includes("template")?r||e:null;return i.createElement(i.Fragment,null,"preload"in o&&!1,i.createElement("feaas-component",{class:"-feaas",...o,"last-modified":t?String(t):null,fetch:null==o.fetch?o.fetch:[].concat(o.fetch).join(" "),suppressHydrationWarning:!0,template:null,data:"string"==typeof u?u:u?JSON.stringify(u):null},s))}function tb(e,t,r){var a;if(3===e.nodeType)return e.textContent;let o=Array.from(e.childNodes).map((e,r)=>tb(e,t,r)),s={};for(let t=0;t<e.attributes.length;t++){let{name:r,value:i}=e.attributes[t];"style"==r?s[r]=String(i||"").trim().split(/\s*;\s*/).reduce((e,t)=>
76{let[r,i]=t.split(":");return{...e,[n.Cb(r)]:i}},{}):"class"==r?s.className=i:s[r]=i}let l=null==t?void 0:t(e,s),c=(null==l?void 0:l[0])||e.nodeName.toLowerCase();"style"==c&&(s.dangerouslySetInnerHTML={__html:o.join(`
77`)});let u=Object.assign({key:r,suppressHydrationWarning:!0},(null==l?void 0:l[1])||s),d=(null==(a=null==l?void 0:l[1])?void 0:a.children)||o;return i.createElement(c,u,["img","br","input","style"].includes(c)?null:d)}var ty=function(e,t){return s=e,o=t,t},tv=n.ZB,tA=function(){return i.createElement(i.Fragment,null,i.createElement("byoc-registration",{components:JSON.stringify(Object.values(n.HZ)),datasources:JSON.stringify(Object.values(n.fZ)),suppressHydrationWarning:!0}),i.createElement(o,null))},tw=c,tE=u,tC=l,tS=tg,tO=tm,tx=tf},4415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return c},noSSR:function(){return l}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(2687);r(7876),r(4232);let o=a._(r(5392));function s(e){return{default:e?.default||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function c(e,t){let r=o.default,n={loading:({error:e,isLoading:t,pastDelay:r})=>null};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let i=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=i?i().then(s):Promise.resolve(s(()=>null))}):(delete n.webpack,delete n.modules,l(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4825:(e,t,r)=>{"use strict";r.d(t,{Ex:()=>s,M5:()=>l,w_:()=>o});var n=r(4232),i=r(2059),a=r.n(i);let o=n.createContext({});n.createContext(new Map),n.createContext(void 0);let s=e=>{let{api:t,page:r,componentMap:i,loadImportMap:s,children:l}
77=e,[c,u]=(0,n.useState)(r),d=(0,n.useCallback)(e=>{u(e)},[]);(0,n.useEffect)(()=>{a()(r,c)||d(r)},[r,c,d]);let p=(0,n.useMemo)(()=>({page:c,setPage:d,api:t,componentMap:i,loadImportMap:s}),[c,d,t,i,s]);return n.createElement(o.Provider,{value:p},l)};function l(e){let t=(0,n.useContext)(o),r=null==e?void 0:e.updatable;return Object.assign(Object.assign({},t),{setPage:r?t.setPage:void 0})}s.displayName="SitecoreProvider"},5374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(2687)._(r(4232)).default.createContext(null)},5392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let n=r(2687)._(r(4232)),i=r(5374),a=[],o=[],s=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class c{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function u(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function l(){if(!a){let t=new c(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!s){let e=r.webpack&&1?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return l()})}function u(e,t){let o;l(),(o=n.default.useContext(i.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(e=>{o(e)});let s=n.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),n.default.useMemo(()=>{var t;return s.loading||s.error?n.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:a.retry}):s.loaded?n.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>l(),u.displayName="LoadableComponent",n.default.forwardRef(u)}(l,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),u.preloadReady=(e=[])=>new Promise(t=>{let r=()=>(s=!0,t());d(o,e).then(r,r)}),window.__NEXT_PRELOADREADY=u.preloadReady;let p=u},5639:(e,t,r)=>{"use strict";var n,i;r(1548),(i=n||(n={})).Preview="preview",i.Edit="edit",i.Normal="normal"},8847:(e,t,r)=>{e.exports=r(4415)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.