1(globalThis["webpackChunk_canva_web"] = globalThis["webpackChunk_canva_web"] || []).push([[68131],{ 2 3/***/ 62770: 4function(_, __, __webpack_require__) {__webpack_require__.n_x = __webpack_require__.n;const __web_req__ = __webpack_require__;__web_req__(905716);globalThis._5f74ec40302898c5a55451c9fbd04240 = globalThis._5f74ec40302898c5a55451c9fbd04240 || {};(function(__c) {var rW;var v0,rCc,sCc,uCc,vCc,xCc,zCc,ACc,CCc,DCc,FCc,D0,HCc,ICc,KCc,LCc,JCc,MCc,tCc;v0=function(a){return a.isConnected&&a.matches("input:not([disabled]):not([type=hidden]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[contenteditable],[tabindex],[autofocus]")};rCc=function(a){return Array.from(a.querySelectorAll("input:not([disabled]):not([type=hidden]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[contenteditable],[tabindex],[autofocus]"))}; 5__c.w0=function(a){return a.querySelector("input:not([disabled]):not([type=hidden]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[contenteditable],[tabindex],[autofocus]")}; 6sCc=function(a){function b(e){e.target instanceof Element?(c=e.target,d.disconnect(),d.observe(e.target)):c=null}let c=a.activeElement;const d=new IntersectionObserver(()=>{if(a.activeElement!==c&&!(c instanceof HTMLElement&&v0(c))){const e=a.defaultView?.top?.document;(e!=null&&e!==a&&e.hasFocus()&&!a.hasFocus()?0:a.activeElement==null||a.activeElement===a.body)&&a.dispatchEvent(new FocusEvent("focusfixup"))}},{root:null,rootMargin:"9999px"});a.addEventListener("focusin",b);return()=>{d.disconnect(); 7a.removeEventListener("focusin",b)}};uCc=function(a){function b(d){const e=d.target;clearTimeout(c);c=setTimeout(tCc.wrap(()=>{a.activeElement instanceof HTMLIFrameElement&&a.activeElement.dispatchEvent(new FocusEvent("focusin",{relatedTarget:e}))}))}let c;a.addEventListener("focusout",b,{capture:!0});return()=>{a.removeEventListener("focusout",b,{capture:!0})}};vCc=function(a=!1){if(x0.enabled)for(let b=y0.length-1;b>0;b--)a&&y0[b].element.isConnected||(a||!v0(y0[b].element))&&y0.splice(b,1)}; 8xCc=function(){var a=x0.state.element;wCc=!0;a.focus({preventScroll:!0})};zCc=function(a){clearTimeout(yCc);yCc=setTimeout(tCc.wrap(()=>{document.dispatchEvent(new CustomEvent("focusstatechange",{detail:{type:a}}))}))};ACc=function(a,b=x0.state.boundary){return{element:a,boundary:b}}; 9CCc=function(){function a(){vCc();xCc();zCc("pop")}function b(f){wCc?wCc=!1:f.target instanceof HTMLElement&&(vCc(!0),f=ACc(f.target,c.body),y0.length>=100&&y0.shift(),y0.push(f),zCc("push"))}var c=document;if(!x0.enabled){y0.length=0;y0.push({element:__c.w0(c.body)??c.body,boundary:c.body});BCc=!0;c.addEventListener("focusfixup",a,{capture:!0});c.addEventListener("focusin",b,{capture:!0});var d=sCc(c),e=uCc(c);return()=>{y0.length=0;BCc=!1;c.removeEventListener("focusfixup",a,{capture:!0});c.removeEventListener("focusin", 10b,{capture:!0});d();e()}}};DCc=function(a){const b=z0(null),c=z0(void 0);A0(()=>{if(b.current)return c.current=new MutationObserver(a),c.current.observe(b.current,{childList:!0,subtree:!0}),a([],c.current),()=>c.current?.disconnect()},[a]);return{ref:b}}; 11FCc=function(){const a=z0(null),b=z0([]),c=z0(null);var d=B0(()=>{a.current&&(b.current=rCc(a.current))},[]);({ref:d}=DCc(d));d=__c.sv(a,d);const e=B0(h=>{h.target instanceof HTMLElement&&(c.current=h.target)},[]),f=B0(h=>{h.relatedTarget instanceof HTMLElement&&!a.current?.contains(h.relatedTarget)&&(c.current=null)},[]),g=ECc(()=>({get focused(){return c.current},get i7a(){return b.current.slice()},ZHb(h,k){({wrap:k=!0}=k??{});const l=b.current;if(h=l[k?h%l.length:h])return h.focus(),h},$gc(h){({wrap:h= 12!0}=h??{});const k=b.current,l=k.findIndex(m=>m===c.current);if(l!==-1&&(h=k[h?(l+1)%k.length:Math.min(l+1,k.length-1)]))return h.focus(),h},ahc(h){({wrap:h=!0}=h??{});const k=b.current,l=k.findIndex(m=>m===c.current);if(l!==-1&&(h=k[h?l>0?l-1:k.length-1:Math.max(0,l-1)]))return h.focus(),h},Ygc(){const h=b.current[0];if(h)return h.focus(),h},focusLast(){var h=b.current;if(h=h[h.length-1])return h.focus(),h}}),[]);return{ref:d,onFocusCapture:e,onBlur:f,g7a:g}};D0=function(){return GCc(C0)}; 13HCc=function({onEnter:a,ETb:b}={}){const c=z0(null),d=z0(!1),e=B0(h=>{x0.enabled&&h.target instanceof HTMLElement&&x0.enabled&&(y0[y0.length-1]=ACc(h.target,c.current),xCc(),zCc("replace"));d.current||(d.current=!0,a?.(h))},[a]),f=B0(h=>{h.relatedTarget instanceof HTMLElement&&!c.current?.contains(h.relatedTarget)&&(d.current=!1,b?.(h))},[b]),g=z0(b);__c.ub(()=>{g.current=b},[b]);A0(()=>()=>{d.current&&g.current?.()},[]);return{ref:c,onFocusCapture:e,onBlur:f}}; 14ICc=function(a,b){return a instanceof HTMLElement?v0(a)?a:__c.w0(a):b?.i7a[0]};KCc=function(){const a=z0(null),b=D0();JCc(!0,()=>ICc(a.current,b));return{ref:a}};LCc=function(a){const b=D0(),c=a.to,d=z0(c);__c.ub(()=>{d.current=c},[c]);A0(()=>()=>{if(b?.focused!=null){var e=typeof d.current==="string"?document.getElementById(d.current):d.current();e&&e.focus()}},[b])};JCc=function(a,b){const c=z0(void 0);A0(()=>{a!==c.current&&(a===!0&&b()?.focus(),c.current=a)},[a,b])}; 15MCc=function(a,b){const c=z0(null),d=D0(),e=z0(a);A0(()=>
15{if(a!==e.current){e.current=a;if(c.current instanceof HTMLElement)return rCc(c.current)[a]?.focus();d!=null&&d.ZHb(a)}},[a,d]);const f=z0(b);__c.ub(()=>{f.current=b},[b]);const g=B0(h=>{const k=(c.current instanceof HTMLElement?rCc(c.current):d?.i7a)?.findIndex(l=>l===h.target)??-1;f.current?.(k)},[d]);return{ref:c,onFocus:g}};tCc=__webpack_require__(815703).F;var E0=__webpack_require__(296713).jsx;var F0=__webpack_require__(978109),B0=F0.useCallback,GCc=F0.useContext,A0=F0.useEffect,NCc=F0.useImperativeHandle,ECc=F0.useMemo,z0=F0.useRef;var y0=[],BCc=!1,wCc=!1,x0={get enabled(){return BCc},get state(){return y0[y0.length-1]??ACc(document.activeElement,document.body)}},yCc;var C0=(0,F0.createContext)(null);rW=__c.rW={j7b:function(){A0(()=>CCc(),[]);return null},k7b:function(a){const {ref:b}=KCc();return a.children&&E0("div",{ref:b,className:"t6hvMA",children:a.children})},b8b:C0,vub:function(a){const b=a.onFocus,c=a.onBlur,d=a.ref,{ref:e,onBlur:f,onFocusCapture:g}=HCc(a),{ref:h,onFocusCapture:k,onBlur:l,g7a:m}=FCc(),n=B0(q=>{k(q);g(q)},[k,g]),p=B0(q=>{l(q);f(q);c?.(q)},[l,f,c]);NCc(d,()=>m,[m]);return E0(C0,{value:m,children:E0("div",{ref:__c.yv(__c.sv(e,h)),id:a.id,className:"t6hvMA",onFocusCapture:n, 16onFocus:b,onBlur:p,children:a.children})})},c8b:function(a){const b=z0(null),c=D0();JCc(a.condition,()=>ICc(b.current,c));return E0("div",{ref:b,className:"t6hvMA",children:a.children})},d9b:function(a){LCc(a);return null},y9b:function(a){const {ref:b,onFocus:c}=MCc(a.index,a.Erc);return E0("div",{ref:b,onFocus:c,className:"t6hvMA",children:a.children})},I9b:function(a){const {ref:b,onFocusCapture:c,onBlur:d,g7a:e}=FCc();return E0(C0,{value:e,children:E0("div",{ref:b,onFocusCapture:c,onBlur:d,className:"t6hvMA", 17children:a.children})})},agc:function(a){a.focus();a.blur()}};rW.Qgc=__c.w0;rW.kab=v0;rW.vyc=KCc;rW.Cyc=D0;rW.Dyc=HCc;rW.Eyc=function(){return!__c.Av()};rW.Fyc=JCc;rW.Hyc=LCc;rW.Iyc=MCc; 18}).call(globalThis, globalThis._5f74ec40302898c5a55451c9fbd04240);} 19 20}]) 21//# sourceMappingURL=sourcemaps/81c5d46331dc696a.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.