1(globalThis["webpackChunk_canva_web"] = globalThis["webpackChunk_canva_web"] || []).push([[94260],{ 2 3/***/ 286663: 4function(_, __, __webpack_require__) {__webpack_require__.n_x = __webpack_require__.n;const __web_req__ = __webpack_require__;__web_req__(905716);__web_req__(214065);globalThis._5f74ec40302898c5a55451c9fbd04240 = globalThis._5f74ec40302898c5a55451c9fbd04240 || {};(function(__c) {var y2=function(a,b){var c=a.Dwb.get(b);if(c!=null)return c;c={value:a.schema.Ax(b)};a.Dwb.set(b,c);a.xwb.set(c,b);return c},z2=function(a,b){a=a.xwb.get(b);if(a==null)throw new Y1c("ref does not exists");return a},Z1c=function(){const a=b=>{if(b?.type!=="text2")throw new A2("text2",b);return b.value};return{zo:b=>({type:"text2",value:b}),Bx:b=>{if(b?.type!=="text2")throw new B2("text2",b);return b.value},Ax:a,oC:a}},$1c=__webpack_require__(622889).EW;var a2c=class{static G(a){__c.L(a,{mab:$1c})}get mab(){const a=[];for(const b of this.list.value){const c=y2(this,b);if(c===void 0)throw new Y1c("undefined value found when deserializing list.");a.push(c)}return a}count(){return this.list.value.count()}toArray(){return this.mab.map(({value:a})=>a)}first(a){const b=this.list.value.first(a?c=>a(y2(this,c)):void 0);if(b!=null)return y2(this,b)}last(a){const b=this.list.value.last(a?c=>a(y2(this,c)):void 0);if(b!=null)return y2(this,b)}next(a,b){var c= 5b?d=>b(y2(this,d)):void 0;a=z2(this,a);c=this.list.value.next(a,c);if(c!=null)return y2(this,c)}previous(a,b){var c=b?d=>b(y2(this,d)):void 0;a=z2(this,a);c=this.list.value.previous(a,c);if(c!=null)return y2(this,c)}map(a){return this.list.value.map((b,c)=>a(y2(this,b),c))}filter(a){return this.list.value.filter((b,c)=>a(y2(this,b),c)).map(b=>y2(this,b))}forEach(a){return this.list.value.forEach((b,c)=>a(y2(this,b),c))}some(a){return this.list.value.some(b=>a(y2(this,b)))}constructor(a,b){this.schema= 6b;this.Dwb=(a2c.G(this),new WeakMap);this.xwb=new WeakMap;__c.x(a.type==="list");this.list=a}},b2c=class extends a2c{replace(a,b){a=z2(this,a);b=this.list.value.replace(a,this.schema.zo(b));return y2(this,b)}ZT(a,b){a=a!=null?z2(this,a):void 0;b=this.list.value.ZT(a,this.schema.zo(b));return y2(this,b)}KO(a,b){a=a!=null?z2(this,a):void 0;return this.list.value.KO(a,b.map(c=>this.schema.zo(c))).map(c=>y2(this,c))}insertBefore(a,b){a=a!=null?z2(this,a):void 0;b=this.list.value.insertBefore(a,this.schema.zo(b)); 7return y2(this,b)}append(a){a=this.list.value.append(this.schema.zo(a));return y2(this,a)}prepend(a){a=this.list.value.prepend(this.schema.zo(a));return y2(this,a)}delete(a){a=z2(this,a);this.list.value.delete(a)}yN(a){this.list.value.yN(a?b=>a(y2(this,b)):void 0)}moveBefore(a,b){a=a==null?void 0:z2(this,a);b=z2(this,b);this.list.value.moveBefore(a,b)}};var D2=class{static string(a){const b=(c,d)=>
7{if(c==null&&a!=null)return a;if(c?.type!=="string")throw d==="toWidgetData"?new A2("string",c):new B2("string",c);return c.value};return{zo:c=>({type:"string",value:c}),Bx:c=>b(c,"toWidgetState"),Ax:c=>b(c,"toWidgetData"),oC:c=>b(c,"toWidgetData")}}static literal(a,b){if(a.length===0)throw new C2("At least one value must be provided for literal types.");const c=new Set(a),d=(e,f)=>{if(e==null&&b!=null)return b;if(e?.type!=="string"||!c.has(e.value))throw f=== 8"toWidgetData"?new A2("literal",e):new B2("literal",e);return e.value};return{zo:e=>({type:"string",value:e}),Bx:e=>d(e,"toWidgetState"),Ax:e=>d(e,"toWidgetData"),oC:e=>d(e,"toWidgetData")}}static integer(a){const b=(c,d)=>{if(c==null&&a!=null)return a;if(c?.type!=="int32"||!Number.isFinite(c.value)||!Number.isInteger(c.value))throw d==="toWidgetData"?new A2("integer",c):new B2("integer",c);return c.value};return{zo:c=>{if(!Number.isFinite(c)||!Number.isInteger(c))throw new c2c("integer",c);return{type:"int32", 9value:c}},Bx:c=>b(c,"toWidgetState"),Ax:c=>b(c,"toWidgetData"),oC:c=>b(c,"toWidgetData")}}static double(a){const b=(c,d)=>
9{if(c==null&&a!=null)return a;if(c?.type!=="double"||!Number.isFinite(c.value))throw d==="toWidgetData"?new A2("double",c):new B2("double",c);return c.value};return{zo:c=>{if(!Number.isFinite(c))throw new c2c("double",c);return{type:"double",value:c}},Bx:c=>b(c,"toWidgetState"),Ax:c=>b(c,"toWidgetData"),oC:c=>b(c,"toWidgetData")}}static boolean(a){const b=(c,d)=>{if(c==null&&a!= 10null)return a;if(c?.type!=="boolean")throw d==="toWidgetData"?new A2("boolean",c):new B2("boolean",c);return c.value};return{zo:c=>({type:"boolean",value:c}),Bx:c=>b(c,"toWidgetState"),Ax:c=>b(c,"toWidgetData"),oC:c=>b(c,"toWidgetData")}}static fill(){const a=b=>{if(b?.type!=="fill")throw new A2("fill",b);return b.value};return{zo:b=>({type:"fill",value:b}),Bx:b=>{if(b?.type!=="fill")throw new B2("fill",b);return b.value},Ax:a,oC:a}}static stroke(){const a=b=>{if(b?.type!=="stroke")throw new A2("stroke", 11b);return b.value};return{zo:b=>({type:"stroke",value:b}),Bx:b=>{if(b?.type!=="stroke")throw new B2("stroke",b);return b.value},Ax:a,oC:a}}static N(a){const b=new Set;for(const d of Object.keys(a)){const [e]=a[d];if(b.has(e))throw new C2(`Duplicate serialized keys "${e}" found in record schema.`);b.add(e)}const c=(d,e)=>{if(e?.type!=="dict")throw new A2("record",e);const f={};for(const g of Object.keys(a)){const [h,k]=a[g],l=$1c(()=>{const m=e.value.get(h);return k.Ax(m)},{keepAlive:!0});Object.defineProperty(f, 12g,{get(){return l.get()},set(m){d!=="readonly"&&(m=k.zo(m),m==null?e.value.delete(h):e.value.set(h,m))},enumerable:!0})}return f};return{zo:d=>{const e={};for(const f of Object.keys(a)){const [g,h]=a[f],k=h.zo(d[f]);k!=null&&(e[g]=k)}return{type:"dict",value:new Map(Object.entries(e))}},Bx:d=>{if(d?.type!=="dict")throw new B2("record",d);const e={};for(const f of Object.keys(a)){const [g,h]=a[f],k=h.Bx(d.value.get(g));k!=null&&(e[f]=k)}return e},Ax:d=>c("editable",d),oC:d=>c("readonly",d),Ub:d=>D2.N({...a, 13...d})}}static list(a){return{zo:b=>({type:"list",value:b.map(c=>a.zo(c))}),Bx:b=>{if(b?.type!=="list")throw new B2("list",b);return b.value.filter(__c.Ab).map(c=>a.Bx(c))},Ax:b=>{if(b?.type!=="list")throw new A2("list",b);return new b2c(b,a)},oC:b=>{if(b?.type!=="list")throw new A2("list",b);return new a2c(b,a)}}}static optional(a){return{zo:b=>{if(b!=null)return a.zo(b)},Bx:b=>{if(b!=null)return a.Bx(b)},Ax:b=>{if(b!=null)return a.Ax(b)},oC:b=>{if(b!=null)return a.oC(b)}}}static union(a,b){const c= 14new Set(Object.keys(a)),d=e=>{if(e?.type!=="dict")throw new A2("union",e);const f=e.value.get("k")?.value,g=e.value.get("v");if(f==null||g==null||typeof f!=="string"||!c.has(f))throw new A2("union",e);return{Uqa:a[f],Vqa:g}};return{zo:e=>{const f=b(e);return{type:"dict",value:new Map([["k",{type:"string",value:f}],["v",a[f].zo(e)]])}},Bx:e=>{if(e?.type!=="dict")throw new B2("union",e);const f=e.value.get("k")?.value,g=e.value.get("v");if(f==null||g==null||typeof f!=="string"||!c.has(f))throw new B2("union", 15e);const {Uqa:h,Vqa:k}={Uqa:a[f],Vqa:g};return h.Bx(k)},Ax:e=>{const {Uqa:f,Vqa:g}=d(e);return f.Ax(g)},oC:e=>{const {Uqa:f,Vqa:g}=d(e);return f.oC(g)}}}},C2=class extends Error{constructor(a){super(a);this.name="SchemaError"}},Y1c=class extends C2{constructor(a){super(`ListError: ${a}`)}},A2=class extends C2{constructor(a,b){super(`Error transforming ${b} into type ${a} of widget data`)}},B2=class extends C2{constructor(a,b){super(`Error transforming ${b} into type ${a} of widget state`)}},c2c=class extends C2{constructor(a, 16b){super(`Error transforming ${b} into type ${a} of document state`)}};var d2c={settings:{status:2},rGc:new Map,sGc:0,xsc:void 0,Kic:void 0,LPa:!1,Xsc:"unchecked",G_:!1,Sp:!1};var e2c=D2.N({type:["t",D2.literal(["text2"],"text2"),"readonly"],text:["te",Z1c()]}),f2c=D2.union({text2:e2c},a=>a.type),g2c=D2.N({id:["i",D2.string("")],label:["l",f2c]}),h2c=D2.list(g2c),i2c=D2.list(D2.string("")),j2c=D2.N({id:["i",D2.string("")],label:["l",f2c],$O:["tl",D2.literal(["c","u"],"c")],URa:["k",D2.optional(D2.double(1))],required:["rq",D2.boolean(!1)],X:["c",D2.double(0)]}),k2c=D2.N({type:["t",D2.literal(["r"],"r"),"readonly"]}),l2c=D2.N({type:["t",D2.literal(["p"],"p"),"readonly"]}), 17m2c=D2.N({type:["t",D2.literal(["q"],"q"),"readonly"]}),n2c=D2.union({r:k2c,p:l2c,q:m2c},a=>a.type),o2c=j2c.Ub({type:["t",D2.literal(["select"],"select"),"readonly"],variant:["v",D2.optional(n2c)],options:["o",h2c],y9:["m",D2.optional(D2.integer(1))],lKa:["co",i2c]}),p2c=D2.N({type:["t",D2.literal(["e"],"e"),"readonly"]}),q2c=D2.N({type:["t",D2.literal(["f"],"f"),"readonly"],NU:["n",D2.integer(1)]}),r2c=D2.union({e:p2c,f:q2c},a=>a.type),s2c=j2c.Ub({type:["t",D2.literal(["text"],"text"),"readonly"], 18placeholder:["p",D2.string("")],variant:["v",r2c]}),t2c=D2.N({type:["t",D2.literal(["a"],"a"),"readonly"]}),u2c=D2.N({type:["t",D2.literal(["b"],"b"),"readonly"]}),v2c=D2.N({type:["t",D2.literal(["c"],"c"),"readonly"]}),w2c=D2.N({type:["t",D2.literal(["d"],"d"),"readonly"]}),x2c=D2.union({a:t2c,b:u2c,c:v2c,d:w2c},a=>a.type),y2c=j2c.Ub({type:["t",D2.literal(["number"],"number"),"readonly"],variant:["v",x2c],min:["a",D2.optional(D2.double())],max:["b",D2.optional(D2.double())]}),z2c=D2.union({select:o2c, 19text:s2c,number:y2c},a=>a.type),A2c=D2.list(z2c),B2c=D2.N({Jt:["A",D2.optional(D2.double(1))],Kt:["B",D2.optional(D2.double(1))],Sw:["C",D2.optional(D2.double(1))]}),C2c=D2.N({label:["l",f2c],$O:["B",D2.optional(D2.literal(["c","u"]))],Sw:["C",D2.optional(D2.double(1))],Kt:["E",D2.optional(D2.double(1))],Jt:["D",D2.optional(D2.double(1))],Jka:["F",D2.optional(D2.double(1))]}),D2c=D2.N({}),E2c=D2.N({Ika:["A",D2.double(1.25)],Sw:["B",D2.double(1)],Kt:["C",D2.double(1.25)],Jt:["D",D2.double(1.25)],background:["E", 20D2.optional(D2.fill())]}),F2c=D2.N({label:["A",Z1c()],$O:["tl",D2.literal(["c","u"])]}),G2c=D2.literal(["l","r"],"l"),H2c=D2.N({minHeight:["mh",D2.double(1)],minWidth:["mw",D2.double(1)],type:["t",D2.literal(["poll","quiz"],"poll"),"readonly"],id:["i",D2.string()],lv:["s",D2.string()],Tt:["a",D2.optional(D2.string())],direction:["r",G2c],Hsa:["d",D2.string("")],ila:["pf",D2.fill()],dma:["sf",D2.fill()],border:["b",D2.stroke()],X:["c",D2.double(0)],Jk:["D",D2.optional(D2.double(16))],Ul:["E",D2.optional(D2.double(16))], 21yZ:["F",D2.optional(B2c)],h8:["hh",D2.boolean(!1)],YPa:["I",D2.optional(D2.boolean(!1))],tCa:["z",D2.boolean(!0)],n$a:["h",D2.optional(D2c)],title:["j",D2.optional(F2c)],header:["A",D2.optional(E2c)],fields:["f",A2c],footer:["fo",D2.optional(C2c)]}),I2c=D2.union({poll:H2c,quiz:H2c},a=>a.type);__c.oPa={xJb:function(){return{Wsc:d2c,schema:I2c}}}; 22}).call(globalThis, globalThis._5f74ec40302898c5a55451c9fbd04240);} 23 24}]) 25//# sourceMappingURL=sourcemaps/1330263482515f27.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.