PageSourceSearch

https://bloom.diy/_next/static/chunks/5387-d64ba80d2639f532.js

js bloom.diy collected 2026-10-03 22:21:21 UTC 273,177 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5387],{504:(e,t,n)=>{n.d(t,{Bi:()=>p,CI:()=>i,KT:()=>m,VA:()=>a,bz:()=>f,q_:()=>h,uY:()=>v});let r=new Map,o=new Map;function l(e,t){e&&(r.set(e,t),o.delete(e))}function i(e){if(!e)return null;let t=r.get(e);return void 0===t?null:{kind:"created-by-operation",createdByOperationId:t}}function a(e,t){if(null==e)return!1;let n=o.get(e);return void 0!==n&&"repeated"===n.kind&&("settled"!==n.status||void 0===t||t!==n.sourceInstanceKey||(o.delete(e),r.delete(e),!1))}function d(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function u(e){return d(e)&&Array.isArray(e.children)?e.children.filter(d):[]}function c(e){var t;if(!d(e))return null;let n=null!=(t=e.children)?t:[];if(!Array.isArray(n))return null;let r=new Set;for(let e of n){if(!d(e))return null;if(void 0!==e.id){if("string"!=typeof e.id||!e.id||r.has(e.id))return null;r.add(e.id)}}return{ids:r,count:n.length}}function s(e){var t;if(!d(e))return null;if("string"==typeof e.createdNodeId)return e.createdNodeId;let n=c(e.previousNode),r=c(e.nextNode);return null===n||null===r||r.count!==n.count+1||r.ids.size!==n.ids.size+1||[...n.ids].some(e=>!r.ids.has(e))?null:null!=(t=[...r.ids].find(e=>!n.ids.has(e)))?t:null}function p(e,t){let n=s(e);if(!n)return null;let r=o.get(n);if(void 0===r)return null;let l="::react-key:",i="repeated"===r.kind?r.optimisticSourceInstanceKey:"",a=i.lastIndexOf(l),d="static"===r.kind||t.includes(l)||a<0?t:"".concat(i.slice(0,a)).concat(l).concat(encodeURIComponent(t));return o.set(n,{...r,status:"settled",sourceInstanceKey:d}),n}function v(e){var t;return!!e&&(null==(t=o.get(e))?void 0:t.status)==="pending"}function f(e){if(!e)return null;let t=o.get(e);return(null==t?void 0:t.status)==="settled"?t.sourceInstanceKey:null}function m(e){if("insert-node"===e.operation.type){let t=s(e.optimisticPayload);l(t,e.stepId),t&&"duplicate-repeated-instance"===e.operation.insertion.kind?o.set(t,{kind:"repeated",status:"pending",optimisticSourceInstanceKey:e.operation.insertion.sourceInstanceKey}):t&&"duplicate"===e.operation.insertion.kind&&o.set(t,{kind:"static",status:"pending"});return}if("wrap-siblings"===e.operation.type)return void l(function(e){if(!d(e.optimisticPayload))return null;if("string"==typeof e.optimisticPayload.createdNodeId)return e.optimisticPayload.createdNodeId;let t=[{previousNode:e.optimisticPayload.previousNode,nextNode:e.optimisticPayload.nextNode}];if(Array.isArray(e.optimisticPayload.updates))for(let n of e.optimisticPayload.updates)d(n)&&t.push({previousNode:n.previousNode,nextNode:n.nextNode});let n=new Set;for(let r of t){let t=new Set(u(r.previousNode).flatMap(e=>"string"==typeof e.id?[e.id]:[]));for(let o of u(r.nextNode))"string"!=typeof o.id||t.has(o.id)||o.name!==e.operation.wrapper.name||u(o).length!==e.operation.siblings.length||n.add(o.id)}return 1===n.size?[...n][0]:null}({operation:e.operation,optimisticPayload:e.optimisticPayload}),e.stepId);if("paste-fragment"!==e.operation.type||!d(e.optimisticPayload))return;let t=e.optimisticPayload.child;l(d(t)&&"string"==typeof t.id?t.id:null,e.stepId)}function h(){r.clear(),o.clear()}},7741:(e,t,n)=>{n.d(t,{qq:()=>l,M_:()=>o,tY:()=>i});var r=n(89038);function o(e,t,n){let o=[];for(let l of r.qZ){let i=(0,r.hb)(l);i.classTokens&&o.push(...i.classTokens(e,t,n))}return o.filter(e=>null!==e.token||e.families.length>0)}function l(e,t){let n=e.split(/\s+/).filter(Boolean),r=new Set(t),o=[];for(let e of n){let i=t.filter(t=>t.families.some(t=>t.test(e)));if(0===i.length){o.push(e);continue}for(let t of i){var l;if(null==(l=t.tokensWhenMatched)?void 0:l.families.some(t=>t.test(e)))for(let r of t.tokensWhenMatched.mapToken(e,n))o.includes(r)||o.push(r);r.delete(t)&&t.token&&o.push(t.token)}}for(let e of r)e.token&&o.push(e.token);let i=o;for(let e of t){let t=e.token;if(!t||!e.redundantGiven||!i.includes(t))continue;let n=i.filter(e=>e!==t);e.redundantGiven(n)&&(i=n)}return i.join(" ")}function i(e,t,n){var o;let l=function(e,t){let n={},o=!1;for(let l of r.sp){let i=(0,r.hb)(l);if(i.domWrites)for(let[r,l]of i.domWrites(e,t))n[r]=l,o=!0}return o?n:null}(e,t),i=("TEXT"===t.type||"TEXT_INPUT"===t.type)&&e.text!==t.text;return l||i?{nodePath:n,sourceRevisionScoped:!0,nodeType:t.type,style:null!=l?l:void 0,textContent:i?null!=(o=t.text)?o:"":void 0}:null}},9700:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{R5:()=>c});var o=n(40245),l=n(19348),i=n(18013),a=n(78336),d=e([l,o,i]);function u(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"style",r=(0,l.Oh)(e.openingElement,n);return(null==r||null==(t=r.value)?void 0:t.type)==="JSXExpressionContainer"?r.value.expression:null}function c(e,t){var n;let r=(0,l.ou)(e),d=(0,l.rB)(r,t);if(!d)return null;
1let c=u(d,"style"),s=new Set,p=c?!function e(t,n,r){var i,a;if((null==n?void 0:n.type)==="ObjectExpression"){for(let e of null!=(i=n.properties)?i:[]){if((null==e?void 0:e.type)!=="Property")continue;let t=(0,l.sy)(e);t&&r.add(t)}return!0}if((null==n?void 0:n.type)==="MemberExpression"){let i=function(e){let t=(0,l.u)(e,"styles");return(null==t?void 0:t.length)===1?t[0]:null}(n),a=i?function(e,t){let n=(0,o.R)(e);if(n.errors.length>0)return null;let r=null;return(0,l.mm)(n.program,e=>{var n,o,i,a,d,u,c,s;if(r||!((null==e?void 0:e.type)==="CallExpression"&&(null==(a=e.callee)?void 0:a.type)==="MemberExpression"&&!e.callee.computed&&(null==(d=e.callee.object)?void 0:d.type)==="Identifier"&&"StyleSheet"===e.callee.object.name&&(null==(u=e.callee.property)?void 0:u.type)==="Identifier"&&"create"===e.callee.property.name&&(null==(s=e.arguments)||null==(c=s[0])?void 0:c.type)==="ObjectExpression"))return;let p=null==(n=e.arguments)?void 0:n[0];for(let e of null!=(o=null==p?void 0:p.properties)?o:[])(null==e?void 0:e.type)==="Property"&&(0,l.sy)(e)===t&&(null==(i=e.value)?void 0:i.type)==="ObjectExpression"&&(r=e.value)}),r}(t,i):null;return!!a&&(e(t,a,r),!0)}if((null==n?void 0:n.type)==="ArrayExpression"){let o=!1;for(let l of null!=(a=n.elements)?a:[])l&&e(t,l,r)&&(o=!0);return o}return!1}(e,c,s)?"opaque":"writable":(0,l.Oh)(d.openingElement,"style")||null==(0,l.a1)(e,d.openingElement)?"opaque":"absent",v=(0,l.Oh)(d.openingElement,"animate"),f=u(d,"animate"),m=new Set,h=(0,a.X)(null==(n=d.openingElement)?void 0:n.name),g=!!(h&&(null==f?void 0:f.type)==="ObjectExpression"&&function(e,t){var n;if((null==e?void 0:e.type)!=="ObjectExpression")return!1;for(let r of null!=(n=e.properties)?n:[]){if((null==r?void 0:r.type)!=="Property"||r.computed||"init"!==r.kind||!0===r.method)return!1;let e=(0,l.sy)(r);if(!e||t.has(e))return!1;t.add(e)}return!0}(f,m)),y=(0,l.Oh)(d.openingElement,"className"),I=!1;if(y){let t=(0,l.yA)(y),n=t?e.slice(t[0],t[1]):"";I=RegExp("className\\s*=\\s*[\"'{].*[A-Za-z]","s").test(n)}let w=(0,i.ld)(e,t);return{mode:function(e){var t;let n=(0,l.zQ)(null==(t=e.openingElement)?void 0:t.name);return l.Ti.has(n)?"react-native":"css"}(d),styleAttribute:p,authoredStyleKeys:s,animateWritable:g,authoredAnimateKeys:m,animateOwnsStyle:h,hasAnimateAttribute:!!v,classNameMeaningful:I,cssRuleAuthoredKeys:w.claimed,cssRuleImportantKeys:w.important}}[l,o,i]=d.then?(await d)():d,r()}catch(e){r(e)}})},16406:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{Eh:()=>u,GB:()=>g,Jl:()=>I,LC:()=>c,Mu:()=>m,W:()=>N,_S:()=>h,_k:()=>p,_y:()=>f,ox:()=>v,rZ:()=>b,tP:()=>s,ut:()=>y,wM:()=>P});var o=n(85420),l=n(88560),i=n(9437),a=n(26353),d=e([l]);function u(e,t){var n,r,o,l,i,d,u,c;if(!e||!t.frameId||e.frameId!==t.frameId)return!1;let s=null!=(l=null==(n=e.node)?void 0:n.id)?l:null;if(s&&t.nodeId&&s===t.nodeId)return!0;let p=null!=(d=null!=(i=e.sourceInstanceKey)?i:null==(r=e.node)?void 0:r.sourceInstanceKey)?d:null;if(p&&t.sourceInstanceKey)return(0,a.lb)(p,t.sourceInstanceKey);let v=null!=(c=null!=(u=e.sourcePath)?u:null==(o=e.node)?void 0:o.sourcePath)?c:null;return v&&t.sourcePath?v===t.sourcePath:e.nodePath===t.nodePath}function c(e){var t,n,r;let o=null!=(t=e.target)?t:null,l=null!=(r=null!=(n=e.settlementSource)?n:null==o?void 0:o.source)?r:null;return o&&l?(0,i.oQ)({frameId:o.frameId,targetSource:l,settle:()=>{var t;if(e.propertyInteractionTargetRef.current!==o)return;null==(t=e.onSettled)||t.call(e,o);let n=()=>{e.propertyInteractionTargetRef.current===o&&(e.propertyInteractionTargetRef.current=null,e.setActivePropertyInteraction(null))};"function"==typeof requestAnimationFrame?requestAnimationFrame(n):queueMicrotask(n)}}):null}function s(e){var t,n,r,o,l,i,a,d,u,c;let s=null!=(o=null==(t=e.currentState.selection)?void 0:t.frameId)?o:null,p=null!=(l=null==(n=e.currentState.selection)?void 0:n.nodePath)?l:null,v=null!=(i=null==(r=e.currentState.selection)?void 0:r.nodeId)?i:null,f=null!=(a=e.resolveActiveNodePath(s,p,v))?a:null,m=null!=(d=e.resolveActiveNodeId(s,p,v))?d:null;return{frameId:s,nodePath:f,nodeId:m,slotRootNodeId:null!=(u=e.getCurrentSelectionSlotRootNodeId({frameId:s,nodePath:f,no
1deId:m}))?u:null,selectedFrame:e.currentState.selectedFrame,selectedNode:null!=(c=e.currentState.selectedNode)?c:null,selectedFrameIsCodeLayer:e.isCodeLayerWritableFrame(e.currentState.selectedFrame)}}function p(e){return!!e.frameId&&!!e.nodePath&&!!e.selectedNode}function v(e){if(!e||"object"!=typeof e)return!1;let t=Reflect.get(e,"liveSource");return"string"==typeof t&&t.length>0}function f(e,t){return"string"==typeof(null==e?void 0:e.source)&&v(t)&&t.liveSource===e.source}function m(e){return v(e.selectedFrame)}function h(e){return v(e.selectedFrame)}function g(e){let t=s({currentState:e.currentState,resolveActiveNodePath:e.resolveActiveNodePath,resolveActiveNodeId:e.resolveActiveNodeId,getCurrentSelectionSlotRootNodeId:e.getCurrentSelectionSlotRootNodeId,isCodeLayerWritableFrame:e.isCodeLayerWritableFrame}),n=e.getRenderedFrameNodes?function(e){var t,n,r,o,l,i,a,d,u,c;let s=null!=(o=null==(t=e.currentState.selection)?void 0:t.frameId)?o:null;if(!s)return null;let p=null!=(l=null==(n=e.currentState.selection)?void 0:n.nodePath)?l:null,v=null!=(i=null==(r=e.currentState.selection)?void 0:r.nodeId)?i:null,f=null!=(a=e.resolveActiveNodePath(s,p,v))?a:null,m=null!=(d=e.resolveActiveNodeId(s,p,v))?d:null;if(!f&&!m)return null;let h=e.getRenderedFrameNodes(s);if(!h)return null;if(m){let t=null==(u=e.getNodeByIdInTree)?void 0:u.call(e,h,m);if(t)return t}if(f){let t=null==(c=e.getNodeByPathInTree)?void 0:c.call(e,h,f);if(t)return t}return null}({currentState:e.currentState,resolveActiveNodePath:e.resolveActiveNodePath,resolveActiveNodeId:e.resolveActiveNodeId,getRenderedFrameNodes:e.getRenderedFrameNodes,getNodeByIdInTree:e.getNodeByIdInTree,getNodeByPathInTree:e.getNodeByPathInTree}):null;return{currentState:e.currentState,context:t,renderedNode:n,hasLiveSource:h(t)}}function y(e){var t;let n=e.activePreview;return(null==n?void 0:n.kind)==="property-edit"&&"active"===n.phase&&n.frameId===e.context.frameId&&n.nodePath===e.context.nodePath?n.previewNode:null!=(t=e.renderedNode)?t:null}function I(e){let t=function(e){var t,n;if(!p(e.context))return null;let r=e.context.selectedNode;return{frameId:e.context.frameId,nodePath:e.context.nodePath,sourcePath:null!=(t=e.currentState.selectedNodeSourcePath)?t:r.sourcePath,sourceInstanceKey:null!=(n=e.currentState.selectedNodeSourceInstanceKey)?n:r.sourceInstanceKey,...v(e.context.selectedFrame)?{observedSource:e.context.selectedFrame.liveSource}:{},node:e.cloneNodeDeep(r)}}({currentState:e.currentState,context:e.context,cloneNodeDeep:e.cloneNodeDeep}),n=t?(0,l.S$)({session:e.currentSession,frameId:e.context.frameId,nodePath:e.context.nodePath,nodeId:e.context.nodeId,node:e.context.selectedNode}):e.currentSession,r=S(e.context)&&e.context.selectedNode?{frameId:e.context.frameId,nodePath:e.context.nodePath,...e.context.nodeId?{nodeId:e.context.nodeId}:{},node:e.cloneNodeDeep(e.context.selectedNode)}:void 0;return{target:t,session:n,...r?{snapshot:r}:{}}}function w(e){var t;let n=null!=(t=e.target)?t:null,r=e.session;return((null==n?void 0:n.source)||e.targetCarriesAcceptedNode)&&n&&r&&n.frameId===r.frameId&&n.nodePath===r.nodePath?{...r,beforeNode:e.cloneNodeDeep(n.node)}:r}function b(e){var t,n;let r=function(e){var t,n,r,o,l,i,a;let d=null!=(t=e.previousTarget)?t:null,u=e.nextTarget;if(!d||!u)return u;let c="string"==typeof d.source;return!c&&(o=d,l=e.currentFrame,!((!0===o.semanticSubmissionPending||(null!=(a=null==(i=o.semanticOperationIds)?void 0:i.length)?a:0)>0)&&void 0!==o.semanticObservedSource&&v(l))||l.liveSource!==o.semanticObservedSource)||d.frameId!==u.frameId||d.nodePath!==u.nodePath||d.sourcePath&&u.sourcePath&&d.sourcePath!==u.sourcePath||d.sourceInstanceKey&&u.sourceInstanceKey&&d.sourceInstanceKey!==u.sourceInstanceKey||f(d,e.currentFrame)?u:c?{...u,source:d.source,node:null!=(r=d.node)?r:u.node}:{...u,node:null!=(n=d.node)?n:u.node}}({previousTarget:null!=(t=e.previousTarget)?t:null,nextTarget:e.preparedSession.target,currentFrame:e.currentFrame}),o=w({session:e.preparedSession.session,target:r,targetCarriesAcceptedNode:null!==r&&null!==e.preparedSession.target&&r.node!==e.preparedSession.target.node,cloneNodeDeep:e.cloneNodeDeep});return r&&(e.propertyInteractionTargetRef&&(e.propertyInteractionTargetRef.current=r),null==(n=e.setActivePropertyInteraction)||n.call(e,r)),e.propertyInteractionSessionRef.current=o,void 0!==e.preparedSession.snapshot&&e.nodeEditInteractionSnapshotRef&&(e.nodeEditInteractionSnapshotRef.current=e.preparedSession.snapshot),{target:r,session:o,...void 0!==e.preparedSession.snapshot?{snapshot:e.preparedSession.snapshot}:{},didSetTarget:!!r}}function N(e){if(!p(e.context))return{didMark:!1,session:e.currentSession};
1let t=(0,l.mc)((0,l.S$)({session:e.currentSession,frameId:e.context.frameId,nodePath:e.context.nodePath,nodeId:e.context.nodeId,node:e.context.selectedNode}),e.context.frameId,e.context.nodePath,e.context.nodeId),n=S(e.context)?(0,o.ao)({snapshot:e.currentSnapshot,frameId:e.context.frameId,nodePath:e.context.nodePath,nodeId:e.context.nodeId,node:e.context.selectedNode}):void 0;return{didMark:!0,session:t,...void 0!==n?{snapshot:n}:{}}}function P(e){if(!e.preparedPreview.didMark)return!1;let t=w({session:e.preparedPreview.session,target:e.acceptedTarget,cloneNodeDeep:e.cloneNodeDeep});return e.propertyInteractionSessionRef.current=t,void 0!==e.preparedPreview.snapshot&&e.nodeEditInteractionSnapshotRef&&(e.nodeEditInteractionSnapshotRef.current=e.preparedPreview.snapshot),!0}function S(e){return e.selectedFrameIsCodeLayer&&!e.slotRootNodeId&&p(e)}l=(d.then?(await d)():d)[0],r()}catch(e){r(e)}})},17063:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{UP:()=>b,W1:()=>y,WY:()=>v,XM:()=>p,YB:()=>f,l3:()=>m,sW:()=>g});var o=n(40245),l=n(26353),i=n(19348),a=n(7741),d=n(9700),u=n(99842),c=e([i,d,o]);function s(e){var t,n,r,o;return JSON.stringify([function e(t){if(void 0===t)return{__bloomUndefined:!0};if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);let n={};for(let[r,o]of Object.entries(t).sort((e,t)=>{let[n]=e,[r]=t;return n.localeCompare(r)}))n[r]=e(o);return n}(e.value),null!=(r=null==(t=e.binding)?void 0:t.mode)?r:"value",null!=(o=null==(n=e.binding)?void 0:n.expression)?o:""])}function p(e){var t,n;return"INSTANCE"===e.type&&(null!=(n=null==(t=e.component)?void 0:t.props)?n:[]).some(e=>"className"===e.name)}function v(e,t){var n,r,o,l;if(!e.component&&!t.component)return!1;let i=new Map((null!=(o=null==(n=e.component)?void 0:n.props)?o:[]).map(e=>[e.name,e])),a=new Map((null!=(l=null==(r=t.component)?void 0:r.props)?l:[]).map(e=>[e.name,e])),d=new Set([...i.keys(),...a.keys()]);return Array.from(d).some(e=>{var t,n,r,o,l,d;let u=null==(t=i.get(e))?void 0:t.binding,c=null==(n=a.get(e))?void 0:n.binding;return(null!=(r=null==u?void 0:u.mode)?r:"value")!==(null!=(o=null==c?void 0:c.mode)?o:"value")||(null!=(l=null==u?void 0:u.expression)?l:"")!==(null!=(d=null==c?void 0:c.expression)?d:"")})}function f(e,t){var n,r,o,l,i;if(!p(e))return{nextNode:t,status:"not-applicable"};let d=(0,a.M_)(e,t);if(0===d.length)return{nextNode:t,status:"unchanged"};let u=null!=(i=null!=(l=null==(n=t.component)?void 0:n.props)?l:null==(r=e.component)?void 0:r.props)?i:[],c=u.findIndex(e=>"className"===e.name),s=u[c];if(!s||(null==(o=s.binding)?void 0:o.mode)==="variable")return{nextNode:t,status:"blocked"};let v="{{".concat(s.name,"}}"),f="string"==typeof s.value&&s.value!==v?s.value:"string"==typeof s.defaultValue&&s.defaultValue!==v?s.defaultValue:"",m=(0,a.qq)(f,d);if(m===f)return{nextNode:t,status:"unchanged"};let h=[...u];return h[c]={...s,type:"string",value:m||void 0,binding:{mode:"value"}},{nextNode:{...t,component:t.component?{...t.component,props:h}:e.component?{...e.component,props:h}:void 0},status:"translated"}}function m(e,t,n){var r,o,l,i;let a=null!=(l=null!=n?n:t.sourceInstanceKey)?l:e.sourceInstanceKey;if(!a)return null;let d=f(e,t),u=null==(r=e.component)?void 0:r.props,c=null==(o=d.nextNode.component)?void 0:o.props;if(!u||!c)return null;let p=new Map(u.map(e=>[e.name,e])),v={};for(let e of c){if("children"===e.name)continue;let t=p.get(e.name);if(t&&s(t)===s(e)||(null==(i=e.binding)?void 0:i.mode)==="variable"&&e.binding.expression)continue;let n=function e(t){if(null===t)return{ok:!0,value:null};if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return{ok:!0,value:t};if(Array.isArray(t)){let n=[];for(let r of t){let t=e(r);if(!t.ok)return{ok:!1,value:null};n.push(t.value)}return{ok:!0,value:n}}if("object"==typeof t){let n={};for(let[r,o]of Object.entries(t)){let t=e(o);if(!t.ok)return{ok:!1,value:null};n[r]=t.value}return{ok:!0,value:n}}return{ok:!1,value:null}}(e.value);(n.ok||void 0===e.value)&&(v[e.name]=n.ok?n.value:void 0)}return Object.keys(v).length>0?{sourceInstanceKey:a,props:v}:null}function h(e){var t,n,r,o;let l=null!=(o=e.sourceInstanceKey)?o:e.node.sourceInstanceKey,a=null==(t=e.node.component)?void 0:t.codeRefId,d=a?"imported:".concat(a,":").concat(e.nodePath):null;if("INSTANCE"!==e.node.type||!d||l!==d||e.node.sourceInstanceKey!==d||e.node.sourcePath!==e.nodePath)return null;let u=null;try{u=(0,i.rB)((0,i.ou)(e.source),e.nodePath)}catch(e){return null}if(!u)return null;
1let c=(0,i.zQ)(null==(n=u.openingElement)?void 0:n.name),s=b(e.source,a,null==(r=e.node.component)?void 0:r.name);return c&&s.includes(c)?u:null}function g(e){var t,n,r,o;let l=null!=(o=null!=(r=e.sourceInstanceKey)?r:e.nextNode.sourceInstanceKey)?o:e.previousNode.sourceInstanceKey;if(!((0,a.M_)(e.previousNode,e.nextNode).length>0||null!=(0,a.tY)(e.previousNode,e.nextNode,e.nodePath))||"INSTANCE"!==e.previousNode.type||"INSTANCE"!==e.nextNode.type||(null==l?void 0:l.startsWith("imported:"))!==!0)return!1;if(!h({source:e.source,nodePath:e.nodePath,node:e.previousNode,sourceInstanceKey:l}))return!0;let i=null==(t=e.previousNode.component)?void 0:t.props.find(e=>"className"===e.name);if(!i||(null==(n=i.binding)?void 0:n.mode)==="variable")return!0;let c=(0,d.R5)(e.source,e.nodePath);if(!c)return!0;let s=(0,u.o)({previousNode:e.previousNode,nextNode:e.nextNode,authorship:c});return s.objectWrites.length>0||s.animateWrites.length>0||0===s.classUpdates.length}function y(e){var t,n;let r=null!=(n=null!=(t=e.sourceInstanceKey)?t:e.nextNode.sourceInstanceKey)?n:e.previousNode.sourceInstanceKey;if(!r||e.nextNode.sourcePath!==e.nodePath)return null;let o=function(e){var t;let n=h(e);return n?(0,i.Mj)(null==(t=(0,i.Oh)(n.openingElement,"className"))?void 0:t.value):null}({source:e.source,nodePath:e.nodePath,node:e.previousNode,sourceInstanceKey:r});if(null==o)return null;let l=(0,d.R5)(e.source,e.nodePath);if(!l)return null;let c=(0,u.o)({previousNode:e.previousNode,nextNode:e.nextNode,authorship:l});if(c.objectWrites.length>0||c.animateWrites.length>0||0===c.classUpdates.length)return null;let s=(0,a.qq)(o,c.classUpdates);return s===o?null:{sourceInstanceKey:r,props:{className:s}}}function I(e){var t;let n=null==e||null==(t=e.local)?void 0:t.name;return"string"==typeof n&&n.length>0?n:null}function w(e,t){!t||e.includes(t)||e.push(t)}function b(e,t,n){var r,i;let a;if(!t||t.startsWith("local:"))return[];try{a=(0,o.R)(e)}catch(e){return[]}if(a.errors.length>0)return[];let d=[],u=[];for(let e of null!=(r=a.program.body)?r:[]){if((null==e?void 0:e.type)!=="ImportDeclaration")continue;let r=function(e){let t=null==e?void 0:e.source;return"string"==typeof(null==t?void 0:t.value)?t.value:null}(e);if(!(0,l.$N)(r,t))continue;let o=null!=(i=e.specifiers)?i:[];for(let e of o){let t=I(e);if(!t)continue;let r=function(e){if((null==e?void 0:e.type)==="ImportDefaultSpecifier")return"default";if((null==e?void 0:e.type)==="ImportNamespaceSpecifier")return"*";let t=null==e?void 0:e.imported;return"string"==typeof(null==t?void 0:t.name)?t.name:"string"==typeof(null==t?void 0:t.value)?t.value:I(e)}(e);n&&t!==n&&r!==n&&1!==o.length?w(u,t):w(d,t)}}return[...d,...u]}[i,d,o]=c.then?(await c)():c,r()}catch(e){r(e)}})},18670:(e,t,n)=>{n.d(t,{l:()=>d});var r=n(22486),o=n(89411);let l=new Map;function i(e){let t;try{var n;t=null!=(n=JSON.stringify(e))?n:"undefined"}catch(n){t=String(e)}return t.length>160?"".concat(t.slice(0,160),"…"):t}function a(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function d(e){var t,n,d,u,c,s;let p=function(e,t){let n=[],r=(e,t,o)=>{if(!(n.length>=24)&&!Object.is(e,t)){if(o.endsWith(".children")||"children"===o){let r=Array.isArray(e)?e.length:0,l=Array.isArray(t)?t.length:0;r!==l&&n.push({path:o,from:"".concat(r," children"),to:"".concat(l," children")});return}if(a(e)&&a(t)){if(JSON.stringify(e)===JSON.stringify(t))return;for(let n of new Set([...Object.keys(e),...Object.keys(t)]))r(e[n],t[n],o?"".concat(o,".").concat(n):n);return}if(Array.isArray(e)&&Array.isArray(t)){if(JSON.stringify(e)===JSON.stringify(t))return;let n=Math.max(e.length,t.length);for(let l=0;l<n;l+=1)r(e[l],t[l],o?"".concat(o,".").concat(l):String(l));return}n.push({path:o||"(node)",from:i(e),to:i(t)})}};return r(null!=e?e:null,null!=t?t:null,""),n}(e.previousNode,e.nextNode),v=p.map(e=>e.path),f={engineFallback:{surface:e.surface,reason:e.reason,frameId:null!=(d=e.frameId)?d:null,target:null!=(u=e.target)?u:null,changedPaths:v,nodeDiff:p,detail:null!=(c=e.detail)?c:null,at:new Date().toISOString()}};window.__BLOOM_LAST_ENGINE_FALLBACK__=f.engineFallback,o.vF.info("[canvas-editing] ".concat(e.surface," degraded (").concat("preview"===e.surface?"node-only preview":"plain commit + replay","): ").concat(e.reason),f.engineFallback);let m="".concat(e.surface,":").concat(e.reason,":").concat(v.join(",")),h=Date.now();if(h-(null!=(s=l.get(m))?s:0)<5e3)return;l.set(m,h);let g=[null==(t=e.target)?void 0:t.nodeType,null==(n=e.target)?void 0:n.nodeName].filter(
1Boolean).join(" "),y=v.length>0?" — changed: ".concat(v.slice(0,4).join(", ")).concat(v.length>4?", …":""):"";r.J.info({title:"preview"===e.surface?"Edit had no live preview":"Edit committed without state seeding",description:"".concat(e.surface,": ").concat(e.reason).concat(g?" on ".concat(g):"").concat(y," (copy for the full trace)"),clipboardPayload:JSON.stringify(f,null,2)})}},22559:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{A7:()=>u,U3:()=>c,hk:()=>d,mF:()=>s});var o=n(16406),l=n(25357),i=e([o]);o=(i.then?(await i)():i)[0];let v="This edit could not be applied to the live source file.",f="This edit could not be prepared for the live source.";function a(e){return"blocked"===e.persistenceMode.mode?{kind:"blocked",reason:e.persistenceMode.reason}:e.hasLiveSource?e.hasPreparedCommit?{kind:"live-source"}:{kind:"blocked",reason:f}:{kind:"blocked",reason:"This canvas edit target is missing source-backed state."}}function d(e){if(!(0,o._k)(e.context))return null;let t=function(e){var t,n,r;if(!(null==(t=e.session)?void 0:t.hasPreview))return null;let o=null!=(n=e.renderedNode)?n:e.selectedNode;if(!o)return null;let i=null!=(r=e.cloneNode)?r:l.bG;return{beforeNode:e.normalizeNode(i(e.session.beforeNode)),afterNode:e.normalizeNode(i(o))}}({session:e.session,renderedNode:e.renderedNode,selectedNode:e.selectedNode,cloneNode:e.cloneNode,normalizeNode:e.normalizeNode});if(!t)return null;let n=e.resolvePersistenceMode({context:e.context,beforeNode:t.beforeNode,afterNode:t.afterNode}),r=a({persistenceMode:n,hasLiveSource:e.hasLiveSource,hasPreparedCommit:!0});return{context:e.context,beforeNode:t.beforeNode,afterNode:t.afterNode,persistenceMode:n,commitRoute:r}}function u(e){return function(e){var t,n;if(!e.frameId||!e.nodePath)return null;let r=e.buildCommittedNodeEditPair({currentNode:null!=(n=null!=(t=e.renderedNode)?t:e.selectedNode)?n:null,interactionSnapshot:e.interactionSnapshot,updater:e.updater,normalize:e.normalizeNode}),o=null==r?{mode:"blocked",reason:f}:e.resolvePersistenceMode({frame:e.selectedFrame,slotRootNodeId:e.slotRootNodeId,nodePath:e.nodePath,beforeNode:r.beforeNode,afterNode:r.afterNode}),l=a({persistenceMode:o,hasLiveSource:e.hasLiveSource,hasPreparedCommit:!!r});return{frameId:e.frameId,nodePath:e.nodePath,nodeId:e.nodeId,slotRootNodeId:e.slotRootNodeId,nodeEditPair:r,persistenceMode:o,commitRoute:l}}({frameId:e.context.frameId,nodePath:e.context.nodePath,nodeId:e.context.nodeId,slotRootNodeId:e.context.slotRootNodeId,selectedFrame:e.context.selectedFrame,selectedNode:e.context.selectedNode,renderedNode:e.renderedNode,interactionSnapshot:e.interactionSnapshot,updater:e.updater,hasLiveSource:e.hasLiveSource,normalizeNode:e.normalizeNode,buildCommittedNodeEditPair:e.buildCommittedNodeEditPair,resolvePersistenceMode:e.resolvePersistenceMode})}function c(e){let{context:t,beforeNode:n,afterNode:r,commitRoute:o}=e.preparedCommit;return p({route:o,commitLiveSource:()=>e.commitLiveSourceEdit({currentState:e.currentState,beforeNode:n,afterNode:r}),reportBlockedEdit:n=>{e.clearStructuralRenderNodeEditPreview(t.frameId),e.reportBlockedEdit(n)},clearCommitArtifacts:()=>
1{if("live-source"===o.kind)return void e.clearPropertyInteractionPreviewArtifacts(t.frameId);e.clearPropertyInteractionState()}})}function s(e){let{frameId:t,nodeEditPair:n,commitRoute:r}=e.preparedCommit;return p({route:r,commitLiveSource:()=>!!n&&e.commitLiveSourceEdit({currentState:e.currentState,beforeNode:n.beforeNode,afterNode:n.afterNode}),reportBlockedEdit:e.reportBlockedEdit,clearCommitArtifacts:()=>{var n;(n={frameId:t,clearStructuralRenderNodeEditPreview:e.clearStructuralRenderNodeEditPreview,nodeEditInteractionSnapshotRef:e.nodeEditInteractionSnapshotRef,propertyInteractionSessionRef:e.propertyInteractionSessionRef}).clearStructuralRenderNodeEditPreview(n.frameId),n.nodeEditInteractionSnapshotRef&&(n.nodeEditInteractionSnapshotRef.current=null),n.propertyInteractionSessionRef&&(n.propertyInteractionSessionRef.current=null)}})}function p(e){var t,n,r,o,l;return"blocked"===e.route.kind?(e.reportBlockedEdit(null!=(n=null!=(t=e.route.reason)?t:e.blockedFallbackReason)?n:v),e.clearCommitArtifacts(),!1):"live-source"===e.route.kind&&(null!=(o=null==(r=e.commitLiveSource)?void 0:r.call(e))&&o?(e.clearCommitArtifacts(),!0):(e.reportBlockedEdit(null!=(l=e.blockedFallbackReason)?l:v),e.clearCommitArtifacts(),!1))}r()}catch(e){r(e)}})},23052:(e,t,n)=>{n.d(t,{P0:()=>l,SG:()=>o});var r=n(72385);function o(e,t){if("number"!=typeof e.activeBranchIndex||e.activeBranchIndex<0||!Array.isArray(e.branches)||e.activeBranchIndex>=e.branches.length)return e;let n=e.branches.map((n,r)=>r===e.activeBranchIndex?{...n,...void 0!==t?{value:t}:{}}:n);return{...e,branches:n}}function l(e){let t=(n,o)=>{let l=!1,i=n.map((n,i)=>{var a;let d=null==o?String(i):"".concat(o,".").concat(i),u=n;if(d===e.runtimeNodePath?u=function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=n.children,l=r||(t.sourcePath||n.sourcePath?t.sourcePath===n.sourcePath&&(!t.sourceInstanceKey||!n.sourceInstanceKey||t.sourceInstanceKey===n.sourceInstanceKey):t.type===n.type&&t.name===n.name);return{...n,...l&&t.id?{id:t.id}:{},...o?{children:o.map((n,r)=>{var o;let l=null==(o=t.children)?void 0:o[r];return l?e(l,n):n})}:{}}}(n,e.nextNode,!0):n.sourcePath&&e.previousNode.sourcePath&&n.sourcePath===e.previousNode.sourcePath&&(u=function(e,t,n){var o,l,i,a,d,u,c,s;let p=null!=(a=null==(o=t.liveBindings)?void 0:o.descriptors)?a:[],v=null!=(d=null==(l=n.liveBindings)?void 0:l.descriptors)?d:[],f=null!=(u=null==(i=e.liveBindings)?void 0:i.descriptors)?u:[];if(0===f.length||0===v.length)return e;let m=!1,h=new Set,g=f.map((e,t)=>{var n,r,o,l,i;let a=p[t],d=v[t];if(!(null==e?void 0:e.dynamic)||!(null==a?void 0:a.dynamic)||!(null==d?void 0:d.dynamic)||!Array.isArray(e.branches)||!Array.isArray(a.branches)||!Array.isArray(d.branches))return e;let u=a.branches,c=d.branches,s=!1,f=e.branches.map((e,t)=>{let n=u[t],r=c[t];return n&&r&&(n.value!==r.value||n.expression!==r.expression)?(s=!0,{...e,...r}):e});if(!s)return e;m=!0,"number"==typeof e.activeBranchIndex&&e.activeBranchIndex>=0&&c[e.activeBranchIndex]&&u[e.activeBranchIndex]&&((null==(n=c[e.activeBranchIndex])?void 0:n.value)!==(null==(r=u[e.activeBranchIndex])?void 0:r.value)||(null==(o=c[e.activeBranchIndex])?void 0:o.expression)!==(null==(l=u[e.activeBranchIndex])?void 0:l.expression))&&h.add(t);let g=e.activeBranchIndex,y="number"==typeof g&&g>=0&&g<f.length?null==(i=f[g])?void 0:i.value:e.activeValue;return{...e,branches:f,..."string"==typeof y?{activeValue:y}:{}}});if(!m)return e;let y={...null!=(c=e.style)?c:{}};for(let[e,t]of g.entries())h.has(e)&&(y=function(e,t){var n,o,l,i,a,d,u;let c=function(e){if(e){if("string"==typeof e.activeValue)return e.activeValue;if("number"==typeof e.activeBranchIndex&&e.activeBranchIndex>=0&&Array.isArray(e.branches)){var t;return null==(t=e.branches[e.activeBranchIndex])?void 0:t.value}}}(e);if(!c)return t;if("className"===e.source){let e=(0,r.pr)(c),u=(null==(l=e.style)||null==(o=l.fills)||null==(n=o[0])?void 0:n.type)==="color"?e.style.fills[0]:void 0,s=null==(a=e.style)||null==(i=a.textStyle)?void 0:i.color;return{...t,...u?{fills:[u]}:{},textStyle:null!=s?{...null!=(d=t.textStyle)?d:{},color:s}:t.textStyle}}return("animate"===e.source||"style"===e.source)&&("background"===e.property||"backgroundColor"===e.property)?{...t,fills:[{type:"color",value:c}]}:("animate"===e.source||"style"===e.source)&&"color"===e.property?{...t,textStyle:{...null!=(u=t.textStyle)?u:{},color:c}}:t}
1(t,y));return{...e,style:y,liveBindings:{...null!=(s=e.liveBindings)?s:{},descriptors:g}}}(n,e.previousNode,e.nextNode)),null==(a=n.children)?void 0:a.length){let e=t(n.children,d);e!==n.children&&(u=u===n?{...n,children:e}:{...u,children:e})}return u!==n&&(l=!0),u});return l?i:n};return t(e.nodes,null)}},25357:(e,t,n)=>{n.d(t,{Dl:()=>a,X$:()=>l,bG:()=>i});var r=n(58288),o=n(42891);function l(e){var t,n;let r=!0;if(e.preview.sourcePreviewPair){let{previousNode:n,nextNode:o}=e.preview.sourcePreviewPair;r=!1!==(null==(t=e.requestSourcePreview)?void 0:t.call(e,{previousNode:n,nextNode:e.mapSourcePreviewNextNode?e.mapSourcePreviewNextNode(n,o):o}))}e.preview.editPreview&&r&&(null==(n=e.setLivePropertyPreview)||n.call(e,e.preview.editPreview))}function i(e){return(0,r.f$)(e)}function a(e){var t,n,r,l,a,d,u,c;let s=null!=(l=null==(t=e.currentState.selection)?void 0:t.frameId)?l:null,p=null!=(a=null==(n=e.currentState.selection)?void 0:n.nodePath)?a:null,v=null!=(d=null==(r=e.currentState.selection)?void 0:r.nodeId)?d:null,f=null!=(u=e.resolveActiveNodePath(s,p,v))?u:null,m=null!=(c=e.resolveActiveNodeId(s,p,v))?c:null;if(!s||!f)return null;let h=e.getRenderedFrameNodes(s);return h?{frameId:s,nodePath:f,nodeId:m,selectedNode:e.currentState.selectedNode,preview:function(e){var t,n;let r=null!=(t=e.cloneNode)?t:i,l=e.nodeId&&null!=(n=e.getPathByNodeId(e.renderedNodes,e.nodeId))?n:null,a=null!=l?l:e.nodePath,d=t=>e.normalizeNode(e.updater(r(t))),u=e.selectedNode,c=u?(()=>{let t=r(u);return{previousNode:t,nextNode:e.normalizeNode(e.updater(r(t)))}})():null,s=e.nodeId&&l?e.updateNodeById(e.renderedNodes,e.nodeId,d):e.updateNodeAtPath(e.renderedNodes,a,d),p=function(e,t){let n=t.split(".").map(e=>Number(e)).filter(e=>Number.isInteger(e));if(0===n.length)return null;let r=e,o=null;for(let e of n){var l;if(!(o=null!=(l=null==r?void 0:r[e])?l:null))return null;r=o.children}return o}(s,a);return{nextNodes:s,resolvedNodePath:a,sourcePreviewPair:c,editPreview:p?(0,o.bP)({frameId:e.frameId,nodePath:a,previewNode:p,strategy:"transient-render-node"}):null}}({frameId:s,renderedNodes:h,selectedNode:e.currentState.selectedNode,nodePath:f,nodeId:m,updater:e.updater,normalizeNode:e.normalizeNode,cloneNode:e.cloneNode,getPathByNodeId:e.getPathByNodeId,updateNodeById:e.updateNodeById,updateNodeAtPath:e.updateNodeAtPath})}:null}},28145:(e,t,n)=>{n.d(t,{G:()=>r});function r(e,t){for(let o of["width","height"]){var n,r;let l="width"===o?"widthMode":"heightMode",i=null==e||null==(n=e.sizing)?void 0:n[l],a=null==t||null==(r=t.sizing)?void 0:r[l];if(i!==a||"fixed"===a&&(null==e?void 0:e[o])!==(null==t?void 0:t[o]))return!0}return!1}},32539:(e,t,n)=>{n.d(t,{n2:()=>h,ST:()=>v});var r=n(74855);let o=Number.MAX_SAFE_INTEGER;function l(e,t){if(0===e.length||e.trim()!==e||e.length>256)throw Error("".concat(t," must be a non-empty, trimmed string of at most 256 characters"))}function i(e,t,n){if(!Number.isSafeInteger(e)||e<n||e>o)throw Error("".concat(t," must be a safe integer greater than or equal to ").concat(n))}function a(e){return{accepted:!0,state:e,rejection:null}}function d(e,t){return{accepted:!1,state:e,rejection:t}}function u(e){return!e.lateDivergenceObserved&&0===e.activeHandoffOwnerIds.length&&null!==e.runtimeSessionId&&null!==e.latestRuntimeReportSequence&&e.latestRuntimeCanonicalFingerprint===e.expectedCanonicalFingerprint&&e.quiescentOpportunityCount>=e.requiredQuiescentOpportunities}function c(e){return a(u(e)?{...e,terminal:"settled"}:e)}function s(e,t){if(t.actionId!==e.actionId)return d(e,{code:"foreign-action"});if("settled"===e.terminal)return d(e,{code:"settlement-already-complete"});if(null!==e.terminal)return d(e,{code:"terminal-settlement"});switch(t.type){case"handoff-owner-retired":if(l(t.ownerId,"Canvas settlement handoff owner ID"),!e.activeHandoffOwnerIds.includes(t.ownerId))return d(e,{code:"unknown-handoff-owner"});return c({...e,activeHandoffOwnerIds:e.activeHandoffOwnerIds.filter(e=>e!==t.ownerId),retiredHandoffOwnerIds:[...e.retiredHandoffOwnerIds,t.ownerId].sort()});case"runtime-session-bound":if(l(t.commitRevisionId,"Canvas logical commit revision ID"),l(t.runtimeSessionId,"Canvas renderer frame session ID"),i(t.reportSequenceFloor,"Canvas renderer report sequence floor",0),t.commitRevisionId!==e.commitRevision.revisionId)return d(e,{code:"foreign-commit-revision"});if(e.runtimeSessionId===t.runtimeSessionId&&e.runtimeReportSequenceFloor===t.reportSequenceFloor)return a(e);return a({...e,runtimeSessionId:t.runtimeSessionId,runtimeReportSequenceFloor:t.reportSequenceFloor,latestRuntimeReportSequence:null,latestRuntimeCanonicalFingerprint:null,runtimeMatchObserved:!1,lateDivergenceObserved:!1,quiescentOpportunityCount:0});case"runtime-projection-observed":{if(l(t.runtimeSessionId,"Canvas renderer frame session ID"),i(t.reportSequence,"Canvas renderer report sequence",0),l(t.canonicalFingerprint,"Canvas settlement canonical fingerprint"),null===e.runtimeSessionId||null===e.runtimeReportSequenceFloor)return d(e,{code:"runtime-module-missing"});if(t.runtimeSessionId!==e.runtimeSessionId)return d(e,{code:"stale-runtime-session"});if(t.reportSequence<=e.runtimeReportSequenceFloor||null!==e.latestRuntimeReportSequence&&t.reportSequence<=e.latestRuntimeReportSequence)return d(e,{code:"stale-runtime-report-sequence"});let n=t.canonicalFingerprint===e.expectedCanonicalFingerprint;return a({...e,latestRuntimeReportSequence:t.reportSequence,latestRuntimeCanonicalFingerprint:t.canonicalFingerprint,runtimeMatchObserved:e.runtimeMatchObserved||n,lateDivergenceObserved:e.lateDivergenceObserved||e.runtimeMatchObserved&&!n,quiescentOpportunityCount:0})}case"quiescent-opportunity":if(null===e.runtimeSessionId)return d(e,{code:"runtime-module-missing"});if(e.latestRuntimeCanonicalFingerprint!==e.expectedCanonicalFingerprint)return d(e,{code:"runtime-projection-not-matched"});return c({...e,quiescentOpportunityCount:Math.min(e.requiredQuiescentOpportunities,e.quiescentOpportunityCount+1)});case"cancel":return a({...e,terminal:"cancelled"});case"timeout":return a({...e,terminal:"timed-out"});case"supersede":return l(t.supersededByActionId,"Superseding canvas action ID"),l(t.supersededByCommitRevisionId,"Superseding canvas commit revision ID"),a({...e,terminal:"superseded",supersededByActionId:t.supersededByActionId,supersededByCommitRevisionId:t.supersededByCommitRevisionId})}}function p(e){if("cancelled"===e.terminal)return{status:"cancelled"};if("superseded"===e.terminal){if(null===e.supersededByActionId||null===e.supersededByCommitRevisionId)throw Error("A superseded canvas revision is missing its successor identity");return{status:"superseded",supersededByActionId:e.supersededByActionId,supersededByCommitRevisionId:e.supersededByCommitRevisionId}}if("settled"===e.terminal){if(null===e.runtimeSessionId||null===e.latestRuntimeReportSequence||null===e.latestRuntimeCanonicalFingerprint)throw Error("A settled canvas revision is missing its runtime receipt");return{status:"settled",commitRevisionId:e.commitRevision.revisionId,commitSequence:e.commitRevision.sequence,runtimeSessionId:e.runtimeSessionId,runtimeReportSequence:e.latestRuntimeReportSequence,canonicalFingerprint:e.latestRuntimeCanonicalFingerprint,quiescentOpportunityCount:e.quiescentOpportunityCount}}if(e.lateDivergenceObserved&&null!==e.latestRuntimeCanonicalFingerprint)return{status:"invalid",code:"early-match-late-divergence",expectedCanonicalFingerprint:e.expectedCanonicalFingerprint,observedCanonicalFingerprint:e.latestRuntimeCanonicalFingerprint};let t=e.activeHandoffOwnerIds.length>0?{status:"pending",reason:"handoff-owner-active"}:null===e.runtimeSessionId?{status:"pending",reason:"runtime-module-missing"}:null===e.latestRuntimeCanonicalFingerprint?{status:"pending",reason:"runtime-projection-missing"}:e.latestRuntimeCanonicalFingerprint!==e.expectedCanonicalFingerprint?{status:"pending",reason:"runtime-projection-mismatch"}:{status:"pending",reason:"quiescence-insufficient"};if("timed-out"===e.terminal)return{status:"invalid",code:"settlement-timeout",reason:t.reason,expectedCanonicalFingerprint:e.expectedCanonicalFingerprint,observedCanonicalFingerprint:e.latestRuntimeCanonicalFingerprint};
1if(u(e))throw Error("A complete canvas revision must be sealed by its reducer transition");return t}function v(e,t){let n=r.Rz.get(e);if(null===n)return{ok:!1,reason:"unsupported-property"};let o=n.adapter.projectNode(t);return o.ok?{ok:!0,fingerprint:o.fingerprint}:{ok:!1,reason:o.reason}}function f(e){return{accepted:!1,rejection:e}}function m(e){return{accepted:!0,state:e,evaluation:p(e)}}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{scheduleTimeout(e,t){let n=globalThis.setTimeout(e,t);return()=>globalThis.clearTimeout(n)}},t=new Map,n=new Map,r=new Map;function o(e,t){let r=n.get(e);for(void 0===r&&(r=new Map,n.set(e,r)),r.set(t.actionId,t);r.size>32;){let e=r.keys().next().value;if("string"!=typeof e)break;r.delete(e)}}function a(e,r){var o;let l=t.get(e);if((null==l?void 0:l.actionId)===r)return{ok:!0,kind:"active",active:l};let i=null==(o=n.get(e))?void 0:o.get(r);return void 0!==i?{ok:!0,kind:"terminal",state:i}:[...t.entries()].some(t=>{let[n,o]=t;return n!==e&&o.actionId===r})||[...n.entries()].some(t=>{let[n,o]=t;return n!==e&&o.has(r)})?{ok:!1,result:f({code:"foreign-workspace"})}:{ok:!1,result:f({code:void 0===l?"missing-settlement":"foreign-action"})}}function d(e){"pending"!==p(e.state).status&&null!==e.cancelTimeout&&(e.cancelTimeout(),e.cancelTimeout=null)}function u(e,t,n){let r=a(e,t);if(!r.ok)return r.result;if("terminal"===r.kind)return f("settled"===r.state.terminal?{code:"settlement-already-complete"}:{code:"terminal-settlement"});let o=s(r.active.state,n);if(!o.accepted){if(null===o.rejection)throw Error("Rejected canvas revision transition is missing its reason");return f(o.rejection)}return r.active.state=o.state,d(r.active),m(r.active.state)}return{acceptCommit(n){var a,c,p;if(!Number.isSafeInteger(n.timeoutMs)||n.timeoutMs<1||n.timeoutMs>12e4)return f({code:"invalid-timeout"});let v=null!=(a=r.get(n.workspaceId))?a:0;if(n.commitSequence<=v)return f({code:"non-monotonic-commit-sequence"});let h=(l((p={revisionId:n.commitRevisionId,sequence:n.commitSequence,rendererReportCursor:n.rendererReportCursor}).revisionId,"Canvas logical commit revision ID"),i(p.sequence,"Canvas logical commit sequence",1),null!==p.rendererReportCursor&&(l(p.rendererReportCursor.frameSessionId,"Canvas renderer frame session ID"),i(p.rendererReportCursor.reportSequence,"Canvas renderer report sequence",0)),Object.freeze({authority:"logical-commit",revisionId:p.revisionId,sequence:p.sequence,rendererReportCursor:null===p.rendererReportCursor?null:Object.freeze({...p.rendererReportCursor})})),g=function(e){var t,n,r;if(l(e.actionId,"Canvas settlement action ID"),l(e.commitRevision.revisionId,"Canvas logical commit revision ID"),i(e.commitRevision.sequence,"Canvas logical commit sequence",1),l(e.expectedCanonicalFingerprint,"Canvas settlement canonical fingerprint"),!Number.isSafeInteger(e.requiredQuiescentOpportunities)||e.requiredQuiescentOpportunities<1||e.requiredQuiescentOpportunities>120)throw Error("Canvas settlement required quiescent opportunities must be an integer from 1 to 120");let o=[...null!=(t=e.handoffOwnerIds)?t:[]];if(o.length>32)throw Error("Canvas settlement supports at most ".concat(32," handoff owners"));if(o.forEach(e=>l(e,"Canvas settlement handoff owner ID")),new Set(o).size!==o.length)throw Error("Canvas settlement handoff owner IDs must be unique at commit acceptance");let a=e.commitRevision.rendererReportCursor;return{version:2,actionId:e.actionId,commitRevision:e.commitRevision,expectedCanonicalFingerprint:e.expectedCanonicalFingerprint,requiredQuiescentOpportunities:e.requiredQuiescentOpportunities,activeHandoffOwnerIds:o.sort(),retiredHandoffOwnerIds:[],runtimeSessionId:null!=(n=null==a?void 0:a.frameSessionId)?n:null,runtimeReportSequenceFloor:null!=(r=null==a?void 0:a.reportSequence)?r:null,latestRuntimeReportSequence:null,latestRuntimeCanonicalFingerprint:null,runtimeMatchObserved:!1,lateDivergenceObserved:!1,quiescentOpportunityCount:0,terminal:null,supersededByActionId:null,supersededByCommitRevisionId:null}}({actionId:n.actionId,commitRevision:h,expectedCanonicalFingerprint:n.expectedCanonicalFingerprint,requiredQuiescentOpportunities:n.requiredQuiescentOpportunities,handoffOwnerIds:n.handoffOwnerIds}),y=t.get(n.workspaceId);if(void 0!==y){if(null===y.state.terminal){let e=s(y.state,{type:"supersede",actionId:y.actionId,supersededByActionId:n.actionId,supersededByCommitRevisionId:n.commitRevisionId});if(!e.accepted){if(null===e.rejection)throw Error("Rejected canvas revision supersession is missing its reason");return f(e.rejection)}y.state=e.state}null==(c=y.cancelTimeout)||c.call(y),y.cancelTimeout=null,o(n.workspaceId,y.state)}let I={workspaceId:n.workspaceId,actionId:n.actionId,state:g,cancelTimeout:null};return t.set(n.workspaceId,I),r.set(n.workspaceId,n.commitSequence),I.cancelTimeout=e.scheduleTimeout(()=>{let e=t.get(n.workspaceId);e===I&&e.actionId===n.actionId&&u(n.workspaceId,n.actionId,{type:"timeout",actionId:n.actionId})},n.timeoutMs),d(I),m(I.state)},getStatus(e,t){let n=a(e,t);return n.ok?m("active"===n.kind?n.active.state:n.state):n.result},retireHandoffOwner:(e,t,n)=>u(e,t,{type:"handoff-owner-retired",actionId:t,ownerId:n}),bindRuntimeSession:e=>u(e.workspaceId,e.actionId,{type:"runtime-session-bound",actionId:e.actionId,commitRevisionId:e.commitRevisionId,runtimeSessionId:e.runtimeSessionId,reportSequenceFloor:e.reportSequenceFloor}),reportRuntimeProjection:e=>u(e.workspaceId,e.actionId,{type:"runtime-projection-observed",actionId:e.actionId,runtimeSessionId:e.runtimeSessionId,reportSequence:e.reportSequence,canonicalFingerprint:e.canonicalFingerprint}),reportQuiescentOpportunity:(e,t)=>u(e,t,{type:"quiescent-opportunity",actionId:t}),cancel:(e,t)=>
1u(e,t,{type:"cancel",actionId:t}),timeout:(e,t)=>u(e,t,{type:"timeout",actionId:t}),finish(e,n){var r,l;let i=a(e,n);return i.ok?"terminal"===i.kind?m(i.state):"pending"===p(i.active.state).status?f({code:"settlement-incomplete"}):(t.delete(e),null==(r=(l=i.active).cancelTimeout)||r.call(l),i.active.cancelTimeout=null,o(e,i.active.state),m(i.active.state)):i.result}}}},32582:(e,t,n)=>{function r(e){if(!e.schedulerRef.current){var t,n;e.schedulerRef.current=e.createRafPreviewScheduler({requestFrame:null!=(t=e.requestFrame)?t:requestAnimationFrame,cancelFrame:null!=(n=e.cancelFrame)?n:cancelAnimationFrame},e.applyPreviewChangeNow)}return e.schedulerRef.current}function o(e){r(e).schedule(e.updater)}function l(e){r(e).flush()}function i(e){var t;null==(t=e.schedulerRef.current)||t.cancel()}n.d(t,{X4:()=>o,fb:()=>i,zm:()=>l})},34203:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{W:()=>i,z:()=>a});var o=n(36948),l=e([o]);function i(e){return!e.preparedCommit.skipDefaultFrameUpdate&&(e.setFrames(t=>t.map(t=>{let n=(0,o.K)({frame:t,frameId:e.context.frameId,fallbackNodes:e.context.frame.nodes,source:e.preparedCommit.sourceUpdate.source,runtimeNodePath:e.context.runtimeNodePath,previousNode:e.beforeNode,nextNode:e.preparedCommit.afterNode,analyzeSource:e.analyzeSource});if(n.didUpdate){var r,l,i,a,d,u;n.rootSize&&e.preparedCommit.isRootResizeCommit?null==(d=e.liveRootSizeAuthorityRef)||d.current.set(t.id,n.rootSize):e.preparedCommit.isRootResizeCommit&&"0"===e.context.runtimeNodePath&&((null==(r=e.preparedCommit.afterNode.sizing)?void 0:r.widthMode)==="hug"||(null==(l=e.preparedCommit.afterNode.sizing)?void 0:l.widthMode)==="fill"||(null==(i=e.preparedCommit.afterNode.sizing)?void 0:i.heightMode)==="hug"||(null==(a=e.preparedCommit.afterNode.sizing)?void 0:a.heightMode)==="fill")&&(null==(u=e.liveRootSizeAuthorityRef)||u.current.delete(t.id))}return n.frame})),!0)}function a(e){var t,n,r,o;null==(t=e.setLivePropertyPreview)||t.call(e,null),null==(n=e.setLatchedLiveSubtreeRemount)||n.call(e,e.handoff.subtreeRemount),null==(r=e.clearLivePreviewForFrame)||r.call(e,e.handoff.committedTarget.frameId),e.propertyInteractionTargetRef&&(e.propertyInteractionTargetRef.current=e.handoff.committedTarget),null==(o=e.setActivePropertyInteraction)||o.call(e,e.handoff.committedTarget)}o=(l.then?(await l)():l)[0],r()}catch(e){r(e)}})},34871:(e,t,n)=>{n.d(t,{HZ:()=>u,OY:()=>l,Qv:()=>s,XE:()=>d,iH:()=>p,mZ:()=>i,sh:()=>c,y0:()=>a});var r=n(6197);let o="bloom-canvas-cursor-lock";function l(e){return e?{x:Math.round(100*e.x)/100,y:Math.round(100*e.y)/100,width:Math.round(100*e.width)/100,height:Math.round(100*e.height)/100}:null}function i(e){var t,n,r,o,l,i,a,d,u;return e?{id:null!=(t=e.id)?t:null,type:null!=(n=e.type)?n:null,width:null!=(r=e.width)?r:null,height:null!=(o=e.height)?o:null,rotation:null!=(l=e.rotation)?l:null,layoutPositioning:null!=(i=e.layoutPositioning)?i:null,sizing:null!=(a=e.sizing)?a:null,moveOffset:null!=(d=e._moveOffset)?d:null,absoluteRenderPosition:null!=(u=e.absoluteRenderPosition)?u:null}:null}function a(e){return"top"!==e&&"bottom"!==e}function d(e){return"left"!==e&&"right"!==e}function u(e,t,n,o,l,i,u){let c=e;return a(t)&&(c=(0,r.P)(c,"width","fixed",l,i,n,u)),d(t)&&(c=(0,r.P)(c,"height","fixed",l,i,o,u)),c}function c(e,t,n,r,o,l){return u(e,"bottom-right",t,n,r,o,l)}function s(e){let{flexGrow:t,flexShrink:n,...r}=null!=e?e:{};return{...r,widthMode:"fixed",heightMode:"fixed"}}function p(e){if("undefined"==typeof document)return;let t=document.getElementById(o);if(!e){null==t||t.remove(),document.body.style.cursor="",document.documentElement.style.cursor="";return}let n=t instanceof HTMLStyleElement?t:Object.assign(document.createElement("style"),{id:o});n.textContent="*, *::before, *::after { cursor: ".concat(e," !important; }"),n.parentNode||document.head.appendChild(n),document.body.style.cursor=e,document.documentElement.style.cursor=e}},36948:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{K:()=>s,k:()=>c});var o=n(88955),l=n(23052),i=n(99613),a=n(17063),d=n(28145),u=e([o,a,i]);function c(e){var t,n;let r=e.context.sourceInstanceKey?{...e.beforeNode,sourceInstanceKey:e.context.sourceInstanceKey}:e.beforeNode,l=(0,o._o)(e.beforeNode,e.afterNode),i=(0,a.YB)(e.beforeNode,l).nextNode,u=null==(t=e.commitSourceEdit)?void 0:t.call(e,{frame:e.context.frame,frameId:e.context.frameId,source:e.context.source,nodePath:e.context.nodePath,runtimeNodePath:e.context.runtimeNodePath,sourceInstanceKey:e.context.sourceInstanceKey,beforeNode:r,afterNode:i}
1),c=null!=u?u:{source:e.context.source,didChange:!1},s=null!=(n=c.targetSource)?n:c.source,p="0"===e.context.runtimeNodePath&&(0,d.G)(e.beforeNode,i);return{...{afterNode:i,sourceUpdate:c,targetSource:s,usedCustomSourceUpdate:!!u,isRootResizeCommit:p,skipDefaultFrameUpdate:!!c.skipDefaultFrameUpdate},didChange:c.didChange}}function s(e){var t,n,r,o;if(e.frame.id!==e.frameId)return{frame:e.frame,didUpdate:!1,rootSize:null};let a=null!=(n=null!=(t=e.frame.nodes)?t:e.fallbackNodes)?n:[],d=(0,l.P0)({nodes:a,runtimeNodePath:e.runtimeNodePath,previousNode:e.previousNode,nextNode:e.nextNode}),u=null!=(r=e.analyzeSource)?r:i.Dp;try{let t=u(e.source),n=t.componentName,r="_BloomCanvasFrame"===n&&e.frame.liveComponentName&&"_BloomCanvasFrame"!==e.frame.liveComponentName?e.frame.liveComponentName:n;return{frame:{...e.frame,liveSource:e.source,liveComponentName:r,liveCompileError:null,nodes:d,code:void 0},didUpdate:!0,rootSize:function(e){if(!e)return null;let{width:t,height:n}=e;return"number"!=typeof t||!Number.isFinite(t)||t<=0||"number"!=typeof n||!Number.isFinite(n)||n<=0?null:{width:t,height:n}}(null==(o=t.nodes)?void 0:o[0])}}catch(t){return{frame:{...e.frame,liveSource:e.source,liveCompileError:t instanceof Error?t.message:"Failed to parse the current frame source.",nodes:d,code:void 0},didUpdate:!0,rootSize:null}}}[o,a,i]=u.then?(await u)():u,r()}catch(e){r(e)}})},39670:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{NT:()=>s,pQ:()=>u,yi:()=>c});var o=n(58288),l=n(28994),i=n(70445),a=n(42891),d=e([i]);function u(e){var t,n,r;let{preview:o}=e;if(!o)return!1;if(o.frameId!==e.frameId)return!!(null==(n=o.visual.renderNodesByFrameId)?void 0:n[e.frameId]);let d=o.sourceState.baseSource;if(null!==d&&void 0!==e.frameSource&&null!==e.frameSource&&e.frameSource!==d)return!1;if(o.strategy===a.w$||"__multi-frame-property-preview__"===o.nodePath)return!!(null==(r=o.visual.renderNodesByFrameId)?void 0:r[e.frameId]);if(!(null==(t=e.frameNodes)?void 0:t.length))return!1;let u=(0,l.Tr)(e.frameNodes,o.nodePath);return!!(u&&(u.id===o.previewNode.id||(0,i.zZ)(o.previewNode,u)))}function c(e){var t,n;return null!=(n=null==(t=function(e){let t=function(e){var t,n;if(!e.preview)return null;let r=e.preview;if(!u(e))return null;let l=null==(t=r.visual.renderNodesByFrameId)?void 0:t[e.frameId];return l||((null==(n=e.frameNodes)?void 0:n.length)&&r.frameId===e.frameId&&"transient-render-node"===r.strategy?(0,o.Gd)(e.frameNodes,r.nodePath,()=>r.previewNode):null)}({frameId:e.frameId,frameSource:e.frameSource,frameNodes:e.frameNodes,preview:e.preview});return t?{nodes:t,authority:"canonical-edit-preview"}:null}({frameId:e.frameId,frameSource:e.frameSource,frameNodes:e.frameNodes,preview:e.preview}))?void 0:t.nodes)?n:null}function s(e){var t,n;let r=e.preview;if(!r||r.strategy===a.w$||!u(e))return null;let l=null==(t=r.visual.renderNodesByFrameId)?void 0:t[e.frameId];return l||(r.frameId===e.frameId&&(null==(n=e.frameNodes)?void 0:n.length)?(0,o.Gd)(e.frameNodes,r.nodePath,()=>r.previewNode):null)}i=(d.then?(await d)():d)[0],r()}catch(e){r(e)}})},41127:(e,t,n)=>{n.d(t,{E8:()=>l,Lj:()=>i});var r=n(41774);let o=new Map;function l(e){let t=o.get(e);if(void 0!==t)return t;let n=(0,r.E6)();return o.set(e,n),n}function i(e){return(null==e?void 0:e.codeRefId)!==void 0}},42758:(e,t,n)=>{n.d(t,{KX:()=>y,PU:()=>d,Rr:()=>h,Sl:()=>v,_T:()=>g,ub:()=>f,xL:()=>m});var r=n(37172);let o=[],l=()=>()=>{},i={nodePath:null,nodeId:null},a={frameId:null,nodePath:null,nodeId:null},d={hover:a,hoverRect:null,hoverChildRects:o,hoverParentRect:null,camera:null};function u(e,t){return e===t||!!e&&!!t&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function c(e,t){var n,r;return e.frameId===t.frameId&&e.nodePath===t.nodePath&&(null!=(n=e.nodeId)?n:null)===(null!=(r=t.nodeId)?r:null)}function s(e){var t;if(!e.frameId)return[];let n=["".concat(e.frameId,":path:").concat(null!=(t=e.nodePath)?t:"")];return e.nodeId&&n.push("".concat(e.frameId,":id:").concat(e.nodeId)),n}function p(e){var t,n;return null===e.hover.frameId&&null===e.hover.nodePath&&(null!=(t=e.hover.nodeId)?t:null)===null&&null===e.hoverRect&&0===e.hoverChildRects.length&&null===e.hoverParentRect&&null===e.camera?d:{hover:{frameId:e.hover.frameId,nodePath:e.hover.nodePath,nodeId:null!=(n=e.hover.nodeId)?n:null},hoverRect:e.hoverRect,hoverChildRects:0===e.hoverChildRects.length?o:e.hoverChildRects,hoverParentRect:e.hoverParentRect,camera:e.camera?{zoom:e.camera.zoom,panOffset:{x:e.camera.panOffset.x,y:e.camera.panOffset.
1y}}:null}}function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=p(e),n=new Set,r=new Map,o=new Map,l=(e,t)=>{var l,i;for(let e of n)e();if(c(e,t))return;for(let n of new Set([e.frameId,t.frameId].filter(e=>null!==e)))for(let e of null!=(l=r.get(n))?l:[])e();let a=new Set;for(let n of[...s(e),...s(t)])for(let e of null!=(i=o.get(n))?i:[])a.add(e);for(let e of a)e()};return{getSnapshot:()=>t,getServerSnapshot:()=>t,subscribe:e=>(n.add(e),()=>{n.delete(e)}),subscribeFrame:(e,t)=>{var n;let o=null!=(n=r.get(e))?n:new Set;return o.add(t),r.set(e,o),()=>{o.delete(t),0===o.size&&r.delete(e)}},subscribeLayer:(e,t,n,r)=>{let l=function(e,t,n){let r=["".concat(e,":path:").concat(t)];return n&&r.push("".concat(e,":id:").concat(n)),r}(e,t,n);for(let e of l){var i;let t=null!=(i=o.get(e))?i:new Set;t.add(r),o.set(e,t)}return()=>{for(let e of l){let t=o.get(e);null==t||t.delete(r),(null==t?void 0:t.size)===0&&o.delete(e)}}},setSnapshot:e=>{var n,r,o,i,a,d,s,v,f,m;let h=p(e);if(n=t,r=h,c(n.hover,r.hover)&&u(n.hoverRect,r.hoverRect)&&(f=n.hoverChildRects,m=r.hoverChildRects,f.length===m.length&&f.every((e,t)=>{var n;return u(e,null!=(n=m[t])?n:null)}))&&u(n.hoverParentRect,r.hoverParentRect)&&(null==(o=n.camera)?void 0:o.zoom)===(null==(i=r.camera)?void 0:i.zoom)&&(null==(a=n.camera)?void 0:a.panOffset.x)===(null==(d=r.camera)?void 0:d.panOffset.x)&&(null==(s=n.camera)?void 0:s.panOffset.y)===(null==(v=r.camera)?void 0:v.panOffset.y))return;let g=t.hover;c(t.hover,h.hover)&&(h={...h,hover:t.hover}),t=h,l(g,h.hover)},clear:()=>{if(t===d)return;let e=t.hover;t=d,l(e,a)}}}function f(e){var t,n,o;return(0,r.useSyncExternalStore)(null!=(t=null==e?void 0:e.subscribe)?t:l,null!=(n=null==e?void 0:e.getSnapshot)?n:()=>d,null!=(o=null==e?void 0:e.getServerSnapshot)?o:()=>d)}function m(e){var t;let n=(0,r.useCallback)(()=>{var t;return null!=(t=null==e?void 0:e.getSnapshot().hover)?t:a},[e]),o=(0,r.useCallback)(()=>{var t;return null!=(t=null==e?void 0:e.getServerSnapshot().hover)?t:a},[e]);return(0,r.useSyncExternalStore)(null!=(t=null==e?void 0:e.subscribe)?t:l,n,o)}function h(e,t){return m(t?e:null)}function g(e,t){let n=(0,r.useMemo)(()=>{let n=i;return()=>{var r,o;let l=null!=(r=null==e?void 0:e.getSnapshot().hover)?r:a,d=l.frameId===t?l.nodePath:null,u=l.frameId===t&&null!=(o=l.nodeId)?o:null;return n.nodePath===d&&n.nodeId===u?n:n=null===d&&null===u?i:{nodePath:d,nodeId:u}}},[t,e]),o=(0,r.useMemo)(()=>e?n=>e.subscribeFrame(t,n):l,[t,e]);return(0,r.useSyncExternalStore)(o,n,n)}function y(e,t,n,o){let i=(0,r.useCallback)(()=>{var r;let l=null!=(r=null==e?void 0:e.getSnapshot().hover)?r:a;return l.frameId===t&&(l.nodePath===n||!!o&&l.nodeId===o)},[t,o,n,e]),d=(0,r.useMemo)(()=>e?r=>e.subscribeLayer(t,n,o,r):l,[t,o,n,e]);return(0,r.useSyncExternalStore)(d,i,i)}},46375:(e,t,n)=>{n.d(t,{CL:()=>m,DA:()=>I,In:()=>v,L9:()=>h,MX:()=>g,NO:()=>P,S$:()=>c,hl:()=>y,jl:()=>w,kr:()=>f,lK:()=>b,xh:()=>N});let r=new Map,o=new Map,l=new Map,i=new Map,a=new Set,d=new Set,u=1;function c(e){let t=e.toLowerCase().replace(/^\[|\]$/gu,"");return"localhost"===t||"127.0.0.1"===t||"::1"===t||t.endsWith(".test.bloom.diy")}function s(e){let t=0x811c9dc5;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,0x1000193);return(t>>>0).toString(16).padStart(8,"0")}function p(e){var t;let n=JSON.stringify({kind:e.kind,source:e.source,componentName:e.componentName,isolatedNodePath:e.isolatedNodePath,node:e.node,sourcePlacement:null!=(t=e.sourcePlacement)?t:null});return"clipboard:fnv1a32:".concat(s(n))}function v(e){if(null===e.workspaceId||0===e.workspaceId.length||!d.has(e.workspaceId))return null;let t=u;u+=1;let n={version:1,receiptId:"".concat(e.workspaceId,":clipboard-copy:").concat(t),workspaceId:e.workspaceId,sourceFrameId:e.sourceFrameId,sourceNodePath:e.sourceNodePath,sourceNodeId:e.sourceNodeId,payloadKind:e.payload.kind,payloadFingerprint:p(e.payload),eventSequence:t,copiedAtMs:performance.now()};return r.set(e.workspaceId,n),n}function f(e){var t;return null!=(t=r.get(e))?t:null}function m(e){var t,n,l,i;if(null===e.workspaceId||0===e.workspaceId.length||!d.has(e.workspaceId))return null;
1let c=null!=(t=r.get(e.workspaceId))?t:null,v=p(e.payload),f=a.delete(e.workspaceId),m=f?"clipboard:fnv1a32:".concat(s("".concat(v,":scenario-provenance-mismatch"))):v,h=u;u+=1;let g={version:1,receiptId:"".concat(e.workspaceId,":clipboard-paste:").concat(h),workspaceId:e.workspaceId,clipboardCopyReceiptId:null!=(n=null==c?void 0:c.receiptId)?n:null,sourceFrameId:null!=(l=null==c?void 0:c.sourceFrameId)?l:null,sourceNodeId:null!=(i=null==c?void 0:c.sourceNodeId)?i:null,createdFrameId:e.createdFrameId,createdNodeId:e.createdNodeId,payloadFingerprint:m,clipboardProvenanceMatched:null!==c&&c.payloadFingerprint===m,scenarioInjectedFault:f,eventSequence:h,pastedAtMs:performance.now()};return o.set(e.workspaceId,g),g}function h(e){return 0!==e.length&&!!d.has(e)&&(a.add(e),!0)}function g(e){var t;return null!=(t=o.get(e))?t:null}function y(e){var t,n,o,i,a;if(null===e.workspaceId||0===e.workspaceId.length||!d.has(e.workspaceId))return null;let c=null!=(t=r.get(e.workspaceId))?t:null,s=p(e.payload),v=u;u+=1;let f={version:1,receiptId:"".concat(e.workspaceId,":clipboard-nested-paste:").concat(v),workspaceId:e.workspaceId,clipboardCopyReceiptId:null!=(n=null==c?void 0:c.receiptId)?n:null,sourceFrameId:null!=(o=null==c?void 0:c.sourceFrameId)?o:null,sourceNodePath:null!=(i=null==c?void 0:c.sourceNodePath)?i:null,sourceNodeId:null!=(a=null==c?void 0:c.sourceNodeId)?a:null,destinationFrameId:e.destinationFrameId,destinationParentNodePath:e.destinationParentNodePath,destinationParentNodeId:e.destinationParentNodeId,createdNodePath:e.createdNodePath,createdNodeId:e.createdNodeId,...void 0===e.createdSourceInstanceKey?{}:{createdSourceInstanceKey:e.createdSourceInstanceKey},payloadFingerprint:s,clipboardProvenanceMatched:null!==c&&c.payloadFingerprint===s,eventSequence:v,pastedAtMs:performance.now()};return l.set(e.workspaceId,f),f}function I(e){var t;return null!=(t=l.get(e))?t:null}function w(e){if(null===e.workspaceId||0===e.workspaceId.length||!d.has(e.workspaceId))return null;let t=u;u+=1;let n={version:1,receiptId:"".concat(e.workspaceId,":nested-duplicate:").concat(t),workspaceId:e.workspaceId,sourceFrameId:e.sourceFrameId,sourceNodePath:e.sourceNodePath,sourceNodeId:e.sourceNodeId,destinationParentNodePath:e.destinationParentNodePath,destinationParentNodeId:e.destinationParentNodeId,createdNodePath:e.createdNodePath,createdNodeId:e.createdNodeId,...void 0===e.createdSourceInstanceKey?{}:{createdSourceInstanceKey:e.createdSourceInstanceKey},eventSequence:t,duplicatedAtMs:performance.now()};return i.set(e.workspaceId,n),window.dispatchEvent(new CustomEvent("bloom:canvas-nested-duplicate-committed",{detail:{workspaceId:e.workspaceId,eventSequence:n.eventSequence}})),n}function b(e){var t;return null!=(t=i.get(e))?t:null}function N(e){r.delete(e),o.delete(e),l.delete(e),i.delete(e),a.delete(e)}function P(e){d.add(e);let t=!0;return()=>{t&&(t=!1,d.delete(e),N(e))}}},49221:(e,t,n)=>{n.d(t,{K0:()=>d,of:()=>a,uS:()=>i});var r=n(33088),o=n(3283),l=n(71833);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null==t?void 0:t.eventSequence;return{kind:"bloom-canvas-diagnostics",version:2,schemaVersion:r.zN,reducerVersion:r.Yf,status:e.status,pacing:e.scheduler,observer:e.observer,runtimeLayoutReports:e.runtimeLayoutReports,current:{selection:e.latestSelection,camera:e.latestCamera,frameGeometry:e.latestFrameGeometry,runtimePreview:e.latestRuntimePreview,renderedGeometry:e.latestRenderedGeometry,selectedNodeGeometry:e.latestSelectedNodeGeometry,resizeInput:e.latestResizeInput},issues:void 0===t?e.issues:[t],recentEvents:null==i?e.recentEvents:e.recentEvents.filter(e=>3>=Math.abs(e.sequence-i)),renderContract:n,reactRenders:(0,l.n2)(),startup:(0,o.qy)()}}async function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;await navigator.clipboard.writeText(JSON.stringify(i(e,t,n),null,2))}async function d(e,t){await navigator.clipboard.writeText(JSON.stringify({kind:"bloom-react-render-diagnostic",version:1,totals:{commitCount:t.commitCount,renderCount:t.renderCount,redundantRenderCount:t.redundantRenderCount},component:e},null,2))}},53167:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{E5:()=>s,Wz:()=>g,ZR:()=>m,lt:()=>f});var o=n(28994),l=n(58288),i=n(88955),a=n(90960),d=n(42891),u=n(25357),c=e([i,a]);function s(e){var t;let n=null!=(t=e.cloneNode)?t:u.bG,r=e.normalizeNode(n(e.node)),o=(0,i._o)(r,e.normalizeNode(e.updater(n(r))));return{previousNode:r,nextNode:o}}function p(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&Object.getPrototypeOf(e)===Object.prototype}function v(e,t){return e===t||"object"==typeof e&&"object"==typeof t&&!!e&&!!t&&JSON.stringify(e)===JSON.stringify(t)}function f(e){var t;let n=e.updater(e.base),r=function e(t,n,r){if(v(n,r))return t;if(!p(n)||!p(r)||!p(t))return r;let o={...t};for(let l of new Set([...Object.keys(n),...Object.keys(r)]))if(!v(n[l],r[l])){if(!(l in r)){delete o[l];continue}o[l]=e(t[l],n[l],r[l])}return o}(n,{...e.previewBase,children:void 0},{...e.previewNode,children:void 0});return(t=r,p(t)&&"string"==typeof t.type)?r:n}function m(e){var t;let n=(0,a.Z)({currentState:e.currentState,interactionTarget:e.interactionTarget,frames:e.frames,resolvedSelectionCount:e.resolvedSelectionCount,resolveActiveNodePath:e.resolveActiveNodePath,getNodeByPathInTree:e.getNodeByPathInTree,logMissingInteractionTarget:e.logMissingInteractionTarget,preferUncommittedInteractionTargetNode:!0});return(null==n||null==(t=n.frame)?void 0:t.liveSource)?{target:n,...s({node:n.node,updater:e.updater,normalizeNode:e.normalizeNode,cloneNode:e.cloneNode})}:null}function h(e){var t,n;if(!e)return null;let r=e.match(/^(.*?)(\d+(?:\.\d+)*)$/);if(!r)return null;let o=null!=(t=r[1])?t:"";return o&&!o.endsWith(":")?null:{prefix:o,path:null!=(n=r[2])?n:""}}function g(e){var t;if(!(null==(t=e.frameNodes)?void 0:t.length))return null;let n=(0,l.Gd)(e.frameNodes,e.updatedNodePath,()=>e.updatedNode).map((e,t)=>{var n;let r=h(e.sourcePath);return function e(t,n,r,o){var l;let i=h(t.sourcePath),a=o&&null!==i&&i.prefix===r,d=null==(l=t.children)?void 0:l.map((t,l)=>e(t,"".concat(n,".").concat(l),r,a||o&&null===i)),u=a?"".concat(r).concat(n):t.sourcePath;return u===t.sourcePath&&d===t.children?t:{...t,sourcePath:u,...d?{children:d}:{}}
1}(e,String(t),null!=(n=null==r?void 0:r.prefix)?n:"",!0)}),r=(0,o.Tr)(n,e.selectedNodePath);return r?(0,d.bP)({frameId:e.frameId,baseSource:e.baseSource,nodePath:e.selectedNodePath,previewNode:r,patches:[],strategy:"runtime-write",renderNodesByFrameId:{[e.frameId]:n}}):null}[i,a]=c.then?(await c)():c,r()}catch(e){r(e)}})},56893:(e,t,n)=>{n.d(t,{Bu:()=>m,Yh:()=>g,nv:()=>h});var r=n(74855);let o=["canvas.core-observation","canvas.render-contract","canvas.finite-event-trace","canvas.property-lifecycle","canvas.runtime-settlement","canvas.history-lifecycle"],l=["canvas.core-observation","canvas.render-contract","canvas.finite-event-trace","canvas.property-lifecycle","canvas.runtime-settlement"],i=["canvas.core-observation","canvas.render-contract","canvas.finite-event-trace","canvas.runtime-settlement"],a=["canvas.core-observation","canvas.render-contract","canvas.finite-event-trace","canvas.history-lifecycle","canvas.runtime-settlement"],d=[u("canvas.property.size.width","schema-ready","registry-driven"),u("canvas.property.size.height","schema-ready","registry-driven"),u("canvas.property.style.opacity","scenario-proven","registry-driven"),u("canvas.property.layout.gap","scenario-proven","registry-driven"),u("canvas.property.layout.padding.horizontal","scenario-proven","registry-driven"),{id:"canvas.resize.width",family:"resize",agentTool:"canvas_resize_selection",driverMode:"specialized",requiredProducerIds:i,propertyDescriptorCapability:"schema-ready",unavailableReason:null},{id:"canvas.resize.height",family:"resize",agentTool:"canvas_resize_selection",driverMode:"specialized",requiredProducerIds:i,propertyDescriptorCapability:"schema-ready",unavailableReason:null},c("canvas.camera.pan","canvas_pan"),c("canvas.camera.zoom","canvas_zoom"),p("canvas.structural.nested.delete","canvas_delete_selection"),p("canvas.structural.nested.add","canvas_add_nested_frame"),p("canvas.structural.nested.reorder","canvas_reorder_nested_layer"),p("canvas.structural.nested.reparent","canvas_reparent_nested_layer"),p("canvas.structural.nested.copy","canvas_copy_nested_layer"),p("canvas.structural.nested.paste","canvas_paste_nested_layer"),p("canvas.structural.nested.duplicate","canvas_duplicate_nested_layer"),{id:"canvas.structural.nested.reparent.cancel",family:"structural",agentTool:null,driverMode:"unavailable",requiredProducerIds:l,propertyDescriptorCapability:null,unavailableReason:"nested-reparent-cancel-receipt-not-shipped"},v("canvas.structural.frame.draw","canvas_draw_frame"),v("canvas.structural.frame.paste","canvas_paste_frame"),v("canvas.structural.frame.duplicate","canvas_duplicate_frame"),v("canvas.structural.frame.delete","canvas_delete_frame"),s("canvas.history.undo"),s("canvas.history.redo"),{id:"canvas.persistence.remote-settlement",family:"persistence",agentTool:null,driverMode:"unavailable",requiredProducerIds:["canvas.core-observation","canvas.finite-event-trace"],propertyDescriptorCapability:null,unavailableReason:"remote-yjs-persistence-receipt-not-shipped"}];function u(e,t,n){return{id:e,family:"property",agentTool:"registry-driven"===n?"canvas_edit_property":"canvas_edit_selection_size",driverMode:n,requiredProducerIds:l,propertyDescriptorCapability:t,unavailableReason:null}}function c(e,t){return{id:e,family:"camera",agentTool:t,driverMode:"specialized",requiredProducerIds:i,propertyDescriptorCapability:null,unavailableReason:null}}function s(e){return{id:e,family:"history",agentTool:"canvas.history.undo"===e?"canvas_undo":"canvas_redo",driverMode:"specialized",requiredProducerIds:a,propertyDescriptorCapability:null,unavailableReason:null}}function p(e,t){return{id:e,family:"structural",agentTool:t,driverMode:"specialized",requiredProducerIds:l,propertyDescriptorCapability:"scenario-proven",unavailableReason:null}}function v(e,t){return{id:e,family:"structural",agentTool:t,driverMode:"specialized",requiredProducerIds:a,propertyDescriptorCapability:"scenario-proven",unavailableReason:null}}function f(e,t){let n=new Set(t),r=e.requiredProducerIds.filter(e=>!n.has(e)),o=r.length>0?"invalid":null!==e.unavailableReason?"unavailable":"supported";return{id:e.id,family:e.family,status:o,agentTool:e.agentTool,driverMode:e.driverMode,requiredProducerIds:[...e.requiredProducerIds],missingProducerIds:r,propertyDescriptorCapability:e.propertyDescriptorCapability,reason:"invalid"===o?"instrumentation-gap:".concat(r.join(",")):e.unavailableReason}}function m(e){var t,n;let l=null!=(t=e.mountedProducerIds)?t:o,i=null!=(n=e.fixture)?n:{status:"unbound",reason:"workspace-not-bound-to-checked-fixture"},a=r.Rz.ids().map(e=>{let t=r.Rz.get(e);if(null===t)throw Error("Missing canvas property adapter: ".concat(e));return{propertyId:e,capability:t.adapter.capability}});return{kind:"canvas-investigation-coverage",version:1,buildVersion:"b60e7e898a0a25ccb90c7f2d844de7047e0776c6",workspaceId:e.workspaceId,fixture:i,expectedComponentInstances:"bound"===i.status?function(e){let t=["canvas.frame.element","canvas.frame.slot","canvas.frame.view","canvas.runtime.shell"];return[...t.map(t=>({componentId:t,instanceKey:e.targetFrameId,fixtureRole:"target"})),...t.map(t=>({componentId:t,instanceKey:e.controlFrameId,fixtureRole:"control"}))]}(i):[],mountedProducerIds:[...l],genericPropertyTool:{tool:"canvas_edit_property",status:"registry-driven",supportedPropertyIds:["size.width","size.height","style.opacity","layout.gap","layout.padding.horizontal"]},productPropertyAdapters:a,actions:d.map(e=>f(e,l))}}function h(e){let t=e=>e.length>0&&e.length<=256&&e.trim()===e;return t(e.id)&&Number.isSafeInteger(e.version)&&!(e.version<1)&&/^[a-f0-9]{64}$/u.test(e.sourceDigest)&&e.runtimeSourceDigest===e.sourceDigest&&t(e.targetFrameId)&&t(e.controlFrameId)&&e.targetFrameId!==e.controlFrameId&&"exact-source-plus-checked-runtime-anchors"===e.readinessEvidence?{status:"bound",id:e.id,version:e.version,sourceDigest:e.sourceDigest,targetFrameId:e.targetFrameId,controlFrameId:e.controlFrameId,readinessEvidence:e.readinessEvidence}:null}function g(e,t){var n;let r=d.find(e=>e.id===t.actionId);if(void 0===r)throw Error("Unknown canvas investigation action: ".concat(t.actionId));let o=new Set(null!=(n=t.omittedProducerIds)?n:[]),l=f(r,e.mountedProducerIds.filter(e=>!o.has(e))),i="invalid"===l.status;return{kind:"canvas-investigation-action-coverage",action:l,validity:i?"invali
1d":"valid",issue:i?{code:"instrumentation-gap",missingProducerIds:l.missingProducerIds}:null}}},59478:(e,t,n)=>{n.d(t,{Bj:()=>r,Zv:()=>o,bQ:()=>i});let r="This visual edit needs per-instance visual overrides, which local components do not support yet. Edit the component definition or its props instead.";function o(e){var t,n,r;return"INSTANCE"===e.type&&((null==(n=e.component)||null==(t=n.codeRefId)?void 0:t.startsWith("local:"))===!0||(null==(r=e.sourceInstanceKey)?void 0:r.startsWith("local:"))===!0)}function l(e,t){let{_dragHidden:n,_moveOffset:r,...o}=e,l=(null==t?void 0:t.allowCanvasFrameMoveOffset)?o:{...o,_moveOffset:r};return l.component?{...l,component:{...l.component,props:[]}}:l}function i(e,t,n){var i,a,d,u,c,s,p,v;if(!o(e)||(null!=(v=null==(p=e.component)?void 0:p.props)?v:[]).some(e=>"className"===e.name)||JSON.stringify(e)===JSON.stringify(t))return null;let f=JSON.stringify(null!=(d=null==(i=e.component)?void 0:i.props)?d:null)!==JSON.stringify(null!=(u=null==(a=t.component)?void 0:a.props)?u:null),m=e._dragHidden!==t._dragHidden,h=(null==n?void 0:n.allowCanvasFrameMoveOffset)===!0&&JSON.stringify(null!=(c=e._moveOffset)?c:null)!==JSON.stringify(null!=(s=t._moveOffset)?s:null);return(f||m||h)&&JSON.stringify(l(e,n))===JSON.stringify(l(t,n))?null:r}},59868:(e,t,n)=>{n.d(t,{J:()=>r});function r(e,t,n){var r,o,l;if((null==n?void 0:n.readOnlyInEditor)||(null==n?void 0:n.isSyntheticFragmentRoot))return null;let i=Array.from(new Set(null!=(l=null==n||null==(o=n.liveBindings)||null==(r=o.descriptors)?void 0:r.map(e=>e.sourcePath).filter(e=>"string"==typeof e&&e.length>0))?l:[])),a=1===i.length?i[0]:null;return a&&(!(null==n?void 0:n.sourcePath)||n.sourcePath===t||a.startsWith("".concat(n.sourcePath,".")))?a:(null==n?void 0:n.sourcePath)?n.sourcePath:e.liveIsolatedNodePath?"0"===t?e.liveIsolatedNodePath:t.startsWith("0.")?"".concat(e.liveIsolatedNodePath).concat(t.slice(1)):t:t}},61167:(e,t,n)=>{n.d(t,{AB:()=>k,B$:()=>eh,B4:()=>c,CH:()=>R,CT:()=>s,H:()=>el,JM:()=>W,MC:()=>eo,MK:()=>ep,Md:()=>P,Ml:()=>i,Mp:()=>m,NZ:()=>l,Nj:()=>y,Pm:()=>Y,Pw:()=>et,Py:()=>X,Ri:()=>z,UU:()=>_,UW:()=>C,WE:()=>u,WS:()=>I,Xn:()=>em,Y8:()=>v,YA:()=>A,Z9:()=>d,Zd:()=>eg,_U:()=>eu,bP:()=>a,cY:()=>ec,cr:()=>Z,dh:()=>G,dp:()=>x,e1:()=>ed,eL:()=>U,f1:()=>ee,g5:()=>en,jE:()=>N,l4:()=>Q,lE:()=>b,lc:()=>F,le:()=>$,nB:()=>J,oy:()=>ef,pM:()=>er,qZ:()=>V,qk:()=>p,r6:()=>h,r9:()=>ea,rV:()=>g,s6:()=>w,sO:()=>S,uz:()=>es,w6:()=>T,xi:()=>ev,y5:()=>K,yN:()=>D,yW:()=>ei,yi:()=>f,yw:()=>H});var r=n(91847);let o="\\d+(?:\\.\\d+)?",l=/^(?:(?:(?:[^\s:[\]]|\[[^\]]*\])+):)*size-\S+$/,i=new RegExp("^w-(?:\\[[^\\]]+\\]|".concat(o,"|full|auto|screen|min|max|fit)$")),a=new RegExp("^h-(?:\\[[^\\]]+\\]|".concat(o,"|full|auto|screen|min|max|fit)$")),d=new RegExp("^min-w-(?:\\[[^\\]]+\\]|".concat(o,"|full|auto|screen|min|max|fit|0)$")),u=new RegExp("^min-h-(?:\\[[^\\]]+\\]|".concat(o,"|full|auto|screen|min|max|fit|0)$")),c=new RegExp("^max-w-(?:\\[[^\\]]+\\]|".concat(o,"|full|auto|screen|min|max|fit|none)$")),s=new RegExp("^max-h-(?:\\[[^\\]]+\\]|".concat(o,"|full|auto|screen|min|max|fit|none)$")),p=/^(?:flex-1|grow|grow-0)$/,v=/^shrink-0$/,f=/^(?:flex|grid)$/,m=/^flex-(?:row|col)$/,h=/^justify-(?:start|center|end|between|evenly|around)$/,g=/^items-(?:start|center|end|stretch|baseline)$/,y=new RegExp("^gap-(?:\\[[^\\]]+\\]|".concat(o,")$")),I=new RegExp("^gap-x-(?:\\[[^\\]]+\\]|".concat(o,")$")),w=new RegExp("^gap-y-(?:\\[[^\\]]+\\]|".concat(o,")$")),b=/^grid-cols-(?:\d+|\[[^\]]+\])$/,N=/^grid-rows-(?:\d+|\[[^\]]+\])$/,P=/^(?:absolute|relative|fixed|sticky|static)$/,S=new RegExp("^-?left-(?:\\[[^\\]]+\\]|".concat(o,"|\\d+/\\d+|auto|full|px)$")),x=new RegExp("^-?right-(?:\\[[^\\]]+\\]|".concat(o,"|\\d+/\\d+|auto|full|px)$")),R=new RegExp("^-?top-(?:\\[[^\\]]+\\]|".concat(o,"|\\d+/\\d+|auto|full|px)$")),k=new RegExp("^-?bottom-(?:\\[[^\\]]+\\]|".concat(o,"|\\d+/\\d+|auto|full|px)$")),C=new RegExp("^-?inset-(?:\\[[^\\]]+\\]|".concat(o,"|\\d+/\\d+|auto|full|px)$")),F=new RegExp("^-?inset-x-(?:\\[[^\\]]+\\]|".concat(o,"|\\d+/\\d+|auto|full|px)$")),A=new RegExp("^-?inset-y-(?:\\[[^\\]]+\\]|".concat(o,"|\\d+/\\d+|auto|full|px)$")),T=new RegExp("^-?translate-x-(?:\\[[^\\]]+\\]|".concat(o,"|\\d+/\\d+|px|full)$")),z=new RegExp("^-?translate-y-(?:\\[[^\\]]+\\]|".concat(o,"|\\d+/\\d+|px|full)$")),M=new RegExp("^-?m-(?:\\[[^\\]]+\\]|".concat(o,"|px|auto)$")),E=new RegExp("^-?mx-(?:\\[[^\\]]+\\]|".concat(o,"|px|auto)$")),L=new RegExp("^-?my-(?:\\[[^\\]]+\\]|".concat(o,"|px|auto)$")),O=new RegExp("^-?ml-(?:\\[[^\\]]+\\]|".concat(o,"|px|auto)$")),B=new RegExp("^-?mr-(?:\\[[^\\]]+\\]|".concat(o,"|px|auto)$")),q=new RegExp("^-?mt-(?:\\[[^\\]]+\\]|".concat(o,"|px|auto)$")),j=new RegExp("^-?mb-(?:\\[[^\\]]+\\]|".concat(o,"|px|auto)$")),W=new RegExp("^px-(?:\\[[^\\]]+\\]|".concat(o,")$")),K=new RegExp("^py-(?:\\[[^\\]]+\\]|".concat(o,")$")),D=new RegExp("^pl-(?:\\[[^\\]]+\\]|".concat(o,")$")),G=new RegExp("^pr-(?:\\[[^\\]]+\\]|".concat(o,")$")),_=new RegExp("^pt-(?:\\[[^\\]]+\\]|".concat(o,")$")),H=new RegExp("^pb-(?:\\[[^\\]]+\\]|".concat(o,")$")),$=r.lU,V=r.GR,U=/^text-\[(?:-?\d|calc\()[^\]]+\]$/,J=/^font-(?:thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\[[^\]]+\])$/,X=/^leading-\[[^\]]+\]$/,Y=/^tracking-\[[^\]]+\]$/,Z=/^text-(?:left|center|right|justify)$/,Q=/^(?:uppercase|lowercase|capitalize|normal-case)$/,ee=/^(?:underline|line-through|no-underline)$/,et=r.Jb,en=/^border(?:-\[(?:-?\d|calc\()[^\]]+\]|\d+(?:\.\d+)?)?$/,er
1=/^border-(?:solid|dashed|dotted)$/,eo=/^opacity-(?:\[[^\]]+\]|\d+)$/,el=/^overflow-(?:visible|hidden|scroll)$/,ei=/^blur(?:-(?:none|xs|sm|md|lg|xl|2xl|3xl|\[[^\]]+\]))?$/,ea=/^backdrop-blur(?:-(?:none|xs|sm|md|lg|xl|2xl|3xl|\[[^\]]+\]))?$/,ed=/^\[filter:[^\]]+\]$/,eu=/^shadow-\[[^\]]+\]$/,ec=/^hidden$/,es=/^-?rotate-(?:\[[^\]]+\]|\d+(?:\.\d+)?)$/,ep=/^scale-x-(?:\[[^\]]+\]|\d+(?:\.\d+)?)$/,ev=/^scale-y-(?:\[[^\]]+\]|\d+(?:\.\d+)?)$/,ef=/^origin-(?:center|top|bottom|left|right|top-left|top-right|bottom-left|bottom-right|\[[^\]]+\])$/,em=/^flex$/,eh=[M,E,L,O,B,q,j],eg=[/^rounded(?:-(?:none|xs|sm|md|lg|xl|2xl|3xl|4xl|full|\[[^\]]+\]))?$/,/^rounded-tl-(?:none|xs|sm|md|lg|xl|2xl|3xl|4xl|full|\[[^\]]+\])$/,/^rounded-tr-(?:none|xs|sm|md|lg|xl|2xl|3xl|4xl|full|\[[^\]]+\])$/,/^rounded-br-(?:none|xs|sm|md|lg|xl|2xl|3xl|4xl|full|\[[^\]]+\])$/,/^rounded-bl-(?:none|xs|sm|md|lg|xl|2xl|3xl|4xl|full|\[[^\]]+\])$/]},62533:(e,t,n)=>{n.d(t,{$X:()=>O,$b:()=>c,Aj:()=>I,Am:()=>E,B9:()=>u,Cx:()=>X,Ed:()=>k,HF:()=>P,JI:()=>z,KG:()=>$,Lc:()=>h,Of:()=>v,PC:()=>U,PF:()=>B,RT:()=>C,VP:()=>R,XF:()=>w,YC:()=>m,cm:()=>d,hG:()=>K,ig:()=>_,iv:()=>x,jE:()=>L,jf:()=>S,mN:()=>f,nc:()=>b,pe:()=>j,qZ:()=>p,qq:()=>g,rN:()=>N,rs:()=>H,s3:()=>M,sj:()=>s,so:()=>J,tF:()=>W,te:()=>l,v$:()=>T,vb:()=>q,wR:()=>y,wb:()=>F,x4:()=>i,x7:()=>A});var r=n(72385),o=n(32944);function l(e){return"number"!=typeof e||Number.isNaN(e)?null:Math.max(0,Math.round(e))}function i(e){if("number"!=typeof e||!Number.isFinite(e))return null;let t=Math.round(e);return Object.is(t,-0)?0:t}function a(e){var t;return[e.inset?"inset":null,"".concat(D(e.offsetX),"px"),"".concat(D(e.offsetY),"px"),"".concat(D(e.blurRadius),"px"),"".concat(D(null!=(t=e.spreadRadius)?t:0),"px"),e.color||"rgba(0, 0, 0, 0.25)"].filter(Boolean).join(" ")}function d(e,t){return(null==e||!e.length)&&(null==t||!t.length)||!!e&&!!t&&e.length===t.length&&e.every((e,n)=>e===t[n])}function u(e){return(0,r.wV)(e).replace(/^border-/,"")}function c(e){return(null==e?void 0:e.type)==="color"?e.value:null}function s(e){var t,n,r,o;return null!=(o=null==(r=e.style)||null==(n=r.strokes)||null==(t=n.find(e=>"color"===e.type))?void 0:t.value)?o:null}function p(e,t){return"".concat(e,"-[").concat(t.replace(/\s+/g,"_").replace(/\]/g,"\\]"),"]")}function v(e,t){let n=l(t);return null!=n?(0,o.oY)(e,n):null}function f(e,t){let n=i(t);return null!=n?(0,o.oY)(e,n):null}function m(e,t){if("string"==typeof t)return p(e,t);let n=l(t);return null!=n?p(e,"".concat(n,"px")):null}function h(e,t){return"string"==typeof t?p(e,t):"number"==typeof t&&Number.isFinite(t)?p(e,"".concat(g(t),"px")):null}function g(e){return Number(e.toFixed(4)).toString()}function y(e){let t=l(e);return null!=t?"".concat(t,"px"):null}function I(e){let t=i(e);return null!=t?"".concat(t,"px"):null}function w(e){return"number"==typeof e&&Number.isFinite(e)?"".concat(g(e),"px"):null}function b(e){return"number"==typeof e?"".concat(Math.max(0,Math.round(e)),"px"):null}function N(e){if("number"==typeof e&&Number.isFinite(e))return w(e);if("string"==typeof e&&e.endsWith("\xd7")){let t=Number.parseFloat(e);return Number.isFinite(t)?g(t):null}return"string"==typeof e&&e.trim().length>0?e:null}function P(e,t){let n=l(e);return null==n?null:"react-native"===t?n:"".concat(n,"px")}function S(e,t){let n=i(e);return null==n?null:"react-native"===t?n:"".concat(n,"px")}function x(e){switch(e){case"flex-start":return"justify-start";case"center":return"justify-center";case"flex-end":return"justify-end";case"space-between":return"justify-between";case"space-evenly":return"justify-evenly";case"space-around":return"justify-around";default:return null}}function R(e){switch(e){case"flex-start":return"items-start";case"center":return"items-center";case"flex-end":return"items-end";case"stretch":return"items-stretch";case"baseline":return"items-baseline";default:return null}}function k(e){switch(e){case"top":return"items-start";case"center":return"items-center";case"bottom":return"items-end";default:return null}}function C(e){switch(e){case"center":return"justify-center";case"right":return"justify-end";default:return null}}function F(e){switch(e){case"left":case"center":case"right":case"justify":return"text-".concat(e);default:return null}}function A(e){switch(e){case"uppercase":case"lowercase":case"capitalize":return e;case"none":return"normal-case";default:return null}}function T(e){switch(e){case"underline":case"line-through":case"underline line-through":return e;case"none":return"no-underline";default:return null}}function z(e){return"number"==typeof e&&Number.isFinite(e)?e<=100?"font-thin":e<=200?"font-extralight":e<=300?"font-light":e<=400?"font-normal":e<=500?"font-medium":e<=600?"font-semibold":e<=700?"font-bold":e<=800?"font-extrabold":e<=900?"font-black":"font-[".concat(g(e),"]"):null}function M(e){return"number"!=typeof e||!Number.isFinite(e)||.01>Math.abs(e)?null:"rotate-[".concat(g(e),"deg]")}function E(e,t){return"number"!=typeof t||!Number.isFinite(t)||1e-4>Math.abs(t-1)?null:"scale-".concat(e,"-[").concat(g(t),"]")}function L(e,t,n){if("hug"===n)return"".concat(e,"-fit");
1if("fill"===n)return"".concat(e,"-full");let r=l(t);return null!=r?(0,o.oY)(e,r):null}function O(e,t){let n=l(t);return null!=n?(0,o.oY)(e,n):null}function B(e){let t=null==e?void 0:e.marginTop,n=null==e?void 0:e.marginRight,r=null==e?void 0:e.marginBottom,l=null==e?void 0:e.marginLeft;if(null==t&&null==n&&null==r&&null==l)return[];if(null!=t&&null!=n&&null!=r&&null!=l&&t===n&&t===r&&t===l)return[(0,o.oY)("m",t)].filter(e=>null!=e);let i=[];return null!=l&&null!=n&&l===n?i.push((0,o.oY)("mx",l)):(null!=l&&i.push((0,o.oY)("ml",l)),null!=n&&i.push((0,o.oY)("mr",n))),null!=t&&null!=r&&t===r?i.push((0,o.oY)("my",t)):(null!=t&&i.push((0,o.oY)("mt",t)),null!=r&&i.push((0,o.oY)("mb",r))),i.filter(e=>null!=e)}function q(e){var t,n;let r=null==(t=e.style)?void 0:t.cornerRadii;if(r){let e=[r.topLeft,r.topRight,r.bottomRight,r.bottomLeft];if(e.every(e=>"number"==typeof e)){let[t]=e;if(e.every(e=>e===t))return[m("rounded",t)].filter(e=>null!=e)}return[m("rounded-tl",r.topLeft),m("rounded-tr",r.topRight),m("rounded-br",r.bottomRight),m("rounded-bl",r.bottomLeft)].filter(e=>null!=e)}return"number"==typeof(null==(n=e.style)?void 0:n.borderRadius)?[m("rounded",e.style.borderRadius)].filter(e=>null!=e):[]}function j(e){var t,n;let r=null==(t=e.style)?void 0:t.blur;return(null==(n=e.style)?void 0:n.blurVisible)===!1||"number"!=typeof r||r<=0?null:r}function W(e){var t,n;let r=null==(t=e.style)?void 0:t.backdropBlur;return(null==(n=e.style)?void 0:n.backdropBlurVisible)===!1||"number"!=typeof r||r<=0?null:r}function K(e,t){return"number"==typeof t?m(e,t):null}function D(e){return"number"==typeof e&&Number.isFinite(e)?g(e):"0"}function G(e){return"drop-shadow(".concat(["".concat(D(e.offsetX),"px"),"".concat(D(e.offsetY),"px"),"".concat(D(e.blurRadius),"px"),(e.color||"rgba(0, 0, 0, 0.25)").replace(/\s+/g,"")].join("_"),")")}function _(e){var t,n,r,o;let l=null!=(o=null==(n=e.style)||null==(t=n.boxShadow)?void 0:t.filter(e=>!1!==e.visible))?o:[];return(null==(r=e.style)?void 0:r.shadowMode)!=="drop"||0===l.length||l.some(e=>{var t;return e.inset||Math.abs(null!=(t=e.spreadRadius)?t:0)>=.001||!1===e.visible})?null:"[filter:".concat(l.map(G).join("_"),"]")}function H(e){var t,n,r,o;let l=null!=(o=null==(n=e.style)||null==(t=n.boxShadow)?void 0:t.filter(e=>!1!==e.visible))?o:[];return(null==(r=e.style)?void 0:r.shadowMode)==="drop"||0===l.length?null:"shadow-[".concat(l.map(a).join(",_").replace(/\s+/g,"_"),"]")}function $(e){return"".concat(D(e),"px")}function V(e){return"drop-shadow(".concat([$(e.offsetX),$(e.offsetY),$(e.blurRadius),(e.color||"rgba(0, 0, 0, 0.25)").replace(/\s+/g,"")].join(" "),")")}function U(e){var t,n,r,o;let l=[],i=null!=(o=null==(n=e.style)||null==(t=n.boxShadow)?void 0:t.filter(e=>!1!==e.visible))?o:[];(null==(r=e.style)?void 0:r.shadowMode)==="drop"&&i.length>0&&l.push(...i.map(V));let a=j(e);return null!=a&&l.push("blur(".concat($(a),")")),l.length>0?l.join(" "):null}function J(e){var t,n,r,o;let l=null!=(o=null==(n=e.style)||null==(t=n.boxShadow)?void 0:t.filter(e=>!1!==e.visible))?o:[];return(null==(r=e.style)?void 0:r.shadowMode)==="drop"||0===l.length?null:l.map(a).join(", ")}function X(e){var t,n;let r=null==(n=e.style)||null==(t=n.textStyle)?void 0:t.textShadow;return r&&!1!==r.visible?a({...r,spreadRadius:0,inset:!1}):null}},62766:(e,t,n)=>{n.d(t,{eF:()=>u,ge:()=>d,s5:()=>a});var r=n(33088),o=n(91117);let l=new Map;function i(e){return(0,r.X1)("structural",JSON.stringify([...e].sort()))}function a(e,t){var n,a,d,u,c;if(l.has(e))return{supported:!1,windowId:null,reason:"active-contract"};let s=null!=(n=t.propertyId)?n:"canvas.frame.membership",p="canvas.frame.membership"===s?(0,r.I3)({beforeFrameIds:null!=(a=t.beforeFrameIds)?a:[],afterFrameIds:null!=(d=t.afterFrameIds)?d:[]}):null,v="".concat(t.action,":");if(0===t.windowId.length||0===t.targetFrameId.length||0===t.historyEntryId.length||0===t.intentId.length||!t.historyActionId.startsWith(v)||t.historyActionId.length===v.length||void 0!==t.selectedGeometryIdentity&&0===t.selectedGeometryIdentity.trim().length||null!==p&&!p.ok&&"invalid-frame-ids"===p.reason)return{supported:!1,windowId:null,reason:"invalid-input"};let f=(null==p?void 0:p.ok)===!0&&p.projection.changedFrameIds.includes(t.targetFrameId)?p.projection.targetId:"canvas.frame.membership"===s?null:t.nodePath&&t.beforeFingerprint&&t.afterFingerprint&&t.beforeFingerprint!==t.afterFingerprint?(0,o.B8)({frameId:t.targetFrameId,nodePath:t.nodePath}):null;if(null===f)return{supported:!1,windowId:null,reason:"membership-mismatch"};let m=(null==p?void 0:p.ok)===!0?i(p.projection.beforeFrameIds):t.beforeFingerprint,h=(null==p?void 0:p.ok)===!0?i(p.projection.afterFrameIds):t.afterFingerprint,g=(null==p?void 0:p.ok)===!0?new Set(p.projection.beforeFrameIds):new Set,y=(null==p?void 0:p.ok)===!0?p.projection.afterFrameIds.filter(e=>!g.has(e)):[],I=[f,t.historyActionId,s,t.intentId,t.historyEntryId,m,h,"history-settlement:".concat(t.historyActionId),...void 0===t.selectedGeometryIdentity?[]:[t.selectedGeometryIdentity],...y],w=[...g,...I];return new Set(w).size!==w.length?{supported:!1,windowId:null,reason:"invalid-input"}:(l.set(e,{request:{...t,propertyId:s,beforeFrameIds:(null==p?void 0:p.ok)===!0?p.projection.beforeFrameIds:null!=(u=t.beforeFrameIds)?u:[],afterFrameIds:(null==p?void 0:p.ok)===!0?p.projection.afterFrameIds:null!=(c=t.afterFrameIds)?c:[],beforeFingerprint:m,afterFingerprint:h},adopted:!1}),{supported:!0,windowId:t.windowId,expectedIdentityIds:I})}function d(e,t){if(null===e)return null;let n=l.get(e);return void 0===n||n.adopted||n.request.action!==t?null:(n.adopted=!0,n.request.historyActionId)}function u(e,t){let n=l.get(e);return void 0!==n&&n.request.windowId===t&&(l.delete(e),!0)}},63059:(e,t,n)=>{n.d(t,{Y:()=>d,d:()=>u});var r=n(28994),o=n(74855),l=n(91117);function i(e){var t;return"object"!=typeof(t=e)||null===t||Array.isArray(t)?null:e}function a(e){return"string"==typeof e&&e.length>0?e:null}function d(e,t){var n,o,l;let d=(0,r._6)(t.removedNodePath);if(null===d)return[];let u=e.state,c=i(u.selectedFrame),s=i(u.selection),p=i(u.selectedNode);if((null!=(n=a(null==c?void 0:c.id))?n:a(null==s?void 0:s.frameId))!==t.frameId)return[];let v=new Set,f=null!=(o=a(null==p?void 0:p.id))?o:a(null==s?void 0:s.nodeId),m=a(null==s?void 0:s.nodePath);null!==f&&m===t.removedNodePath&&v.add("".concat(t.frameId,":").concat(f));let h=Array.isArray(null==c?void 0:c.nodes)?c.nodes:[],g=i((0,r.Tr)(h,d)),y=null!=(l=a(null==g?void 0:g.id))?l:d;return v.add("".concat(t.frameId,":").concat(y)),[...v]}function u(e,t){var n,i,a;let d=(0,r._6)(t.removedNodePath);if(null===d)return{supported:!1,windowId:null,reason:"invalid-node-path"};let u=t.frameDocument;if(null===u)return{supported:!1,windowId:null,reason:"runtime-target-unavailable"};let c=Array.from(u.querySelectorAll("[data-node-path]")),s=c.find(e=>e.getAttribute("data-node-path")===d),p=c.find(e=>e.getAttribute("data-node-path")===t.removedNodePath);if(void 0===s||void 0===p||p.parentElement!==s)return{supported:!1,windowId:null,reason:"runtime-target-unavailable"};let v=s.cloneNode(!0);if(!(v instanceof(null!=(i=null==(n=u.defaultView)?void 0:n.Element)?i:Element)))return{supported:!1,windowId:null,reason:"runtime-target-unavailable"};let f=Array.from(v.children).find(e=>e.getAttribute("data-node-path")===t.removedNodePath);if(void 0===f)return{supported:!1,windowId:null,reason:"runtime-target-unavailable"};f.remove();let m=(0,o.AK)(v);if(!m.ok)return{supported:!1,windowId:null,reason:"invalid-membership"};let h=(0,l.pL)(e,{windowId:t.windowId,propertyId:"canvas.node.membership",target:{frameId:t.frameId,nodePath:d},expectedInputs:[m.canonicalValue]});return h.supported?{...h,expectedIdentityIds:[...new Set([...h.expectedIdentityIds,...null!=(a=t.structuralIdentityIds)?a:[]])]}:h}},66881:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{r:()=>W});var o=n(37172),l=n(39896),i=n(88955),a=n(36948),d=n(34203),u=n(22559),c=n(16406),s=n(90960),p=n(94352),v=n(53167),f=n(42891),m=n(17063),h=n(18670),g=n(41127),y=n(25357),I=n(32582),w=n(87739),b=n(59478),N=n(88482),P=n(921),S=n(15503),x=n(99451),R=n(67829),k=n(75725),C=n(72679),F=n(41774),A=n(50943),T=n(76200),z=n(8211),M=n(91117),E=n(28994),L=n(95324),O=n(76193),B=e([O,L,c,T,N,s,m,v,C,a,d,i,z,u,l]);function q(e,t){var n,r;return null!=(r=null==e||null==(n=e.claimSettlement)?void 0:n.call(e,t))?r:null}function j(e,t,n,r){null==e||e.settleAfterCommit(t,n,r)}function W(e){let t=(0,P.Ul)("useInspectorEditingController"),n=(0,o.useRef)(null),r=(0,o.useRef)(new WeakMap);function B(e,t){let n=r.current.get(e);void 0!==n&&(r.current.delete(e),(0,O.U_)(n,t))}function W(e){let t=n.current;null!==t&&(t.commitDeclined(e)&&B(t,"cancelled"),n.current=null)}function K(e){let t=n.current;return null===t?null:(t.commitAccepted(e),t)}function D(e,t){null!==e&&(e.runtimeSettledFingerprint(t)&&B(e,"complete"),n.current===e&&(n.current=null))}function G(e,t){if(null===e)return;let r="invalid"===t.status?t.code:t.status;
1e.runtimeTerminated(r,"invalid"===t.status&&"settlement-timeout"===t.code)&&B(e,"complete"),n.current===e&&(n.current=null)}function _(t){var r,o,l,i;if(!e.propertyInteractionTargetRef||!e.setActivePropertyInteraction)return;let a=null!=(i=e.observationWorkspaceId)?i:null,d=null==(r=t.editContext)?void 0:r.historyEntryId,u=null==(o=t.editContext)?void 0:o.propertyEditSessionId,s=null==(l=t.target)?void 0:l.frameId,p=null!==a&&!!d&&!!s&&(0,L.Fb)({workspaceId:a,actionId:d,frameId:s,onSettled:e=>D(t.lifecycleObservation,e),onTerminal:e=>G(t.lifecycleObservation,e)});(0,c.LC)({target:t.target,settlementSource:t.settlementSource,propertyInteractionTargetRef:e.propertyInteractionTargetRef,setActivePropertyInteraction:e.setActivePropertyInteraction,onSettled:e=>{var r,o,l;if(null==(r=t.onSettled)||r.call(t),!p||null===a||!d||!u)return void(o=t.lifecycleObservation,l=e.node,null!==o&&(o.runtimeSettled(l)&&B(o,"complete"),n.current===o&&(n.current=null)));(0,L.$O)({workspaceId:a,actionId:d,frameId:e.frameId,ownerId:u})}})}function H(t,n){var r,o,l,i,a,d;if("accepted"===n){(0,T.n5)(null==(i=e.canvasRuntimeStore)||null==(l=i.getState)?void 0:l.call(i),t),(0,A.bK)(t);return}(0,A.yu)(t),null==(d=e.editSessions)||null==(a=d.cancelGesture)||a.call(d,t),(0,T.n5)(null==(o=e.canvasRuntimeStore)||null==(r=o.getState)?void 0:r.call(o),t)}function $(t){var n;let r={...t.target,source:void 0,semanticOperationIds:[],semanticSubmissionPending:!0,settlementClaim:q(e.editSessions,t.target.frameId)};return e.propertyInteractionTargetRef&&(e.propertyInteractionTargetRef.current=r),null==(n=e.setActivePropertyInteraction)||n.call(e,r),t.operationIds.then(t=>{var n,o;if((null==(n=e.propertyInteractionTargetRef)?void 0:n.current)!==r)return;let l={...r,semanticOperationIds:t.map(String),semanticSubmissionPending:!1};e.propertyInteractionTargetRef.current=l,null==(o=e.setActivePropertyInteraction)||o.call(e,l)},n=>{if(!e.propertyInteractionTargetRef||e.propertyInteractionTargetRef.current===r){var o;e.propertyInteractionTargetRef&&(e.propertyInteractionTargetRef.current=null),null==(o=e.setActivePropertyInteraction)||o.call(e,null),H(r.frameId,"rejected")}t.onError(n)}),r}function V(t){var n;null==(n=e.clearStructuralRenderNodeEditPreview)||n.call(e,t)}function U(t){(0,N.s8)({frameId:t,propertyPreviewSchedulerRef:e.propertyPreviewSchedulerRef,clearLivePreviewForFrame:e.clearLivePreviewForFrame,setLivePropertyPreview:e.setLivePropertyPreview,propertyInteractionSessionRef:e.propertyInteractionSessionRef,nodeEditInteractionSnapshotRef:e.nodeEditInteractionSnapshotRef,clearStructuralRenderNodeEditPreview:V})}function J(){var t,n,r;(0,N.mH)({frameId:null!=(r=null==(n=e.overlayInteractionStateRef.current)||null==(t=n.selection)?void 0:t.frameId)?r:null,propertyPreviewSchedulerRef:e.propertyPreviewSchedulerRef,clearLivePreviewForFrame:e.clearLivePreviewForFrame,setLivePropertyPreview:e.setLivePropertyPreview,propertyInteractionSessionRef:e.propertyInteractionSessionRef,nodeEditInteractionSnapshotRef:e.nodeEditInteractionSnapshotRef,clearStructuralRenderNodeEditPreview:V,propertyInteractionTargetRef:e.propertyInteractionTargetRef,setActivePropertyInteraction:e.setActivePropertyInteraction})}function X(n){var r,o,l,i;return(0,s.U)({currentState:n,interactionTarget:null!=(l=null==(r=e.propertyInteractionTargetRef)?void 0:r.current)?l:null,frames:Array.isArray(e.frames)?e.frames:null,resolvedSelectionCount:null!=(i=null==(o=e.resolvedSelections)?void 0:o.length)?i:0,resolveActiveNodePath:e.resolveActiveNodePath,resolveActiveNodeId:e.resolveActiveNodeId,getNodeByPathInTree:e.getNodeByPathInTree,logMissingInteractionTarget:e=>{(0,k.pD)(t,"inspector.live-target-interaction-missing",e)},logMissingLiveSourceContext:e=>{(0,k.pD)(t,"inspector.live-context-missing",e)}})}function Y(r){var o,l,i,a,d,u,p,I,w,N,P,S,x,R,C,F,A,T,z,M,E,L,O,B,q,j,W,K,D,G,_,H,$,V;let U=e.overlayInteractionStateRef.current,J=e=>{var t;
1return null==(t=n.current)||t.preview(e),!0},X=null!=(i=null==(o=U.selection)?void 0:o.frameId)?i:null,Y=null!=(a=null==(l=U.selection)?void 0:l.nodePath)?a:null,Z=Y;try{let n=(0,s.Z)({currentState:U,interactionTarget:null!=(N=null==(d=e.propertyInteractionTargetRef)?void 0:d.current)?N:null,frames:Array.isArray(e.frames)?e.frames:null,resolvedSelectionCount:null!=(P=null==(u=e.resolvedSelections)?void 0:u.length)?P:0,resolveActiveNodePath:e.resolveActiveNodePath,getNodeByPathInTree:e.getNodeByPathInTree,logMissingInteractionTarget:e=>{(0,k.pD)(t,"inspector.live-target-interaction-missing",e)}});if(!(null==n||null==(p=n.frame)?void 0:p.liveSource))return(0,k.pD)(t,"inspector.live-source.preview-skipped",{reason:"missing-target",selection:U.selection,selectedFrameHasLiveSource:(0,c.Mu)(U),interactionTarget:null!=(x=null==(S=e.propertyInteractionTargetRef)?void 0:S.current)?x:null}),!1;X=n.frameId,Y=null!=(R=n.sourcePath)?R:n.nodePath,Z=n.runtimeNodePath;let o=(0,v.E5)({node:n.node,updater:r,normalizeNode:e.normalizeNodeGeometryForUserInput,cloneNode:y.bG});if(function(e,t){if(e===t)return!0;try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){return!1}}(o.previousNode,o.nextNode))return(null==(C=e.editSessions)?void 0:C.canHandle(n))&&e.editSessions.previewNodeEdit({target:n,previousNode:o.previousNode,nextNode:o.nextNode}),null==(F=e.clearLivePreviewForFrame)||F.call(e,n.frameId),!0;let l=(0,b.bQ)(o.previousNode,o.nextNode);if(l)return null==(A=e.clearLivePreviewForFrame)||A.call(e,n.frameId),null==(T=e.logCodeLayerDebug)||T.call(e,"live-source.preview-blocked-local-instance",{frameId:n.frameId,nodePath:Y,runtimeNodePath:n.runtimeNodePath,sourceInstanceKey:null!=(z=n.sourceInstanceKey)?z:null,reason:l}),!0;let i=(0,m.W1)({source:n.frame.liveSource,nodePath:Y,previousNode:o.previousNode,nextNode:o.nextNode,sourceInstanceKey:n.sourceInstanceKey});if(i)return null==(M=e.setLivePropertyPreview)||M.call(e,(0,f.bP)({frameId:n.frameId,baseSource:n.frame.liveSource,nodePath:n.runtimeNodePath,previewNode:o.nextNode,patches:[],componentPropPreview:i,strategy:"runtime-write"})),J(o.nextNode);if((0,m.sW)({source:n.frame.liveSource,nodePath:Y,previousNode:o.previousNode,nextNode:o.nextNode,sourceInstanceKey:n.sourceInstanceKey}))return null==(E=e.clearLivePreviewForFrame)||E.call(e,n.frameId),!0;let a=(0,v.E5)({node:n.node,updater:r,normalizeNode:e.normalizeNodeGeometryForUserInput,cloneNode:y.bG}),$=(0,m.XM)(n.node)?(0,m.l3)(a.previousNode,a.nextNode,n.sourceInstanceKey):null;if($)return null==(L=e.setLivePropertyPreview)||L.call(e,(0,f.bP)({frameId:n.frameId,baseSource:n.frame.liveSource,nodePath:n.runtimeNodePath,previewNode:
1a.nextNode,patches:[],componentPropPreview:$,strategy:"runtime-write"})),J(a.nextNode);if(null==(I=e.editSessions)?void 0:I.canHandle(n)){let r=e.editSessions.previewNodeEdit({target:n,previousNode:o.previousNode,nextNode:o.nextNode});if(r.handled){let l=null!=(B=r.previewNode)?B:o.nextNode;null==(O=e.setLivePropertyPreview)||O.call(e,(0,f.bP)({frameId:n.frameId,baseSource:n.frame.liveSource,nodePath:n.runtimeNodePath,previewNode:l,patches:[],strategy:"runtime-write"})),(0,k.pD)(t,"inspector.live-source.preview-applied",{frameId:n.frameId,nodePath:Y,runtimeNodePath:n.runtimeNodePath,viaInteractionSession:n.viaInteractionSession,strategy:"runtime-write",silent:r.silent});let i=J(l);return e.editSessions.captureRuntimeWriteOwnership(n),i}let l=(0,m.l3)(o.previousNode,o.nextNode,n.sourceInstanceKey);if(l)return null==(q=e.setLivePropertyPreview)||q.call(e,(0,f.bP)({frameId:n.frameId,baseSource:n.frame.liveSource,nodePath:n.runtimeNodePath,previewNode:o.nextNode,patches:[],componentPropPreview:l,strategy:"runtime-write"})),(0,k.pD)(t,"inspector.live-source.preview-applied",{frameId:n.frameId,nodePath:Y,runtimeNodePath:n.runtimeNodePath,viaInteractionSession:n.viaInteractionSession,strategy:"runtime-write",componentPropPreview:!0}),J(o.nextNode);(!1!==r.handled||"root-resize-channel"!==r.reason)&&(0,h.l)({surface:"preview",reason:!1===r.handled?r.reason:"untranslatable-edit",frameId:n.frameId,target:{nodeType:null==(j=n.node)?void 0:j.type,nodeName:null==(W=n.node)?void 0:W.name,sourcePath:Y,runtimeNodePath:n.runtimeNodePath,sourceInstanceKey:null!=(K=n.sourceInstanceKey)?K:null},previousNode:o.previousNode,nextNode:o.nextNode})}else e.editSessions&&"engine"===e.editSessions.pipeline&&!(0,g.Lj)(n.frame)&&"0"!==n.runtimeNodePath&&(0,h.l)({surface:"preview",reason:"target-not-engine-eligible",frameId:n.frameId,target:{nodeType:null==(D=n.node)?void 0:D.type,nodeName:null==(G=n.node)?void 0:G.name,sourcePath:Y,runtimeNodePath:n.runtimeNodePath,sourceInstanceKey:null!=(H=n.sourceInstanceKey)?H:null},detail:{hasLiveSource:!!(null==(_=n.frame)?void 0:_.liveSource),isComponentCanvasFrame:n.frameId.startsWith("component-canvas:")}});return null==(w=e.setLivePropertyPreview)||w.call(e,(0,f.bP)({frameId:n.frameId,baseSource:n.frame.liveSource,nodePath:n.runtimeNodePath,previewNode:o.nextNode,patches:[],strategy:"runtime-write"})),J(o.nextNode)}catch(t){return null==($=e.logCodeLayerDebug)||$.call(e,"live-source.preview-failed",{frameId:X,nodePath:Y,runtimeNodePath:Z,message:t instanceof Error?t.message:String(t)}),null==(V=e.clearLivePreviewForFrame)||V.call(e,X),!1}}function Z(r){var o,l,i,u,c,s,p,v,f,y,I,w,P,x,R,A,T,z,M,E,O,B,V,U,J,Y,Z,Q,ee,et,en,er,eo,el,ei,ea,ed,eu,ec,es,ep,ev,ef,em,eh,eg,ey,eI,ew,eb,eN,eP,eS,ex,eR,ek,eC,eF,eA,eT,ez,eM,eE,eL,eO,eB,eq;let ej=X(r.currentState);if(!ej)return W(r.afterNode),!1;let eW=(0,b.bQ)(r.beforeNode,r.afterNode);
1if(eW)return W(r.afterNode),null==(o=e.clearLivePreviewForFrame)||o.call(e,ej.frameId),null==(l=e.reportCodeLayerBlockedEdit)||l.call(e,eW),null==(i=e.logCodeLayerDebug)||i.call(e,"live-source.commit-blocked-local-instance",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,sourceInstanceKey:null!=(u=ej.sourceInstanceKey)?u:null,reason:eW}),!1;try{null==(v=e.logCodeLayerDebug)||v.call(e,"live-source.commit-target",{selection:null!=(R=r.currentState.selection)?R:null,selectedNode:r.currentState.selectedNode?{id:null!=(A=r.currentState.selectedNode.id)?A:null,sourcePath:null!=(T=r.currentState.selectedNode.sourcePath)?T:null,sourceInstanceKey:null!=(z=r.currentState.selectedNode.sourceInstanceKey)?z:null}:null,selectedNodeSourcePath:null!=(M=r.currentState.selectedNodeSourcePath)?M:null,selectedNodeSourcePathIsCurrentRenderedCoordinate:!0===r.currentState.selectedNodeSourcePathIsCurrentRenderedCoordinate,selectedNodeSourceInstanceKey:null!=(E=r.currentState.selectedNodeSourceInstanceKey)?E:null,interactionTarget:(null==(c=e.propertyInteractionTargetRef)?void 0:c.current)?{nodePath:e.propertyInteractionTargetRef.current.nodePath,sourcePath:null!=(O=e.propertyInteractionTargetRef.current.sourcePath)?O:null,sourceInstanceKey:null!=(B=e.propertyInteractionTargetRef.current.sourceInstanceKey)?B:null,nodeId:null!=(V=null==(s=e.propertyInteractionTargetRef.current.node)?void 0:s.id)?V:null,nodeSourcePath:null!=(U=null==(p=e.propertyInteractionTargetRef.current.node)?void 0:p.sourcePath)?U:null}:null,resolvedTarget:{nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,sourceInstanceKey:null!=(J=ej.sourceInstanceKey)?J:null,nodeId:null!=(Y=ej.node.id)?Y:null,nodeSourcePath:null!=(Z=ej.node.sourcePath)?Z:null}});let o=ej.sourceInstanceKey?{...r.beforeNode,sourceInstanceKey:ej.sourceInstanceKey}:r.beforeNode,l=(null==(f=e.isLocalComponentCanvasFrame)?void 0:f.call(e,ej.frameId))!==!0&&e.submitCanvasSemanticIntent?(0,C.Ju)({source:ej.source,sourcePath:ej.nodePath,previousNode:o,nextNode:r.afterNode}):[];if(l.length>0){let t=null!=(en=null==(Q=e.getActiveCanvasEditContext)?void 0:Q.call(e))?en:null;null==(ee=n.current)||ee.commitPrepared(r.afterNode);let i=Array.isArray(e.frames)?e.frames.find(e=>(null==e?void 0:e.id)===ej.frameId):null,a=(null!=(er=r.companions)?er:[]).flatMap(t=>{var n;let r=(null==i?void 0:i.nodes)?e.getNodeByPathInTree(i.nodes,t.runtimeNodePath):null;if(!r)return[];let o=e.normalizeNodeGeometryForUserInput(t.updater(r));if((0,b.bQ)(r,o))return[];let l=null!=(n=r.sourcePath)?n:t.runtimeNodePath;return(0,C.Ju)({source:ej.source,sourcePath:l,previousNode:r,nextNode:o}).map(e=>({frameId:(0,F.Zx)(ej.frameId),operation:e,optimisticPayload:{frameId:ej.frameId,runtimeNodePath:t.runtimeNodePath,sourcePath:l,previousNode:r,nextNode:o}}))}),d=null!=(eo=null==(et=e.livePropertyPreviewRef)?void 0:et.current)?eo:null,u=e.submitCanvasSemanticIntent({steps:[...l.map(e=>({frameId:(0,F.Zx)(ej.frameId),operation:e,optimisticPayload:{frameId:ej.frameId,runtimeNodePath:ej.runtimeNodePath,sourcePath:ej.nodePath,previousNode:o,nextNode:r.afterNode}})),...a],settlementCallbacks:{onCommitted:()=>{var t,n,r,o;null==(t=e.logCodeLayerDebug)||t.call(e,"live-source.commit",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,strategy:"semantic-intent"}),(0,N.tT)({submitted:d,current:null!=(r=null==(n=e.livePropertyPreviewRef)?void 0:n.current)?r:null,frameId:ej.frameId,nodePath:ej.runtimeNodePath})&&(null==(o=e.clearLivePreviewForFrame)||o.call(e,ej.frameId))}}}).then(e=>[e]),c=K(r.afterNode);return!function(t){var r,o;let l=t.lifecycleObservation,i=null!=(o=e.observationWorkspaceId)?o:null,a=null==(r=t.editContext)?void 0:r.historyEntryId;null!==l&&null!==i&&void 0!==a&&(0,L.Fb)({workspaceId:i,actionId:a,frameId:t.frameId,onSettled:e=>D(l,e),onTerminal:e=>G(l,e)})&&n.current===l&&(n.current=null)}({frameId:ej.frameId,lifecycleObservation:c,editContext:t}),$({target:{frameId:ej.frameId,nodePath:ej.runtimeNodePath,sourcePath:ej.nodePath,sourceInstanceKey:ej.sourceInstanceKey,node:r.afterNode,semanticObservedSource:ej.source},operationIds:u,onError:t=>{var n,r;G(c,{status:"cancelled"}),null==(n=e.clearLivePreviewForFrame)||n.call(e,ej.frameId),null==(r=e.reportCodeLayerBlockedEdit)||r.call(e,t instanceof Error?t.message:"This canvas edit could not be synchronized.")}}
1),{frameId:ej.frameId,patches:null,source:ej.source,strategy:"runtime-write"}}if((null==(y=e.isLocalComponentCanvasFrame)?void 0:y.call(e,ej.frameId))!==!0&&e.submitCanvasSemanticIntent)return null==(el=e.cancelActiveHistoryPreview)||el.call(e),null==(ei=e.clearLivePreviewForFrame)||ei.call(e,ej.frameId),null==(ea=e.reportCodeLayerBlockedEdit)||ea.call(e,"This authored value cannot be represented as a safe semantic canvas edit."),!1;let i=(0,a.k)({context:ej,beforeNode:r.beforeNode,afterNode:r.afterNode,commitSourceEdit:e.commitLiveSourceEdit}),{afterNode:u,sourceUpdate:X}=i;if(null==(I=n.current)||I.commitPrepared(u),i.isRootResizeCommit&&(0,S.ig)("root-resize.source-update",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,sourceInstanceKey:null!=(ed=ej.sourceInstanceKey)?ed:null,usedCustomSourceUpdate:i.usedCustomSourceUpdate,didChange:X.didChange,beforeSource:(0,k.TB)(ej.source),afterSource:(0,k.TB)(X.source),beforeNode:(0,k.Jf)(r.beforeNode),afterNode:(0,k.Jf)(u)}),(0,k.pD)(t,"inspector.live-source.commit-source-update",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,didChange:X.didChange,beforeSource:(0,k.TB)(ej.source),afterSource:(0,k.TB)(X.source),beforeNode:null==(w=e.summarizeNodeColor)?void 0:w.call(e,r.beforeNode),afterNode:null==(P=e.summarizeNodeColor)?void 0:P.call(e,u)}),!i.didChange)return W(u),(0,k.pD)(t,"inspector.live-source.commit-no-source-change",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath}),null==(es=e.logCodeLayerDebug)||es.call(e,"live-source.commit-no-source-change",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,sourceInstanceKey:null!=(em=ej.sourceInstanceKey)?em:null,usedCustomSourceUpdate:i.usedCustomSourceUpdate,skipDefaultFrameUpdate:i.skipDefaultFrameUpdate,beforeNodeId:null!=(eh=r.beforeNode.id)?eh:null,afterNodeId:null!=(eg=u.id)?eg:null,beforeNodeName:null!=(ey=r.beforeNode.name)?ey:null,afterNodeName:null!=(eI=u.name)?eI:null,beforeWidth:null!=(ew=r.beforeNode.width)?ew:null,afterWidth:null!=(eb=u.width)?eb:null,beforeWidthMode:null!=(eN=null==(eu=r.beforeNode.sizing)?void 0:eu.widthMode)?eN:null,afterWidthMode:null!=(eP=null==(ec=u.sizing)?void 0:ec.widthMode)?eP:null}),null==(ep=e.cancelActiveHistoryPreview)||ep.call(e),null==(ev=e.editSessions)||ev.cancelGesture(ej.frameId),null==(ef=e.clearLivePreviewForFrame)||ef.call(e,ej.frameId),!1;let{targetSource:eL}=i,eO=null!=(eS=null==(x=e.getActiveCanvasEditContext)?void 0:x.call(e))?eS:null,eB=q(e.editSessions,ej.frameId),eq=e.editSessions?{frame:ej.frame,node:r.beforeNode,frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,sourcePath:ej.nodePath,sourceInstanceKey:ej.sourceInstanceKey,viaInteractionSession:!1}:null;if(eq&&!(0,m.XM)(r.beforeNode)&&!(0,m.WY)(r.beforeNode,u)&&(e.editSessions.canHandleFrame?e.editSessions.canHandleFrame(eq.frame):e.editSessions.canHandle(eq))&&e.setLatchedRuntimeSourceSeed){let n=e.editSessions.buildCommitHandoff({target:eq,cleanSource:eL,settlementClaim:eB});if(null==n?void 0:n.canary.ok){e.setLatchedRuntimeSourceSeed({id:"".concat(ej.frameId,":seed:").concat(++e.subtreeRemountRequestIdRef.current),frameId:ej.frameId,targetSource:eL,runtimeSource:n.runtimeSource,...n.resetHooks>0?{forceFullRender:!0}:{}}),(0,d.W)({preparedCommit:i,context:ej,beforeNode:r.beforeNode,setFrames:e.setFrames,liveRootSizeAuthorityRef:e.liveRootSizeAuthorityRef});let o={subtreeRemount:null,committedTarget:{frameId:ej.frameId,nodePath:ej.runtimeNodePath,sourcePath:ej.nodePath,sourceInstanceKey:ej.sourceInstanceKey,source:eL,node:i.afterNode}
1,acceptedPayload:{frameId:ej.frameId,patches:null,source:eL,strategy:"runtime-write"}};(0,d.z)({handoff:o,setLivePropertyPreview:e.setLivePropertyPreview,setLatchedLiveSubtreeRemount:e.setLatchedLiveSubtreeRemount,clearLivePreviewForFrame:e.clearLivePreviewForFrame,propertyInteractionTargetRef:e.propertyInteractionTargetRef,setActivePropertyInteraction:e.setActivePropertyInteraction});let l=K(i.afterNode);return _({target:o.committedTarget,settlementSource:n.runtimeSource,lifecycleObservation:l,editContext:eO,onSettled:()=>{H(ej.frameId,"accepted"),j(e.editSessions,ej.frameId,n.runtimeSource,eB)}}),(0,k.pD)(t,"inspector.live-source.commit-set-frames",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,strategy:"runtime-write",seededHooks:n.seededHooks,skippedHooks:n.skippedHooks,stilledMotionElements:n.stilledMotionElements,source:(0,k.TB)(eL)}),null==(eC=e.logCodeLayerDebug)||eC.call(e,"live-source.commit",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,strategy:"runtime-write",seededHooks:n.seededHooks,skippedHooks:n.skippedHooks}),o.acceptedPayload}null==(ex=e.logCodeLayerDebug)||ex.call(e,"live-source.engine-canary-failed",{frameId:ej.frameId,reason:n?n.canary:"no-handoff"}),(0,h.l)({surface:"commit",reason:n&&!n.canary.ok?"react-internals-canary: ".concat(n.canary.reason):"no-handoff",frameId:ej.frameId,target:{nodeType:null==(eR=r.beforeNode)?void 0:eR.type,nodeName:null==(ek=r.beforeNode)?void 0:ek.name,sourcePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,sourceInstanceKey:null!=(eF=ej.sourceInstanceKey)?eF:null},previousNode:r.beforeNode,nextNode:i.afterNode})}else!e.editSessions||"engine"!==e.editSessions.pipeline||!eq||(0,g.Lj)(eq.frame)||(e.editSessions.canHandleFrame?e.editSessions.canHandleFrame(eq.frame):e.editSessions.canHandle(eq))||(0,h.l)({surface:"commit",reason:"target-not-engine-eligible",frameId:ej.frameId,target:{nodeType:null==(eA=r.beforeNode)?void 0:eA.type,nodeName:null==(eT=r.beforeNode)?void 0:eT.name,sourcePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,sourceInstanceKey:null!=(eM=ej.sourceInstanceKey)?eM:null},previousNode:r.beforeNode,nextNode:i.afterNode,detail:{hasLiveSource:!!(null==(ez=ej.frame)?void 0:ez.liveSource),isComponentCanvasFrame:ej.frameId.startsWith("component-canvas:")}});{(0,d.W)({preparedCommit:i,context:ej,beforeNode:r.beforeNode,setFrames:e.setFrames,liveRootSizeAuthorityRef:e.liveRootSizeAuthorityRef});let n={subtreeRemount:null,committedTarget:{frameId:ej.frameId,nodePath:ej.runtimeNodePath,sourcePath:ej.nodePath,sourceInstanceKey:ej.sourceInstanceKey,source:eL,node:i.afterNode}
1,acceptedPayload:{frameId:ej.frameId,patches:null,source:eL,strategy:"runtime-write"}};if(i.sourceUpdate.semanticOperationIds)$({target:n.committedTarget,operationIds:i.sourceUpdate.semanticOperationIds,onError:t=>{var n,r;null==(n=e.clearLivePreviewForFrame)||n.call(e,ej.frameId),null==(r=e.reportCodeLayerBlockedEdit)||r.call(e,t instanceof Error?t.message:"This local component edit could not be synchronized.")}});else{(0,d.z)({handoff:n,setLivePropertyPreview:e.setLivePropertyPreview,setLatchedLiveSubtreeRemount:e.setLatchedLiveSubtreeRemount,clearLivePreviewForFrame:e.clearLivePreviewForFrame,propertyInteractionTargetRef:e.propertyInteractionTargetRef,setActivePropertyInteraction:e.setActivePropertyInteraction});let t=K(i.afterNode);_({target:n.committedTarget,settlementSource:eL,lifecycleObservation:t,editContext:eO,onSettled:()=>{H(ej.frameId,"accepted"),j(e.editSessions,ej.frameId,eL,eB)}})}return(0,k.pD)(t,"inspector.live-source.commit-set-frames",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,strategy:"plain-commit",source:(0,k.TB)(eL)}),null==(eE=e.logCodeLayerDebug)||eE.call(e,"live-source.commit",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,strategy:"plain-commit"}),j(e.editSessions,ej.frameId,eL,eB),n.acceptedPayload}}catch(t){return H(ej.frameId,"rejected"),null==(eL=e.cancelActiveHistoryPreview)||eL.call(e),W(r.afterNode),null==(eO=e.clearLivePreviewForFrame)||eO.call(e,ej.frameId),null==(eB=e.reportCodeLayerBlockedEdit)||eB.call(e,t instanceof Error?t.message:"This live source edit could not be applied."),null==(eq=e.logCodeLayerDebug)||eq.call(e,"live-source.commit-failed",{frameId:ej.frameId,nodePath:ej.nodePath,runtimeNodePath:ej.runtimeNodePath,message:t instanceof Error?t.message:String(t)}),!1}}function Q(n,r){var o,l,i,a,d,u,p,f,m,h,g,I,w,b,N;let P=e.overlayInteractionStateRef.current,S=(0,s.Z)({currentState:P,interactionTarget:null!=(p=null==(o=e.propertyInteractionTargetRef)?void 0:o.current)?p:null,frames:Array.isArray(e.frames)?e.frames:null,resolvedSelectionCount:null!=(f=null==(l=e.resolvedSelections)?void 0:l.length)?f:0,resolveActiveNodePath:e.resolveActiveNodePath,getNodeByPathInTree:e.getNodeByPathInTree}),x=null!=(m=null==(a=e.editSessions)||null==(i=a.getPreviewEdit)?void 0:i.call(a,S))?m:null,R=(0,v.ZR)({currentState:P,interactionTarget:null!=(h=null==(d=e.propertyInteractionTargetRef)?void 0:d.current)?h:null,frames:Array.isArray(e.frames)?e.frames:null,resolvedSelectionCount:null!=(g=null==(u=e.resolvedSelections)?void 0:u.length)?g:0,resolveActiveNodePath:e.resolveActiveNodePath,getNodeByPathInTree:e.getNodeByPathInTree,logMissingInteractionTarget:e=>{(0,k.pD)(t,"inspector.live-target-interaction-missing",e)},updater:!x||(null==r?void 0:r.companions)?n:e=>(0,v.lt)({base:e,updater:n,...x}),normalizeNode:e.normalizeNodeGeometryForUserInput,cloneNode:y.bG});return R?Z({currentState:P,beforeNode:R.previousNode,afterNode:R.nextNode,...(null==r?void 0:r.companions)?{companions:r.companions}:{}}):((0,k.pD)(t,"inspector.live-source.commit-skipped",{reason:"missing-target",selection:P.selection,selectedFrameHasLiveSource:(0,c.Mu)(P),interactionTarget:null!=(b=null==(I=e.propertyInteractionTargetRef)?void 0:I.current)?b:null}),(0,c.Mu)(P)&&(null==(N=e.reportCodeLayerBlockedEdit)||N.call(e,"This canvas edit target is missing source-backed state.")),null==(w=e.cancelActiveHistoryPreview)||w.call(e),!1)}function ee(t){var r;let o=e.overlayInteractionStateRef.current;if(o.selectedNode&&null!==n.current&&n.current.preview(t(o.selectedNode)),(0,c.Mu)(o)&&Y(t))return;let l=(0,y.Dl)({currentState:o,resolveActiveNodePath:e.resolveActiveNodePath,resolveActiveNodeId:e.resolveActiveNodeId,getRenderedFrameNodes:e.getRenderedFrameNodes,updater:t,normalizeNode:e.normalizeNodeGeometryForUserInput,cloneNode:y.bG,getPathByNodeId:e.getPathByNodeId,updateNodeById:e.updateNodeById,updateNodeAtPath:e.updateNodeAtPath});l&&(e.logCanvasColorDebug("page.apply-property-preview",{frameId:l.frameId,nodePath:l.nodePath,nodeId:null!=(r=l.nodeId)?r:null,selectedNode:e.summarizeNodeColor(o.selectedNode)}),(0,y.X$)({preview:l.preview,mapSourcePreviewNextNode:i._o,requestSourcePreview:t=>{let{previousNode:n,nextNode:r}=t;return!1!==function(t){var n,r,o,l,i,a,d,u,c,s,p,v,g;let y=X(t.currentState);if(!y)return null;let I=(0,b.bQ)(t.previousNode,t.nextNode);
1if(I)return null==(r=e.cancelActiveHistoryPreview)||r.call(e),null==(o=e.clearLivePreviewForFrame)||o.call(e,y.frameId),null==(l=e.logCodeLayerDebug)||l.call(e,"live-source.preview-blocked-local-instance",{frameId:y.frameId,nodePath:y.nodePath,runtimeNodePath:y.runtimeNodePath,sourceInstanceKey:null!=(i=y.sourceInstanceKey)?i:null,reason:I}),!1;let w=(0,m.W1)({source:y.source,nodePath:y.nodePath,previousNode:t.previousNode,nextNode:t.nextNode,sourceInstanceKey:y.sourceInstanceKey});if(w){let n=(0,f.bP)({frameId:y.frameId,baseSource:y.source,nodePath:y.runtimeNodePath,previewNode:t.nextNode,patches:[],componentPropPreview:w,strategy:"runtime-write"});return null==(a=e.setLivePropertyPreview)||a.call(e,n),{...y,previewUpdate:n}}if((0,m.sW)({source:y.source,nodePath:y.nodePath,previousNode:t.previousNode,nextNode:t.nextNode,sourceInstanceKey:y.sourceInstanceKey}))return null==(d=e.clearLivePreviewForFrame)||d.call(e,y.frameId),!1;let N=(0,m.XM)(t.previousNode)?(0,m.l3)(t.previousNode,t.nextNode,y.sourceInstanceKey):null;if(N){let n=(0,f.bP)({frameId:y.frameId,baseSource:y.source,nodePath:y.runtimeNodePath,previewNode:t.nextNode,patches:[],componentPropPreview:N,strategy:"runtime-write"});return null==(u=e.setLivePropertyPreview)||u.call(e,n),{...y,previewUpdate:n}}let P=e.editSessions?{frame:y.frame,node:t.previousNode,frameId:y.frameId,nodePath:y.nodePath,runtimeNodePath:y.runtimeNodePath,sourcePath:y.nodePath,sourceInstanceKey:y.sourceInstanceKey,viaInteractionSession:!1}:null;if(P&&e.editSessions.canHandle(P)){let n=e.editSessions.previewNodeEdit({target:P,previousNode:t.previousNode,nextNode:t.nextNode});if(n.handled){let r=null!=(s=n.previewNode)?s:t.nextNode,o=(0,f.bP)({frameId:y.frameId,baseSource:y.source,nodePath:y.runtimeNodePath,previewNode:r,patches:[],strategy:"runtime-write"});return null==(c=e.setLivePropertyPreview)||c.call(e,o),e.editSessions.captureRuntimeWriteOwnership(P),{...y,previewUpdate:o}}(!1!==n.handled||"root-resize-channel"!==n.reason)&&(0,h.l)({surface:"preview",reason:!1===n.handled?n.reason:"untranslatable-edit",frameId:y.frameId,target:{nodeType:null==(p=t.previousNode)?void 0:p.type,nodeName:null==(v=t.previousNode)?void 0:v.name,sourcePath:y.nodePath,runtimeNodePath:y.runtimeNodePath,sourceInstanceKey:null!=(g=y.sourceInstanceKey)?g:null},previousNode:t.previousNode,nextNode:t.nextNode})}let S=(0,f.bP)({frameId:y.frameId,baseSource:y.source,nodePath:y.runtimeNodePath,previewNode:t.nextNode,patches:[],strategy:"runtime-write"});return null==(n=e.setLivePropertyPreview)||n.call(e,S),{...y,previewUpdate:S}}({currentState:o,previousNode:n,nextNode:r})},setLivePropertyPreview:e.setLivePropertyPreview}))}function et(){(0,I.zm)({schedulerRef:e.propertyPreviewSchedulerRef,createRafPreviewScheduler:e.createRafPreviewScheduler,applyPreviewChangeNow:ee})}function en(t){return(0,c.tP)({currentState:t,resolveActiveNodePath:e.resolveActiveNodePath,resolveActiveNodeId:e.resolveActiveNodeId,getCurrentSelectionSlotRootNodeId:e.getCurrentSelectionSlotRootNodeId,isCodeLayerWritableFrame:e.isCodeLayerWritableFrame})}function er(t){return(0,c.GB)({currentState:t,resolveActiveNodePath:e.resolveActiveNodePath,resolveActiveNodeId:e.resolveActiveNodeId,getCurrentSelectionSlotRootNodeId:e.getCurrentSelectionSlotRootNodeId,isCodeLayerWritableFrame:e.isCodeLayerWritableFrame,getRenderedFrameNodes:e.getRenderedFrameNodes,getNodeByIdInTree:e.getNodeByIdInTree,getNodeByPathInTree:e.getNodeByPathInTree})}function eo(t){var n,r,o,l,i;let a=e.overlayInteractionStateRef.current,d=null!=(r=a.selectedNode)?r:null;
1if(!d||!(0,p.hJ)(d,t(d)))return!1;let u=en(a);if(!(0,c._k)(u))return!1;let{frameId:s,nodePath:v,nodeId:f}=u,m=e.getRenderedFrameNodes(s),h=m&&f&&null!=(o=e.getPathByNodeId(m,f))?o:v;if(m&&!e.getNodeByPathInTree(m,h))return null==(l=e.logCodeLayerDebug)||l.call(e,"live-source.canvas-local-metadata-commit-missed",{frameId:s,nodePath:v,targetNodePath:h,nodeId:null!=f?f:null}),!1;let g=[],y=e.setFrames(n=>n.map(n=>{var r;if(n.id!==s)return n;if(!n.nodes)return g.push("no-nodes"),n;let o=f&&null!=(r=e.getPathByNodeId(n.nodes,f))?r:v,l=e.updateNodeAtPath(n.nodes,o,t);return l===n.nodes?(g.push("unresolved"),n):(g.push("applied"),{...n,nodes:l})})),I=null!=(i=g[g.length-1])?i:"no-frame";return null==(n=e.logCodeLayerDebug)||n.call(e,"live-source.canvas-local-metadata-commit",{frameId:s,nodePath:v,targetNodePath:h,nodeId:null!=f?f:null,keys:p.z.join(","),renderedTree:m?"present":"absent",write:I,commit:"boolean"==typeof y?String(y):"unreported"}),"applied"===I&&!1!==y}function el(t,o){var l,i,a,d,u,s,p,v,f,m,h,g,I,w,b,N,P,S,x,k;let C=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"properties-panel",F=e.overlayInteractionStateRef.current,A=en(F),T=o&&A.frameId&&A.nodePath?(0,O.kk)({workspaceId:null!=(p=e.observationWorkspaceId)?p:null,propertyId:o,entrySurface:C,target:{frameId:A.frameId,nodePath:A.nodePath,nodeId:null!=(v=A.nodeId)?v:null},authoredNodePath:null!=(f=null==(l=A.selectedNode)?void 0:l.sourcePath)?f:null}):null;o&&A.frameId&&(0,R.tB)({workspaceId:null!=(m=e.observationWorkspaceId)?m:null,actionKind:"property-edit",propertyId:o,targetFrameIds:[A.frameId]});let E=o&&A.frameId&&A.nodePath?(0,M.AD)(null!=(h=e.observationWorkspaceId)?h:null,{propertyId:o,target:{frameId:A.frameId,nodePath:A.nodePath},authoredNodePath:null!=(g=null==(i=A.selectedNode)?void 0:i.sourcePath)?g:null}):null;null!==T&&null===E&&((0,O.KF)(T,"property-contract-adoption-failed"),T=null);let L=(0,c.Jl)({currentState:F,context:A,currentSession:e.propertyInteractionSessionRef.current,cloneNodeDeep:y.bG}),q=(0,c.rZ)({preparedSession:L,previousTarget:null!=(I=null==(a=e.propertyInteractionTargetRef)?void 0:a.current)?I:null,currentFrame:A.selectedFrame,propertyInteractionTargetRef:e.propertyInteractionTargetRef,propertyInteractionSessionRef:e.propertyInteractionSessionRef,nodeEditInteractionSnapshotRef:e.nodeEditInteractionSnapshotRef,setActivePropertyInteraction:e.setActivePropertyInteraction,cloneNodeDeep:y.bG});q.target&&e.logCanvasColorDebug("page.begin-property-interaction",{frameId:A.frameId,nodePath:A.nodePath,nodeId:null!=(w=A.nodeId)?w:null,slotRootNodeId:A.slotRootNodeId,selectedNode:e.summarizeNodeColor(A.selectedNode)});let j=e.beginCanvasEdit("properties-panel"===C?"properties":"canvas-chrome",A.frameId?[A.frameId]:[],{propertyEditSessionId:null!=(N=null!=(b=null==E?void 0:E.propertyEditSessionId)?b:t)?N:null==(d=q.session)?void 0:d.propertyEditSessionId,propertyId:o,...A.frameId&&A.nodePath?{diagnosticTarget:{frameId:A.frameId,nodePath:A.nodePath,...(null==(u=A.selectedNode)?void 0:u.sourcePath)?{authoredNodePath:A.selectedNode.sourcePath}:{},nodeId:null!=(P=A.nodeId)?P:null}}:{},...null===E?{}:{causalIdentitySeed:E}}),W=n.current;(null==W?void 0:W.cancel())&&B(W,"cancelled");let K=j&&o&&A.frameId&&A.nodePath?(0,z.ID)({workspaceId:null!=(S=e.observationWorkspaceId)?S:null,propertyId:o,entrySurface:C,target:{frameId:A.frameId,nodePath:null!=(x=null==E?void 0:E.observationTarget.nodePath)?x:A.nodePath,nodeId:A.nodeId},baselineNode:A.selectedNode,context:null!=(k=null==(s=e.getActiveCanvasEditContext)?void 0:s.call(e))?k:null}):null;n.current=K,null!==T&&null===K&&((0,O.KF)(T,"property-lifecycle-observer-unavailable"),T=null),null!==T&&null!==K&&r.current.set(K,T)}function ei(){var t,n;let r=e.overlayInteractionStateRef.current,o=en(r),l=(0,c.W)({context:o,currentSession:e.propertyInteractionSessionRef.current,currentSnapshot:e.nodeEditInteractionSnapshotRef.current});return(0,c.wM)({preparedPreview:l,acceptedTarget:null!=(n=null==(t=e.propertyInteractionTargetRef)?void 0:t.current)?n:null,propertyInteractionSessionRef:e.propertyInteractionSessionRef,nodeEditInteractionSnapshotRef:e.nodeEditInteractionSnapshotRef,cloneNodeDeep:y.bG})}function ea(t){ei(),(0,I.X4)({schedulerRef:e.propertyPreviewSchedulerRef,createRafPreviewScheduler:e.createRafPreviewScheduler,applyPreviewChangeNow:ee,updater:t})}function ed(t){var n,r,o,l,i,a,d,c,s;et();let p=e.overlayInteractionStateRef.current,v=er(p),{context:f}=v;if(!f.frameId||!f.nodePath)return null==(l=e.cancelActiveHistoryPreview)||l.call(e),!1;let m=e.getMatchingInteractionSnapshot(e.nodeEditInteractionSnapshotRef.current,f.frameId,f.nodePath,f.nodeId),h=(0,u.A7)({context:f,renderedNode:v.renderedNode,interactionSnapshot:m,updater:t,hasLiveSource:v.hasLiveSource,normalizeNode:e.normalizeNodeGeometryForUserInput,buildCommittedNodeEditPair:e.buildCommittedNodeEditPair,resolvePersistenceMode:t=>{let{frame:n,slotRootNodeId:r,nodePath:o,beforeNode:l,afterNode:i}
1=t;return e.getNodeEditPersistenceMode({frame:n,componentDefinitions:e.componentDefinitions,slotRootNodeId:r,nodePath:o,beforeNode:l,afterNode:i})}});if(!h)return null==(i=e.cancelActiveHistoryPreview)||i.call(e),!1;let{nodeEditPair:g,persistenceMode:y,frameId:I,nodePath:w,nodeId:b,slotRootNodeId:N}=h;e.logCanvasColorDebug("page.commit-current-node-property",{frameId:I,nodePath:w,nodeId:null!=b?b:null,slotRootNodeId:N,persistenceMode:y.mode,nodeEditPairBefore:e.summarizeNodeColor(null==g?void 0:g.beforeNode),nodeEditPairAfter:e.summarizeNodeColor(null==g?void 0:g.afterNode),selectedNode:e.summarizeNodeColor(p.selectedNode)}),e.logCodeLayerDebug("page.commit-current-node-property",{frameId:I,nodePath:w,nodeId:null!=b?b:null,slotRootNodeId:N,persistenceMode:y.mode,selectedFrameDocumentKey:p.selectedFrame?e.resolveCodeLayerDocumentKey(p.selectedFrame):null,panelDocumentKey:null!=(a=null==(n=e.codeLayerPanelRef.current)?void 0:n.getDocumentKey())?a:null,panelMainFilePath:null!=(d=null==(r=e.codeLayerPanelRef.current)?void 0:r.getMainFilePath())?d:null,nodeEditPairBeforeId:null!=(c=null==g?void 0:g.beforeNode.id)?c:null,nodeEditPairAfterId:null!=(s=null==g?void 0:g.afterNode.id)?s:null});let P=(0,u.mF)({preparedCommit:h,currentState:p,updater:t,normalizeNode:e.normalizeNodeGeometryForUserInput,commitLiveSourceEdit:Z,clearStructuralRenderNodeEditPreview:V,nodeEditInteractionSnapshotRef:e.nodeEditInteractionSnapshotRef,propertyInteractionSessionRef:e.propertyInteractionSessionRef,reportBlockedEdit:e.reportCodeLayerBlockedEdit});return P||null==(o=e.cancelActiveHistoryPreview)||o.call(e),P}(0,o.useEffect)(()=>{(0,x.vP)("selection-change")},[e.selectedNodeId,e.selectedNodePath,e.selection.frameId]),(0,o.useEffect)(()=>(0,x.Yf)(t=>{if("history-command"===t||"external-reanchor"===t){var n,r,o;null==(n=e.editSessions)||n.cancelGesture(void 0),(0,A.Rw)("project-replacement");let t=null==(o=e.canvasRuntimeStore)||null==(r=o.getState)?void 0:r.call(o);(null==t?void 0:t.activeFrameResizePreview)&&t.setActiveFrameResizePreview(null),(null==t?void 0:t.activeLiveNodeResizePreview)&&t.setActiveLiveNodeResizePreview(null)}J()}),[e.editSessions,J]),(0,o.useEffect)(()=>()=>{(0,x.vP)("unmount")},[]);let eu=(0,o.useCallback)(e=>{ea(t=>{var n,r;let o=[...null!=(r=null==(n=t.style)?void 0:n.fills)?r:[]],l=o.findIndex(e=>"gradient"===e.type&&!1!==e.visible);return l>=0&&(o[l]=e),{...t,style:{...t.style,fills:o}}})},[ea]),[ec,es]=(0,o.useState)(null),ep=(0,o.useSyncExternalStore)(l.oh,()=>e.selection.frameId?(0,l.a4)(e.selection.frameId):0,()=>0);(0,o.useLayoutEffect)(()=>{let t=function(e){var t,n;let r=e.frameId,o=e.selectedNodePath,l=e.getNodeRectOnCanvas;if(!r||!o||!l||!(null==(n=e.selectedNode)||null==(t=n.children)?void 0:t.length))return null;let i=[];return e.selectedNode.children.forEach((e,t)=>{let n="".concat(o,".").concat(t),a=l(r,n);a&&i.push({x:a.x,y:a.y,width:a.width,height:a.height})}),i.length>0?i:null}({frameId:e.selection.frameId,getNodeRectOnCanvas:e.getNodeRectOnCanvas,selectedNode:e.selectedNode,selectedNodePath:e.selectedNodePath});es(e=>e===t||e&&t&&e.length===t.length&&e.every((e,n)=>{let r=t[n];return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height})?e:t)},[e.getNodeRectOnCanvas,e.selectedNode,e.selectedNodePath,e.selection.frameId,ep]);let ev=(0,o.useCallback)((e,t)=>{ea(n=>{var r,o,l,i;let a={...null!=(i=null==(o=n.style)||null==(r=o.layout)?void 0:r.padding)?i:{}},d=Math.round(t);for(let t of e)"top"===t||"bottom"===t?delete a.vertical:delete a.horizontal,a[t]=d;return{...n,style:{...n.style,layout:{...null==(l=n.style)?void 0:l.layout,padding:a}}}})},[ea]),ef=(0,o.useCallback)((e,t)=>{let n=Math.round(t);ea(t=>{var r;return{...t,style:{...t.style,layout:{...null==(r=t.style)?void 0:r.layout,..."spacing"===e?{spacing:n}:{},..."columnGap"===e?{columnGap:n}:{},..."rowGap"===e?{rowGap:n}:{}}}}})},[ea]),em=(0,o.useCallback)(t=>{let n=e.overlayInteractionStateRef.current;if((0,c.Mu)(n)){if(eo(t))return;Q(t);return}Q(t)||ed(t)},[eo,Q,ed]),eh=(0,o.useCallback)((t,n)=>{var r;let o=e.overlayInteractionStateRef.current,{context:l}=er(o),i=l.nodePath?(0,E._6)(l.nodePath):null;if(!l.frameId||!l.nodePath||!i)return void em(t);let a=[{runtimeNodePath:i,updater:n}];if((0,c.Mu)(o))return void Q(t,{companions:a});Q(t,{companions:a})||(et(),e.updateMultipleFrameNodes([{frameId:l.frameId,nodePath:l.nodePath,nodeId:null!=(r=l.nodeId)?r:void 0,updater:n=>e.normalizeNodeGeometryForUserInput(t(n))},{frameId:l.frameId,nodePath:i,updater:t=>e.normalizeNodeGeometryForUserInput(n(t))}],!0))},[em,e.normalizeNodeGeometryForUserInput,e.updateMultipleFrameNodes]),eg=(0,o.useCallback)(t=>{let n=e.overlayInteractionStateRef.current;if((0,c.Mu)(n))return void Y(t);Y(t)||ea(t)},[Y,ea]),ey=(0,o.useCallback)((t,n,r,o)=>{var l,i;let a=null!=(l=e.resolveNodeIdForPath(t,n))?l:void 0,d=null!=(i=e.resolveNodeIdForPath(t,o))?i:void 0;e.updateFrameNodes(t,n,e=>e.conditional?{...e,conditional:{...e.conditional,mode:"manual",activeVariantId:r}}:e,!0,a),e.selectNode(t,o,d)},[e.resolveNodeIdForPath,e.selectNode,e.updateFrameNodes]),eI=(0,o.useCallback)(t=>{let n=(0,w.F)({resolvedSelections:e.resolvedSelections,updater:t,normalizeNode:e.normalizeNodeGeometryForUserInput});if("none"!==n.kind){if("single"===n.kind)return em(n.updater);for(let t of n.updates){var r,o,l;let n=e.getRenderedFrameNodes(t.frameId);if(!n)continue;let i=t.nodeId&&null!=(l=e.getPathByNodeId(n,t.nodeId))?l:t.nodePath,a=e.getNodeByPathInTree(n,i);if(!a)continue;let d=(0,b.bQ)(a,t.updater(a));if(d){null==(r=e.clearLivePreviewForFrame)||r.call(e,t.frameId),null==(o=e.reportCodeLayerBlockedEdit)||o.call(e,d);return}}e.updateMultipleFrameNodes(n.updates,!0)}},[e.clearLivePreviewForFrame,e.getNodeByPathInTree,e.getPathByNodeId,e.getRenderedFrameNodes,e.normalizeNodeGeometryForUserInput,e.reportCodeLayerBlockedEdit,e.resolvedSelections,e.updateMultipleFrameNodes,em]),ew=(0,o.useCallback)(t=>{let n=(0,w.F)({resolvedSelections:e.resolvedSelections,updater:t,normalizeNode:e.normalizeNodeGeometryForUserInput});if("none"===n.kind)return;if("single"===n.kind)return eg(n.updater);for(let t of n.updates){var r,o;let n=e.getRenderedFrameNodes(t.frameId);if(!n)continue;let l=t.nodeId&&null!=(o=e.getPathByNodeId(n,t.nodeId))?o:t.nodePath,i=e.getNodeByPathInTree(n,l);if(i&&(0,b.bQ)(i,t.updater(i))){null==(r=e.clearLivePreviewForFrame)||r.call(e,t.frameId);return}}let l=(0,w.R5)({updates:n.updates,getRenderedFrameNodes:e.getRenderedFrameNodes,getPathByNodeId:e.getPathByNodeId,updateNodeById:e.updateNodeById,updateNodeAtPath:e.updateNodeAtPath});l&&(0,w.yn)({preview:l,setLivePropertyPreview:e.setLivePropertyPreview})},[e.clearLivePreviewForFrame,e.getNodeByPathInTree,e.getPathByNodeId,e.getRenderedFrameNodes,e.normalizeNodeGeometryForUserInput,e.resolvedSelections,e.setLivePropertyPreview,e.updateNodeAtPath,e.updateNodeById,eg]),eb=(0,o.useCallback)(function(t,n){var r;let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"properties-panel";null==(r=e.editSessions)||r.endGesture(),el(t,n,o)},[e.editSessions,el]),eN=(0,o.useCallback)(()=>{var t,r,o,l,i;et(),null==(t=e.editSessions)||t.endGesture();let a=e.overlayInteractionStateRef.current,d=en(a),u=(0,N.Gi)({context:d,currentSession:e.propertyInteractionSessionRef.current,propertyInteractionTarget:null!=(l=null==(r=e.propertyInteractionTargetRef)?void 0:r.current)?l:null,selectedFrameHasLiveSource:(0,c._S)(d)});e.logCanvasColorDebug("page.end-property-interaction",{frameId:d.frameId,nodePath:d.nodePath,nodeId:null!=(i=d.nodeId)?i:null,hasPreview:!!(null==(o=u.session)?void 0:o.hasPreview),selectedNode:e.summarizeNodeColor(a.selectedNode)}),(0,N.Uc)({preparedEnd:u,frameId:d.frameId,clearPreviewArtifacts:U,rollbackPreviewTarget:t=>{(0,N.lV)({rollbackPendingPropertyPreview:e.rollbackPendingPropertyPreview,session:t,propertyInteractionTargetRef
1:e.propertyInteractionTargetRef,setActivePropertyInteraction:e.setActivePropertyInteraction})},clearInteractionState:J});let s=n.current;(null==s?void 0:s.cancel())&&(B(s,"cancelled"),n.current=null)},[e.resolveActiveNodeId,e.resolveActiveNodePath]);return{clearPropertyInteractionState:J,applyPropertyPreviewChangeNow:ee,flushQueuedPropertyPreviewChange:et,beginPropertyInteractionSession:el,markCurrentPropertyInteractionPreview:ei,applyPropertyPreviewChange:ea,commitPreviewedPropertyInteraction:function(){var t,n,r,o,l,i,a,d,s,p,v,f;et();let m=e.overlayInteractionStateRef.current,h=er(m),{context:g}=h;if(!(0,c._k)(g))return null==(l=e.cancelActiveHistoryPreview)||l.call(e),J(),!1;let I=e.getMatchingPropertyInteractionSession(e.propertyInteractionSessionRef.current,g.frameId,g.nodePath,g.nodeId),w=(0,c.ut)({context:g,renderedNode:h.renderedNode,activePreview:null==(t=e.livePropertyPreviewRef)?void 0:t.current}),b=(0,u.hk)({context:g,session:I,renderedNode:w,selectedNode:m.selectedNode,cloneNode:y.bG,normalizeNode:e.normalizeNodeGeometryForUserInput,hasLiveSource:h.hasLiveSource,resolvePersistenceMode:t=>{let{context:n,beforeNode:r,afterNode:o}=t;return e.getNodeEditPersistenceMode({frame:n.selectedFrame,componentDefinitions:e.componentDefinitions,slotRootNodeId:n.slotRootNodeId,nodePath:n.nodePath,beforeNode:r,afterNode:o})}});if(!b)return null==(i=e.cancelActiveHistoryPreview)||i.call(e),J(),!1;let{context:N,beforeNode:P,afterNode:S,persistenceMode:x}=b;e.logCanvasColorDebug("page.commit-previewed-property",{frameId:N.frameId,nodePath:N.nodePath,nodeId:null!=(a=N.nodeId)?a:null,slotRootNodeId:N.slotRootNodeId,persistenceMode:x.mode,beforeNode:e.summarizeNodeColor(P),afterNode:e.summarizeNodeColor(S)}),e.logCodeLayerDebug("page.commit-previewed-property",{frameId:N.frameId,nodePath:N.nodePath,nodeId:null!=(d=N.nodeId)?d:null,slotRootNodeId:N.slotRootNodeId,persistenceMode:x.mode,selectedFrameDocumentKey:N.selectedFrame?e.resolveCodeLayerDocumentKey(N.selectedFrame):null,panelDocumentKey:null!=(s=null==(n=e.codeLayerPanelRef.current)?void 0:n.getDocumentKey())?s:null,panelMainFilePath:null!=(p=null==(r=e.codeLayerPanelRef.current)?void 0:r.getMainFilePath())?p:null,beforeNodeId:null!=(v=P.id)?v:null,afterNodeId:null!=(f=S.id)?f:null});let R=(0,u.U3)({preparedCommit:b,currentState:m,commitLiveSourceEdit:Z,clearStructuralRenderNodeEditPreview:V,clearPropertyInteractionPreviewArtifacts:U,clearPropertyInteractionState:J,reportBlockedEdit:e.reportCodeLayerBlockedEdit});return R||null==(o=e.cancelActiveHistoryPreview)||o.call(e),R},commitSelectedLiveNodeUpdate:Q,commitCurrentNodePropertyUpdate:ed,handleGradientUpdate:eu,selectedNodeChildRects:ec,handlePaddingChange:ev,handleGapChange:ef,handleNodePropertyUpdate:em,handleNodePropertyUpdateWithParent:eh,handleNodePropertyPreviewUpdate:eg,handleActivateConditionalVariant:ey,handleMultiNodePropertyUpdate:eI,handleMultiNodePreviewUpdate:ew,handleNodePropertyInteractionStart:eb,handleNodePropertyInteractionEnd:eN}}[O,L,c,T,N,s,m,v,C,a,d,i,z,u,l]=B.then?(await B)():B,r()}catch(e){r(e)}})},67829:(e,t,n)=>{n.d(t,{OQ:()=>f,Re:()=>m,SQ:()=>a,Vb:()=>u,h1:()=>h,tB:()=>d});var r=n(21134),o=n(40259);let l=new Map,i=new Map;function a(e,t){let n;if(l.has(e))return{supported:!1,windowId:null,reason:"edit-performance-window-already-active"};try{n=function(e){var t;let n="size.width"===(t=e.propertyId)?"width":"size.height"===t?"height":"canvas.frame.membership"===t?"frame-membership":t;if("property-edit"===e.actionKind){if(null===e.targetFrameId||"frame-membership"===n)throw Error("A property edit requires a target frame and scalar property");return{actionId:"root-property-edit",targetFrameId:e.targetFrameId,property:n,expectedFrameIds:e.expectedFrameIds}}if("structural-edit"===e.actionKind)return{actionId:"structural-edit",targetFrameId:e.targetFrameId,property:"frame-membership",expectedFrameIds:e.expectedFrameIds,affectedFrameIds:e.affectedFrameIds};if(null===e.targetFrameId)throw Error("A history performance window requires the affected frame target");return{actionId:"undo"===e.actionKind?"history-undo":"history-redo",targetFrameId:e.targetFrameId,property:n,expectedFrameIds:e.expectedFrameIds,affectedFrameIds:e.affectedFrameIds}}(t)}catch(e){return{supported:!1,windowId:null,reason:e instanceof Error?e.message:"edit-performance-request-invalid"}}let r=(0,o.At)(e,n);return r.supported&&l.set(e,{workspaceId:e,windowId:r.windowId,request:t,armedAtMs:performance.now(),actionReceivedAtMs:null,actionReceiptKind:null,appliedAtMs:null,expectedRenderedValue:null,requiredRendererFrameIds:[],sampleCount:0,frameId:null,rendererReportTimeoutId:null,cancelRendererReportSubscriptions:[]}),r}function d(e){if(null===e.workspaceId)return!1;let t=l.get(e.workspaceId);if(void 0===t){if("undo"!==e.actionKind&&"redo"!==e.actionKind)return!1;
1let t=(0,o.dn)(e.workspaceId),n="undo"===e.actionKind?"history-undo":"history-redo";return null!==t&&t.actionId===n&&"start"===t.phase&&(void 0===e.propertyId||t.property===e.propertyId)&&(null===t.targetFrameId||void 0===e.targetFrameIds||!!e.targetFrameIds.includes(t.targetFrameId))&&(0,o.Kn)(t.workspaceId,t.windowId)}return t.request.actionKind===e.actionKind&&(void 0===e.propertyId||t.request.propertyId===e.propertyId)&&(null===t.request.targetFrameId||void 0===e.targetFrameIds||!!e.targetFrameIds.includes(t.request.targetFrameId))&&null===t.actionReceivedAtMs&&!!(0,o.Kn)(t.workspaceId,t.windowId)&&(t.actionReceivedAtMs=performance.now(),t.actionReceiptKind="product-seam",!0)}function u(e){if(null===e.workspaceId)return!1;let t=l.get(e.workspaceId);if(void 0===t||t.request.actionKind!==e.actionKind||t.request.propertyId!==e.propertyId||"canvas.frame.membership"!==t.request.propertyId&&null!==t.request.targetFrameId&&!e.targetFrameIds.includes(t.request.targetFrameId)||null!==t.appliedAtMs)return!1;let n=performance.now();if(null===t.actionReceivedAtMs){if(!(0,o.Kn)(t.workspaceId,t.windowId))return!1;t.actionReceivedAtMs=n,t.actionReceiptKind="apply-fallback"}if(t.appliedAtMs=n,t.expectedRenderedValue=e.expectedRenderedValue,"canvas.frame.membership"===t.request.propertyId&&Array.isArray(e.expectedRenderedValue)){let n=new Set(t.request.expectedFrameIds);t.requiredRendererFrameIds=e.expectedRenderedValue.filter(e=>!n.has(e)),t.cancelRendererReportSubscriptions=t.requiredRendererFrameIds.map(e=>(0,r.Iz)(e,()=>s(t))),t.requiredRendererFrameIds.length>0&&(t.rendererReportTimeoutId=globalThis.setTimeout(()=>{l.get(t.workspaceId)===t&&v(t,!1)},15e3))}return(0,o.ER)(t.workspaceId,t.windowId,"commit"),s(t),!0}function c(e){var t,n,r,o;if("canvas.frame.membership"===e.request.propertyId)return Array.from(document.querySelectorAll('iframe[data-testid="canvas-live-frame"][data-frame-id]')).map(e=>e.dataset.frameId).filter(e=>void 0!==e).sort();let l=e.request.targetFrameId;if(null===l)return null;let i=Array.from(document.querySelectorAll('iframe[data-testid="canvas-live-frame"][data-frame-id]')).find(e=>e.dataset.frameId===l),a=null==i||null==(n=i.contentDocument)||null==(t=n.querySelector("#root"))?void 0:t.firstElementChild;return null==a?null:"size.width"===e.request.propertyId?a.getBoundingClientRect().width:"size.height"===e.request.propertyId?a.getBoundingClientRect().height:Number(null!=(o=null==i||null==(r=i.contentWindow)?void 0:r.getComputedStyle(a).opacity)?o:NaN)}function s(e){null===e.frameId&&(e.frameId=requestAnimationFrame(()=>{var t,n,i;if(e.frameId=null,l.get(e.workspaceId)!==e)return;e.sampleCount+=1;let a=(t=e.request.propertyId,n=c(e),i=e.expectedRenderedValue,"number"==typeof n&&"number"==typeof i?Number.isFinite(n)&&Math.abs(n-i)<=("style.opacity"===t?.005:.5):Array.isArray(n)&&Array.isArray(i)&&n.length===i.length&&n.every((e,t)=>e===i[t])),d=e.requiredRendererFrameIds.every(e=>null!==(0,r.Gv)(e));if(a&&d){(0,o.ER)(e.workspaceId,e.windowId,"settle"),v(e,!0);return}if(!a&&e.sampleCount<30)return void s(e);0===e.requiredRendererFrameIds.length&&((0,o.ER)(e.workspaceId,e.windowId,"settle"),v(e,!1))}))}function p(e){for(let t of(null!==e.frameId&&cancelAnimationFrame(e.frameId),e.frameId=null,null!==e.rendererReportTimeoutId&&(globalThis.clearTimeout(e.rendererReportTimeoutId),e.rendererReportTimeoutId=null),e.cancelRendererReportSubscriptions))t();e.cancelRendererReportSubscriptions=[]}function v(e,t){if(l.get(e.workspaceId)!==e||null===e.actionReceivedAtMs||null===e.actionReceiptKind||null===e.appliedAtMs)return;p(e),l.delete(e.workspaceId);let n=performance.now(),a=(0,o._w)(e.workspaceId,e.windowId);if(null===a)return;let d=a.components.map(e=>{let{componentId:t,displayName:n,instanceKey:r,relation:o,renderAttempts:l,parentElementConstructions:i,comparatorCalls:a,comparatorBailouts:d,comparatorMisses:u,changedProps:c,phases:s,definition:p,comparatorDefinition:v}=e;return{componentId:t,displayName:n,instanceKey:r,relation:o,renderAttempts:l,parentElementConstructions:i,comparatorCalls:a,comparatorBailouts:d,comparatorMisses:u,changedProps:c,phases:s,definition:p,comparatorDefinition:v}}),u={supported:!0,status:t&&"product-seam"===e.actionReceiptKind?a.status:"invalid",windowId:e.windowId,label:e.request.label,actionKind:e.request.actionKind,propertyId:e.request.propertyId,targetFrameId:e.request.targetFrameId,timing:{armedAtMs:e.armedAtMs,actionReceivedAtMs:e.actionReceivedAtMs,appliedAtMs:e.appliedAtMs,renderedAtMs:n,armedToActionMs:e.actionReceivedAtMs-e.armedAtMs,actionToAppliedMs:e.appliedAtMs-e.actionReceivedAtMs,appliedToRenderedMs:n-e.appliedAtMs,actionToRenderedMs:n-e.actionReceivedAtMs},actionReceipt:{kind:e.actionReceiptKind}
1,renderReceipt:{kind:"runtime-dom-match",matched:t,sampleCount:e.sampleCount,requiredRendererFrameIds:e.requiredRendererFrameIds,reportedRendererFrameIds:e.requiredRendererFrameIds.filter(e=>null!==(0,r.Gv)(e))},renderedComponents:d.filter(e=>e.renderAttempts>0||e.parentElementConstructions>0),stableComponents:d.filter(e=>0===e.renderAttempts&&0===e.parentElementConstructions),issues:a.issues.map(e=>({code:e.code,componentId:e.component.componentId,instanceKey:e.component.instanceKey}))};for(i.set(u.windowId,{workspaceId:e.workspaceId,report:u});i.size>32;){let e=i.keys().next().value;if(void 0===e)break;i.delete(e)}}function f(e,t){let n=i.get(t);return void 0===n||n.workspaceId!==e?null:n.report}function m(e,t){let n=l.get(e);return void 0===n||n.windowId!==t?null:{windowId:t,actionKind:n.request.actionKind,propertyId:n.request.propertyId,targetFrameId:n.request.targetFrameId,actionReceived:null!==n.actionReceivedAtMs,applied:null!==n.appliedAtMs,expectedRenderedValue:n.expectedRenderedValue,currentRuntimeValue:c(n),sampleCount:n.sampleCount}}function h(e){let t=l.get(e);void 0!==t&&(l.delete(e),p(t),(0,o.hS)(e))}},72679:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{$G:()=>A,JM:()=>F,Ju:()=>T,MF:()=>p,Rg:()=>v,_G:()=>f});var o=n(41774),l=n(63262),i=n(17063),a=n(19348),d=n(504),u=e([a,i]);function c(e,t,n){if("number"!=typeof n.start||"number"!=typeof n.end||n.start<0||n.end<n.start||n.end>e.length)return;let r=e.slice(n.start,n.end).replace(/\s+/gu," ").trim(),o=0xcbf29ce484222325n;for(let e of new TextEncoder().encode("".concat(t,"\0").concat(r)))o^=BigInt(e),o=BigInt.asUintN(64,1099511628211n*o);return o.toString(16).padStart(16,"0")}function s(e,t){if(void 0===t||"frame-default"===t.kind)return e;let n=e.replace(/\bexport\s+default\s+function\s+([A-Za-z_$][\w$]*)\s*\(/u,"function $1(");return n===e&&(n=e.replace(/\bexport\s+default\s+function\s*\(/u,"function __BloomOriginalDefault(")),n===e&&(n=e.replace(/\bexport\s+default\s+([A-Za-z_$][\w$]*)\s*;?/u,"const __BloomOriginalDefault = $1;")),n===e&&(n=e.replace(/\bexport\s+default\s+/u,"const __BloomOriginalDefault = ")),"".concat(n.trimEnd(),"\n\nexport default ").concat(t.componentName,";\n")}function p(e){return"0"===e?"0":e.startsWith("0.")?e.slice(2):e}function v(e,t,n,r,i){var d,u,p,v;let f=(0,l.ew)(t);f&&(t=f.sourcePath,n={kind:"named-component",componentName:f.componentName});let h=s(e,n),g=null;if(void 0!==r||void 0!==i){let e;try{if(e=(0,a.JE)(h,t,{includeComponentInvocations:void 0!==i||/^[A-Z]/u.test(null!=(p=null==r?void 0:r.tagName)?p:"")}),void 0!==i){if("at-observed-cursor"!==i.kind)return null;let t=(0,a.JE)(h,i.sourcePath).filter(e=>{var t;let n=(0,a.AA)(null==(t=e.openingElement)?void 0:t.name).resolvedName;return n===i.tag&&c(h,n,e)===i.subtreeHash});if(1!==t.length)return null;let n=t[0];e=e.filter(e=>e.start>n.start&&e.end<n.end)}}catch(e){return null}let n=null==r||null==(u=r.tagName)?void 0:u.toLowerCase(),o=void 0===n?e:e.filter(e=>{var t;return(0,a.AA)(null==e||null==(t=e.openingElement)?void 0:t.name).resolvedName.toLowerCase()===n}),l=m(null==r?void 0:r.dataName),d=null===l?[]:o.filter(e=>(function(e){let t=(0,a.Oh)(e.openingElement,"data-name"),n=null==t?void 0:t.value;if(((null==n?void 0:n.type)==="Literal"||(null==n?void 0:n.type)==="StringLiteral")&&"string"==typeof n.value)return m(n.value);if((null==n?void 0:n.type)==="JSXExpressionContainer"){let e=n.expression;if(((null==e?void 0:e.type)==="Literal"||(null==e?void 0:e.type)==="StringLiteral")&&"string"==typeof e.value)return m(e.value)}return null})(e)===l),s=d.length>0?d:o;if(1!==s.length)return null;g=null!=(v=s[0])?v:null}else try{g=(0,a.Me)(h,t)}catch(e){return null}let y=(0,a.AA)(null==g||null==(d=g.openingElement)?void 0:d.name).resolvedName;if(!g||!y)return null;let I=c(h,y,g);return{kind:"at-observed-cursor",sourcePath:(0,o.pR)(t),tag:y,...void 0===n?{}:{sourceRoot:n},...void 0===I?{}:{subtreeHash:I}}}function f(e,t){let n=t=>(function(e,t){let n;if("at-observed-cursor"!==t.kind||void 0===t.subtreeHash)return t;let r=s(e,t.sourceRoot);try{n=(0,a.JE)(r,t.sourcePath,{includeComponentInvocations:/^[A-Z]/u.test(t.tag)}).filter(e=>{var n;return(0,a.AA)(null==(n=e.openingElement)?void 0:n.name).resolvedName===t.tag}).map(e=>c(r,t.tag,e))}catch(e){return t}let[o]=n;
1return n.includes(t.subtreeHash)||1!==n.length||void 0===o?t:{...t,subtreeHash:o}})(e,t),r={anchor:n(t.target.anchor)};switch(t.type){case"reorder-node":return{...t,target:r,parent:n(t.parent),...void 0===t.before?{}:{before:n(t.before)},...void 0===t.after?{}:{after:n(t.after)}};case"reparent-node":case"paste-fragment":return{...t,target:r,parent:n(t.parent),...void 0===t.before?{}:{before:n(t.before)}};case"insert-node":return{...t,target:r,parent:n(t.parent),...void 0===t.before?{}:{before:n(t.before)},insertion:"duplicate"===t.insertion.kind?{...t.insertion,source:n(t.insertion.source)}:t.insertion};case"unwrap-node":return{...t,target:r,parent:n(t.parent)};case"wrap-siblings":return{...t,target:r,siblings:t.siblings.map(n)};default:return{...t,target:r}}}function m(e){return(null==e?void 0:e.replace(/\s+/gu," ").trim())||null}function h(e,t,n,r,o){var l,a,u,c,s,p;let f="INSTANCE"===t.type||"COMPONENT"===t.type?{tagName:null!=(c=(0,i.UP)(e,null==(l=t.component)?void 0:l.codeRefId,null==(a=t.component)?void 0:a.name)[0])?c:null==(u=t.component)?void 0:u.name}:{tagName:t.tagName,dataName:t.dataName};return null!=(p=(0,d.CI)(t.id))?p:v(e,null!=(s=t.sourcePath)?s:n,r,f,o)}function g(e,t){var n,r;return null!=(r=null!=(n=e.id)?n:e.sourcePath)?r:"".concat(e.type,":").concat(e.name,":").concat(t)}function y(e){return void 0===e.node.sourcePath?null:(0,a.DS)(s(e.source,e.sourceRoot),e.parentSourcePath,e.node.sourcePath)}function I(e){let t=null==e?void 0:e.flatMap(e=>"color"===e.type&&"string"==typeof e.value?[{type:"color",value:e.value,...void 0===e.visible?{}:{visible:e.visible},...void 0===e.variableId?{}:{variableId:e.variableId}}]:[]);return t&&t.length>0?t:void 0}function w(e){if(void 0!==e)return{...void 0===e.color?{}:{color:e.color},...void 0===e.fontSize?{}:{fontSize:e.fontSize},...void 0===e.fontFamily?{}:{fontFamily:e.fontFamily},...void 0===e.fontStyle?{}:{fontStyle:e.fontStyle},...void 0===e.fontWeight?{}:{fontWeight:e.fontWeight},...void 0===e.textAlign?{}:{textAlign:e.textAlign},...void 0===e.textAlignVertical?{}:{textAlignVertical:e.textAlignVertical},..."number"!=typeof e.letterSpacing?{}:{letterSpacing:e.letterSpacing},...void 0===e.lineHeight?{}:{lineHeight:e.lineHeight},...void 0===e.paragraphIndent?{}:{paragraphIndent:e.paragraphIndent}}}function b(e){var t,n,r,o,l,i,a,d,u,c,s,p,v,f,m;return{kind:"auto-layout-frame",name:e.name,direction:null!=(s=null==(n=e.style)||null==(t=n.layout)?void 0:t.direction)?s:"column",alignItems:null!=(p=null==(o=e.style)||null==(r=o.layout)?void 0:r.alignItems)?p:"flex-start",justifyContent:null!=(v=null==(i=e.style)||null==(l=i.layout)?void 0:l.justifyContent)?v:"flex-start",gap:null!=(f=null==(d=e.style)||null==(a=d.layout)?void 0:a.spacing)?f:0,padding:{...null!=(m=null==(c=e.style)||null==(u=c.layout)?void 0:u.padding)?m:{horizontal:0,vertical:0}}}}function N(e,t){return"number"==typeof t&&Number.isFinite(t)&&("number"!=typeof e||e!==t)}[a,i]=u.then?(await u)():u;let z=["style","spacing","sizing","constraints","rotation","textAutoResize","placeholder","linkUrl","imageScaleMode","nativeProps","vectorDocument"];function P(e,t){let n=function(e){if(void 0===e)return;let{flexGrow:t,flexShrink:n,...r}=e;return r}(e);if(void 0===n)return;let{widthMode:r,heightMode:o,...l}=n,i={...l,...t.width||void 0===r?{}:{widthMode:r},...t.height||void 0===o?{}:{heightMode:o}};return 0===Object.keys(i).length?void 0:i}function S(e,t){return JSON.stringify(e)===JSON.stringify(t)}function x(e){return Array.isArray(e)?e.map(e=>void 0===e?null:x(e)):R(e)?Object.fromEntries(Object.entries(e).flatMap(e=>{let[t,n]=e;return void 0===n?[]:[[t,x(n)]]})):e}function R(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}let M=new Set(["vectorDocument","style.layout.padding"]);function k(e){var t,n;if(void 0!==e.previousNode.sourceInstanceKey||void 0!==e.nextNode.sourceInstanceKey||void 0!==e.previousNode.liveBindings||void 0!==e.nextNode.liveBindings||void 0!==e.previousNode.vectorDocument||void 0!==e.nextNode.vectorDocument)return{...(null!=(t=e.nextNode.sourceInstanceKey)?t:e.previousNode.sourceInstanceKey)?{sourceInstanceKey:null!=(n=e.nextNode.sourceInstanceKey)?n:e.previousNode.sourceInstanceKey}:{},...void 0===e.previousNode.liveBindings?{}:{previousLiveBindings:x(e.previousNode.liveBindings)},...void 0===e.nextNode.liveBindings?{}:{nextLiveBindings:x(e.nextNode.liveBindings)},previousValuePresent:void 0!==e.previousValue,...void 0===e.previousValue?{}:{previousValue:x(e.previousValue)}}}function C(e){var t,n,r,o,l,i,a;let d=e.previousNode.component,u=e.nextNode.component;if(void 0===d&&void 0===u)return;let c=null!=(t=null==u?void 0:u.name)?t:null==d?void 0:d.name;if(void 0===c)return;let s=new Map((null!=(n=null==d?void 0:d.props)?n:[]).map(e=>[e.name,e])),p=new Map((null!=(r=null==u?void 0:u.props)?r:[]).map(e=>[e.name,e]));for(let t of[...new Set([...s.keys(),...p.keys()])].sort()){let n=s.get(t),r=p.get(t);S(n,r)||e.operations.push({type:"set-component-prop",target:e.target,property:t,previous:void 0===n?{kind:"unset"}:{kind:"prop",prop:x(n)},next:void 0===r?{kind:"unset"}:{kind:"prop",prop:x(r)},componentName:c,...(null!=(o=null==u?void 0:u.codeRefId)?o:null==d?void 0:d.codeRefId)?{componentCodeRefId:null!=(l=null==u?void 0:u.codeRefId)?l:null==d?void 0:d.codeRefId}:{},...(null!=(i=e.nextNode.sourceInstanceKey)?i:e.previousNode.sourceInstanceKey)?{sourceInstanceKey:null!=(a=e.nextNode.sourceInstanceKey)?a:e.previousNode.sourceInstanceKey}:{}})}}function F(e){return T({source:e.source,sourcePath:e.sourcePath,previousNode:{...e.previousNode,type:"INSTANCE",sourcePath:e.sourcePath},nextNode:{...e.previousNode,type:"INSTANCE",sourcePath:e.sourcePath,component:e.nextNode.component}})}function A(e){var t;let n=F({...e,sourcePath:e.originSourcePath}),r=(null==(t=e.previousNode.children)?void 0:t.length)===1?e.previousNode.children[0]:null;if(!(null==r?void 0:r.sourcePath)||"INSTANCE"===r.type)return n;let o=e=>({...e,type:r.type,tagName:r.tagName,sourcePath:r.sourcePath,component:void 0});return[...n,...T({source:e.source,sourcePath:r.sourcePath,previousNode:o(e.previousNode),nextNode:o(e.nextNode)})]}function T(e){var t,n,r,o,u,c,p,f,m;if(e.previousNode.readOnlyInEditor||e.nextNode.readOnlyInEditor)return[];let F=(0,l.ew)(e.sourcePath);if(F){let t=e=>{let n=e.sourcePath?(0,l.ew)(e.sourcePath):null;return{...e,...(null==n?void 0:n.componentName)===F.componentName?{sourcePath:n.sourcePath}:{},...e.children?{children:e.children.map(t)}:{}}};e={...e,sourcePath:F.sourcePath,sourceRoot:{kind:"named-component",componentName:F.componentName},previousNode:t(e.previousNode),nextNode:t(e.nextNode)}}if((0,d.VA)(null!=(u=e.previousNode.id)?u:e.nextNode.id,null!=(c=e.nextNode.sourceInstanceKey)?c:e.previousNode.sourceInstanceKey))return[];let A=(0,d.CI)(null!=(p=e.previousNode.id)?p:e.nextNode.id),T=null!=A?A:h(e.source,e.previousNode,e.sourcePath,e.sourceRoot),E=[],L=function(e){var t;if(null===e.anchor||"at-observed-cursor"!==e.anchor.kind||e.sourcePath.includes("."))return null;let n=null!=(t=e.nextNode.children)?t:[],r=(e,t)=>void 0!==e.id&&e.id===t.id||void 0!==e.sourcePath&&e.sourcePath===t.sourcePath||void 0!==e.sourceInstanceKey&&e.sourceInstanceKey===t.sourceInstanceKey;return"FRAME"!==e.nextNode.type||1!==n.length||r(e.nextNode,e.previousNode)||!r(n[0],e.previousNode)?null:{type:"wrap-siblings",target:{anchor:e.anchor},siblings:[e.anchor],wrapper:b(e.nextNode)}}({anchor:T,sourcePath:e.sourcePath,previousNode:e.previousNode,nextNode:e.nextNode});if(null!==L)return[L];if(("INSTANCE"===e.previousNode.type||"INSTANCE"===e.nextNode.type)&&(void 0!==e.previousNode.component||void 0!==e.nextNode.component)){if(null===T)return E;let t=(0,i.YB)(e.previousNode,e.nextNode);return C({operations:E,target:{anchor:T},previousNode:e.previousNode,nextNode:t.nextNode}),E}if(null===T)return E;let O={anchor:T};if(("TEXT"===e.nextNode.type||"TEXT_INPUT"===e.nextNode.type)&&e.previousNode.text!==e.nextNode.text&&"string"==typeof e.nextNode.text){let t=k({previousNode:e.previousNode,nextNode:e.nextNode,previousValue:e.previousNode.text});E.push({type:"set-text",target:O,text:e.nextNode.text,...void 0===t?{}:{authorship:t}}
1)}let B=null!=(f=e.previousNode.absoluteRenderPosition)?f:{},q=null!=(m=e.nextNode.absoluteRenderPosition)?m:{},j=["left","right","top","bottom"].filter(e=>B[e]!==q[e]),W=e.previousNode.layoutPositioning!==e.nextNode.layoutPositioning;if(j.length>0||W){let t=Object.fromEntries(j.flatMap(e=>"number"==typeof q[e]&&Number.isFinite(q[e])?[[e,{value:q[e],unit:"px"}]]:[])),n=Object.fromEntries(j.flatMap(e=>"number"==typeof B[e]&&Number.isFinite(B[e])?[[e,{value:B[e],unit:"px"}]]:[]));E.push({type:"set-position",target:O,previousPositioning:"absolute"===e.previousNode.layoutPositioning?"absolute":"auto",...W?{positioning:"absolute"===e.nextNode.layoutPositioning?"absolute":"auto"}:{},previousPosition:n,position:t,unset:j.filter(e=>void 0===q[e])})}let K=null==(t=e.previousNode.sizing)?void 0:t.widthMode,D=null==(n=e.previousNode.sizing)?void 0:n.heightMode,G=null==(r=e.nextNode.sizing)?void 0:r.widthMode,_=null==(o=e.nextNode.sizing)?void 0:o.heightMode,H=K!==G,$=D!==_,V="hug"===K||"fill"===K,U="hug"===D||"fill"===D,J=H&&"fixed"===G&&V&&"number"==typeof e.nextNode.width&&Number.isFinite(e.nextNode.width),X=$&&"fixed"===_&&U&&"number"==typeof e.nextNode.height&&Number.isFinite(e.nextNode.height),Y={...(N(e.previousNode.width,e.nextNode.width)||J)&&!(H&&("hug"===G||"fill"===G))?{width:{value:e.nextNode.width,unit:"px"}}:{},...(N(e.previousNode.height,e.nextNode.height)||X)&&!($&&("hug"===_||"fill"===_))?{height:{value:e.nextNode.height,unit:"px"}}:{}},Z={width:void 0!==Y.width&&H&&"fixed"===G,height:void 0!==Y.height&&$&&"fixed"===_};for(let t of(Object.keys(Y).length>0&&E.push({type:"set-size",target:O,previousSize:{...void 0===Y.width||void 0===e.previousNode.width||V?{}:{width:{value:e.previousNode.width,unit:"px"}},...void 0===Y.height||void 0===e.previousNode.height||U?{}:{height:{value:e.previousNode.height,unit:"px"}}},size:Y}),z)){let n="sizing"===t?P(e.previousNode.sizing,Z):e.previousNode[t],r="sizing"===t?P(e.nextNode.sizing,Z):e.nextNode[t];!function e(t,n,r,o,l,i){if(!S(o,l)){if(!M.has(r)&&R(o)&&R(l)){for(let a of[...new Set([...Object.keys(o),...Object.keys(l)])].sort())e(t,n,"".concat(r,".").concat(a),o[a],l[a],void 0===i?void 0:{...i,previousValuePresent:void 0!==o[a],...void 0===o[a]?{}:{previousValue:x(o[a])}});return}void 0===l?t.push({type:"delete-node-slot",target:n,slot:r,...void 0===i?{}:{authorship:i}}):t.push({type:"set-node-slot",target:n,slot:r,value:x(l),...void 0===i?{}:{authorship:i}})}}(E,O,t,n,r,k({previousNode:e.previousNode,nextNode:e.nextNode,previousValue:n}))}return C({operations:E,target:O,previousNode:e.previousNode,nextNode:e.nextNode}),!function(e){var t,n,r;let o=null!=(t=e.previousNode.children)?t:[],l=null!=(n=e.nextNode.children)?n:[];if(S(o,l))return;let i=o.map(g),d=l.map(g),u=h(e.source,e.previousNode,e.parentSourcePath,e.sourceRoot);if(null===u)return;let c="at-observed-cursor"===u.kind?u:v(e.source,e.parentSourcePath,e.sourceRoot,{tagName:e.previousNode.tagName,dataName:e.previousNode.dataName}),p=new Map(o.map((e,t)=>[i[t],{node:e,index:t}])),f=new Map(l.map((e,t)=>[d[t],{node:e,index:t}])),m=(e,t)=>{if(void 0===t.sourcePath)return -1;let n=e.findIndex(e=>e===t||void 0!==e.id&&void 0!==t.id&&e.id===t.id);return n<0?-1:e.slice(0,n).filter(e=>e.sourcePath===t.sourcePath).length},N=(e,t)=>e.filter(e=>e.sourcePath===t).length,P=(e,t,n)=>{var r;let o=null==(r=p.get(n))?void 0:r.node;if((null==o?void 0:o.sourcePath)===void 0||void 0===o.sourceInstanceKey)return;let l=e=>e.filter(e=>{var t;return(null==(t=p.get(e))?void 0:t.node.sourcePath)===o.sourcePath}),i=l(e),a=l(t);if(i.length<2||i.length!==a.length)return;let d=i.indexOf(n),u=a.indexOf(n);if(!(d<0)&&!(u<0))return{sourceInstanceKey:o.sourceInstanceKey,fromInstanceIndex:d,toInstanceIndex:u,expectedInstanceCount:i.length}},x=function(e){var t,n,r,o;let l=null!=(t=e.previousNode.children)?t:[],i=null!=(n=e.nextNode.children)?n:[],a=l.map(g),d=i.map(g),u=v(e.source,e.parentSourcePath,e.sourceRoot);if(null===u)return null;let c=l.length-i.length+1;if(c>=1&&i.length>0){let t=0;for(;t<i.length&&d[t]===a[t];)t+=1;let n=i[t],o=null!=(r=null==n?void 0:n.children)?r:[],s=void 0!==n&&!a.includes(d[t]),p=o.length===c&&o.every((e,n)=>g(e,n)===g(l[t+n],t+n)),v=i.slice(t+1).every((e,n)=>g(e,t+1+n)===g(l[t+c+n],t+c+n));if(s&&p&&v){let r=l.slice(t,t+c).map((n,r)=>h(e.source,n,"".concat(e.parentSourcePath,".").concat(t+r),e.sourceRoot)),o=[];for(let e of r){if(null===e)break;o.push(e)}if(o.length===r.length)return{type:"wrap-siblings",target:{anchor:u},siblings:o,wrapper:b(n)}}}for(let t=0;t<l.length;t+=1){let n=l[t],r=null!=(o=n.children)?o:[];if(0===r.length||i.length!==l.length-1+r.length)continue;let a=l.slice(0,t).every((e,t)=>g(e,t)===g(i[t],t)),d=r.every((e,n)=>g(e,n)===g(i[t+n],t+n)),c=l.slice(t+1).every((e,n)=>
1g(e,t+1+n)===g(i[t+r.length+n],t+r.length+n));if(!a||!d||!c)continue;let s=h(e.source,n,"".concat(e.parentSourcePath,".").concat(t),e.sourceRoot);if(null===s)break;return{type:"unwrap-node",target:{anchor:s},parent:u}}return null}(e);if(null!==x)return e.operations.push(x);let R=t=>{var n;let r=f.get(t);if(void 0===r)return null;let i=l.slice(r.index+1).find((e,t)=>p.has(g(e,r.index+1+t))),a=void 0===i?null:h(e.source,i,"".concat(e.parentSourcePath,".").concat(o.indexOf(i)),e.sourceRoot);if(void 0!==i&&null===a)return null;let d=r.node.sourcePath,c=r.node.sourceInstanceKey,s=y({source:e.source,parentSourcePath:e.parentSourcePath,node:r.node,...void 0===e.sourceRoot?{}:{sourceRoot:e.sourceRoot}});if("ambiguous"===s||"mapped"===s&&void 0===c)return null;let v="mapped"===s&&void 0!==c,m=void 0===d?void 0:null!=(n=o.find(e=>e.sourcePath===d&&e.sourceInstanceKey===c))?n:o.find(e=>e.sourcePath===d),b=v||void 0===m||void 0===d?null:h(e.source,m,d,e.sourceRoot);if(!v&&void 0!==m&&null===b)return null;let N=v?{kind:"duplicate-repeated-instance",sourceInstanceKey:c}:null===b?(()=>{let e=function e(t){var n,r,o,l,i;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(a>8||void 0!==t.component||void 0!==t.conditional||void 0!==t.repeater||void 0!==t.liveBindings)return null;let d=[];for(let n of null!=(i=t.children)?i:[]){let t=e(n,a+1);if(null===t)return null;d.push(t)}let u="absolute"===t.layoutPositioning,c=!u&&((null==(n=t.sizing)?void 0:n.widthMode)==="hug"||(null==(r=t.sizing)?void 0:r.widthMode)==="fill"),s=!u&&((null==(o=t.sizing)?void 0:o.heightMode)==="hug"||(null==(l=t.sizing)?void 0:l.heightMode)==="fill"),p=u?Array.isArray(t.position)?{x:t.position[0],y:t.position[1]}:t.position:void 0;return{type:t.type,name:t.name,...void 0===t.width||c?{}:{width:t.width},...void 0===t.height||s?{}:{height:t.height},...void 0===p?{}:{position:p},...void 0===t.absoluteRenderPosition?{}:{absoluteRenderPosition:t.absoluteRenderPosition},...void 0===t.layoutPositioning?{}:{layoutPositioning:t.layoutPositioning},...void 0===t.text?{}:{text:t.text},...void 0===t.textSegments?{}:{textSegments:t.textSegments.map(e=>{let t=w(e.style);return{text:e.text,...void 0===t?{}:{style:t}}})},...void 0===t.textAutoResize?{}:{textAutoResize:t.textAutoResize},...void 0===t.sizing?{}:{sizing:{...void 0===t.sizing.widthMode?{}:{widthMode:t.sizing.widthMode},...void 0===t.sizing.heightMode?{}:{heightMode:t.sizing.heightMode},...void 0===t.sizing.flexGrow?{}:{flexGrow:t.sizing.flexGrow},...void 0===t.sizing.flexShrink?{}:{flexShrink:t.sizing.flexShrink},...void 0===t.sizing.minWidth?{}:{minWidth:t.sizing.minWidth},...void 0===t.sizing.maxWidth?{}:{maxWidth:t.sizing.maxWidth},...void 0===t.sizing.minHeight?{}:{minHeight:t.sizing.minHeight},...void 0===t.sizing.maxHeight?{}:{maxHeight:t.sizing.maxHeight}}},...void 0===t.spacing?{}:{spacing:{...void 0===t.spacing.marginTop?{}:{marginTop:t.spacing.marginTop},...void 0===t.spacing.marginRight?{}:{marginRight:t.spacing.marginRight},...void 0===t.spacing.marginBottom?{}:{marginBottom:t.spacing.marginBottom},...void 0===t.spacing.marginLeft?{}:{marginLeft:t.spacing.marginLeft}}},...void 0===t.style?{}:{style:function(e){if(void 0===e)return;let t=e.layout,n=I(e.fills),r=I(e.strokes),o=w(e.textStyle);return{...void 0===n?{}:{fills:n},...void 0===r?{}:{strokes:r},...void 0===e.strokeWeight?{}:{strokeWeight:e.strokeWeight},...void 0===e.strokeWeights?{}:{strokeWeights:e.strokeWeights},...void 0===e.strokeSides?{}:{strokeSides:e.strokeSides},...void 0===e.strokeDashes?{}:{strokeDashes:e.strokeDashes},...void 0===e.borderRadius?{}:{borderRadius:e.borderRadius},...void 0===e.cornerRadii?{}:{cornerRadii:e.cornerRadii},...void 0===e.opacity?{}:{opacity:e.opacity},...void 0===e.visible?{}:{visible:e.visible},...void 0===e.shadowMode?{}:{shadowMode:e.shadowMode},...void 0===e.boxShadow?{}:{boxShadow:e.boxShadow},...void 0===e.overflow?{}:{overflow:e.overflow},...void 0===t?{}:{layout:{...void 0===t.mode?{}:{mode:t.mode},...void 0===t.direction?{}:{direction:t.direction},...void 0===t.wrap?{}:{wrap:t.wrap},...void 0===t.spacing?{}:{spacing:t.spacing},...void 0===t.columnGap?{}:{columnGap:t.columnGap},...void 0===t.rowGap?{}:{rowGap:t.rowGap},...void 0===t.gridColumns?{}:{gridColumns:t.gridColumns},...void 0===t.gridRows?{}:{gridRows:t.gridRows},...void 0===t.justifyContent?{}:{justifyContent:t.justifyContent},...void 0===t.alignItems?{}:{alignItems:t.alignItems},...void 0===t.padding?{}:{padding:t.padding}}},...void 0===o?{}:{textStyle:o}}}(t.style)},...0===d.length?{}:{children:d},...void 0===t.rotation?{}:{rotation:t.rotation},...void 0===t.imageUrl?{}:{imageUrl:t.imageUrl},...void 0===t.imageScaleMode?{}:{imageScaleMode:t.imageScaleMode},...void 0===t.linkUrl?{}:{linkUrl:t.linkUrl}}}(r.node);return null===e?null:{kind:"authored-node",node:e}})():{kind:"duplicate",source:b};return null===N?null:{type:"insert-node",target:{anchor:u},parent:u,...null===a?{}:{before:a},insertion:N}},k=d.filter(e=>!p.has(e));if(k.length>0){if(k.length>1&&!S(d.filter(e=>p.has(e)),i))return;let t=[];for(let e of k){let n=R(e);if(null===n)return;t.push(n)}e.operations.push(...t);return}for(let t of[...i].reverse()){if(f.has(t))continue;let n=p.get(t);if(void 0===n)continue;let l=null!=(r=n.node.sourcePath)?r:"".concat(e.parentSourcePath,".").concat(n.index),i=h(e.source,n.node,l,e.sourceRoot);if(null!==i){let t=N(o,l);e.operations.push({type:"delete-node",target:{anchor:i},...void 0===n.node.sourceInstanceKey||t<2?{}:{repeatedInstance:{sourceInstanceKey:n.node.sourceInstanceKey,instanceIndex:m(o,n.node),expectedInstanceCount:t}}})}}let C=i.filter(e=>f.has(e));if(C.length!==d.length||C.every((e,t)=>e===d[t]))return;let F=function(e,t){if(e.length!==t.length||new Set(e).size!==e.length||new Set(t).size!==t.length||e.some(e=>!t.includes(e)))return null;for(let n=0;n<e.length;n+=1){let r=e[n],o=t.indexOf(r);if(o===n)continue;let l=e.filter(e=>e!==r);if(l.splice(o,0,r),l.every((e,n)=>e===t[n]))return r}return null}(C,d);if(null!==F){let t=p.get(F),n=d.indexOf(F),r=d[n+1],o=0===n?void 0:d[n-1],l=void 0===r?void 0:p.get(r),i=void 0===o?void 0:p.get(o);if(void 0===t)return;let f=P(C,d,F),m=t=>{var n;let r="".concat(e.parentSourcePath,".").concat(t.index),o=h(e.source,t.node,r,e.sourceRoot,void 0===f?null!=c?c:u:void 0);if(null!==o||void 0===f)return o;if("mapped"!==y({source:e.source,parentSourcePath:e.parentSourcePath,node:t.node,sourceRoot:e.sourceRoot}))return null;let l=s(e.source,e.sourceRoot),i=(0,a.Qo)(l,e.parentSourcePath);if("number"!=typeof(null==i?void 0:i.start)||"number"!=typeof i.end)return null;let d=null!=(n=t.node.sourcePath)?n:r,p=(0,a.JE)(l,d);return 0!==p.length&&p.every(e=>"number"==typeof e.start&&"number"==typeof e.end&&e.start>=i.start&&e.end<=i.end)?v(e.source,d,e.sourceRoot):null},g=m(t),I=void 0===l?null:m(l),w=void 0===i?null:m(i);if(null===g||void 0!==l&&null===I||void 0!==i&&null===w)return;e.operations.push({type:"reorder-node",target:{anchor:g},parent:u,...null===I?{}:{before:I},...null===w?{}:{after:w},...void 0===f?{}:{repeatedInstance:f}});return}let A=[...C];for(let t=0;t<d.length;t+=1){let n=d[t];if(A[t]===n)continue;let r=A.indexOf(n);if(r<0)return;let o=p.get(n),l=A[t],i=0===t?void 0:A[t-1];if(void 0===o)return;let a=[...A];a.splice(r,1),a.splice(t,0,n);let s=P(A,a,n),v=void 0===s?null!=c?c:u:void 0,f=h(e.source,o.node,"".concat(e.parentSourcePath,".").concat(o.index),e.sourceRoot,v),m=void 0===l?void 0:p.get(l),g=void 0===i?void 0:p.get(i),y=void 0===m?null:h(e.source,m.node,"".concat(e.parentSourcePath,".").concat(m.index),e.sourceRoot,v),I=void 0===g?null:h(e.source,g.node,"".concat(e.parentSourcePath,".").concat(g.index),e.sourceRoot,v);if(null===f||void 0!==m&&null===y)return;e.operations.push({type:"reorder-node",target:{anchor:f},parent:u,...null===y?{}:{before:y},...null===I?{}:{after:I},...void 0===s?{}:{repeatedInstance:s}}),A.splice(0,A.length,...a)}}({source:e.source,parentSourcePath:e.sourcePath,previousNode:e.previousNode,nextNode:e.nextNode,operations:E,...void 0===e.sourceRoot?{}
1:{sourceRoot:e.sourceRoot}}),E}r()}catch(e){r(e)}})},75725:(e,t,n)=>{n.d(t,{Jf:()=>i,TB:()=>l,pD:()=>a});var r=n(82772);let o="canvas-yjs-overwrite";function l(e){return e?{sourceHash:function(e){let t=0;for(let n=0;n<e.length;n+=1)t=31*t+e.charCodeAt(n)>>>0;return t.toString(16)}(e),sourceLength:e.length,tokens:function(e){let t=e.match(/#[0-9a-fA-F]{3,8}\b|rgba?\([^)]*\)|hsla?\([^)]*\)|(?:bg|text|border|fill|stroke|from|via|to)-\[[^\]]+\]|(?:bg|text|border|fill|stroke|from|via|to)-[a-z0-9-]+/g);return[...new Set(null!=t?t:[])].slice(0,16)}(e)}:null}function i(e){var t,n,r,o,l,i,a,d;return e?{id:null!=(t=e.id)?t:null,type:null!=(n=e.type)?n:null,name:null!=(r=e.name)?r:null,width:null!=(o=e.width)?o:null,height:null!=(l=e.height)?l:null,sizing:null!=(i=e.sizing)?i:null,sourcePath:null!=(a=e.sourcePath)?a:null,sourceInstanceKey:null!=(d=e.sourceInstanceKey)?d:null}:null}function a(e,t,n){try{if("1"!==window.sessionStorage.getItem("canvas-yjs-overwrite-debug"))return}catch(e){return}(0,r.Fr)("".concat(o,":").concat(t),{tag:o,event:t,...n})}},76193:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{EA:()=>C,KF:()=>N,N7:()=>M,U_:()=>P,_2:()=>S,dr:()=>A,kk:()=>b,s2:()=>k,sS:()=>F,wq:()=>x});var o=n(33088),l=n(40259),i=n(49221),a=n(91117),d=n(62766),u=n(63059),c=n(74855),s=n(67829),p=n(56893),v=n(87854),f=n(46375),m=n(71833),h=n(95324),g=e([h]);h=(g.then?(await g)():g)[0];let E=(0,o.Tz)(),L=new Map,O=new Map,B=new Map,q=new Map,j=/^[a-z][a-z0-9._-]{0,63}:(?:fnv1a32:[a-f0-9]{8}|sha256:[a-f0-9]{64})$/u,W=new WeakMap;function y(e,t,n){return e.abandonExpectedAction({workspaceId:t.workspaceId,campaignId:t.campaignId,campaignToken:t.campaignToken,actionToken:t.actionToken,childWindowId:t.childWindowId,terminalReason:n})}function I(e,t,n){var r;return null!=(r=null==e?void 0:e.abandonExpectedAction({workspaceId:t.workspaceId,campaignId:t.campaignId,campaignToken:t.campaignToken,actionToken:t.actionToken,childWindowId:t.childWindowId,terminalReason:n}))?r:null}function w(e,t){var n;return!Number.isSafeInteger(t)||t<=0?null:null!=(n=e.dictionary[t])?n:null}function b(e){var t,n,r,o,l;if(null===e.workspaceId)return null;let i=null!=(t=e.entrySurface)?t:"properties-panel",d=O.get(e.workspaceId),u=E.get(e.workspaceId);if(void 0===d||void 0===u)return null;let s=c.Rz.get(e.propertyId);if(null===s||!s.descriptor.entrySurfaces.includes(i))return null;let p=d.matchExpectedAction({workspaceId:e.workspaceId,semanticActionId:"canvas.property.".concat(e.propertyId),entrySurface:i,target:e.target,authoredNodePath:e.authoredNodePath});if(!p.matched)return null;let v=p.declaration,f=v.target;if(null===f)return null;let m=(0,a.CV)(e.workspaceId,{windowId:v.childWindowId,propertyId:e.propertyId,target:{frameId:f.frameId,nodePath:null!=(n=f.nodePath)?n:e.target.nodePath},expectedFingerprints:[v.canonicalInputFingerprint]});if(!m.supported)return y(d,v,"property-contract-unsupported"),null;let h=[...new Set([...v.expectedIdentityIds,...m.expectedIdentityIds,"".concat(f.frameId,":").concat(null!=(o=null!=(r=f.nodeId)?r:f.nodePath)?o:e.target.nodePath)])];if(!u.beginFiniteEventTrace(v.childWindowId,v.expectedFrameIds,h,{allowTrustedProducerRuntimeIdentities:!0}))return(0,a.hy)(e.workspaceId,v.childWindowId),y(d,v,"child-trace-open-failed"),null;if(!d.beginExpectedAction(v).accepted)return u.cancelFiniteEventTrace(v.childWindowId),(0,a.hy)(e.workspaceId,v.childWindowId),y(d,v,"campaign-begin-rejected"),null;let g={workspaceId:e.workspaceId,campaignId:v.campaignId,campaignToken:v.campaignToken,actionToken:v.actionToken,childWindowId:v.childWindowId,propertyId:e.propertyId,entrySurface:i,targetIdentity:(0,a.B8)({frameId:f.frameId,nodePath:null!=(l=f.nodePath)?l:e.target.nodePath}),lifecycleActionId:m.contextSeed.historyEntryId,canonicalInputFingerprint:v.canonicalInputFingerprint},I=Object.freeze({});return W.set(I,g),I}function N(e,t){let n=W.get(e);if(void 0===n)return null;W.delete(e);let r=E.get(n.workspaceId);return null==r||r.cancelFiniteEventTrace(n.childWindowId),(0,a.hy)(n.workspaceId,n.childWindowId),I(O.get(n.workspaceId),n,t)}function P(e,t){var n;let r=W.get(e);if(void 0===r)return{completed:!1,reason:"trace-unavailable",campaign:null,report:null};W.delete(e);let l=E.get(r.workspaceId),i=O.get(r.workspaceId);if(void 0===l||void 0===i){let e=I(i,r,"child-trace-controller-unavailable");return{completed:!1,reason:"trace-unavailable",campaign:e,report:null}}let d=l.finishFiniteEventTrace(r.childWindowId);if((0,a.hy)(r.workspaceId,r.childWindowId),null===d){let e=I(i,r,"child-trace-finish-failed");return{completed:!1,reason:"trace-unavailable",campaign:e,report:null}}let u=d.events.filter(e=>{var t,n;return e.kind===o.sO.propertyLifecycle&&w(d,e.id)===r.targetIdentity&&w(d,null!=(t=e.values[o.cy.action])?t:0)===r.lifecycleActionId&&w(d,null!=(n=e.values[o.cy.property])?n:0)===r.propertyId}),c=d.events.filter(e=>{var t,n;return e.kind===o.sO.runtimeSettlement&&w(d,e.id)===r.targetIdentity&&w(d,null!=(t=e.values[o.cy.action])?t:0)===r.lifecycleActionId&&w(d,null!=(n=e.values[o.cy.property])?n:0)===r.propertyId}),s=u.some(e=>(e.flags&o.ER.terminal)!=0),p=u.some(e=>(e.flags&o.ER.commitAccepted)!=0),v=u.find(e=>(e.flags&o.ER.previewApplied)!=0),f=u.find(e=>(e.flags&o.ER.commitAccepted)!=0),m=c.at(-1),h=void 0!==v&&void 0!==f&&void 0!==m&&v.sequence<f.sequence&&f.sequence<m.sequence,g=u.filter(e=>(e.flags&o.ER.previewApplied)!=0).map(e=>{var t;return w(d,null!=(t=e.values[o.cy.semanticFingerprint])?t:0)}).at(-1),y="complete"===t?s&&p&&h:s&&!p,b={traceIncomplete:d.traceIncomplete,eventKinds:d.events.map(e=>
1e.kind),propertyReceiptCount:u.length,runtimeReceiptCount:c.length};if(d.traceIncomplete){let e=i.abandonExpectedAction({...r,terminalReason:"trace-incomplete"});return{completed:!1,reason:"trace-incomplete",campaign:e,report:b}}if(!y){let e=I(i,r,"terminal-receipts-missing");return{completed:!1,reason:"terminal-receipts-missing",campaign:e,report:b}}if("complete"===t&&g!==r.canonicalInputFingerprint){let e=i.abandonExpectedAction({...r,terminalReason:"canonical-input-mismatch"});return{completed:!1,reason:"canonical-input-mismatch",campaign:e,report:b}}let N=new TextEncoder().encode(JSON.stringify(d)).byteLength,P=i.completeAction({...r,resultId:r.childWindowId,byteLength:N,identityKeys:d.dictionary.slice(1),outcome:t});if(!P.accepted){let e=I(i,r,"completion-rejected");return{completed:!1,reason:"campaign-rejected",campaign:null!=e?e:P,report:b}}let S=null!=(n=q.get(r.workspaceId))?n:new Map;return S.set(r.childWindowId,{campaignId:r.campaignId,campaignToken:r.campaignToken,authority:r,report:d}),q.set(r.workspaceId,S),{completed:!0,reason:null,campaign:P,report:b}}function S(){return L.size>0}function x(){return 1===L.size}function R(e,t){let n=(0,l._w)(e.workspaceId,t);return null!==n&&n.windowId===t&&e.publishRenderContract(n),n}function k(e){if(1!==L.size)return null;let t=L.values().next().value;if(void 0===t)return null;let n=(0,l.dn)(t.workspaceId);if(null!==n){let t="root-resize"===e.actionId||"root-property-edit"===e.actionId||"structural-edit"===e.actionId||"history-undo"===e.actionId||"history-redo"===e.actionId,r=t?e.targetFrameId:null,o=t?e.property:"canvas-pan"===e.actionId?"camera-pan":"camera-zoom";return n.actionId===e.actionId&&n.targetFrameId===r&&n.property===o?{workspaceId:n.workspaceId,windowId:n.windowId,ownsLifecycle:!1}:null}let r=(0,l.At)(t.workspaceId,e);return r.supported?{workspaceId:t.workspaceId,windowId:r.windowId,ownsLifecycle:!0}:null}function C(e){if(!e.ownsLifecycle)return null;let t=L.get(e.workspaceId);return void 0===t?null:R(t,e.windowId)}function F(e,t){let n=L.get(e.workspaceId);if(void 0===n)return!1;let r=(0,l.dn)(e.workspaceId);if(!("preview"===t&&(null==r?void 0:r.windowId)===e.windowId&&"start"===r.phase?(0,l.Kn)(e.workspaceId,e.windowId):(0,l.ER)(e.workspaceId,e.windowId,t)))return!1;let o=z(t);return null!==o&&n.setFiniteEventTracePhase(e.windowId,o),!0}function A(e){e.ownsLifecycle&&L.has(e.workspaceId)&&(0,l.hS)(e.workspaceId)}function T(e,t){return{ok:!1,code:e,registryOwned:!0,error:t}}let K={getVersion:()=>o.zN,getWorkspaceIds:()=>[...L.keys()],getReactRenderDiagnostics:()=>(0,m.n2)(),clearReactRenderDiagnosticsHistory:()=>((0,m.QT)(),(0,m.n2)()),setReactRenderHighlightsArmed:e=>((0,m.pX)(e),(0,m.n2)()),get(e){let t=E.require(e),n=function(e){let t=O.get(e);if(void 0!==t)return t;let n=(0,v.t)(e);return O.set(e,n),n}(e);return{getSummary:()=>t.getCurrentSummary(),clearHistory:()=>t.clearHistory(),getLatestRenderContract:()=>t.getSnapshot().latestRenderContract,getActiveRenderContract:()=>(0,l.dn)(e),getStructuralActionPreflight:()=>t.getStructuralActionPreflight(),getHistoryActionPreflight:()=>t.getHistoryActionPreflight(),dispatchHistoryAction:e=>t.dispatchHistoryAction(e),getSelectionDiagnosticState:()=>{var e,n;return null!=(n=null==(e=t.getSelectionDiagnosticState)?void 0:e.call(t))?n:null},resolveSelectionDiagnosticTarget:e=>{var n,r;return null!=(r=null==(n=t.resolveSelectionDiagnosticTarget)?void 0:n.call(t,e))?r:{supp
1orted:!1,reason:"invalid-target"}},sampleRenderedGeometry:e=>t.sampleRenderedGeometry(e),dispatchSelectionDiagnosticAction:e=>{var n,r;return null!=(r=null==(n=t.dispatchSelectionDiagnosticAction)?void 0:n.call(t,e))?r:{supported:!1,dispatchPath:"product-selection-action",reason:"product-action-unavailable"}},getClipboardCopyReceipt:()=>t.getClipboardCopyReceipt(),getClipboardNestedPasteReceipt:()=>t.getClipboardNestedPasteReceipt(),getNestedDuplicateReceipt:()=>t.getNestedDuplicateReceipt(),getClipboardRootPasteReceipt:()=>t.getClipboardRootPasteReceipt(),getFrameSnapshot:e=>t.getFrameSnapshot(e),injectClipboardRootPasteScenarioFault:()=>(0,f.S$)(window.location.hostname)&&(0,f.L9)(e),prepareNestedFrameInsert:()=>t.prepareNestedFrameInsert(),prepareRootFrameDraw:e=>t.prepareRootFrameDraw(e),readPreparedRootFrameDrawPreview:e=>t.readPreparedRootFrameDrawPreview(e),completePreparedRootFrameDraw:e=>t.completePreparedRootFrameDraw(e),prepareRootFrameDelete:e=>t.prepareRootFrameDelete(e),completePreparedRootFrameDelete:e=>t.completePreparedRootFrameDelete(e),prepareLayerMove:e=>t.prepareLayerMove(e),dispatchPreparedStructuralAction:e=>t.dispatchPreparedStructuralAction(e),getPropertyDiagnosticDescriptor:e=>{let t=c.Rz.get(e);return null===t?null:{descriptor:t.descriptor,capability:t.adapter.capability,affectedPropertyPaths:t.adapter.affectedPropertyPaths,affectedDocumentScopes:t.adapter.affectedDocumentScopes,affectedRenderScopes:t.adapter.affectedRenderScopes,driver:null===t.adapter.driver?null:{controlTestId:t.adapter.driver.controlTestId,dispatchPath:t.adapter.driver.dispatchPath}}},resolvePropertyDiagnosticDriver:e=>(function(e){let t=c.Rz.get(e.propertyId);if(null===t||null===t.adapter.driver)return T("unregistered-property-driver","The product property driver registry does not expose ".concat(e.propertyId,"."));let n=t.adapter.parseInput(e.input),r=n.ok?t.adapter.driver.formatControlInput(e.input):null;if(!n.ok||null===r)return T("invalid-property-input",n.ok?"The ".concat(e.propertyId," control cannot format this input."):n.reason);let o=Array.from(document.querySelectorAll("[data-selected='true'][data-layer-path]")),l=o.find(t=>t.dataset.layerPath==="".concat(e.frameId,":").concat(e.nodePath));if(1!==o.length||void 0===l)return T("property-target-not-selected","The exact frame and authored node path must be the single selected layer.");let i=document.querySelectorAll('[data-testid="'.concat(t.adapter.driver.controlTestId,'"]')),a=Array.from(i).find(t=>!t.disabled&&t.dataset.frameId===e.frameId&&t.dataset.nodePath===e.nodePath&&t.getBoundingClientRect().width>0&&t.getBoundingClientRect().height>0);return void 0===a?T("property-control-unavailable","The registry-owned Properties control is not visible for the exact selected target."):{ok:!0,propertyId:e.propertyId,frameId:e.frameId,nodePath:e.nodePath,testId:t.adapter.driver.controlTestId,dispatchPath:t.adapter.driver.dispatchPath,controlInput:r,canonicalInputFingerprint:n.fingerprint,currentControlValue:a.value,descriptor:{descriptor:t.descriptor,capability:t.adapter.capability,affectedPropertyPaths:t.adapter.affectedPropertyPaths,affectedDocumentScopes:t.adapter.affectedDocumentScopes,affectedRenderScopes:t.adapter.affectedRenderScopes}}})(e),resolvePropertyDiagnosticInput:e=>(function(e){let t=c.Rz.get(e.propertyId);if(null===t)return{ok:!1,code:"unsupported-property",registryOwned:!0,error:"The product property registry does not expose ".concat(e.propertyId,".")};let n=t.adapter.parseInput(e.input);return n.ok?{ok:!0,propertyId:e.propertyId,canonicalInputFingerprint:n.fingerprint,descriptor:{descriptor:t.descriptor,capability:t.adapter.capability,affectedPropertyPaths:t.adapter.affectedPropertyPaths,affectedDocumentScopes:t.adapter.affectedDocumentScopes,affectedRenderScopes:t.adapter.affectedRenderScopes}}:{ok:!1,code:"invalid-property-input",registryOwned:!0,error:n.reason}})(e),getDiagnosticPacket:e=>{var n;let r=t.getSnapshot();if(null===r.summary)return null;if(void 0===e)return(0,i.uS)(r.summary,void 0,r.latestRenderContract);let o=r.summary.issues.find(t=>
1t.id===e);if(void 0!==o)return(0,i.uS)(r.summary,o,r.latestRenderContract);let l=null==(n=r.latestRenderContract)?void 0:n.issues.find(t=>t.id===e);return void 0===l||null===r.latestRenderContract?null:(0,i.uS)(r.summary,void 0,{...r.latestRenderContract,components:[l.component],issues:[l]})},beginRenderContract:t=>(0,l.At)(e,t),setRenderContractPhase:(n,r)=>{let o=(0,l.dn)(e);if(!("preview"===r&&(null==o?void 0:o.windowId)===n&&"start"===o.phase?(0,l.Kn)(e,n):(0,l.ER)(e,n,r)))return!1;let i=z(r);return null!==i&&t.setFiniteEventTracePhase(n,i),!0},finishRenderContract:e=>R(t,e),cancelRenderContract:t=>{let n=(0,l.dn)(e);return(null==n?void 0:n.windowId)===t&&((0,l.hS)(e),!0)},preparePropertyLifecycleTrace:t=>(0,a.pL)(e,t),prepareStructuralLifecycleTrace:n=>{var r;let o=document.querySelector('iframe[data-testid="canvas-live-frame"][data-frame-id="'.concat(CSS.escape(n.frameId),'"]'));return(0,u.d)(e,{...n,frameDocument:null!=(r=null==o?void 0:o.contentDocument)?r:null,structuralIdentityIds:t.getStructuralObservationIdentityIds(n)})},cancelPropertyLifecycleTrace:t=>(0,a.hy)(e,t),prepareHistoryLifecycleTrace:t=>(0,d.s5)(e,t),cancelHistoryLifecycleTrace:t=>(0,d.eF)(e,t),beginFiniteEventTrace:(e,n,r,o)=>t.beginFiniteEventTrace(e,n,r,o),setFiniteEventTracePhase:(e,n)=>t.setFiniteEventTracePhase(e,n),finishFiniteEventTrace:n=>{let r=t.finishFiniteEventTrace(n);return null!==r&&((0,a.hy)(e,n),(0,d.eF)(e,n)),r},cancelFiniteEventTrace:n=>{t.cancelFiniteEventTrace(n),(0,a.hy)(e,n),(0,d.eF)(e,n)},injectRenderContractScenarioFault:t=>(0,l.iM)(e,t),beginEditPerformance:t=>(0,s.SQ)(e,t),finishEditPerformance:t=>(0,s.OQ)(e,t),inspectEditPerformance:t=>(0,s.Re)(e,t),cancelEditPerformance:()=>(0,s.h1)(e),inspectRevisionSettlement:e=>(0,h.kH)(e),bindInvestigationFixture:t=>{let n=(0,p.nv)(t);if(null===n)return null;let r=B.get(e);return void 0!==r&&(r.id!==n.id||r.version!==n.version||r.sourceDigest!==n.sourceDigest||r.targetFrameId!==n.targetFrameId||r.controlFrameId!==n.controlFrameId)?null:(B.set(e,n),n)},getInvestigationCoverage:()=>(0,p.Bu)({workspaceId:e,fixture:B.get(e)}),evaluateInvestigationActionCoverage:t=>(0,p.Yh)((0,p.Bu)({workspaceId:e,fixture:B.get(e)}),t),startCampaign:t=>{let r=n.start(t);return r.accepted&&q.delete(e),r},getCampaignStatus:e=>n.getStatus(e),expectCampaignAction:e=>n.expectAction(e),beginCampaignAction:e=>n.beginExpectedAction(e),completeAndDrainCampaignAction:e=>{let t=n.completeAction({...e,outcome:"complete"});return t.accepted?n.drainResult({workspaceId:e.workspaceId,campaignId:e.campaignId,campaignToken:e.campaignToken,resultId:e.resultId}):t},abandonCampaignAction:e=>n.abandonExpectedAction({...e,terminalReason:"completion-rejected"}),stopCampaign:e=>n.stop(e),drainCampaignResult:t=>{var r,l;let i=null==(r=q.get(e))?void 0:r.get(t.resultId);if(void 0===i||i.campaignId!==t.campaignId||i.campaignToken!==t.campaignToken)return null;let a=n.drainResult(t);if(!a.accepted)return null;null==(l=q.get(e))||l.delete(t.resultId);let d=(0,o.Pv)(i.report);return{resultId:t.resultId,schemaVersion:i.report.schemaVersion,reducerVersion:i.report.reducerVersion,eventCount:i.report.eventCount,traceIncomplete:i.report.traceIncomplete,issues:d.issues.slice(0,25).map(e=>{var t,n;return{id:"".concat(e.code,":").concat((null!=(t=e.targetId)?t:"canvas").slice(0,64),":").concat(null!=(n=e.eventSequence)?n:"none"),code:e.code,category:e.category,severity:e.severity,title:e.title,detail:e.detail.slice(0,2e3),targetId:e.targetId,syntheticFault:!1,evidence:function(e,t,n){let r="property-preview-commit-mismatch"===n.code||"node-membership-preview-commit-mismatch"===n.code,l="property-runtime-settlement-mismatch"===n.code||"node-membership-runtime-settlement-mismatch"===n.code;if(!r&&!l||null===n.eventSequence)return null;let i=t.events.find(e=>e.sequence===n.eventSequence);if(void 0===i||!Number.isFinite(i.atMs))return null;let a=t.events.filter(r=>{var l,i;return r.sequence<=n.eventSequence&&w(t,r.id)===e.targetIdentity&&w(t,null!=(l=r.values[o.cy.action])?l:0)===e.lifecycleActionId&&w(t,null!=(i=r.values[o.cy.property])?i:0)===e.propertyId}),d=a.findLast(e=>e.kind===o.sO.propertyLifecycle&&(e.flags&o.ER.previewApplied)!=0),u=a.findLast(e=>e.kind===o.sO.propertyLifecycle&&(e.flags&o.ER.commitAccepted)!=0),c=a.findLast(e=>e.kind===o.sO.runtimeSettlement),s=l?[d,u,c]:[d,u];if(s.some(e=>void 0===e)||s.some((e,t)=>t>0&&s[t-1].sequence>=e.sequence))return null;let p=s.map(n=>{var r;let l=w(t,null!=(r=n.values[o.cy.semanticFingerprint])?r:0);if(null===l||!j.test(l))return null;let i=n.kind===o.sO.runtimeSettlement?"runtime-projection":(n.flags&o.ER.commitAccepted)!=0?"commit":"preview",a="runtime-projection"===i?"canvas.runtime-settlement":"canvas.property-lifecycle",d="runtime-projection"===i?"canvas.property.runtime-settlement":"canvas.property.preview-commit",u="receipt:".concat(i,":").concat(n.sequence),c="revision:".concat(i,":").concat(n.sequence);
1return{site:{producerId:a,siteId:d,file:"components/canvas/observability/canvas-property-lifecycle-observer.ts",exportName:"startCanvasPropertyLifecycleObservation"},receipt:{receiptId:u,producerId:a,siteId:d,eventKind:"runtime-projection"===i?"property-runtime-settled":"commit"===i?"property-commit-accepted":"property-preview-applied",eventSequence:n.sequence,observedAtMs:n.atMs,actionToken:e.actionToken,actionWindowId:e.childWindowId,revision:{revisionId:c,kind:i,canonicalFingerprint:l}}}});if(p.some(e=>null===e))return null;let v=p.filter(e=>null!==e),f=v.map(e=>{let{receipt:t}=e;return{revisionId:t.revision.revisionId,kind:t.revision.kind,canonicalFingerprint:t.revision.canonicalFingerprint,producerReceiptId:t.receiptId}}),m=[];return f.length>=2&&m.push({fromRevisionId:f[0].revisionId,toRevisionId:f[1].revisionId,relation:"commits-as"}),f.length>=3&&m.push({fromRevisionId:f[1].revisionId,toRevisionId:f[2].revisionId,relation:"settles-as"}),{actionToken:e.actionToken,actionWindowId:e.childWindowId,lifecycleActionId:e.lifecycleActionId,observedAtMs:i.atMs,producerSites:[...new Map(v.map(e=>{let{site:t}=e;return["".concat(t.producerId,":").concat(t.siteId),t]})).values()],producerReceipts:v.map(e=>{let{receipt:t}=e;return t}),revisionGraph:{authority:"executed-producer-receipts",nodes:f,edges:m}}}(i.authority,i.report,e)}}),campaign:a}}}}};function z(e){switch(e){case"start":return null;case"preview":return o.C8.steady;case"commit":return o.C8.commit;case"settle":return o.C8.settle}}function M(e){let t=E.register(e.workspaceId,e);L.set(e.workspaceId,e);try{let e=window.__BLOOM_CANVAS_OBSERVATION__;if(void 0!==e&&e!==K)throw Error("A different canvas observation browser control is already installed");window.__BLOOM_CANVAS_OBSERVATION__=K}catch(n){throw L.delete(e.workspaceId),t.unregister(),n}let n=!0;return()=>{n&&(n=!1,(0,l.hS)(e.workspaceId),(0,s.h1)(e.workspaceId),B.delete(e.workspaceId),q.delete(e.workspaceId),O.delete(e.workspaceId),L.get(e.workspaceId)===e&&L.delete(e.workspaceId),t.unregister(),O.delete(e.workspaceId),E.size>0||window.__BLOOM_CANVAS_OBSERVATION__===K&&delete window.__BLOOM_CANVAS_OBSERVATION__)}}r()}catch(e){r(e)}})},76200:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{R:()=>d,_2:()=>c,b2:()=>s,du:()=>u,n5:()=>i,pb:()=>v,wP:()=>p});var o=n(34871),l=n(89042);function i(e,t){var n,r;(null==e||null==(n=e.activeFrameResizePreview)?void 0:n.frameId)===t&&e.setActiveFrameResizePreview&&e.setActiveFrameResizePreview(null),(null==e||null==(r=e.activeLiveNodeResizePreview)?void 0:r.frameId)===t&&e.setActiveLiveNodeResizePreview&&e.setActiveLiveNodeResizePreview(null)}function a(e,t){var n,r,o,l;return e===t||(null==e?void 0:e.frameId)===t.frameId&&(null==e?void 0:e.path)===t.path&&(null==e?void 0:e.previewId)===t.previewId&&(null==e||null==(n=e.debug)?void 0:n.resizeSessionId)===(null==(r=t.debug)?void 0:r.resizeSessionId)&&(null==e||null==(o=e.debug)?void 0:o.previewIndex)===(null==(l=t.debug)?void 0:l.previewIndex)}function d(e){return e?{sourceHash:function(e){let t=0;for(let n=0;n<e.length;n+=1)t=31*t+e.charCodeAt(n)>>>0;return t.toString(16)}(e),sourceLength:e.length}:null}function u(e){var t,n,r,o,l,i,a;return e?{tagName:e.tagName.toLowerCase(),dataFrameId:null!=(t=e.dataset.frameId)?t:null,dataNodePath:null!=(n=e.dataset.nodePath)?n:null,dataCanvasFrameShellId:null!=(r=e.dataset.canvasFrameShellId)?r:null,dataCanvasLiveFrameId:null!=(o=e.dataset.canvasLiveFrameId)?o:null,dataCanvasLiveRendererId:null!=(l=e.dataset.canvasLiveRendererId)?l:null,dataCanvasRootNodeId:null!=(i=e.dataset.canvasRootNodeId)?i:null,dataCanvasFrameLabel:null!=(a=e.dataset.canvasFrameLabel)?a:null,className:"string"==typeof e.className?e.className:null,style:{left:e.style.left||null,top:e.style.top||null,width:e.style.width||null,height:e.style.height||null,transform:e.style.transform||null}}:null}function c(e){let{getRuntimeState:t,setActiveFrameResizePreview:n}=e,r=null,o=e=>{let r=t();if(null==r?void 0:r.setActiveFrameResizePreview)return void r.setActiveFrameResizePreview(e);null==n||n(e)};return{publish(e){r=e,o(e)},flush(){r&&o(r)},clear(){r=null,o(null)},getLatest:()=>r,scheduleFallbackClear(){var e;let{delayMs:n=1e3,onFallbackClear:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=r;l&&(null==(e=t())?void 0:e.setActiveFrameResizePreview)&&window.setTimeout(()=>{var e,n,r,i,a,d;let u=t();(null==u?void 0:u.setActiveFrameResizePreview)&&(n=null!=(e=u.activeFrameResizePreview)?e:null,n===l||(null==n?void 0:n.frameId)===l.frameId&&(null==n||null==(r=n.debug)?void 0:r.resizeSessionId)===(null==(i=l.debug)?void 0:i.resizeSessionId)&&(null==n||null==(a=n.debug)?void 0:a.previewIndex)===(null==(d=l.debug)?void 0:d.previewIndex))&&(null==o||o(l),u.setActiveFrameResizePreview(null))},n)}}}function s(e){let{getRuntimeState:t,setActiveLiveNodeResizePreview:n}=e,r=null,o=e=>{let r=t();if(null==r?void 0:r.setActiveLiveNodeResizePreview)return void r.setActiveLiveNodeResizePreview(e);null==n||n(e)};return{publish(e){r=e,o(e)},reconcileAppliedScreenRect(e,n,l){var i;let d=t();if(!r||!a(r,e)||(null==d?void 0:d.setActiveLiveNodeResizePreview)!=null&&!a(null!=(i=d.activeLiveNodeResizePreview)?i:null,e))return;let u=r.screenRect;(u.x!==n.x||u.y!==n.y||u.width!==n.width||u.height!==n.height||u.transform!==n.transform||r.label!==l||!0!==r.screenRectIsRendered)&&(r={...r,screenRect:n,screenRectIsRendered:!0,label:l},o(r))},clear(){r=null,o(null)},clearIfCurrent(e){var n;let l=t();return!!a(r,e)&&((null==l?void 0:l.setActiveLiveNodeResizePreview)==null||!!a(null!=(n=l.activeLiveNodeResizePreview)?n:null,e))&&(r=null,o(null),!0)},getLatest:()=>r,scheduleFallbackClear(){var e;let{delayMs:n=1e3,onFallbackClear:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=r;l&&(null==(e=t())?void 0:e.setActiveLiveNodeResizePreview)&&window.setTimeout(()=>{var e;let n=t();(null==n?void 0:n.setActiveLiveNodeResizePreview)&&a(null!=(e=n.activeLiveNodeResizePreview)?e:null,l)&&(null==o||o(l),n.setActiveLiveNodeResizePreview(null))},n)}}}
1function p(e){let{correctedRect:t,frameId:n,initialRotation:r,nodeId:o,previewIndex:l,resizeDebugSessionId:i,rootResizePreview:a}=e;return{frameId:n,nodeId:null!=o?o:null,x:a.frameX,y:a.frameY,width:a.width,height:a.height,...a.renderedSize?{renderedSize:a.renderedSize}:{},rotation:r,screenRect:{x:t.x,y:t.y,width:t.width,height:t.height,transform:"rotate(".concat(r,"deg)")},label:"".concat(a.width," \xd7 ").concat(a.height),debug:{issuedAtMs:"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now(),previewIndex:l,resizeSessionId:i}}}function v(e){var t,n,r,i,a,d,u,c,s,p;let v,{correctedRect:f,frameId:m,getAbsolutePositionFromTopLeft:h,initialRotation:g,nodeId:y,nodePath:I,parentRect:w,previewIndex:b,resizeDebugSessionId:N,resizingNode:P,roundToPixel:S,sourcePath:x,zoom:R,normalizeConstraints:k,direction:C,parentLayoutDirection:F,parentLayoutMode:A}=e,T=Math.max(1,S(f.width/R)),z=Math.max(1,S(f.height/R)),M=(0,o.y0)(C),E=(0,o.XE)(C),L={...M?{width:T}:{},...E?{height:z}:{}},O="grid"===A?null:M&&"row"===F&&((null==P||null==(t=P.sizing)?void 0:t.widthMode)==="fill"||(null==P||null==(n=P.sizing)?void 0:n.widthMode)==null&&(null==P||null==(r=P.sizing)?void 0:r.heightMode)==null&&(null!=(s=null==P||null==(i=P.sizing)?void 0:i.flexGrow)?s:0)>0)?T:E&&"column"===F&&((null==P||null==(a=P.sizing)?void 0:a.heightMode)==="fill"||(null==P||null==(d=P.sizing)?void 0:d.widthMode)==null&&(null==P||null==(u=P.sizing)?void 0:u.heightMode)==null&&(null!=(p=null==P||null==(c=P.sizing)?void 0:c.flexGrow)?p:0)>0)?z:null;if(null!=O&&(L.flex="0 0 ".concat(O,"px"),L.flexBasis=O,L.flexGrow=0,L.flexShrink=0),(null==P?void 0:P.layoutPositioning)==="absolute"&&w){let e=k(P.constraints),t={x:(f.x-w.x)/R,y:(f.y-w.y)/R},n=h(t,{width:w.width/R,height:w.height/R},{width:T,height:z},e);v={..."number"==typeof n.left?{left:S(n.left)}:{},..."number"==typeof n.right?{right:S(n.right)}:{},..."number"==typeof n.top?{top:S(n.top)}:{},..."number"==typeof n.bottom?{bottom:S(n.bottom)}:{}};let r={...P,constraints:e,absoluteRenderPosition:v};for(let[e,t]of(0,l.JJ)(P,r))("left"===e||"right"===e||"top"===e||"bottom"===e||"translate"===e)&&(L[e]=t)}else L.transform=null;return{frameId:m,nodeId:null!=y?y:null,path:I,sourcePath:null!=x?x:null,previewId:"".concat(m,":").concat(I,":").concat(null!=y?y:"node",":").concat(N,":resize"),width:T,height:z,absoluteRenderPosition:v,screenRect:{x:f.x,y:f.y,width:f.width,height:f.height,transform:"rotate(".concat(g,"deg)")},style:L,label:"".concat(T," \xd7 ").concat(z),debug:{issuedAtMs:"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now(),previewIndex:b,resizeSessionId:N}}}r()}catch(e){r(e)}})},85420:(e,t,n)=>{n.d(t,{H2:()=>i,ao:()=>l,sh:()=>o});var r=n(58288);function o(e,t,n,r){return e&&t&&n&&e.frameId===t?e.nodeId&&r?e.nodeId===r?e:null:e.nodePath===n?e:null:null}function l(e){let t=o(e.snapshot,e.frameId,e.nodePath,e.nodeId);return t||(e.frameId&&e.nodePath&&e.node?{frameId:e.frameId,nodePath:e.nodePath,...e.nodeId?{nodeId:e.nodeId}:{},node:(0,r.f$)(e.node)}:e.snapshot)}function i(e){var t,n;let o=null!=(n=null==(t=e.interactionSnapshot)?void 0:t.node)?n:e.currentNode;if(!o)return null;let l=(0,r.f$)(o),i=e.updater((0,r.f$)(l));return{beforeNode:l,afterNode:e.normalize?e.normalize(i):i}}},87603:(e,t,n)=>{n.d(t,{N:()=>r});function r(e,t){let n=[],r=null,o=t=>e.cancelFrame.call(globalThis,t);return{schedule(o){(n.push(o),null===r)&&(r=e.requestFrame.call(globalThis,()=>{if(r=null,0===n.length)return;let e=n;n=[],e.forEach(e=>t(e))}))},flush:()=>
1{if(null!==r&&(o(r),r=null),0===n.length)return;let e=n;n=[],e.forEach(e=>t(e))},cancel(){null!==r&&(o(r),r=null),n=[]}}}},87739:(e,t,n)=>{n.d(t,{CX:()=>o,F:()=>l,R5:()=>i,yn:()=>a});var r=n(42891);let o="__multi-frame-property-preview__";function l(e){return 0===e.resolvedSelections.length?{kind:"none"}:1===e.resolvedSelections.length?{kind:"single",updater:e.updater}:{kind:"multi",updates:e.resolvedSelections.map(t=>({frameId:t.frameId,nodePath:t.nodePath,nodeId:t.nodeId,updater:t=>e.normalizeNode(e.updater(t))}))}}function i(e){let t={},n=null;for(let o of e.updates){var r,l;let i=null!=(r=t[o.frameId])?r:e.getRenderedFrameNodes(o.frameId);if(!i)continue;let a=o.nodeId&&null!=(l=e.getPathByNodeId(i,o.nodeId))?l:o.nodePath,d=o.nodeId?e.updateNodeById(i,o.nodeId,o.updater):e.updateNodeAtPath(i,a,o.updater);if(t[o.frameId]=d,!n){let e=function(e,t){let n=t.split(".").map(e=>Number(e)).filter(e=>Number.isInteger(e));if(0===n.length)return null;let r=e,o=null;for(let e of n){var l;if(!(o=null!=(l=null==r?void 0:r[e])?l:null))return null;r=o.children}return o}(d,a);e&&(n={frameId:o.frameId,previewNode:e})}}return n&&0!==Object.keys(t).length?{frameId:n.frameId,nodePath:o,previewNode:n.previewNode,renderNodesByFrameId:t}:null}function a(e){var t,n;if(!e.preview)return{status:"empty"};let o=(n=e.preview,(0,r.bP)({frameId:n.frameId,nodePath:n.nodePath,previewNode:n.previewNode,renderNodesByFrameId:n.renderNodesByFrameId,strategy:"multi-frame-transient-render-nodes"}));return null==(t=e.setLivePropertyPreview)||t.call(e,o),{status:"published",editPreview:o}}},87854:(e,t,n)=>{n.d(t,{t:()=>C});let r={actionCount:0,byteCount:0,identityCount:0,childWindowCount:0,undrainedResultCount:0};function o(e,t){if(0===e.length||e.trim()!==e||e.length>256)throw Error("".concat(t," must be a non-empty, trimmed string of at most 256 characters"))}function l(e,t){if(!Number.isSafeInteger(e)||e<0)throw Error("Canvas campaign ".concat(t," budget must be a non-negative safe integer"))}function i(e,t){return[...new Set([...e,...function(e){let t=new Set;for(let n of e)o(n,"Canvas campaign identity key"),t.add(n);return[...t].sort()}(t)])].sort()}function a(e){return{accepted:!0,rejection:null,state:e}}function d(e,t){return{accepted:!1,rejection:t,state:e}}function u(e,t,n){return d(e,{code:"budget-exhausted",budget:t,attempted:n,limit:e.budgets[t]})}function c(e,t,n){return n>e.budgets[t]?u(e,t,n):null}function s(e,t){var n,r,s,p;if(t.workspaceId!==e.workspaceId)return d(e,{code:"foreign-workspace"});if(t.campaignId!==e.campaignId)return d(e,{code:"foreign-campaign"});switch(t.type){case"admit-action":{if(o(t.actionToken,"Canvas campaign action token"),o(t.childWindowId,"Canvas campaign child window ID"),e.admittedActionTokens.includes(t.actionToken))return d(e,{code:"duplicate-action-token"});if(e.openedChildWindowIds.includes(t.childWindowId))return d(e,{code:"duplicate-child-window"});let l=i(e.identityKeys,t.identityKeys),u=e.usage.actionCount+1,s=e.usage.childWindowCount+1,p=null!=(r=null!=(n=c(e,"actionCount",u))?n:c(e,"childWindowCount",s))?r:c(e,"identityCount",l.length);if(null!==p)return p;return a({...e,usage:{...e.usage,actionCount:u,identityCount:l.length,childWindowCount:s},identityKeys:l,admittedActionTokens:[...e.admittedActionTokens,t.actionToken],openedChildWindowIds:[...e.openedChildWindowIds,t.childWindowId],activeChildren:[...e.activeChildren,{actionToken:t.actionToken,childWindowId:t.childWindowId}]})}case"complete-action":{if(o(t.actionToken,"Canvas campaign action token"),o(t.childWindowId,"Canvas campaign child window ID"),o(t.resultId,"Canvas campaign result ID"),l(t.byteLength,"byteCount"),!e.activeChildren.some(e=>e.actionToken===t.actionToken&&e.childWindowId===t.childWindowId))return d(e,{code:"foreign-child-window"});if(e.completedResultIds.includes(t.resultId))return d(e,{code:"duplicate-result"});let n=i(e.identityKeys,t.identityKeys),r=e.usage.byteCount+t.byteLength,v=e.usage.undrainedResultCount+1;if(!Number.isSafeInteger(r))return u(e,"byteCount",r);let f=null!=(p=null!=(s=c(e,"byteCount",r))?s:c(e,"identityCount",n.length))?p:c(e,"undrainedResultCount",v);if(null!==f)return f;return a({...e,usage:{...e.usage,byteCount:r,identityCount:n.length,undrainedResultCount:v},identityKeys:n,completedResultIds:[...e.completedResultIds,t.resultId],activeChildren:e.activeChildren.filter(e=>e.actionToken!==t.actionToken||e.childWindowId!==t.childWindowId),undrainedResults:[...e.undrainedResults,{resultId:t.resultId,actionToken:t.actionToken,childWindowId:t.childWindowId,byteLength:t.byteLength}]})}case"drain-result":{o(t.resultId,"Canvas campaign result ID");let n=e.undrainedResults.findIndex(e=>e.resultId===t.resultId);if(n<0)return d(e,{code:"unknown-result"});return a({...e,usage:{...e.usage,undrainedResultCount:e.usage.undrainedResultCount-1},undrainedResults:e.undrainedResults.filter((e,t)=>
1t!==n)})}case"abandon-action":if(o(t.actionToken,"Canvas campaign action token"),o(t.childWindowId,"Canvas campaign child window ID"),!e.activeChildren.some(e=>e.actionToken===t.actionToken&&e.childWindowId===t.childWindowId))return d(e,{code:"foreign-child-window"});return a({...e,activeChildren:e.activeChildren.filter(e=>e.actionToken!==t.actionToken||e.childWindowId!==t.childWindowId)})}}function p(e){return[...new Set(e)].sort()}let v=/^(?:(?:[a-z][a-z0-9-]{0,31}:)?fnv1a32:[a-f0-9]{8}|sha256:[a-f0-9]{64})$/,f=/^[a-f0-9]{64}$/,m=/^[a-z0-9][a-z0-9._:-]{0,127}$/;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256;return e.length>0&&e.length<=t&&e.trim()===e&&/^[\x21-\x7e]+$/.test(e)}function g(e){return m.test(e.id)&&Number.isSafeInteger(e.version)&&e.version>0&&f.test(e.sourceDigest)}function y(e){let t=null===e.target||h(e.target.frameId)&&(null===e.target.nodePath||h(e.target.nodePath))&&(null===e.target.nodeId||h(e.target.nodeId));return h(e.actionToken)&&h(e.childWindowId)&&h(e.semanticActionId)&&(void 0===e.entrySurface||["properties-panel","canvas-chrome","layout-control","shortcut"].includes(e.entrySurface))&&h(e.buildSha,128)&&g(e.fixture)&&v.test(e.canonicalInputFingerprint)&&t&&e.expectedFrameIds.length<=256&&e.expectedIdentityIds.length<=256&&e.expectedFrameIds.every(e=>h(e))&&e.expectedIdentityIds.every(e=>h(e))&&P(e).every(e=>h(e))}function I(e){return{...e,fixture:{...e.fixture},target:null===e.target?null:{...e.target},expectedFrameIds:p(e.expectedFrameIds),expectedIdentityIds:p(e.expectedIdentityIds)}}function w(e,t){return e.id===t.id&&e.version===t.version&&e.sourceDigest===t.sourceDigest}function b(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}function N(e,t){var n,r;return e.workspaceId===t.workspaceId&&e.campaignId===t.campaignId&&e.campaignToken===t.campaignToken&&e.actionToken===t.actionToken&&e.childWindowId===t.childWindowId&&e.semanticActionId===t.semanticActionId&&e.entrySurface===t.entrySurface&&((n=e.target)===(r=t.target)||null!==n&&null!==r&&n.frameId===r.frameId&&n.nodePath===r.nodePath&&n.nodeId===r.nodeId)&&e.canonicalInputFingerprint===t.canonicalInputFingerprint&&b(e.expectedFrameIds,t.expectedFrameIds)&&b(e.expectedIdentityIds,t.expectedIdentityIds)&&e.buildSha===t.buildSha&&w(e.fixture,t.fixture)}function P(e){let t=null===e.target?[]:["frame:".concat(e.target.frameId),...null===e.target.nodePath?[]:["node-path:".concat(e.target.nodePath)],...null===e.target.nodeId?[]:["node-id:".concat(e.target.nodeId)]];return p(["action-token:".concat(e.actionToken),"semantic-action:".concat(e.semanticActionId),...void 0===e.entrySurface?[]:["entry-surface:".concat(e.entrySurface)],"child-window:".concat(e.childWindowId),"build:".concat(e.buildSha),"fixture:".concat(e.fixture.id,":").concat(e.fixture.version,":").concat(e.fixture.sourceDigest),"canonical-input:".concat(e.canonicalInputFingerprint),...t,...e.expectedFrameIds.map(e=>"expected-frame:".concat(e)),...e.expectedIdentityIds])}function S(e,t){e.completedIndex.push(t),e.completedIndex.sort((t,n)=>e.reducer.admittedActionTokens.indexOf(t.actionToken)-e.reducer.admittedActionTokens.indexOf(n.actionToken))}function x(e,t){return{accepted:!0,rejection:null,status:function(e){var t,n;let r=null!=(n=null!=(t=e.expectedAction)?t:e.begunActions[e.begunActions.length-1])?n:null;return{version:1,workspaceId:e.request.workspaceId,campaignId:e.request.campaignId,campaignToken:e.request.campaignToken,lifecycle:e.lifecycle,buildSha:e.request.buildSha,fixture:{...e.request.fixture},budgets:{...e.reducer.budgets},usage:{...e.reducer.usage},expectedAction:null===r?null:{...r,fixture:{...r.fixture},target:null===r.target?null:{...r.target},expectedFrameIds:[...r.expectedFrameIds],expectedIdentityIds:[...r.expectedIdentityIds]},completedIndex:e.completedIndex.map(e=>({...e,target:null===e.target?null:{...e.target}})),undrainedResultIds:e.reducer.undrainedResults.map(e=>e.resultId)}}(e),...void 0===t?{}:{idempotent:t}}}function R(e){return{accepted:!1,rejection:e,status:null}}function k(e,t,n){return n.workspaceId!==e?R({code:"foreign-workspace"}):null===t?R({code:"campaign-not-started"}):n.campaignId!==t.request.campaignId?R({code:"foreign-campaign"}):n.campaignToken!==t.request.campaignToken?R({code:"foreign-campaign-token"}):null}function C(e){let t=null,n=n=>{let r=k(e,t,n);return null!==r?r:(null==t?void 0:t.lifecycle)==="stopped"?R({code:"campaign-stopped"}):null};return{start(n){var i;if(n.workspaceId!==e)return R({code:"foreign-workspace"});if(!(h(n.campaignId)&&h(n.campaignToken)&&h(n.buildSha,128)&&g(n.fixture)))return R({code:"invalid-campaign-request"});if((null==t?void 0:t.lifecycle)==="running")return R({code:"campaign-already-running"});let a=(o((i={campaignId:n.campaignId,workspaceId:e,budgets:n.budgets}).campaignId,"Canvas campaign ID"),l(i.budgets.actionCount,"actionCount"),l(i.budgets.byteCount,"byteCount"),l(i.budgets.identityCount,"identityCount"),l(i.budgets.childWindowCount,"childWindowCount"),l(i.budgets.undrainedResultCount,"undrainedResultCount"),{version:1,
1campaignId:i.campaignId,workspaceId:i.workspaceId,budgets:{...i.budgets},usage:r,identityKeys:[],admittedActionTokens:[],openedChildWindowIds:[],completedResultIds:[],activeChildren:[],undrainedResults:[]});return x(t={request:{...n,fixture:{...n.fixture},budgets:{...n.budgets}},lifecycle:"running",reducer:a,expectedAction:null,begunActions:[],completedIndex:[]})},getStatus(n){let r=k(e,t,n);return null!==r?r:x(t)},expectAction(r){let o=n(r);if(null!==o)return o;if(!y(r))return R({code:"invalid-action-declaration"});let l=t,i=I(r);if(i.buildSha!==l.request.buildSha||!w(i.fixture,l.request.fixture))return R({code:"campaign-context-mismatch"});if(null!==l.expectedAction)return R({code:"active-child-overlap"});let a=s(l.reducer,{type:"admit-action",workspaceId:e,campaignId:l.request.campaignId,actionToken:i.actionToken,childWindowId:i.childWindowId,identityKeys:P(i)});return a.accepted?(l.reducer=a.state,l.expectedAction={...i,phase:"expected"},x(l)):R(a.rejection)},beginExpectedAction(e){let r=n(e);if(null!==r)return r;if(!y(e))return R({code:"invalid-action-declaration"});let o=t,l=I(e);return null===o.expectedAction?void 0===o.begunActions.find(e=>N(e,l))?R({code:"action-not-declared"}):x(o,!0):N(o.expectedAction,l)?(o.begunActions.push({...o.expectedAction,phase:"begun"}),o.expectedAction=null,x(o)):R({code:"action-declaration-mismatch"})},matchExpectedAction(n){if(n.workspaceId!==e||null===t)return{matched:!1,reason:"campaign-not-started"};if("stopped"===t.lifecycle)return{matched:!1,reason:"campaign-stopped"};let r=t.expectedAction;if(null===r||"expected"!==r.phase)return{matched:!1,reason:"action-not-declared"};let o=null!==r.target&&r.target.frameId===n.target.frameId&&r.target.nodeId===n.target.nodeId&&(r.target.nodePath===n.target.nodePath||r.target.nodePath===n.authoredNodePath);if(r.semanticActionId!==n.semanticActionId||void 0!==r.entrySurface&&r.entrySurface!==n.entrySurface||!o)return{matched:!1,reason:"action-declaration-mismatch"};let{phase:l,...i}=r;return{matched:!0,declaration:I(i)}},completeAction(r){let o=n(r);if(null!==o)return o;let l=t,i=l.completedIndex.find(e=>e.actionToken===r.actionToken);if(void 0!==i)return i.childWindowId===r.childWindowId&&i.resultId===r.resultId&&i.byteLength===r.byteLength&&i.outcome===r.outcome?x(l,!0):R(i.resultId===r.resultId?{code:"action-already-completed"}:{code:"result-id-conflict"});let a=l.begunActions.findIndex(e=>e.actionToken===r.actionToken&&e.childWindowId===r.childWindowId);if(a<0)return 0===l.begunActions.length?R({code:"action-not-begun"}):R({code:"action-declaration-mismatch"});let d=s(l.reducer,{type:"complete-action",workspaceId:e,campaignId:l.request.campaignId,actionToken:r.actionToken,childWindowId:r.childWindowId,resultId:r.resultId,byteLength:r.byteLength,identityKeys:r.identityKeys});if(!d.accepted)return R(d.rejection);l.reducer=d.state;let u=l.begunActions[a];return l.begunActions.splice(a,1),S(l,{actionToken:r.actionToken,childWindowId:r.childWindowId,semanticActionId:u.semanticActionId,...void 0===u.entrySurface?{}:{entrySurface:u.entrySurface},target:null===u.target?null:{...u.target},outcome:r.outcome,resultId:r.resultId,byteLength:r.byteLength,terminalReason:"complete"===r.outcome?"observed-terminal-receipt":"observed-cancelled-receipt"}),x(l,!1)},drainResult(n){let r=k(e,t,n);if(null!==r)return r;let o=t,l=s(o.reducer,{type:"drain-result",workspaceId:e,campaignId:o.request.campaignId,resultId:n.resultId});return l.accepted?(o.reducer=l.state,x(o)):R(l.rejection)},abandonExpectedAction(r){var o;let l=n(r);if(null!==l)return l;let i=t,a=(null==(o=i.expectedAction)?void 0:o.actionToken)===r.actionToken&&i.expectedAction.childWindowId===r.childWindowId,d=i.begunActions.findIndex(e=>e.actionToken===r.actionToken&&e.childWindowId===r.childWindowId),u=a?i.expectedAction:d<0?null:i.begunActions[d];if(null===u)return R({code:"action-declaration-mismatch"});let c=s(i.reducer,{type:"abandon-action",workspaceId:e,campaignId:i.request.campaignId,actionToken:u.actionToken,childWindowId:u.childWindowId});return c.accepted?(i.reducer=c.state,S(i,{actionToken:u.actionToken,childWindowId:u.childWindowId,semanticActionId:u.semanticActionId,...void 0===u.entrySurface?{}:{entrySurface:u.entrySurface},target:null===u.target?null:{...u.target},outcome:"incomplete",resultId:null,byteLength:0,terminalReason:r.terminalReason}),a?i.expectedAction=null:i.begunActions.splice(d,1),x(i)):R(c.rejection)},stop(n){let r=k(e,t,n);if(null!==r)return r;let o=t;if("stopped"===o.lifecycle)return x(o);for(let t of[...o.begunActions,...null===o.expectedAction?[]:[o.expectedAction]]){let n=s(o.reducer,{type:"abandon-action",workspaceId:e,campaignId:o.request.campaignId,actionToken:t.actionToken,childWindowId:t.childWindowId});if(!n.accepted)return R(n.rejection);o.reducer=n.state,S(o,{actionToken:t.actionToken,childWindowId:t.childWindowId,semanticActionId:t.semanticActionId,...void 0===t.entrySurface?{}:{entrySurface:t.entrySurface},target:null===t.target?null:{...t.target},outcome:"incomplete",resultId:null,byteLength:0,terminalReason:"begun"===t.phase?"campaign-stopped-before-terminal-receipt":"campaign-stopped-before-product-begin"})}return o.expectedAction=null,o.begunActions=[],o.lifecycle="stopped",x(o)}}}},88482:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{Gi:()=>a,Uc:()=>d,lV:()=>p,mH:()=>s,s8:()=>u,tT:()=>v});var o=n(32582),l=n(88560),i=e([l]);function a(e){var t;let n=(0,l.vH)(e.currentSession,e.context.frameId,e.context.nodePath,e.context.nodeId),r=e.selectedFrameHasLiveSource&&!!e.context.frameId&&(null==(t=e.propertyInteractionTarget)?void 0:t.frameId)===e.context.frameId;return(null==n?void 0:n.hasPreview)?{session:n,liveSourceTargetShouldPersist:r,action:r?"clear-preview-artifacts":"rollback-preview-target"}:{session:n,liveSourceTargetShouldPersist:r,action:r?"clear-preview-artifacts":"clear-interaction-state"}}function d(e){return"clear-preview-artifacts"===e.preparedEnd.action?(e.clearPreviewArtifacts(e.frameId),"clear-preview-artifacts"):"rollback-preview-target"===e.preparedEnd.action&&e.preparedEnd.session?(e.rollbackPreviewTarget(e.preparedEnd.session),"rollback-preview-target"):(e.clearInteractionState(),"clear-interaction-state")}function u(e){var t,n,r;(0,o.fb)({schedulerRef:e.propertyPreviewSchedulerRef}),null==(t=e.clearLivePreviewForFrame)||t.call(e,null!=(r=e.frameId)?r:null),null==(n=e.setLivePropertyPreview)||n.call(e,null),e.propertyInteractionSessionRef.current=null,e.nodeEditInteractionSnapshotRef&&(e.nodeEditInteractionSnapshotRef.current=null),e.clearStructuralRenderNodeEditPreview(e.frameId)}function c(e){var t;e.propertyInteractionTargetRef&&(e.propertyInteractionTargetRef.current=null),null==(t=e.setActivePropertyInteraction)||t.call(e,null)}function s(e){u(e),c(e)}function p(e){e.rollbackPendingPropertyPreview(e.session),c(e)}function v(e){var t,n,r,o;let{submitted:l,current:i}=e;
1return!!i&&i.frameId===e.frameId&&!!l&&(i===l||i.nodePath===l.nodePath&&i.nodePath===e.nodePath&&(null!=(r=null==(t=i.readiness)?void 0:t.previewSessionId)?r:null)===(null!=(o=null==(n=l.readiness)?void 0:n.previewSessionId)?o:null))}l=(i.then?(await i)():i)[0],r()}catch(e){r(e)}})},88560:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{S$:()=>a,mc:()=>d,vH:()=>i});var o=n(58288),l=n(8110);let e=1;function i(e,t,n,r){return e&&t&&n&&e.frameId===t?e.nodeId&&r?e.nodeId===r?e:null:e.nodePath===n?e:null:null}function a(t){let n=i(t.session,t.frameId,t.nodePath,t.nodeId);return n||(t.frameId&&t.nodePath&&t.node?{propertyEditSessionId:function(){let t=e;return e+=1,(0,l.n1)("property-interaction:".concat(t))}(),frameId:t.frameId,nodePath:t.nodePath,...t.nodeId?{nodeId:t.nodeId}:{},beforeNode:(0,o.f$)(t.node),hasPreview:!1}:t.session)}function d(e,t,n,r){let o=i(e,t,n,r);return o?o.hasPreview?o:{...o,hasPreview:!0}:e}r()}catch(e){r(e)}})},88955:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{_o:()=>a});var o=n(23052),l=n(7741),i=n(62533);function a(e,t){var n,r,a,d,u,c,s,p,v,f,m;let h=null==(n=t.liveBindings)?void 0:n.descriptors;if(!h||0===h.length)return t;let g=null!=(f=(0,i.$b)(null==(a=t.style)||null==(r=a.fills)?void 0:r[0]))?f:void 0,y=null!=(m=(0,i.$b)(null==(u=e.style)||null==(d=u.fills)?void 0:d[0]))?m:void 0,I=null==(s=t.style)||null==(c=s.textStyle)?void 0:c.color,w=null==(v=e.style)||null==(p=v.textStyle)?void 0:p.color,b=(0,l.M_)(e,t),N=("TEXT"===t.type||"TEXT_INPUT"===t.type||"BUTTON"===t.type)&&e.text!==t.text,P=!1,S=h.map(e=>{if(!e.dynamic)return e;if("className"===e.source&&e.activeValue&&b.length>0){let t=(0,l.qq)(e.activeValue,b);if(t!==e.activeValue)return P=!0,(0,o.SG)({...e,activeValue:t},t)}if(g!==y&&("backgroundColor"===e.property||"background"===e.property))return P=!0,(0,o.SG)({...e,activeValue:g},g);if(I!==w&&"color"===e.property)return P=!0,(0,o.SG)({...e,activeValue:I},I);if(N&&"text"===e.source){var n,r;return P=!0,(0,o.SG)({...e,activeValue:null!=(n=t.text)?n:void 0},null!=(r=t.text)?r:void 0)}return e});return P?{...t,liveBindings:{...t.liveBindings,descriptors:S}}:t}r()}catch(e){r(e)}})},89038:(e,t,n)=>{n.d(t,{qZ:()=>A,sp:()=>z,pf:()=>T,hb:()=>F});var r=n(89042),o=n(61167),l=n(62533);function i(e,t,n,r,o){return{key:e,classTokens:(e,o)=>{var i,a,d,u,c,s;return(null==(a=e.style)||null==(i=a.layout)?void 0:i[t])===(null==(u=o.style)||null==(d=u.layout)?void 0:d[t])?[]:[{families:[r],token:(0,l.Of)(n,null==(s=o.style)||null==(c=s.layout)?void 0:c[t])}]},styleObject:(e,n,r)=>{var l,i,a,d,u,c;if((null==(i=e.style)||null==(l=i.layout)?void 0:l[t])===(null==(d=n.style)||null==(a=d.layout)?void 0:a[t]))return[];let s=null==(c=n.style)||null==(u=c.layout)?void 0:u[t],p="number"==typeof s?Math.max(0,Math.round(s)):null;return[{property:o,value:null==p?null:"react-native"===r?p:"".concat(p,"px")}]},domWrites:(e,n)=>{var r,l,i,a,d,u;if((null==(l=e.style)||null==(r=l.layout)?void 0:r[t])===(null==(a=n.style)||null==(i=a.layout)?void 0:i[t]))return[];let c=null==(u=n.style)||null==(d=u.layout)?void 0:d[t];return[[o,"number"==typeof c?"".concat(Math.max(0,Math.round(c)),"px"):null]]}}}let a=i("gap","spacing","gap",o.Nj,"gap"),d=i("rowGap","rowGap","gap-y",o.s6,"rowGap"),u=i("columnGap","columnGap","gap-x",o.WS,"columnGap");function c(e,t,n,r){return{key:e,classTokens:(r,o)=>{var l,i,a,d,u,c;if((null==(i=r.style)||null==(l=i.layout)?void 0:l[e])===(null==(d=o.style)||null==(a=d.layout)?void 0:a[e]))return[];let s=null==(c=o.style)||null==(u=c.layout)?void 0:u[e];return[{families:[t],token:"number"==typeof s?"".concat(n,"-").concat(Math.max(1,Math.round(s))):null}]},styleObject:(t,n,o)=>{var l,i,a,d,u,c;if((null==(i=t.style)||null==(l=i.layout)?void 0:l[e])===(null==(d=n.style)||null==(a=d.layout)?void 0:a[e])||"react-native"===o)return[];let s=null==(c=n.style)||null==(u=c.layout)?void 0:u[e];return[{property:r,value:"number"==typeof s?"repeat(".concat(Math.max(1,Math.round(s)),", minmax(0, 1fr))"):null}]},domWrites:(t,n)=>{var o,l,i,a,d,u;if((null==(l=t.style)||null==(o=l.layout)?void 0:o[e])===(null==(a=n.style)||null==(i=a.layout)?void 0:i[e]))return[];let c=null==(u=n.style)||null==(d=u.layout)?void 0:d[e];return[[r,"number"==typeof c?"repeat(".concat(Math.max(1,Math.round(c)),", minmax(0, 1fr))"):null]]}}}let s=c("gridColumns",o.lE,"grid-cols","gridTemplateColumns"),p=c("gridRows",o.jE,"grid-rows","gridTemplateRows");var v=n(72385);let f=["Top","Right","Bottom","Left"],m={m:f,mx:["Left","Right"],my:["Top","Bottom"],mt:["Top"],mr:["Right"],mb:["Bottom"],ml:["Left"]};function h(e,t,n,r){let o=(0,l.te)(r);return null==t||null==o?{families:e,token:t}:{families:e,token:t,redundantGiven:e=>{var t,r,l;return(null==(l=(0,v.pr)(e.filter(e=>!e.includes(":")).join(" ")).style)||null==(r=l.layout)||null==(t=r.padding)?void 0:t[n])===o}}}function g(e,t){var n,r,o,l,i,a;return(null==(n=e.style)?void 0:n.borderRadius)!==(null==(r=t.style)?void 0:r.borderRadius)||JSON.stringify(null!=(i=null==(o=e.style)?void 0:o.cornerRadii)?i:null)!==JSON.stringify(null!=(a=null==(l=t.style)?void 0:l.cornerRadii)?a:null)}function y(e,t){var n,r,o,i;return(0,l.sj)(e)!==(0,l.sj)(t)||JSON.stringify(null!=(o=null==(n=e.style)?void 0:n.strokes)?o:null)!==JSON.stringify(null!=(i=null==(r=t.style)?void 0:r.strokes)?i:null)}function I(e,t){var n,r,o,l,i,a;return(null==(n=e.style)?void 0:n.shadowMode)!==(null==(r=t.style)?void 0:r.shadowMode)||JSON.stringify(null!=(i=null==(o=e.style)?void 0:o.boxSh
1adow)?i:null)!==JSON.stringify(null!=(a=null==(l=t.style)?void 0:l.boxShadow)?a:null)}function w(e,t){var n,r,o,l;return(null==(n=e.style)?void 0:n.blur)!==(null==(r=t.style)?void 0:r.blur)||(null==(o=e.style)?void 0:o.blurVisible)!==(null==(l=t.style)?void 0:l.blurVisible)}function b(e){return{key:e.key,classTokens:(t,n)=>e.read(t)===e.read(n)?[]:[e.classToken(n)],styleObject:(t,n)=>e.read(t)===e.read(n)?[]:[{property:e.objectProperty,value:e.objectValue(n)}],domWrites:(t,n)=>e.read(t)===e.read(n)?[]:[[e.domProperty,e.domValue(n)]]}}let N=b({key:"fontSize",read:e=>{var t,n;return null==(n=e.style)||null==(t=n.textStyle)?void 0:t.fontSize},classToken:e=>{var t,n;return{families:[o.eL],token:(0,l.YC)("text",null==(n=e.style)||null==(t=n.textStyle)?void 0:t.fontSize)}},objectProperty:"fontSize",objectValue:e=>{var t,n,r;return null!=(r=null==(n=e.style)||null==(t=n.textStyle)?void 0:t.fontSize)?r:null},domProperty:"fontSize",domValue:e=>{var t,n;return(0,l.XF)(null==(n=e.style)||null==(t=n.textStyle)?void 0:t.fontSize)}}),P=b({key:"fontWeight",read:e=>{var t,n;return null==(n=e.style)||null==(t=n.textStyle)?void 0:t.fontWeight},classToken:e=>{var t,n;return{families:[o.nB],token:(0,l.JI)(null==(n=e.style)||null==(t=n.textStyle)?void 0:t.fontWeight)}},objectProperty:"fontWeight",objectValue:e=>{var t,n,r;return null!=(r=null==(n=e.style)||null==(t=n.textStyle)?void 0:t.fontWeight)?r:null},domProperty:"fontWeight",domValue:e=>{var t,n;return"number"==typeof(null==(n=e.style)||null==(t=n.textStyle)?void 0:t.fontWeight)?(0,l.qq)(e.style.textStyle.fontWeight):null}}),S=b({key:"lineHeight",read:e=>{var t,n;return null==(n=e.style)||null==(t=n.textStyle)?void 0:t.lineHeight},classToken:e=>{var t,n;return{families:[o.Py],token:(0,l.YC)("leading",null==(n=e.style)||null==(t=n.textStyle)?void 0:t.lineHeight)}},objectProperty:"lineHeight",objectValue:e=>{var t,n;let r=null==(n=e.style)||null==(t=n.textStyle)?void 0:t.lineHeight;return"number"==typeof r||null!=r?r:null},domProperty:"lineHeight",domValue:e=>{var t,n;return(0,l.rN)(null==(n=e.style)||null==(t=n.textStyle)?void 0:t.lineHeight)}}),x=b({key:"letterSpacing",read:e=>{var t,n;return null==(n=e.style)||null==(t=n.textStyle)?void 0:t.letterSpacing},classToken:e=>{var t,n;return{families:[o.Pm],token:(0,l.Lc)("tracking",null==(n=e.style)||null==(t=n.textStyle)?void 0:t.letterSpacing)}},objectProperty:"letterSpacing",objectValue:e=>{var t,n,r;return null!=(r=null==(n=e.style)||null==(t=n.textStyle)?void 0:t.letterSpacing)?r:null},domProperty:"letterSpacing",domValue:e=>{var t,n;return(0,l.XF)(null==(n=e.style)||null==(t=n.textStyle)?void 0:t.letterSpacing)}}),R=b({key:"textTransform",read:e=>{var t,n;return null==(n=e.style)||null==(t=n.textStyle)?void 0:t.textTransform},classToken:e=>{var t,n;return{families:[o.l4],token:(0,l.x7)(null==(n=e.style)||null==(t=n.textStyle)?void 0:t.textTransform)}},objectProperty:"textTransform",objectValue:e=>{var t,n,r;return null!=(r=null==(n=e.style)||null==(t=n.textStyle)?void 0:t.textTransform)?r:null},domProperty:"textTransform",domValue:e=>{var t,n,r;return null!=(r=null==(n=e.style)||null==(t=n.textStyle)?void 0:t.textTransform)?r:null}}),k=b({key:"textDecoration",read:e=>{var t,n;return null==(n=e.style)||null==(t=n.textStyle)?void 0:t.textDecorationLine},classToken:e=>{var t,n;return{families:[o.f1],token:(0,l.v$)(null==(n=e.style)||null==(t=n.textStyle)?void 0:t.textDecorationLine)}},objectProperty:"textDecorationLine",objectValue:e=>{var t,n,r;return null!=(r=null==(n=e.style)||null==(t=n.textStyle)?void 0:t.textDecorationLine)?r:null},domProperty:"textDecorationLine",domValue:e=>{var t,n,r;return null!=(r=null==(n=e.style)||null==(t=n.textStyle)?void 0:t.textDecorationLine)?r:null}}),C=new Map([r.Rv,r.Xp,r.Lx,r.Ap,r.Ov,r.J0,r.yr,r.Nn,r.oP,r.NG,r.ef,{key:"layoutMode",classTokens:(e,t)=>{var n,r;let l=null==(n=e.style)?void 0:n.layout,i=null==(r=t.style)?void 0:r.layout,a=(null==l?void 0:l.mode)==="grid"?"grid":(null==l?void 0:l.direction)?"flex":void 0,d=(null==i?void 0:i.mode)==="grid"?"grid":(null==i?void 0:i.direction)?"flex":void 0;if(a!==d)return[{families:[o.yi],token:null!=d?d:null},{families:[o.Mp],token:"flex"===d&&(null==i?void 0:i.direction)==="row"?"flex-row":"flex"===d&&(null==i?void 0:i.direction)==="column"?"flex-col":null}];if((null==l?void 0:l.direction)!==(null==i?void 0:i.direction)){let e=[{families:[o.Mp],token:(null==i?void 0:i.direction)==="row"?"flex-row":(null==i?void 0:i.direction)==="column"?"flex-col":null}];return(null==i?void 0:i.direction)&&"flex"===d&&e.push({families:[o.yi],token:"flex"}),e}return[]}
1,styleObject:(e,t,n)=>{var r,o,l,i,a;let d=null==(r=e.style)?void 0:r.layout,u=null==(o=t.style)?void 0:o.layout,c=[],s=null!=(l=null==d?void 0:d.mode)?l:(null==d?void 0:d.direction)?"flex":void 0,p=null!=(i=null==u?void 0:u.mode)?i:(null==u?void 0:u.direction)?"flex":void 0;return s!==p&&p&&"react-native"!==n&&c.push({property:"display",value:"grid"===p?"grid":"flex"}),(null==d?void 0:d.direction)!==(null==u?void 0:u.direction)&&c.push({property:"flexDirection",value:null!=(a=null==u?void 0:u.direction)?a:null}),c},domWrites:(e,t)=>{var n,r;let o=null==(n=e.style)?void 0:n.layout,l=null==(r=t.style)?void 0:r.layout,i=[];return(null==o?void 0:o.mode)!==(null==l?void 0:l.mode)&&i.push(["display",(null==l?void 0:l.mode)==="grid"?"grid":(null==l?void 0:l.direction)?"flex":null]),(null==o?void 0:o.direction)!==(null==l?void 0:l.direction)&&(null==l?void 0:l.direction)&&(i.push(["display","grid"===l.mode?"grid":"flex"]),i.push(["flexDirection",l.direction])),i}},{key:"justifyContent",classTokens:(e,t)=>{var n,r,i,a,d,u;return(null==(r=e.style)||null==(n=r.layout)?void 0:n.justifyContent)===(null==(a=t.style)||null==(i=a.layout)?void 0:i.justifyContent)?[]:[{families:[o.r6],token:(0,l.iv)(null==(u=t.style)||null==(d=u.layout)?void 0:d.justifyContent)}]},styleObject:(e,t)=>{var n,r,o,l,i,a,d;return(null==(r=e.style)||null==(n=r.layout)?void 0:n.justifyContent)===(null==(l=t.style)||null==(o=l.layout)?void 0:o.justifyContent)?[]:[{property:"justifyContent",value:null!=(d=null==(a=t.style)||null==(i=a.layout)?void 0:i.justifyContent)?d:null}]},domWrites:(e,t)=>{var n,r,o,l,i,a,d;return(null==(r=e.style)||null==(n=r.layout)?void 0:n.justifyContent)===(null==(l=t.style)||null==(o=l.layout)?void 0:o.justifyContent)?[]:[["justifyContent",null!=(d=null==(a=t.style)||null==(i=a.layout)?void 0:i.justifyContent)?d:null]]}},{key:"alignItems",classTokens:(e,t)=>{var n,r,i,a,d,u;return(null==(r=e.style)||null==(n=r.layout)?void 0:n.alignItems)===(null==(a=t.style)||null==(i=a.layout)?void 0:i.alignItems)?[]:[{families:[o.rV],token:(0,l.VP)(null==(u=t.style)||null==(d=u.layout)?void 0:d.alignItems)}]},styleObject:(e,t)=>{var n,r,o,l,i,a,d;return(null==(r=e.style)||null==(n=r.layout)?void 0:n.alignItems)===(null==(l=t.style)||null==(o=l.layout)?void 0:o.alignItems)?[]:[{property:"alignItems",value:null!=(d=null==(a=t.style)||null==(i=a.layout)?void 0:i.alignItems)?d:null}]},domWrites:(e,t)=>{var n,r,o,l,i,a,d;return(null==(r=e.style)||null==(n=r.layout)?void 0:n.alignItems)===(null==(l=t.style)||null==(o=l.layout)?void 0:o.alignItems)?[]:[["alignItems",null!=(d=null==(a=t.style)||null==(i=a.layout)?void 0:i.alignItems)?d:null]]}},a,u,d,s,p,{key:"margins",classTokens:(e,t)=>{let n=e.spacing,r=t.spacing,i=new Set(f.filter(e=>(null==n?void 0:n["margin".concat(e)])!==(null==r?void 0:r["margin".concat(e)])));if(0===i.size)return[];let a={families:o.B$,mapToken:e=>(function(e,t){let n=/^(-?)(m[xytrbl]?)-(.+)$/.exec(e),r=n?m[n[2]]:void 0;if(!n||!r)return[];let o=(0,v.pr)(e).spacing;return o&&Object.keys(o).length>0?[]:(function(e){if(4===e.size)return["m"];let t=[];return e.has("Left")&&e.has("Right")?t.push("mx"):(e.has("Left")&&t.push("ml"),e.has("Right")&&t.push("mr")),e.has("Top")&&e.has("Bottom")?t.push("my"):(e.has("Top")&&t.push("mt"),e.has("Bottom")&&t.push("mb")),t})(new Set(r.filter(e=>!t.has(e)))).map(e=>"".concat(n[1]).concat(e,"-").concat(n[3]))})(e,i)},d=(0,l.PF)(r);return 0===d.length?[{families:o.B$,token:null,tokensWhenMatched:a}]:d.map(e=>({families:o.B$,token:e,tokensWhenMatched:a}))},styleObject:(e,t,n)=>{let r=[];for(let d of["Top","Right","Bottom","Left"]){var o,i,a;let u="margin".concat(d);(null==(o=e.spacing)?void 0:o[u])!==(null==(i=t.spacing)?void 0:i[u])&&r.push({property:u,value:(0,l.jf)(null==(a=t.spacing)?void 0:a[u],n)})}return r},domWrites:(e,t)=>{let n=e.spacing,r=t.spacing;return(null==n?void 0:n.marginTop)===(null==r?void 0:r.marginTop)&&(null==n?void 0:n.marginRight)===(null==r?void 0:r.marginRight)&&(null==n?void 0:n.marginBottom)===(null==r?void 0:r.marginBottom)&&(null==n?void 0:n.marginLeft)===(null==r?void 0:r.marginLeft)?[]:[["marginTop",(0,l.Aj)(null==r?void 0:r.marginTop)],["marginRight",(0,l.Aj)(null==r?void 0:r.marginRight)],["marginBottom",(0,l.Aj)(null==r?void 0:r.marginBottom)],["marginLeft",(0,l.Aj)(null==r?void 0:r.marginLeft)]]}},{key:"padding",classTokens:(e,t)=>{var n,r,i,a;let d=null==(r=e.style)||null==(n=r.layout)?void 0:n.padding,u=null==(a=t.style)||null==(i=a.layout)?void 0:i.padding,c=[];if((null==d?void 0:d.horizontal)!==(null==u?void 0:u.horizontal)||(null==d?void 0:d.left)!==(null==u?void 0:u.left)||(null==d?void 0:d.right)!==(null==u?void 0:u.right)){let e=(null==u?void 0:u.horizontal)!=null&&null==u.left&&null==u.right;c.push({families:e?[o.JM,o.yN,o.dh]:[o.JM],token:e?(0,l.Of)("px",u.horizontal):null}),c.push(h([o.yN],(null==u?void 0:u.left)!=null||(null==u?void 0:u.horizontal)==null&&(null==d?void 0:d.left)!=null?(0,l.Of)("pl",null==u?void 0:u.left):null,"left",null==u?void 0:u.left)),c.push(h([o.dh],(null==u?void 0:u.right)!=null||(null==u?void 0:u.horizontal)==null&&(null==d?void 0:d.right)!=null?(0,l.Of)("pr",null==u?void 0:u.right):null,"right",null==u?void 0:u.right))}if((null==d?void 0:d.vertical)!==(null==u?void 0:u.vertical)||(null==d?void 0:d.top)!==(null==u?void 0:u.top)||(null==d?void 0:d.bottom)!==(null==u?void 0:u.bottom)){let e=(null==u?void 0:u.vertical)!=null&&null==u.top&&null==u.bottom;c.push({families:e?[o.y5,o.UU,o.yw]:[o.y5],token:e?(0,l.Of)("py",u.vertical):null}),c.push(h([o.UU],(null==u?void 0:u.top)!=null||(null==u?void 0:u.vertical)==null&&(null==d?void 0:d.top)!=null?(0,l.Of)("pt",null==u?void 0:u.top):null,"top",null==u?void 0:u.top)),c.push(h([o.yw],(null==u?void 0:u.bottom)!=null||(null==u?void 0:u.vertical)==null&&(null==d?void 0:d.bottom)!=null?(0,l.Of)("pb",null==u?void 0:u.bottom):null,"bottom",null==u?void 0:u.bottom))}return c}
1,styleObject:(e,t,n)=>{var r,o,i,a;let d=null==(o=e.style)||null==(r=o.layout)?void 0:r.padding,u=null==(a=t.style)||null==(i=a.layout)?void 0:i.padding,c=[];for(let e of((null==d?void 0:d.horizontal)!==(null==u?void 0:u.horizontal)&&(c.push({property:"react-native"===n?"paddingHorizontal":"paddingLeft",value:(0,l.HF)(null==u?void 0:u.horizontal,n)}),"react-native"!==n&&c.push({property:"paddingRight",value:(0,l.HF)(null==u?void 0:u.horizontal,n)})),(null==d?void 0:d.vertical)!==(null==u?void 0:u.vertical)&&(c.push({property:"react-native"===n?"paddingVertical":"paddingTop",value:(0,l.HF)(null==u?void 0:u.vertical,n)}),"react-native"!==n&&c.push({property:"paddingBottom",value:(0,l.HF)(null==u?void 0:u.vertical,n)})),["left","right","top","bottom"]))(null==d?void 0:d[e])!==(null==u?void 0:u[e])&&c.push({property:"padding".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),value:(0,l.HF)(null==u?void 0:u[e],n)});return c},domWrites:(e,t)=>{var n,r,o,i;let a=null==(r=e.style)||null==(n=r.layout)?void 0:n.padding,d=null==(i=t.style)||null==(o=i.layout)?void 0:o.padding;return["horizontal","vertical","left","right","top","bottom"].every(e=>(null==a?void 0:a[e])===(null==d?void 0:d[e]))?[]:[["paddingLeft",(null==d?void 0:d.horizontal)!=null?(0,l.nc)(d.horizontal):(null==d?void 0:d.left)!=null?(0,l.nc)(d.left):null],["paddingRight",(null==d?void 0:d.horizontal)!=null?(0,l.nc)(d.horizontal):(null==d?void 0:d.right)!=null?(0,l.nc)(d.right):null],["paddingTop",(null==d?void 0:d.vertical)!=null?(0,l.nc)(d.vertical):(null==d?void 0:d.top)!=null?(0,l.nc)(d.top):null],["paddingBottom",(null==d?void 0:d.vertical)!=null?(0,l.nc)(d.vertical):(null==d?void 0:d.bottom)!=null?(0,l.nc)(d.bottom):null]]}},{key:"fillColor",classTokens:(e,t,n)=>{var r,i,a,d;if(null==n?void 0:n.skipFillColor)return[];let u=(0,l.$b)(null==(i=e.style)||null==(r=i.fills)?void 0:r[0]),c=(0,l.$b)(null==(d=t.style)||null==(a=d.fills)?void 0:a[0]);return u===c||"TEXT"===t.type||"TEXT_INPUT"===t.type?[]:[{families:[o.le],token:c?(0,l.qZ)("bg",c):null}]},styleObject:(e,t)=>{var n,r,o,i;let a=(0,l.$b)(null==(r=e.style)||null==(n=r.fills)?void 0:n[0]),d=(0,l.$b)(null==(i=t.style)||null==(o=i.fills)?void 0:o[0]);return a===d||"TEXT"===t.type||"TEXT_INPUT"===t.type?[]:[{property:"backgroundColor",value:d}]},domWrites:(e,t)=>{var n,r,o,i;let a=(0,l.$b)(null==(r=e.style)||null==(n=r.fills)?void 0:n[0]),d=(0,l.$b)(null==(i=t.style)||null==(o=i.fills)?void 0:o[0]);return a===d||"TEXT"===t.type||"TEXT_INPUT"===t.type?[]:[["backgroundColor",d]]}},{key:"textColor",classTokens:(e,t,n)=>{var r,i,a,d;if(null==n?void 0:n.skipTextColor)return[];let u=null==(i=e.style)||null==(r=i.textStyle)?void 0:r.color,c=null==(d=t.style)||null==(a=d.textStyle)?void 0:a.color;return u===c?[]:[{families:[o.qZ],token:c?(0,l.qZ)("text",c):null}]},styleObject:(e,t)=>{var n,r,o,l;let i=null==(r=e.style)||null==(n=r.textStyle)?void 0:n.color,a=null==(l=t.style)||null==(o=l.textStyle)?void 0:o.color;return i===a?[]:[{property:"color",value:null!=a?a:null}]},domWrites:(e,t)=>{var n,r,o,l;let i=null==(r=e.style)||null==(n=r.textStyle)?void 0:n.color,a=null==(l=t.style)||null==(o=l.textStyle)?void 0:o.color;return i===a?[]:[["color",null!=a?a:null]]}},{key:"radius",classTokens:(e,t)=>{if(!g(e,t))return[];let n=(0,l.vb)(t);return 0===n.length?[{families:o.Zd,token:null}]:n.map(e=>({families:o.Zd,token:e}))},styleObject:(e,t,n)=>{var r,o,i,a,d,u,c,s,p,v;let f=[];if((null==(r=e.style)?void 0:r.borderRadius)!==(null==(o=t.style)?void 0:o.borderRadius)&&f.push({property:"borderRadius",value:"react-native"===n?null!=(c=null==(d=t.style)?void 0:d.borderRadius)?c:null:(0,l.HF)(null==(u=t.style)?void 0:u.borderRadius,n)}),JSON.stringify(null!=(s=null==(i=e.style)?void 0:i.cornerRadii)?s:null)!==JSON.stringify(null!=(p=null==(a=t.style)?void 0:a.cornerRadii)?p:null)){let e=null==(v=t.style)?void 0:v.cornerRadii;f.push({property:"borderRadius",value:e?null:(0,l.HF)(void 0,n)}),f.push({property:"borderTopLeftRadius",value:(0,l.HF)(null==e?void 0:e.topLeft,n)}),f.push({property:"borderTopRightRadius",value:(0,l.HF)(null==e?void 0:e.topRight,n)}),f.push({property:"borderBottomRightRadius",value:(0,l.HF)(null==e?void 0:e.bottomRight,n)}),f.push({property:"borderBottomLeftRadius",value:(0,l.HF)(null==e?void 0:e.bottomLeft,n)})}return f},domWrites:(e,t)=>{var n,r;if(!g(e,t))return[];let o=null==(n=t.style)?void 0:n.cornerRadii;return o?[["borderRadius",null],["borderTopLeftRadius",(0,l.wR)(o.topLeft)],["borderTopRightRadius",(0,l.wR)(o.topRight)],["borderBottomRightRadius",(0,l.wR)(o.bottomRight)],["borderBottomLeftRadius",(0,l.wR)(o.bottomLeft)]]:[["borderTopLeftRadius",null],["borderTopRightRadius",null],["borderBottomRightRadius",null],["borderBottomLeftRadius",null],["borderRadius",(0,l.wR)(null==(r=t.style)?void 0:r.borderRadius)]]}},{key:"borderColor",classTokens:(e,t)=>{let n=(0,l.sj)(t);return y(e,t)?[{families:[o.Pw],token:n?(0,l.qZ)("border",n):null}]:[]},styleObject:(e,t)=>
1{let n=(0,l.sj)(t);return y(e,t)?[{property:"borderColor",value:null!=n?n:null}]:[]},domWrites:(e,t)=>{let n=(0,l.sj)(t);return y(e,t)?[["borderColor",null!=n?n:null]]:[]}},{key:"borderWidth",classTokens:(e,t)=>{var n,r,i;return(null==(n=e.style)?void 0:n.strokeWeight)===(null==(r=t.style)?void 0:r.strokeWeight)?[]:[{families:[o.g5],token:(0,l.YC)("border",null==(i=t.style)?void 0:i.strokeWeight)}]},styleObject:(e,t)=>{var n,r,o,l;return(null==(n=e.style)?void 0:n.strokeWeight)===(null==(r=t.style)?void 0:r.strokeWeight)?[]:[{property:"borderWidth",value:null!=(l=null==(o=t.style)?void 0:o.strokeWeight)?l:null}]},domWrites:(e,t)=>{var n,r,o,i;if((null==(n=e.style)?void 0:n.strokeWeight)===(null==(r=t.style)?void 0:r.strokeWeight))return[];let a=(0,l.te)(null==(o=t.style)?void 0:o.strokeWeight);return[["borderWidth",null!=a?"".concat(a,"px"):null],["borderStyle",null!=a&&a>0?(0,l.B9)(null==(i=t.style)?void 0:i.strokeDashes):null]]}},{key:"borderStyle",classTokens:(e,t)=>{var n,r,i;return(0,l.cm)(null==(n=e.style)?void 0:n.strokeDashes,null==(r=t.style)?void 0:r.strokeDashes)?[]:[{families:[o.pM],token:(0,v.wV)(null==(i=t.style)?void 0:i.strokeDashes)}]},styleObject:(e,t)=>{var n,r,o;return(0,l.cm)(null==(n=e.style)?void 0:n.strokeDashes,null==(r=t.style)?void 0:r.strokeDashes)?[]:[{property:"borderStyle",value:(0,l.B9)(null==(o=t.style)?void 0:o.strokeDashes)}]},domWrites:(e,t)=>{var n,r,o;return(0,l.cm)(null==(n=e.style)?void 0:n.strokeDashes,null==(r=t.style)?void 0:r.strokeDashes)?[]:[["borderStyle",(0,l.B9)(null==(o=t.style)?void 0:o.strokeDashes)]]}},{key:"opacity",classTokens:(e,t)=>{var n,r,i;return(null==(n=e.style)?void 0:n.opacity)===(null==(r=t.style)?void 0:r.opacity)?[]:[{families:[o.MC],token:"number"==typeof(null==(i=t.style)?void 0:i.opacity)?(0,l.qZ)("opacity",(0,l.qq)(t.style.opacity)):null}]},styleObject:(e,t)=>{var n,r,o,l;return(null==(n=e.style)?void 0:n.opacity)===(null==(r=t.style)?void 0:r.opacity)?[]:[{property:"opacity",value:null!=(l=null==(o=t.style)?void 0:o.opacity)?l:null}]},domWrites:(e,t)=>{var n,r,o;return(null==(n=e.style)?void 0:n.opacity)===(null==(r=t.style)?void 0:r.opacity)?[]:[["opacity","number"==typeof(null==(o=t.style)?void 0:o.opacity)?(0,l.qq)(t.style.opacity):null]]}},{key:"overflow",classTokens:(e,t)=>{var n,r,l;return(null==(n=e.style)?void 0:n.overflow)===(null==(r=t.style)?void 0:r.overflow)?[]:[{families:[o.H],token:(null==(l=t.style)?void 0:l.overflow)?"overflow-".concat(t.style.overflow):null}]},styleObject:(e,t)=>{var n,r,o,l;return(null==(n=e.style)?void 0:n.overflow)===(null==(r=t.style)?void 0:r.overflow)?[]:[{property:"overflow",value:null!=(l=null==(o=t.style)?void 0:o.overflow)?l:null}]},domWrites:(e,t)=>{var n,r,o,l;return(null==(n=e.style)?void 0:n.overflow)===(null==(r=t.style)?void 0:r.overflow)?[]:[["overflow",null!=(l=null==(o=t.style)?void 0:o.overflow)?l:null]]}},{key:"blur",classTokens:(e,t)=>w(e,t)?[{families:[o.yW],token:(0,l.hG)("blur",(0,l.pe)(t))}]:[],styleObject:(e,t,n)=>w(e,t)?[{property:"filter",value:"react-native"===n?null:(0,l.PC)(t)}]:[],domWrites:(e,t)=>w(e,t)?[["filter",(0,l.PC)(t)]]:[]},{key:"backdropBlur",classTokens:(e,t)=>{var n,r,i,a;return(null==(n=e.style)?void 0:n.backdropBlur)===(null==(r=t.style)?void 0:r.backdropBlur)&&(null==(i=e.style)?void 0:i.backdropBlurVisible)===(null==(a=t.style)?void 0:a.backdropBlurVisible)?[]:[{families:[o.r9],token:(0,l.hG)("backdrop-blur",(0,l.tF)(t))}]},styleObject:(e,t,n)=>{var r,o,i,a;if((null==(r=e.style)?void 0:r.backdropBlur)===(null==(o=t.style)?void 0:o.backdropBlur)&&(null==(i=e.style)?void 0:i.backdropBlurVisible)===(null==(a=t.style)?void 0:a.backdropBlurVisible))return[];let d=(0,l.tF)(t),u="react-native"!==n&&null!=d?"blur(".concat((0,l.KG)(d),")"):null;return[{property:"backdropFilter",value:u},{property:"WebkitBackdropFilter",value:u}]},domWrites:(e,t)=>{var n,r,o,i;if((null==(n=e.style)?void 0:n.backdropBlur)===(null==(r=t.style)?void 0:r.backdropBlur)&&(null==(o=e.style)?void 0:o.backdropBlurVisible)===(null==(i=t.style)?void 0:i.backdropBlurVisible))return[];let a=(0,l.tF)(t),d=null!=a?"blur(".concat((0,l.KG)(a),")"):null;return[["backdropFilter",d],["WebkitBackdropFilter",d]]}},N,P,S,x,{key:"textAlignment",classTokens:(e,t)=>{var n,r;let i=null==(n=e.style)?void 0:n.textStyle,a=null==(r=t.style)?void 0:r.textStyle,d=[];return(null==i?void 0:i.textAlign)!==(null==a?void 0:a.textAlign)&&(d.push({families:[o.cr],token:(0,l.wb)(null==a?void 0:a.textAlign)}),(null==a?void 0:a.textAlignVertical)&&(null==i?void 0:i.textAlignVertical)===a.textAlignVertical&&d.push({families:[o.r6],token:(0,l.RT)(a.textAlign)})),(null==i?void 0:i.textAlignVertical)!==(null==a?void 0:a.textAlignVertical)&&(d.push({families:[o.Xn],token:(null==a?void 0:a.textAlignVertical)?"flex":null}),d.push({families:[o.rV],token:(0,l.Ed)(null==a?void 0:a.textAlignVertical)}),d.push({families:[o.r6],token:(null==a?void 0:a.textAlignVertical)?(0,l.RT)(a.textAlign):null})),d},styleObject:(e,t)=>
1{var n,r,o,l;let i=null==(n=e.style)?void 0:n.textStyle,a=null==(r=t.style)?void 0:r.textStyle,d=[];return(null==i?void 0:i.textAlign)!==(null==a?void 0:a.textAlign)&&d.push({property:"textAlign",value:null!=(o=null==a?void 0:a.textAlign)?o:null}),(null==i?void 0:i.textAlignVertical)!==(null==a?void 0:a.textAlignVertical)&&d.push({property:"textAlignVertical",value:null!=(l=null==a?void 0:a.textAlignVertical)?l:null}),d},domWrites:(e,t)=>{var n,r,o;let l=null==(n=e.style)?void 0:n.textStyle,i=null==(r=t.style)?void 0:r.textStyle,a=[];return(null==l?void 0:l.textAlign)!==(null==i?void 0:i.textAlign)&&(a.push(["textAlign",null!=(o=null==i?void 0:i.textAlign)?o:null]),(null==i?void 0:i.textAlignVertical)&&a.push(["justifyContent","center"===i.textAlign?"center":"right"===i.textAlign?"flex-end":null])),(null==l?void 0:l.textAlignVertical)!==(null==i?void 0:i.textAlignVertical)&&(a.push(["display",(null==i?void 0:i.textAlignVertical)?"flex":null]),a.push(["alignItems",(null==i?void 0:i.textAlignVertical)==="center"?"center":(null==i?void 0:i.textAlignVertical)==="bottom"?"flex-end":(null==i?void 0:i.textAlignVertical)==="top"?"flex-start":null]),a.push(["justifyContent",(null==i?void 0:i.textAlignVertical)?"center"===i.textAlign?"center":"right"===i.textAlign?"flex-end":null:null])),a}},R,k,{key:"shadows",classTokens:(e,t)=>{var n;return I(e,t)?[{families:[o.e1,o._U],token:null!=(n=(0,l.ig)(t))?n:(0,l.rs)(t)}]:[]},styleObject:(e,t,n)=>I(e,t)?[{property:"boxShadow",value:"react-native"===n?null:(0,l.so)(t)},{property:"filter",value:"react-native"===n?null:(0,l.PC)(t)}]:[],domWrites:(e,t)=>I(e,t)?[["boxShadow",(0,l.so)(t)],["filter",(0,l.PC)(t)]]:[]},{key:"textShadow",styleObject:(e,t,n)=>{var r,o,i,a,d,u;return JSON.stringify(null!=(d=null==(o=e.style)||null==(r=o.textStyle)?void 0:r.textShadow)?d:null)===JSON.stringify(null!=(u=null==(a=t.style)||null==(i=a.textStyle)?void 0:i.textShadow)?u:null)?[]:[{property:"textShadow",value:"react-native"===n?null:(0,l.Cx)(t)}]},domWrites:(e,t)=>{var n,r,o,i,a,d;return JSON.stringify(null!=(a=null==(r=e.style)||null==(n=r.textStyle)?void 0:n.textShadow)?a:null)===JSON.stringify(null!=(d=null==(i=t.style)||null==(o=i.textStyle)?void 0:o.textShadow)?d:null)?[]:[["textShadow",(0,l.Cx)(t)]]}}].map(e=>[e.key,e]));function F(e){let t=C.get(e);if(!t)throw Error("Unknown style property entry: ".concat(e));return t}let A=["visibility","rotation","scaleX","scaleY","position","width","height","minWidth","minHeight","maxWidth","maxHeight","layoutMode","justifyContent","alignItems","gap","columnGap","rowGap","gridColumns","gridRows","margins","padding","fillColor","textColor","radius","borderColor","borderWidth","borderStyle","opacity","overflow","blur","backdropBlur","fontSize","fontWeight","lineHeight","letterSpacing","textAlignment","textTransform","textDecoration","shadows"],T=["rotation","scaleX","scaleY","position","width","height","minWidth","minHeight","maxWidth","maxHeight","layoutMode","justifyContent","alignItems","gap","rowGap","columnGap","gridColumns","gridRows","margins","padding","fillColor","textColor","fontSize","fontWeight","lineHeight","letterSpacing","textAlignment","textTransform","textDecoration","radius","borderColor","borderWidth","borderStyle","opacity","overflow","shadows","blur","backdropBlur","textShadow"],z=["width","rotation","scaleX","scaleY","position","height","minWidth","minHeight","maxWidth","maxHeight","layoutMode","justifyContent","alignItems","gap","columnGap","rowGap","gridColumns","gridRows","margins","padding","fillColor","textColor","radius","borderColor","borderWidth","borderStyle","opacity","overflow","shadows","blur","backdropBlur","fontSize","fontWeight","lineHeight","letterSpacing","textAlignment","textTransform","textDecoration","textShadow"]},89042:(e,t,n)=>{n.d(t,{Ap:()=>N,J0:()=>x,JJ:()=>m,Lx:()=>b,NG:()=>A,Nn:()=>C,Ov:()=>h,Rv:()=>g,Xp:()=>y,ef:()=>T,oP:()=>F,yr:()=>R});var r=n(6197),o=n(61167),l=n(62533);function i(e,t){var n,r;return e.width!==t.width||(null==(n=e.sizing)?void 0:n.widthMode)!==(null==(r=t.sizing)?void 0:r.widthMode)}function a(e,t){var n,r;return e.height!==t.height||(null==(n=e.sizing)?void 0:n.heightMode)!==(null==(r=t.sizing)?void 0:r.heightMode)}let d=["left","right","top","bottom"],u={left:o.sO,right:o.dp,top:o.CH,bottom:o.AB},c={horizontal:["left","right"],vertical:["top","bottom"]},s={horizontal:o.lc,vertical:o.YA};function p(e,t){var n,r;return e.layoutPositioning!==t.layoutPositioning||JSON.stringify(null!=(n=e.constraints)?n:null)!==JSON.stringify(null!=(r=t.constraints)?r:null)||d.some(n=>{var r,o;return(null==(r=e.absoluteRenderPosition)?void 0:r[n])!==(null==(o=t.absoluteRenderPosition)?void 0:o[n])})}function v(e,t){var n,r,o,i;let a=null!=(o="left"===t||"right"===t?null==(n=e.constraints)?void 0:n.horizontal:null==(r=e.constraints)?void 0:r.vertical)?o:"min",d=e.absoluteRenderPosition;if("center"===a){if("right"===t||"bottom"===t)return null;let e=null!=(i=(0,l.x4)(null==d?void 0:d[t]))?i:0;return 0===e?"50%":"calc(50% ".concat(e>0?"+":"-"," ").concat(Math.abs(e),"px)")}return"max"===a&&("left"===t||"top"===t)||"min"===a&&("right"===t||"bottom"===t)?null:(0,l.Aj)(null==d?void 0:d[t])}function f(e){var t,n;let r=(null==(t=e.constraints)?void 0:t.horizontal)==="center"?"-50%":"0",o=(null==(n=e.constraints)?void 0:n.vertical)==="center"?"-50%":"0";return"0"===r&&"0"===o?null:"".concat(r," ").concat(o)}function m(e,t){var n;if(!p(e,t))return[];let r="absolute"===t.layoutPositioning;return[["position",r?"absolute":null],...d.map(e=>{var n;return[e,r?null!=(n=v(t,e))?n:"auto":null]}),["translate",r?null!=(n=f(t))?n:"none":null]]}let h={key:"position",classTokens:(e,t)=>{var n,r;if(!p(e,t))return[];let i="absolute"===t.layoutPositioning,a=function(e,t){if(e.layoutPositioning!==t.layoutPositioning)return["horizontal","vertical"];let n=["horizontal","vertical"].filter(n=>{var r,o,l,i;return(null!=(l=null==(r=e.constraints)?void 0:r[n])?l:"min")!==(null!=(i=null==(o=t.constraints)?void 0:o[n])?i:"min")||c[n].some(n=>{var r,o;return(null==(r=e.absoluteRenderPosition)?void 0:r[n])!==(null==(o=t.absoluteRenderPosition)?void 0:o[n])})});return n.length>0?n:["horizontal","vertical"]}(e,t),d=1===a.length?"horizontal"===a[0]?"vertical":"horizontal":null;return[{families:[o.Md],token:i?"absolute":null,property:"position"},...a.flatMap(e=>c[e].map(n=>({families:[u[n],s[e],o.UW],token:i?function(e,t){let n=v(e,t);if(null==n)return null;if("50%"===n)return"".concat(t,"-1/2");
1if(n.endsWith("px")&&!n.startsWith("calc")){let e=Number(n.slice(0,-2));if(Number.isFinite(e))return(0,l.mN)(t,e)}return"".concat(t,"-[").concat(n.replace(/ /g,"_"),"]")}(t,n):null,...d?{tokensWhenMatched:{families:[o.UW],mapToken:e=>(function(e,t){let n=/^(-?)inset-(.+)$/.exec(e);return!n||o.lc.test(e)||o.YA.test(e)?[]:["".concat(n[1],"inset-").concat("horizontal"===t?"x":"y","-").concat(n[2])]})(e,d)}}:{},property:n}))),...a.includes("horizontal")?[{families:[o.w6],token:i&&(null==(n=t.constraints)?void 0:n.horizontal)==="center"?"-translate-x-1/2":null,property:"translateX"}]:[],...a.includes("vertical")?[{families:[o.Ri],token:i&&(null==(r=t.constraints)?void 0:r.vertical)==="center"?"-translate-y-1/2":null,property:"translateY"}]:[]]},styleObject:(e,t,n)=>{var r;if(!p(e,t))return[];let o="absolute"===t.layoutPositioning;return"react-native"===n?[{property:"position",value:o?"absolute":null},...d.map(e=>{var r;return{property:e,value:o?(0,l.jf)(null==(r=t.absoluteRenderPosition)?void 0:r[e],n):null}})]:[{property:"position",value:o?"absolute":null},...d.map(e=>{var n;return{property:e,value:o?null!=(n=v(t,e))?n:"auto":null}}),{property:"translate",value:o?null!=(r=f(t))?r:"none":null}]},domWrites:m},g={key:"visibility",classTokens:(e,t)=>{var n,r,l;return(null==(n=e.style)?void 0:n.visible)===(null==(r=t.style)?void 0:r.visible)?[]:[{families:[o.cY],token:(null==(l=t.style)?void 0:l.visible)===!1?"hidden":null}]}},y={key:"rotation",classTokens:(e,t)=>{if(e.rotation===t.rotation)return[];let n=(0,l.s3)(t.rotation);return[{families:[o.uz],token:n},{families:[o.oy],token:n&&"absolute"===t.layoutPositioning?"origin-top-left":null}]},styleObject:(e,t,n)=>{if(e.rotation===t.rotation||"react-native"===n)return[];let r=I(t);return[{property:"transform",value:r},{property:"transformOrigin",value:r&&"absolute"===t.layoutPositioning?"0 0":null}]},domWrites:(e,t)=>{if(e.rotation===t.rotation)return[];let n=I(t);return[["transform",n],["transformOrigin",n&&"absolute"===t.layoutPositioning?"0 0":null]]}};function I(e){let t=[];return"number"==typeof e.rotation&&Math.abs(e.rotation)>=.01&&t.push("rotate(".concat((0,l.qq)(e.rotation),"deg)")),"number"==typeof e.scaleX&&Math.abs(e.scaleX-1)>=1e-4&&t.push("scaleX(".concat((0,l.qq)(e.scaleX),")")),"number"==typeof e.scaleY&&Math.abs(e.scaleY-1)>=1e-4&&t.push("scaleY(".concat((0,l.qq)(e.scaleY),")")),t.length>0?t.join(" "):null}function w(e){let t="X"===e?"scaleX":"scaleY",n="X"===e?o.MK:o.xi,r="X"===e?"x":"y";return{key:t,classTokens:(e,o)=>e[t]===o[t]?[]:[{families:[n],token:(0,l.Am)(r,o[t])}],styleObject:(e,n,r)=>e[t]===n[t]||"react-native"===r?[]:[{property:"transform",value:I(n)}],domWrites:(e,n)=>e[t]===n[t]?[]:[["transform",I(n)]]}}let b=w("X"),N=w("Y");function P(e,t){let n=0;for(let r=0;r<e.length;r+=1){let o=e[r];if("["===o){n+=1;continue}if("]"===o){n=Math.max(0,n-1);continue}if(0===n&&e.startsWith(t,r)&&(0===r||":"===e[r-1]))return r}return -1}function S(e,t,n){let r=P(e,"size-");if(r<0)return[];let o=e.slice(0,r),l="".concat(t,"-");return n.some(e=>{let t=P(e,l);return t>=0&&e.slice(0,t)===o})?[]:["".concat(e.slice(0,r)).concat(t,"-").concat(e.slice(r+5))]}let x={key:"width",classTokens:(e,t)=>{var n,d,u,c,s,p,v,f;let m=[],h=null==(n=e.sizing)?void 0:n.flexGrow,g=null==(d=t.sizing)?void 0:d.flexGrow,y=null==(u=e.sizing)?void 0:u.flexShrink,I=null==(c=t.sizing)?void 0:c.flexShrink,w=i(e,t),b=a(e,t),N=(null==(s=e.sizing)?void 0:s.widthMode)!==(null==(p=t.sizing)?void 0:p.widthMode)||(null==(v=e.sizing)?void 0:v.heightMode)!==(null==(f=t.sizing)?void 0:f.heightMode),P=h!==g||N,x=g&&g>0?"flex-1":null,R="absolute"!==e.layoutPositioning&&0===y,k="absolute"!==t.layoutPositioning&&0===I,C=R!==k||y!==I||w||b;return P&&m.push({families:x&&C?[o.qk,o.Y8]:[o.qk],token:x,property:"flexGrow"}),C&&m.push({families:[o.Y8],token:k?"shrink-0":null,property:"flexShrink"}),w&&m.push({families:[o.Ml,o.NZ],token:function(e){var t,n;let o=null==(t=e.sizing)?void 0:t.widthMode;return"fill"===o&&((null==(n=e.sizing)?void 0:n.flexGrow)!=null&&e.sizing.flexGrow>0||(0,r.HF)(e,"width"))?null:(0,l.jE)("w",e.width,o)}(t),...!b?{tokensWhenMatched:{families:[o.NZ],mapToken:(e,t)=>S(e,"h",t)}}:{},property:"width"}),m}
1,styleObject:(e,t,n)=>{var o,a,d,u,c;let s=null==(o=t.sizing)?void 0:o.widthMode,p=null==(a=t.sizing)?void 0:a.flexGrow,v=null==(d=t.sizing)?void 0:d.flexShrink,f=(0,r.HF)(t,"width"),m=(null==(u=e.sizing)?void 0:u.flexGrow)!==p,h=(null==(c=e.sizing)?void 0:c.flexShrink)!==v;if(!i(e,t)){if(!m&&!h)return[];let e=[];return m&&e.push({property:"flexGrow",value:null!=p?p:null}),h&&e.push({property:"flexShrink",value:null!=v?v:null}),e}let g=[{property:"width",value:"hug"===s?"react-native"===n?null:"fit-content":"fill"===s?null!=p&&p>0||f?null:"100%":(0,l.HF)(t.width,n)}];return m&&g.push({property:"flexGrow",value:null!=p?p:null}),h&&g.push({property:"flexShrink",value:null!=v?v:null}),g},domWrites:(e,t)=>{var n,o,a,d,u,c,s,p,v,f,m,h,g,y,I;if(!i(e,t)){let n=(null==(d=e.sizing)?void 0:d.flexGrow)!==(null==(u=t.sizing)?void 0:u.flexGrow),r=(null==(c=e.sizing)?void 0:c.flexShrink)!==(null==(s=t.sizing)?void 0:s.flexShrink);return n||r?function(e){var t,n,r,o;let l=null!=(r=null==(t=e.sizing)?void 0:t.flexGrow)?r:0,i=null!=(o=null==(n=e.sizing)?void 0:n.flexShrink)?o:1;return l>0?[["flex","".concat(l," ").concat(i," 0%")],["flexBasis","0%"],["flexGrow",String(l)],["flexShrink",String(i)]]:0===i?[["flex","0 0 auto"],["flexBasis","auto"],["flexGrow","0"],["flexShrink","0"]]:[["flex","0 ".concat(i," auto")],["flexBasis","auto"],["flexGrow","0"],["flexShrink",String(i)]]}(t):[]}let w=null==(n=t.sizing)?void 0:n.widthMode;if("hug"===w)return[["width","fit-content"],["flex",null],["flexBasis",null],["flexGrow",null],["flexShrink",null]];if("fill"===w)return(null==(p=t.sizing)?void 0:p.flexGrow)&&t.sizing.flexGrow>0?[["width",null],["flex","1 1 0%"],["flexBasis","0%"],["flexGrow","1"],["flexShrink","1"]]:[["width",(0,r.HF)(t,"width")?"auto":"100%"],["flex",null],["flexBasis",null],["flexGrow",null],["flexShrink",(null==(v=t.sizing)?void 0:v.flexShrink)!=null?String(t.sizing.flexShrink):null]];let b=(0,l.te)(t.width);if("absolute"===t.layoutPositioning)return[["width",null!=b?"".concat(b,"px"):null],["flex","0 1 auto"],["flexBasis","auto"],["flexGrow","0"],["flexShrink","1"]];if((null==(o=t.sizing)?void 0:o.heightMode)==="fill"&&(null!=(f=t.sizing.flexGrow)?f:0)>0){let e=null!=(g=null==(m=t.sizing)?void 0:m.flexGrow)?g:1,n=null!=(y=null==(h=t.sizing)?void 0:h.flexShrink)?y:1;return[["width",null!=b?"".concat(b,"px"):null],["flex","".concat(e," ").concat(n," 0%")],["flexBasis","0%"],["flexGrow",String(e)],["flexShrink",String(n)]]}let N=null!=(I=null==(a=t.sizing)?void 0:a.flexShrink)?I:1;return[["width",null!=b?"".concat(b,"px"):null],["flex",null!=b?"0 ".concat(N," auto"):null],["flexBasis",null!=b?"auto":null],["flexGrow","0"],["flexShrink",String(N)]]}},R={key:"height",classTokens:(e,t)=>{if(!a(e,t))return[];let n=i(e,t);return[{families:[o.bP,o.NZ],token:function(e){var t,n;let o=null==(t=e.sizing)?void 0:t.heightMode;return"fill"===o&&((null==(n=e.sizing)?void 0:n.flexGrow)!=null&&e.sizing.flexGrow>0||(0,r.HF)(e,"height"))?null:(0,l.jE)("h",e.height,o)}(t),...!n?{tokensWhenMatched:{families:[o.NZ],mapToken:(e,t)=>S(e,"w",t)}}:{},property:"height"}]},styleObject:(e,t,n)=>{var o,i;if(!a(e,t))return[];let d=null==(o=t.sizing)?void 0:o.heightMode,u=(0,r.HF)(t,"height");return[{property:"height",value:"hug"===d?"react-native"===n?null:"fit-content":"fill"===d?(null==(i=t.sizing)?void 0:i.flexGrow)!=null&&t.sizing.flexGrow>0||u?null:"100%":(0,l.HF)(t.height,n)}]},domWrites:(e,t)=>{var n,o;if(!a(e,t))return[];let i=null==(n=t.sizing)?void 0:n.heightMode;if("hug"===i)return[["height","fit-content"]];if("fill"===i)return[["height",(null==(o=t.sizing)?void 0:o.flexGrow)!=null&&t.sizing.flexGrow>0||(0,r.HF)(t,"height")?(0,r.HF)(t,"height")?"auto":null:"100%"]];let d=(0,l.te)(t.height);return[["height",null!=d?"".concat(d,"px"):null]]}};function k(e,t,n){return{key:e,classTokens:(r,o)=>{var i,a,d;return(null==(i=r.sizing)?void 0:i[e])===(null==(a=o.sizing)?void 0:a[e])?[]:[{families:[n],token:(0,l.$X)(t,null==(d=o.sizing)?void 0:d[e])}]},styleObject:(t,n,r)=>{var o,i,a;return(null==(o=t.sizing)?void 0:o[e])===(null==(i=n.sizing)?void 0:i[e])?[]:[{property:e,value:(0,l.HF)(null==(a=n.sizing)?void 0:a[e],r)}]},domWrites:(t,n)=>{var r,o,i;return(null==(r=t.sizing)?void 0:r[e])===(null==(o=n.sizing)?void 0:o[e])?[]:[[e,(0,l.wR)(null==(i=n.sizing)?void 0:i[e])]]}}}let C=k("minWidth","min-w",o.Z9),F=k("minHeight","min-h",o.WE),A=k("maxWidth","max-w",o.B4),T=k("maxHeight","max-h",o.CT)},90960:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{U:()=>s,Z:()=>c});var o=n(70445),l=n(44371),i=n(59868),a=n(16406),d=e([o,a,l]);function u(e){var t,n;if(!e.node.readOnlyInEditor&&!e.node.isSyntheticFragmentRoot){if(e.preferredSourcePath){if(e.preferredSourcePathIsAuthoritativeForFrameSource)return e.preferredSourcePath;let t=e.frame.nodes?(0,o.nL)(e.frame.nodes,e.preferredSourcePath,{preferNonText:!0,sourceInstanceKey:e.node.sourceInstanceKey}):null;if(!t||t.id===e.node.id)return e.preferredSourcePath}return null!=(n=null!=(t=e.node.sourcePath)?t:(0,i.J)(e.frame,e.runtimeNodePath,e.node))?n:void 0}}function c(e){var t,n,r,i,d,c,s,p,v,f,m,h,g,y,I,w,b,N,P,S,x,R,k,C,F,A,T,z,M;let E=null!=(n=e.interactionTarget)?n:null;if(E){let t=null!=(c=e.resolveActiveNodePath(E.frameId,E.nodePath,E.node.id))?c:E.nodePath,n=e.currentState.selection,I=e.resolveActiveNodePath(null==n?void 0:n.frameId,null==n?void 0:n.nodePath,null==n?void 0:n.nodeId),w=(0,a.Eh)(E,{frameId:null==n?void 0:n.frameId,nodePath:I,nodeId:null==n?void 0:n.nodeId,sourcePath:e.currentState.selectedNodeSourcePath,sourceInstanceKey:e.currentState.selectedNodeSourceInstanceKey}),b=(null==(r=e.currentState.selectedFrame)?void 0:r.id)===E.frameId?e.currentState.selectedFrame:(A=e.frames,T=E.frameId,null!=(z=null==A?void 0:A.find(e=>e.id===T))?z:null),N=(null==n?void 0:n.frameId)===E.frameId&&I===t,P=!0===e.currentState.selectedNodeSourcePathIsCurrentRenderedCoordinate&&"string"==typeof e.currentState.selectedNodeSourcePath&&N&&w,S=N&&w&&!!E.sourcePath&&!!(0,a.ox)(b)&&(void 0!==E.semanticCommittedSource?E.semanticCommittedSource===b.liveSource:void 0!==E.observedSource&&E.observedSource===b.liveSource&&E.sourcePath===t||void 0!==E.semanticObservedSource&&E.semanticObservedSource===b.liveSource),x=P?e.currentState.selectedNodeSourcePath:null,R=t!==E.nodePath,k=(0,a._y)(E,b),C=(M=R?null:E,b&&"string"==typeof(null==M?void 0:M.source)&&(0,a.ox)(b)&&b.liveSource!==M.source?{...b,liveSource:M.source}:b),F=(null==C?void 0:C.nodes)&&t&&null!=(s=null==(i=e.getNodeByPathInTree)?void 0:i.call(e,C.nodes,t))?s:null,L=(null==C?void 0:C.nodes)&&E.sourcePath?(0,o.nL)(C.nodes,E.sourcePath,{preferNonText:!0,sourceInstanceKey:E.sourceInstanceKey}):null,O="string"==typeof E.source,B=(!0===e.preferUncommittedInteractionTargetNode||O&&!k)&&E.node?(0,l.UX)(E.node,null!=F?F:L):(0,l.UX)(F,L);if(B&&F&&F.id===B.id&&(B={...B,sourcePath:null!=(p=F.sourcePath)?p:B.sourcePath,sourceInstanceKey:null!=(v=F.sourceInstanceKey)?v:B.sourceInstanceKey}),C&&B)return{frame:C,node:B,frameId:E.frameId,nodePath:t,runtimeNodePath:t,
1sourcePath:u({frame:C,runtimeNodePath:t,node:B,preferredSourcePath:null!=x?x:E.sourcePath,preferredSourcePathIsAuthoritativeForFrameSource:P||S}),sourceInstanceKey:null!=(m=null!=(f=P?e.currentState.selectedNodeSourceInstanceKey:null)?f:E.sourceInstanceKey)?m:B.sourceInstanceKey,viaInteractionSession:!0};null==(d=e.logMissingInteractionTarget)||d.call(e,{frameId:null!=(h=E.frameId)?h:null,nodePath:null!=(g=E.nodePath)?g:null,sourcePath:null!=(y=E.sourcePath)?y:null,hasFrame:!!C,hasRuntimeNode:!!F,hasSourceNode:!!(null!=L?L:E.node)})}let L=e.currentState.selection,O=null!=(I=null==L?void 0:L.frameId)?I:null,B=e.resolveActiveNodePath(O,null!=(w=null==L?void 0:L.nodePath)?w:null,null!=(b=null==L?void 0:L.nodeId)?b:null),q=null!=(N=e.currentState.selectedFrame)?N:null,j=null!=(P=e.currentState.selectedNode)?P:null;if(!O||!B||!(0,a.ox)(q)||!j||(null!=(S=e.resolvedSelectionCount)?S:0)>1)return null;let W=q.nodes&&null!=(x=null==(t=e.getNodeByPathInTree)?void 0:t.call(e,q.nodes,B))?x:null,K=j,D=e.currentState.selectedNodeSourcePath;return W&&W.id===j.id&&(K=null!=(R=(0,l.UX)(W,j))?R:j,e.currentState.selectedNodeSourcePathIsCurrentRenderedCoordinate||(D=null!=(k=W.sourcePath)?k:e.currentState.selectedNodeSourcePath)),{frame:q,node:K,frameId:O,nodePath:B,runtimeNodePath:B,sourcePath:u({frame:q,runtimeNodePath:B,node:K,preferredSourcePath:D,preferredSourcePathIsAuthoritativeForFrameSource:e.currentState.selectedNodeSourcePathIsCurrentRenderedCoordinate}),sourceInstanceKey:null!=(F=null!=(C=e.currentState.selectedNodeSourceInstanceKey)?C:K.sourceInstanceKey)?F:void 0,viaInteractionSession:!1}}function s(e){var t,n,r,o,l,i,d,u,s,p,v;let f=c({currentState:e.currentState,interactionTarget:e.interactionTarget,frames:e.frames,resolvedSelectionCount:e.resolvedSelectionCount,resolveActiveNodePath:e.resolveActiveNodePath,getNodeByPathInTree:e.getNodeByPathInTree,logMissingInteractionTarget:e.logMissingInteractionTarget});if(!f||!(0,a.ox)(f.frame)||!f.node||!f.sourcePath){let c=null!=(o=e.interactionTarget)?o:null;return null==(r=e.logMissingLiveSourceContext)||r.call(e,{frameId:null!=(i=null!=(l=null==f?void 0:f.frameId)?l:null==(t=e.currentState.selection)?void 0:t.frameId)?i:null,hasFrame:!!(null==f?void 0:f.frame),hasLiveSource:(0,a.ox)(null==f?void 0:f.frame),hasSelectedNode:!!(null!=(d=null==f?void 0:f.node)?d:e.currentState.selectedNode),interactionTargetFrameId:null!=(u=null==c?void 0:c.frameId)?u:null,selectedFrameId:null!=(s=null==(n=e.currentState.selectedFrame)?void 0:n.id)?s:null,frameCount:Array.isArray(e.frames)?e.frames.length:null,selection:e.currentState.selection}),null}let m=e.currentState.selection,h=e.resolveActiveNodeId(f.frameId,null!=(p=null==m?void 0:m.nodePath)?p:null,null!=(v=null==m?void 0:m.nodeId)?v:null);return{frame:f.frame,frameId:f.frameId,node:f.node,nodeId:h,nodePath:f.sourcePath,runtimeNodePath:f.runtimeNodePath,source:f.frame.liveSource,sourceInstanceKey:f.sourceInstanceKey,viaInteractionSession:f.viaInteractionSession}}[o,a,l]=d.then?(await d)():d,r()}catch(e){r(e)}})},94352:(e,t,n)=>{n.d(t,{fj:()=>i,hJ:()=>o,z:()=>r});let r=["exportSettings"];function o(e,t){if(e===t)return!1;let n=!1;for(let o of new Set([...Object.keys(e),...Object.keys(t)]))if(!Object.is(Reflect.get(e,o),Reflect.get(t,o))){if(!function(e){return r.some(t=>t===e)}(o))return!1;n=!0}return n}function l(e,t,n){if(e)for(let[o,i]of e.entries()){let e=void 0===i.id?"@".concat(t).concat(o):"#".concat(i.id);for(let t of r){let r=Reflect.get(i,t);void 0!==r&&n.set("".concat(e,".").concat(t),JSON.stringify(r))}l(i.children,"".concat(t).concat(o,"."),n)}}function i(e,t){if(e===t)return!0;let n=new Map;l(e,"",n);let r=new Map;if(l(t,"",r),n.size!==r.size)return!1;for(let[e,t]of n)if(r.get(e)!==t)return!1;return!0}},95324:(e,t,n)=>{n.a(e,async(e,r)=>{try{n.d(t,{$O:()=>I,Bb:()=>m,Fb:()=>f,ZU:()=>g,i3:()=>N,k:()=>y,kH:()=>b,l5:()=>v,rO:()=>P,w4:()=>h,xH:()=>w,yE:()=>p});var o=n(33088),l=n(28994),i=n(21134),a=n(8211),d=n(32539),u=e([a]);function c(e){return e.accepted}a=(u.then?(await u)():u)[0];let S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={...{readRendererReportCursor:i.Gv,scheduleQuiescentOpportunity(e){if("function"==typeof globalThis.requestAnimationFrame){let t=globalThis.requestAnimationFrame(()=>e());return()=>globalThis.cancelAnimationFrame(t)}let t=globalThis.setTimeout(e,0);return()=>globalThis.clearTimeout(t)},scheduleTimeout(e,t){let n=globalThis.setTimeout(e,t);return()=>globalThis.clearTimeout(n)}},...e},n=(0,d.n2)({scheduleTimeout:t.scheduleTimeout}),r=new Map,a=new Map,u=new Map;function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=u.get(e);if(void 0===r){var o,l;for(r={workspaceId:null!=(o=n.workspaceId)?o:null,frameId:null!=(l=n.frameId)?l:null,stages:[]},u.set(e,r);u.size>16;){let e=u.keys().next();if(!0===e.done)break;u.delete(e.value)}}else void 0!==n.frameId&&null!==n.frameId&&(r.frameId=n.frameId);let i=r.stages[r.stages.length-1];if(void 0!==i&&i.stage===t){i.count+=1;return}r.stages.push({stage:t,count:1}),r.stages.length>32&&r.stages.splice(1,1)}function p(e,t){s(e.actionId,t,{workspaceId:e.workspaceId,frameId:"frameId"in e.target?e.target.frameId:null})}function v(e){var t,n;"frameId"in e.target&&r.get(e.target.frameId)===e&&r.delete(e.target.frameId),a.get(e.workspaceId)===e&&a.delete(e.workspaceId),e.quiescenceGeneration+=1,null==(t=e.cancelQuiescence)||t.call(e),e.cancelQuiescence=null,null==(n=e.cancelCleanupTimeout)||n.call(e),e.cancelCleanupTimeout=null}function f(e){let t=n.getStatus(e.workspaceId,e.actionId);if(!c(t)||"pending"===t.evaluation.status)return!1;
1if(p(e,"invalid"===t.evaluation.status?"delivered:invalid:".concat(t.evaluation.code):"delivered:".concat(t.evaluation.status)),"settled"===t.evaluation.status){let n=e.onSettled;e.onSettled=null,null==n||n(t.evaluation.canonicalFingerprint)}else{let n=e.onTerminal;e.onTerminal=null,null==n||n(t.evaluation)}return n.finish(e.workspaceId,e.actionId),v(e),!0}function m(e){var r,o;let l=n.getStatus(e.settlement.workspaceId,e.settlement.actionId);if(!c(l)||"pending"!==l.evaluation.status)return p(e.settlement,c(l)?"projection:not-pending:".concat(l.evaluation.status):"projection:status-rejected:".concat(l.rejection.code)),f(e.settlement),!1;if(l.state.runtimeSessionId!==e.runtimeSessionId){if(l.state.runtimeMatchObserved)return p(e.settlement,"projection:session-refused:match-observed"),!1;if(e.reportSequence<=e.settlement.commitReportSequenceFloor)return p(e.settlement,"projection:session-refused:report-at-or-below-commit-floor"),!1;let t=n.bindRuntimeSession({workspaceId:e.settlement.workspaceId,actionId:e.settlement.actionId,commitRevisionId:e.settlement.commitRevisionId,runtimeSessionId:e.runtimeSessionId,reportSequenceFloor:e.reportSequence-1});if(!c(t))return p(e.settlement,"projection:bind-rejected:".concat(t.rejection.code)),!1;p(e.settlement,"projection:session-bound")}let i=n.reportRuntimeProjection({workspaceId:e.settlement.workspaceId,actionId:e.settlement.actionId,runtimeSessionId:e.runtimeSessionId,reportSequence:e.reportSequence,canonicalFingerprint:e.canonicalFingerprint});return c(i)?((p(e.settlement,i.state.latestRuntimeCanonicalFingerprint===i.state.expectedCanonicalFingerprint?"projection:matched":"projection:mismatched"),"pending"!==i.evaluation.status)?f(e.settlement):(e.settlement.quiescenceGeneration+=1,null==(r=(o=e.settlement).cancelQuiescence)||r.call(o),e.settlement.cancelQuiescence=null,i.state.latestRuntimeCanonicalFingerprint!==i.state.expectedCanonicalFingerprint||i.state.lateDivergenceObserved||function e(r,o){r.cancelQuiescence=t.scheduleQuiescentOpportunity(()=>{if(r.cancelQuiescence=null,a.get(r.workspaceId)!==r||r.quiescenceGeneration!==o)return;let t=n.reportQuiescentOpportunity(r.workspaceId,r.actionId);if(!c(t))return void p(r,"quiescence:rejected:".concat(t.rejection.code));p(r,"quiescence:opportunity"),f(r)||t.state.latestRuntimeCanonicalFingerprint===t.state.expectedCanonicalFingerprint&&!t.state.lateDivergenceObserved&&t.state.quiescentOpportunityCount<t.state.requiredQuiescentOpportunities&&e(r,o)})}(e.settlement,e.settlement.quiescenceGeneration)),!0):(p(e.settlement,"projection:rejected:".concat(i.rejection.code)),!1)}return{acceptCommit(e){var o;let l="frameId"in e.target?t.readRendererReportCursor(e.target.frameId):null,i=n.acceptCommit({workspaceId:e.workspaceId,actionId:e.actionId,commitRevisionId:e.commitRevisionId,commitSequence:e.commitSequence,rendererReportCursor:l,expectedCanonicalFingerprint:e.expectedCanonicalFingerprint,requiredQuiescentOpportunities:2,timeoutMs:15e3,handoffOwnerIds:void 0===e.handoffOwnerId||null===e.handoffOwnerId?[]:[e.handoffOwnerId]});if(!c(i))return s(e.actionId,"accept:rejected:".concat(i.rejection.code),{workspaceId:e.workspaceId,frameId:"frameId"in e.target?e.target.frameId:null}),!1;let d=a.get(e.workspaceId);if(void 0!==d){if(!f(d)){p(d,"superseded-by-next-commit:".concat(e.actionId));let t=d.onTerminal;d.onTerminal=null,d.onSettled=null,null==t||t({status:"superseded",supersededByActionId:e.actionId,supersededByCommitRevisionId:e.commitRevisionId})}a.get(e.workspaceId)===d&&v(d)}if("frameId"in e.target){let t=r.get(e.target.frameId);void 0!==t&&(p(t,"forgotten:frame-claimed-by:".concat(e.actionId)),v(t))}let u={workspaceId:e.workspaceId,actionId:e.actionId,commitRevisionId:e.commitRevisionId,propertyId:e.propertyId,target:e.target,commitReportSequenceFloor:null!=(o=null==l?void 0:l.reportSequence)?o:0,canonicalReportSequence:0,onSettled:null,onTerminal:null,quiescenceGeneration:0,cancelQuiescence:null,cancelCleanupTimeout:null};return"frameId"in e.target&&r.set(e.target.frameId,u),a.set(e.workspaceId,u),p(u,"accepted:commit-report-floor=".concat(u.commitReportSequenceFloor)),u.cancelCleanupTimeout=t.scheduleTimeout(()=>{p(u,"cleanup-timeout");let e=n.getStatus(u.workspaceId,u.actionId);a.get(u.workspaceId)===u&&c(e)&&"pending"===e.evaluation.status&&(e=n.timeout(u.workspaceId,u.actionId)),a.get(u.workspaceId)===u&&c(e)&&"pending"!==e.evaluation.status&&f(u)},15e3),!0},attachSettlement(e){var t;let n=a.get(e.workspaceId);return void 0!==n&&n.actionId===e.actionId&&(void 0===e.frameId||"frameId"in n.target&&n.target.frameId===e.frameId)?(n.onSettled=e.onSettled,n.onTerminal=null!=(t=e.onTerminal)?t:null,p(n,"attached"),f(n),!0):(s(e.actionId,void 0===n?"attach:refused:no-active-settlement":n.actionId!==e.actionId?"attach:refused:active-settlement-is:".concat(n.actionId):"attach:refused:frame-mismatch",{workspaceId:e.workspaceId,...void 0===e.frameId?{}:{frameId:e.frameId}}),!1)},reportRuntimeLayout(e){let t=r.get(e.frameId);if(void 0===t||!("frameId"in t.target))return!1;let n=(0,l.Tr)(e.nodes,t.target.nodePath);
1if(null===n)return p(t,"layout:target-node-missing:".concat(t.target.nodePath)),!1;let o=(0,d.ST)(t.propertyId,n);return o.ok?(p(t,"layout:report-received"),m({settlement:t,runtimeSessionId:e.frameSessionId,reportSequence:e.reportSequence,canonicalFingerprint:o.fingerprint})):(p(t,"layout:projection-failed:".concat(o.reason)),!1)},reportCanonicalProjection(e){let t=a.get(e.workspaceId);return void 0!==t&&t.actionId===e.actionId&&m({settlement:t,runtimeSessionId:e.runtimeSessionId,reportSequence:e.reportSequence,canonicalFingerprint:e.canonicalFingerprint})},reportFrameMembership(e){let t=a.get(e.workspaceId);return void 0!==t&&"frame-membership"===t.target.kind&&(t.canonicalReportSequence+=1,m({settlement:t,runtimeSessionId:e.runtimeSessionId,reportSequence:t.canonicalReportSequence,canonicalFingerprint:(0,o.X1)("structural",JSON.stringify([...e.frameIds].sort()))}))},retireHandoffOwner(e){let t=r.get(e.frameId);if(void 0===t||!("frameId"in t.target)||t.workspaceId!==e.workspaceId||t.actionId!==e.actionId)return!1;
1let o=n.retireHandoffOwner(e.workspaceId,e.actionId,e.ownerId);return!!c(o)&&(f(t),!0)},hasActiveFrame:e=>r.has(e),noteLayoutReportGate(e,t){let n=r.get(e);void 0!==n&&p(n,"layout-gate:".concat(t))},readStageTrace(e){var t,r,o,l,i,a,d;let s=u.get(e);if(void 0===s)return null;let p=null===s.workspaceId?null:n.getStatus(s.workspaceId,e),v=null!==p&&c(p)?p.state:null,f=null!==p&&c(p)?p.evaluation:null,m=s.stages.map(e=>{let{stage:t,count:n}=e;return 1===n?t:"".concat(t," x").concat(n)});return{actionId:e,frameId:s.frameId,stages:m,lastStage:null!=(t=m[m.length-1])?t:null,status:null===p?"untracked":c(p)?"pending"===p.evaluation.status?"pending:".concat(p.evaluation.reason):"invalid"===p.evaluation.status?"invalid:".concat(p.evaluation.code):p.evaluation.status:"status-rejected:".concat(p.rejection.code),expectedCanonicalFingerprint:null!=(r=null==v?void 0:v.expectedCanonicalFingerprint)?r:null,latestRuntimeCanonicalFingerprint:null!=(o=null==v?void 0:v.latestRuntimeCanonicalFingerprint)?o:null,runtimeSessionId:null!=(l=null==v?void 0:v.runtimeSessionId)?l:null,runtimeReportSequenceFloor:null!=(i=null==v?void 0:v.runtimeReportSequenceFloor)?i:null,latestRuntimeReportSequence:null!=(a=null==v?void 0:v.latestRuntimeReportSequence)?a:null,quiescentOpportunityCount:null!=(d=null==v?void 0:v.quiescentOpportunityCount)?d:null,supersededByActionId:(null==f?void 0:f.status)==="superseded"?f.supersededByActionId:null}},hasActiveFrameMembership(e){var t;return(null==(t=a.get(e))?void 0:t.target.kind)==="frame-membership"},getStatus:(e,t)=>n.getStatus(e,t),cancelWorkspace(e){let t=a.get(e);if(void 0===t)return!1;p(t,"cancelled:workspace");let r=n.cancel(e,t.actionId);return!!c(r)&&f(t)},reset(){for(let e of a.values())v(e);u.clear(),r.clear(),a.clear(),n=(0,d.n2)({scheduleTimeout:t.scheduleTimeout})}}}(),x=new Map;function s(e){var t;let n=(null!=(t=x.get(e.workspaceId))?t:0)+1,r=S.acceptCommit({...e,commitSequence:n});return r&&x.set(e.workspaceId,n),r}function p(e){return!!(0,a.u8)(e.workspaceId)&&s(e)}function v(e){let{action:t,historyEntryId:n,...r}=e;return s(r)}function f(e){return S.attachSettlement(e)}function m(e){return S.reportRuntimeLayout(e)}function h(e){return S.attachSettlement(e)}function g(e){return S.reportFrameMembership(e)}function y(e){return S.cancelWorkspace(e)}function I(e){return S.retireHandoffOwner(e)}function w(e,t){S.noteLayoutReportGate(e,t)}function b(e){return S.readStageTrace(e)}function N(e){return S.hasActiveFrame(e)}function P(e){return S.hasActiveFrameMembership(e)}r()}catch(e){r(e)}})},99451:(e,t,n)=>{n.d(t,{Jl:()=>i,Yf:()=>d,jS:()=>l,vP:()=>a});let r=new Set,o=new Set;function l(e){return r.add(e),()=>{r.delete(e)}}function i(){let e=!1;for(let t=0;t<64&&r.size>0;t+=1){let t=!1;for(let n of[...r]){let r=n.flush();e=r||e,t=r||t}if(!t)break}return e}function a(e){let t=!1;for(let n of[...r])t=n.cancel(e)||t;for(let t of o)t(e);return t}function d(e){return o.add(e),()=>{o.delete(e)}}},99842:(e,t,n)=>{n.d(t,{H:()=>l,o:()=>d});var r=n(89038);let o={rowGap:["gap"],columnGap:["gap"],paddingLeft:["padding","paddingInline"],paddingRight:["padding","paddingInline"],paddingTop:["padding","paddingBlock"],paddingBottom:["padding","paddingBlock"],paddingHorizontal:["padding","paddingInline"],paddingVertical:["padding","paddingBlock"],marginLeft:["margin","marginInline"],marginRight:["margin","marginInline"],marginTop:["margin","marginBlock"],marginBottom:["margin","marginBlock"],left:["inset"],right:["inset"],top:["inset"],bottom:["inset"],backgroundColor:["background"],borderTopLeftRadius:["borderRadius"],borderTopRightRadius:["borderRadius"],borderBottomRightRadius:["borderRadius"],borderBottomLeftRadius:["borderRadius"],borderColor:["border"],borderWidth:["border"],borderStyle:["border"],flexGrow:["flex"],flexShrink:["flex"],flexBasis:["flex"],flexDirection:["flexFlow"],overflowX:["overflow"],overflowY:["overflow"],fontSize:["font"],fontWeight:["font"],lineHeight:["font"],alignItems:["placeItems"],justifyContent:["placeContent"],gridTemplateColumns:["gridTemplate"],gridTemplateRows:["gridTemplate"]};function l(e,t){var n;return!!t.has(e)||(null!=(n=o[e])?n:[]).some(e=>t.has(e))}let i=new Set(["left","right","top","bottom","width","height"]);function a(e,t,n){var r,o,l,i,a,d,u,c,s,p,v,f;return"width"===e?t.width!==n.width||(null==(r=t.sizing)?void 0:r.widthMode)!==(null==(o=n.sizing)?void 0:o.widthMode):"height"===e?t.height!==n.height||(null==(l=t.sizing)?void 0:l.heightMode)!==(null==(i=n.sizing)?void 0:i.heightMode):"left"===e||"right"===e?t.layoutPositioning!==n.layoutPositioning||(null==(a=t.constraints)?void 0:a.horizontal)!==(null==(d=n.constraints)?void 0:d.horizontal)||(null==(u=t.absoluteRenderPosition)?void 0:u[e])!==(null==(c=n.absoluteRenderPosition)?void 0:c[e]):("top"===e||"bottom"===e)&&(t.layoutPositioning!==n.layoutPositioning||(null==(s=t.constraints)?void 0:s.vertical)!==(null==(p=n.constraints)?void 0:p.vertical)||(null==(v=t.absoluteRenderPosition)?void 0:v[e])!==(null==(f=n.absoluteRenderPosition)?void 0:f[e]))}function d(e){var t,n,o,d,u,c,s,p,v,f,m,h,g,y,I,w;let{previousNode:b,nextNode:N,authorship:P,options:S}=e,x=new Map,R=new Map,k=new Map,C=new Map,F=new Map;for(let e of r.qZ){let t=(0,r.hb)(e),n=null!=(c=null==(u=t.classTokens)?void 0:u.call(t,b,N,S))?c:[];n.length>0&&R.set(e,n)}for(let e of r.pf){let t=(0,r.hb)(e),n=null!=(p=null==(s=t.styleObject)?void 0:s.call(t,b,N,P.mode))?p:[];if(0===n.length)continue;let o=P.animateWritable&&P.animateOwnsStyle?n.filter(e=>i.has(e.property)&&l(e.property,P.authoredAnimateKeys)):[];o.length>0&&C.set(e,new Set(o.map(e=>e.property)));let d=o.filter(e=>a(e.property,b,N));d.length>0&&F.set(e,d);let u=n.filter(e=>!o.some(t=>t.property===e.property));u.length>0&&k.set(e,u)}if((b.width!==N.width||b.height!==N.height||(null==(t=b.sizing)?void 0:t.widthMode)!==(null==(n=N.sizing)?void 0:n.widthMode)||(null==(o=b.sizing)?void 0:o.heightMode)!==(null==(d=N.sizing)?void 0:d.heightMode))&&"writable"===P.styleAttribute){let e=[...null!=(v=k.get("width"))?v:[]];for(let t of["flexGrow","flexShrink"])P.authoredStyleKeys.has(t)&&!e.some(e=>e.property===t)&&e.push({property:t,value:null!=(m=null==(f=N.sizing)?void 0:f[t])?m:null});e.length>0&&k.set("width",e)}let A=new Set([...R.keys(),...k.keys(),...F.keys()]),T=e=>{var t,n,r;return 0!==P.cssRuleImportantKeys.size&&[...(null!=(t=R.get(e))?t:[]).map(e=>e.property).filter(e=>null!=e),...(null!=(n=k.get(e))?n:[]).map(e=>e.property),...(null!=(r=F.get(e))?r:[]).map(e=>e.property)].some(e=>l(e,P.cssRuleImportantKeys))},z=e=>{var t;return P.cssRuleAuthoredKeys.size>0&&(null!=(t=k.get(e))?t:[]).some(e=>l(e.property,P.cssRuleAuthoredKeys))};for(let e of A){if(T(e)){x.set(e,"blocked");continue}let t=R.has(e),n=z(e);if(n&&"opaque"===P.styleAttribute){x.set(e,"blocked");continue}if(!(k.has(e)&&("writable"===P.styleAttribute||n&&"absent"===P.styleAttribute))){x.set(e,"class");continue}if(n||!t||"react-native"===P.mode||k.get(e).some(e=>l(e.property,P.authoredStyleKeys))){x.set(e,"style");continue}x.set(e,"absent"===P.styleAttribute||P.classNameMeaningful?"class":"style")}let M=[],E=P.animateOwnsStyle&&P.hasAnimateAttribute&&!P.animateWritable,L=new Set;if(E)for(let e of A)[...(null!=(h=R.get(e))?h:[]).map(e=>e.property).filter(e=>null!=e),...(null!=(g=k.get(e))?g:[]).map(e=>e.property)].some(e=>i.has(e)&&a(e,b,N))&&L.add(e);for(let e of r.qZ){if(L.has(e)||"blocked"===x.get(e))continue;let t=R.get(e);if(!t)continue;let n=null!=(y=C.get(e))?y:new Set;for(let r of t)null!=r.property&&n.has(r.property)||"class"!==x.get(e)?M.push({...r,token:null}):M.push(r)}let O=[];for(let e of r.pf)if(!L.has(e)&&"style"===x.get(e))for(let t of null!=(I=k.get(e))?I:[])O.some(e=>e.property===t.property)||O.push(null==t.value&&"react-native"!==P.mode&&l(t.property,P.cssRuleAuthoredKeys)?{...t,value:"unset"}:t);let B=[];for(let e of r.pf)if("blocked"!==x.get(e))for(let t of null!=(w=F.get(e))?w:[])B.some(e=>e.property===t.property)||B.push(t);return{classUpdates:M,objectWrites:O,animateWrites:B}}}}]);

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