slice-machine-ui 1.11.1-dev-next-release.3 → 1.11.1-dev-next-release.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/[lib]/[sliceName]/[variation]/screenshot.html +1 -1
- package/out/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/[lib]/[sliceName]/[variation].html +1 -1
- package/out/_next/static/N2nU1yPW38KWsgo9OL-hs/_buildManifest.js +1 -0
- package/out/_next/static/chunks/119-626b7b48e4535694.js +1 -0
- package/out/_next/static/chunks/18539003-b0b0df3d19f7d641.js +101 -0
- package/out/_next/static/chunks/{377-b56942f89a32f187.js → 377-c283ea91a489e394.js} +1 -1
- package/out/_next/static/chunks/{482-5ae2d1fd2572cb1f.js → 482-ad5ef8eecedd8b52.js} +1 -1
- package/out/_next/static/chunks/{573-c4f805b20b6710f3.js → 573-aaae870d20e5f86c.js} +1 -1
- package/out/_next/static/chunks/677-d8555c165c261511.js +1 -0
- package/out/_next/static/chunks/{791-091202c1718b4ac3.js → 740-d0642219804fa9f0.js} +2 -2
- package/out/_next/static/chunks/{799-c9b2e3b17c549fcb.js → 799-4787c871f6119407.js} +1 -1
- package/out/_next/static/chunks/pages/[lib]/[sliceName]/[variation]/{simulator-e51d1161076d4797.js → simulator-2c6033d99c3672e0.js} +1 -1
- package/out/_next/static/chunks/pages/[lib]/[sliceName]/{[variation]-4b4fed1e884838ad.js → [variation]-bd1822e54ac8836c.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-3e394a2850d45089.js → _app-2351f4803a15a482.js} +98 -98
- package/out/_next/static/chunks/pages/{changelog-c08cc37b54d73a60.js → changelog-dda7774c702c6b47.js} +1 -1
- package/out/_next/static/chunks/pages/{changes-3b7c6b9b312b5e2f.js → changes-26dab4f4657a54e4.js} +1 -1
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-96a84e8b6c05f89a.js → [customTypeId]-a69df1ad7fd8b927.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-a79c1975faa032ad.js → [pageTypeId]-5e4e26de800fccff.js} +1 -1
- package/out/_next/static/chunks/pages/{slices-c1c10ec21d9638ba.js → slices-d1c96629e458440c.js} +1 -1
- package/out/_next/static/css/{a978ac70ea31c6d7.css → 6639e1548a7d3442.css} +1 -1
- package/out/_next/static/css/{bbe0f7491bdca3fc.css → 6c430d5aaa4ef12a.css} +1 -1
- package/out/_next/static/css/74653a9f89a68929.css +1 -0
- package/out/_next/static/css/{f7381722c36382c6.css → d4b59834999106a5.css} +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +7 -7
- package/out/_next/static/_TkJnwLB4OLPskwNKieVm/_buildManifest.js +0 -1
- package/out/_next/static/chunks/119-ba8925fa598b505b.js +0 -1
- package/out/_next/static/chunks/18539003-b49b17dc02a89c7b.js +0 -101
- package/out/_next/static/chunks/962-6beea758652e94f7.js +0 -1
- package/out/_next/static/css/de841cf04740a2ad.css +0 -1
- /package/out/_next/static/{_TkJnwLB4OLPskwNKieVm → N2nU1yPW38KWsgo9OL-hs}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[377],{96377:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var i=t(62230),s=t(85244),r=t(17064),a=t(81541),d=t(52322),l=t(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[377],{96377:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var i=t(62230),s=t(85244),r=t(17064),a=t(81541),d=t(52322),l=t(21658),c=t(13980),o=t(2784),u=t(18978),p=t(65077),x=t(75289),f=t(28173),h=t(75012),g=t(9620),m=t(2967),j=t(71168),y=t(51579),b=t(13394),v=t(99968),R=t(92809),_=function(e){var n=e.fields,t=e.title,r=e.tabId,a=e.enterEditMode,l=e.enterSelectMode,c=e.onDragEnd,o=e.renderFieldAccessor,u=e.onDeleteItem,p=e.showHints,f=e.newField,h=e.renderHintBase,g=e.isRepeatable,_=e.dataCy,S=e.isRepeatableCustomType,w=e.sx;return(0,d.jsx)(m.Z5,{onDragEnd:c,children:(0,d.jsx)(m.bK,{droppableId:t,children:function(e,t){return(0,d.jsxs)(x.xu,(0,s.Z)((0,i.Z)({as:"ul",ref:e.innerRef},e.droppableProps),{"data-cy":_,sx:w,children:[n.map(function(e,n){var c=e.value,f=c.config,m=c.type,_=(0,v.t)(b,f,m);if(!_)return(0,d.jsx)(j.Z,{children:(0,d.jsxs)(x.xv,{children:['Field type "',m,'" not supported']})});var w={item:e,index:n,tabId:r,widget:_,showHints:p,key:e.key,enterSelectMode:l,renderFieldAccessor:o,enterEditMode:a,parentSnapshot:t,deleteItem:u,draggableId:"list-item-".concat(e.key),isRepeatableCustomType:S};if(_.CustomListItem){var C=_.CustomListItem;return(0,d.jsx)(C,(0,i.Z)({},w))}var k=(0,d.jsx)(R.Z,{item:e,show:p,isRepeatable:g,renderHintBase:h,Widgets:b,typeName:_.CUSTOM_NAME||_.TYPE_NAME});return(0,d.jsx)(y.Z,(0,s.Z)((0,i.Z)({},w),{HintElement:k}))}),e.placeholder,f]}))}})})},S=function(e){var n=e.onEnterSelectMode,t=e.zoneName;return(0,d.jsxs)(x.xu,{sx:{textAlign:"center",my:4},children:[(0,d.jsx)(x.X6,{as:"h5",children:"Add a new field here"}),(0,d.jsx)(x.xu,{sx:{my:2},children:(0,d.jsxs)(x.xv,{sx:{color:"textClear"},children:["Add a field to your ",t," Zone"]})}),(0,d.jsxs)(x.zx,{mt:3,variant:"buttons.darkSmall",onClick:function(){return n()},"data-cy":"add-".concat(t,"-field"),children:[(0,d.jsx)(u.wEH,{style:{marginRight:"8px",position:"relative",top:"2px"}})," ","Add a new field"]})]})},w=function(e){var n=e.Heading,t=e.Actions;return(0,d.jsxs)(x.kC,{bg:"grey02",sx:{pl:3,pr:2,py:2,mb:2,borderRadius:"6px",alignItems:"center",minHeight:"51px",justifyContent:"space-between"},children:[(0,d.jsx)(x.kC,{sx:{alignItems:"center"},children:n}),(0,d.jsx)(x.kC,{sx:{alignItems:"center"},children:t})]})},C=function(e){var n=e.zoneType,t=e.tabId,c=e.title,m=e.fields,j=e.poolOfFieldsToCheck,y=e.widgetsArray,b=e.isRepeatable,v=e.onDeleteItem,R=e.onSaveNewField,C=e.onDragEnd,k=e.EditModal,E=e.onSave,Z=e.dataTip,A=e.renderHintBase,I=e.renderFieldAccessor,F=e.dataCy,T=e.isRepeatableCustomType,H="customType"===n,N=Object.entries(j).find(function(e){return"UID"===(0,r.Z)(e,2)[1].value.type})?y.filter(function(e){return"UID"!==e.TYPE_NAME}):y,M=(0,o.useState)(!1),O=M[0],q=M[1],D=(0,o.useState)({isOpen:!1}),z=D[0],B=D[1],P=(0,o.useState)({isOpen:!1}),U=P[0],L=P[1],X=(0,o.useState)(null),Y=X[0],K=X[1],W=function(e){B({isOpen:!0,field:e})},G=function(){L({isOpen:!0})},J=function(){B({isOpen:!1})},Q=function(){return L({isOpen:!1})},V=function(e){K({widgetTypeName:e,fields:m}),L({isOpen:!1})},$=function(){return K(null)};return(0,d.jsxs)(f.a,{children:[H?(0,d.jsx)(f.B,{actions:m.length>0?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(l.zx,{onClick:function(){return q(!O)},children:[O?"Hide":"Show"," code snippets"]}),(0,d.jsx)(l.zx,{"data-cy":"add-".concat(b?"Repeatable":"Static","-field"),onClick:function(){return G()},variant:"tertiary",children:"Add a new Field"})]}):void 0,children:c}):(0,d.jsx)(p.xR,{children:(0,d.jsx)(w,{Heading:(0,d.jsx)(x.X6,{as:"h6",children:c}),Actions:m.length>0?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(x.zx,{variant:"buttons.lightSmall",onClick:function(){return q(!O)},children:[(0,d.jsx)(u.tvD,{style:{marginRight:"8px",position:"relative",top:"2px"}})," ",O?"Hide":"Show"," code snippets"]}),(0,d.jsxs)(x.zx,{ml:2,variant:"buttons.darkSmall",onClick:function(){return G()},"data-cy":"add-".concat(b?"Repeatable":"Static","-field"),children:[(0,d.jsx)(u.wEH,{style:{marginRight:"8px",position:"relative",top:"2px"}}),"Add a new Field"]})]}):null})}),0!==m.length||Y?m.length>0||Y?(0,d.jsx)(p.xR,{children:(0,d.jsx)(_,{tabId:t,isRepeatable:b,fields:m,showHints:O,dataTip:Z,title:c,renderFieldAccessor:I,renderHintBase:A,enterEditMode:W,enterSelectMode:G,onDragEnd:C,onDeleteItem:v,dataCy:F,isRepeatableCustomType:T,newField:Y&&(0,d.jsx)(g.Z,(0,s.Z)((0,i.Z)({},Y),{fields:j||m,onSave:function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];R.apply(void 0,(0,a.Z)(n)),K(null)},onCancelNewField:$})),sx:H?{paddingInline:"16px !important"}:{}})}):void 0:(0,d.jsx)(p.xR,{children:(0,d.jsx)(S,{onEnterSelectMode:function(){return G()},zoneName:b?"Repeatable":"Static"})}),(0,d.jsx)(k,{data:z,close:J,onSave:E,fields:j,zoneType:n}),(0,d.jsx)(h.Z,{data:U,close:Q,onSelect:V,widgetsArray:N})]})};C.propTypes={isRepeatable:c.bool,title:c.string.isRequired,dataTip:c.string.isRequired,onSave:c.func.isRequired,onSaveNewField:c.func.isRequired,onDragEnd:c.func.isRequired,onDeleteItem:c.func.isRequired,poolOfFieldsToCheck:(0,c.arrayOf)((0,c.shape)({key:c.string,value:c.object})),renderHintBase:c.func.isRequired,renderFieldAccessor:c.func.isRequired,widgetsArray:c.array.isRequired,fields:(0,c.arrayOf)((0,c.shape)({key:c.string.isRequired,value:(0,c.shape)({config:c.object,fields:c.array,type:c.string.isRequired})}))};var k=C},28173:function(e,n,t){"use strict";t.d(n,{a:function(){return l},B:function(){return c}});var i=t(62230),s=t(85244),r=t(98240),a=t(52322),d=t(21658);t(52968);var l=function(e){return(0,a.jsx)("article",(0,s.Z)((0,i.Z)({},e),{className:"_2a96i70 _1ecs97d9bi _1ecs97d9bk _1ecs97d9bt"}))},c=function(e){var n=e.actions,t=e.children,l=e.toggle,c=(0,r.Z)(e,["actions","children","toggle"]);return(0,a.jsxs)("header",(0,s.Z)((0,i.Z)({},c),{className:"_2a96i71 _1ecs97d9bi _1ecs97d9bk _1ecs97d9bq _1ecs97dm _1ecs97d7z _1ecs97d48s _1ecs97d4g5 _1ecs97d9eo _1ecs97d9f1 _1ecs97d9bj _1ecs97d9bu _1ecs97d9l0 _1ecs97d9j4 _1ecs97d9rc _1ecs97d9ro",children:[(0,a.jsx)(d.xv,{color:"grey11",component:"span",variant:"smallBold",children:t}),l,(0,a.jsx)(d.hE,{className:"_1ecs97d9bv _1ecs97d9c1",size:"medium",variant:"secondary",children:n})]}))}},52968:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[482],{91563:function(e,n,t){"use strict";t.d(n,{F:function(){return et}});var r=t(52322),s=t(2784),a=t(10873),l=t(97729),c=t.n(l),i=t(56580),d=t(32038),o=t(90374),u=t(32665),h=t(3098),x=t(62230),C=t(85244),p=t(75289),f=t(68780),m=t(70041),j=t(17064),g=t(63397),v=t(78656),_=t(98240),y=function(e){var n=e.selected,t=(0,_.Z)(e,["selected"]);return(0,r.jsx)(p.kC,(0,x.Z)({sx:{p:"24px",mb:3,alignItems:"top",cursor:"pointer",borderRadius:"6px",backgroundColor:"grayLight",boxShadow:n?function(e){var n;return"0 0 0 2px ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.primary))}:"none","&:hover":{boxShadow:function(e){var n;return"0 0 0 2px ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.primary))}}}},t))},b=function(e){var n=e.format,t=(0,j.Z)((0,g.U$)("repeatable"),3),s=t[0],a=t[2],l=v.$[n];return(0,r.jsxs)(p.xu,{mb:2,children:[(0,r.jsxs)(y,{selected:s.value,onClick:function(){return a.setValue(!0)},children:[(0,r.jsx)(p.Y8,{checked:s.value,onChange:function(){},"data-cy":"repeatable-type-radio-btn"}),(0,r.jsxs)(p.xu,{sx:{marginLeft:2},children:["Reusable type",(0,r.jsx)(p.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:l.hintRepeatable})]})]}),(0,r.jsxs)(y,{selected:!s.value,onClick:function(){return a.setValue(!1)},children:[(0,r.jsx)(p.Y8,{checked:!s.value,onChange:function(){},"data-cy":"single-type-radio-btn"}),(0,r.jsxs)(p.xu,{sx:{marginLeft:2},children:["Single type",(0,r.jsx)(p.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:l.hintSingle})]})]})]})},T=t(49471),L=t(77174),w=t(24340),S=t(82770),k=t(38876),Z=t(75329),H=function(e){var n=e.format,t=(0,o.Z)(),a=t.createCustomType,l=t.closeModals,c=(0,i.v9)(function(e){return{customTypeIds:(0,T.W6)(e),customTypeLabels:(0,T.YS)(e),isCreateCustomTypeModalOpen:(0,L.gP)(e,w.q.CREATE_CUSTOM_TYPE),isCreatingCustomType:(0,u.hg)(e,h.z.CREATE_CUSTOM_TYPE)}}),d=c.customTypeIds,j=c.isCreateCustomTypeModalOpen,g=c.isCreatingCustomType,_=c.customTypeLabels,y=v.$[n],H=(0,s.useState)(!0),N=H[0],E=H[1],M=function(e){var t=e.id,r=e.label,s=e.repeatable,c=r||t;S.Xe.track({event:"custom-type:created",id:t,name:c,format:n,type:s?"repeatable":"single"}),a(t,c,s,n),l(),E(!0)},R=function(e,n,t){t(N?(0,C.Z)((0,x.Z)({},n),{label:e.target.value,id:(0,k.lV)(e.target.value)}):(0,C.Z)((0,x.Z)({},n),{label:e.target.value}))},I=function(e,n){n("id",e.target.value),E(!1)};return(0,r.jsx)(f.Z,{dataCy:"create-ct-modal",isOpen:j,widthInPx:"530px",formId:"create-custom-type",buttonLabel:"Create",close:function(){l(),E(!0)},onSubmit:M,isLoading:g,initialValues:{repeatable:!0,id:"",label:""},validate:function(e){var n=e.id,t=e.label,r={};return t&&t.length||(r.label="Cannot be empty."),!r.label&&_.includes(t)&&(r.label="".concat(y.name({start:!0,plural:!1})," name is already taken.")),n&&n.length||(r.id="ID cannot be empty."),r.id||!n||Z.xo.exec(n)||(r.id="Invalid id: No special characters allowed."),!r.id&&n&&d.map(function(e){return e.toLowerCase()}).includes(n)&&(r.id='ID "'.concat(n,'" exists already.')),Object.keys(r).length>0?r:void 0},content:{title:"Create a new ".concat(y.name({start:!1,plural:!1}))},children:function(e){var t=e.errors,s=e.setValues,a=e.setFieldValue,l=e.values,c=e.touched;return(0,r.jsxs)(p.xu,{children:[(0,r.jsx)(b,{format:n}),(0,r.jsx)(m.W,{name:"label",label:"".concat(y.name({start:!0,plural:!1})," Name"),dataCy:"ct-name-input",placeholder:"A display name for the ".concat(y.name({start:!1,plural:!1})),error:c.label?t.label:void 0,onChange:function(e){return R(e,l,s)}}),(0,r.jsx)(m.W,{name:"id",dataCy:"ct-id-input",label:"".concat(y.name({start:!0,plural:!1})," ID"),placeholder:y.inputPlaceholder,error:c.id?t.id:void 0,onChange:function(e){return I(e,a)}})]})}})},N=t(5632),E=t(67557),M=t(6277);t(39211);var R=function(e){var n=e.children;return(0,r.jsx)("div",{className:"_1ecs97d90i _1ecs97d90n _1ecs97d23s _1ecs97d2b5 _1ecs97d927 _1ecs97d93j _1ecs97d93x _1ecs97d919",children:(0,r.jsx)("table",{className:"gdfsm51 _1ecs97d90i _1ecs97d90n _1ecs97d953 _1ecs97d962",children:n})})},I=(0,s.createContext)("body");function V(){return(0,s.useContext)(I)}var z=function(e){var n=e.children;return(0,r.jsx)(I.Provider,{value:"head",children:(0,r.jsx)("thead",{className:"gdfsm52 _1ecs97d90i _1ecs97d90n _1ecs97d18 _1ecs97d8l",children:n})})},P=function(e){var n=e.children;return(0,r.jsx)(I.Provider,{value:"body",children:(0,r.jsx)("tbody",{className:"gdfsm53 _1ecs97d90i _1ecs97d90n",children:n})})},O="prismicTableRow",A=function(e){var n,t=e.children,s=e.onClick,a=V();return(0,r.jsx)("tr",{"data-tag":O,className:(0,M.W)("_1ecs97d90i _1ecs97d90n _1ecs97d980",(n={},(0,E.Z)(n,"_1ecs97d95c",!!s),(0,E.Z)(n,"_1ecs97dm _1ecs97d7z _1ecs97d3c _1ecs97dap _1ecs97d2w _1ecs97da9 _1ecs97d982 _1ecs97d9h7 _1ecs97d91v _1ecs97d9h9","body"===a),n)),onClick:function(e){s&&e.target.closest("tr[data-tag=".concat(O,"]"))&&s(e)},children:t})},D=function(e){var n=e.children,t=V();return(0,r.jsx)("head"===t?"th":"td",{className:"gdfsm55 _1ecs97d90i _1ecs97d90n _1ecs97d23s _1ecs97d2b5 _1ecs97d93x _1ecs97d90j _1ecs97d672 _1ecs97d6ef _1ecs97d95f _1ecs97d9gh",children:(0,r.jsx)("div",{className:"gdfsm56 _1ecs97d90i _1ecs97d90k",children:n})})},F=function(){return(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M8 28H24C25.1046 28 26 27.1046 26 26V9L21 4H8C6.89543 4 6 4.89543 6 6V26C6 27.1046 6.89543 28 8 28Z",fill:"#6E56CF"}),(0,r.jsx)("path",{d:"M23 9H26L21 4V7C21 8.10457 21.8954 9 23 9Z",fill:"#9E8CFC"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0912 12C13.2794 12 11 14.2794 11 17.0912C11 19.903 13.2794 22.1824 16.0912 22.1824C17.9763 22.1824 19.6215 21.1577 20.501 19.6372C20.6563 19.3688 20.7878 19.0849 20.8926 18.7883C20.9846 18.5279 20.8482 18.2422 20.5878 18.1502C20.3275 18.0582 20.0418 18.1947 19.9498 18.455C19.8657 18.693 19.7601 18.9209 19.6354 19.1365C18.9273 20.3606 17.6049 21.1824 16.0912 21.1824C13.8317 21.1824 12 19.3507 12 17.0912C12 14.8317 13.8317 13 16.0912 13C17.4478 13 18.6507 13.66 19.3955 14.6782H17.6216C17.3455 14.6782 17.1216 14.9021 17.1216 15.1782C17.1216 15.4544 17.3455 15.6782 17.6216 15.6782H20.2998C20.576 15.6782 20.7998 15.4544 20.7998 15.1782V12.5C20.7998 12.2239 20.576 12 20.2998 12C20.0237 12 19.7998 12.2239 19.7998 12.5V13.6032C18.8717 12.6167 17.5536 12 16.0912 12Z",fill:"white"})]})},Y=function(){return(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M8 28H24C25.1046 28 26 27.1046 26 26V9L21 4H8C6.89543 4 6 4.89543 6 6V26C6 27.1046 6.89543 28 8 28Z",fill:"#6E56CF"}),(0,r.jsx)("path",{d:"M23 9H26L21 4V7C21 8.10457 21.8954 9 23 9Z",fill:"#9E8CFC"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0869 14.6818L14.6627 12.3787C14.7183 12.1561 14.9183 12 15.1477 12C15.473 12 15.7117 12.3057 15.6328 12.6213L15.1177 14.6818H17.7232L18.299 12.3787C18.3547 12.1561 18.5547 12 18.7841 12C19.1094 12 19.3481 12.3057 19.2692 12.6213L18.754 14.6818H21C21.2761 14.6818 21.5 14.9057 21.5 15.1818C21.5 15.458 21.2761 15.6818 21 15.6818H18.504L17.8449 18.3182H20C20.2761 18.3182 20.5 18.542 20.5 18.8182C20.5 19.0943 20.2761 19.3182 20 19.3182H17.5949L17.0192 21.6213C16.9635 21.8439 16.7635 22 16.5341 22C16.2088 22 15.9701 21.6943 16.049 21.3787L16.5642 19.3182H13.9586L13.3828 21.6213C13.3272 21.8439 13.1272 22 12.8977 22C12.5724 22 12.3338 21.6943 12.4127 21.3787L12.9278 19.3182H11C10.7239 19.3182 10.5 19.0943 10.5 18.8182C10.5 18.542 10.7239 18.3182 11 18.3182H13.1778L13.8369 15.6818H12C11.7239 15.6818 11.5 15.458 11.5 15.1818C11.5 14.9057 11.7239 14.6818 12 14.6818H14.0869ZM16.8142 18.3182L17.4732 15.6818H14.8677L14.2086 18.3182H16.8142Z",fill:"white"})]})},$=t(67445),U=t(22710),W=t(99267),q=t(17329),B=t(40147),J=t(7819),K=t(607);function Q(e){return G.apply(this,arguments)}function G(){return(G=(0,U.Z)(function(e){var n,t,r;return(0,W.__generator)(this,function(s){switch(s.label){case 0:return[4,B.j.customTypes.readAllCustomTypes({format:e})];case 1:if(t=(n=s.sent()).errors,r=n.models,t.length>0)throw t;return[2,r.map(function(e){return e.model})]}})})).apply(this,arguments)}var X=t(2754),ee=t(19345),en=function(e){var n,t,l,c,d,u,h=e.format,x=e.isCreatingCustomType,C=(0,o.Z)().openCreateCustomTypeModal,p=(0,N.useRouter)(),f=(t=(0,s.useCallback)(function(e){return(0,q.VA)(Q,[h],e)},[h]),{customTypes:(0,q.QT)(Q,[h]),updateCustomTypes:t}),m=f.customTypes,j=f.updateCustomTypes,g=m.sort(function(e,n){return e.id.localeCompare(n.id)}),_=$.cd[h],y=v.$[h];return(u=(0,i.v9)(function(e){return{storeCustomTypes:(0,T.Ch)(e).filter(J.TG)}}).storeCustomTypes,(0,s.useEffect)(function(){var e=u.filter(function(e){return e.local.format===h});(e.length!==m.length||e.some(function(e){var n=m.find(function(n){return n.id===e.local.id});return!n||JSON.stringify(K.Dc.fromSM(e.local))!==JSON.stringify(n)}))&&j(e.map(function(e){var n=e.local;return K.Dc.fromSM(n)}))},[h,j,m,u]),0===g.length)?(0,r.jsxs)(X.R$,{style:{alignSelf:"center",marginTop:a.TV.size[72]},children:[(0,r.jsx)(X.u2,{children:(0,r.jsx)(a.Ee,{src:_.blankSlateImage,sizing:"cover"})}),(0,r.jsxs)(X.T9,{children:[(0,r.jsx)(X._T,{children:y.name({start:!0,plural:!0})}),(0,r.jsx)(X.nf,{children:y.blankSlateDescription}),(0,r.jsx)(X.Qj,{children:(0,r.jsx)(a.zx,{onClick:C,loading:x,children:"Create"})})]})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(R,{children:[(0,r.jsx)(z,{children:(0,r.jsxs)(A,{children:[(0,r.jsx)(D,{children:(0,r.jsx)(a.I5,{name:"notes",size:"medium"})}),(0,r.jsx)(D,{children:"Label"}),(0,r.jsx)(D,{children:"API ID"}),(0,r.jsx)(D,{children:"Limit"}),(0,r.jsx)(D,{})]})}),(0,r.jsx)(P,{children:g.map(function(e){var n=e.repeatable,t=e.label,s=e.id;return(0,r.jsxs)(A,{onClick:function(){p.push($.cd[h].getBuilderPagePathname(s))},children:[(0,r.jsx)(D,{children:n?(0,r.jsx)(F,{}):(0,r.jsx)(Y,{})}),(0,r.jsx)(D,{children:t}),(0,r.jsx)(D,{children:s}),(0,r.jsx)(D,{children:n?"Reusable":"Single"}),(0,r.jsx)(D,{children:(0,r.jsx)(ee._,{isChangesLocal:!1,format:h,customType:e})})]},s)})})]})})},et=function(e){var n=e.format,t=v.$[n],l=(0,o.Z)().openCreateCustomTypeModal,x=(0,i.v9)(function(e){return{isCreatingCustomType:(0,u.hg)(e,h.z.CREATE_CUSTOM_TYPE)}}).isCreatingCustomType;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c(),{children:(0,r.jsxs)("title",{children:[t.name({start:!0,plural:!0})," - Slice Machine"]})}),(0,r.jsx)(a.SV,{renderError:function(){return(0,r.jsx)(d.LN,{children:(0,r.jsx)(d.RN,{children:(0,r.jsx)(a.xu,{alignItems:"center",justifyContent:"center",children:(0,r.jsx)(a.Iq,{title:"Request failed",description:"An error occurred while fetching your ".concat(t.name({start:!1,plural:!0}),".")})})})})},children:(0,r.jsx)(s.Suspense,{fallback:(0,r.jsxs)(d.LN,{children:[(0,r.jsxs)(d.wd,{children:[(0,r.jsx)(d.Cx,{folder:t.name({start:!0,plural:!0})}),(0,r.jsx)(d.K2,{children:(0,r.jsx)(a.zx,{disabled:!0,startIcon:"add",children:"Create"})})]}),(0,r.jsx)(d.RN,{children:(0,r.jsx)(a._3,{})})]}),children:(0,r.jsxs)(d.LN,{children:[(0,r.jsxs)(d.wd,{children:[(0,r.jsx)(d.Cx,{folder:t.name({start:!0,plural:!0})}),(0,r.jsx)(d.K2,{children:(0,r.jsx)(a.zx,{"data-cy":"create-ct",loading:x,onClick:l,startIcon:"add",children:"Create"})})]}),(0,r.jsx)(d.RN,{children:(0,r.jsxs)(a.xu,{flexDirection:"column",children:[(0,r.jsx)(en,{format:n,isCreatingCustomType:x}),(0,r.jsx)(H,{format:n})]})})]})})})]})}},39211:function(){}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[482],{91563:function(e,n,t){"use strict";t.d(n,{F:function(){return et}});var r=t(52322),s=t(2784),a=t(21658),l=t(97729),c=t.n(l),i=t(56580),d=t(32038),o=t(90374),u=t(32665),h=t(3098),x=t(62230),C=t(85244),p=t(75289),m=t(68780),f=t(70041),j=t(17064),g=t(63397),b=t(78656),v=t(98240),_=function(e){var n=e.selected,t=(0,v.Z)(e,["selected"]);return(0,r.jsx)(p.kC,(0,x.Z)({sx:{p:"24px",mb:3,alignItems:"top",cursor:"pointer",borderRadius:"6px",backgroundColor:"grayLight",boxShadow:n?function(e){var n;return"0 0 0 2px ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.primary))}:"none","&:hover":{boxShadow:function(e){var n;return"0 0 0 2px ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.primary))}}}},t))},y=function(e){var n=e.format,t=(0,j.Z)((0,g.U$)("repeatable"),3),s=t[0],a=t[2],l=b.$[n];return(0,r.jsxs)(p.xu,{mb:2,children:[(0,r.jsxs)(_,{selected:s.value,onClick:function(){return a.setValue(!0)},children:[(0,r.jsx)(p.Y8,{checked:s.value,onChange:function(){},"data-cy":"repeatable-type-radio-btn"}),(0,r.jsxs)(p.xu,{sx:{marginLeft:2},children:["Reusable type",(0,r.jsx)(p.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:l.hintRepeatable})]})]}),(0,r.jsxs)(_,{selected:!s.value,onClick:function(){return a.setValue(!1)},children:[(0,r.jsx)(p.Y8,{checked:!s.value,onChange:function(){},"data-cy":"single-type-radio-btn"}),(0,r.jsxs)(p.xu,{sx:{marginLeft:2},children:["Single type",(0,r.jsx)(p.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:l.hintSingle})]})]})]})},T=t(49471),L=t(77174),w=t(24340),S=t(82770),k=t(38876),Z=t(75329),H=function(e){var n=e.format,t=(0,o.Z)(),a=t.createCustomType,l=t.closeModals,c=(0,i.v9)(function(e){return{customTypeIds:(0,T.W6)(e),customTypeLabels:(0,T.YS)(e),isCreateCustomTypeModalOpen:(0,L.gP)(e,w.q.CREATE_CUSTOM_TYPE),isCreatingCustomType:(0,u.hg)(e,h.z.CREATE_CUSTOM_TYPE)}}),d=c.customTypeIds,j=c.isCreateCustomTypeModalOpen,g=c.isCreatingCustomType,v=c.customTypeLabels,_=b.$[n],H=(0,s.useState)(!0),N=H[0],E=H[1],M=function(e){var t=e.id,r=e.label,s=e.repeatable,c=r||t;S.Xe.track({event:"custom-type:created",id:t,name:c,format:n,type:s?"repeatable":"single"}),a(t,c,s,n),l(),E(!0)},R=function(e,n,t){t(N?(0,C.Z)((0,x.Z)({},n),{label:e.target.value,id:(0,k.lV)(e.target.value)}):(0,C.Z)((0,x.Z)({},n),{label:e.target.value}))},I=function(e,n){n("id",e.target.value),E(!1)};return(0,r.jsx)(m.Z,{dataCy:"create-ct-modal",isOpen:j,widthInPx:"530px",formId:"create-custom-type",buttonLabel:"Create",close:function(){l(),E(!0)},onSubmit:M,isLoading:g,initialValues:{repeatable:!0,id:"",label:""},validate:function(e){var n=e.id,t=e.label,r={};return t&&t.length||(r.label="Cannot be empty."),!r.label&&v.includes(t)&&(r.label="".concat(_.name({start:!0,plural:!1})," name is already taken.")),n&&n.length||(r.id="ID cannot be empty."),r.id||!n||Z.xo.exec(n)||(r.id="Invalid id: No special characters allowed."),!r.id&&n&&d.map(function(e){return e.toLowerCase()}).includes(n)&&(r.id='ID "'.concat(n,'" exists already.')),Object.keys(r).length>0?r:void 0},content:{title:"Create a new ".concat(_.name({start:!1,plural:!1}))},children:function(e){var t=e.errors,s=e.setValues,a=e.setFieldValue,l=e.values,c=e.touched;return(0,r.jsxs)(p.xu,{children:[(0,r.jsx)(y,{format:n}),(0,r.jsx)(f.W,{name:"label",label:"".concat(_.name({start:!0,plural:!1})," Name"),dataCy:"ct-name-input",placeholder:"A display name for the ".concat(_.name({start:!1,plural:!1})),error:c.label?t.label:void 0,onChange:function(e){return R(e,l,s)}}),(0,r.jsx)(f.W,{name:"id",dataCy:"ct-id-input",label:"".concat(_.name({start:!0,plural:!1})," ID"),placeholder:_.inputPlaceholder,error:c.id?t.id:void 0,onChange:function(e){return I(e,a)}})]})}})},N=t(5632),E=t(67557),M=t(6277);t(27148);var R=function(e){var n=e.children;return(0,r.jsx)("div",{className:"_1ecs97d9bi _1ecs97d9bn _1ecs97d268 _1ecs97d2dl _1ecs97d9d7 _1ecs97d9ej _1ecs97d9ex _1ecs97d9c9",children:(0,r.jsx)("table",{className:"gdfsm51 _1ecs97d9bi _1ecs97d9bn _1ecs97d9g3 _1ecs97d9h3",children:n})})},I=(0,s.createContext)("body");function V(){return(0,s.useContext)(I)}var z=function(e){var n=e.children;return(0,r.jsx)(I.Provider,{value:"head",children:(0,r.jsx)("thead",{className:"gdfsm52 _1ecs97d9bi _1ecs97d9bn _1ecs97d18 _1ecs97d8l",children:n})})},P=function(e){var n=e.children;return(0,r.jsx)(I.Provider,{value:"body",children:(0,r.jsx)("tbody",{className:"gdfsm53 _1ecs97d9bi _1ecs97d9bn",children:n})})},O="prismicTableRow",A=function(e){var n,t=e.children,s=e.onClick,a=V();return(0,r.jsx)("tr",{"data-tag":O,className:(0,M.W)("_1ecs97d9bi _1ecs97d9bn _1ecs97d9j4",(n={},(0,E.Z)(n,"_1ecs97d9gc",!!s),(0,E.Z)(n,"_1ecs97dm _1ecs97d7z _1ecs97d3c _1ecs97dap _1ecs97d2w _1ecs97da9 _1ecs97d9j6 _1ecs97d9tb _1ecs97d9cv _1ecs97d9te","body"===a),n)),onClick:function(e){s&&e.target.closest("tr[data-tag=".concat(O,"]"))&&s(e)},children:t})},D=function(e){var n=e.children,t=V();return(0,r.jsx)("head"===t?"th":"td",{className:"gdfsm55 _1ecs97d9bi _1ecs97d9bn _1ecs97d268 _1ecs97d2dl _1ecs97d9ex _1ecs97d9bj _1ecs97d6ee _1ecs97d6lr _1ecs97d9gg _1ecs97d9si",children:(0,r.jsx)("div",{className:"gdfsm56 _1ecs97d9bi _1ecs97d9bk",children:n})})},F=function(){return(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M8 28H24C25.1046 28 26 27.1046 26 26V9L21 4H8C6.89543 4 6 4.89543 6 6V26C6 27.1046 6.89543 28 8 28Z",fill:"#6E56CF"}),(0,r.jsx)("path",{d:"M23 9H26L21 4V7C21 8.10457 21.8954 9 23 9Z",fill:"#9E8CFC"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0912 12C13.2794 12 11 14.2794 11 17.0912C11 19.903 13.2794 22.1824 16.0912 22.1824C17.9763 22.1824 19.6215 21.1577 20.501 19.6372C20.6563 19.3688 20.7878 19.0849 20.8926 18.7883C20.9846 18.5279 20.8482 18.2422 20.5878 18.1502C20.3275 18.0582 20.0418 18.1947 19.9498 18.455C19.8657 18.693 19.7601 18.9209 19.6354 19.1365C18.9273 20.3606 17.6049 21.1824 16.0912 21.1824C13.8317 21.1824 12 19.3507 12 17.0912C12 14.8317 13.8317 13 16.0912 13C17.4478 13 18.6507 13.66 19.3955 14.6782H17.6216C17.3455 14.6782 17.1216 14.9021 17.1216 15.1782C17.1216 15.4544 17.3455 15.6782 17.6216 15.6782H20.2998C20.576 15.6782 20.7998 15.4544 20.7998 15.1782V12.5C20.7998 12.2239 20.576 12 20.2998 12C20.0237 12 19.7998 12.2239 19.7998 12.5V13.6032C18.8717 12.6167 17.5536 12 16.0912 12Z",fill:"white"})]})},Y=function(){return(0,r.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M8 28H24C25.1046 28 26 27.1046 26 26V9L21 4H8C6.89543 4 6 4.89543 6 6V26C6 27.1046 6.89543 28 8 28Z",fill:"#6E56CF"}),(0,r.jsx)("path",{d:"M23 9H26L21 4V7C21 8.10457 21.8954 9 23 9Z",fill:"#9E8CFC"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0869 14.6818L14.6627 12.3787C14.7183 12.1561 14.9183 12 15.1477 12C15.473 12 15.7117 12.3057 15.6328 12.6213L15.1177 14.6818H17.7232L18.299 12.3787C18.3547 12.1561 18.5547 12 18.7841 12C19.1094 12 19.3481 12.3057 19.2692 12.6213L18.754 14.6818H21C21.2761 14.6818 21.5 14.9057 21.5 15.1818C21.5 15.458 21.2761 15.6818 21 15.6818H18.504L17.8449 18.3182H20C20.2761 18.3182 20.5 18.542 20.5 18.8182C20.5 19.0943 20.2761 19.3182 20 19.3182H17.5949L17.0192 21.6213C16.9635 21.8439 16.7635 22 16.5341 22C16.2088 22 15.9701 21.6943 16.049 21.3787L16.5642 19.3182H13.9586L13.3828 21.6213C13.3272 21.8439 13.1272 22 12.8977 22C12.5724 22 12.3338 21.6943 12.4127 21.3787L12.9278 19.3182H11C10.7239 19.3182 10.5 19.0943 10.5 18.8182C10.5 18.542 10.7239 18.3182 11 18.3182H13.1778L13.8369 15.6818H12C11.7239 15.6818 11.5 15.458 11.5 15.1818C11.5 14.9057 11.7239 14.6818 12 14.6818H14.0869ZM16.8142 18.3182L17.4732 15.6818H14.8677L14.2086 18.3182H16.8142Z",fill:"white"})]})},$=t(67445),U=t(22710),W=t(99267),q=t(17329),B=t(40147),J=t(7819),K=t(607);function Q(e){return G.apply(this,arguments)}function G(){return(G=(0,U.Z)(function(e){var n,t,r;return(0,W.__generator)(this,function(s){switch(s.label){case 0:return[4,B.j.customTypes.readAllCustomTypes({format:e})];case 1:if(t=(n=s.sent()).errors,r=n.models,t.length>0)throw t;return[2,r.map(function(e){return e.model})]}})})).apply(this,arguments)}var X=t(2754),ee=t(19345),en=function(e){var n,t,l,c,d,u,h=e.format,x=e.isCreatingCustomType,C=(0,o.Z)().openCreateCustomTypeModal,p=(0,N.useRouter)(),m=(t=(0,s.useCallback)(function(e){return(0,q.VA)(Q,[h],e)},[h]),{customTypes:(0,q.QT)(Q,[h]),updateCustomTypes:t}),f=m.customTypes,j=m.updateCustomTypes,g=f.sort(function(e,n){return e.id.localeCompare(n.id)}),v=$.cd[h],_=b.$[h];return(u=(0,i.v9)(function(e){return{storeCustomTypes:(0,T.Ch)(e).filter(J.TG)}}).storeCustomTypes,(0,s.useEffect)(function(){var e=u.filter(function(e){return e.local.format===h});(e.length!==f.length||e.some(function(e){var n=f.find(function(n){return n.id===e.local.id});return!n||JSON.stringify(K.Dc.fromSM(e.local))!==JSON.stringify(n)}))&&j(e.map(function(e){var n=e.local;return K.Dc.fromSM(n)}))},[h,j,f,u]),0===g.length)?(0,r.jsxs)(X.R$,{style:{alignSelf:"center",marginTop:a.TV.size[72]},children:[(0,r.jsx)(X.u2,{children:(0,r.jsx)(a.Ee,{src:v.blankSlateImage,sizing:"cover"})}),(0,r.jsxs)(X.T9,{children:[(0,r.jsx)(X._T,{children:_.name({start:!0,plural:!0})}),(0,r.jsx)(X.nf,{children:_.blankSlateDescription}),(0,r.jsx)(X.Qj,{children:(0,r.jsx)(a.zx,{onClick:C,loading:x,children:"Create"})})]})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(R,{children:[(0,r.jsx)(z,{children:(0,r.jsxs)(A,{children:[(0,r.jsx)(D,{children:(0,r.jsx)(a.I5,{name:"notes",size:"medium"})}),(0,r.jsx)(D,{children:"Label"}),(0,r.jsx)(D,{children:"API ID"}),(0,r.jsx)(D,{children:"Limit"}),(0,r.jsx)(D,{})]})}),(0,r.jsx)(P,{children:g.map(function(e){var n=e.repeatable,t=e.label,s=e.id;return(0,r.jsxs)(A,{onClick:function(){p.push($.cd[h].getBuilderPagePathname(s))},children:[(0,r.jsx)(D,{children:n?(0,r.jsx)(F,{}):(0,r.jsx)(Y,{})}),(0,r.jsx)(D,{children:t}),(0,r.jsx)(D,{children:s}),(0,r.jsx)(D,{children:n?"Reusable":"Single"}),(0,r.jsx)(D,{children:(0,r.jsx)(ee._,{isChangesLocal:!1,format:h,customType:e})})]},s)})})]})})},et=function(e){var n=e.format,t=b.$[n],l=(0,o.Z)().openCreateCustomTypeModal,x=(0,i.v9)(function(e){return{isCreatingCustomType:(0,u.hg)(e,h.z.CREATE_CUSTOM_TYPE)}}).isCreatingCustomType;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c(),{children:(0,r.jsxs)("title",{children:[t.name({start:!0,plural:!0})," - Slice Machine"]})}),(0,r.jsx)(a.SV,{renderError:function(){return(0,r.jsx)(d.LN,{children:(0,r.jsx)(d.RN,{children:(0,r.jsx)(a.xu,{alignItems:"center",justifyContent:"center",children:(0,r.jsx)(a.Iq,{title:"Request failed",description:"An error occurred while fetching your ".concat(t.name({start:!1,plural:!0}),".")})})})})},children:(0,r.jsx)(s.Suspense,{fallback:(0,r.jsxs)(d.LN,{children:[(0,r.jsxs)(d.wd,{children:[(0,r.jsx)(d.Cx,{folder:t.name({start:!0,plural:!0})}),(0,r.jsx)(d.K2,{children:(0,r.jsx)(a.zx,{disabled:!0,startIcon:"add",children:"Create"})})]}),(0,r.jsx)(d.RN,{children:(0,r.jsx)(a._3,{})})]}),children:(0,r.jsxs)(d.LN,{children:[(0,r.jsxs)(d.wd,{children:[(0,r.jsx)(d.Cx,{folder:t.name({start:!0,plural:!0})}),(0,r.jsx)(d.K2,{children:(0,r.jsx)(a.zx,{"data-cy":"create-ct",loading:x,onClick:l,startIcon:"add",children:"Create"})})]}),(0,r.jsx)(d.RN,{children:(0,r.jsxs)(a.xu,{flexDirection:"column",children:[(0,r.jsx)(en,{format:n,isCreatingCustomType:x}),(0,r.jsx)(H,{format:n})]})})]})})})]})}},27148:function(){}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[573],{56577:function(e,n,i){"use strict";i.d(n,{z:function(){return u}});var r=i(62230),t=i(85244),s=i(98240),o=i(52322),l=i(2784),a=i(75289),c=function(e,n){return e?"".concat(e,"-").concat(n):""},d=function(e){switch(e){case"white":case"secondaryMedium":case"secondarySmall":case"secondary":return"#1A1523";default:return"grey01"}},u=(0,l.forwardRef)(function(e,n){var i=e.label,l=e.Icon,u=e.type,x=e.form,f=e.isLoading,p=void 0!==f&&f,h=e.disabled,v=e.onClick,g=e.sx,j=e.iconSize,m=void 0===j?16:j,b=e.iconFill,C=e.variant,y=void 0===C?"primary":C,F=(0,s.Z)(e,["label","Icon","type","form","isLoading","disabled","onClick","sx","iconSize","iconFill","variant"]);return(0,o.jsx)(a.zx,(0,t.Z)((0,r.Z)({ref:n,sx:(0,r.Z)((0,t.Z)((0,r.Z)({},void 0===g?{}:g),{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"}),p?{cursor:"wait !important"}:{}),type:u,form:x,disabled:void 0!==h&&h||p,onClick:p?void 0:v,variant:y},F),{children:p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.$j,{size:m,color:d(y),"data-cy":c(F["data-cy"],"spinner")}),l&&i]}):(0,o.jsxs)(o.Fragment,{children:[l&&(0,o.jsx)(l,{size:m,fill:b,"data-cy":c(F["data-cy"],"icon")}),i]})}))})},84449:function(e,n,i){"use strict";i.d(n,{Z:function(){return A}});var r,t,s=i(62230),o=i(85244),l=i(52322),a=i(2784),c=i(56580),d=i(75289),u=i(54132),x=i(951),f=i(75100),p=i(25812),h=i(77174),v=i(24340),g=i(90374),j=i(22710),m=i(99267),b=i(76473),C=i(75329),y=i(57282),F=function(e){var n=e.inputFile,i=e.handleFile,r=e.children,t=e.isDragActive;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.__,{htmlFor:"input-file",variant:"buttons.white",sx:{p:2,px:0,display:"flex",justifyContent:"center",width:200,alignItems:"center",flex:1},children:r||"Select file"}),(0,l.jsx)("input",{id:"input-file",type:"file",ref:n,style:{display:"none"},accept:C.nG.map(function(e){return"image/".concat(e)}).join(","),onChange:function(e){var n;i(null===(n=e.target.files)||void 0===n?void 0:n[0],t)}})]})},E=i(32665),w=i(3098),S=i(61931),D=function(){return(0,l.jsx)(d.kC,{variant:"boxes.centered",sx:{p:2,position:"absolute",height:"100%",width:"100%",background:"rgba(249, 248, 249, 0.7)",backdropFilter:"blur(5px)",zIndex:"1",pointerEvents:"none"},children:(0,l.jsxs)(d.kC,{variant:"boxes.centered",sx:{border:"1px dashed #6E56CF",height:"100%",width:"100%",borderRadius:"4px"},children:[(0,l.jsx)(I,{isActive:!0}),(0,l.jsx)(d.xv,{sx:{my:2},children:"Drop file here"}),(0,l.jsx)(d.xv,{variant:"secondary",children:"Maximum upload size file: 128Mb"})]})})},I=function(e){var n=e.isActive;return(0,l.jsx)(d.kC,{sx:{p:1,borderRadius:"50%",bg:n?"#F1EEFE":"#EDECEE",alignItems:"center",justifyContent:"center",width:"48px",height:"48px"},children:(0,l.jsx)(x.IEK,{style:{color:n?"#6E56CF":"#6F6E77",fontSize:"34px"}})})},k=function(e){var n=e.variationID,i=e.slice,r=e.imageTypes,t=void 0===r?C.nG:r,u=i.screenshots[n],x=(0,g.Z)().openToaster,f=(0,a.useState)(!1),p=f[0],h=f[1],v=(0,a.useState)(!1),k=v[0],R=v[1];(0,b.y1)(["meta+v","ctrl+v"],function(){N()},[n,i,]);var Z,_,M,z,H,O=(0,g.Z)().generateSliceCustomScreenshot,A=(0,c.v9)(function(e){return{isLoadingScreenshot:(0,E.hg)(e,w.z.GENERATE_SLICE_CUSTOM_SCREENSHOT)}}).isLoadingScreenshot,L=(_=(Z={onHandleFile:function(e,r){O(n,i,e,r?"dragAndDrop":"upload"),R(!1)}}).onHandleFile,M=(0,a.useRef)(null),{handleFile:z=function(e,n){e&&(_(e,n),(null==M?void 0:M.current)&&(M.current.value=""))},inputFile:M,FileInputRenderer:F,fileInputProps:{inputFile:M,handleFile:z}}),T=L.FileInputRenderer,V=L.fileInputProps,P=function(e){if(e.size>128e6)return x("File is too big. Max file size: 128Mb.",y.Jf.ERROR);O(n,i,e,"dragAndDrop")},B="function"==typeof navigator.clipboard.read,N=(H=(0,j.Z)(function(){var e,n,i,r,s;return(0,m.__generator)(this,function(o){switch(o.label){case 0:if(!B)return[2];o.label=1;case 1:return o.trys.push([1,5,,6]),[4,navigator.clipboard.read()];case 2:if(!(void 0!==(e=o.sent())[0])||!(void 0!==(n=e[0].types.find(function(e){return t.map(function(e){return"image/".concat(e)}).includes(e)}))))return[3,4];return[4,e[0].getType(n)];case 3:return i=o.sent(),r=new File([i],"file"),[2,P(r)];case 4:return[3,6];case 5:return s=o.sent(),console.error("Could not paste file",s),[3,6];case 6:return[2]}})}),function(){return H.apply(this,arguments)}),W=function(e){e.preventDefault(),h(!1);var n,i=null===(n=e.dataTransfer.files)||void 0===n?void 0:n[0];if(void 0!==i)return t.some(function(e){return"image/".concat(e)===i.type})?P(i):x("Only files of type ".concat(t.join(", ")," are accepted."),y.Jf.ERROR)},G=function(e){return function(n){n.preventDefault(),h(e)}},q=function(e){return function(n){n.preventDefault(),R(e)}};return(0,l.jsxs)(d.kC,{as:"form",variant:"boxes.centered",sx:{bg:"#F9F8F9",position:"relative",borderRadius:"6px",height:"320px"},onDragEnter:G(!0),onDragLeave:G(!1),onDragOver:G(!0),onMouseEnter:q(!0),onMouseLeave:q(!1),onSubmit:function(e){return e.preventDefault()},onDrop:W,children:[A?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.$j,{}),(0,l.jsx)(d.xv,{sx:{my:2},children:"Uploading file ..."})]}):null,A||void 0===u?null:(0,l.jsx)(S.q,{src:u.url,sx:{width:"100%",height:"100%",maxHeight:"100%",backdropFilter:"blur(5px)"}}),A?null:(0,l.jsx)(d.kC,{sx:{p:2,position:"absolute",width:"100%",height:"100%",borderRadius:"6px",background:"#F9F8F9B2",justifyContent:"center",alignItems:"center",visibility:k||void 0===u?"visible":"hidden"},children:(0,l.jsx)(d.kC,{variant:"boxes.centered",sx:{border:"1px dashed #6E56CF",height:"100%",width:"100%",borderRadius:"4px"},children:(0,l.jsxs)(d.kC,{sx:{width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,l.jsx)(I,{isActive:p}),(0,l.jsx)(d.xv,{sx:{my:2},children:B?"Paste, drop or ...":"Drop or ..."}),(0,l.jsx)(T,(0,o.Z)((0,s.Z)({},V),{isDragActive:p})),(0,l.jsx)(d.xv,{sx:{color:"greyIcon",mt:1},children:"Maximum file size: 128Mb"})]})})}),p?(0,l.jsx)(D,{}):null]})},R=function(e){return(0,l.jsxs)("svg",(0,o.Z)((0,s.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_5065_192538)",children:[(0,l.jsx)("path",{d:"M9.66862 19.9993C11.1406 19.9993 12.3353 18.8047 12.3353 17.3327V14.666H9.66862C8.19662 14.666 7.00195 15.8607 7.00195 17.3327C7.00195 18.8047 8.19662 19.9993 9.66862 19.9993Z",fill:"#0ACF83"}),(0,l.jsx)("path",{d:"M7.00195 12.0007C7.00195 10.5287 8.19662 9.33398 9.66862 9.33398H12.3353V14.6673H9.66862C8.19662 14.6673 7.00195 13.4727 7.00195 12.0007Z",fill:"#A259FF"}),(0,l.jsx)("path",{d:"M7.00195 6.66667C7.00195 5.19467 8.19662 4 9.66862 4H12.3353V9.33333H9.66862C8.19662 9.33333 7.00195 8.13867 7.00195 6.66667Z",fill:"#F24E1E"}),(0,l.jsx)("path",{d:"M12.334 4H15.0007C16.4727 4 17.6673 5.19467 17.6673 6.66667C17.6673 8.13867 16.4727 9.33333 15.0007 9.33333H12.334V4Z",fill:"#FF7262"}),(0,l.jsx)("path",{d:"M17.6673 12.0007C17.6673 13.4727 16.4727 14.6673 15.0007 14.6673C13.5287 14.6673 12.334 13.4727 12.334 12.0007C12.334 10.5287 13.5287 9.33398 15.0007 9.33398C16.4727 9.33398 17.6673 10.5287 17.6673 12.0007Z",fill:"#1ABCFE"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5065_192538",children:(0,l.jsx)("rect",{width:"10.6688",height:"16",fill:"white",transform:"translate(7 4)"})})})]}))};(t=r||(r={})).Mac="Mac",t.Linux="Linux",t.Windows="Windows";var Z=function(){var e=navigator.userAgent,n=r.Linux;return Object.values(r).forEach(function(i){e.includes(i)&&(n=i)}),n};i(61213);var _=function(e){var n=e.children;return(0,l.jsx)("kbd",{className:"_1nkpwww0 _1ecs97d9gf _1ecs97d672 _1ecs97d6ef _1ecs97d18 _1ecs97d8l _1ecs97d23s _1ecs97d2b5 _1ecs97d93j _1ecs97d93x",children:n})},M=function(){var e,n=[r.Windows,r.Linux].includes(Z())?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_,{children:"ctrl"})," + ",(0,l.jsx)(_,{children:"shift"})," + ",(0,l.jsx)(_,{children:"c"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_,{children:"cmd"})," + ",(0,l.jsx)(_,{children:"shift"})," + ",(0,l.jsx)(_,{children:"c"})]});return(0,l.jsxs)(d.kC,{sx:{pl:"4px",alignItems:"center",color:"#000",borderRadius:"6px",fontSize:"12px",lineHeight:"24px",border:"1px solid #E4E2E4",boxShadow:"0px 1px 0px 0px rgba(0, 0, 0, 0.04)",width:"100%",minHeight:"40px"},children:[(0,l.jsx)(R,{}),(0,l.jsxs)("div",{children:["Use\xa0",n," to copy any frame as .png, then just paste it here"]})]})},z=function(e){var n=e.isValid;return(0,l.jsx)(d.kC,{sx:{p:2,border:"1px solid #E4E2E4",borderRadius:"6px",bg:"#FFF"},children:n?(0,l.jsx)(x.Ypm,{style:{fontSize:"16px"}}):(0,l.jsx)(f.j6O,{style:{fontSize:"16px",color:"#ED811C"}})})},H=function(e){var n=e.slice,i=e.onSelectVariation,r=e.variationSelector;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.X6,{as:"h4",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.model.name}),(0,l.jsx)(d.xu,{children:(0,l.jsx)(d.xu,{as:"ul",sx:{pl:0,my:3},children:n.model.variations.map(function(e){var t=r.sliceID,a=r.variationID,c=t===n.model.id&&a===e.id;return(0,l.jsx)(d.xu,{as:"li",sx:(0,o.Z)((0,s.Z)({listStyle:"none",my:2,p:2,cursor:"pointer",borderRadius:"4px"},c&&{bg:"#EDECEE",fontWeight:"500"}),{":hover":{bg:"#EDECEE"}}),onClick:function(){return i({sliceID:n.model.id,variationID:e.id})},children:(0,l.jsxs)(d.kC,{sx:{alignItems:"center"},children:[(0,l.jsx)(z,{isValid:!!n.screenshots[e.id]}),(0,l.jsx)(d.xv,{sx:{ml:2},children:e.name})]})},"".concat(n.model.id,"-").concat(e.id))})})})]})},O=function(e,n){return e||(n.length?{sliceID:n[0].model.id,variationID:n[0].model.variations[0].id}:void 0)},A=function(e){var n=e.slices,i=e.defaultVariationSelector,r=(0,g.Z)().closeModals,t=(0,c.v9)(function(e){return{isOpen:(0,h.gP)(e,v.q.SCREENSHOTS)}}).isOpen,s=(0,a.useState)(O(i,n)),o=s[0],x=s[1];if((0,a.useEffect)(function(){x(O(i,n))},[null==i?void 0:i.sliceID,null==i?void 0:i.variationID,t,]),0===n.length||!o)return null;var f,j="function"==typeof navigator.clipboard.read;return(0,l.jsx)(p.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,onRequestClose:function(){return r()},children:(0,l.jsx)(u.Z,{radius:"0px",bodySx:{p:0,bg:"#FFF",position:"relative"},sx:{border:"none"},Header:function(e){var n=e.radius;return(0,l.jsxs)(d.kC,{sx:{position:"sticky",top:0,zIndex:1,background:"gray",p:"16px",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:n,borderTopRightRadius:n,borderBottom:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))}},children:[(0,l.jsx)(d.X6,{sx:{fontSize:"20px"},children:"Slice screenshots"}),(0,l.jsx)(d.x8,{type:"button",onClick:function(){return r()}})]})},Footer:null,children:(0,l.jsxs)(d.xu,{sx:{display:"flex",flexWrap:"wrap",height:"100%"},children:[(0,l.jsx)(d.xu,{sx:{p:3,bg:"grey07",flexGrow:1,overflow:"auto",maxHeight:"100%",flexBasis:"sidebar"},children:n.map(function(e,n){return(0,l.jsx)(H,{slice:e,variationSelector:o,onSelectVariation:x},"".concat(e.model.id,"-").concat(n))})}),(0,l.jsxs)(d.kC,{as:"main",sx:{p:3,flexGrow:99999,flexBasis:0,flexDirection:"column",minWidth:320,gap:"8px"},children:[j?(0,l.jsx)(M,{}):void 0,(f=n.find(function(e){return e.model.id===o.sliceID}))?(0,l.jsx)(k,{variationID:o.variationID,slice:f}):null]})]})})})}},47731:function(e,n,i){"use strict";i.d(n,{H:function(){return s}});var r=i(2784),t=i(90374),s=function(){var e=(0,t.Z)().openScreenshotsModal,n=(0,r.useState)({sliceFilterFn:function(e){return e}}),i=n[0],s=n[1];return{modalPayload:i,onOpenModal:function(n){s(n),e()},openScreenshotsModal:e}}},61213:function(){}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[573],{56577:function(e,n,i){"use strict";i.d(n,{z:function(){return u}});var r=i(62230),t=i(85244),s=i(98240),o=i(52322),l=i(2784),a=i(75289),c=function(e,n){return e?"".concat(e,"-").concat(n):""},d=function(e){switch(e){case"white":case"secondaryMedium":case"secondarySmall":case"secondary":return"#1A1523";default:return"grey01"}},u=(0,l.forwardRef)(function(e,n){var i=e.label,l=e.Icon,u=e.type,x=e.form,p=e.isLoading,f=void 0!==p&&p,h=e.disabled,v=e.onClick,g=e.sx,j=e.iconSize,m=void 0===j?16:j,b=e.iconFill,C=e.variant,y=void 0===C?"primary":C,F=(0,s.Z)(e,["label","Icon","type","form","isLoading","disabled","onClick","sx","iconSize","iconFill","variant"]);return(0,o.jsx)(a.zx,(0,t.Z)((0,r.Z)({ref:n,sx:(0,r.Z)((0,t.Z)((0,r.Z)({},void 0===g?{}:g),{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"}),f?{cursor:"wait !important"}:{}),type:u,form:x,disabled:void 0!==h&&h||f,onClick:f?void 0:v,variant:y},F),{children:f?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.$j,{size:m,color:d(y),"data-cy":c(F["data-cy"],"spinner")}),l&&i]}):(0,o.jsxs)(o.Fragment,{children:[l&&(0,o.jsx)(l,{size:m,fill:b,"data-cy":c(F["data-cy"],"icon")}),i]})}))})},84449:function(e,n,i){"use strict";i.d(n,{Z:function(){return A}});var r,t,s=i(62230),o=i(85244),l=i(52322),a=i(2784),c=i(56580),d=i(75289),u=i(54132),x=i(951),p=i(75100),f=i(25812),h=i(77174),v=i(24340),g=i(90374),j=i(22710),m=i(99267),b=i(76473),C=i(75329),y=i(57282),F=function(e){var n=e.inputFile,i=e.handleFile,r=e.children,t=e.isDragActive;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.__,{htmlFor:"input-file",variant:"buttons.white",sx:{p:2,px:0,display:"flex",justifyContent:"center",width:200,alignItems:"center",flex:1},children:r||"Select file"}),(0,l.jsx)("input",{id:"input-file",type:"file",ref:n,style:{display:"none"},accept:C.nG.map(function(e){return"image/".concat(e)}).join(","),onChange:function(e){var n;i(null===(n=e.target.files)||void 0===n?void 0:n[0],t)}})]})},E=i(32665),w=i(3098),S=i(61931),D=function(){return(0,l.jsx)(d.kC,{variant:"boxes.centered",sx:{p:2,position:"absolute",height:"100%",width:"100%",background:"rgba(249, 248, 249, 0.7)",backdropFilter:"blur(5px)",zIndex:"1",pointerEvents:"none"},children:(0,l.jsxs)(d.kC,{variant:"boxes.centered",sx:{border:"1px dashed #6E56CF",height:"100%",width:"100%",borderRadius:"4px"},children:[(0,l.jsx)(I,{isActive:!0}),(0,l.jsx)(d.xv,{sx:{my:2},children:"Drop file here"}),(0,l.jsx)(d.xv,{variant:"secondary",children:"Maximum upload size file: 128Mb"})]})})},I=function(e){var n=e.isActive;return(0,l.jsx)(d.kC,{sx:{p:1,borderRadius:"50%",bg:n?"#F1EEFE":"#EDECEE",alignItems:"center",justifyContent:"center",width:"48px",height:"48px"},children:(0,l.jsx)(x.IEK,{style:{color:n?"#6E56CF":"#6F6E77",fontSize:"34px"}})})},k=function(e){var n=e.variationID,i=e.slice,r=e.imageTypes,t=void 0===r?C.nG:r,u=i.screenshots[n],x=(0,g.Z)().openToaster,p=(0,a.useState)(!1),f=p[0],h=p[1],v=(0,a.useState)(!1),k=v[0],R=v[1];(0,b.y1)(["meta+v","ctrl+v"],function(){N()},[n,i,]);var Z,_,M,z,H,O=(0,g.Z)().generateSliceCustomScreenshot,A=(0,c.v9)(function(e){return{isLoadingScreenshot:(0,E.hg)(e,w.z.GENERATE_SLICE_CUSTOM_SCREENSHOT)}}).isLoadingScreenshot,L=(_=(Z={onHandleFile:function(e,r){O(n,i,e,r?"dragAndDrop":"upload"),R(!1)}}).onHandleFile,M=(0,a.useRef)(null),{handleFile:z=function(e,n){e&&(_(e,n),(null==M?void 0:M.current)&&(M.current.value=""))},inputFile:M,FileInputRenderer:F,fileInputProps:{inputFile:M,handleFile:z}}),T=L.FileInputRenderer,V=L.fileInputProps,P=function(e){if(e.size>128e6)return x("File is too big. Max file size: 128Mb.",y.Jf.ERROR);O(n,i,e,"dragAndDrop")},B="function"==typeof navigator.clipboard.read,N=(H=(0,j.Z)(function(){var e,n,i,r,s;return(0,m.__generator)(this,function(o){switch(o.label){case 0:if(!B)return[2];o.label=1;case 1:return o.trys.push([1,5,,6]),[4,navigator.clipboard.read()];case 2:if(!(void 0!==(e=o.sent())[0])||!(void 0!==(n=e[0].types.find(function(e){return t.map(function(e){return"image/".concat(e)}).includes(e)}))))return[3,4];return[4,e[0].getType(n)];case 3:return i=o.sent(),r=new File([i],"file"),[2,P(r)];case 4:return[3,6];case 5:return s=o.sent(),console.error("Could not paste file",s),[3,6];case 6:return[2]}})}),function(){return H.apply(this,arguments)}),W=function(e){e.preventDefault(),h(!1);var n,i=null===(n=e.dataTransfer.files)||void 0===n?void 0:n[0];if(void 0!==i)return t.some(function(e){return"image/".concat(e)===i.type})?P(i):x("Only files of type ".concat(t.join(", ")," are accepted."),y.Jf.ERROR)},G=function(e){return function(n){n.preventDefault(),h(e)}},q=function(e){return function(n){n.preventDefault(),R(e)}};return(0,l.jsxs)(d.kC,{as:"form",variant:"boxes.centered",sx:{bg:"#F9F8F9",position:"relative",borderRadius:"6px",height:"320px"},onDragEnter:G(!0),onDragLeave:G(!1),onDragOver:G(!0),onMouseEnter:q(!0),onMouseLeave:q(!1),onSubmit:function(e){return e.preventDefault()},onDrop:W,children:[A?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.$j,{}),(0,l.jsx)(d.xv,{sx:{my:2},children:"Uploading file ..."})]}):null,A||void 0===u?null:(0,l.jsx)(S.q,{src:u.url,sx:{width:"100%",height:"100%",maxHeight:"100%",backdropFilter:"blur(5px)"}}),A?null:(0,l.jsx)(d.kC,{sx:{p:2,position:"absolute",width:"100%",height:"100%",borderRadius:"6px",background:"#F9F8F9B2",justifyContent:"center",alignItems:"center",visibility:k||void 0===u?"visible":"hidden"},children:(0,l.jsx)(d.kC,{variant:"boxes.centered",sx:{border:"1px dashed #6E56CF",height:"100%",width:"100%",borderRadius:"4px"},children:(0,l.jsxs)(d.kC,{sx:{width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,l.jsx)(I,{isActive:f}),(0,l.jsx)(d.xv,{sx:{my:2},children:B?"Paste, drop or ...":"Drop or ..."}),(0,l.jsx)(T,(0,o.Z)((0,s.Z)({},V),{isDragActive:f})),(0,l.jsx)(d.xv,{sx:{color:"greyIcon",mt:1},children:"Maximum file size: 128Mb"})]})})}),f?(0,l.jsx)(D,{}):null]})},R=function(e){return(0,l.jsxs)("svg",(0,o.Z)((0,s.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_5065_192538)",children:[(0,l.jsx)("path",{d:"M9.66862 19.9993C11.1406 19.9993 12.3353 18.8047 12.3353 17.3327V14.666H9.66862C8.19662 14.666 7.00195 15.8607 7.00195 17.3327C7.00195 18.8047 8.19662 19.9993 9.66862 19.9993Z",fill:"#0ACF83"}),(0,l.jsx)("path",{d:"M7.00195 12.0007C7.00195 10.5287 8.19662 9.33398 9.66862 9.33398H12.3353V14.6673H9.66862C8.19662 14.6673 7.00195 13.4727 7.00195 12.0007Z",fill:"#A259FF"}),(0,l.jsx)("path",{d:"M7.00195 6.66667C7.00195 5.19467 8.19662 4 9.66862 4H12.3353V9.33333H9.66862C8.19662 9.33333 7.00195 8.13867 7.00195 6.66667Z",fill:"#F24E1E"}),(0,l.jsx)("path",{d:"M12.334 4H15.0007C16.4727 4 17.6673 5.19467 17.6673 6.66667C17.6673 8.13867 16.4727 9.33333 15.0007 9.33333H12.334V4Z",fill:"#FF7262"}),(0,l.jsx)("path",{d:"M17.6673 12.0007C17.6673 13.4727 16.4727 14.6673 15.0007 14.6673C13.5287 14.6673 12.334 13.4727 12.334 12.0007C12.334 10.5287 13.5287 9.33398 15.0007 9.33398C16.4727 9.33398 17.6673 10.5287 17.6673 12.0007Z",fill:"#1ABCFE"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5065_192538",children:(0,l.jsx)("rect",{width:"10.6688",height:"16",fill:"white",transform:"translate(7 4)"})})})]}))};(t=r||(r={})).Mac="Mac",t.Linux="Linux",t.Windows="Windows";var Z=function(){var e=navigator.userAgent,n=r.Linux;return Object.values(r).forEach(function(i){e.includes(i)&&(n=i)}),n};i(61213);var _=function(e){var n=e.children;return(0,l.jsx)("kbd",{className:"_1nkpwww0 _1ecs97d9sg _1ecs97d6ee _1ecs97d6lr _1ecs97d18 _1ecs97d8l _1ecs97d268 _1ecs97d2dl _1ecs97d9ej _1ecs97d9ex",children:n})},M=function(){var e,n=[r.Windows,r.Linux].includes(Z())?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_,{children:"ctrl"})," + ",(0,l.jsx)(_,{children:"shift"})," + ",(0,l.jsx)(_,{children:"c"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(_,{children:"cmd"})," + ",(0,l.jsx)(_,{children:"shift"})," + ",(0,l.jsx)(_,{children:"c"})]});return(0,l.jsxs)(d.kC,{sx:{pl:"4px",alignItems:"center",color:"#000",borderRadius:"6px",fontSize:"12px",lineHeight:"24px",border:"1px solid #E4E2E4",boxShadow:"0px 1px 0px 0px rgba(0, 0, 0, 0.04)",width:"100%",minHeight:"40px"},children:[(0,l.jsx)(R,{}),(0,l.jsxs)("div",{children:["Use\xa0",n," to copy any frame as .png, then just paste it here"]})]})},z=function(e){var n=e.isValid;return(0,l.jsx)(d.kC,{sx:{p:2,border:"1px solid #E4E2E4",borderRadius:"6px",bg:"#FFF"},children:n?(0,l.jsx)(x.Ypm,{style:{fontSize:"16px"}}):(0,l.jsx)(p.j6O,{style:{fontSize:"16px",color:"#ED811C"}})})},H=function(e){var n=e.slice,i=e.onSelectVariation,r=e.variationSelector;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.X6,{as:"h4",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.model.name}),(0,l.jsx)(d.xu,{children:(0,l.jsx)(d.xu,{as:"ul",sx:{pl:0,my:3},children:n.model.variations.map(function(e){var t=r.sliceID,a=r.variationID,c=t===n.model.id&&a===e.id;return(0,l.jsx)(d.xu,{as:"li",sx:(0,o.Z)((0,s.Z)({listStyle:"none",my:2,p:2,cursor:"pointer",borderRadius:"4px"},c&&{bg:"#EDECEE",fontWeight:"500"}),{":hover":{bg:"#EDECEE"}}),onClick:function(){return i({sliceID:n.model.id,variationID:e.id})},children:(0,l.jsxs)(d.kC,{sx:{alignItems:"center"},children:[(0,l.jsx)(z,{isValid:!!n.screenshots[e.id]}),(0,l.jsx)(d.xv,{sx:{ml:2},children:e.name})]})},"".concat(n.model.id,"-").concat(e.id))})})})]})},O=function(e,n){return e||(n.length?{sliceID:n[0].model.id,variationID:n[0].model.variations[0].id}:void 0)},A=function(e){var n=e.slices,i=e.defaultVariationSelector,r=(0,g.Z)().closeModals,t=(0,c.v9)(function(e){return{isOpen:(0,h.gP)(e,v.q.SCREENSHOTS)}}).isOpen,s=(0,a.useState)(O(i,n)),o=s[0],x=s[1];if((0,a.useEffect)(function(){x(O(i,n))},[null==i?void 0:i.sliceID,null==i?void 0:i.variationID,t,]),0===n.length||!o)return null;var p,j="function"==typeof navigator.clipboard.read;return(0,l.jsx)(f.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,onRequestClose:function(){return r()},children:(0,l.jsx)(u.Z,{radius:"0px",bodySx:{p:0,bg:"#FFF",position:"relative"},sx:{border:"none"},Header:function(e){var n=e.radius;return(0,l.jsxs)(d.kC,{sx:{position:"sticky",top:0,zIndex:1,background:"gray",p:"16px",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:n,borderTopRightRadius:n,borderBottom:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))}},children:[(0,l.jsx)(d.X6,{sx:{fontSize:"20px"},children:"Slice screenshots"}),(0,l.jsx)(d.x8,{type:"button",onClick:function(){return r()}})]})},Footer:null,children:(0,l.jsxs)(d.xu,{sx:{display:"flex",flexWrap:"wrap",height:"100%"},children:[(0,l.jsx)(d.xu,{sx:{p:3,bg:"grey07",flexGrow:1,overflow:"auto",maxHeight:"100%",flexBasis:"sidebar"},children:n.map(function(e,n){return(0,l.jsx)(H,{slice:e,variationSelector:o,onSelectVariation:x},"".concat(e.model.id,"-").concat(n))})}),(0,l.jsxs)(d.kC,{as:"main",sx:{p:3,flexGrow:99999,flexBasis:0,flexDirection:"column",minWidth:320,gap:"8px"},children:[j?(0,l.jsx)(M,{}):void 0,(p=n.find(function(e){return e.model.id===o.sliceID}))?(0,l.jsx)(k,{variationID:o.variationID,slice:p}):null]})]})})})}},47731:function(e,n,i){"use strict";i.d(n,{H:function(){return s}});var r=i(2784),t=i(90374),s=function(){var e=(0,t.Z)().openScreenshotsModal,n=(0,r.useState)({sliceFilterFn:function(e){return e}}),i=n[0],s=n[1];return{modalPayload:i,onOpenModal:function(n){s(n),e()},openScreenshotsModal:e}}},61213:function(){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[677],{1611:function(e,t,r){"use strict";r.d(t,{WY:function(){return i},xb:function(){return o}});var n=r(86579);async function i(e,t){let{okType:r,signal:i,headers:o,body:l,timeout:u=1e4,...d}=t,c=new Headers(o);c.has("Content-Type")||c.set("Content-Type","application/json"),"multipart/form-data"===c.get("Content-Type")&&c.delete("Content-Type");let p=s();p&&c.set("Authorization",`Bearer ${p}`);let h="application/json"===c.get("Content-Type")?JSON.stringify(l):l,f=!1;try{let m=new AbortController,y=function(e){let t=new AbortController;function r(){for(let n of(t.abort(),e))n.removeEventListener("abort",r)}for(let n of e){if(n.aborted){r();break}n.addEventListener("abort",r)}return t.signal}([m.signal,i].filter(n.$));setTimeout(()=>{f=!0,m.abort()},u);let g=await fetch(e,{...d,body:h,headers:c,signal:y}),{status:v}=g,_=g.clone(),x=await g.json().catch(e=>_.text());if(g.ok){let b=r.safeParse(x);if(!b.success)throw new a({type:"validation",status:v,cause:b.error});return b.data}throw new a({type:"http",status:v,body:x})}catch(T){var k,w;throw(k=T,k instanceof a)?T:new a((w=T,w instanceof DOMException&&"AbortError"===w.name)?{type:f?"timeout":"abort"}:{type:"unknown",cause:T})}}class a extends Error{constructor(e){super(JSON.stringify(e,null,2)),this.detail=e,this.name="RequestError"}}let s=()=>"";function o(e){return"dev"===e?"same-origin":"include"}},661:function(e,t,r){"use strict";r.d(t,{f:function(){return eR},W:function(){return eZ}}),(ek=eS||(eS={})).assertEqual=e=>e,ek.assertIs=function(e){},ek.assertNever=function(e){throw Error()},ek.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},ek.getValidEnumValues=e=>{let t=ek.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return ek.objectValues(r)},ek.objectValues=e=>ek.objectKeys(e).map(function(t){return e[t]}),ek.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},ek.find=(e,t)=>{for(let r of e)if(t(r))return r},ek.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,ek.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},ek.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(ew=eE||(eE={})).mergeShapes=(e,t)=>({...e,...t});let n=eS.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set",]),i=e=>{switch(typeof e){case"undefined":return n.undefined;case"string":return n.string;case"number":return isNaN(e)?n.nan:n.number;case"boolean":return n.boolean;case"function":return n.function;case"bigint":return n.bigint;case"symbol":return n.symbol;case"object":if(Array.isArray(e))return n.array;if(null===e)return n.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return n.promise;if("undefined"!=typeof Map&&e instanceof Map)return n.map;if("undefined"!=typeof Set&&e instanceof Set)return n.set;if("undefined"!=typeof Date&&e instanceof Date)return n.date;return n.object;default:return n.unknown}},a=eS.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite",]);class s extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let a=r,s=0;for(;s<i.path.length;){let o=i.path[s],l=s===i.path.length-1;l?(a[o]=a[o]||{_errors:[]},a[o]._errors.push(t(i))):a[o]=a[o]||{_errors:[]},a=a[o],s++}}};return n(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,eS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>{let t=new s(e);return t};let o=(e,t)=>{let r;switch(e.code){case a.invalid_type:r=e.received===n.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,eS.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:r=`Unrecognized key(s) in object: ${eS.joinValues(e.keys,", ")}`;break;case a.invalid_union:r="Invalid input";break;case a.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${eS.joinValues(e.options)}`;break;case a.invalid_enum_value:r=`Invalid enum value. Expected ${eS.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:r="Invalid function arguments";break;case a.invalid_return_type:r="Invalid function return type";break;case a.invalid_date:r="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:eS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case a.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case a.custom:r="Invalid input";break;case a.invalid_intersection_types:r="Intersection results could not be merged";break;case a.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:r="Number must be finite";break;default:r=t.defaultError,eS.assertNever(e)}return{message:r}},l=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a},o="",l=n.filter(e=>!!e).slice().reverse();for(let u of l)o=u(s,{data:t,defaultError:o}).message;return{...i,path:a,message:i.message||o}};function u(e,t){let r=l({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,o,o].filter(e=>!!e)});e.common.issues.push(r)}class d{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return c;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let n of t)r.push({key:await n.key,value:await n.value});return d.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:i,value:a}=n;if("aborted"===i.status||"aborted"===a.status)return c;"dirty"===i.status&&e.dirty(),"dirty"===a.status&&e.dirty(),(void 0!==a.value||n.alwaysSet)&&(r[i.value]=a.value)}return{status:e.value,value:r}}}let c=Object.freeze({status:"aborted"}),p=e=>({status:"dirty",value:e}),h=e=>({status:"valid",value:e}),f=e=>"aborted"===e.status,m=e=>"dirty"===e.status,y=e=>"valid"===e.status,g=e=>"undefined"!=typeof Promise&&e instanceof Promise;(eT=eO||(eO={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},eT.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class v{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let _=(e,t)=>{if(y(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new s(e.common.issues);return this._error=r,this._error}}};function x(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};let a=(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=n?n:t.defaultError}:{message:null!=r?r:t.defaultError};return{errorMap:a,description:i}}class b{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new d,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(g(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},a=this._parseSync({data:e,path:n.path,parent:n});return _(n,a)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},n=this._parse({data:e,path:r.path,parent:r}),a=await (g(n)?n:Promise.resolve(n));return _(r,a)}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),s=()=>n.addIssue({code:a.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(s(),!1)):!!i||(s(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new el({schema:this,typeName:eN.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eu.create(this,this._def)}nullable(){return ed.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return H.create(this,this._def)}promise(){return eo.create(this,this._def)}or(e){return q.create([this,e],this._def)}and(e){return X.create(this,e,this._def)}transform(e){return new el({...x(this._def),schema:this,typeName:eN.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ec({...x(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:eN.ZodDefault})}brand(){return new ef({typeName:eN.ZodBranded,type:this,...x(this._def)})}catch(e){return new ep({...x(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:eN.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return em.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let k=/^c[^\s-]{8,}$/i,w=/^[a-z][a-z0-9]*$/,T=/[0-9A-HJKMNP-TV-Z]{26}/,C=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,S=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,E=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,O=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,N=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,P=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function A(e,t){return!!(("v4"===t||!t)&&O.test(e)||("v6"===t||!t)&&N.test(e))}class I extends b{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...eO.errToObj(r)}),this.nonempty=e=>this.min(1,eO.errToObj(e)),this.trim=()=>new I({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new I({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new I({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){this._def.coerce&&(e.data=String(e.data));let t=this._getType(e);if(t!==n.string){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.string,received:r.parsedType}),c}let i=new d,s;for(let o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(u(s=this._getOrReturnCtx(e,s),{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if("max"===o.kind)e.data.length>o.value&&(u(s=this._getOrReturnCtx(e,s),{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if("length"===o.kind){let l=e.data.length>o.value,p=e.data.length<o.value;(l||p)&&(s=this._getOrReturnCtx(e,s),l?u(s,{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):p&&u(s,{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if("email"===o.kind)S.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"email",code:a.invalid_string,message:o.message}),i.dirty());else if("emoji"===o.kind)E.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:a.invalid_string,message:o.message}),i.dirty());else if("uuid"===o.kind)C.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:a.invalid_string,message:o.message}),i.dirty());else if("cuid"===o.kind)k.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:a.invalid_string,message:o.message}),i.dirty());else if("cuid2"===o.kind)w.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:a.invalid_string,message:o.message}),i.dirty());else if("ulid"===o.kind)T.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:a.invalid_string,message:o.message}),i.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(h){u(s=this._getOrReturnCtx(e,s),{validation:"url",code:a.invalid_string,message:o.message}),i.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;let f=o.regex.test(e.data);f||(u(s=this._getOrReturnCtx(e,s),{validation:"regex",code:a.invalid_string,message:o.message}),i.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(u(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(u(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(u(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty());else if("datetime"===o.kind){let m=P(o);m.test(e.data)||(u(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:"datetime",message:o.message}),i.dirty())}else"ip"===o.kind?A(e.data,o.version)||(u(s=this._getOrReturnCtx(e,s),{validation:"ip",code:a.invalid_string,message:o.message}),i.dirty()):eS.assertNever(o);return{status:i.value,value:e.data}}_addCheck(e){return new I({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...eO.errToObj(e)})}url(e){return this._addCheck({kind:"url",...eO.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...eO.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...eO.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...eO.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...eO.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...eO.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...eO.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...eO.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...eO.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...eO.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...eO.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...eO.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...eO.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...eO.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...eO.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function j(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,a=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return a%s/Math.pow(10,i)}I.create=e=>{var t;return new I({checks:[],typeName:eN.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class Z extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));let t=this._getType(e);if(t!==n.number){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.number,received:r.parsedType}),c}let i,s=new d;for(let o of this._def.checks)if("int"===o.kind)eS.isInteger(e.data)||(u(i=this._getOrReturnCtx(e,i),{code:a.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty());else if("min"===o.kind){let l=o.inclusive?e.data<o.value:e.data<=o.value;l&&(u(i=this._getOrReturnCtx(e,i),{code:a.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty())}else if("max"===o.kind){let p=o.inclusive?e.data>o.value:e.data>=o.value;p&&(u(i=this._getOrReturnCtx(e,i),{code:a.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty())}else"multipleOf"===o.kind?0!==j(e.data,o.value)&&(u(i=this._getOrReturnCtx(e,i),{code:a.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(u(i=this._getOrReturnCtx(e,i),{code:a.not_finite,message:o.message}),s.dirty()):eS.assertNever(o);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,eO.toString(t))}gt(e,t){return this.setLimit("min",e,!1,eO.toString(t))}lte(e,t){return this.setLimit("max",e,!0,eO.toString(t))}lt(e,t){return this.setLimit("max",e,!1,eO.toString(t))}setLimit(e,t,r,n){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:eO.toString(n)},]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:eO.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:eO.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:eO.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:eO.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:eO.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:eO.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:eO.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:eO.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:eO.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&eS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Z.create=e=>new Z({checks:[],typeName:eN.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class R extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));let t=this._getType(e);if(t!==n.bigint){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.bigint,received:r.parsedType}),c}let i,s=new d;for(let o of this._def.checks)if("min"===o.kind){let l=o.inclusive?e.data<o.value:e.data<=o.value;l&&(u(i=this._getOrReturnCtx(e,i),{code:a.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty())}else if("max"===o.kind){let p=o.inclusive?e.data>o.value:e.data>=o.value;p&&(u(i=this._getOrReturnCtx(e,i),{code:a.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(u(i=this._getOrReturnCtx(e,i),{code:a.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):eS.assertNever(o);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,eO.toString(t))}gt(e,t){return this.setLimit("min",e,!1,eO.toString(t))}lte(e,t){return this.setLimit("max",e,!0,eO.toString(t))}lt(e,t){return this.setLimit("max",e,!1,eO.toString(t))}setLimit(e,t,r,n){return new R({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:eO.toString(n)},]})}_addCheck(e){return new R({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:eO.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:eO.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:eO.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:eO.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:eO.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}R.create=e=>{var t;return new R({checks:[],typeName:eN.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class M extends b{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));let t=this._getType(e);if(t!==n.boolean){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.boolean,received:r.parsedType}),c}return h(e.data)}}M.create=e=>new M({typeName:eN.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class L extends b{_parse(e){this._def.coerce&&(e.data=new Date(e.data));let t=this._getType(e);if(t!==n.date){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.date,received:r.parsedType}),c}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return u(i,{code:a.invalid_date}),c}let s=new d,o;for(let l of this._def.checks)"min"===l.kind?e.data.getTime()<l.value&&(u(o=this._getOrReturnCtx(e,o),{code:a.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),s.dirty()):"max"===l.kind?e.data.getTime()>l.value&&(u(o=this._getOrReturnCtx(e,o),{code:a.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),s.dirty()):eS.assertNever(l);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:eO.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:eO.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}L.create=e=>new L({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:eN.ZodDate,...x(e)});class D extends b{_parse(e){let t=this._getType(e);if(t!==n.symbol){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.symbol,received:r.parsedType}),c}return h(e.data)}}D.create=e=>new D({typeName:eN.ZodSymbol,...x(e)});class z extends b{_parse(e){let t=this._getType(e);if(t!==n.undefined){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.undefined,received:r.parsedType}),c}return h(e.data)}}z.create=e=>new z({typeName:eN.ZodUndefined,...x(e)});class F extends b{_parse(e){let t=this._getType(e);if(t!==n.null){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.null,received:r.parsedType}),c}return h(e.data)}}F.create=e=>new F({typeName:eN.ZodNull,...x(e)});class $ extends b{constructor(){super(...arguments),this._any=!0}_parse(e){return h(e.data)}}$.create=e=>new $({typeName:eN.ZodAny,...x(e)});class V extends b{constructor(){super(...arguments),this._unknown=!0}_parse(e){return h(e.data)}}V.create=e=>new V({typeName:eN.ZodUnknown,...x(e)});class U extends b{_parse(e){let t=this._getOrReturnCtx(e);return u(t,{code:a.invalid_type,expected:n.never,received:t.parsedType}),c}}U.create=e=>new U({typeName:eN.ZodNever,...x(e)});class B extends b{_parse(e){let t=this._getType(e);if(t!==n.undefined){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.void,received:r.parsedType}),c}return h(e.data)}}B.create=e=>new B({typeName:eN.ZodVoid,...x(e)});class H extends b{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),i=this._def;if(t.parsedType!==n.array)return u(t,{code:a.invalid_type,expected:n.array,received:t.parsedType}),c;if(null!==i.exactLength){let s=t.data.length>i.exactLength.value,o=t.data.length<i.exactLength.value;(s||o)&&(u(t,{code:s?a.too_big:a.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(u(t,{code:a.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(u(t,{code:a.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>i.type._parseAsync(new v(t,e,t.path,r)))).then(e=>d.mergeArray(r,e));let l=[...t.data].map((e,r)=>i.type._parseSync(new v(t,e,t.path,r)));return d.mergeArray(r,l)}get element(){return this._def.type}min(e,t){return new H({...this._def,minLength:{value:e,message:eO.toString(t)}})}max(e,t){return new H({...this._def,maxLength:{value:e,message:eO.toString(t)}})}length(e,t){return new H({...this._def,exactLength:{value:e,message:eO.toString(t)}})}nonempty(e){return this.min(1,e)}}H.create=(e,t)=>new H({type:e,minLength:null,maxLength:null,exactLength:null,typeName:eN.ZodArray,...x(t)});class W extends b{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=eS.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==n.object){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.object,received:r.parsedType}),c}let{status:i,ctx:s}=this._processInputParams(e),{shape:o,keys:l}=this._getCached(),p=[];if(!(this._def.catchall instanceof U&&"strip"===this._def.unknownKeys))for(let h in s.data)l.includes(h)||p.push(h);let f=[];for(let m of l){let y=o[m],g=s.data[m];f.push({key:{status:"valid",value:m},value:y._parse(new v(s,g,s.path,m)),alwaysSet:m in s.data})}if(this._def.catchall instanceof U){let _=this._def.unknownKeys;if("passthrough"===_)for(let x of p)f.push({key:{status:"valid",value:x},value:{status:"valid",value:s.data[x]}});else if("strict"===_)p.length>0&&(u(s,{code:a.unrecognized_keys,keys:p}),i.dirty());else if("strip"===_);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let b=this._def.catchall;for(let k of p){let w=s.data[k];f.push({key:{status:"valid",value:k},value:b._parse(new v(s,w,s.path,k)),alwaysSet:k in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of f){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>d.mergeObjectSync(i,e)):d.mergeObjectSync(i,f)}get shape(){return this._def.shape()}strict(e){return eO.errToObj,new W({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,a,s;let o=null!==(a=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==a?a:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=eO.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new W({...this._def,unknownKeys:"strip"})}passthrough(){return new W({...this._def,unknownKeys:"passthrough"})}extend(e){return new W({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new W({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:eN.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new W({...this._def,catchall:e})}pick(e){let t={};return eS.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new W({...this._def,shape:()=>t})}omit(e){let t={};return eS.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new W({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof W){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=eu.create(e(i))}return new W({...t._def,shape:()=>r})}if(t instanceof H)return new H({...t._def,type:e(t.element)});if(t instanceof eu)return eu.create(e(t.unwrap()));if(t instanceof ed)return ed.create(e(t.unwrap()));if(t instanceof Y)return Y.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return eS.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new W({...this._def,shape:()=>t})}required(e){let t={};return eS.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let n=this.shape[r],i=n;for(;i instanceof eu;)i=i._def.innerType;t[r]=i}}),new W({...this._def,shape:()=>t})}keyof(){return ei(eS.objectKeys(this.shape))}}W.create=(e,t)=>new W({shape:()=>e,unknownKeys:"strip",catchall:U.create(),typeName:eN.ZodObject,...x(t)}),W.strictCreate=(e,t)=>new W({shape:()=>e,unknownKeys:"strict",catchall:U.create(),typeName:eN.ZodObject,...x(t)}),W.lazycreate=(e,t)=>new W({shape:e,unknownKeys:"strip",catchall:U.create(),typeName:eN.ZodObject,...x(t)});class q extends b{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let r of e)if("valid"===r.result.status)return r.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let i=e.map(e=>new s(e.ctx.common.issues));return u(t,{code:a.invalid_union,unionErrors:i}),c});{let n,i=[];for(let o of r){let l={...t,common:{...t.common,issues:[]},parent:null},d=o._parseSync({data:t.data,path:t.path,parent:l});if("valid"===d.status)return d;"dirty"!==d.status||n||(n={result:d,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;let p=i.map(e=>new s(e));return u(t,{code:a.invalid_union,unionErrors:p}),c}}get options(){return this._def.options}}q.create=(e,t)=>new q({options:e,typeName:eN.ZodUnion,...x(t)});let K=e=>{if(e instanceof er)return K(e.schema);if(e instanceof el)return K(e.innerType());if(e instanceof en)return[e.value];if(e instanceof ea)return e.options;if(e instanceof es)return Object.keys(e.enum);else if(e instanceof ec)return K(e._def.innerType);else if(e instanceof z)return[void 0];else if(e instanceof F)return[null];else return null};class G extends b{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.object)return u(t,{code:a.invalid_type,expected:n.object,received:t.parsedType}),c;let r=this.discriminator,i=t.data[r],s=this.optionsMap.get(i);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(u(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),c)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let i of t){let a=K(i.shape[e]);if(!a)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of a){if(n.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);n.set(s,i)}}return new G({typeName:eN.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...x(r)})}}class X extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),s=(e,s)=>{if(f(e)||f(s))return c;let o=function e(t,r){let a=i(t),s=i(r);if(t===r)return{valid:!0,data:t};if(a===n.object&&s===n.object){let o=eS.objectKeys(r),l=eS.objectKeys(t).filter(e=>-1!==o.indexOf(e)),u={...t,...r};for(let d of l){let c=e(t[d],r[d]);if(!c.valid)return{valid:!1};u[d]=c.data}return{valid:!0,data:u}}if(a===n.array&&s===n.array){if(t.length!==r.length)return{valid:!1};let p=[];for(let h=0;h<t.length;h++){let f=t[h],m=r[h],y=e(f,m);if(!y.valid)return{valid:!1};p.push(y.data)}return{valid:!0,data:p}}if(a===n.date&&s===n.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,s.value);return o.valid?((m(e)||m(s))&&t.dirty(),{status:t.value,value:o.data}):(u(r,{code:a.invalid_intersection_types}),c)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r}),]).then(([e,t])=>s(e,t)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}X.create=(e,t,r)=>new X({left:e,right:t,typeName:eN.ZodIntersection,...x(r)});class Y extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==n.array)return u(r,{code:a.invalid_type,expected:n.array,received:r.parsedType}),c;if(r.data.length<this._def.items.length)return u(r,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),c;let i=this._def.rest;!i&&r.data.length>this._def.items.length&&(u(r,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new v(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(s).then(e=>d.mergeArray(t,e)):d.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new Y({...this._def,rest:e})}}Y.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Y({items:e,typeName:eN.ZodTuple,rest:null,...x(t)})};class J extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==n.object)return u(r,{code:a.invalid_type,expected:n.object,received:r.parsedType}),c;let i=[],s=this._def.keyType,o=this._def.valueType;for(let l in r.data)i.push({key:s._parse(new v(r,l,r.path,l)),value:o._parse(new v(r,r.data[l],r.path,l))});return r.common.async?d.mergeObjectAsync(t,i):d.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,r){return new J(t instanceof b?{keyType:e,valueType:t,typeName:eN.ZodRecord,...x(r)}:{keyType:I.create(),valueType:e,typeName:eN.ZodRecord,...x(t)})}}class Q extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==n.map)return u(r,{code:a.invalid_type,expected:n.map,received:r.parsedType}),c;let i=this._def.keyType,s=this._def.valueType,o=[...r.data.entries()].map(([e,t],n)=>({key:i._parse(new v(r,e,r.path,[n,"key"])),value:s._parse(new v(r,t,r.path,[n,"value"]))}));if(r.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let e of o){let r=await e.key,n=await e.value;if("aborted"===r.status||"aborted"===n.status)return c;("dirty"===r.status||"dirty"===n.status)&&t.dirty(),l.set(r.value,n.value)}return{status:t.value,value:l}})}{let d=new Map;for(let p of o){let h=p.key,f=p.value;if("aborted"===h.status||"aborted"===f.status)return c;("dirty"===h.status||"dirty"===f.status)&&t.dirty(),d.set(h.value,f.value)}return{status:t.value,value:d}}}}Q.create=(e,t,r)=>new Q({valueType:t,keyType:e,typeName:eN.ZodMap,...x(r)});class ee extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==n.set)return u(r,{code:a.invalid_type,expected:n.set,received:r.parsedType}),c;let i=this._def;null!==i.minSize&&r.data.size<i.minSize.value&&(u(r,{code:a.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&r.data.size>i.maxSize.value&&(u(r,{code:a.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let s=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return c;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>s._parse(new v(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ee({...this._def,minSize:{value:e,message:eO.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:eO.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:eN.ZodSet,...x(t)});class et extends b{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.function)return u(t,{code:a.invalid_type,expected:n.function,received:t.parsedType}),c;function r(e,r){return l({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,o,o,].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:r}})}function i(e,r){return l({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,o,o,].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:r}})}let d={errorMap:t.common.contextualErrorMap},p=t.data;return this._def.returns instanceof eo?h(async(...e)=>{let t=new s([]),n=await this._def.args.parseAsync(e,d).catch(n=>{throw t.addIssue(r(e,n)),t}),a=await p(...n),o=await this._def.returns._def.type.parseAsync(a,d).catch(e=>{throw t.addIssue(i(a,e)),t});return o}):h((...e)=>{let t=this._def.args.safeParse(e,d);if(!t.success)throw new s([r(e,t.error)]);let n=p(...t.data),a=this._def.returns.safeParse(n,d);if(!a.success)throw new s([i(n,a.error)]);return a.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:Y.create(e).rest(V.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,r){return new et({args:e||Y.create([]).rest(V.create()),returns:t||V.create(),typeName:eN.ZodFunction,...x(r)})}}class er extends b{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.getter();return r._parse({data:t.data,path:t.path,parent:t})}}er.create=(e,t)=>new er({getter:e,typeName:eN.ZodLazy,...x(t)});class en extends b{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return u(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),c}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ei(e,t){return new ea({values:e,typeName:eN.ZodEnum,...x(t)})}en.create=(e,t)=>new en({value:e,typeName:eN.ZodLiteral,...x(t)});class ea extends b{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return u(t,{expected:eS.joinValues(r),received:t.parsedType,code:a.invalid_type}),c}if(-1===this._def.values.indexOf(e.data)){let n=this._getOrReturnCtx(e),i=this._def.values;return u(n,{received:n.data,code:a.invalid_enum_value,options:i}),c}return h(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return ea.create(e)}exclude(e){return ea.create(this.options.filter(t=>!e.includes(t)))}}ea.create=ei;class es extends b{_parse(e){let t=eS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==n.string&&r.parsedType!==n.number){let i=eS.objectValues(t);return u(r,{expected:eS.joinValues(i),received:r.parsedType,code:a.invalid_type}),c}if(-1===t.indexOf(e.data)){let s=eS.objectValues(t);return u(r,{received:r.data,code:a.invalid_enum_value,options:s}),c}return h(e.data)}get enum(){return this._def.values}}es.create=(e,t)=>new es({values:e,typeName:eN.ZodNativeEnum,...x(t)});class eo extends b{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==n.promise&&!1===t.common.async)return u(t,{code:a.invalid_type,expected:n.promise,received:t.parsedType}),c;let r=t.parsedType===n.promise?t.data:Promise.resolve(t.data);return h(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eo.create=(e,t)=>new eo({type:e,typeName:eN.ZodPromise,...x(t)});class el extends b{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eN.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null;if("preprocess"===n.type){let i=n.transform(r.data);return r.common.async?Promise.resolve(i).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:i,path:r.path,parent:r})}let a={addIssue(e){u(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),"refinement"===n.type){let s=e=>{let t=n.refinement(e,a);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"aborted"===e.status?c:("dirty"===e.status&&t.dirty(),s(e.value).then(()=>({status:t.value,value:e.value}))));{let o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===o.status?c:("dirty"===o.status&&t.dirty(),s(o.value),{status:t.value,value:o.value})}}if("transform"===n.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>y(e)?Promise.resolve(n.transform(e.value,a)).then(e=>({status:t.value,value:e})):e);{let l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!y(l))return l;let d=n.transform(l.value,a);if(d instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:d}}}eS.assertNever(n)}}el.create=(e,t,r)=>new el({schema:e,typeName:eN.ZodEffects,effect:t,...x(r)}),el.createWithPreprocess=(e,t,r)=>new el({schema:t,effect:{type:"preprocess",transform:e},typeName:eN.ZodEffects,...x(r)});class eu extends b{_parse(e){let t=this._getType(e);return t===n.undefined?h(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eu.create=(e,t)=>new eu({innerType:e,typeName:eN.ZodOptional,...x(t)});class ed extends b{_parse(e){let t=this._getType(e);return t===n.null?h(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ed.create=(e,t)=>new ed({innerType:e,typeName:eN.ZodNullable,...x(t)});class ec extends b{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===n.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:eN.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...x(t)});class ep extends b{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return g(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ep.create=(e,t)=>new ep({innerType:e,typeName:eN.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...x(t)});class eh extends b{_parse(e){let t=this._getType(e);if(t!==n.nan){let r=this._getOrReturnCtx(e);return u(r,{code:a.invalid_type,expected:n.nan,received:r.parsedType}),c}return{status:"valid",value:e.data}}}eh.create=e=>new eh({typeName:eN.ZodNaN,...x(e)}),Symbol("zod_brand");class ef extends b{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class em extends b{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){let n=async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?c:"dirty"===e.status?(t.dirty(),p(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})};return n()}{let i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===i.status?c:"dirty"===i.status?(t.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(e,t){return new em({in:e,out:t,typeName:eN.ZodPipeline})}}W.lazycreate,(eC=eN||(eN={})).ZodString="ZodString",eC.ZodNumber="ZodNumber",eC.ZodNaN="ZodNaN",eC.ZodBigInt="ZodBigInt",eC.ZodBoolean="ZodBoolean",eC.ZodDate="ZodDate",eC.ZodSymbol="ZodSymbol",eC.ZodUndefined="ZodUndefined",eC.ZodNull="ZodNull",eC.ZodAny="ZodAny",eC.ZodUnknown="ZodUnknown",eC.ZodNever="ZodNever",eC.ZodVoid="ZodVoid",eC.ZodArray="ZodArray",eC.ZodObject="ZodObject",eC.ZodUnion="ZodUnion",eC.ZodDiscriminatedUnion="ZodDiscriminatedUnion",eC.ZodIntersection="ZodIntersection",eC.ZodTuple="ZodTuple",eC.ZodRecord="ZodRecord",eC.ZodMap="ZodMap",eC.ZodSet="ZodSet",eC.ZodFunction="ZodFunction",eC.ZodLazy="ZodLazy",eC.ZodLiteral="ZodLiteral",eC.ZodEnum="ZodEnum",eC.ZodEffects="ZodEffects",eC.ZodNativeEnum="ZodNativeEnum",eC.ZodOptional="ZodOptional",eC.ZodNullable="ZodNullable",eC.ZodDefault="ZodDefault",eC.ZodCatch="ZodCatch",eC.ZodPromise="ZodPromise",eC.ZodBranded="ZodBranded",eC.ZodPipeline="ZodPipeline";let ey=I.create,eg=Z.create,ev=(eh.create,R.create,M.create,L.create,D.create,z.create,F.create,$.create,V.create,U.create,B.create,H.create),e_=W.create,ex=(W.strictCreate,q.create,G.create),eb=(X.create,Y.create,J.create,Q.create,ee.create,et.create,er.create,en.create);ea.create,es.create,eo.create,el.create,eu.create,ed.create,el.createWithPreprocess,em.create;var ek,ew,eT,eC,eS,eE,eO,eN,eP=r(1611);let eA=ex("status",[e_({status:eb("unclassified")}),e_({status:eb("published")}),e_({status:eb("release"),release_id:ey()}),e_({status:eb("archived")})]).and(e_({version_id:ey(),tags:ev(ey()),custom_type_label:ey(),preview_summary:ey().optional(),preview_image:ey().optional()})),eI=e_({id:ey(),custom_type_id:ey(),title:ey(),versions:ev(eA)}),ej=e_({total:eg(),cursor:ey().optional(),results:ev(eI)});function eZ(e,t,r,n,i){let a=new URLSearchParams({limit:i.toString(),...t&&{cursor:t}});return(0,eP.WY)(`${e}/documents?${a.toString()}&${n}`,{credentials:(0,eP.xb)(r),okType:ej})}function eR(e){return e.reduce((e,t)=>{let r=t.values.map(e=>[t.name,e]);return e.concat(r)},[])}},52393:function(e,t,r){"use strict";function n(e,t){for(let r of e)if(t(r))return!0;return!1}r.d(t,{G:function(){return n}})},77252:function(e,t,r){"use strict";function n(e){try{return new URL(e)}catch{return}}r.d(t,{j:function(){return n}})},34821:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(n=r=t.ElementType||(t.ElementType={})).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},79959:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=r(34821),s=r(75538);i(r(75538),t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?a.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new s.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=e;return}var t=new s.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new s.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},75538:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(34821),o=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),k(this,e)},e}();t.Node=o;var l=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(o);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=d;var c=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n.type=s.ElementType.Directive,n}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=c;var p=function(e){function t(t){var r=e.call(this)||this;return r.children=t,r}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(o);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var a=e.call(this,n)||this;return a.name=t,a.attribs=r,a.type=i,a}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}})},enumerable:!1,configurable:!0}),t}(p);function y(e){return(0,s.isTag)(e)}function g(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function _(e){return e.type===s.ElementType.Comment}function x(e){return e.type===s.ElementType.Directive}function b(e){return e.type===s.ElementType.Root}function k(e,t){if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(_(e))r=new d(e.data);else if(y(e)){var r,n=t?w(e.children):[],i=new m(e.name,a({},e.attribs),n);n.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),r=i}else if(g(e)){var n=t?w(e.children):[],s=new h(n);n.forEach(function(e){return e.parent=s}),r=s}else if(b(e)){var n=t?w(e.children):[],o=new f(n);n.forEach(function(e){return e.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),r=o}else if(x(e)){var l=new c(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}else throw Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function w(e){for(var t=e.map(function(e){return k(e,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=y,t.isCDATA=g,t.isText=v,t.isComment=_,t.isDirective=x,t.isDocument=b,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=k},8401:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},58166:function(e){var t,r="html",n="head",i="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,o=/<body[^]*>/i,l=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var c=new d;l=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),c.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();l=function(e,t){return t?(p.documentElement.querySelector(t).innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var h="object"==typeof document?document.createElement("template"):{};h.content&&(t=function(e){return h.innerHTML=e,h.content.childNodes}),e.exports=function(e){var d,c,p,h,f=e.match(a);switch(f&&f[1]&&(d=f[1].toLowerCase()),d){case r:return c=u(e),!s.test(e)&&(p=c.querySelector(n))&&p.parentNode.removeChild(p),!o.test(e)&&(p=c.querySelector(i))&&p.parentNode.removeChild(p),c.querySelectorAll(r);case n:case i:if(h=(c=l(e)).querySelectorAll(d),o.test(e)&&s.test(e))return h[0].parentNode.childNodes;return h;default:if(t)return t(e);return(p=l(e,i).querySelector(i)).childNodes}}},50307:function(e,t,r){var n=r(58166),i=r(41594).formatDOM,a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(a);return r&&r[1]&&(t=r[1]),i(n(e),null,t)}},41594:function(e,t,r){for(var n,i=r(79959),a=r(8401).CASE_SENSITIVE_TAG_NAMES,s=i.Comment,o=i.Element,l=i.ProcessingInstruction,u=i.Text,d={},c=0,p=a.length;c<p;c++)d[(n=a[c]).toLowerCase()]=n;function h(e){for(var t,r={},n=0,i=e.length;n<i;n++)r[(t=e[n]).name]=t.value;return r}function f(e){var t,r=d[t=e=e.toLowerCase()];return r||e}t.formatAttributes=h,t.formatDOM=function e(t,r,n){r=r||null;for(var i=[],a=0,d=t.length;a<d;a++){var c,p,m=t[a];switch(m.nodeType){case 1:c=f(m.nodeName),(p=new o(c,h(m.attributes))).children=e("template"===c?m.content.childNodes:m.childNodes,p);break;case 3:p=new u(m.nodeValue);break;case 8:p=new s(m.nodeValue);break;default:continue}var y=i[a-1]||null;y&&(y.next=p),p.parent=r,p.prev=y,p.next=null,i.push(p)}return n&&((p=new l(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=i[0]||null,p.parent=r,i.unshift(p),i[1]&&(i[1].prev=i[0])),i}},72670:function(e,t,r){var n=r(79959),i=r(50307),a=r(13683),s=r(69239);i="function"==typeof i.default?i.default:i;var o={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return""===e?[]:s(i(e,(t=t||{}).htmlparser2||o),t)}l.domToReact=s,l.htmlToDOM=i,l.attributesToProps=a,l.Comment=n.Comment,l.Element=n.Element,l.ProcessingInstruction=n.ProcessingInstruction,l.Text=n.Text,e.exports=l,l.default=l},13683:function(e,t,r){var n=r(18701),i=r(54848),a=["checked","value"],s=["input","select","textarea"],o={reset:!0,submit:!0};function l(e){return n.possibleStandardNames[e]}e.exports=function(e,t){var r,u,d,c,p,h={},f=(e=e||{}).type&&o[e.type];for(r in e){if(d=e[r],n.isCustomAttribute(r)){h[r]=d;continue}if(c=l(u=r.toLowerCase())){switch(p=n.getPropertyInfo(c),-1===a.indexOf(c)||-1===s.indexOf(t)||f||(c=l("default"+u)),h[c]=d,p&&p.type){case n.BOOLEAN:h[c]=!0;break;case n.OVERLOADED_BOOLEAN:""===d&&(h[c]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(h[r]=d)}return i.setStyleProp(e.style,h),h}},69239:function(e,t,r){var n=r(2784),i=r(13683),a=r(54848),s=a.setStyleProp,o=a.canTextBeChildOfNode;function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&a.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var a,u,d,c,p,h=(r=r||{}).library||n,f=h.cloneElement,m=h.createElement,y=h.isValidElement,g=[],v="function"==typeof r.replace,_=r.trim,x=0,b=t.length;x<b;x++){if(a=t[x],v&&y(d=r.replace(a))){b>1&&(d=f(d,{key:d.key||x})),g.push(d);continue}if("text"===a.type){if((u=!a.data.trim().length)&&a.parent&&!o(a.parent)||_&&u)continue;g.push(a.data);continue}switch(c=a.attribs,l(a)?s(c.style,c):c&&(c=i(c,a.name)),p=null,a.type){case"script":case"style":a.children[0]&&(c.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?c.defaultValue=a.children[0].data:a.children&&a.children.length&&(p=e(a.children,r));break;default:continue}b>1&&(c.key=x),g.push(m(a.name,c,p))}return 1===g.length?g[0]:g}},54848:function(e,t,r){var n=r(2784),i=r(91618).default,a={reactCompat:!0},s=n.version.split(".")[0]>=16,o=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw TypeError("First argument must be an object");var r,n,i="function"==typeof t,a={},s={};for(r in e){if(n=e[r],i&&(a=t(r,n))&&2===a.length){s[a[0]]=a[1];continue}"string"==typeof n&&(s[n]=r)}return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,a)}catch(r){t.style={}}},canTextBeChildOfNode:function(e){return!o.has(e.name)},elementsWithNoTextChildren:o}},6299:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,c=1;function p(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");c=~n?e.length-n:c+e.length}function h(){var e={line:d,column:c};return function(t){return t.position=new f(e),v(),t}}function f(e){this.start=e,this.end={line:d,column:c},this.source=l.source}f.prototype.content=e;var m=[];function y(t){var r=Error(l.source+":"+d+":"+c+": "+t);if(r.reason=t,r.filename=l.source,r.line=d,r.column=c,r.source=e,l.silent)m.push(r);else throw r}function g(t){var r=t.exec(e);if(r){var n=r[0];return p(n),e=e.slice(n.length),r}}function v(){g(n)}function _(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;""!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,""===e.charAt(r-1))return y("End of comment missing");var n=e.slice(2,r-2);return c+=2,p(n),e=e.slice(r),c+=2,t({type:"comment",comment:n})}}function b(){var e=h(),r=g(i);if(r){if(x(),!g(a))return y("property missing ':'");var n=g(s),l=e({type:"declaration",property:u(r[0].replace(t,"")),value:n?u(n[0].replace(t,"")):""});return g(o),l}}return v(),function(){var e,t=[];for(_(t);e=b();)!1!==e&&(t.push(e),_(t));return t}()}},18701:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r,n,i,a,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}Object.defineProperty(t,"__esModule",{value:!0});var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){a[e]=new i(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t,r,s=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(l){o=!0,n=l}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,2)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=s[0],l=s[1];a[o]=new i(o,1,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){a[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){a[e]=new i(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){a[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){a[e]=new i(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){a[e]=new i(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){a[e]=new i(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){a[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)});var s=/[\-\:]([a-z])/g,o=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)}),a.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)});var l=r(52558),u=l.CAMELCASE,d=l.SAME,c=l.possibleStandardNames,p=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(c).reduce(function(e,t){var r=c[t];return r===d?e[t]=t:r===u?e[t.toLowerCase()]=t:e[t]=r,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=p,t.possibleStandardNames=h},52558:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},91618:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(r(85653)),a=r(31380);t.default=function(e,t){var r={};return e&&"string"==typeof e&&(0,i.default)(e,function(e,n){e&&n&&(r[(0,a.camelCase)(e,t)]=n)}),r}},31380:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")},u=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||r.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(a,l)).replace(n,o))};t.camelCase=u},85653:function(e,t,r){var n=r(6299);function i(e,t){var r,i,a,s=null;if(!e||"string"!=typeof e)return s;for(var o=n(e),l="function"==typeof t,u=0,d=o.length;u<d;u++)i=(r=o[u]).property,a=r.value,l?t(i,a,r):a&&(s||(s={}),s[i]=a);return s}e.exports=i,e.exports.default=i},86741:function(e,t,r){"use strict";r.d(t,{W_:function(){return a},du:function(){return i}});var n=r(72670),i=n.domToReact;n.htmlToDOM,n.attributesToProps,n.Comment;var a=n.Element;n.ProcessingInstruction,n.Text,t.ZP=n},33402:function(e,t,r){"use strict";function n(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r.d(t,{Z:function(){return n}})}}]);
|