@next-bricks/form-platform 0.3.20 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +1 -1
- package/dist/chunks/1045.67fee621.js +2 -0
- package/dist/chunks/1045.67fee621.js.map +1 -0
- package/dist/chunks/{1122.c1471dca.js → 1122.f0d01b4d.js} +2 -2
- package/dist/chunks/{1122.c1471dca.js.map → 1122.f0d01b4d.js.map} +1 -1
- package/dist/chunks/{114.b834c62d.js → 114.65b61669.js} +2 -2
- package/dist/chunks/{114.b834c62d.js.map → 114.65b61669.js.map} +1 -1
- package/dist/chunks/{1889.7bd1ee10.js → 1889.2fbcb228.js} +2 -2
- package/dist/chunks/{1889.7bd1ee10.js.map → 1889.2fbcb228.js.map} +1 -1
- package/dist/chunks/{1940.9aac3287.js → 1940.e08c6a3a.js} +2 -2
- package/dist/chunks/{1940.9aac3287.js.map → 1940.e08c6a3a.js.map} +1 -1
- package/dist/chunks/{2277.ba8f8ed7.js → 2277.c6d595bb.js} +2 -2
- package/dist/chunks/{2277.ba8f8ed7.js.map → 2277.c6d595bb.js.map} +1 -1
- package/dist/chunks/2512.8d5f04ef.js +3 -0
- package/dist/chunks/{2512.9ef3cc86.js.map → 2512.8d5f04ef.js.map} +1 -1
- package/dist/chunks/2652.85c616eb.js +2 -0
- package/dist/chunks/2652.85c616eb.js.map +1 -0
- package/dist/chunks/{3171.0e997fab.js → 3171.32e93745.js} +2 -2
- package/dist/chunks/{3171.0e997fab.js.map → 3171.32e93745.js.map} +1 -1
- package/dist/chunks/3214.839e9f2c.js +3 -0
- package/dist/chunks/3214.839e9f2c.js.map +1 -0
- package/dist/chunks/3426.0dbb3278.js +2 -0
- package/dist/chunks/3426.0dbb3278.js.map +1 -0
- package/dist/chunks/{3933.bb68f3ff.js → 3933.0aa4aefd.js} +2 -2
- package/dist/chunks/{6314.5e32294e.js.map → 3933.0aa4aefd.js.map} +1 -1
- package/dist/chunks/{4658.7ae49f25.js → 4658.55cfb45c.js} +2 -2
- package/dist/chunks/{4658.7ae49f25.js.map → 4658.55cfb45c.js.map} +1 -1
- package/dist/chunks/{5552.7644cae7.js → 5552.6a76f3d2.js} +2 -2
- package/dist/chunks/{5552.7644cae7.js.map → 5552.6a76f3d2.js.map} +1 -1
- package/dist/chunks/{6314.5e32294e.js → 6314.2c685042.js} +2 -2
- package/dist/chunks/{3933.bb68f3ff.js.map → 6314.2c685042.js.map} +1 -1
- package/dist/chunks/{7733.59ce8683.js → 7733.5239e04d.js} +2 -2
- package/dist/chunks/{7733.59ce8683.js.map → 7733.5239e04d.js.map} +1 -1
- package/dist/chunks/{9559.e95aa9a2.js → 9559.1f8f1468.js} +2 -2
- package/dist/chunks/{9559.e95aa9a2.js.map → 9559.1f8f1468.js.map} +1 -1
- package/dist/chunks/eo-user-or-user-group-select.88c6a3a7.js +3 -0
- package/dist/chunks/{eo-user-or-user-group-select.0f23fe3d.js.map → eo-user-or-user-group-select.88c6a3a7.js.map} +1 -1
- package/dist/chunks/main.17fa26f2.js +2 -0
- package/dist/chunks/main.17fa26f2.js.map +1 -0
- package/dist/index.e2b24a08.js +2 -0
- package/dist/index.e2b24a08.js.map +1 -0
- package/package.json +4 -4
- package/dist/chunks/1045.022bd791.js +0 -2
- package/dist/chunks/1045.022bd791.js.map +0 -1
- package/dist/chunks/2512.9ef3cc86.js +0 -3
- package/dist/chunks/2652.4c70bb4d.js +0 -2
- package/dist/chunks/2652.4c70bb4d.js.map +0 -1
- package/dist/chunks/3214.e0ffe91f.js +0 -3
- package/dist/chunks/3214.e0ffe91f.js.map +0 -1
- package/dist/chunks/3426.b99b1404.js +0 -2
- package/dist/chunks/3426.b99b1404.js.map +0 -1
- package/dist/chunks/eo-user-or-user-group-select.0f23fe3d.js +0 -3
- package/dist/chunks/main.1f8c452a.js +0 -2
- package/dist/chunks/main.1f8c452a.js.map +0 -1
- package/dist/index.9c2d0a79.js +0 -2
- package/dist/index.9c2d0a79.js.map +0 -1
- /package/dist/chunks/{2512.9ef3cc86.js.LICENSE.txt → 2512.8d5f04ef.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{3214.e0ffe91f.js.LICENSE.txt → 3214.839e9f2c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-user-or-user-group-select.0f23fe3d.js.LICENSE.txt → eo-user-or-user-group-select.88c6a3a7.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_next_bricks_form_platform=self.webpackChunk_next_bricks_form_platform||[]).push([[2652],{2652:(e,t,r)=>{r.r(t),r.d(t,{Dialog:()=>lr,Notification:()=>mr,StoryboardFunctionRegistryFactory:()=>me,__secret_internals:()=>n,__test_only:()=>{},applyTheme:()=>ae,authenticate:()=>ni,batchSetAppsLocalTheme:()=>oe,checkIfByTransform:()=>_t,checkIfOfComputed:()=>Pt,createHistory:()=>T,createRuntime:()=>Ho,customProcessors:()=>N,customTemplates:()=>Be,fetchByProvider:()=>si,getAuth:()=>ai,getBasePath:()=>g,getCssPropertyValue:()=>de,getCurrentMode:()=>ce,getCurrentTheme:()=>ne,getHistory:()=>O,getPageInfo:()=>_a,getRealValue:()=>ui,getRuntime:()=>qo,getV2RuntimeFromDll:()=>R,handleHttpError:()=>hr,httpErrorToString:()=>ur,isLoggedIn:()=>ii,isUnauthenticatedError:()=>dr,logout:()=>oi,matchPath:()=>zt,registerWidgetFunctions:()=>je,registerWidgetI18n:()=>D,setUIVersion:()=>Na,unstable_createRoot:()=>ci});var n={};r.r(n),r.d(n,{addRealTimeDataInspectHook:()=>Hn,debugDataValue:()=>Dn,getAddedContracts:()=>jn,getAllContextValues:()=>Ln,getBrickPackagesById:()=>Nn,getContextValue:()=>Bn,getRenderId:()=>Fn,legacyDoTransform:()=>kn,loadBricks:()=>Un,mountUseBrick:()=>Sn,renderUseBrick:()=>bn,setRealTimeDataInspectRoot:()=>Wn,symbolForRootRuntimeContext:()=>An,unmountUseBrick:()=>En,updateSnippetPreviewSettings:()=>_n,updateStoryboard:()=>In,updateStoryboardByRoute:()=>Cn,updateStoryboardBySnippet:()=>Pn,updateStoryboardByTemplate:()=>Rn,updateTemplatePreviewSettings:()=>Tn});var a=r(9740),o=r(6330),i=r(4635),s=r(4586),l=r(918),c=r(2559),u=r(6121),d=r(829),f=r(7486),p=r(8555),v=r(3757),h=r(1302),m=(r(6036),r(2890));function g(){var e=document.querySelector("base");return e?e.getAttribute("href"):"/"}var y=r(4223),A=r(1030);function b(e,t){var r=(0,A.orderBy)(e,(e=>{var t,r;return null!==(t=null===(r=e.app.homepage)||void 0===r?void 0:r.length)&&void 0!==t?t:0}),"desc");for(var n of r){var a=n.app.homepage;if("string"==typeof a&&"/"===a[0]&&w(a,t))return n}}function w(e,t){return"/"===e?t===e:"".concat(t.replace(/\/+$/,""),"/").startsWith("".concat(e.replace(/\/+$/,""),"/"))}function S(e){var t;return!e||(null===(t=qo().getCurrentApp())||void 0===t?void 0:t.id)!==e.app.id&&!window.STANDALONE_MICRO_APPS&&e.app.standaloneMode}var E,k=["extraQuery","clear","keepHash"],I=!1;function C(e,t){t(!(I=!confirm(e)))}function R(){var e,{dll:t}=window;if(t&&null!==(e=window.BRICK_NEXT_VERSIONS)&&void 0!==e&&null!==(e=e["brick-container"])&&void 0!==e&&e.startsWith("2."))return t("tYg3")}function T(){if(!E){var e=(0,m.createBrowserHistory)({basename:g().replace(/\/$/,""),getUserConfirmation:C});Object.assign(e,function(e){var t,{push:r,replace:n}=e;function o(e,t,n){I=!1,r(e,t),null==n||n(I)}function i(e,t,r){I=!1,n(e,t),null==r||r(I)}function s(t){return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,{extraQuery:s,clear:l,keepHash:c}=n,u=(0,y.A)(n,k),d=new URLSearchParams(l?"":e.location.search),f={};for(var[p,v]of(Object.assign(f,r,s),Object.entries(f)))if(Array.isArray(v))for(var h of(d.delete(p),v))d.append(p,h);else null==v||""===v?d.delete(p):d.set(p,v);("push"===t?o:i)("?".concat(d.toString()).concat(c?e.location.hash:""),u,a)}}return(0,a.A)({pushQuery:s("push"),replaceQuery:s("replace"),pushAnchor:function(t,r,n){o((0,a.A)((0,a.A)({},e.location),{},{key:void 0,hash:t,state:(0,a.A)({notify:!1},r)}),void 0,n)},reload:function(t){i((0,a.A)((0,a.A)({},e.location),{},{state:(0,a.A)((0,a.A)({},e.location.state),{},{notify:!0,noIncremental:!0})}),void 0,t)},setBlockMessage:function(e){t=e},getBlockMessage:function(){return t},unblock:function(){t=void 0}},function(e){var{push:t,replace:r}=e;function n(n){return function(a,o,i){var s,l="string"==typeof a;return"string"==typeof(s=l?(0,m.parsePath)(a).pathname:a.pathname)&&s.startsWith("/")&&S(function(e){var t,r;return b(null!==(t=null===(r=Bo)||void 0===r?void 0:r.storyboards)&&void 0!==t?t:[],e)}(s))?location["push"===n?"assign":"replace"](l?g()+a.substring(1):e.createHref(a)):("push"===n?t:r)(a,o,i)}}return{push:n("push"),replace:n("replace")}}((0,a.A)((0,a.A)({},e),{},{push:o,replace:i})))}(e)),E=e}return E}var O=function(){var e=R();if(e)return e.getHistory}()||function(){return E},P=r(5866),x=r(7068),_=r(3817),M=r(4597),B=r(2296),L=new WeakMap,N=function(){var e=R();if(e)return Object.freeze({define:(t,r)=>e.getRuntime().registerCustomProcessor(t,r)})}()||new class{constructor(){(0,l.A)(this,L,new Map)}define(e,t){var[r,n]=e.split("."),a=(0,d.A)(L,this).get(r);if(a||(a=new Map,(0,d.A)(L,this).set(r,a)),a.has(n))throw new Error('Custom processor of "'.concat(e,'" already registered'));a.set(n,t)}get(e){return(0,d.A)(L,this).get(e)}};function U(e){var{app:t,meta:r}=e;if(null!=r&&r.i18n){var n=F("app",t.id),a=[];return Object.entries(r.i18n).forEach((e=>{var[t,r]=e;f.i18n.addResourceBundle(t,n,r),a.push(t)})),()=>{for(var e of a)f.i18n.removeResourceBundle(e,n)}}}function F(e,t){return"".concat(e,"/").concat(t)}function j(e){return f.i18n.getFixedT(null,F("widget",e))}var $,D=function(){var e=R();if(e)return function(t,r){return e.getRuntime().registerWidgetI18n(t,r)}}()||function(e,t){var r=F("widget",e);Object.entries(t).forEach((e=>{var[t,n]=e;f.i18n.addResourceBundle(t,r,n)}))},K="brick-next-devtools-panel",V="devtools-frame-active-change",W="devtools-panel-change",H=!0;function q(e,t){var r=z();if(r&&("evaluation"!==e||H&&(!$||"Evaluations"===$))){var n=()=>{var n;null===(n=r.emit)||void 0===n||n.call(r,{type:e,payload:t})};"function"==typeof window.requestIdleCallback?window.requestIdleCallback(n):setTimeout(n,0)}}function z(){return window.__BRICK_NEXT_DEVTOOLS_HOOK__}var G=()=>{throw new Error("Can't modify read-only proxy object")},Y={set:G,defineProperty:G,deleteProperty:G,setPrototypeOf:G};function Q(e){return new Proxy(e,Y)}function J(e){var{get:t,ownKeys:r}=e;return z()?Q(Object.fromEntries(r(null).map((e=>[e,t(null,e,null)])))):new Proxy(Object.freeze({}),{get:t})}var X="light",Z=new v.JsonStorage(localStorage),ee="apps-theme";function te(e){if("dark"!==e&&"light"!==e&&"dark-v2"!==e)throw new Error("Unsupported theme: ".concat(e));X=e}function re(){return X}function ne(){return document.documentElement.dataset.theme}function ae(e){e?te(e):e=re(),e!==ne()&&(document.documentElement.dataset.theme=e,window.dispatchEvent(new CustomEvent("theme.change",{detail:e})))}function oe(e){Z.setItem(ee,(0,a.A)((0,a.A)({},ie()),e))}function ie(){var e,t;try{t=Z.getItem(ee)}catch(e){console.error("JSON parse error inside `getLocalAppsTheme()`")}return null!==(e=t)&&void 0!==e?e:{}}var se="default";function le(e){if("dashboard"!==e&&"default"!==e)throw new Error("Unsupported mode: ".concat(e));se=e}function ce(){return document.documentElement.dataset.mode}function ue(e){e?le(e):e=se,e!==ce()&&(document.documentElement.dataset.mode=e,window.dispatchEvent(new CustomEvent("mode.change",{detail:e})))}function de(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return r&&(null===(t=window.getComputedStyle(r))||void 0===t?void 0:t.getPropertyValue(e))||""}function fe(e,t){var r={};for(var n of e){var a=pe(n,t);void 0!==a&&(r[n]=a)}return r}function pe(e,t){var r,n,a,{collectCoverage:o,widgetId:i,widgetVersion:s,app:l,appendI18nNamespace:c,storyboardFunctions:u,isStoryboardFunction:d}=t;switch(e){case"BASE_URL":return o?"/next":g().replace(/\/$/,"");case"FN":return u;case"IMG":return o?{get:e=>"mock/images/".concat(e)}:i?null==No||null===(r=No.images)||void 0===r?void 0:r.widgetImagesFactory(i,s):null==No||null===(n=No.images)||void 0===n?void 0:n.imagesFactory(l.id,l.isBuildPush,l.currentVersion);case"I18N":return o?A.identity:i?j(i):f.i18n.getFixedT(null,[c,F("app",l.id)].filter(Boolean));case"I18N_TEXT":return o?ve:f.i18nText;case"PERMISSIONS":return Q({check:o?he:null==No||null===(a=No.checkPermissions)||void 0===a?void 0:a.checkPermissions});case"THEME":return Q({getTheme:o?()=>"light":re});case"console":return d?Q(console):void 0;case"location":return o?{href:"http://localhost:3000/functions/test",origin:"http://localhost:3000",host:"localhost:3000",hostname:"localhost"}:{href:location.href,origin:location.origin,host:location.host,hostname:location.hostname}}}function ve(e){return null==e?void 0:e.en}function he(){return!0}function me(){var e,{widgetId:t,widgetVersion:r,collectCoverage:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=new Map,i=new Proxy(Object.freeze({}),{get:(a,s)=>function(a){var s,l=o.get(a);if(l){if(l.processed)return l.cooked;n&&(s=n.createCollector(a));var c=(0,x.precookFunction)(l.source,{typescript:l.typescript,hooks:s&&{beforeVisit:s.beforeVisit}});return l.cooked=(0,x.cook)(c.function,l.source,{rules:{noVar:!0},globalVariables:(0,B.supply)(c.attemptToVisitGlobals,fe(c.attemptToVisitGlobals,{collectCoverage:n,widgetId:t,widgetVersion:r,app:e,storyboardFunctions:i,isStoryboardFunction:!0}),!!n),hooks:s&&{beforeEvaluate:s.beforeEvaluate,beforeCall:s.beforeCall,beforeBranch:s.beforeBranch}}),l.processed=!0,l.cooked}}(s)});return{storyboardFunctions:i,registerStoryboardFunctions:function(t,r){if(r&&(e=r),o.clear(),Array.isArray(t))for(var a of t){var i=(0,_.collectMemberUsageInFunction)(a,"FN",!!n),s=(0,_.collectMemberUsageInFunction)(a,"PERMISSIONS",!!n).has("check");o.set(a.name,{source:a.source,typescript:a.typescript,deps:i,hasPermissionsCheck:s})}},updateStoryboardFunction(e,t){var r=(0,a.A)((0,a.A)({},t),{},{name:e}),n=(0,_.collectMemberUsageInFunction)(r,"FN",!0),i=(0,_.collectMemberUsageInFunction)(r,"PERMISSIONS",!0).has("check");o.set(e,{source:t.source,typescript:t.typescript,deps:n,hasPermissionsCheck:i})},checkPermissionsUsage(e){var t=new Set,r=e=>{if(!t.has(e)){t.add(e);var n=o.get(e);return!!n&&(n.hasPermissionsCheck||[...n.deps].some(r))}return!1};return e.some(r)}}}var{storyboardFunctions:ge,registerStoryboardFunctions:ye,checkPermissionsUsage:Ae}=me(),be={};try{be.EventTarget=(new EventTarget).constructor}catch(e){!function(e,t){var r=e.create,n=e.defineProperty,a=o.prototype;function o(){t.set(this,r(null))}function i(e,t,r){n(e,t,{configurable:!0,writable:!0,value:r})}function s(e){var t=e.options;return t&&t.once&&e.target.removeEventListener(this.type,e.listener),"function"==typeof e.listener?e.listener.call(e.target,this):e.listener.handleEvent(this),this._stopImmediatePropagationFlag}i(a,"addEventListener",(function(e,r,n){for(var a=t.get(this),o=a[e]||(a[e]=[]),i=0,s=o.length;i<s;i++)if(o[i].listener===r)return;o.push({target:this,listener:r,options:n})})),i(a,"dispatchEvent",(function(e){var r=t.get(this)[e.type];return r&&(i(e,"target",this),i(e,"currentTarget",this),r.slice(0).some(s,e),delete e.currentTarget,delete e.target),!0})),i(a,"removeEventListener",(function(e,r){for(var n=t.get(this),a=n[e]||(n[e]=[]),o=0,i=a.length;o<i;o++)if(a[o].listener===r)return void a.splice(o,1)})),be.EventTarget=o}(Object,new WeakMap)}const we=be.EventTarget;var Se=function(e){return e.xLarge="xLarge",e.large="large",e.medium="medium",e.small="small",e.xSmall="xSmall",e}({}),Ee=new Map([[Se.xLarge,"1920px"],[Se.large,"1600px"],[Se.medium,"1280px"],[Se.small,"1024px"],[Se.xSmall,0]]),ke=new we,Ie={},Ce={};function Re(e,t){var r=!1;for(var[n]of(Ie[t]=e.matches,Ee))if(Ie[n]&&Ce.breakpoint!==n){Ce.breakpoint=n,r=!0;break}r&&ke.dispatchEvent(new CustomEvent("change",{detail:Ce}))}Ee.forEach(((e,t)=>{var r=window.matchMedia("(min-width: ".concat(e,")"));Re(r,t),r.addEventListener?r.addEventListener("change",(e=>{Re(e,t)})):r.addListener((e=>{Re(e,t)}))}));var Te=()=>Ce;function Oe(e){return function(t){var r,n="local"===e?localStorage:sessionStorage;return JSON.parse(null!==(r=n.getItem(t))&&void 0!==r?r:"null")}}function Pe(e){var t,r;return!(null===(t=e?e.flags:null===(r=qo())||void 0===r?void 0:r.getFeatureFlags())||void 0===t||!t["brick-next-v3-strict-mode"])}function xe(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var o=0===n.length?"":",";e?console.error("".concat(t," is dropped in v3 strict mode").concat(o),...n):console.warn("".concat(t," is deprecated in v3 and will be dropped in strict mode").concat(o),...n)}var _e=new Set(["prefix"]),Me=new WeakMap,Be=function(){var e=R();if(e)return Object.freeze({define:(t,r)=>e.getRuntime().registerCustomTemplate(t,r)})}()||new class{constructor(){(0,l.A)(this,Me,new Map)}define(e,t){var r,n,o,i,s=(0,d.A)(Me,this).has(e);s?console.warn('Custom template of "'.concat(e,'" already registered.')):(s=!!customElements.get(e))&&console.warn('Custom template of "'.concat(e,'" already defined by customElements.'));var l=Pe(),c=null!==(r=null===(n=t.proxy)||void 0===n?void 0:n.properties)&&void 0!==r?r:{},u=[],f=[];for(var[p,v]of Object.entries(c))v.asVariable?(xe(l,"Template `asVariable`",e,p),l||f.push(p)):v.mergeProperty||v.refTransform?console.error("Template `mergeProperty` and `refTransform` are dropped in v3:",e,p):v.ref&&u.push([p,v]);var h=(0,a.A)((0,a.A)({},t),{},{proxy:(0,a.A)((0,a.A)({},t.proxy),{},{properties:Object.fromEntries(u)}),state:(t.state?l?t.state:t.state.map((e=>(0,a.A)({expose:!0},e))):[]).concat(f.map((e=>({name:e,expose:!0}))))});(0,d.A)(Me,this).set(e,(0,a.A)((0,a.A)({},h),{},{name:e}));var m,g,y=(m=h.state,(0,A.uniq)(null!==(g=null==m?void 0:m.filter((e=>e.expose)).map((e=>e.name)))&&void 0!==g?g:[])),b=Object.entries(null!==(o=null===(i=h.proxy)||void 0===i?void 0:i.methods)&&void 0!==o?o:{}),w=y.concat(u.map((e=>e[0]))),S=b.map((e=>e[0])),E=w.concat(S).filter((e=>e in HTMLElement.prototype&&!_e.has(e)));if(E.length>0&&(xe(l,"Using native HTMLElement properties as template properties or methods",e,...E),l))throw new Error('In custom template "'.concat(e,'", ').concat(E.map((e=>'"'.concat(e,'"'))).join(", ")," are native HTMLElement properties, and should be avoid to be used as brick properties or methods."));if(!s){class t extends HTMLElement{get $$typeof(){return"custom-template"}static get _dev_only_definedProperties(){return w}static get _dev_only_definedMethods(){return S}$$getElementByRef(e){var t;return null===(t=this.$$tplStateStore)||void 0===t||null===(t=t.hostBrick)||void 0===t||null===(t=t.tplHostMetadata)||void 0===t||null===(t=t.internalBricksByRef.get(e))||void 0===t?void 0:t.element}connectedCallback(){var e=this.shadowRoot;e||(e=this.attachShadow({mode:"open"}));var t=document.createDocumentFragment(),r=document.createElement("style");r.textContent=":host{display:block}:host([hidden]){display:none}";var n=document.createElement("slot");t.appendChild(r),t.appendChild(n),e.appendChild(t)}disconnectedCallback(){this.shadowRoot&&(this.shadowRoot.textContent="")}}var k=function(r){if(u.some((e=>e[0]===r)))return console.error('Cannot define an exposed state that is also a proxy property: "'.concat(r,'" in ').concat(e)),1;Object.defineProperty(t.prototype,r,{get(){return this.$$tplStateStore.getValue(r)},set(e){var t;null===(t=this.$$tplStateStore)||void 0===t||t.updateValue(r,e,"replace")},enumerable:!0})};for(var I of y)k(I);var C=function(e,r){Object.defineProperty(t.prototype,e,{get(){var t;return this.$$getElementByRef(r.ref)[null!==(t=r.refProperty)&&void 0!==t?t:e]},set(t){var n,a,o=null===(n=this.$$getElementByRef)||void 0===n?void 0:n.call(this,r.ref);o&&(o[null!==(a=r.refProperty)&&void 0!==a?a:e]=t)},enumerable:!0})};for(var[R,T]of u)C(R,T);var O=function(e,r){Object.defineProperty(t.prototype,e,{value(){var t;this.$$getElementByRef(r.ref)[null!==(t=r.refMethod)&&void 0!==t?t:e](...arguments)},enumerable:!0})};for(var[P,x]of b)O(P,x);customElements.define(e,t)}}get(e){return(0,d.A)(Me,this).get(e)}};function Le(e,t,r){var{tplStateStoreId:n,tplStateStoreMap:a}=e;if(!n)throw new Error('Using "'.concat(t,'" outside of a custom template').concat(null!=r?r:""));var o=a.get(n);if(!o)throw new Error('Template state store is not found when using "'.concat(t,'"').concat(null!=r?r:"",".\nThis is a bug of Brick Next, please report it."));return o}function Ne(e,t,r){var n=Le(e,t,r).hostBrick.element;if(!n)throw new Error('Template host element is gone when using "'.concat(t,'"').concat(null!=r?r:"",".\nThis is a bug of Brick Next, please report it."));return n}var Ue=new Map,Fe=new Proxy(Object.freeze({}),{get:(e,t)=>Ue.get(t)}),je=function(){var e=R();if(e)return function(t,r,n){return e.getRuntime().registerWidgetFunctions(t,r,n)}}()||function(e,t,r){if(Ue.has(e))throw new Error('Widget functions of "'.concat(e,'" already registered'));var{storyboardFunctions:n,registerStoryboardFunctions:a}=me({widgetId:e,widgetVersion:r});Ue.set(e,n),a(t)};const $e=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,De=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match($e);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},Ke=e=>"*"===e||"x"===e||"X"===e,Ve=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},We=(e,t)=>{if(Ke(e)||Ke(t))return 0;const[r,n]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(Ve(e),Ve(t));return r>n?1:r<n?-1:0},He=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=We(e[r]||"0",t[r]||"0");if(0!==n)return n}return 0},qe=(e,t,r)=>{Ye(r);const n=((e,t)=>{const r=De(e),n=De(t),a=r.pop(),o=n.pop(),i=He(r,n);return 0!==i?i:a&&o?He(a.split("."),o.split(".")):a||o?a?-1:1:0})(e,t);return ze[r].includes(n)},ze={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},Ge=Object.keys(ze),Ye=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===Ge.indexOf(e))throw new Error(`Invalid operator, expected one of ${Ge.join("|")}`)};function Qe(e,t){var r=ri(e);if(!r&&null!=No&&No.checkInstalledApps&&(r=No.checkInstalledApps.getCheckedApp(e)),!r||"running"===r.installStatus)return!1;if(!t||!r.currentVersion)return!0;var n=t.match(/^([><]=?|=)(.*)$/);try{if(!n)throw new TypeError("Invalid match version: ".concat(t));return qe(r.currentVersion,n[2],n[1])}catch(e){console.error(e)}return!1}function Je(e,t,r){var{formStateStoreId:n,formStateStoreMap:a}=e;if(!n)throw new Error('Using "'.concat(t,'" outside of form renderer').concat(null!=r?r:""));var o=a.get(n);if(!o)throw new Error('Form state store is not found when using "'.concat(t,'"').concat(null!=r?r:"",".\nThis is a bug of Brick Next, please report it."));return o}var Xe=new Map;function Ze(e){return et.apply(this,arguments)}function et(){return et=(0,o.A)((function*(e){var t,r=null==No||null===(t=No.flowApi)||void 0===t?void 0:t.isFlowApiProvider(e);r&&(e=No.flowApi.FLOW_API_PROVIDER);var n=Xe.get(e);if(n)return n;if(e.includes("-")&&!customElements.get(e))if(r)No.flowApi.registerFlowApiProvider();else if(yield(0,p.loadBricksImperatively)([e],Xo()),!customElements.get(e))throw new Error('Provider not defined: "'.concat(e,'".'));return n=document.createElement(e),Xe.set(e,n),n})),et.apply(this,arguments)}var tt=new WeakSet;function rt(e){if((0,v.isObject)(e)&&!nt(e))if(tt.add(e),Array.isArray(e))e.forEach(rt);else{var t=Object.getPrototypeOf(e);t&&t.constructor!==Object||Object.values(e).forEach(rt)}}function nt(e){return tt.has(e)}var at=new Map;function ot(e,t,r){return it.apply(this,arguments)}function it(){return(it=(0,o.A)((function*(e,t,r){var{useProvider:n,method:o="resolve",args:i=[],onReject:s}=e,{provider:l,field:c}=e;if(l&&!n)throw new Error("You're using \"provider: ".concat(l,'" which is dropped in v3, please use "useProvider" instead'));var u=null!=c;if(u){var d=Pe();if(xe(d,"`resolve.field`"),d)throw new Error("Using deprecated `resolve.field`")}var f,[p,v]=yield Promise.all([Ze(n),St(i,t)]),h=null==r?void 0:r.renderId,m=st(p,n,o,v,r,i,!!h&&h!==Zo()),{transform:g}=e;try{var y=yield m;rt(f=u?(0,A.get)(y,c):y)}catch(e){if(!function(e){return!(null==e||!e.transform)}(s))throw e;g=s.transform,f=e}return g?"string"==typeof g?{[g]:f}:St(g,(0,a.A)((0,a.A)({},t),{},{data:f})):f}))).apply(this,arguments)}function st(e,t,r,n,a,o,i){return lt.apply(this,arguments)}function lt(){return lt=(0,o.A)((function*(e,t,r,n,a,i,s){var l,c;try{l=JSON.stringify({useProvider:t,method:r,args:n})}catch(e){if(!i)throw e;l=JSON.stringify({useProvider:t,method:r,originalArgs:i})}return"reload"!==(null==a?void 0:a.cache)&&(c=at.get(l)),c||(c=(0,o.A)((function*(){var a,o=null!=No&&null!==(a=No.flowApi)&&void 0!==a&&a.isFlowApiProvider(t)?yield No.flowApi.getArgsOfFlowApi(t,n,r):n;return e[r](...o)}))(),s||at.set(l,c)),c})),lt.apply(this,arguments)}var ct=Symbol.for("pre.evaluated.raw"),ut=Symbol.for("pre.evaluated.context");function dt(e){return!(null==e||!e[ct])}function ft(e){return e[ct]}function pt(e){return"string"==typeof e?(0,x.shouldAllowRecursiveEvaluations)(e):(0,x.shouldAllowRecursiveEvaluations)(e[ct])}var vt=new WeakSet([SyntaxError,TypeError,ReferenceError]);function ht(e){return vt.has(e.constructor)?e.constructor:TypeError}function mt(){return(mt=(0,o.A)((function*(e,t,r){var{blockingList:n,run:a}=yt(e,t,r,!0);return yield Promise.all(n),a()}))).apply(this,arguments)}function gt(e,t,r){var{run:n}=yt(e,t,r,!1);return n()}function yt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,o=[];if("string"!=typeof e){var i=(0,A.omit)(t,["pendingPermissionsPreCheck","tplStateStoreMap","tplStateStoreScope","formStateStoreMap","formStateStoreScope"]);t=(0,a.A)((0,a.A)({},e[ut]),i),e=e[ct]}var s,l={usedArgs:new Set},c={usedArgs:new Set};try{s=(0,x.preevaluate)(e,{withParent:!0,hooks:{beforeVisitGlobal(e,t){(0,_.collectAppGetMenuUsage)(l,e,t),(0,_.collectInstalledAppsHasUsage)(c,e,t)}}})}catch(t){var u="".concat(t.message,', in "').concat(e,'"');throw new(ht(t))(u)}if(l.hasNonStaticUsage)throw new Error('Non-static usage of "APP.getMenu" is prohibited in v3, check your expression: "'.concat(e,'"'));if(c.hasNonStaticUsage)throw new Error('Non-static usage of "INSTALLED_APPS.has" is prohibited in v3, check your expression: "'.concat(e,'"'));var d,f,h,m,g={},{attemptToVisitGlobals:y}=s;if(r.lazy||y.has("EVENT")&&!(0,v.hasOwnProperty)(t,"event")||y.has("DATA")&&!(0,v.hasOwnProperty)(t,"data"))return{blockingList:o,run:()=>Object.keys(t).length>0?{[ct]:e,[ut]:t}:e};var b,w,S=Pe(t);(y.has("STATE")||!S&&y.has("TPL"))&&(m=Le(t,"STATE",': "'.concat(e,'"'))),y.has("FORM_STATE")&&(w=Je(t,"FORM_STATE",': "'.concat(e,'"')));var E=z();if(n||E){if(y.has("CTX")&&(d=(0,_.strictCollectMemberUsage)(e,"CTX"),n&&o.push(t.ctxStore.waitFor(d))),m){if(h=(0,_.strictCollectMemberUsage)(e,"STATE"),!S){var k=(0,_.strictCollectMemberUsage)(e,"TPL");for(var I of k)h.add(I)}n&&o.push(m.waitFor(h))}w&&(b=(0,_.strictCollectMemberUsage)(e,"FORM_STATE"),n&&o.push(w.waitFor(b))),y.has("PROCESSORS")&&(f=(0,_.strictCollectMemberUsage)(e,"PROCESSORS",2),n&&o.push((0,p.loadProcessorsImperatively)(f,Xo())))}if(n){var C,R=y.has("PERMISSIONS");if(!R&&y.has("FN")){var T=[...(0,_.strictCollectMemberUsage)(e,"FN")];R=Ae(T)}if(R&&o.push(...t.pendingPermissionsPreCheck),l.usedArgs.size>0&&null!=No&&No.menu){var O=[...l.usedArgs];o.push(Promise.all(O.map((e=>No.menu.fetchMenuById(e,t,{getStoryboardByAppId:ti,resolveData:ot,asyncComputeRealValue:St})))))}c.usedArgs.size>0&&o.push(null==No||null===(C=No.checkInstalledApps)||void 0===C?void 0:C.waitForCheckingApps([...c.usedArgs]))}return{blockingList:o,run(){var r,n,o,i,{app:l,location:c,query:u,match:p,flags:E,sys:k,ctxStore:I,data:C,event:R}=t,T=null!==(r=t.overrideApp)&&void 0!==r?r:l;for(var O of y)switch(O){case"ANCHOR":g[O]=c.hash?c.hash.substring(1):null;break;case"APP":if(null==T)throw new ReferenceError('APP is not defined, in "'.concat(e,'"'));g[O]=(0,a.A)((0,a.A)({},(0,A.cloneDeep)(T)),{},{getMenu:null==No||null===(n=No.menu)||void 0===n?void 0:n.getMenuById});break;case"CTX":g[O]=J({get:(e,t)=>I.getValue(t),ownKeys:()=>Array.from(d)});break;case"DATA":g[O]=C;break;case"EVENT":g[O]=R;break;case"FLAGS":g[O]=Q(E);break;case"FORM_STATE":g[O]=J({get:(e,t)=>w.getValue(t),ownKeys:()=>Array.from(b)});break;case"HASH":g[O]=c.hash;break;case"INSTALLED_APPS":g[O]=Q({has:Qe});break;case"ITEM":case"INDEX":var P="ITEM"===O?"forEachItem":"forEachIndex";(0,v.hasOwnProperty)(t,P)?g[O]=t[P]:console.error("Using `".concat(O,'` but no `:forEach` is found, check your expression: "').concat(e,'"'));break;case"LOCAL_STORAGE":g[O]=Q({getItem:Oe("local")});break;case"MEDIA":g[O]=Q(Te());break;case"MISC":g[O]=qo().getMiscSettings();break;case"PARAMS":if(null==u)throw new ReferenceError('PARAMS is not defined, in "'.concat(e,'"'));g[O]=new URLSearchParams(u);break;case"PATH":g[O]=Q(null!==(o=null==p?void 0:p.params)&&void 0!==o?o:{});break;case"PATH_NAME":g[O]=c.pathname;break;case"PROCESSORS":g[O]=J({get(e,t){var r=N.get(t);if(!r)throw new Error("'PROCESSORS.".concat(t,"' is not registered! Have you installed the relevant brick package?"));return J({get:(e,t)=>r.get(t),ownKeys:()=>Array.from(r.keys())})},ownKeys(){var e=new Set;for(var t of f){var r=t.split(".")[0];e.add(r)}return Array.from(e)}});break;case"QUERY":if(null==u)throw new ReferenceError('QUERY is not defined, in "'.concat(e,'"'));g[O]=Object.fromEntries(Array.from(u.keys()).map((e=>[e,u.get(e)])));break;case"QUERY_ARRAY":if(null==u)throw new ReferenceError('QUERY_ARRAY is not defined, in "'.concat(e,'"'));g[O]=Object.fromEntries(Array.from(u.keys()).map((e=>[e,u.getAll(e)])));break;case"SESSION_STORAGE":g[O]=Q({getItem:Oe("session")});break;case"TPL":if(xe(S,'Using "TPL" in expression','check your expression: "'.concat(e,'"')),S)break;case"STATE":g[O]=J({get:(e,t)=>m.getValue(t),ownKeys:()=>Array.from(h)});break;case"SYS":g[O]=Q(null!=k?k:{});break;case"__WIDGET_FN__":g[O]=Fe;break;case"__WIDGET_IMG__":g[O]=null==No||null===(i=No.images)||void 0===i?void 0:i.widgetImagesFactory;break;case"__WIDGET_I18N__":g[O]=j}Object.assign(g,fe(s.attemptToVisitGlobals,{storyboardFunctions:ge,app:T,appendI18nNamespace:t.appendI18nNamespace}));try{var _=(0,x.cook)(s.expression,s.source,{globalVariables:(0,B.supply)(s.attemptToVisitGlobals,g)});return q("evaluation",{raw:e,context:g,result:_}),_}catch(t){var M="".concat(t.message,', in "').concat(e,'"');throw new(ht(t))(M)}}}}var At=function(e){return e[e.INITIAL=0]="INITIAL",e[e.USE_BRICK=1]="USE_BRICK",e[e.USE_BRICK_ITEM=2]="USE_BRICK_ITEM",e[e.USE_BRICK_PROPERTIES=3]="USE_BRICK_PROPERTIES",e[e.USE_BRICK_TRANSFORM=4]="USE_BRICK_TRANSFORM",e[e.USE_BRICK_EVENTS=5]="USE_BRICK_EVENTS",e[e.USE_BRICK_IF=6]="USE_BRICK_IF",e[e.USE_BRICK_SLOTS=7]="USE_BRICK_SLOTS",e[e.USE_BRICK_SLOTS_ITEM=8]="USE_BRICK_SLOTS_ITEM",e[e.USE_BRICK_SLOTS_ITEM_BRICKS=9]="USE_BRICK_SLOTS_ITEM_BRICKS",e[e.USE_BRICK_SLOTS_ITEM_BRICKS_ITEM=10]="USE_BRICK_SLOTS_ITEM_BRICKS_ITEM",e[e.USE_BRICK_LIFECYCLE=11]="USE_BRICK_LIFECYCLE",e[e.USE_BRICK_DATA_SOURCE=12]="USE_BRICK_DATA_SOURCE",e}({});function bt(e){switch(e){case At.USE_BRICK_PROPERTIES:case At.USE_BRICK_TRANSFORM:case At.USE_BRICK_EVENTS:case At.USE_BRICK_IF:case At.USE_BRICK_LIFECYCLE:case At.USE_BRICK_DATA_SOURCE:return!0}return!1}function wt(e,t,r){if(bt(e))return e;if(t)switch(e){case At.USE_BRICK:return At.USE_BRICK_ITEM;case At.USE_BRICK_SLOTS_ITEM_BRICKS:return At.USE_BRICK_SLOTS_ITEM_BRICKS_ITEM}else switch(e){case At.INITIAL:if("useBrick"===r)return At.USE_BRICK;break;case At.USE_BRICK:case At.USE_BRICK_ITEM:case At.USE_BRICK_SLOTS_ITEM_BRICKS_ITEM:switch(r){case"properties":return At.USE_BRICK_PROPERTIES;case"transform":return At.USE_BRICK_TRANSFORM;case"dataSource":return At.USE_BRICK_DATA_SOURCE;case"events":return At.USE_BRICK_EVENTS;case"slots":return At.USE_BRICK_SLOTS;case"children":return At.USE_BRICK_SLOTS_ITEM_BRICKS;case"if":return At.USE_BRICK_IF;case"lifeCycle":return At.USE_BRICK_LIFECYCLE}break;case At.USE_BRICK_SLOTS:return At.USE_BRICK_SLOTS_ITEM;case At.USE_BRICK_SLOTS_ITEM:if("bricks"===r)return At.USE_BRICK_SLOTS_ITEM_BRICKS}return At.INITIAL}function St(e,t){return Et.apply(this,arguments)}function Et(){return Et=(0,o.A)((function*(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=dt(e);if(n||"string"==typeof e){var a,o=r.$$lazyForUseBrick&&bt(r.$$stateOfUseBrick),i=o;return n||(0,x.isEvaluable)(e)?(a=yield function(e,t,r){return mt.apply(this,arguments)}(e,t,{lazy:o}),i=pt(e)):a=o?e:((0,v.hasOwnProperty)(t,"data")?r.noInject?M.transform:M.transformAndInject:r.noInject?Ct:M.inject)(e,t),i||rt(a),a}if(!(0,v.isObject)(e)||nt(e)||"function"==typeof e)return e;if(Array.isArray(e)){var s=It(r,!0);return Promise.all(e.map((e=>St(e,t,s))))}return Object.fromEntries((yield Promise.all(Object.entries(e).map((e=>{var[n,a]=e;return Promise.all([St(n,t),St(a,t,It(r,!1,n))])})))).concat(r.ignoreSymbols?[]:Object.getOwnPropertySymbols(e).map((t=>[t,e[t]]))))})),Et.apply(this,arguments)}function kt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=dt(e);if(n||"string"==typeof e){var a,o=r.$$lazyForUseBrick&&bt(r.$$stateOfUseBrick),i=o;return n||(0,x.isEvaluable)(e)?(a=gt(e,t),i=pt(e)):a=o?e:((0,v.hasOwnProperty)(t,"data")?r.noInject?M.transform:M.transformAndInject:r.noInject?Ct:M.inject)(e,t),i||rt(a),a}if(!(0,v.isObject)(e)||nt(e)||"function"==typeof e)return e;if(Array.isArray(e)){var s=It(r,!0);return e.map((e=>kt(e,t,s)))}return Object.fromEntries(Object.entries(e).map((e=>{var[n,a]=e;return[kt(n,t),kt(a,t,It(r,!1,n))]})).concat(r.ignoreSymbols?[]:Object.getOwnPropertySymbols(e).map((t=>[t,e[t]]))))}function It(e,t,r){return e.$$lazyForUseBrick?(0,a.A)((0,a.A)({},e),{},{$$stateOfUseBrick:wt(e.$$stateOfUseBrick,t,r)}):e}function Ct(e){return e}function Rt(e,t){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,o.A)((function*(e,t){return!(0,v.hasOwnProperty)(e,"if")||!!("string"==typeof e.if||dt(e.if)?yield St(e.if,t):e.if)}))).apply(this,arguments)}function Ot(e,t){return!(0,v.hasOwnProperty)(e,"if")||!!("string"==typeof e.if||dt(e.if)?kt(e.if,t):e.if)}function Pt(e){return!(0,v.hasOwnProperty)(e,"if")||!!e.if}function xt(){return(xt=(0,o.A)((function*(e,t){return(0,v.isObject)(e.if)&&!dt(e.if)?Pt(yield ot(e.if,t)):Rt(e,t)}))).apply(this,arguments)}var _t=function(){var e=R();if(e)return e.looseCheckIfByTransform}()||function(e,t){return Ot(e,{data:t})};function Mt(e){var t=!1,r=!1,n=!1;if("string"==typeof e?(0,x.isEvaluable)(e):dt(e)){var a="string"==typeof e?e:ft(e);if((0,x.isTrackAll)(a)){var o=(0,_.trackAll)(a);o&&(t=o.context,r=o.state,n=o.formState)}else t=(0,_.track)(a,"track context","CTX"),r=(0,_.track)(a,"track state","STATE"),n=(0,_.track)(a,"track formstate","FORM_STATE")}return{contextNames:t,stateNames:r,formStateNames:n}}function Bt(e,t){return Lt.apply(this,arguments)}function Lt(){return(Lt=(0,o.A)((function*(e,t){for(var[r,n,a]of e)if(r===t){var o=yield n;if(void 0!==o||!a)return o}}))).apply(this,arguments)}function Nt(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=(0,o.A)((function*(e){var t={};for(var[r,n,a]of e){var o=yield n;void 0===o&&a||!("style"!==r&&"dataset"!==r||(0,v.isObject)(o))||(t[r]=o)}return t}))).apply(this,arguments)}function Ft(e,t){if(t)for(var[r,n]of Object.entries(t))switch(r){case"style":case"dataset":for(var[a,o]of Object.entries(n))e[r][a]=o;break;case"constructor":case"__proto__":case"innerHTML":throw new Error("set `".concat(r,"` is prohibited"));default:e[r]=n}}function jt(e,t,r){var n=function(e,t){return(0,v.isObject)(e)?Object.fromEntries(Object.entries(e).map((e=>{var[r,n]=e,a=kt(n,t,{$$lazyForUseBrick:!0,$$stateOfUseBrick:"useBrick"===r?At.USE_BRICK:At.INITIAL});if("style"!==r&&"dataset"!==r||(0,v.isObject)(a))return[r,a]})).filter(Boolean)):{}}(t,r);Array.isArray(e)||(e=[e]),e.forEach((e=>{Ft(e,n)}))}function $t(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Dt(e){return e&&e.sensitive?"":"i"}function Kt(e,t,r){return function(e,t,r){void 0===r&&(r={});for(var n=r.strict,a=void 0!==n&&n,o=r.start,i=void 0===o||o,s=r.end,l=void 0===s||s,c=r.encode,u=void 0===c?function(e){return e}:c,d=r.delimiter,f=void 0===d?"/#?":d,p=r.endsWith,v="[".concat($t(void 0===p?"":p),"]|$"),h="[".concat($t(f),"]"),m=i?"^":"",g=0,y=e;g<y.length;g++){var A=y[g];if("string"==typeof A)m+=$t(u(A));else{var b=$t(u(A.prefix)),w=$t(u(A.suffix));if(A.pattern)if(t&&t.push(A),b||w)if("+"===A.modifier||"*"===A.modifier){var S="*"===A.modifier?"?":"";m+="(?:".concat(b,"((?:").concat(A.pattern,")(?:").concat(w).concat(b,"(?:").concat(A.pattern,"))*)").concat(w,")").concat(S)}else m+="(?:".concat(b,"(").concat(A.pattern,")").concat(w,")").concat(A.modifier);else"+"===A.modifier||"*"===A.modifier?m+="((?:".concat(A.pattern,")").concat(A.modifier,")"):m+="(".concat(A.pattern,")").concat(A.modifier);else m+="(?:".concat(b).concat(w,")").concat(A.modifier)}}if(l)a||(m+="".concat(h,"?")),m+=r.endsWith?"(?=".concat(v,")"):"$";else{var E=e[e.length-1],k="string"==typeof E?h.indexOf(E[E.length-1])>-1:void 0===E;a||(m+="(?:".concat(h,"(?=").concat(v,"))?")),k||(m+="(?=".concat(h,"|").concat(v,")"))}return new RegExp(m,Dt(r))}(function(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:r,value:e[r++]});else{var a=1,o="";if("?"===e[s=r+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--a){s++;break}}else if("("===e[s]&&(a++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));o+=e[s++]}else o+=e[s++]+e[s++];if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!o)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:o}),r=s}else{for(var i="",s=r+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,a=void 0===n?"./":n,o="[^".concat($t(t.delimiter||"/#?"),"]+?"),i=[],s=0,l=0,c="",u=function(e){if(l<r.length&&r[l].type===e)return r[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var n=r[l],a=n.type,o=n.index;throw new TypeError("Unexpected ".concat(a," at ").concat(o,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<r.length;){var p=u("CHAR"),v=u("NAME"),h=u("PATTERN");if(v||h){var m=p||"";-1===a.indexOf(m)&&(c+=m,m=""),c&&(i.push(c),c=""),i.push({name:v||s++,prefix:m,suffix:"",pattern:h||o,modifier:u("MODIFIER")||""})}else{var g=p||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(i.push(c),c=""),u("OPEN")){m=f();var y=u("NAME")||"",A=u("PATTERN")||"",b=f();d("CLOSE"),i.push({name:y||(A?s++:""),pattern:y&&!A?o:A,prefix:m,suffix:b,modifier:u("MODIFIER")||""})}else d("END")}}return i}(e,r),t,r)}function Vt(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,a=r.exec(e.source);a;)t.push({name:a[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),a=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map((function(e){return Vt(e,t,r).source}));return new RegExp("(?:".concat(n.join("|"),")"),Dt(r))}(e,t,r):Kt(e,t,r)}var Wt=new Map,Ht=1e4,qt=0;function zt(e,t){var{path:r,exact:n=!1,strict:a=!1,sensitive:o=!0}=t;return(Array.isArray(r)?r:[r]).reduce(((t,r)=>{if(t)return t;var{regexp:i,keys:s}=function(e,t){var r="".concat(t.end).concat(t.strict).concat(t.sensitive),n=Wt.get(r);n||Wt.set(r,n=new Map);var a=n.get(e);if(a)return a;var o=[],i={regexp:Vt(e,o,t),keys:o};return qt<Ht&&(n.set(e,i),qt++),i}(r,{end:n,strict:a,sensitive:o}),l=i.exec(e);if(!l)return null;var[c,...u]=l,d=e===c;return n&&!d?null:{path:r,url:"/"===r&&""===c?"/":c,isExact:d,params:s.reduce(((e,t,r)=>(e[t.name]=u[r],e)),{})}}),null)}function Gt(){return(Gt=(0,o.A)((function*(e,t){for(var r of e){if("string"!=typeof r.path)throw console.error("Invalid route with invalid path:",r),new Error("Invalid route with invalid type of path: ".concat(typeof r.path));var n=Yt(r,t.app.homepage,t.location.pathname);if(n&&(yield Rt(r,t)))return t.app.noAuthGuard||r.public||null==No||!No.auth||No.auth.isLoggedIn()?{match:n,route:r}:"unauthenticated"}return"missed"}))).apply(this,arguments)}function Yt(e,t,r){return zt(r,{path:e.path.replace(/^\$\{APP.homepage\}/,t),exact:e.exact})}var Qt,Jt=Symbol.for("tpl.asyncComputedPropsFromHost"),Xt=Symbol.for("tpl.stateStoreId"),Zt=Symbol.for("tpl.externalForEachItem"),er=Symbol.for("tpl.externalForEachIndex"),tr=Symbol.for("tpl.externalNoForEach"),rr=new Set,nr=function(e){return e.REQUEST_FAILED="REQUEST_FAILED",e.SOMETHING_WENT_WRONG="SOMETHING_WENT_WRONG",e.LOGIN_TIMEOUT_MESSAGE="LOGIN_TIMEOUT_MESSAGE",e.NETWORK_ERROR="NETWORK_ERROR",e}({}),ar={[nr.REQUEST_FAILED]:"Request Failed",[nr.SOMETHING_WENT_WRONG]:"Something went wrong!",[nr.LOGIN_TIMEOUT_MESSAGE]:"You haven't logged in or your login session has expired. Login right now?",[nr.NETWORK_ERROR]:"Network error, please check your network."},or={[nr.REQUEST_FAILED]:"请求失败",[nr.SOMETHING_WENT_WRONG]:"出现了一些问题!",[nr.LOGIN_TIMEOUT_MESSAGE]:"您还未登录或登录信息已过期,现在重新登录?",[nr.NETWORK_ERROR]:"网络错误,请检查您的网络连接。"},ir="core/runtime",sr={en:ar,zh:or},lr=Object.freeze({show:function(e){if(Qt)return Qt.resolve(e);if("confirm"===e.type){var t=confirm(e.content);return new Promise(((e,r)=>setTimeout((()=>{(t?e:r)()}),1)))}return alert(e.content),new Promise((e=>setTimeout((()=>{e()}),1)))}});function cr(e){var{search:t,pathname:r}=e,n=r?window.btoa(encodeURIComponent(r)):"",a=t?window.btoa(encodeURIComponent(t)):"";document.cookie="SALOGINPATH=".concat(n,"; path=/"),document.cookie="SALOGINQUERY=".concat(a,"; path=/")}function ur(e){if(e instanceof Event&&e.target instanceof HTMLScriptElement)return e.target.src;if(e instanceof P.HttpFetchError)return f.i18n.t("".concat(ir,":").concat(nr.NETWORK_ERROR));if(e instanceof P.HttpResponseError&&e.responseJson){if("string"==typeof e.responseJson.error)return e.responseJson.error;if("string"==typeof e.responseJson.msg)return e.responseJson.msg}return null==e?"Unknown error":e.toString()}function dr(e){return e instanceof P.HttpResponseError&&401===e.response.status&&!!e.responseJson&&100003===e.responseJson.code}var fr,pr,vr=!1;function hr(e){if(!(e instanceof P.HttpAbortError)){if(dr(e)&&!window.NO_AUTH_GUARD){if(vr)return;return vr=!0,void lr.show({type:"confirm",content:f.i18n.t("".concat(ir,":").concat(nr.LOGIN_TIMEOUT_MESSAGE))}).then((()=>{var e,t;e=qo().getFeatureFlags()["sso-enabled"],cr((t=O()).location),t.push(e?"/sso-auth/login":"/auth/login",{from:(0,a.A)((0,a.A)({},t.location),{},{state:void 0})}),vr=!1}),(()=>{vr=!1}))}console.error(e);var t=ur(e);t!==fr&&(fr=t,lr.show({type:"error",title:f.i18n.t("".concat(ir,":").concat(nr.REQUEST_FAILED)),content:t,contentStyle:{whiteSpace:"pre-wrap",wordBreak:"break-word"}}).then((()=>{fr=void 0})))}}var mr=Object.freeze({show:function(e){pr?pr.resolve(e):alert(e.message)}});function gr(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return gr=function(e){this.s=e,this.n=e.next},gr.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new gr(e)}function yr(){return(yr=(0,o.A)((function*(e,t){var{progress:r,success:n,error:a,finally:o}=t,i=Zo();try{var s,l=yield e(),c=!1,u=!1;try{for(var d,f=function(e){var t,r,n,a=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);a--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new gr(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}(l);c=!(d=yield f.next()).done;c=!1){var p=d.value;if(i!==Zo())return;null==r||r(p)}}catch(e){u=!0,s=e}finally{try{c&&null!=f.return&&(yield f.return())}finally{if(u)throw s}}if(i!==Zo())return;null==n||n()}catch(e){if(i!==Zo())return;null==a||a(e)}finally{null==o||o()}}))).apply(this,arguments)}function Ar(e,t,r){t&&Object.entries(t).forEach((t=>{var[n,a]=t,o=kr(a,r,{element:e});for(var i of(e.addEventListener(n,o),e.$$listeners||(e.$$listeners=[]),e.$$listeners.push([n,o]),e.$$eventListeners||(e.$$eventListeners=[]),[].concat(a)))e.$$eventListeners.push([n,null,i])}))}function br(e){return"string"==typeof e.action}function wr(e){return"string"==typeof e.useProvider}function Sr(e){return!(!e.target&&!e.targetRef||!e.method&&!e.properties)}function Er(e){return!!e.then}function kr(e,t,r){return function(n){var o,i;for(var s of[].concat(e))if(Ot(s,(0,a.A)((0,a.A)({},t),{},{event:n})))if(Er(s))kr(s.then,t,r)(n);else if(br(s)){var[l,c]=s.action.split(".");switch(s.action){case"history.push":case"history.replace":case"history.pushQuery":case"history.replaceQuery":case"history.pushAnchor":case"history.block":case"history.goBack":case"history.goForward":case"history.reload":case"history.unblock":Pr(n,c,s.args,s.callback,t);break;case"window.open":xr(n,s.args,t);break;case"location.reload":case"location.assign":Nr(n,c,s.args,t);break;case"localStorage.setItem":case"localStorage.removeItem":case"sessionStorage.setItem":case"sessionStorage.removeItem":Ur(n,l,c,s.args,t);break;case"event.preventDefault":n.preventDefault();break;case"event.stopPropagation":n.stopPropagation();break;case"console.log":case"console.error":case"console.warn":case"console.info":Fr(n,c,s.args,t);break;case"message.success":case"message.error":case"message.info":case"message.warn":jr(n,c,s.args,t);break;case"handleHttpError":hr(n.detail);break;case"context.assign":case"context.replace":case"context.refresh":case"context.load":Mr(n,c,s.args,null===(o=s.batch)||void 0===o||o,s.callback,t);break;case"state.update":case"state.refresh":case"state.load":Br(n,c,s.args,null===(i=s.batch)||void 0===i||i,s.callback,t);break;case"tpl.dispatchEvent":var[u,d]=Vr(s.args,t,n);Ne(t,s.action,": ".concat(u)).dispatchEvent(new CustomEvent(u,d));break;case"formstate.update":Lr(n,s.args,s.callback,t);break;case"message.subscribe":case"message.unsubscribe":$r(n,c,s.args,t,r,s.callback);break;case"theme.setDarkTheme":case"theme.setLightTheme":ae("theme.setDarkTheme"===s.action?"dark":"light");break;case"theme.setTheme":var[f]=Vr(s.args,t,n);ae(f);break;case"mode.setDashboardMode":case"mode.setDefaultMode":ue("mode.setDashboardMode"===s.action?"dashboard":"default");break;default:console.error("unknown event listener action:",s.action)}}else wr(s)?Ir(n,s,t,r):Sr(s)?Rr(n,s,t,r):console.error("unknown event handler:",s);else s.else&&kr(s.else,t,r)(n)}}function Ir(e,t,r,n){return Cr.apply(this,arguments)}function Cr(){return(Cr=(0,o.A)((function*(e,t,r,n){try{Tr(e,yield Ze(t.useProvider),t,"saveAs"!==t.method?"resolve":"saveAs",r,n)}catch(e){console.error(ur(e))}}))).apply(this,arguments)}function Rr(e,t,r,n){var o=[],i=t.target,s=t.targetRef,l=i;if(("string"==typeof i?(0,x.isEvaluable)(i):dt(i))&&(l=kt(i,(0,a.A)((0,a.A)({},r),{},{event:e}))),"string"==typeof l)if("_self"===l)o.push(n.element);else if(t.multiple)o=Array.from(document.querySelectorAll(l));else{var c=document.querySelector(l);null!==c&&o.push(c)}else if(l)l instanceof HTMLElement?o.push(l):console.error("unexpected target:",l);else if(s){var u=s;("string"==typeof s?(0,x.isEvaluable)(s):dt(s))&&(u=kt(s,(0,a.A)((0,a.A)({},r),{},{event:e})));var d=[].concat(u),f=Ne(r,"targetRef",": ".concat(d.join(", ")));o.push(...d.map((e=>{var t;return null===(t=f.$$getElementByRef)||void 0===t?void 0:t.call(f,e)})).filter(Boolean))}0!==o.length?function(e){return!!e.method}(t)?o.forEach((a=>{Tr(e,a,t,t.method,r,n,{useEventAsDefault:!0})})):function(e){return!!e.properties}(t)&&jt(o,t.properties,(0,a.A)((0,a.A)({},r),{},{event:e})):console.error("target not found:",i||s)}function Tr(e,t,r,n,a,o,i){return Or.apply(this,arguments)}function Or(){return Or=(0,o.A)((function*(e,t,r,n,i,s,l){if("function"==typeof t[n]){var c=function(){var a=(0,o.A)((function*(){var a,o,s=Vr(r.args,i,e,l);return wr(r)&&null!=No&&null!==(a=No.flowApi)&&void 0!==a&&a.isFlowApiProvider(r.useProvider)&&(s=yield No.flowApi.getArgsOfFlowApi(r.useProvider,s,n,null===(o=r.sse)||void 0===o?void 0:o.stream)),t[n](...s)}));return function(){return a.apply(this,arguments)}}();if(r.callback){var u=Kr(r.callback,i,s),d={progress:u("progress"),success:u("success"),error:u("error"),finally:u("finally")};if(wr(r)){var f,p,v=(0,a.A)((0,a.A)({},i),{},{event:e});if(kt(null===(f=r.sse)||void 0===f?void 0:f.stream,v))return void function(e,t){yr.apply(this,arguments)}(c,d);if(kt(null===(p=r.poll)||void 0===p?void 0:p.enabled,v))return void function(e,t,r,n){var a,{progress:i,success:s,error:l,finally:c}=t,{expectPollStopImmediately:u,expectPollEnd:d}=r,{interval:f,leadingRequestDelay:p,continueOnError:v,delegateLoadingBar:h}=kt((0,A.pick)(r,["interval","leadingRequestDelay","continueOnError","delegateLoadingBar"]),n),m=Zo();function g(){return y.apply(this,arguments)}function y(){return(y=(0,o.A)((function*(){var t;rr.delete(a);try{var r;if(t=null===(r=kt(u,n))||void 0===r?void 0:r())null==c||c();else{var o,p,g=yield e(),y=null===(o=kt(u,n))||void 0===o?void 0:o();(t=y||m!==Zo())?y&&(null==c||c()):(null==i||i(g),null!==(p=kt(d,n))&&void 0!==p&&p(g)?(h&&window.dispatchEvent(new Event("request.end")),null==s||s(g),null==c||c()):b(null!=f?f:3e3))}}catch(e){var A,w=null===(A=kt(u,n))||void 0===A?void 0:A();(t=w||m!==Zo())?w&&(null==c||c()):(null==l||l(e),v?b(null!=f?f:3e3):null==c||c())}finally{h&&t&&window.dispatchEvent(new Event("request.end"))}}))).apply(this,arguments)}function b(e){a=setTimeout(g,e),rr.add(a)}b(null!=p?p:0),h&&window.dispatchEvent(new Event("request.start"))}(c,d,r.poll,v)}try{var h=yield c();d.success(h)}catch(e){d.error(e)}finally{d.finally()}}else c()}else console.error("target has no method:",{target:t,method:n})})),Or.apply(this,arguments)}function Pr(e,t,r,n,a){var o=0,i=!1,s=t;switch(t){case"push":case"replace":case"pushQuery":case"replaceQuery":case"pushAnchor":o=2,i=!0;break;case"reload":i=!0;break;case"block":o=1,s="setBlockMessage"}var l=[];if(o>0&&((l=Vr(r,a,e,{useEventDetailAsDefault:!0})).length=o),i&&n){var c=Kr(n,a,void 0);l.push((e=>{c(e?"error":"success")({blocked:e}),c("finally")({blocked:e})}))}O()[s](...l)}function xr(e,t,r){var[n,a,o]=Vr(t,r,e);window.open(n,a||"_self",o)}function _r(e,t,r,n,a,o){t?n.updateValues(e,r,(e=>Vr(e,a,o)[0])):e.forEach((e=>{var{name:t,value:i}=Vr([e],a,o)[0];n.updateValue(t,i,r)}))}function Mr(e,t,r,n,a,o){if(!Array.isArray(r)||!r.every(v.isObject)||"assign"!==t&&"replace"!==t){var[i,s]=Vr(r,o,e);o.ctxStore.updateValue(i,s,t,a,o)}else _r(r,n,t,o.ctxStore,o,e)}function Br(e,t,r,n,a,o){if(Array.isArray(r)&&r.every(v.isObject)&&"update"===t)_r(r,n,"replace",Le(o,"state.".concat(t),": ".concat(JSON.stringify(r))),o,e);else{var[i,s]=Vr(r,o,e);Le(o,"state.".concat(t),": ".concat(i)).updateValue(i,s,"update"===t?"replace":t,a,o)}}function Lr(e,t,r,n){var[a,o]=Vr(t,n,e);Je(n,"formstate.update",": ".concat(a)).updateValue(a,o,"replace",r,n)}function Nr(e,t,r,n){if("assign"===t){var[a]=Vr(r,n,e);location.assign(a)}else location[t]()}function Ur(e,t,r,n,a){var o="localStorage"===t?localStorage:sessionStorage,[i,s]=Vr(n,a,e);"setItem"===r?void 0!==s&&o.setItem(i,JSON.stringify(s)):o.removeItem(i)}function Fr(e,t,r,n){console[t](...Vr(r,n,e,{useEventAsDefault:!0}))}function jr(e,t,r,n){var a=Vr(r,n,e,{useEventAsDefault:!0});mr.show({type:t,message:a[0]})}function $r(e,t,r,n,a,o){return Dr.apply(this,arguments)}function Dr(){return(Dr=(0,o.A)((function*(e,t,r,n,a,o){var i=()=>{var a,o=Vr(r,n,e);return null==No||null===(a=No.messageDispatcher)||void 0===a?void 0:a[t](...o)};if(o){var s=Kr(o,n,a);try{var l=yield i();s("success")(l)}catch(e){s("error")(e)}finally{s("finally")()}}else i()}))).apply(this,arguments)}function Kr(e,t,r){return function(n){return function(a){var o=null==e?void 0:e[n];if(o)try{var i=new CustomEvent("callback.".concat(n),{detail:a});kr(o,t,r)(i)}catch(e){console.error(e)}else"error"===n&&console.error("Unhandled callback error:",a)}}}function Vr(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Array.isArray(e)?kt(e,(0,a.A)((0,a.A)({},t),{},{event:r})):n.useEventAsDefault?[r]:n.useEventDetailAsDefault?[r.detail]:[]}function Wr(e){var t,{ref:r,runtimeContext:n,element:a}=e;if(r&&n.tplStateStoreId){var{hostBrick:o}=Le(n,"bindTemplateProxy"),i=o.tplHostMetadata;i.internalBricksByRef.set(r,e);var s=null===(t=i.proxy)||void 0===t?void 0:t.events;if(s){var l=function(e){if(u.ref===r){var t,n,i,s=t=>{t.bubbles&&t.stopPropagation(),o.element.dispatchEvent(new CustomEvent(e,{detail:t.detail,bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}))},l=null!==(t=u.refEvent)&&void 0!==t?t:e;a.addEventListener(l,s),null!==(i=(n=a).$$proxyListeners)&&void 0!==i||(n.$$proxyListeners=[]),a.$$proxyListeners.push([l,s])}};for(var[c,u]of Object.entries(s))l(c)}}}function Hr(e){var{ref:t,runtimeContext:r,element:n}=e;if(null!=r&&r.tplStateStoreId&&t){var{hostBrick:a}=Le(r,"unbindTemplateProxy"),o=a.tplHostMetadata;for(var[i,s]of(o.internalBricksByRef.delete(t),null!==(l=n.$$proxyListeners)&&void 0!==l?l:[])){var l;n.removeEventListener(i,s)}delete n.$$proxyListeners}}var qr=function(e){return e[e.ROOT=1]="ROOT",e[e.BRICK=2]="BRICK",e[e.PLACEHOLDER=3]="PLACEHOLDER",e}({});function zr(e){e.replaceChildren()}function Gr(e,t){window.DISABLE_REACT_FLUSH_SYNC=!1;for(var r=e.child,n=[];r;){if(r.tag===qr.BRICK){var a,o=r.type;o.includes("-")&&!customElements.get(o)&&console.error("Undefined custom element: ".concat(o)),"basic-bricks.script-brick"===o&&console.warn("`basic-bricks.script-brick` is deprecated, please take caution when using it");var i=t&&r===e.child?t:document.createElement(o);r.element=i,r.slotId&&i.setAttribute("slot",r.slotId),r.iid&&(i.dataset.iid=r.iid),null!==(a=r.tplHostMetadata)&&void 0!==a&&a.tplStateStoreId&&(i.dataset.tplStateStoreId=r.tplHostMetadata.tplStateStoreId),Ft(i,r.properties),Ar(i,r.events,r.runtimeContext),r.tplHostMetadata&&(i.$$tplStateStore=Le({tplStateStoreId:r.tplHostMetadata.tplStateStoreId,tplStateStoreMap:r.runtimeContext.tplStateStoreMap},"mount")),Wr(r),r.portal?n.push(i):r.return&&(r.return.childElements||(r.return.childElements=[]),r.return.childElements.push(i))}if(r.child)r=r.child;else if(r.sibling)r=r.sibling;else{for(var s,l=r.return;l;){var c;if(l.childElements)l.tag===qr.ROOT?null===(c=l.container)||void 0===c||c.append(...l.childElements):l.element.append(...l.childElements),l.childElements=void 0;if(l.tag===qr.ROOT&&n.length>0&&("function"==typeof l.createPortal?l.createPortal():l.createPortal).append(...n),l.sibling)break;l=l.return}r=null===(s=l)||void 0===s?void 0:s.sibling}}setTimeout((()=>{window.DISABLE_REACT_FLUSH_SYNC=!0}))}var Yr=["onMount","onUnmount","onMediaChange","onScrollIntoView","onMessage","onMessageClose"],Qr=["onBeforePageLoad","onPageLoad","onPageLeave","onBeforePageLeave","onAnchorLoad","onAnchorUnload"],Jr=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,en=new WeakMap,tn=new WeakMap,rn=new WeakMap,nn=new WeakMap,an=new WeakMap,on=new WeakMap,sn=new WeakSet;class ln{constructor(e,t){var r;(0,i.A)(this,sn),(0,s.A)(this,"scope",void 0),(0,s.A)(this,"unknownBricks",void 0),(0,s.A)(this,"renderId",void 0),(0,l.A)(this,Jr,void 0),(0,l.A)(this,Xr,{onBeforePageLoad:[],onPageLoad:[],onPageLeave:[],onBeforePageLeave:[],onAnchorLoad:[],onAnchorUnload:[],onMediaChange:[],onScrollIntoView:[],onMount:[],onUnmount:[],onMessage:[],onMessageClose:[]}),(0,l.A)(this,Zr,new Map),(0,l.A)(this,en,void 0),(0,l.A)(this,tn,new Map),(0,l.A)(this,rn,void 0),(0,l.A)(this,nn,void 0),(0,l.A)(this,an,new WeakMap),(0,l.A)(this,on,new Map),this.scope=e,this.unknownBricks=null!==(r=null==t?void 0:t.unknownBricks)&&void 0!==r?r:"throw",(0,u.A)(Jr,this,null==t?void 0:t.routeHelper),this.renderId=null==t?void 0:t.renderId}setInitialMenuRequestNode(e){(0,u.A)(nn,this,e)}memoizeMenuRequestNode(e,t){(0,d.A)(an,this).set(e,t)}getMenuRequests(){for(var e=[],t=(0,d.A)(nn,this);t;)if(t.request&&e.push(t.request),t.child)t=t.child;else{for(var r;t&&!t.sibling;)t=t.return;t=null===(r=t)||void 0===r?void 0:r.sibling}return e}reMergeMenuRequestNodes(e,t){var r=arguments,n=this;return(0,o.A)((function*(){var a=r.length>2&&void 0!==r[2]?r[2]:{},o=(0,d.A)(an,n).get(t);(0,d.A)(an,n).set(t,a);for(var i,s=e.child;s&&s!==o;)i=s,s=s.sibling;i?(i.sibling=a,a.sibling=null==o?void 0:o.sibling):e.child=a,yield(0,d.A)(Jr,n).mergeMenus(n.getMenuRequests())}))()}reBailout(e){return(0,d.A)(Jr,this).bailout(e)}reCatch(e,t){return(0,d.A)(Jr,this).catch(e,t)}didPerformIncrementalRender(e,t){var r=this;return(0,o.A)((function*(){var n=!1,a=[];for(var{parentRoutes:o,callback:i}of[...(0,d.A)(on,r).values()].reverse()){var s=o[o.length-1];if(!a.includes(s)){var l=yield i(e,t);l&&a.push(...o.slice(0,-1)),!1!==l&&(n=!0)}}return n}))()}performIncrementalRender(e,t,r){(0,d.A)(on,this).set(e,{parentRoutes:t,callback:r})}registerBrickLifeCycle(e,t){if(t){var r=[...Yr,..."page"===this.scope?Qr:[]];for(var n of r){var a=t[n];a&&(0,d.A)(Xr,this)[n].push({brick:e,handlers:a})}(0,A.isEmpty)(t.useResolves)||console.error("`lifeCycle.useResolves` is dropped in v3:",t)}}registerArbitraryLifeCycle(e,t){var r=(0,d.A)(tn,this).get(e);r?r.add(t):(0,d.A)(tn,this).set(e,new Set([t]))}memoize(e,t,r,n){(0,d.A)(rn,this)||(0,u.A)(rn,this,new WeakMap);var a=[null!=e?e:"",...t].join("."),o=(0,d.A)(rn,this).get(n);o||(o=new Map,(0,d.A)(rn,this).set(n,o)),o.set(a,{node:r,last:pn(r),lastNormal:vn(r),lastPortal:mn(r)})}reRender(e,t,r,n){var a,o=[null!=e?e:"",...t].join("."),i=(0,d.A)(rn,this).get(n).get(o),{node:s,last:l,lastNormal:u,lastPortal:f}=i,p=[];if((null==s?void 0:s.tag)===qr.PLACEHOLDER){var v,h,m;a=null!==(v=null===(h=function(e){return hn(e,!0)}(s))||void 0===h?void 0:h.element)&&void 0!==v?v:null;var g=null===(m=function(e){return gn(e,!0)}(s))||void 0===m?void 0:m.element;g&&p.push(g)}else{var y,A,b;a=null!==(y=null==u||null===(A=u.element)||void 0===A?void 0:A.nextSibling)&&void 0!==y?y:null;for(var w=null==f||null===(b=f.element)||void 0===b?void 0:b.nextSibling;w&&(p.push(w),w instanceof HTMLElement&&"DIV"===w.tagName);)w=w.nextSibling}var S,E=pn(r);i.node=r,i.last=E,i.lastNormal=vn(r),i.lastPortal=mn(r);for(var k=n.child;k&&k!==l;){if(k.sibling===s){S=k;break}k=k.sibling}var I=document.createDocumentFragment(),C=document.createDocumentFragment(),R={tag:qr.ROOT,container:I,createPortal:C,child:r};for(k=r;k;)k.return=R,k=k.sibling;var T,O,P=yn(s,l);for((0,c.A)(sn,this,cn).call(this,P),Gr(R),S?S.sibling=r:n.child=r,E&&(E.sibling=null==l?void 0:l.sibling),k=r;k;)k.return=n,k=k.sibling;if(n.tag===qr.ROOT?null===(T=n.container)||void 0===T||T.insertBefore(I,a):null===(O=n.element)||void 0===O||O.insertBefore(I,a),C.childNodes.length>0){for(var x,_=r;_&&_.return;)_=_.return;if((null===(x=_)||void 0===x?void 0:x.tag)!==qr.ROOT)throw new Error("Cannot find render root node. This is a bug of Brick Next, please report it.");var M="function"==typeof _.createPortal?_.createPortal():_.createPortal,B=null;for(var L of p)if(M.contains(L)){B=L;break}M.insertBefore(C,B)}var N=yn(r,E);(0,c.A)(sn,this,un).call(this,N)}dispose(){for(var e of Object.values((0,d.A)(Xr,this)))e.length=0;for(var t of(0,d.A)(Zr,this).values()){for(var r of t)r.disconnect();t.length=0}(0,d.A)(Zr,this).clear(),(0,d.A)(en,this)&&(ke.removeEventListener("change",(0,d.A)(en,this)),(0,u.A)(en,this,void 0)),(0,u.A)(rn,this,void 0),(0,d.A)(tn,this).clear(),(0,d.A)(on,this).clear(),(0,u.A)(an,this,void 0)}dispatchBeforePageLoad(){(0,c.A)(sn,this,dn).call(this,"onBeforePageLoad",new CustomEvent("page.beforeLoad"))}dispatchPageLoad(){var e=new CustomEvent("page.load");(0,c.A)(sn,this,dn).call(this,"onPageLoad",e),window.dispatchEvent(e)}dispatchBeforePageLeave(e){(0,c.A)(sn,this,dn).call(this,"onBeforePageLeave",new CustomEvent("page.beforeLeave",{detail:e}))}dispatchPageLeave(){(0,c.A)(sn,this,dn).call(this,"onPageLeave",new CustomEvent("page.leave"))}dispatchAnchorLoad(){var{hash:e}=O().location;e&&"#"!==e?(0,c.A)(sn,this,dn).call(this,"onAnchorLoad",new CustomEvent("anchor.load",{detail:{hash:e,anchor:e.substring(1)}})):(0,c.A)(sn,this,dn).call(this,"onAnchorUnload",new CustomEvent("anchor.unload"))}initializeScrollIntoView(){for(var{brick:e,handlers:t}of(0,d.A)(Xr,this).onScrollIntoView)(0,c.A)(sn,this,fn).call(this,e,t)}initializeMediaChange(){(0,u.A)(en,this,(e=>{(0,c.A)(sn,this,dn).call(this,"onMediaChange",new CustomEvent("media.change",{detail:Q(e.detail)}))})),ke.addEventListener("change",(0,d.A)(en,this))}initializeMessageDispatcher(){var e,t=function(e){var t=function(t){var r;null==No||null===(r=No.messageDispatcher)||void 0===r||r.onMessage(t.channel,(r=>{kr(t.handlers,e.runtimeContext,e)(new CustomEvent("message.push",{detail:r}))}))};for(var r of[].concat(n))t(r)};for(var{brick:r,handlers:n}of(0,d.A)(Xr,this).onMessage)t(r);null==No||null===(e=No.messageDispatcher)||void 0===e||e.onClose((()=>{(0,c.A)(sn,this,dn).call(this,"onMessageClose",new CustomEvent("message.close"))}))}dispatchOnMount(){(0,c.A)(sn,this,dn).call(this,"onMount",new CustomEvent("mount"))}dispatchOnUnmount(){(0,c.A)(sn,this,dn).call(this,"onUnmount",new CustomEvent("unmount"))}}function cn(e){var t=[...Yr,..."page"===this.scope?Qr:[]],r=[];for(var n of t){var a=(0,A.remove)((0,d.A)(Xr,this)[n],(t=>e.has(t.brick)));"onUnmount"===n&&r.push(...a)}for(var o of e){var i,s,l=(0,d.A)(Zr,this).get(o);if(null!=l&&l.length){for(var c of l)c.disconnect();l.length=0,(0,d.A)(Zr,this).delete(o)}Hr(o),null===(i=o.element)||void 0===i||delete i.$$tplStateStore,null===(s=o.element)||void 0===s||s.remove()}var u=new CustomEvent("unmount");for(var{brick:f,handlers:p}of r)kr(p,f.runtimeContext,f)(u)}function un(e){var t=new CustomEvent("mount");for(var{brick:r,handlers:n}of(0,d.A)(Xr,this).onMount)e.has(r)&&kr(n,r.runtimeContext,r)(t);for(var{brick:a,handlers:o}of(0,d.A)(Xr,this).onScrollIntoView)e.has(a)&&(0,c.A)(sn,this,fn).call(this,a,o)}function dn(e,t){for(var{brick:r,handlers:n}of(0,d.A)(Xr,this)[e])kr(n,r.runtimeContext,r)(t);var a=(0,d.A)(tn,this).get(e);if(a)for(var o of a)o()}function fn(e,t){var r,n=null!==(r=t.threshold)&&void 0!==r?r:.1,a=new IntersectionObserver(((r,a)=>{r.forEach((r=>{r.isIntersecting&&r.intersectionRatio>=n&&(kr(t.handlers,e.runtimeContext,e)(new CustomEvent("scroll.into.view")),a.disconnect())}))}),{threshold:n});a.observe(e.element);var o=(0,d.A)(Zr,this).get(e);o||(o=[],(0,d.A)(Zr,this).set(e,o)),o.push(a)}function pn(e){for(var t=e;null!==(r=t)&&void 0!==r&&r.sibling;){var r;t=t.sibling}return t}function vn(e){return hn(e,!1)}function hn(e,t){for(var r,n=e;n;){if(n.tag===qr.BRICK&&!n.portal){if(t)return n;r=n}n=n.sibling}return r}function mn(e){return gn(e,!1)}function gn(e,t){for(var r,n=e;n;){if(n.tag===qr.BRICK&&n.portal){if(t)return n;r=n}if(n.child)n=n.child;else if(n.sibling)n=n.sibling;else{for(var a,o=n.return;o&&!o.sibling;)o=o.return;n=null===(a=o)||void 0===a?void 0:a.sibling}}return r}function yn(e,t){for(var r=new Set,n=e;n;)if(n.tag===qr.BRICK&&r.add(n),n.child)n=n.child;else{if(n===t)break;if(n.sibling)n=n.sibling;else{for(var a,o=n.return;o&&o!==t&&!o.sibling;)o=o.return;if(o===t)break;n=null===(a=o)||void 0===a?void 0:a.sibling}}return r}var An=Symbol.for("root.runtimeContext");function bn(e,t){return wn.apply(this,arguments)}function wn(){return(wn=(0,o.A)((function*(e,t){var r,n,o,i,s,[l,c,u]=Ra((0,a.A)((0,a.A)({},null!==(r=e[An])&&void 0!==r?r:ei()),{},{data:t,pendingPermissionsPreCheck:[]}));null!==(n=l.tplStateStoreMap)&&void 0!==n||(l.tplStateStoreMap=new Map),null!==(o=l.formStateStoreMap)&&void 0!==o||(l.formStateStoreMap=new Map);var d=new ln("fragment"),f={tag:qr.ROOT,createPortal:null},p=e.transform,v=Pe();p&&xe(v,"`useBrick.transform`",'please use "properties" instead, check your useBrick:',e);var h=yield Sa(f,v?e:(0,a.A)((0,a.A)({},e),{},{properties:(0,a.A)((0,a.A)({},e.properties),p)}),l,d,[],{}),m=[...c,...u];if(yield Ca(h,l,m),(null===(i=h.node)||void 0===i?void 0:i.tag)===qr.PLACEHOLDER)throw new Error("The root brick of useBrick cannot be an ignored control node");if(null!==(s=h.node)&&void 0!==s&&s.portal)throw new Error("The root brick of useBrick cannot be a portal brick");return f.child=h.node,{tagName:h.node?h.node.type:null,renderRoot:f,rendererContext:d,scopedStores:m}}))).apply(this,arguments)}function Sn(e,t){var r,{renderRoot:n,rendererContext:a,scopedStores:o}=e;for(var i of(n.createPortal=()=>{var e=document.querySelector("#portal-mount-point");return r=document.createElement("div"),e.appendChild(r),r},Gr(n,t),a.dispatchOnMount(),a.initializeScrollIntoView(),a.initializeMediaChange(),a.initializeMessageDispatcher(),o))i.mountAsyncData();return{portal:r}}function En(e,t){var{rendererContext:r}=e;t.portal&&(zr(t.portal),t.portal.remove()),r.dispatchOnUnmount(),r.dispose()}function kn(e,t,r){if(r)throw new Error("Legacy doTransform does not support options in v3");return kt(t,(0,a.A)((0,a.A)({},ei()),{},{data:e}),{noInject:!0})}function In(e,t){var r=ti(e);Object.assign(r,(0,a.A)((0,a.A)({},t),{},{meta:(0,a.A)((0,a.A)({},r.meta),t.meta),$$fulfilling:null,$$fulfilled:!0,$$registerCustomTemplateProcessed:!1})),U(r)}function Cn(e,t){var r=ti(e),n=!1,a=e=>"".concat(e.path,".").concat(e.exact),o=(e,r)=>e.map((e=>{var i=a(e);return"routes"===e.type?(e.routes=o(e.routes,r),e):i===r?(n=!0,t):e}));r.routes=o(r.routes,a(t)),n||r.routes.unshift(t)}function Rn(e,t,r){var n="".concat(e,".").concat(t.name);Be.define(n,{bricks:t.bricks,proxy:t.proxy,state:t.state}),Tn(e,t.name,r)}function Tn(e,t,r){Mn(e,"${APP.homepage}/_dev_only_/template-preview/".concat(t),[(0,a.A)({brick:t},(0,A.pick)(r,"properties","events","lifeCycle","context","slots","children"))])}function On(e){return"${APP.homepage}/_dev_only_/snippet-preview/".concat(e)}function Pn(e,t){var r;Mn(e,On(t.snippetId),null!==(r=t.bricks)&&void 0!==r&&r.length?t.bricks:[{brick:"span"}],t.context)}var xn,_n=Pn;function Mn(e,t,r,n){var{routes:a}=ti(e),o=a.findIndex((e=>e.path===t)),i={path:t,bricks:r,context:n,menu:!1,exact:!0};-1===o?a.unshift(i):a.splice(o,1,i)}function Bn(e,t){var{tplStateStoreId:r}=t,n=ei();return r?Le((0,a.A)((0,a.A)({},n),{},{tplStateStoreId:r}),"STATE").getValue(e):n.ctxStore.getValue(e)}function Ln(e){var{tplStateStoreId:t}=e,r=ei();return t?Le((0,a.A)((0,a.A)({},r),{},{tplStateStoreId:t}),"STATE").getAllValues():r.ctxStore.getAllValues()}function Nn(e){return Xo().find((t=>t.id?t.id===e:t.filePath.startsWith(e)))}function Un(e){return(0,p.loadBricksImperatively)(e,Xo())}function Fn(){return Zo()}function jn(e,t){return $n.apply(this,arguments)}function $n(){return($n=(0,o.A)((function*(e,t){var r,{appId:n,updateStoryboardType:a,collectUsedContracts:o}=t,i=ti(n);if("route"===a)r={routes:[e]};else if("template"===a)r={meta:{customTemplates:[e]}};else if("snippet"===a){var s,l=On(e.snippetId);r={routes:[null==i||null===(s=i.routes)||void 0===s?void 0:s.find((e=>e.path===l))]}}var c=[];return r&&o&&(yield o(r)).forEach((e=>{var t,[r,n,a]=e.match(/(.*)@(.*):\d\.\d\.\d/);null!=i&&null!==(t=i.meta)&&void 0!==t&&null!==(t=t.contracts)&&void 0!==t&&t.some((e=>e.namespaceId===n&&e.name===a))||c.push(e)})),c}))).apply(this,arguments)}function Dn(e){return Kn.apply(this,arguments)}function Kn(){return(Kn=(0,o.A)((function*(e){var t=ei();return e.value?St(e.value,t):ot(e.resolve,t,{cache:"reload"})}))).apply(this,arguments)}var Vn=[];function Wn(e){xn=e;var t=Ln({tplStateStoreId:e.tplStateStoreId});qn({changeType:"initialize",tplStateStoreId:e.tplStateStoreId,detail:{data:t}})}function Hn(e){Vn.push(e)}function qn(e){setTimeout((()=>{for(var t of Vn)try{t(e)}catch(t){console.error("RealTimeDataInspectHook failed (".concat(e.changeType,"):"),t)}}))}var zn=["onBeforePageLoad","onPageLoad","onBeforePageLeave","onPageLeave","onAnchorLoad","onAnchorUnload"];class Gn{constructor(e,t,r,n){(0,s.A)(this,"type",void 0),(0,s.A)(this,"data",new Map),(0,s.A)(this,"changeEventType",void 0),(0,s.A)(this,"pendingStack",[]),(0,s.A)(this,"hostBrick",void 0),(0,s.A)(this,"stateStoreId",void 0),(0,s.A)(this,"batchUpdate",!1),(0,s.A)(this,"batchUpdateContextsNames",[]),(0,s.A)(this,"rendererContext",void 0),(0,s.A)(this,"routeMap",new WeakMap),this.type=e,this.changeEventType="FORM_STATE"===this.type?"formstate.change":"STATE"===this.type?"state.change":"context.change",this.hostBrick=t,this.rendererContext=r,this.stateStoreId=n}getAllValues(){return Object.fromEntries([...this.data.entries()].map((e=>{var[t,{value:r}]=e;return[t,r]})))}getValue(e){var t;return null===(t=this.data.get(e))||void 0===t?void 0:t.value}notifyRealTimeDataChange(e,t){if(xn){var{tplStateStoreId:r}=xn;(r?"STATE"===this.type&&this.stateStoreId===r:"CTX"===this.type)&&qn({changeType:"update",tplStateStoreId:r,detail:{name:e,value:t}})}}getAffectListByContext(e){var t=[e];return this.data.forEach(((e,r)=>{e.deps&&e.deps.some((e=>t.includes(e)))&&t.push(r)&&t.push(...this.getAffectListByContext(r))})),t.shift(),[...new Set(t)]}updateValues(e,t,r){if(this.batchUpdate=!0,this.batchUpdateContextsNames=e.map((e=>e.name)),[...new Set(this.batchUpdateContextsNames)].length!==this.batchUpdateContextsNames.length)throw new Error("Batch update not allow to update same item");var n={},a={},o=[];e.forEach((e=>{var{name:a,value:i}=r([e]),s=this.data.get(a);o.push(...this.getAffectListByContext(a)),s&&(n[a]=s),this.updateValue(a,i,t)})),o.filter((e=>!n[e])).forEach((e=>{var t=this.data.get(e);t&&(a[e]=t)}));var i=e=>{for(var t in e){var r,n=e[t];null===(r=n.eventTarget)||void 0===r||r.dispatchEvent(new CustomEvent(this.changeEventType,{detail:n.value}))}};i(n),i(a),this.batchUpdate=!1}updateValue(e,t,r,n,o){var i=this.data.get(e);if(!i)throw new Error("".concat(this.type," '").concat(e,"' is not defined"));if("refresh"!==r&&"load"!==r)"replace"===r?i.value=t:(0,v.isObject)(i.value)?Object.assign(i.value,t):(console.warn('Non-object current value of "'.concat(this.type,".").concat(e,'" for "context.assign", try "context.replace" instead.')),i.value=t),this.batchUpdate||i.eventTarget.dispatchEvent(new CustomEvent(this.changeEventType,{detail:i.value}));else{if(!i.useResolve)throw new Error("You can not ".concat(r,' "').concat(this.type,".").concat(e,'" which is not using resolve'));var s;"load"===r&&(i.loaded?s=Promise.resolve(i.value):i.loading&&(s=i.loading));var l=e=>{var t,r;return"FlowApiNotFoundError"===(null==e?void 0:e.name)&&!!(r=null===(t=this.rendererContext)||void 0===t?void 0:t.renderId)&&r!==Zo()};if(s||(s=i.loading=i.load((0,a.A)({cache:"load"===r?"default":"reload"},t))).then((e=>{this.finishLoad(i,e)}),(e=>{!i.useResolve||l(e)||null!=n&&n.error||hr(e)})),n){var c=Kr(n,o);s.then((e=>{c("success")({value:e}),c("finally")()}),(e=>{!l(e)&&n.error&&c("error")(e),c("finally")()}))}}}finishLoad(e,t){e.useResolve&&(e.loaded=!0,e.value=t,e.eventTarget.dispatchEvent(new CustomEvent(this.changeEventType,{detail:t})))}define(e,t,r,n){if(Array.isArray(e)&&e.length>0){var a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"CTX",n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CTX",r=arguments.length>2?arguments[2]:void 0,n=new Map;for(var a of e){var o=[a.if,a.value,a.resolve],i=(0,_.collectMemberUsage)(o,t);if(!r&&"STATE"===t){var s=(0,_.collectMemberUsage)(o,"TPL");for(var l of s.usedProperties)i.usedProperties.add(l);s.hasNonStaticUsage&&(i.hasNonStaticUsage=!0)}n.set(a,i)}return n}(e,r,arguments.length>3?arguments[3]:void 0),a=new Map;for(var i of Array.from(n.keys()).map((e=>e.name))){var s;a.set(i,(null!==(s=a.get(i))&&void 0!==s?s:0)+1)}var l=Array.from(n.values()).some((e=>e.hasNonStaticUsage)),c=new WeakSet,u=new Map,d=new Map([...new Set(e.map((e=>e.name)))].map((e=>[e,new Promise(((t,r)=>{u.set(e,{resolve:t,reject:r})}))]))),f=function(){var e=(0,o.A)((function*(e){var r;c.add(e);var o=yield t(e);n.delete(e);var i=null!==(r=a.get(e.name))&&void 0!==r?r:0;if(o){if(u.get(e.name).resolve(),a.delete(e.name),0===i)throw new Error("Duplicated context defined: ".concat(e.name))}else 1===i?(u.get(e.name).resolve(),a.delete(e.name)):a.set(e.name,i-1);yield v()}));return function(t){return e.apply(this,arguments)}}(),p=l;function v(){return h.apply(this,arguments)}function h(){return h=(0,o.A)((function*(){var e=Array.from(n.entries()).filter(function(e,t){return(r,n)=>t?0===n:![...r[1].usedProperties].some((t=>e.has(t)))}(a,p)).map((e=>e[0])).filter((e=>!c.has(e)));yield Promise.all(e.map(f))})),h.apply(this,arguments)}return{pendingResult:v().then((0,o.A)((function*(){for(var e of(n.size>0&&(function(e,t){var r=new Map(e),n=new Set(Array.from(r.keys()).map((e=>e.name))),a=()=>{var e=!1;for(var[t,o]of r.entries())[...o.usedProperties].some((e=>n.has(e)))||(r.delete(t),n.delete(t.name),e=!0);e&&a()};if(a(),r.size>0)throw new ReferenceError("Circular ".concat(t," detected: ").concat(Array.from(r.keys()).map((e=>e.name)).join(", ")))}(n,r),p=!0,yield v()),u.values()))e.resolve()}))).catch((e=>{for(var t of u.values())t.reject(e);throw e})),pendingContexts:d}}(e,(e=>this.resolve(e,t,r,n)),this.type,Pe(t));this.pendingStack.push(a)}}onChange(e,t){var r;null===(r=this.data.get(e))||void 0===r||r.eventTarget.addEventListener(this.changeEventType,t)}waitFor(e){var t=this;return(0,o.A)((function*(){var r=function*(t){yield Promise.all([...e].map((e=>t.get(e))))};for(var{pendingContexts:n}of t.pendingStack)yield*r(n)}))()}waitForAll(){var e=this;return(0,o.A)((function*(){for(var{pendingContexts:t}of e.pendingStack)for(var r of t.values())r.catch((()=>{}));for(var{pendingResult:n}of e.pendingStack)yield n}))()}mountAsyncData(e){this.data.forEach((t=>{var r;if(t.async&&(!e||null!==(r=this.routeMap.get(e))&&void 0!==r&&r.has(t.name))){if(t.asyncMounted)return void console.error('Async data "'.concat(t.name,'" already mounted. This is a bug of Brick Next, please report it.'));t.asyncMounted=!0,t.loading.then((e=>{this.finishLoad(t,e)}))}}))}resolve(e,t,r,n){var i=this;return(0,o.A)((function*(){if(!(yield Rt(e,t)))return!1;var s,l,c,u,d,f;if(r&&("STATE"===i.type?e.expose:"FORM_STATE"===i.type)&&(s=yield Bt(r,e.name)),void 0===s){if(e.resolve){var p=(0,v.hasOwnProperty)(e,"value");d=e.track&&p&&(0,v.hasOwnProperty)(e.resolve,"if")&&(0,_.strictCollectMemberUsage)(e.resolve.if,i.type).size>0;var h=(0,a.A)({transform:"value"},e.resolve);if(((u=yield Rt(e.resolve,t))||d)&&(l=function(){var e=(0,o.A)((function*(e){var r;return(yield ot(h,t,(0,a.A)((0,a.A)({},e),{},{renderId:null===(r=i.rendererContext)||void 0===r?void 0:r.renderId}))).value}));return function(t){return e.apply(this,arguments)}}()),u)"eager"==(f=e.resolve.async?"async":e.resolve.lazy?"lazy":"eager")?s=yield l():"async"===f&&(c=l());else if(!p)return!1}u&&"eager"===f||void 0===e.value||(s=yield St(e.value,t))}if(i.data.has(e.name))throw new Error("".concat(i.type," '").concat(e.name,"' has already been declared"));var m={name:e.name,value:s,eventTarget:new we,useResolve:u,load:l,loaded:"eager"===f,loading:c,async:"async"===f,deps:[]};if("lazy"===f){var g,{trigger:y}=e.resolve;y&&zn.includes(y)&&(null===(g=i.rendererContext)||void 0===g||g.registerArbitraryLifeCycle(y,(()=>{i.updateValue(e.name,void 0,"load")})))}if(e.onChange&&m.eventTarget.addEventListener(i.changeEventType,kr(e.onChange,t)),e.track){var A=(0,_.strictCollectMemberUsage)(d?[e.resolve,e.value]:l?e.resolve:e.value,i.type);for(var b of(!l&&(m.deps=[...A]),A))i.onChange(b,i.batchAddListener((()=>{m.useResolve=d?Ot(e.resolve,t):!!l,m.useResolve?i.updateValue(e.name,{cache:"default"},"refresh"):i.updateValue(e.name,kt(e.value,t),"replace")}),e))}if(m.eventTarget.addEventListener(i.changeEventType,(t=>{i.notifyRealTimeDataChange(e.name,t.detail)})),i.data.set(e.name,m),Array.isArray(n))for(var w of n){var S=i.routeMap.get(w);S?S.add(e.name):i.routeMap.set(w,new Set([e.name]))}return!0}))()}disposeDataInRoutes(e){for(var t of e){var r=this.routeMap.get(t);if(void 0!==r)for(var n of r)this.data.delete(n)}}batchAddListener(e,t){return r=>{this.batchUpdate&&this.batchUpdateContextsNames.includes(t.name)||e(r)}}}var Yn=r(1369);function Qn(e,t,r){var n,a,{reversedProxies:o,asyncHostPropertyEntries:i,externalSlots:s,tplStateStoreId:l,hostBrick:c}=e;if(t&&o){var u=o.properties.get(t);u&&(a=i,n=u.map((e=>{var{from:t,to:r}=e,n=a.filter((e=>e[0]===t));if(n.length>0&&r.refProperty)return[r.refProperty,Bt(n,t),!0]})).filter(Boolean));var d=o.slots.get(t);if(d&&s){var f=new Map;for(var{from:p,to:h}of d){var m,g,y,b,w=null!==(m=null===(g=s[p])||void 0===g?void 0:g.bricks)&&void 0!==m?m:[];if(w.length){var S=null!==(y=h.refSlot)&&void 0!==y?y:p,E=f.get(S);if(!E){E=[];for(var k=(0,v.hasOwnProperty)(r,S)?r[S].bricks.length+1:1,I=0;I<k;I+=1)E.push([]);f.set(S,E)}var C=null!==(b=h.refPosition)&&void 0!==b?b:-1,R=(0,v.hasOwnProperty)(c.runtimeContext,"forEachItem");E[(0,A.clamp)(C<0?E.length+C:C,0,E.length-1)].push(..."base-layout-v3.tpl-scroll-load-list"!==e.__temporary_tpl_tag_name&&"shrcb-homepage.tpl-custom-scroll-load-list"!==e.__temporary_tpl_tag_name||R?Jn(w,R,c.runtimeContext.forEachItem,c.runtimeContext.forEachIndex):w)}}var T=function(){(0,v.hasOwnProperty)(r,O)||(r[O]={type:"bricks",bricks:[]});var e=r[O];e.bricks=P.flatMap(((t,r)=>r<e.bricks.length?t.concat(e.bricks[r]):t)),0===e.bricks.length&&delete r[O]};for(var[O,P]of f.entries())T()}}return{[Jt]:n,[Xt]:l}}function Jn(e,t,r,n){return e.map((e=>{var o,{children:i,slots:s,[Zt]:l,[er]:c,[tr]:u}=e,d=(0,y.A)(e,["children","slots",Zt,er,tr].map(Yn.A));return(0,a.A)((0,a.A)((0,a.A)({},d),t?{[Zt]:r,[er]:n}:{[tr]:!0}),{},{slots:":forEach"===d.brick?Pa(i,s):Object.fromEntries(Object.entries(null!==(o=Pa(i,s))&&void 0!==o?o:{}).map((e=>{var[a,o]=e;return[a,"routes"===o.type?{type:"routes",routes:Xn(o.routes,t,r,n)}:{type:"bricks",bricks:Jn(o.bricks,t,r,n)}]})))})}))}function Xn(e,t,r,n){return e.map((e=>"routes"===e.type?(0,a.A)((0,a.A)({},e),{},{routes:Xn(e.routes,t,r,n)}):"redirect"===e.type?e:(0,a.A)((0,a.A)({},e),{},{bricks:Jn(e.bricks,t,r,n)})))}var Zn=["properties","slots","children"];function ea(e,t){function r(e){return(0,v.isObject)(e)&&"function"!=typeof e?Array.isArray(e)?e.map(r):Object.fromEntries(Object.entries(e).map((e=>{var[t,a]=e;return(0,v.isObject)(a)&&"useBrick"===t?Array.isArray(a)?[t,a.map(n)]:[t,n(a)]:[t,r(a)]})).concat(Object.getOwnPropertySymbols(e).map((t=>[t,e[t]])))):e}function n(e){var{properties:o,slots:i,children:s}=e,l=(0,y.A)(e,Zn),c=Pa(s,i),u=Object.fromEntries(Object.entries(null!=c?c:{}).map((e=>{var t,[r,a]=e;return[r,{type:"bricks",bricks:(null!==(t=a.bricks)&&void 0!==t?t:[]).map(n)}]})));return(0,a.A)((0,a.A)({},l),{},{properties:r(o),slots:u},Qn(t,l.ref,u))}return r(e)}var ta=["slots","children"],ra=["properties","slots","children"];function na(e,t,r,n,o){var i,s=(0,A.uniqueId)("tpl-state-"),l=(0,a.A)((0,a.A)({},r.runtimeContext),{},{tplStateStoreId:s});delete l.forEachItem,delete l.forEachIndex,delete l.formStateStoreId;var c=new Gn("STATE",r,o,s);l.tplStateStoreMap.set(s,c),l.tplStateStoreScope&&l.tplStateStoreScope.push(c);var{bricks:u,proxy:d,state:f,contracts:p}=Be.get(e);null==No||null===(i=No.flowApi)||void 0===i||i.collectWidgetContract(p),c.define(f,l,n);var{slots:v,children:h}=t,m=(0,y.A)(t,ta),g=(0,a.A)((0,a.A)({},m),{},{brick:e});r.tplHostMetadata={internalBricksByRef:new Map,tplStateStoreId:s,proxy:d};var b={properties:new Map,slots:new Map};if(null!=d&&d.properties)for(var[w,S]of Object.entries(d.properties)){var E=b.properties.get(S.ref);E||(E=[],b.properties.set(S.ref,E)),E.push({from:w,to:S})}if(null!=d&&d.slots)for(var[k,I]of Object.entries(d.slots)){var C=b.slots.get(I.ref);C||(C=[],b.slots.set(I.ref,C)),C.push({from:k,to:I})}var R={reversedProxies:b,asyncHostPropertyEntries:n,externalSlots:Pa(h,v),tplStateStoreId:s,hostBrick:r,__temporary_tpl_tag_name:e};return g.slots={"":{type:"bricks",bricks:u.map((e=>aa(e,R)))}},g}function aa(e,t){null===e.if&&delete e.if;var{properties:r,slots:n,children:o}=e,i=(0,y.A)(e,ra),s=Pa(o,n),l=Object.fromEntries(Object.entries(null!=s?s:{}).map((e=>{var r,[n,a]=e;return[n,{type:"bricks",bricks:(null!==(r=a.bricks)&&void 0!==r?r:[]).map((e=>aa(e,t)))}]})));return(0,a.A)((0,a.A)({},i),{},{properties:ea(r,t),slots:l},Qn(t,i.ref,l))}var oa="form-renderer.form-renderer",ia=Symbol.for("form.stateStoreId"),sa=["forms.general-form","form.general-form","eo-form"];function la(e,t,r){var{id:n,bricks:o,events:i,context:s,mountPoint:l,instanceId:c}=e,{brick:u,properties:d}=e,f=t.find((e=>e.fieldId===n));if(f){var p=function(e){var t,r={id:e.fieldId,name:e.fieldId,label:e.name,dataset:{testid:e.fieldId}},n=()=>{var t,r;return{readOnly:null===(t=e.limit)||void 0===t?void 0:t.includes("READONLY"),required:null===(r=e.limit)||void 0===r?void 0:r.includes("REQUIRED")}};switch(e.fieldType){case"INT":t={brick:"forms.general-input-number",properties:(0,a.A)((0,a.A)((0,a.A)({},r),n()),{},{placeholder:e.description,precision:0,inputBoxStyle:{width:"100%"}})};break;case"BOOLEAN":t={brick:"forms.general-switch",properties:(0,a.A)((0,a.A)({},r),n())};break;case"FLOAT":t={brick:"forms.general-input-number",properties:(0,a.A)((0,a.A)((0,a.A)({},r),n()),{},{placeholder:e.description,inputBoxStyle:{width:"100%"}})};break;case"ENUM":t={brick:"forms.general-select",properties:(0,a.A)((0,a.A)((0,a.A)({},r),n()),{},{options:[{label:"选项一",value:1},{label:"选项二",value:2}],placeholder:e.description,inputBoxStyle:{width:"100%"}})};break;case"ENUMS":t={brick:"forms.general-select",properties:(0,a.A)((0,a.A)((0,a.A)({},r),n()),{},{mode:"multiple",options:[{label:"选项一",value:1},{label:"选项二",value:2}],placeholder:e.description,inputBoxStyle:{width:"100%"}})};break;case"DATE":case"TIME":t={brick:"forms.general-date-picker",properties:(0,a.A)((0,a.A)((0,a.A)({},r),n()),{},{placeholder:e.description})};break;case"IP":t={brick:"forms.general-input",properties:(0,a.A)((0,a.A)((0,a.A)({},r),n()),{},{placeholder:e.description,pattern:"((^s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))s*$)|(^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*$))",message:{pattern:"输入字符不匹配IP格式"}})};break;case"JSON":t={brick:"forms.general-textarea",properties:(0,a.A)({},r)};break;case"ARRAY":t={brick:"forms.general-select",properties:(0,a.A)({},r)};break;case"STRUCTURE":case"STRUCTURE_ARRAY":t={brick:"forms.cmdb-instance-select-panel",properties:(0,a.A)((0,a.A)({},r),n())};break;default:t={brick:"forms.general-input",properties:(0,a.A)((0,a.A)((0,a.A)({},r),n()),{},{placeholder:e.description})}}return t}(f);u||(u=p.brick),d=(0,a.A)((0,a.A)({},p.properties),d)}var h={brick:u,properties:d,iid:c,slot:l,events:i,context:s,children:ca(o,t,r),[ia]:r};return(0,v.hasOwnProperty)(e,"if")&&(h.if=e.if),h}function ca(e,t,r){if(Array.isArray(e))return e.map((e=>la(e,t,r)))}var ua,da,fa,pa=["blockingList","node","menuRequestNode","hasTrackingControls"],va=["if","permissionsPreCheck"],ha=["formData"],ma=["src"],ga=["href"];function ya(e,t,r,n,a,o,i,s){return Aa.apply(this,arguments)}function Aa(){return Aa=(0,o.A)((function*(e,t,r,n,o,i,s,l){var c=yield function(e,t){return Gt.apply(this,arguments)}(t,r),u={blockingList:[]},d=u.menuRequestNode={return:i};switch(c){case"missed":break;case"unauthenticated":u.unauthenticated=!0;break;default:var f,v=u.route=c.route;u.path=c.match.path;var h=(0,a.A)((0,a.A)({},r),{},{match:c.match});l&&h.ctxStore.disposeDataInRoutes(t);var m=o.concat(v);h.ctxStore.define(v.context,h,void 0,m),h.pendingPermissionsPreCheck.push(null==No||null===(f=No.checkPermissions)||void 0===f?void 0:f.preCheckPermissionsForBrickOrRoute(v,(e=>St(e,h))));var{preLoadBricks:g}=v;if(Array.isArray(g)&&u.blockingList.push((0,p.loadBricksImperatively)(g,Xo())),"redirect"===v.type){var y;if("string"!=typeof(y="string"==typeof v.redirect?yield St(v.redirect,h):(yield ot((0,a.A)({transform:"redirect"},v.redirect),h)).redirect))throw console.error("Unexpected redirect result:",y),new Error("Unexpected type of redirect result: ".concat(typeof y));u.redirect={path:y}}else{var A,b=function(e,t){if(e){if("brick"===e.type)throw console.error("Set menu with brick is dropped in v3:",e),new Error("Set menu with brick is dropped in v3");if("resolve"!==e.type)return St(e,t);console.warn("Set menu with resolve is not supported in v3 yet:",e)}}(v.menu,h);b&&(d.request=b),l||n.memoizeMenuRequestNode(t,d),Ta(u,A="routes"===v.type?yield ya(e,v.routes,h,n,m,d,s):yield ba(e,v.bricks,h,n,m,d,s)),Oa(d,A.menuRequestNode)}}return u})),Aa.apply(this,arguments)}function ba(e,t,r,n,a,o,i,s,l){return wa.apply(this,arguments)}function wa(){return wa=(0,o.A)((function*(e,t,r,n,a,o,i,s,l){!function(e,t,r){function n(e){if((0,v.isObject)(e)&&"function"!=typeof e)if(Array.isArray(e))e.map(n);else for(var[t,r]of Object.entries(e))(0,v.isObject)(r)&&"useBrick"===t?Array.isArray(r)?r.forEach((e=>a(e,!0))):a(r,!0,!0):n(r)}function a(e,o,i){if(o&&(e[An]=t),n(e.properties),!r||i){var s=Pa(e.children,e.slots);for(var l of Object.values(null!=s?s:{}))for(var c of null!==(u=l.bricks)&&void 0!==u?u:[]){var u;a(c,o)}}}for(var o of e)a(o)}(t,r,!0);var c={blockingList:[]},u=null!=l?l:[];return(yield Promise.all(t.map(((t,l)=>Sa(e,t,r,n,a,o,i,u.concat(l),s&&new Map(s)))))).forEach(((t,r)=>{t.hasTrackingControls&&n.memoize(i,u.concat(r),t.node,e),Ta(c,t)})),c})),wa.apply(this,arguments)}function Sa(e,t,r,n,a,o,i){return Ea.apply(this,arguments)}function Ea(){return Ea=(0,o.A)((function*(e,t,r,n,i,s,l){var c,u,d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[],f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:new Map,h={blockingList:[]};if(!t.brick)return t.template?console.error("Legacy templates are dropped in v3:",t):console.error("Invalid brick:",t),h;var{if:m,permissionsPreCheck:g}=t,b=(0,y.A)(t,va);if(function(e){return"string"==typeof e?(0,x.isTrackAll)(e):dt(e)&&(0,x.isTrackAll)(ft(e))}(m))return Sa(e,(0,a.A)({brick:":if",dataSource:m,permissionsPreCheck:g,slots:{"":{type:"bricks",bricks:[b]}}},Object.getOwnPropertySymbols(t).reduce(((e,r)=>(0,a.A)((0,a.A)({},e),{},{[r]:t[r]})),{})),r,n,i,s,l,d,f);var S=t[Xt],E=t[ia],k=(0,a.A)((0,a.A)({},r),{},{tplStateStoreId:S,formStateStoreId:E});(0,v.hasOwnProperty)(t,Zt)?(k.forEachItem=t[Zt],k.forEachIndex=t[er]):t[tr]&&(delete k.forEachItem,delete k.forEachIndex);var{context:I}=t;if(Array.isArray(I)&&I.length>0){var C=Pe(k);xe(C,"Defining context on bricks","check your brick:",t),C||k.ctxStore.define(I,k)}if(k.pendingPermissionsPreCheck.push(null==No||null===(c=No.checkPermissions)||void 0===c?void 0:c.preCheckPermissionsForBrickOrRoute(t,(e=>St(e,k)))),!(yield function(e,t){return xt.apply(this,arguments)}(t,k)))return h;var R=t.brick;if(R.startsWith(":")){var T;!function(e){if(":forEach"!==e&&":if"!==e&&":switch"!==e)throw new Error('Unknown storyboard control node: "'.concat(e,'"'))}(R);var{dataSource:O}=t,P=function(){var r=(0,o.A)((function*(r){var a,o=yield St(O,r),c=":forEach"===R?"":":switch"===R?String(o):o?"":"else",u=Pa(t.children,t.slots),p=u&&(0,v.hasOwnProperty)(u,c)&&(null===(a=u[c])||void 0===a?void 0:a.bricks);if(!Array.isArray(p))return{blockingList:[]};switch(R){case":forEach":return Array.isArray(o)?function(e,t,r,n,a,o,i,s,l,c){return ka.apply(this,arguments)}(e,o,p,r,n,i,s,l,f,d):{blockingList:[]};case":if":case":switch":return ba(e,p,r,n,i,s,l,f,d)}}));return function(e){return r.apply(this,arguments)}}(),M=function(){var t=(0,o.A)((function*(t){var r,n=yield P(t);return null!==(r=n.node)&&void 0!==r||(n.node={tag:qr.PLACEHOLDER,return:e}),n}));return function(e){return t.apply(this,arguments)}}(),B=yield M(k),{onMount:L,onUnmount:N}=null!==(T=t.lifeCycle)&&void 0!==T?T:{},{contextNames:U,stateNames:F}=Mt(O);if(U||F){B.hasTrackingControls=!0;var j=0,$=function(){var t=(0,o.A)((function*(){var t=++j,[r,a,o]=Ra(k),i=yield M(r),s=[...a,...o];if(yield Ca(i,r,s),j===t)for(var c of(N&&kr(N,k)(new CustomEvent("unmount",{detail:{rerender:!0}})),n.reRender(l,d,i.node,e),L&&kr(L,r)(new CustomEvent("mount",{detail:{rerender:!0}})),s))c.mountAsyncData()}));return function(){return t.apply(this,arguments)}}(),D=(0,A.debounce)($);if(U)for(var K of U)k.ctxStore.onChange(K,D);if(F)for(var V of F)Le(k,"STATE",': "'.concat(O,'"')).onChange(V,D)}return L&&n.registerArbitraryLifeCycle("onMount",(()=>{kr(L,k)(new CustomEvent("mount",{detail:{rerender:!1}}))})),N&&n.registerArbitraryLifeCycle("onUnmount",(()=>{kr(N,k)(new CustomEvent("unmount",{detail:{rerender:!1}}))})),B}/\.tpl-/.test(R)&&!Be.get(R)&&(yield xa((0,p.loadBricksImperatively)([R],Xo()),"brick",R,n.unknownBricks));var W,H,q=function(e,t){if(!e.includes(".")&&e.startsWith("tpl-")&&t){var r="".concat(t,".").concat(e);if(Be.get(r))return r}return!!Be.get(e)&&e}(R,null===(u=k.app)||void 0===u?void 0:u.id);if(q){var z,G=null!==(z=f.get(q))&&void 0!==z?z:0;if(G>=10)throw new Error('Maximum custom template stack overflowed: "'.concat(q,'"'));f.set(q,G+1)}else R.includes("-")&&!customElements.get(R)&&(R===oa?customElements.define(oa,class extends HTMLElement{get $$typeof(){return"form-renderer"}}):h.blockingList.push(xa((0,p.enqueueStableLoadBricks)([R],Xo()),"brick",R,n.unknownBricks)));if(R===oa){var Y,Q=null!==(Y=t.properties)&&void 0!==Y?Y:{};({formData:W}=Q),H=(0,y.A)(Q,ha)}else H=t.properties;var J=[],X=function(e,t,r){return(0,v.isObject)(e)?Object.entries(e).map((e=>{var[n,a]=e,{contextNames:o,stateNames:i,formStateNames:s}=Mt(a);return(o||i||s)&&r.push({contextNames:o,stateNames:i,formStateNames:s,propName:n,propValue:a}),[n,St(a,t,{$$lazyForUseBrick:!0,$$stateOfUseBrick:"useBrick"===n?At.USE_BRICK:At.INITIAL})]})):[]}(H,k,J),Z=t[Jt];Z&&X.push(...Z);var ee="script"===R;if(ee||"link"===R){var te=yield Nt(X);if(ee?te.src:"stylesheet"===te.rel&&te.href){var re,ne=null!==(re=window.PUBLIC_ROOT)&&void 0!==re?re:"";if(ee){var{src:ae}=te,oe=(0,y.A)(te,ma);yield xa((0,p.loadScript)(ae,ne,oe),"script",ae,"silent")}else{var{href:ie}=te;oe=(0,y.A)(te,ga),yield xa((0,p.loadStyle)(ie,ne,oe),"stylesheet",ie,"silent")}return h}}var se={tag:qr.BRICK,type:q||R,return:e,slotId:l,events:t.events,runtimeContext:k,portal:t.portal,iid:t.iid,ref:t.ref};h.node=se;var le=(0,_.strictCollectMemberUsage)([t.events,t.lifeCycle],"PROCESSORS",2);le.size>0&&h.blockingList.push(xa((0,p.loadProcessorsImperatively)(le,Xo()),"processors",[...le].join(", "),n.unknownBricks));var ce=[],ue=function(){var e=(0,o.A)((function*(){se.properties=yield Nt(X),function(e,t){var r=function(t){var r=()=>{e.element&&jt(e.element,{[t.propName]:t.propValue},e.runtimeContext)};if(t.contextNames)for(var n of t.contextNames)e.runtimeContext.ctxStore.onChange(n,r);if(t.stateNames){var a=Le(e.runtimeContext,"STATE",': "'.concat(t.propValue,'"'));for(var o of t.stateNames)a.onChange(o,r)}if(t.formStateNames){var i=Je(e.runtimeContext,"FORM_STATE",': "'.concat(t.propValue,'"'));for(var s of t.formStateNames)i.onChange(s,r)}};for(var n of t)r(n)}(se,J)}));return function(){return e.apply(this,arguments)}}();ce.push(ue()),n.registerBrickLifeCycle(se,t.lifeCycle);var de,fe=t;q?fe=na(q,t,se,X,n):R===oa&&(fe=function(e,t,r,n,o){var i,s,l="string"==typeof e?JSON.parse(e):e,c=(0,A.uniqueId)("form-state-"),u=(0,a.A)((0,a.A)({},r.runtimeContext),{},{formStateStoreId:c});delete u.forEachItem,delete u.forEachIndex,delete u.tplStateStoreId;var d=new Gn("FORM_STATE",void 0,o,c);u.formStateStoreMap.set(c,d),u.formStateStoreScope&&u.formStateStoreScope.push(d);var f=null!==(i=l.context)&&void 0!==i?i:[];f.some((e=>"params"===e.name))||f.push({name:"params"}),d.define(f,u,n);var p=la(l.formSchema,l.fields,c);return sa.includes(p.brick)&&t.events&&(p.events=function(e,t){var r=null!=e?e:{};for(var[n,a]of Object.entries(t))r[n]=(0,v.hasOwnProperty)(r,n)?[r[n],a].flat():a;return r}(p.events,t.events)),"boolean"!=typeof(null===(s=t.properties)||void 0===s?void 0:s.renderRoot)||t.properties.renderRoot?(0,a.A)((0,a.A)({},t),{},{slots:void 0,children:[{brick:"eo-micro-view",properties:{style:{padding:"12px"}},children:[p]}]}):(0,a.A)((0,a.A)({},t),{},{slots:void 0,children:[p]})}(W,t,se,X,n)),fe.portal&&(se.slotId=void 0),q?(delete(de=(0,a.A)({},k)).forEachItem,delete de.forEachIndex):de=k;var pe=function(){var e=(0,o.A)((function*(){var e=Pa(fe.children,fe.slots);if(e){var t=new Map,r=yield Promise.all(Object.entries(e).map(((e,r)=>{var[l,c]=e;if("routes"!==c.type)return ba(se,c.bricks,de,n,i,s,l,f);var u=i[i.length-1];return null!=u&&u.incrementalSubRoutes&&(t.set(r,l),n.performIncrementalRender(c,i,function(){var e=(0,o.A)((function*(e,t){var{homepage:r}=de.app,{pathname:o}=e;if(!w(r,o)||!i.every((e=>{var n,a;return(n=Yt(e,r,t.pathname))&&(a=Yt(e,r,o))&&(e!==u||(0,A.isEqual)(n.params,a.params))})))return!1;var d,[f,p,v]=Ra((0,a.A)((0,a.A)({},de),{},{location:e,query:new URLSearchParams(e.search)})),h=!1,m=[];try{if((d=yield ya(se,c.routes,f,n,i,s,l,!0)).route){if(n.reBailout(d))return!0;m=[...p,...v],yield Ca(d,f,[f.ctxStore,...m])}yield n.reMergeMenuRequestNodes(s,c.routes,d.menuRequestNode)}catch(e){console.error("Incremental sub-router failed:",e);var g=n.reCatch(e,se);if(!g)return!0;({failed:h,output:d}=g),yield n.reMergeMenuRequestNodes(s,c.routes,d.menuRequestNode)}if(n.reRender(l,[],d.node,se),!h)for(var y of(f.ctxStore.mountAsyncData(d.route),m))y.mountAsyncData();return!!d.route||null}));return function(t,r){return e.apply(this,arguments)}}())),ya(se,c.routes,de,n,i,s,l)}))),l=(0,a.A)((0,a.A)({},h),{},{node:void 0,blockingList:[],menuRequestNode:void 0});r.forEach(((e,r)=>{t.has(r)&&n.memoize(t.get(r),[],e.node,se),Ta(l,e),function(e,t){var r=t.menuRequestNode;if(r)if(e.menuRequestNode){for(var n=e.menuRequestNode;n.sibling;)n=n.sibling;n.sibling=r}else e.menuRequestNode=r}(l,e)})),l.node&&(se.child=l.node),Ta(h,(0,a.A)((0,a.A)({},l),{},{node:void 0})),Oa(s,h.menuRequestNode=l.menuRequestNode)}}));return function(){return e.apply(this,arguments)}}();return ce.push(pe()),yield Promise.all(ce),h})),Ea.apply(this,arguments)}function ka(){return(ka=(0,o.A)((function*(e,t,r,n,o,i,s,l,c,u){var d={blockingList:[]},f=t.length;return(yield Promise.all(t.map(((t,d)=>Promise.all(r.map(((r,p)=>Sa(e,r,(0,a.A)((0,a.A)({},n),{},{forEachItem:t,forEachIndex:d}),o,i,s,l,u.concat(d*f+p),c&&new Map(c))))))))).flat().forEach(((t,r)=>{t.hasTrackingControls&&o.memoize(l,u.concat(r),t.node,e),Ta(d,t)})),d}))).apply(this,arguments)}function Ia(e){return[e.ctxStore,...e.tplStateStoreMap.values(),...e.formStateStoreMap.values()]}function Ca(e,t,r){return(0,p.flushStableLoadBricks)(),Promise.all([...e.blockingList,...r.map((e=>e.waitForAll())),...t.pendingPermissionsPreCheck])}function Ra(e){var t=[],r=[];return[(0,a.A)((0,a.A)({},e),{},{tplStateStoreScope:t,formStateStoreScope:r}),t,r]}function Ta(e,t){var{blockingList:r,node:n,menuRequestNode:a,hasTrackingControls:o}=t,i=(0,y.A)(t,pa);if(e.blockingList.push(...r),n)if(e.node){for(var s=e.node;s.sibling;)s=s.sibling;s.sibling=n}else e.node=n;Object.assign(e,i)}function Oa(e,t){if(t)if(e.child){for(var r=e.child;r.sibling;)r=r.sibling;r.sibling=t}else e.child=t}function Pa(e,t){var r=t;if(Array.isArray(e)&&!r)for(var n of(r={},e)){var a,o=null!==(a=n.slot)&&void 0!==a?a:"";(0,v.hasOwnProperty)(r,o)||(r[o]={type:"bricks",bricks:[]}),r[o].bricks.push(n)}return r}function xa(e,t,r,n){return"silent"===n?e.catch((e=>{console.error('Load %s "%s" failed:',t,r,e)})):e}function _a(){if(!ua){if(ua={isInIframe:!1,isInIframeOfSameSite:!1,isInIframeOfNext:!1,isInIframeOfVisualBuilder:!1,isInIframeOfLegacyConsole:!1},window!==window.parent){ua.isInIframe=!0;try{if(window.origin===window.parent.origin){ua.isInIframeOfSameSite=!0;var e="/next/"===g(),t=window.parent.location.pathname,r=t.startsWith("/next/");ua.isInIframeOfNext=0==(Number(e)^Number(r)),ua.isInIframeOfVisualBuilder=t.startsWith("".concat(r?"/next":"","/visual-builder/")),ua.isInIframeOfLegacyConsole=e&&!r}}catch(e){}}Object.freeze(ua)}return ua}function Ma(e){var t;if(!e.$$registerCustomTemplateProcessed){e.$$registerCustomTemplateProcessed=!0;var r=null===(t=e.meta)||void 0===t?void 0:t.customTemplates;if(Array.isArray(r))for(var n of r){var a=n.name.includes(".")?n.name:"".concat(e.app.id,".").concat(n.name);Be.define(a,n)}}}function Ba(){return Ba=(0,o.A)((function*(e){if(!e.$$fulfilled)return e.$$fulfilling||(e.$$fulfilling=function(e){return La.apply(this,arguments)}(e)),e.$$fulfilling})),Ba.apply(this,arguments)}function La(){return(La=(0,o.A)((function*(e){var t;yield null==No||null===(t=No.fulfilStoryboard)||void 0===t?void 0:t.call(No,e),U(e),Object.assign(e,{$$fulfilled:!0,$$fulfilling:null})}))).apply(this,arguments)}function Na(e){var t;t="8.2"===e?"v8-2":"v8",document.documentElement.dataset.ui=t}var Ua="basic.show-watermark",Fa=new WeakMap,ja=new WeakMap,$a=new WeakMap,Da=new WeakMap,Ka=new WeakMap,Va=new WeakMap,Wa=new WeakMap,Ha=new WeakMap,qa=new WeakMap,za=new WeakMap,Ga=new WeakMap,Ya=new WeakMap,Qa=new WeakSet;class Ja{constructor(e){(0,i.A)(this,Qa),(0,l.A)(this,Fa,void 0),(0,l.A)(this,ja,!1),(0,l.A)(this,$a,void 0),(0,l.A)(this,Da,void 0),(0,l.A)(this,Ka,void 0),(0,l.A)(this,Va,void 0),(0,l.A)(this,Wa,new Set),(0,l.A)(this,Ha,0),(0,l.A)(this,qa,void 0),(0,l.A)(this,za,void 0),(0,l.A)(this,Ga,void 0),(0,l.A)(this,Ya,void 0),(0,u.A)(Fa,this,e);var t=O();window.addEventListener("beforeunload",(e=>{(0,c.A)(Qa,this,Xa).call(this,{})?(e.preventDefault(),e.returnValue=""):delete e.returnValue})),t.block(((e,t)=>(0,c.A)(Qa,this,Xa).call(this,{location:e,action:t})))}getRenderId(){return(0,d.A)(qa,this)}getRuntimeContext(){return(0,d.A)(Ka,this)}getRecentApps(){return{currentApp:(0,d.A)(za,this),previousApp:(0,d.A)(Ga,this)}}getNavConfig(){return(0,d.A)(Ya,this)}bootstrap(){var e=this;window.AbortController&&(da=new AbortController,P.http.interceptors.request.use((e=>{var t;return(0,a.A)((0,a.A)({},e),{},{options:(0,a.A)((0,a.A)({},e.options),{},{signal:null!==(t=e.options)&&void 0!==t&&t.noAbortOnRouteChange?null:da.signal})})})));var t=O();(0,u.A)($a,this,t.location);var r=0;return t.listen(function(){var t=(0,o.A)((function*(t,n){var o,i,s,l,f,p,v=++r,h={hash:void 0,state:void 0};if(void 0!==t.key&&("POP"!==n||void 0!==(0,d.A)($a,e).key&&!1!==(null===(o=(0,d.A)($a,e).state)||void 0===o?void 0:o.notify))||(h.key=void 0),((0,m.locationsAreEqual)((0,a.A)((0,a.A)({},(0,d.A)($a,e)),h),(0,a.A)((0,a.A)({},t),h))||"POP"!==n&&!1===(null===(i=t.state)||void 0===i?void 0:i.notify))&&(f=!0),f||null!==(s=t.state)&&void 0!==s&&s.noIncremental||(f=yield null===(p=(0,d.A)(Va,e))||void 0===p?void 0:p.didPerformIncrementalRender(t,(0,d.A)($a,e))),r===v)if(f)(0,u.A)($a,e,t);else{if(da&&(da.abort(),da=new AbortController),(0,u.A)($a,e,t),null===(l=(0,d.A)(Va,e))||void 0===l||l.dispatchPageLeave(),"POP"===n&&S(b((0,d.A)(Fa,e),t.pathname)))return void window.location.reload();(0,d.A)(ja,e)?(0,u.A)(Da,e,t):(q("locationChange"),(0,c.A)(Qa,e,eo).call(e,t).catch(hr))}}));return function(e,r){return t.apply(this,arguments)}}()),(0,c.A)(Qa,this,eo).call(this,t.location)}}function Xa(e){var t,r=O(),n=r.getBlockMessage();null===(t=(0,d.A)(Va,this))||void 0===t||t.dispatchBeforePageLeave(e);var a=r.getBlockMessage();return!n&&a&&r.unblock(),a}function Za(e,t,r){var n,a;if((0,u.A)(Ha,this,(n=(0,d.A)(Ha,this),a=n++,n)),a>10){var o='Infinite redirect detected: from "'.concat(r.pathname).concat(r.search).concat(r.hash,'" to "').concat(e,'"');throw new Error(o)}O().replace(e,t)}function eo(e){return to.apply(this,arguments)}function to(){return(to=(0,o.A)((function*(e){(0,u.A)(ja,this,!0);try{yield(0,c.A)(Qa,this,ro).call(this,e)}finally{if((0,u.A)(ja,this,!1),(0,d.A)(Da,this)){var t=(0,d.A)(Da,this);(0,u.A)(Da,this,void 0),yield(0,c.A)(Qa,this,eo).call(this,t)}}}))).apply(this,arguments)}function ro(e){return no.apply(this,arguments)}function no(){return no=(0,o.A)((function*(e){var t,r,n,i,s=this,l=(0,u.A)(qa,this,(0,A.uniqueId)("render-id-"));tt=new WeakSet,at.clear(),null==No||null===(t=No.flowApi)||void 0===t||t.clearCollectWidgetContract(),O().unblock();var f=null==No||null===(r=No.pageView)||void 0===r?void 0:r.create(),v=b((0,d.A)(Fa,this),e.pathname),h=null===(n=(0,d.A)(Ka,this))||void 0===n?void 0:n.app,m=null==v||null===(i=v.app)||void 0===i?void 0:i.id;window.BOOTSTRAP_UNION_FILE&&m&&m!==(null==h?void 0:h.id)&&function(e){var{appId:t,version:r}=e;window.APP_ROOT_TPL&&(window.APP_ID=t,window.APP_ROOT=window.APP_ROOT_TPL.replace("{id}",t).replace("{version}",r))}({appId:m,version:v.app.currentVersion}),null!=v&&v.app&&(yield function(e){return Ba.apply(this,arguments)}(v));var g=(0,u.A)(za,this,null==v?void 0:v.app);!function(){var e,t,r,n,o,i,s,l,c=qo().getFeatureFlags(),u=qo().getMiscSettings();if(c["show-watermark"]){var d="0.0.0"===(null===(e=window.APP_ROOT)||void 0===e||null===(e=e.match(/versions\/([^/]+)\//))||void 0===e?void 0:e[1])||"0.0.0"===(null===(t=window.APP_ROOT)||void 0===t||null===(t=t.match(/micro-apps\/(?:v2|v3)\/[^/]+\/([^/]+)/))||void 0===t?void 0:t[1]),f=null!==(r=null==No||null===(n=No.auth)||void 0===n||null===(n=n.getAuth())||void 0===n?void 0:n.username)&&void 0!==r?r:"",v=null!==(o=u.watermarkConfig)&&void 0!==o?o:{flags:{}},h=(0,a.A)({content:[..."string"==typeof v.content?[v.content]:null!==(i=v.content)&&void 0!==i?i:[],null!==(s=v.flags)&&void 0!==s&&s["show-development"]&&d?"Development":"",null!==(l=v.flags)&&void 0!==l&&l["show-user"]?f:""].filter(Boolean),zIndex:1001,width:200,font:{fontSize:28},gap:[190,190]},(0,A.omit)(v,["content","flags"]));fa?fa.resolve(h):(0,p.loadBricksImperatively)([Ua],Xo()).then((()=>{(fa=document.createElement(Ua)).resolve(h)}),(e=>{console.error("Load watermark service failed:",e)}))}}();var y,w=h&&g?h.id!==g.id:h!==g,S=qo().getFeatureFlags(),E=(0,d.A)(Va,this),k=(t,r)=>{null==f||f({status:"redirected"}),(0,d.A)(Wa,this).add(E),(0,c.A)(Qa,this,Za).call(this,t,r,e)},I=()=>{var t=S["sso-enabled"]?"/sso-auth/login":"/auth/login";cr(e),k(t,{from:e})},C=document.querySelector("#main-mount-point"),R=document.querySelector("#portal-mount-point"),T={tag:qr.ROOT,container:C,createPortal:R},x=()=>{var e;for(var t of(zr(C),zr(R),(0,d.A)(Wa,this).add(E),(0,d.A)(Wa,this)))t&&(t.dispatchOnUnmount(),t.dispose());(0,d.A)(Wa,this).clear(),null==No||null===(e=No.messageDispatcher)||void 0===e||e.reset(),w&&((0,u.A)(Ga,this,h),window.dispatchEvent(new CustomEvent("app.change",{detail:{previousApp:h,currentApp:g}})))};if(te(g&&(ie()[g.id]||g.theme)||"light"),le("default"),g){var _,M,B,L,N,U;null==No||null===(_=No.checkInstalledApps)||void 0===_||_.preCheckInstalledApps(v,(e=>!!ri(e)));var F={bailout:e=>e.unauthenticated?(I(),!0):e.redirect?(k(e.redirect.path,e.redirect.state),!0):void(0,u.A)(Ha,this,0),mergeMenus:(y=(0,o.A)((function*(e){var t=yield Promise.all(e);(0,u.A)(Ya,s,function(e){var t={breadcrumb:[]};for(var r of e){var{breadcrumb:n}=r;n&&(n.overwrite?t.breadcrumb=n.items:t.breadcrumb.push(...n.items))}return t}(t)),window.dispatchEvent(new CustomEvent("navConfig.change",{detail:(0,d.A)(Ya,s)}))})),function(e){return y.apply(this,arguments)}),catch:(t,r)=>{if(!dr(t)||window.NO_AUTH_GUARD){if(!(t instanceof P.HttpAbortError)){var n=qo().getMiscSettings().noAuthGuardLoginPath;return dr(t)&&n?void k(n,{from:e}):{failed:!0,output:{node:{tag:qr.BRICK,type:"div",properties:{textContent:ur(t)},runtimeContext:null,return:r},blockingList:[],menuRequests:[]}}}(0,d.A)(Wa,this).add(E)}else I()}},j=(0,u.A)(Va,this,new ln("page",{routeHelper:F,renderId:l})),$=(0,u.A)(Ka,this,{app:g,location:e,query:new URLSearchParams(e.search),flags:S,sys:(0,a.A)((0,a.A)((0,a.A)({},null==No||null===(M=No.auth)||void 0===M?void 0:M.getAuth()),_a()),{},{settings:{brand:qo().getBrandSettings()}}),ctxStore:new Gn("CTX",void 0,j),pendingPermissionsPreCheck:[null==No||null===(B=No.checkPermissions)||void 0===B?void 0:B.preCheckPermissions(v)],tplStateStoreMap:new Map,formStateStoreMap:new Map});(0,u.A)(Ya,this,void 0),Ma(v),ye(null===(L=v.meta)||void 0===L?void 0:L.functions,g),null==No||null===(N=No.flowApi)||void 0===N||N.collectContract(null===(U=v.meta)||void 0===U?void 0:U.contracts);var D,K=!1,V=[];try{var W={};if(D=yield ya(T,function(e){if(window.parent===window)return e;var t=e,r=(0,A.findLastIndex)(t,(e=>e.path.startsWith("${APP.homepage}/_dev_only_/template-preview/")));t=[...t.slice(0,r+1),{path:"${APP.homepage}/_dev_only_/template-preview/:templateId",bricks:[{brick:"span"}],menu:!1,exact:!0},...t.slice(r+1)];var n=(0,A.findLastIndex)(t,(e=>e.path.startsWith("${APP.homepage}/_dev_only_/snippet-preview/")));return[...t.slice(0,n+1),{path:"${APP.homepage}/_dev_only_/snippet-preview/:snippetId",bricks:[{brick:"span"}],menu:!1,exact:!0},...t.slice(n+1)]}(v.routes),$,j,[],W),F.bailout(D))return;V=Ia($),yield Ca(D,$,V),W.child=D.menuRequestNode,j.setInitialMenuRequestNode(W),yield F.mergeMenus(j.getMenuRequests())}catch(e){console.error("Router failed:",e);var H=F.catch(e,T);if(!H)return;({failed:K,output:D}=H)}if(T.child=D.node,x(),D.route&&"routes"!==D.route.type||K){if(K||j.dispatchBeforePageLoad(),ae(),ue(),Na(null==g?void 0:g.uiVersion),Gr(T),window.scrollTo(0,0),K)null==f||f({status:"failed"});else{for(var z of(j.dispatchPageLoad(),j.dispatchAnchorLoad(),j.dispatchOnMount(),j.initializeScrollIntoView(),j.initializeMediaChange(),j.initializeMessageDispatcher(),V))z.mountAsyncData();null==f||f({status:"ok",path:D.path,pageTitle:document.title})}return void q("rendered")}}else{if(!window.NO_AUTH_GUARD&&null!=No&&No.auth&&!No.auth.isLoggedIn())return void I();x()}ae(),ue();var G={tag:qr.BRICK,type:"div",properties:{textContent:"Page not found"},runtimeContext:null,return:T};T.child=G,Gr(T),window.scrollTo(0,0),null==f||f({status:"not-found"}),q("rendered")})),no.apply(this,arguments)}var ao="undefined"!=typeof BRICK_PACKAGES?BRICK_PACKAGES:null;function oo(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function io(e){return e<=1?"".concat(100*Number(e),"%"):e}function so(e){return 1===e.length?"0"+e:String(e)}function lo(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*r*(t-e):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function co(e){return uo(e)/255}function uo(e){return parseInt(e,16)}var fo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function po(e){var t,r,n,a={r:0,g:0,b:0},o=1,i=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(fo[e])e=fo[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=go.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=go.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=go.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=go.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=go.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=go.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=go.hex8.exec(e))?{r:uo(r[1]),g:uo(r[2]),b:uo(r[3]),a:co(r[4]),format:t?"name":"hex8"}:(r=go.hex6.exec(e))?{r:uo(r[1]),g:uo(r[2]),b:uo(r[3]),format:t?"name":"hex"}:(r=go.hex4.exec(e))?{r:uo(r[1]+r[1]),g:uo(r[2]+r[2]),b:uo(r[3]+r[3]),a:co(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=go.hex3.exec(e))&&{r:uo(r[1]+r[1]),g:uo(r[2]+r[2]),b:uo(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(yo(e.r)&&yo(e.g)&&yo(e.b)?(t=e.r,r=e.g,n=e.b,a={r:255*oo(t,255),g:255*oo(r,255),b:255*oo(n,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):yo(e.h)&&yo(e.s)&&yo(e.v)?(i=io(e.s),s=io(e.v),a=function(e,t,r){e=6*oo(e,360),t=oo(t,100),r=oo(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),i=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6;return{r:255*[r,i,o,o,s,r][l],g:255*[s,r,r,i,o,o][l],b:255*[o,o,s,r,r,i][l]}}(e.h,i,s),c=!0,u="hsv"):yo(e.h)&&yo(e.s)&&yo(e.l)&&(i=io(e.s),l=io(e.l),a=function(e,t,r){var n,a,o;if(e=oo(e,360),t=oo(t,100),r=oo(r,100),0===t)a=r,o=r,n=r;else{var i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;n=lo(s,i,e+1/3),a=lo(s,i,e),o=lo(s,i,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,i,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(o),{ok:c,format:e.format||u,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:o}}var vo="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ho="[\\s|\\(]+(".concat(vo,")[,|\\s]+(").concat(vo,")[,|\\s]+(").concat(vo,")\\s*\\)?"),mo="[\\s|\\(]+(".concat(vo,")[,|\\s]+(").concat(vo,")[,|\\s]+(").concat(vo,")[,|\\s]+(").concat(vo,")\\s*\\)?"),go={CSS_UNIT:new RegExp(vo),rgb:new RegExp("rgb"+ho),rgba:new RegExp("rgba"+mo),hsl:new RegExp("hsl"+ho),hsla:new RegExp("hsla"+mo),hsv:new RegExp("hsv"+ho),hsva:new RegExp("hsva"+mo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function yo(e){return Boolean(go.CSS_UNIT.exec(String(e)))}var Ao=2,bo=.16,wo=.05,So=.05,Eo=.15,ko=5,Io=4,Co=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ro(e){var t=function(e,t,r){e=oo(e,255),t=oo(t,255),r=oo(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o=0,i=n,s=n-a,l=0===n?0:s/n;if(n===a)o=0;else{switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:i}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function To(e){var t=e.r,r=e.g,n=e.b;return"#".concat(function(e,t,r,n){var a=[so(Math.round(e).toString(16)),so(Math.round(t).toString(16)),so(Math.round(r).toString(16))];return a.join("")}(t,r,n))}function Oo(e,t,r){var n;return(n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-Ao*t:Math.round(e.h)+Ao*t:r?Math.round(e.h)+Ao*t:Math.round(e.h)-Ao*t)<0?n+=360:n>=360&&(n-=360),n}function Po(e,t,r){return 0===e.h&&0===e.s?e.s:((n=r?e.s-bo*t:t===Io?e.s+bo:e.s+wo*t)>1&&(n=1),r&&t===ko&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function xo(e,t,r){var n;return(n=r?e.v+So*t:e.v-Eo*t)>1&&(n=1),Number(n.toFixed(2))}function _o(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=po(e),a=ko;a>0;a-=1){var o=Ro(n),i=To(po({h:Oo(o,a,!0),s:Po(o,a,!0),v:xo(o,a,!0)}));r.push(i)}r.push(To(n));for(var s=1;s<=Io;s+=1){var l=Ro(n),c=To(po({h:Oo(l,s),s:Po(l,s),v:xo(l,s)}));r.push(c)}return"dark"===t.theme?Co.map((function(e){var n,a,o,i=e.index,s=e.opacity;return To((n=po(t.backgroundColor||"#141414"),o=100*s/100,{r:((a=po(r[i])).r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b}))})):r}var Mo,Bo,Lo,No,Uo={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Fo={},jo={};function $o(e){return':root,\n[data-override-theme="light"] {\n'.concat(e,"}")}function Do(e){return'html[data-theme="dark-v2"],\n[data-override-theme="dark-v2"] {\n'.concat(e,"}")}function Ko(e){return e.match(/[0-9a-fA-F]{2}/g).map((e=>parseInt(e,16))).join(", ")}function Vo(e,t,r){return"dark"===t?_o(e,{theme:t,backgroundColor:r})[5]:e}function Wo(e){var t=[];if(["light","dark"].forEach((r=>{if(e[r])switch(e.type){case"brandColor":t.push(function(e,t){return("dark"===e?Do:$o)("string"==typeof(r=t)?" --color-brand: ".concat(r,";\n"):[" --color-brand: ".concat(r.default,";")," --color-brand-hover: ".concat(r.hover,";")," --color-brand-active: ".concat(r.active,";"),""].join("\n"));var r}(r,e[r]));break;case"baseColors":t.push(function(e,t,r){return("dark"===e?Do:$o)("".concat(function(e,t){return Object.entries(e).flatMap((e=>{var[r,n]=e;return function(e){if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(e))throw new Error("Invalid base color name: ".concat(JSON.stringify(e)))}(r),n.map(((e,n)=>[" --palette-".concat(r,"-").concat(n+1,"-channel: ").concat(Ko(e),";")].concat("dark"===t?[]:" --palette-".concat(r,"-").concat(n+1,": rgb(var(--palette-").concat(r,"-").concat(n+1,"-channel));")).join("\n"))).concat("")})).join("\n")}(function(e,t,r){return Object.fromEntries(Object.entries(e).map((e=>{var[n,a]=e;return[n,_o(a,"dark"===t?{theme:t,backgroundColor:r}:void 0)]})))}(t,e,r),e),"\n").concat(function(e,t,r){return Object.entries({green:"green",red:"red",blue:"blue",orange:"orange",cyan:"cyan",purple:"purple",geekblue:"indigo"}).flatMap((n=>{var[a,o]=n;return[" --theme-".concat(a,"-color-rgb-channel: ").concat(Ko(Vo(t[o],e,r)),";"),..."dark"===e?[]:[" --theme-".concat(a,"-color: var(--palette-").concat(o,"-6);")," --theme-".concat(a,"-border-color: var(--palette-").concat(o,"-3);")]," --theme-".concat(a,"-background: var(--palette-").concat(o,"-").concat("dark"===e?2:1,");"),""]})).join("\n")}(e,t,r)))}(r,e[r],e.backgroundColor));break;case"variables":t.push(function(e,t){return("dark"===e?Do:$o)(function(e){return Object.entries(e).map((e=>{var[t,r]=e;return function(e){if(!/^--[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(e))throw new Error("Invalid css variable name: ".concat(JSON.stringify(e)))}(t)," ".concat(t,": ").concat(r,";")})).concat("").join("\n")}(t))}(r,e[r]))}})),t.length>0){var r=document.createElement("style");return r.textContent=t.join("\n\n"),document.head.appendChild(r),()=>{r.remove()}}}function Ho(e){if(Mo)throw new Error("Cannot create multiple runtimes");return window.addEventListener("message",(e=>{var{data:t}=e;if((null==t?void 0:t.source)===K){var r=t.payload;switch(null==r?void 0:r.type){case V:H=r.active;break;case W:$=r.panel}}})),No=null==e?void 0:e.hooks,(0,f.initializeI18n)(ir,sr),h.locale(f.i18n.language),f.i18n.on("languageChanged",(()=>{h.locale(f.i18n.language)})),T(),Mo=new Qo}Object.keys(Uo).forEach((function(e){Fo[e]=_o(Uo[e]),Fo[e].primary=Fo[e][5],jo[e]=_o(Uo[e],{theme:"dark",backgroundColor:"#141414"}),jo[e].primary=jo[e][5]})),Fo.red,Fo.volcano,Fo.gold,Fo.orange,Fo.yellow,Fo.lime,Fo.green,Fo.cyan,Fo.blue,Fo.geekblue,Fo.purple,Fo.magenta,Fo.grey;var qo=function(){var e=R();if(e)return function(){return new Proxy(e.getRuntime(),{get(){switch(arguments.length<=1?void 0:arguments[1]){case"getCurrentApp":case"getRecentApps":case"hasInstalledApp":case"getDesktops":case"getLaunchpadSettings":case"getLaunchpadSiteMap":case"toggleLaunchpadEffect":case"applyPageTitle":case"getNavConfig":case"getFeatureFlags":case"getMiscSettings":case"getBrandSettings":return Reflect.get(...arguments)}}})}}()||function(){return Mo},zo=new WeakMap,Go=new WeakMap,Yo=new WeakSet;class Qo{constructor(){(0,i.A)(this,Yo),(0,l.A)(this,zo,!1),(0,l.A)(this,Go,!1),(0,s.A)(this,"version",3)}initialize(e){var t;if((0,d.A)(zo,this))throw new Error("The runtime cannot be initialized more than once");(0,u.A)(zo,this,!0),function(e){(0,v.isObject)(e.settings)&&(0,v.deepFreeze)(e.settings),e.brickPackages&&(0,v.deepFreeze)(e.brickPackages)}(e),Bo=e;var r,{notification:n,dialog:o}=(0,c.A)(Yo,this,Jo).call(this);!1!==n&&(r=null!=n?n:"basic.show-notification",(0,this.loadBricks)([r]).then((()=>{pr=document.createElement(r)}),(e=>{console.error("Load notification service failed:",e)}))),!1!==o&&function(e,t){t([e]).then((()=>{Qt=document.createElement(e)}),(e=>{console.error("Load dialog service failed:",e)}))}(null!=o?o:"basic.show-dialog",this.loadBricks),function(e){e&&(e.brandColor?Wo((0,a.A)({type:"brandColor"},e.brandColor)):e.baseColors?Wo((0,a.A)({type:"baseColors"},e.baseColors)):e.variables&&Wo((0,a.A)({type:"variables"},e.variables)))}(null===(t=e.settings)||void 0===t||null===(t=t.misc)||void 0===t?void 0:t.theme)}bootstrap(e){var t=this;return(0,o.A)((function*(){if(e&&t.initialize(e),(0,d.A)(Go,t))throw new Error("The runtime cannot be bootstrapped more than once");(0,u.A)(Go,t,!0),Lo=new Ja(Bo.storyboards),yield Lo.bootstrap()}))()}getRecentApps(){var e,t;return null!==(e=null===(t=Lo)||void 0===t?void 0:t.getRecentApps())&&void 0!==e?e:{}}getCurrentApp(){var e;return null===(e=Lo)||void 0===e?void 0:e.getRecentApps().currentApp}hasInstalledApp(e,t){return Qe(e,t)}getFeatureFlags(){var e,t;return(0,a.A)((0,a.A)((0,a.A)({},null===(e=Bo)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.featureFlags),null===(t=Lo)||void 0===t||null===(t=t.getRecentApps().currentApp)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.featureFlags),{},{"migrate-to-brick-next-v3":!0})}getMiscSettings(){var e,t;return(0,a.A)((0,a.A)({},null===(e=Bo)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.misc),null===(t=Lo)||void 0===t||null===(t=t.getRecentApps().currentApp)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.misc)}getBrandSettings(){var e;return(0,a.A)({base_title:"DevOps 管理专家"},null===(e=Bo)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.brand)}getLaunchpadSettings(){var e;return(0,a.A)({columns:7,rows:4},null===(e=Bo)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.launchpad)}getDesktops(){var e,t;return null!==(e=null===(t=Bo)||void 0===t?void 0:t.desktops)&&void 0!==e?e:[]}getLaunchpadSiteMap(){var e,t;return null!==(e=null===(t=Bo)||void 0===t?void 0:t.siteSort)&&void 0!==e?e:[]}toggleLaunchpadEffect(e){document.body.classList.toggle("launchpad-open",e)}applyPageTitle(e){var t=this.getBrandSettings().base_title;document.title=e?"".concat(e," - ").concat(t):t}getNavConfig(){var e;return null===(e=Lo)||void 0===e?void 0:e.getNavConfig()}loadBricks(e){return(0,p.loadBricksImperatively)(e,Xo())}}function Jo(){var e,t;return null!==(e=null===(t=Bo)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.presetBricks)&&void 0!==e?e:{}}function Xo(){var e,t,r,n;return null!==(e=null!==(t=null!==(r=function(e,t){if(null==t||!t.length)return e;var r=new Map;return[...e,...t].forEach((e=>{var t=e.filePath.split("/")[1];r.set(t,e)})),Array.from(r.values())}(null===(n=Bo)||void 0===n?void 0:n.brickPackages,window.PUBLIC_DEPS))&&void 0!==r?r:ao)&&void 0!==t?t:window.STANDALONE_BRICK_PACKAGES)&&void 0!==e?e:[]}function Zo(){var e;return null===(e=Lo)||void 0===e?void 0:e.getRenderId()}function ei(){var e;return null===(e=Lo)||void 0===e?void 0:e.getRuntimeContext()}function ti(e){var t;return null===(t=Bo)||void 0===t||null===(t=t.storyboards)||void 0===t?void 0:t.find((t=>t.app.id===e))}function ri(e){var t;return null===(t=ti(e))||void 0===t?void 0:t.app}function ni(){for(var e,t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];null==No||null===(e=No.auth)||void 0===e||null===(t=e.authenticate)||void 0===t||t.call(e,...n)}function ai(){var e;return null==No||null===(e=No.auth)||void 0===e?void 0:e.getAuth()}function oi(){var e,t;return null==No||null===(e=No.auth)||void 0===e||null===(t=e.logout)||void 0===t?void 0:t.call(e)}function ii(){var e;return null==No||null===(e=No.auth)||void 0===e?void 0:e.isLoggedIn()}function si(e,t,r){return li.apply(this,arguments)}function li(){return(li=(0,o.A)((function*(e,t,r){return st(yield Ze(e),e,"resolve",t,r)}))).apply(this,arguments)}function ci(e){var t,{portal:r,scope:n="fragment",unknownBricks:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r;t=r||(()=>((i=document.createElement("div")).style.position="absolute",i.style.width=i.style.height="0",document.body.append(i),i));var s,l,c=!1;return{render(r){var u=arguments;return(0,o.A)((function*(){var{theme:o,uiVersion:d,context:f,functions:p,templates:v,i18n:h,url:m,app:g}=u.length>1&&void 0!==u[1]?u[1]:{};if(c)throw new Error("The root is unmounted and cannot be rendered any more");var y=[].concat(r),b=s,w=(0,A.uniqueId)("render-id-");s=new ln(n,{unknownBricks:a,renderId:w});var S={ctxStore:new Gn("CTX",void 0,s),pendingPermissionsPreCheck:[],tplStateStoreMap:new Map,formStateStoreMap:new Map};if(m){var E=new URL(m);S.query=E.searchParams,S.location={pathname:E.pathname,search:E.search,hash:E.hash,state:void 0}}var k={tag:qr.ROOT,container:e,createPortal:t};if("page"===n){var I,C;te(null!=o?o:"light"),le("default"),Na(d),null!==(I=g)&&void 0!==I||(g={id:"demo",homepage:"/demo"}),S.app=g;var R={app:g,meta:{i18n:h,customTemplates:v}};null===(C=l)||void 0===C||C(),l=U(R),Ma(R),ye(p,g)}S.ctxStore.define(f,S);var T,O=!1,P=[];try{T=yield ba(k,y,S,s,[],{}),P=Ia(S),yield Ca(T,S,P)}catch(e){O=!0,T={node:{tag:qr.BRICK,type:"div",properties:{textContent:ur(e)},return:k,runtimeContext:null},blockingList:[]}}if(k.child=T.node,null==b||b.dispatchOnUnmount(),null==b||b.dispose(),zr(e),i&&zr(i),"page"===n&&(O||s.dispatchBeforePageLoad(),ae(),ue()),Gr(k),"page"===n&&window.scrollTo(0,0),!O){for(var x of P)x.mountAsyncData();"page"===n&&s.dispatchPageLoad(),s.dispatchOnMount(),s.initializeScrollIntoView(),s.initializeMediaChange(),s.initializeMessageDispatcher()}}))()},unmount(){c||(c=!0,zr(e),i&&(zr(i),r||i.remove()))}}}function ui(e){var{useRealTimeQuery:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,a.A)({},ei());t&&(r.query=new URLSearchParams(O().location.search));var n=t=>{if("string"==typeof t){if((0,x.isEvaluable)(t)){var a=gt(t,r);return rt(a),a}return(0,M.inject)(t,r)}return!(0,v.isObject)(t)||nt(e)?t:Array.isArray(t)?t.map((e=>n(e))):Object.fromEntries(Object.entries(t).map((e=>{var[t,r]=e;return[n(t),n(r)]})))};return n(e)}}}]);
|
|
2
|
+
//# sourceMappingURL=2652.85c616eb.js.map
|