@lookit/surveys 4.0.1 → 6.0.0

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.
@@ -78169,7 +78169,7 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
78169
78169
 
78170
78170
  var _package = {
78171
78171
  name: "@lookit/surveys",
78172
- version: "4.0.1",
78172
+ version: "6.0.0",
78173
78173
  description: "A survey plugin for lookit studies.",
78174
78174
  homepage: "https://github.com/lookit/lookit-jspsych#readme",
78175
78175
  bugs: {
@@ -78204,8 +78204,8 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
78204
78204
  "@types/dompurify": "^3.0.5"
78205
78205
  },
78206
78206
  peerDependencies: {
78207
- "@lookit/data": "^0.2.0",
78208
- "@lookit/templates": "^2.1.0",
78207
+ "@lookit/data": "^0.3.0",
78208
+ "@lookit/templates": "^3.1.0",
78209
78209
  jspsych: "^8.0.3"
78210
78210
  }
78211
78211
  };
@@ -90334,4 +90334,4 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
90334
90334
  return index;
90335
90335
 
90336
90336
  })(jsPsychModule, chsData, chsTemplates);
90337
- //# sourceMappingURL=https://unpkg.com/@lookit/surveys@4.0.1/dist/index.browser.js.map
90337
+ //# sourceMappingURL=https://unpkg.com/@lookit/surveys@6.0.0/dist/index.browser.js.map
@@ -2206,7 +2206,7 @@ params="contentComponentName: 'sv-panel', contentComponentData: { question: row.
2206
2206
  <div data-bind="css: survey.getCss().timerRoot, text: text"></div>
2207
2207
  <!--/ko -->
2208
2208
  <\/script>
2209
- `},knockout:function(c,d){c.exports=b},"survey-core":function(c,d){c.exports=p}})})})(el);var vd=el.exports,bd={name:"@jspsych/plugin-survey",version:"2.0.0",description:"A jsPsych plugin for complex surveys",type:"module",main:"dist/index.cjs",exports:{".":{import:"./dist/index.js",require:"./dist/index.cjs"},"./css/survey.css":"./css/survey.css","./css/survey.scss":"./css/survey.scss"},typings:"dist/index.d.ts",unpkg:"dist/index.browser.min.js",files:["src","dist","css"],source:"src/index.ts",scripts:{test:"jest","test:watch":"npm test -- --watch",tsc:"tsc","build:js":"rollup --config","build:styles":"sass --load-path ./node_modules --load-path ../../node_modules css/survey.scss css/survey.css",build:"run-p build:js build:styles","build:watch":'run-p "build:js -- --watch" "build:styles -- --watch"'},repository:{type:"git",url:"git+https://github.com/jspsych/jsPsych.git",directory:"packages/plugin-survey"},author:"Becky Gilbert",license:"MIT",bugs:{url:"https://github.com/jspsych/jsPsych/issues"},homepage:"https://www.jspsych.org/latest/plugins/survey",peerDependencies:{jspsych:">=7.0.0"},devDependencies:{"@jspsych/config":"^3.0.0","@jspsych/test-utils":"^1.2.0","npm-run-all":"^4.1.5",sass:"^1.43.5"},dependencies:{"survey-core":"^1.9.138","survey-knockout-ui":"^1.9.139"}};const Cd={name:"survey",version:bd.version,parameters:{survey_json:{type:Fe.ParameterType.OBJECT,default:{}},survey_function:{type:Fe.ParameterType.FUNCTION,default:null},validation_function:{type:Fe.ParameterType.FUNCTION,default:null}},data:{response:{type:Fe.ParameterType.COMPLEX,nested:{identifier:{type:Fe.ParameterType.STRING},response:{type:Fe.ParameterType.STRING|Fe.ParameterType.INT|Fe.ParameterType.FLOAT|Fe.ParameterType.BOOL|Fe.ParameterType.OBJECT}}},rt:{type:Fe.ParameterType.INT}}},xd={body:"jspsych-body",bodyContainer:"jspsych-body-container",question:{content:"jspsych-question-content",mainRoot:"jspsych-question-root"},page:{root:"jspsych-page"},footer:"jspsych-footer",navigation:{complete:"jspsych-nav-complete"},rowMultiple:"jspsych-row-multiple"};class Vn{constructor(V){this.jsPsych=V,this.jsPsych=V}applyStyles(V){V.applyTheme({cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(249, 249, 249, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"#474747","--sjs-primary-backcolor-light":"rgba(0, 0, 0, 0.1)","--sjs-primary-backcolor-dark":"#000000","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.05)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.15)","--sjs-border-default":"rgba(0, 0, 0, 0.15)","--sjs-border-inside":" rgba(0, 0, 0, 0.16)"},themeName:"plain",colorPalette:"light",isPanelless:!1})}trial(V,b){JSON.stringify(b.survey_json)==="{}"&&b.survey_function===null&&console.error("Survey plugin warning: you must define the survey using a non-empty JSON object and/or a survey function."),this.survey=new vd.Survey(b.survey_json),b.survey_function!==null&&b.survey_function(this.survey),this.applyStyles(this.survey),this.survey.css=xd,b.validation_function&&this.survey.onValidateQuestion.add(b.validation_function),this.survey.onComplete.add((p,c)=>{var y;const d=p.getAllQuestions(),v=Object.keys(p.data);for(const L of d)v.includes(L.name)||p.mergeData({[L.name]:(y=L.defaultValue)!=null?y:null});document.querySelector(".jspsych-content-wrapper").style.display="flex",this.jsPsych.finishTrial({rt:Math.round(performance.now()-this.start_time),response:p.data})}),document.querySelector(".jspsych-content-wrapper").style.display="block",this.survey.render(V),this.start_time=performance.now()}}Vn.info=Cd;var il={name:"@lookit/surveys",version:"4.0.1",description:"A survey plugin for lookit studies.",homepage:"https://github.com/lookit/lookit-jspsych#readme",bugs:{url:"https://github.com/lookit/lookit-jspsych/issues"},repository:{type:"git",url:"git+https://github.com/lookit/lookit-jspsych.git"},license:"ISC",author:"Christopher J Green <okaycj@mit.edu> (https://github.com/okaycj)",main:"dist/index.js",unpkg:"dist/index.browser.min.js",types:"./dist/index.d.ts",files:["src","dist"],scripts:{build:"rollup --config",dev:"rollup --config rollup.config.dev.mjs --watch",test:"jest --coverage"},dependencies:{"@jspsych/plugin-survey":"^2.0.0",dompurify:"^3.0.11",marked:"^12.0.1","survey-core":"^1.12.8"},devDependencies:{"@jspsych/config":"^3.0.1","@types/dompurify":"^3.0.5"},peerDependencies:{"@lookit/data":"^0.2.0","@lookit/templates":"^2.1.0",jspsych:"^8.0.3"}};/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:ol,setPrototypeOf:al,isFrozen:Pd,getPrototypeOf:wd,getOwnPropertyDescriptor:Td}=Object;let{freeze:Ft,seal:Xt,create:sl}=Object,{apply:zo,construct:Ho}=typeof Reflect!="undefined"&&Reflect;Ft||(Ft=function(V){return V}),Xt||(Xt=function(V){return V}),zo||(zo=function(V,b,p){return V.apply(b,p)}),Ho||(Ho=function(V,b){return new V(...b)});const Ai=Gt(Array.prototype.forEach),ll=Gt(Array.prototype.pop),Kr=Gt(Array.prototype.push),Di=Gt(String.prototype.toLowerCase),Qo=Gt(String.prototype.toString),ul=Gt(String.prototype.match),Gr=Gt(String.prototype.replace),Sd=Gt(String.prototype.indexOf),kd=Gt(String.prototype.trim),sn=Gt(Object.prototype.hasOwnProperty),Nt=Gt(RegExp.prototype.test),Jr=Vd(TypeError);function Gt(re){return function(V){for(var b=arguments.length,p=new Array(b>1?b-1:0),c=1;c<b;c++)p[c-1]=arguments[c];return zo(re,V,p)}}function Vd(re){return function(){for(var V=arguments.length,b=new Array(V),p=0;p<V;p++)b[p]=arguments[p];return Ho(re,b)}}function ze(re,V){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Di;al&&al(re,null);let p=V.length;for(;p--;){let c=V[p];if(typeof c=="string"){const d=b(c);d!==c&&(Pd(V)||(V[p]=d),c=d)}re[c]=!0}return re}function Ed(re){for(let V=0;V<re.length;V++)sn(re,V)||(re[V]=null);return re}function nr(re){const V=sl(null);for(const[b,p]of ol(re))sn(re,b)&&(Array.isArray(p)?V[b]=Ed(p):p&&typeof p=="object"&&p.constructor===Object?V[b]=nr(p):V[b]=p);return V}function Zr(re,V){for(;re!==null;){const p=Td(re,V);if(p){if(p.get)return Gt(p.get);if(typeof p.value=="function")return Gt(p.value)}re=wd(re)}function b(){return null}return b}const cl=Ft(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_o=Ft(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Uo=Ft(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Rd=Ft(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wo=Ft(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Od=Ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dl=Ft(["#text"]),pl=Ft(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),$o=Ft(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),fl=Ft(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Li=Ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Id=Xt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ad=Xt(/<%[\w\W]*|[\w\W]*%>/gm),Dd=Xt(/\${[\w\W]*}/gm),Ld=Xt(/^data-[\-\w.\u00B7-\uFFFF]/),Md=Xt(/^aria-[\-\w]+$/),hl=Xt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jd=Xt(/^(?:\w+script|data):/i),qd=Xt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gl=Xt(/^html$/i),Fd=Xt(/^[a-z][.\w]*(-[.\w]+)+$/i);var ml=Object.freeze({__proto__:null,MUSTACHE_EXPR:Id,ERB_EXPR:Ad,TMPLIT_EXPR:Dd,DATA_ATTR:Ld,ARIA_ATTR:Md,IS_ALLOWED_URI:hl,IS_SCRIPT_OR_DATA:jd,ATTR_WHITESPACE:qd,DOCTYPE_NAME:gl,CUSTOM_ELEMENT:Fd});const Yr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Nd=function(){return typeof window=="undefined"?null:window},Bd=function(V,b){if(typeof V!="object"||typeof V.createPolicy!="function")return null;let p=null;const c="data-tt-policy-suffix";b&&b.hasAttribute(c)&&(p=b.getAttribute(c));const d="dompurify"+(p?"#"+p:"");try{return V.createPolicy(d,{createHTML(v){return v},createScriptURL(v){return v}})}catch(v){return console.warn("TrustedTypes policy "+d+" could not be created."),null}};function yl(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nd();const V=he=>yl(he);if(V.version="3.1.7",V.removed=[],!re||!re.document||re.document.nodeType!==Yr.document)return V.isSupported=!1,V;let{document:b}=re;const p=b,c=p.currentScript,{DocumentFragment:d,HTMLTemplateElement:v,Node:y,Element:L,NodeFilter:ie,NamedNodeMap:Ce=re.NamedNodeMap||re.MozNamedAttrMap,HTMLFormElement:ce,DOMParser:Oe,trustedTypes:Me}=re,Ct=L.prototype,A=Zr(Ct,"cloneNode"),l=Zr(Ct,"remove"),Ze=Zr(Ct,"nextSibling"),ot=Zr(Ct,"childNodes"),Xe=Zr(Ct,"parentNode");if(typeof v=="function"){const he=b.createElement("template");he.content&&he.content.ownerDocument&&(b=he.content.ownerDocument)}let He,ft="";const{implementation:Le,createNodeIterator:st,createDocumentFragment:ln,getElementsByTagName:Mn}=b,{importNode:en}=p;let Vt={};V.isSupported=typeof ol=="function"&&typeof Xe=="function"&&Le&&Le.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:un,ERB_EXPR:x,TMPLIT_EXPR:S,DATA_ATTR:P,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:F}=ml;let{IS_ALLOWED_URI:H}=ml,D=null;const I=ze({},[...cl,..._o,...Uo,...Wo,...dl]);let z=null;const W=ze({},[...pl,...$o,...fl,...Li]);let K=Object.seal(sl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),O=null,$=null,_=!0,X=!0,oe=!1,J=!0,ne=!1,ae=!0,pe=!1,fe=!1,ge=!1,Ve=!1,tt=!1,_e=!1,wt=!0,nt=!1;const Tt="user-content-";let St=!0,De=!1,gt={},xt=null;const Ot=ze({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let It=null;const jn=ze({},["audio","video","img","source","image","track"]);let cn=null;const qn=ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",Fn="http://www.w3.org/2000/svg",Bt="http://www.w3.org/1999/xhtml";let pn=Bt,vn=!1,or=null;const ar=ze({},[dn,Fn,Bt],Qo);let bn=null;const fn=["application/xhtml+xml","text/html"],tn="text/html";let mt=null,Wt=null;const Nn=b.createElement("form"),En=function(U){return U instanceof RegExp||U instanceof Function},Bn=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wt&&Wt===U)){if((!U||typeof U!="object")&&(U={}),U=nr(U),bn=fn.indexOf(U.PARSER_MEDIA_TYPE)===-1?tn:U.PARSER_MEDIA_TYPE,mt=bn==="application/xhtml+xml"?Qo:Di,D=sn(U,"ALLOWED_TAGS")?ze({},U.ALLOWED_TAGS,mt):I,z=sn(U,"ALLOWED_ATTR")?ze({},U.ALLOWED_ATTR,mt):W,or=sn(U,"ALLOWED_NAMESPACES")?ze({},U.ALLOWED_NAMESPACES,Qo):ar,cn=sn(U,"ADD_URI_SAFE_ATTR")?ze(nr(qn),U.ADD_URI_SAFE_ATTR,mt):qn,It=sn(U,"ADD_DATA_URI_TAGS")?ze(nr(jn),U.ADD_DATA_URI_TAGS,mt):jn,xt=sn(U,"FORBID_CONTENTS")?ze({},U.FORBID_CONTENTS,mt):Ot,O=sn(U,"FORBID_TAGS")?ze({},U.FORBID_TAGS,mt):{},$=sn(U,"FORBID_ATTR")?ze({},U.FORBID_ATTR,mt):{},gt=sn(U,"USE_PROFILES")?U.USE_PROFILES:!1,_=U.ALLOW_ARIA_ATTR!==!1,X=U.ALLOW_DATA_ATTR!==!1,oe=U.ALLOW_UNKNOWN_PROTOCOLS||!1,J=U.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ne=U.SAFE_FOR_TEMPLATES||!1,ae=U.SAFE_FOR_XML!==!1,pe=U.WHOLE_DOCUMENT||!1,Ve=U.RETURN_DOM||!1,tt=U.RETURN_DOM_FRAGMENT||!1,_e=U.RETURN_TRUSTED_TYPE||!1,ge=U.FORCE_BODY||!1,wt=U.SANITIZE_DOM!==!1,nt=U.SANITIZE_NAMED_PROPS||!1,St=U.KEEP_CONTENT!==!1,De=U.IN_PLACE||!1,H=U.ALLOWED_URI_REGEXP||hl,pn=U.NAMESPACE||Bt,K=U.CUSTOM_ELEMENT_HANDLING||{},U.CUSTOM_ELEMENT_HANDLING&&En(U.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=U.CUSTOM_ELEMENT_HANDLING.tagNameCheck),U.CUSTOM_ELEMENT_HANDLING&&En(U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),U.CUSTOM_ELEMENT_HANDLING&&typeof U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ne&&(X=!1),tt&&(Ve=!0),gt&&(D=ze({},dl),z=[],gt.html===!0&&(ze(D,cl),ze(z,pl)),gt.svg===!0&&(ze(D,_o),ze(z,$o),ze(z,Li)),gt.svgFilters===!0&&(ze(D,Uo),ze(z,$o),ze(z,Li)),gt.mathMl===!0&&(ze(D,Wo),ze(z,fl),ze(z,Li))),U.ADD_TAGS&&(D===I&&(D=nr(D)),ze(D,U.ADD_TAGS,mt)),U.ADD_ATTR&&(z===W&&(z=nr(z)),ze(z,U.ADD_ATTR,mt)),U.ADD_URI_SAFE_ATTR&&ze(cn,U.ADD_URI_SAFE_ATTR,mt),U.FORBID_CONTENTS&&(xt===Ot&&(xt=nr(xt)),ze(xt,U.FORBID_CONTENTS,mt)),St&&(D["#text"]=!0),pe&&ze(D,["html","head","body"]),D.table&&(ze(D,["tbody"]),delete O.tbody),U.TRUSTED_TYPES_POLICY){if(typeof U.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof U.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');He=U.TRUSTED_TYPES_POLICY,ft=He.createHTML("")}else He===void 0&&(He=Bd(Me,c)),He!==null&&typeof ft=="string"&&(ft=He.createHTML(""));Ft&&Ft(U),Wt=U}},Rn=ze({},["mi","mo","mn","ms","mtext"]),At=ze({},["annotation-xml"]),oi=ze({},["title","style","font","a","script"]),Cn=ze({},[..._o,...Uo,...Rd]),Sr=ze({},[...Wo,...Od]),sr=function(U){let ue=Xe(U);(!ue||!ue.tagName)&&(ue={namespaceURI:pn,tagName:"template"});const Se=Di(U.tagName),qe=Di(ue.tagName);return or[U.namespaceURI]?U.namespaceURI===Fn?ue.namespaceURI===Bt?Se==="svg":ue.namespaceURI===dn?Se==="svg"&&(qe==="annotation-xml"||Rn[qe]):Boolean(Cn[Se]):U.namespaceURI===dn?ue.namespaceURI===Bt?Se==="math":ue.namespaceURI===Fn?Se==="math"&&At[qe]:Boolean(Sr[Se]):U.namespaceURI===Bt?ue.namespaceURI===Fn&&!At[qe]||ue.namespaceURI===dn&&!Rn[qe]?!1:!Sr[Se]&&(oi[Se]||!Cn[Se]):!!(bn==="application/xhtml+xml"&&or[U.namespaceURI]):!1},$t=function(U){Kr(V.removed,{element:U});try{Xe(U).removeChild(U)}catch(ue){l(U)}},hn=function(U,ue){try{Kr(V.removed,{attribute:ue.getAttributeNode(U),from:ue})}catch(Se){Kr(V.removed,{attribute:null,from:ue})}if(ue.removeAttribute(U),U==="is"&&!z[U])if(Ve||tt)try{$t(ue)}catch(Se){}else try{ue.setAttribute(U,"")}catch(Se){}},zn=function(U){let ue=null,Se=null;if(ge)U="<remove></remove>"+U;else{const lt=ul(U,/^[\r\n\t ]+/);Se=lt&&lt[0]}bn==="application/xhtml+xml"&&pn===Bt&&(U='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+U+"</body></html>");const qe=He?He.createHTML(U):U;if(pn===Bt)try{ue=new Oe().parseFromString(qe,bn)}catch(lt){}if(!ue||!ue.documentElement){ue=Le.createDocument(pn,"template",null);try{ue.documentElement.innerHTML=vn?ft:qe}catch(lt){}}const kt=ue.body||ue.documentElement;return U&&Se&&kt.insertBefore(b.createTextNode(Se),kt.childNodes[0]||null),pn===Bt?Mn.call(ue,pe?"html":"body")[0]:pe?ue.documentElement:kt},lr=function(U){return st.call(U.ownerDocument||U,U,ie.SHOW_ELEMENT|ie.SHOW_COMMENT|ie.SHOW_TEXT|ie.SHOW_PROCESSING_INSTRUCTION|ie.SHOW_CDATA_SECTION,null)},ur=function(U){return U instanceof ce&&(typeof U.nodeName!="string"||typeof U.textContent!="string"||typeof U.removeChild!="function"||!(U.attributes instanceof Ce)||typeof U.removeAttribute!="function"||typeof U.setAttribute!="function"||typeof U.namespaceURI!="string"||typeof U.insertBefore!="function"||typeof U.hasChildNodes!="function")},cr=function(U){return typeof y=="function"&&U instanceof y},at=function(U,ue,Se){!Vt[U]||Ai(Vt[U],qe=>{qe.call(V,ue,Se,Wt)})},nn=function(U){let ue=null;if(at("beforeSanitizeElements",U,null),ur(U))return $t(U),!0;const Se=mt(U.nodeName);if(at("uponSanitizeElement",U,{tagName:Se,allowedTags:D}),U.hasChildNodes()&&!cr(U.firstElementChild)&&Nt(/<[/\w]/g,U.innerHTML)&&Nt(/<[/\w]/g,U.textContent)||U.nodeType===Yr.progressingInstruction||ae&&U.nodeType===Yr.comment&&Nt(/<[/\w]/g,U.data))return $t(U),!0;if(!D[Se]||O[Se]){if(!O[Se]&&Vr(Se)&&(K.tagNameCheck instanceof RegExp&&Nt(K.tagNameCheck,Se)||K.tagNameCheck instanceof Function&&K.tagNameCheck(Se)))return!1;if(St&&!xt[Se]){const qe=Xe(U)||U.parentNode,kt=ot(U)||U.childNodes;if(kt&&qe){const lt=kt.length;for(let Rt=lt-1;Rt>=0;--Rt){const te=A(kt[Rt],!0);te.__removalCount=(U.__removalCount||0)+1,qe.insertBefore(te,Ze(U))}}}return $t(U),!0}return U instanceof L&&!sr(U)||(Se==="noscript"||Se==="noembed"||Se==="noframes")&&Nt(/<\/no(script|embed|frames)/i,U.innerHTML)?($t(U),!0):(ne&&U.nodeType===Yr.text&&(ue=U.textContent,Ai([un,x,S],qe=>{ue=Gr(ue,qe," ")}),U.textContent!==ue&&(Kr(V.removed,{element:U.cloneNode()}),U.textContent=ue)),at("afterSanitizeElements",U,null),!1)},kr=function(U,ue,Se){if(wt&&(ue==="id"||ue==="name")&&(Se in b||Se in Nn))return!1;if(!(X&&!$[ue]&&Nt(P,ue))){if(!(_&&Nt(R,ue))){if(!z[ue]||$[ue]){if(!(Vr(U)&&(K.tagNameCheck instanceof RegExp&&Nt(K.tagNameCheck,U)||K.tagNameCheck instanceof Function&&K.tagNameCheck(U))&&(K.attributeNameCheck instanceof RegExp&&Nt(K.attributeNameCheck,ue)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(ue))||ue==="is"&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&&Nt(K.tagNameCheck,Se)||K.tagNameCheck instanceof Function&&K.tagNameCheck(Se))))return!1}else if(!cn[ue]){if(!Nt(H,Gr(Se,B,""))){if(!((ue==="src"||ue==="xlink:href"||ue==="href")&&U!=="script"&&Sd(Se,"data:")===0&&It[U])){if(!(oe&&!Nt(j,Gr(Se,B,"")))){if(Se)return!1}}}}}}return!0},Vr=function(U){return U!=="annotation-xml"&&ul(U,F)},Er=function(U){at("beforeSanitizeAttributes",U,null);const{attributes:ue}=U;if(!ue)return;const Se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z};let qe=ue.length;for(;qe--;){const kt=ue[qe],{name:lt,namespaceURI:Rt,value:te}=kt,On=mt(lt);let yt=lt==="value"?te:kd(te);if(Se.attrName=On,Se.attrValue=yt,Se.keepAttr=!0,Se.forceKeepAttr=void 0,at("uponSanitizeAttribute",U,Se),yt=Se.attrValue,Se.forceKeepAttr||(hn(lt,U),!Se.keepAttr))continue;if(!J&&Nt(/\/>/i,yt)){hn(lt,U);continue}ne&&Ai([un,x,S],zt=>{yt=Gr(yt,zt," ")});const Hn=mt(U.nodeName);if(!!kr(Hn,On,yt)){if(nt&&(On==="id"||On==="name")&&(hn(lt,U),yt=Tt+yt),ae&&Nt(/((--!?|])>)|<\/(style|title)/i,yt)){hn(lt,U);continue}if(He&&typeof Me=="object"&&typeof Me.getAttributeType=="function"&&!Rt)switch(Me.getAttributeType(Hn,On)){case"TrustedHTML":{yt=He.createHTML(yt);break}case"TrustedScriptURL":{yt=He.createScriptURL(yt);break}}try{Rt?U.setAttributeNS(Rt,lt,yt):U.setAttribute(lt,yt),ur(U)?$t(U):ll(V.removed)}catch(zt){}}}at("afterSanitizeAttributes",U,null)},ai=function he(U){let ue=null;const Se=lr(U);for(at("beforeSanitizeShadowDOM",U,null);ue=Se.nextNode();)at("uponSanitizeShadowNode",ue,null),!nn(ue)&&(ue.content instanceof d&&he(ue.content),Er(ue));at("afterSanitizeShadowDOM",U,null)};return V.sanitize=function(he){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=null,Se=null,qe=null,kt=null;if(vn=!he,vn&&(he="<!-->"),typeof he!="string"&&!cr(he))if(typeof he.toString=="function"){if(he=he.toString(),typeof he!="string")throw Jr("dirty is not a string, aborting")}else throw Jr("toString is not a function");if(!V.isSupported)return he;if(fe||Bn(U),V.removed=[],typeof he=="string"&&(De=!1),De){if(he.nodeName){const te=mt(he.nodeName);if(!D[te]||O[te])throw Jr("root node is forbidden and cannot be sanitized in-place")}}else if(he instanceof y)ue=zn("<!---->"),Se=ue.ownerDocument.importNode(he,!0),Se.nodeType===Yr.element&&Se.nodeName==="BODY"||Se.nodeName==="HTML"?ue=Se:ue.appendChild(Se);else{if(!Ve&&!ne&&!pe&&he.indexOf("<")===-1)return He&&_e?He.createHTML(he):he;if(ue=zn(he),!ue)return Ve?null:_e?ft:""}ue&&ge&&$t(ue.firstChild);const lt=lr(De?he:ue);for(;qe=lt.nextNode();)nn(qe)||(qe.content instanceof d&&ai(qe.content),Er(qe));if(De)return he;if(Ve){if(tt)for(kt=ln.call(ue.ownerDocument);ue.firstChild;)kt.appendChild(ue.firstChild);else kt=ue;return(z.shadowroot||z.shadowrootmode)&&(kt=en.call(p,kt,!0)),kt}let Rt=pe?ue.outerHTML:ue.innerHTML;return pe&&D["!doctype"]&&ue.ownerDocument&&ue.ownerDocument.doctype&&ue.ownerDocument.doctype.name&&Nt(gl,ue.ownerDocument.doctype.name)&&(Rt="<!DOCTYPE "+ue.ownerDocument.doctype.name+`>
2209
+ `},knockout:function(c,d){c.exports=b},"survey-core":function(c,d){c.exports=p}})})})(el);var vd=el.exports,bd={name:"@jspsych/plugin-survey",version:"2.0.0",description:"A jsPsych plugin for complex surveys",type:"module",main:"dist/index.cjs",exports:{".":{import:"./dist/index.js",require:"./dist/index.cjs"},"./css/survey.css":"./css/survey.css","./css/survey.scss":"./css/survey.scss"},typings:"dist/index.d.ts",unpkg:"dist/index.browser.min.js",files:["src","dist","css"],source:"src/index.ts",scripts:{test:"jest","test:watch":"npm test -- --watch",tsc:"tsc","build:js":"rollup --config","build:styles":"sass --load-path ./node_modules --load-path ../../node_modules css/survey.scss css/survey.css",build:"run-p build:js build:styles","build:watch":'run-p "build:js -- --watch" "build:styles -- --watch"'},repository:{type:"git",url:"git+https://github.com/jspsych/jsPsych.git",directory:"packages/plugin-survey"},author:"Becky Gilbert",license:"MIT",bugs:{url:"https://github.com/jspsych/jsPsych/issues"},homepage:"https://www.jspsych.org/latest/plugins/survey",peerDependencies:{jspsych:">=7.0.0"},devDependencies:{"@jspsych/config":"^3.0.0","@jspsych/test-utils":"^1.2.0","npm-run-all":"^4.1.5",sass:"^1.43.5"},dependencies:{"survey-core":"^1.9.138","survey-knockout-ui":"^1.9.139"}};const Cd={name:"survey",version:bd.version,parameters:{survey_json:{type:Fe.ParameterType.OBJECT,default:{}},survey_function:{type:Fe.ParameterType.FUNCTION,default:null},validation_function:{type:Fe.ParameterType.FUNCTION,default:null}},data:{response:{type:Fe.ParameterType.COMPLEX,nested:{identifier:{type:Fe.ParameterType.STRING},response:{type:Fe.ParameterType.STRING|Fe.ParameterType.INT|Fe.ParameterType.FLOAT|Fe.ParameterType.BOOL|Fe.ParameterType.OBJECT}}},rt:{type:Fe.ParameterType.INT}}},xd={body:"jspsych-body",bodyContainer:"jspsych-body-container",question:{content:"jspsych-question-content",mainRoot:"jspsych-question-root"},page:{root:"jspsych-page"},footer:"jspsych-footer",navigation:{complete:"jspsych-nav-complete"},rowMultiple:"jspsych-row-multiple"};class Vn{constructor(V){this.jsPsych=V,this.jsPsych=V}applyStyles(V){V.applyTheme({cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(249, 249, 249, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"#474747","--sjs-primary-backcolor-light":"rgba(0, 0, 0, 0.1)","--sjs-primary-backcolor-dark":"#000000","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.05)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.15)","--sjs-border-default":"rgba(0, 0, 0, 0.15)","--sjs-border-inside":" rgba(0, 0, 0, 0.16)"},themeName:"plain",colorPalette:"light",isPanelless:!1})}trial(V,b){JSON.stringify(b.survey_json)==="{}"&&b.survey_function===null&&console.error("Survey plugin warning: you must define the survey using a non-empty JSON object and/or a survey function."),this.survey=new vd.Survey(b.survey_json),b.survey_function!==null&&b.survey_function(this.survey),this.applyStyles(this.survey),this.survey.css=xd,b.validation_function&&this.survey.onValidateQuestion.add(b.validation_function),this.survey.onComplete.add((p,c)=>{var y;const d=p.getAllQuestions(),v=Object.keys(p.data);for(const L of d)v.includes(L.name)||p.mergeData({[L.name]:(y=L.defaultValue)!=null?y:null});document.querySelector(".jspsych-content-wrapper").style.display="flex",this.jsPsych.finishTrial({rt:Math.round(performance.now()-this.start_time),response:p.data})}),document.querySelector(".jspsych-content-wrapper").style.display="block",this.survey.render(V),this.start_time=performance.now()}}Vn.info=Cd;var il={name:"@lookit/surveys",version:"6.0.0",description:"A survey plugin for lookit studies.",homepage:"https://github.com/lookit/lookit-jspsych#readme",bugs:{url:"https://github.com/lookit/lookit-jspsych/issues"},repository:{type:"git",url:"git+https://github.com/lookit/lookit-jspsych.git"},license:"ISC",author:"Christopher J Green <okaycj@mit.edu> (https://github.com/okaycj)",main:"dist/index.js",unpkg:"dist/index.browser.min.js",types:"./dist/index.d.ts",files:["src","dist"],scripts:{build:"rollup --config",dev:"rollup --config rollup.config.dev.mjs --watch",test:"jest --coverage"},dependencies:{"@jspsych/plugin-survey":"^2.0.0",dompurify:"^3.0.11",marked:"^12.0.1","survey-core":"^1.12.8"},devDependencies:{"@jspsych/config":"^3.0.1","@types/dompurify":"^3.0.5"},peerDependencies:{"@lookit/data":"^0.3.0","@lookit/templates":"^3.1.0",jspsych:"^8.0.3"}};/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:ol,setPrototypeOf:al,isFrozen:Pd,getPrototypeOf:wd,getOwnPropertyDescriptor:Td}=Object;let{freeze:Ft,seal:Xt,create:sl}=Object,{apply:zo,construct:Ho}=typeof Reflect!="undefined"&&Reflect;Ft||(Ft=function(V){return V}),Xt||(Xt=function(V){return V}),zo||(zo=function(V,b,p){return V.apply(b,p)}),Ho||(Ho=function(V,b){return new V(...b)});const Ai=Gt(Array.prototype.forEach),ll=Gt(Array.prototype.pop),Kr=Gt(Array.prototype.push),Di=Gt(String.prototype.toLowerCase),Qo=Gt(String.prototype.toString),ul=Gt(String.prototype.match),Gr=Gt(String.prototype.replace),Sd=Gt(String.prototype.indexOf),kd=Gt(String.prototype.trim),sn=Gt(Object.prototype.hasOwnProperty),Nt=Gt(RegExp.prototype.test),Jr=Vd(TypeError);function Gt(re){return function(V){for(var b=arguments.length,p=new Array(b>1?b-1:0),c=1;c<b;c++)p[c-1]=arguments[c];return zo(re,V,p)}}function Vd(re){return function(){for(var V=arguments.length,b=new Array(V),p=0;p<V;p++)b[p]=arguments[p];return Ho(re,b)}}function ze(re,V){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Di;al&&al(re,null);let p=V.length;for(;p--;){let c=V[p];if(typeof c=="string"){const d=b(c);d!==c&&(Pd(V)||(V[p]=d),c=d)}re[c]=!0}return re}function Ed(re){for(let V=0;V<re.length;V++)sn(re,V)||(re[V]=null);return re}function nr(re){const V=sl(null);for(const[b,p]of ol(re))sn(re,b)&&(Array.isArray(p)?V[b]=Ed(p):p&&typeof p=="object"&&p.constructor===Object?V[b]=nr(p):V[b]=p);return V}function Zr(re,V){for(;re!==null;){const p=Td(re,V);if(p){if(p.get)return Gt(p.get);if(typeof p.value=="function")return Gt(p.value)}re=wd(re)}function b(){return null}return b}const cl=Ft(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_o=Ft(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Uo=Ft(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Rd=Ft(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wo=Ft(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Od=Ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dl=Ft(["#text"]),pl=Ft(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),$o=Ft(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),fl=Ft(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Li=Ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Id=Xt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ad=Xt(/<%[\w\W]*|[\w\W]*%>/gm),Dd=Xt(/\${[\w\W]*}/gm),Ld=Xt(/^data-[\-\w.\u00B7-\uFFFF]/),Md=Xt(/^aria-[\-\w]+$/),hl=Xt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jd=Xt(/^(?:\w+script|data):/i),qd=Xt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gl=Xt(/^html$/i),Fd=Xt(/^[a-z][.\w]*(-[.\w]+)+$/i);var ml=Object.freeze({__proto__:null,MUSTACHE_EXPR:Id,ERB_EXPR:Ad,TMPLIT_EXPR:Dd,DATA_ATTR:Ld,ARIA_ATTR:Md,IS_ALLOWED_URI:hl,IS_SCRIPT_OR_DATA:jd,ATTR_WHITESPACE:qd,DOCTYPE_NAME:gl,CUSTOM_ELEMENT:Fd});const Yr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Nd=function(){return typeof window=="undefined"?null:window},Bd=function(V,b){if(typeof V!="object"||typeof V.createPolicy!="function")return null;let p=null;const c="data-tt-policy-suffix";b&&b.hasAttribute(c)&&(p=b.getAttribute(c));const d="dompurify"+(p?"#"+p:"");try{return V.createPolicy(d,{createHTML(v){return v},createScriptURL(v){return v}})}catch(v){return console.warn("TrustedTypes policy "+d+" could not be created."),null}};function yl(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nd();const V=he=>yl(he);if(V.version="3.1.7",V.removed=[],!re||!re.document||re.document.nodeType!==Yr.document)return V.isSupported=!1,V;let{document:b}=re;const p=b,c=p.currentScript,{DocumentFragment:d,HTMLTemplateElement:v,Node:y,Element:L,NodeFilter:ie,NamedNodeMap:Ce=re.NamedNodeMap||re.MozNamedAttrMap,HTMLFormElement:ce,DOMParser:Oe,trustedTypes:Me}=re,Ct=L.prototype,A=Zr(Ct,"cloneNode"),l=Zr(Ct,"remove"),Ze=Zr(Ct,"nextSibling"),ot=Zr(Ct,"childNodes"),Xe=Zr(Ct,"parentNode");if(typeof v=="function"){const he=b.createElement("template");he.content&&he.content.ownerDocument&&(b=he.content.ownerDocument)}let He,ft="";const{implementation:Le,createNodeIterator:st,createDocumentFragment:ln,getElementsByTagName:Mn}=b,{importNode:en}=p;let Vt={};V.isSupported=typeof ol=="function"&&typeof Xe=="function"&&Le&&Le.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:un,ERB_EXPR:x,TMPLIT_EXPR:S,DATA_ATTR:P,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:F}=ml;let{IS_ALLOWED_URI:H}=ml,D=null;const I=ze({},[...cl,..._o,...Uo,...Wo,...dl]);let z=null;const W=ze({},[...pl,...$o,...fl,...Li]);let K=Object.seal(sl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),O=null,$=null,_=!0,X=!0,oe=!1,J=!0,ne=!1,ae=!0,pe=!1,fe=!1,ge=!1,Ve=!1,tt=!1,_e=!1,wt=!0,nt=!1;const Tt="user-content-";let St=!0,De=!1,gt={},xt=null;const Ot=ze({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let It=null;const jn=ze({},["audio","video","img","source","image","track"]);let cn=null;const qn=ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",Fn="http://www.w3.org/2000/svg",Bt="http://www.w3.org/1999/xhtml";let pn=Bt,vn=!1,or=null;const ar=ze({},[dn,Fn,Bt],Qo);let bn=null;const fn=["application/xhtml+xml","text/html"],tn="text/html";let mt=null,Wt=null;const Nn=b.createElement("form"),En=function(U){return U instanceof RegExp||U instanceof Function},Bn=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wt&&Wt===U)){if((!U||typeof U!="object")&&(U={}),U=nr(U),bn=fn.indexOf(U.PARSER_MEDIA_TYPE)===-1?tn:U.PARSER_MEDIA_TYPE,mt=bn==="application/xhtml+xml"?Qo:Di,D=sn(U,"ALLOWED_TAGS")?ze({},U.ALLOWED_TAGS,mt):I,z=sn(U,"ALLOWED_ATTR")?ze({},U.ALLOWED_ATTR,mt):W,or=sn(U,"ALLOWED_NAMESPACES")?ze({},U.ALLOWED_NAMESPACES,Qo):ar,cn=sn(U,"ADD_URI_SAFE_ATTR")?ze(nr(qn),U.ADD_URI_SAFE_ATTR,mt):qn,It=sn(U,"ADD_DATA_URI_TAGS")?ze(nr(jn),U.ADD_DATA_URI_TAGS,mt):jn,xt=sn(U,"FORBID_CONTENTS")?ze({},U.FORBID_CONTENTS,mt):Ot,O=sn(U,"FORBID_TAGS")?ze({},U.FORBID_TAGS,mt):{},$=sn(U,"FORBID_ATTR")?ze({},U.FORBID_ATTR,mt):{},gt=sn(U,"USE_PROFILES")?U.USE_PROFILES:!1,_=U.ALLOW_ARIA_ATTR!==!1,X=U.ALLOW_DATA_ATTR!==!1,oe=U.ALLOW_UNKNOWN_PROTOCOLS||!1,J=U.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ne=U.SAFE_FOR_TEMPLATES||!1,ae=U.SAFE_FOR_XML!==!1,pe=U.WHOLE_DOCUMENT||!1,Ve=U.RETURN_DOM||!1,tt=U.RETURN_DOM_FRAGMENT||!1,_e=U.RETURN_TRUSTED_TYPE||!1,ge=U.FORCE_BODY||!1,wt=U.SANITIZE_DOM!==!1,nt=U.SANITIZE_NAMED_PROPS||!1,St=U.KEEP_CONTENT!==!1,De=U.IN_PLACE||!1,H=U.ALLOWED_URI_REGEXP||hl,pn=U.NAMESPACE||Bt,K=U.CUSTOM_ELEMENT_HANDLING||{},U.CUSTOM_ELEMENT_HANDLING&&En(U.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=U.CUSTOM_ELEMENT_HANDLING.tagNameCheck),U.CUSTOM_ELEMENT_HANDLING&&En(U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=U.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),U.CUSTOM_ELEMENT_HANDLING&&typeof U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=U.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ne&&(X=!1),tt&&(Ve=!0),gt&&(D=ze({},dl),z=[],gt.html===!0&&(ze(D,cl),ze(z,pl)),gt.svg===!0&&(ze(D,_o),ze(z,$o),ze(z,Li)),gt.svgFilters===!0&&(ze(D,Uo),ze(z,$o),ze(z,Li)),gt.mathMl===!0&&(ze(D,Wo),ze(z,fl),ze(z,Li))),U.ADD_TAGS&&(D===I&&(D=nr(D)),ze(D,U.ADD_TAGS,mt)),U.ADD_ATTR&&(z===W&&(z=nr(z)),ze(z,U.ADD_ATTR,mt)),U.ADD_URI_SAFE_ATTR&&ze(cn,U.ADD_URI_SAFE_ATTR,mt),U.FORBID_CONTENTS&&(xt===Ot&&(xt=nr(xt)),ze(xt,U.FORBID_CONTENTS,mt)),St&&(D["#text"]=!0),pe&&ze(D,["html","head","body"]),D.table&&(ze(D,["tbody"]),delete O.tbody),U.TRUSTED_TYPES_POLICY){if(typeof U.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof U.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');He=U.TRUSTED_TYPES_POLICY,ft=He.createHTML("")}else He===void 0&&(He=Bd(Me,c)),He!==null&&typeof ft=="string"&&(ft=He.createHTML(""));Ft&&Ft(U),Wt=U}},Rn=ze({},["mi","mo","mn","ms","mtext"]),At=ze({},["annotation-xml"]),oi=ze({},["title","style","font","a","script"]),Cn=ze({},[..._o,...Uo,...Rd]),Sr=ze({},[...Wo,...Od]),sr=function(U){let ue=Xe(U);(!ue||!ue.tagName)&&(ue={namespaceURI:pn,tagName:"template"});const Se=Di(U.tagName),qe=Di(ue.tagName);return or[U.namespaceURI]?U.namespaceURI===Fn?ue.namespaceURI===Bt?Se==="svg":ue.namespaceURI===dn?Se==="svg"&&(qe==="annotation-xml"||Rn[qe]):Boolean(Cn[Se]):U.namespaceURI===dn?ue.namespaceURI===Bt?Se==="math":ue.namespaceURI===Fn?Se==="math"&&At[qe]:Boolean(Sr[Se]):U.namespaceURI===Bt?ue.namespaceURI===Fn&&!At[qe]||ue.namespaceURI===dn&&!Rn[qe]?!1:!Sr[Se]&&(oi[Se]||!Cn[Se]):!!(bn==="application/xhtml+xml"&&or[U.namespaceURI]):!1},$t=function(U){Kr(V.removed,{element:U});try{Xe(U).removeChild(U)}catch(ue){l(U)}},hn=function(U,ue){try{Kr(V.removed,{attribute:ue.getAttributeNode(U),from:ue})}catch(Se){Kr(V.removed,{attribute:null,from:ue})}if(ue.removeAttribute(U),U==="is"&&!z[U])if(Ve||tt)try{$t(ue)}catch(Se){}else try{ue.setAttribute(U,"")}catch(Se){}},zn=function(U){let ue=null,Se=null;if(ge)U="<remove></remove>"+U;else{const lt=ul(U,/^[\r\n\t ]+/);Se=lt&&lt[0]}bn==="application/xhtml+xml"&&pn===Bt&&(U='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+U+"</body></html>");const qe=He?He.createHTML(U):U;if(pn===Bt)try{ue=new Oe().parseFromString(qe,bn)}catch(lt){}if(!ue||!ue.documentElement){ue=Le.createDocument(pn,"template",null);try{ue.documentElement.innerHTML=vn?ft:qe}catch(lt){}}const kt=ue.body||ue.documentElement;return U&&Se&&kt.insertBefore(b.createTextNode(Se),kt.childNodes[0]||null),pn===Bt?Mn.call(ue,pe?"html":"body")[0]:pe?ue.documentElement:kt},lr=function(U){return st.call(U.ownerDocument||U,U,ie.SHOW_ELEMENT|ie.SHOW_COMMENT|ie.SHOW_TEXT|ie.SHOW_PROCESSING_INSTRUCTION|ie.SHOW_CDATA_SECTION,null)},ur=function(U){return U instanceof ce&&(typeof U.nodeName!="string"||typeof U.textContent!="string"||typeof U.removeChild!="function"||!(U.attributes instanceof Ce)||typeof U.removeAttribute!="function"||typeof U.setAttribute!="function"||typeof U.namespaceURI!="string"||typeof U.insertBefore!="function"||typeof U.hasChildNodes!="function")},cr=function(U){return typeof y=="function"&&U instanceof y},at=function(U,ue,Se){!Vt[U]||Ai(Vt[U],qe=>{qe.call(V,ue,Se,Wt)})},nn=function(U){let ue=null;if(at("beforeSanitizeElements",U,null),ur(U))return $t(U),!0;const Se=mt(U.nodeName);if(at("uponSanitizeElement",U,{tagName:Se,allowedTags:D}),U.hasChildNodes()&&!cr(U.firstElementChild)&&Nt(/<[/\w]/g,U.innerHTML)&&Nt(/<[/\w]/g,U.textContent)||U.nodeType===Yr.progressingInstruction||ae&&U.nodeType===Yr.comment&&Nt(/<[/\w]/g,U.data))return $t(U),!0;if(!D[Se]||O[Se]){if(!O[Se]&&Vr(Se)&&(K.tagNameCheck instanceof RegExp&&Nt(K.tagNameCheck,Se)||K.tagNameCheck instanceof Function&&K.tagNameCheck(Se)))return!1;if(St&&!xt[Se]){const qe=Xe(U)||U.parentNode,kt=ot(U)||U.childNodes;if(kt&&qe){const lt=kt.length;for(let Rt=lt-1;Rt>=0;--Rt){const te=A(kt[Rt],!0);te.__removalCount=(U.__removalCount||0)+1,qe.insertBefore(te,Ze(U))}}}return $t(U),!0}return U instanceof L&&!sr(U)||(Se==="noscript"||Se==="noembed"||Se==="noframes")&&Nt(/<\/no(script|embed|frames)/i,U.innerHTML)?($t(U),!0):(ne&&U.nodeType===Yr.text&&(ue=U.textContent,Ai([un,x,S],qe=>{ue=Gr(ue,qe," ")}),U.textContent!==ue&&(Kr(V.removed,{element:U.cloneNode()}),U.textContent=ue)),at("afterSanitizeElements",U,null),!1)},kr=function(U,ue,Se){if(wt&&(ue==="id"||ue==="name")&&(Se in b||Se in Nn))return!1;if(!(X&&!$[ue]&&Nt(P,ue))){if(!(_&&Nt(R,ue))){if(!z[ue]||$[ue]){if(!(Vr(U)&&(K.tagNameCheck instanceof RegExp&&Nt(K.tagNameCheck,U)||K.tagNameCheck instanceof Function&&K.tagNameCheck(U))&&(K.attributeNameCheck instanceof RegExp&&Nt(K.attributeNameCheck,ue)||K.attributeNameCheck instanceof Function&&K.attributeNameCheck(ue))||ue==="is"&&K.allowCustomizedBuiltInElements&&(K.tagNameCheck instanceof RegExp&&Nt(K.tagNameCheck,Se)||K.tagNameCheck instanceof Function&&K.tagNameCheck(Se))))return!1}else if(!cn[ue]){if(!Nt(H,Gr(Se,B,""))){if(!((ue==="src"||ue==="xlink:href"||ue==="href")&&U!=="script"&&Sd(Se,"data:")===0&&It[U])){if(!(oe&&!Nt(j,Gr(Se,B,"")))){if(Se)return!1}}}}}}return!0},Vr=function(U){return U!=="annotation-xml"&&ul(U,F)},Er=function(U){at("beforeSanitizeAttributes",U,null);const{attributes:ue}=U;if(!ue)return;const Se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z};let qe=ue.length;for(;qe--;){const kt=ue[qe],{name:lt,namespaceURI:Rt,value:te}=kt,On=mt(lt);let yt=lt==="value"?te:kd(te);if(Se.attrName=On,Se.attrValue=yt,Se.keepAttr=!0,Se.forceKeepAttr=void 0,at("uponSanitizeAttribute",U,Se),yt=Se.attrValue,Se.forceKeepAttr||(hn(lt,U),!Se.keepAttr))continue;if(!J&&Nt(/\/>/i,yt)){hn(lt,U);continue}ne&&Ai([un,x,S],zt=>{yt=Gr(yt,zt," ")});const Hn=mt(U.nodeName);if(!!kr(Hn,On,yt)){if(nt&&(On==="id"||On==="name")&&(hn(lt,U),yt=Tt+yt),ae&&Nt(/((--!?|])>)|<\/(style|title)/i,yt)){hn(lt,U);continue}if(He&&typeof Me=="object"&&typeof Me.getAttributeType=="function"&&!Rt)switch(Me.getAttributeType(Hn,On)){case"TrustedHTML":{yt=He.createHTML(yt);break}case"TrustedScriptURL":{yt=He.createScriptURL(yt);break}}try{Rt?U.setAttributeNS(Rt,lt,yt):U.setAttribute(lt,yt),ur(U)?$t(U):ll(V.removed)}catch(zt){}}}at("afterSanitizeAttributes",U,null)},ai=function he(U){let ue=null;const Se=lr(U);for(at("beforeSanitizeShadowDOM",U,null);ue=Se.nextNode();)at("uponSanitizeShadowNode",ue,null),!nn(ue)&&(ue.content instanceof d&&he(ue.content),Er(ue));at("afterSanitizeShadowDOM",U,null)};return V.sanitize=function(he){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ue=null,Se=null,qe=null,kt=null;if(vn=!he,vn&&(he="<!-->"),typeof he!="string"&&!cr(he))if(typeof he.toString=="function"){if(he=he.toString(),typeof he!="string")throw Jr("dirty is not a string, aborting")}else throw Jr("toString is not a function");if(!V.isSupported)return he;if(fe||Bn(U),V.removed=[],typeof he=="string"&&(De=!1),De){if(he.nodeName){const te=mt(he.nodeName);if(!D[te]||O[te])throw Jr("root node is forbidden and cannot be sanitized in-place")}}else if(he instanceof y)ue=zn("<!---->"),Se=ue.ownerDocument.importNode(he,!0),Se.nodeType===Yr.element&&Se.nodeName==="BODY"||Se.nodeName==="HTML"?ue=Se:ue.appendChild(Se);else{if(!Ve&&!ne&&!pe&&he.indexOf("<")===-1)return He&&_e?He.createHTML(he):he;if(ue=zn(he),!ue)return Ve?null:_e?ft:""}ue&&ge&&$t(ue.firstChild);const lt=lr(De?he:ue);for(;qe=lt.nextNode();)nn(qe)||(qe.content instanceof d&&ai(qe.content),Er(qe));if(De)return he;if(Ve){if(tt)for(kt=ln.call(ue.ownerDocument);ue.firstChild;)kt.appendChild(ue.firstChild);else kt=ue;return(z.shadowroot||z.shadowrootmode)&&(kt=en.call(p,kt,!0)),kt}let Rt=pe?ue.outerHTML:ue.innerHTML;return pe&&D["!doctype"]&&ue.ownerDocument&&ue.ownerDocument.doctype&&ue.ownerDocument.doctype.name&&Nt(gl,ue.ownerDocument.doctype.name)&&(Rt="<!DOCTYPE "+ue.ownerDocument.doctype.name+`>
2210
2210
  `+Rt),ne&&Ai([un,x,S],te=>{Rt=Gr(Rt,te," ")}),He&&_e?He.createHTML(Rt):Rt},V.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bn(he),fe=!0},V.clearConfig=function(){Wt=null,fe=!1},V.isValidAttribute=function(he,U,ue){Wt||Bn({});const Se=mt(he),qe=mt(U);return kr(Se,qe,ue)},V.addHook=function(he,U){typeof U=="function"&&(Vt[he]=Vt[he]||[],Kr(Vt[he],U))},V.removeHook=function(he){if(Vt[he])return ll(Vt[he])},V.removeHooks=function(he){Vt[he]&&(Vt[he]=[])},V.removeAllHooks=function(){Vt={}},V}var zd=yl();function Ko(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let rr=Ko();function vl(re){rr=re}const bl=/[&<>"']/,Hd=new RegExp(bl.source,"g"),Cl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Qd=new RegExp(Cl.source,"g"),_d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xl=re=>_d[re];function Jt(re,V){if(V){if(bl.test(re))return re.replace(Hd,xl)}else if(Cl.test(re))return re.replace(Qd,xl);return re}const Ud=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Wd(re){return re.replace(Ud,(V,b)=>(b=b.toLowerCase(),b==="colon"?":":b.charAt(0)==="#"?b.charAt(1)==="x"?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""))}const $d=/(^|[^\[])\^/g;function Ye(re,V){let b=typeof re=="string"?re:re.source;V=V||"";const p={replace:(c,d)=>{let v=typeof d=="string"?d:d.source;return v=v.replace($d,"$1"),b=b.replace(c,v),p},getRegex:()=>new RegExp(b,V)};return p}function Pl(re){try{re=encodeURI(re).replace(/%25/g,"%")}catch(V){return null}return re}const Xr={exec:()=>null};function wl(re,V){const b=re.replace(/\|/g,(d,v,y)=>{let L=!1,ie=v;for(;--ie>=0&&y[ie]==="\\";)L=!L;return L?"|":" |"}),p=b.split(/ \|/);let c=0;if(p[0].trim()||p.shift(),p.length>0&&!p[p.length-1].trim()&&p.pop(),V)if(p.length>V)p.splice(V);else for(;p.length<V;)p.push("");for(;c<p.length;c++)p[c]=p[c].trim().replace(/\\\|/g,"|");return p}function Mi(re,V,b){const p=re.length;if(p===0)return"";let c=0;for(;c<p;){const d=re.charAt(p-c-1);if(d===V&&!b)c++;else if(d!==V&&b)c++;else break}return re.slice(0,p-c)}function Kd(re,V){if(re.indexOf(V[1])===-1)return-1;let b=0;for(let p=0;p<re.length;p++)if(re[p]==="\\")p++;else if(re[p]===V[0])b++;else if(re[p]===V[1]&&(b--,b<0))return p;return-1}function Tl(re,V,b,p){const c=V.href,d=V.title?Jt(V.title):null,v=re[1].replace(/\\([\[\]])/g,"$1");if(re[0].charAt(0)!=="!"){p.state.inLink=!0;const y={type:"link",raw:b,href:c,title:d,text:v,tokens:p.inlineTokens(v)};return p.state.inLink=!1,y}return{type:"image",raw:b,href:c,title:d,text:Jt(v)}}function Gd(re,V){const b=re.match(/^(\s+)(?:```)/);if(b===null)return V;const p=b[1];return V.split(`
2211
2211
  `).map(c=>{const d=c.match(/^\s+/);if(d===null)return c;const[v]=d;return v.length>=p.length?c.slice(p.length):c}).join(`
2212
2212
  `)}class ji{constructor(V){pt(this,"options");pt(this,"rules");pt(this,"lexer");this.options=V||rr}space(V){const b=this.rules.block.newline.exec(V);if(b&&b[0].length>0)return{type:"space",raw:b[0]}}code(V){const b=this.rules.block.code.exec(V);if(b){const p=b[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:b[0],codeBlockStyle:"indented",text:this.options.pedantic?p:Mi(p,`
@@ -2305,4 +2305,4 @@ Yeni bir giri\u015F eklemek i\xE7in a\u015Fa\u011F\u0131daki d\xFC\u011Fmeyi t\u
2305
2305
  \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043D\u043E\u043F\u043A\u0443 \u043D\u0438\u0436\u0447\u0435, \u0449\u043E\u0431 \u0434\u043E\u0434\u0430\u0442\u0438 \u043D\u043E\u0432\u0438\u0439 \u0437\u0430\u043F\u0438\u0441.`,noEntriesReadonlyText:"\u0417\u0430\u043F\u0438\u0441\u0456\u0432 \u043D\u0435\u043C\u0430\u0454.",tabTitlePlaceholder:"\u041D\u043E\u0432\u0430 \u043F\u0430\u043D\u0435\u043B\u044C",more:"\u0411\u0456\u043B\u044C\u0448\u0435",tagboxDoneButtonCaption:"\u0413\u0410\u0420\u0410\u0417\u0414",selectToRankEmptyRankedAreaText:"\u0412\u0441\u0456 \u0432\u0430\u0440\u0456\u0430\u043D\u0442\u0438 \u0440\u0430\u043D\u0436\u0443\u044E\u0442\u044C\u0441\u044F",selectToRankEmptyUnrankedAreaText:"\u041F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C \u0432\u0430\u0440\u0456\u0430\u043D\u0442\u0438 \u0442\u0443\u0442, \u0449\u043E\u0431 \u043E\u0446\u0456\u043D\u0438\u0442\u0438 \u0457\u0445",ok:"\u0413\u0410\u0420\u0410\u0417\u0414",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};v.surveyLocalization.setupLocale("ua",y,"\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","Ukrainian")},"./packages/survey-core/src/localization/vietnamese.ts":function(p,c,d){d.r(c),d.d(c,"vietnameseSurveyStrings",function(){return y});var v=d("survey-core"),y={pagePrevText:"Tr\u1EDF v\u1EC1",pageNextText:"Ti\u1EBFp theo",completeText:"Ho\xE0n th\xE0nh",previewText:"Xem tr\u01B0\u1EDBc",editText:"Ch\u1EC9nh s\u1EEDa",startSurveyText:"B\u1EAFt \u0111\u1EA7u",otherItemText:"Kh\xE1c (m\xF4 t\u1EA3)",noneItemText:"Tr\u1ED1ng",refuseItemText:"T\u1EEB ch\u1ED1i tr\u1EA3 l\u1EDDi",dontKnowItemText:"Kh\xF4ng bi\u1EBFt",selectAllItemText:"Ch\u1ECDn t\u1EA5t c\u1EA3",deselectAllItemText:"B\u1ECF ch\u1ECDn t\u1EA5t c\u1EA3",progressText:"Trang {0} / {1}",indexText:"{0} c\u1EE7a {1}",panelDynamicProgressText:"D\xF2ng {0} / {1}",panelDynamicTabTextFormat:"B\u1EA3ng \u0111i\u1EC1u khi\u1EC3n {panelIndex}",questionsProgressText:"\u0110\xE3 tr\u1EA3 l\u1EDDi {0}/{1} c\xE2u h\u1ECFi",emptySurvey:"Kh\xF4ng c\xF3 trang ho\u1EB7c c\xE2u h\u1ECFi n\xE0o \u0111\u01B0\u1EE3c hi\u1EC3n th\u1ECB trong cu\u1ED9c kh\u1EA3o s\xE1t n\xE0y.",completingSurvey:"C\u1EA3m \u01A1n \u0111\xE3 ho\xE0n th\xE0nh kh\u1EA3o s\xE1t!",completingSurveyBefore:"H\u1ED3 s\u01A1 ch\xFAng t\xF4i cho th\u1EA5y r\u1EB1ng b\u1EA1n \u0111\xE3 ho\xE0n th\xE0nh cu\u1ED9c kh\u1EA3o s\xE1t n\xE0y.",loadingSurvey:"\u0110ang t\u1EA3i kh\u1EA3o s\xE1t...",placeholder:"Ch\u1ECDn...",ratingOptionsCaption:"L\u1EF1a...",value:"Gi\xE1 tr\u1ECB",requiredError:"Vui l\xF2ng tr\u1EA3 l\u1EDDi c\xE2u h\u1ECFi.",requiredErrorInPanel:"Vui l\xF2ng tr\u1EA3 l\u1EDDi \xEDt nh\u1EA5t m\u1ED9t c\xE2u h\u1ECFi.",requiredInAllRowsError:"Vui l\xF2ng tr\u1EA3 l\u1EDDi c\xE1c c\xE2u h\u1ECFi tr\xEAn t\u1EA5t c\u1EA3 c\xE1c d\xF2ng.",eachRowUniqueError:"M\u1ED7i h\xE0ng ph\u1EA3i c\xF3 m\u1ED9t gi\xE1 tr\u1ECB duy nh\u1EA5t.",numericError:"Gi\xE1 tr\u1ECB n\xEAn l\xE0 ki\u1EC3u s\u1ED1.",minError:"Gi\xE1 tr\u1ECB kh\xF4ng \u0111\u01B0\u1EE3c nh\u1ECF h\u01A1n {0}",maxError:"Gi\xE1 tr\u1ECB kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n {0}",textNoDigitsAllow:"S\u1ED1 kh\xF4ng \u0111\u01B0\u1EE3c ph\xE9p.",textMinLength:"Vui l\xF2ng nh\u1EADp \xEDt nh\u1EA5t {0} k\xED t\u1EF1.",textMaxLength:"Vui l\xF2ng nh\u1EADp \xEDt h\u01A1n {0} k\xED t\u1EF1.",textMinMaxLength:"Vui l\xF2ng nh\u1EADp nhi\u1EC1u h\u01A1n {0} ho\u1EB7c \xEDt h\u01A1n {1} k\xED t\u1EF1.",minRowCountError:"Vui l\xF2ng nh\u1EADp \xEDt nh\u1EA5t {0} d\xF2ng.",minSelectError:"Vui l\xF2ng ch\u1ECDn \xEDt nh\u1EA5t {0} lo\u1EA1i.",maxSelectError:"Vui l\xF2ng kh\xF4ng ch\u1ECDn nhi\u1EC1u h\u01A1n {0} lo\u1EA1i.",numericMinMax:"Gi\xE1 tr\u1ECB '{0}' n\xEAn b\u1EB1ng ho\u1EB7c l\u1EDBn h\u01A1n {1} v\xE0 b\u1EB1ng ho\u1EB7c nh\u1ECF h\u01A1n {2}",numericMin:"Gi\xE1 tr\u1ECB '{0}' n\xEAn b\u1EB1ng ho\u1EB7c l\u1EDBn h\u01A1n {1}",numericMax:"Gi\xE1 tr\u1ECB '{0}' n\xEAn b\u1EB1ng ho\u1EB7c nh\u1ECF h\u01A1n {1}",invalidEmail:"Vui l\xF2ng \u0111i\u1EC1n \u0111\u1ECBa ch\u1EC9 email h\u1EE3p l\u1EC7.",invalidExpression:"Bi\u1EC3u th\u1EE9c: {0} n\xEAn tr\u1EA3 v\u1EC1 'true'.",urlRequestError:"Y\xEAu c\u1EA7u tr\u1EA3 v\u1EC1 l\u1ED7i '{0}'. {1}",urlGetChoicesError:"Y\xEAu c\u1EA7u tr\u1EA3 v\u1EC1 d\u1EEF li\u1EC7u tr\u1ED1ng ho\u1EB7c thu\u1ED9c t\xEDnh 'path' kh\xF4ng \u0111\xFAng",exceedMaxSize:"K\xEDch th\u01B0\u1EDBc t\u1EADp tin kh\xF4ng n\xEAn v\u01B0\u1EE3t qu\xE1 {0}.",noUploadFilesHandler:"Kh\xF4ng th\u1EC3 t\u1EA3i t\u1EC7p l\xEAn. Vui l\xF2ng th\xEAm tr\xECnh x\u1EED l\xFD cho s\u1EF1 ki\u1EC7n 'onUploadFiles'.",otherRequiredError:"Vui l\xF2ng \u0111i\u1EC1n gi\xE1 tr\u1ECB kh\xE1c.",uploadingFile:"T\u1EADp tin \u0111ang \u0111\u01B0\u1EE3c t\u1EA3i l\xEAn. Vui l\xF2ng ch\u1EDD m\u1ED9t l\xFAc v\xE0 th\u1EED l\u1EA1i.",loadingFile:"\u0110ang t\u1EA3i...",chooseFile:"Ch\u1ECDn c\xE1c t\u1EADp tin...",noFileChosen:"Kh\xF4ng c\xF3 t\u1EADp tin n\xE0o \u0111\u01B0\u1EE3c ch\u1ECDn",filePlaceholder:"K\xE9o v\xE0 th\u1EA3 t\u1EC7p v\xE0o \u0111\xE2y ho\u1EB7c nh\u1EA5p v\xE0o n\xFAt b\xEAn d\u01B0\u1EDBi v\xE0 ch\u1ECDn t\u1EC7p \u0111\u1EC3 t\u1EA3i l\xEAn.",confirmDelete:"B\u1EA1n mu\u1ED1n x\xF3a d\xF2ng n\xE0y?",keyDuplicationError:"Gi\xE1 tr\u1ECB n\xE0y kh\xF4ng n\xEAn b\u1ECB tr\xF9ng l\u1EB7p.",addColumn:"Th\xEAm c\u1ED9t",addRow:"Th\xEAm d\xF2ng",removeRow:"X\xF3a",emptyRowsText:"Kh\xF4ng c\xF3 h\xE0ng.",addPanel:"Th\xEAm m\u1EDBi",removePanel:"X\xF3a",showDetails:"Hi\u1EC3n th\u1ECB chi ti\u1EBFt",hideDetails:"\u1EA8n chi ti\u1EBFt",choices_Item:"m\u1EE5c",matrix_column:"C\u1ED9t",matrix_row:"D\xF2ng",multipletext_itemname:"Nh\u1EAFn tin",savingData:"K\u1EBFt qu\u1EA3 \u0111ang l\u01B0u l\u1EA1i tr\xEAn h\u1EC7 th\u1ED1ng...",savingDataError:"C\xF3 l\u1ED7i x\u1EA3y ra v\xE0 ch\xFAng ta kh\xF4ng th\u1EC3 l\u01B0u k\u1EBFt qu\u1EA3.",savingDataSuccess:"K\u1EBFt qu\u1EA3 \u0111\xE3 \u0111\u01B0\u1EE3c l\u01B0u th\xE0nh c\xF4ng!",savingExceedSize:"Ph\u1EA3n h\u1ED3i c\u1EE7a b\u1EA1n v\u01B0\u1EE3t qu\xE1 64KB. Vui l\xF2ng gi\u1EA3m k\xEDch th\u01B0\u1EDBc (c\xE1c) t\u1EC7p c\u1EE7a b\u1EA1n v\xE0 th\u1EED l\u1EA1i ho\u1EB7c li\xEAn h\u1EC7 v\u1EDBi ch\u1EE7 s\u1EDF h\u1EEFu kh\u1EA3o s\xE1t.",saveAgainButton:"Th\u1EED l\u1EA1i",timerMin:"ph\xFAt",timerSec:"gi\xE2y",timerSpentAll:"B\u1EA1n \u0111\xE3 s\u1EED d\u1EE5ng {0} tr\xEAn trang n\xE0y v\xE0 {1} tr\xEAn to\xE0n b\u1ED9.",timerSpentPage:"B\u1EA1n \u0111\xE3 s\u1EED d\u1EE5ng {0} tr\xEAn trang.",timerSpentSurvey:"B\u1EA1n \u0111\xE3 s\u1EED d\u1EE5ng {0} tr\xEAn to\xE0n b\u1ED9.",timerLimitAll:"B\u1EA1n \u0111\xE3 s\u1EED d\u1EE5ng {0} / {1} tr\xEAn trang n\xE0y v\xE0 {2} / {3} tr\xEAn to\xE0n b\u1ED9.",timerLimitPage:"B\u1EA1n \u0111\xE3 s\u1EED d\u1EE5ng {0} / {1} tr\xEAn trang n\xE0y.",timerLimitSurvey:"B\u1EA1n \u0111\xE3 s\u1EED d\u1EE5ng {0} / {1} tr\xEAn to\xE0n b\u1ED9.",clearCaption:"X\xF3a",signaturePlaceHolder:"K\xFD t\xEAn t\u1EA1i \u0111\xE2y",signaturePlaceHolderReadOnly:"Kh\xF4ng c\xF3 ch\u1EEF k\xFD",chooseFileCaption:"Ch\u1ECDn t\u1EADp tin",takePhotoCaption:"Ch\u1EE5p \u1EA3nh",photoPlaceholder:"Nh\u1EA5p v\xE0o n\xFAt b\xEAn d\u01B0\u1EDBi \u0111\u1EC3 ch\u1EE5p \u1EA3nh b\u1EB1ng m\xE1y \u1EA3nh.",fileOrPhotoPlaceholder:"K\xE9o v\xE0 th\u1EA3 ho\u1EB7c ch\u1ECDn t\u1EC7p \u0111\u1EC3 t\u1EA3i l\xEAn ho\u1EB7c ch\u1EE5p \u1EA3nh b\u1EB1ng m\xE1y \u1EA3nh.",replaceFileCaption:"Thay th\u1EBF t\u1EADp tin",removeFileCaption:"X\xF3a t\u1EADp tin",booleanCheckedLabel:"C\xF3",booleanUncheckedLabel:"Kh\xF4ng",confirmRemoveFile:"B\u1EA1n c\xF3 ch\u1EAFc ch\u1EAFn mu\u1ED1n x\xF3a t\u1EADp tin n\xE0y: {0}?",confirmRemoveAllFiles:"B\u1EA1n c\xF3 ch\u1EAFc ch\u1EAFn mu\u1ED1n x\xF3a to\xE0n b\u1ED9 t\u1EADp tin?",questionTitlePatternText:"Ti\xEAu \u0111\u1EC1 c\xE2u h\u1ECFi",modalCancelButtonText:"H\u1EE7y",modalApplyButtonText:"\xC1p d\u1EE5ng",filterStringPlaceholder:"Nh\u1EADp \u0111\u1EC3 t\xECm ki\u1EBFm...",emptyMessage:"Kh\xF4ng c\xF3 d\u1EEF li\u1EC7u \u0111\u1EC3 hi\u1EC3n th\u1ECB",noEntriesText:`Ch\u01B0a c\xF3 m\u1EE5c n\xE0o.
2306
2306
  Nh\u1EA5p v\xE0o n\xFAt b\xEAn d\u01B0\u1EDBi \u0111\u1EC3 th\xEAm m\u1EE5c nh\u1EADp m\u1EDBi.`,noEntriesReadonlyText:"Kh\xF4ng c\xF3 m\u1EE5c.",tabTitlePlaceholder:"B\u1EA3ng \u0111i\u1EC1u khi\u1EC3n m\u1EDBi",more:"Nhi\u1EC1u h\u01A1n",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"T\u1EA5t c\u1EA3 c\xE1c l\u1EF1a ch\u1ECDn \u0111\u01B0\u1EE3c x\u1EBFp h\u1EA1ng",selectToRankEmptyUnrankedAreaText:"K\xE9o v\xE0 th\u1EA3 c\xE1c l\u1EF1a ch\u1ECDn v\xE0o \u0111\xE2y \u0111\u1EC3 x\u1EBFp h\u1EA1ng ch\xFAng",ok:"OK",cancel:"H\u1EE7y"};v.surveyLocalization.setupLocale("vi",y,"vi\u1EC7t nam","Vietnamese")},"./packages/survey-core/src/localization/welsh.ts":function(p,c,d){d.r(c),d.d(c,"welshSurveyStrings",function(){return y});var v=d("survey-core"),y={pagePrevText:"Blaenorol",pageNextText:"Nesaf",completeText:"Cwblhau",previewText:"Rhagolwg",editText:"Golygu",startSurveyText:"Dechrau",otherItemText:"Arall (disgrifiwch)",noneItemText:"Dim",refuseItemText:"Gwrthod ateb",dontKnowItemText:"Ddim yn gwybod",selectAllItemText:"Dewis y Cyfan ",deselectAllItemText:"Dad-ddethol yr holl",progressText:"Tudalen {0} o {1}",indexText:"{0} o {1}",panelDynamicProgressText:"Cofnod {0} o {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Wedi ateb {0}/{1} cwestiwn",emptySurvey:"Does dim modd gweld tudalen na chwestiwn yn yr arolwg.",completingSurvey:"Diolch am lenwi\u2019r holiadur!",completingSurveyBefore:"Rydych chi wedi llenwi\u2019r arolwg hwn yn barod yn \xF4l ein cofnodion.",loadingSurvey:"Wrthi\u2019n Llwytho\u2019r Arolwg...",placeholder:"Dewiswch...",ratingOptionsCaption:"Dewis...",value:"gwerth",requiredError:"Atebwch y cwestiwn.",requiredErrorInPanel:"Atebwch o leiaf un cwestiwn.",requiredInAllRowsError:"Atebwch y cwestiynau ym mhob rhes.",eachRowUniqueError:"Rhaid i bob rhes fod \xE2 gwerth unigryw.",numericError:"Dylai\u2019r gwerth fod yn rhif.",minError:"Ni ddylai'r gwerth fod yn llai na {0}",maxError:"Ni ddylai'r gwerth fod yn fwy na {0}",textNoDigitsAllow:"Ni chaniateir rhifau.",textMinLength:"Rhowch o leiaf {0} nod.",textMaxLength:"Rhowch lai na {0} nod.",textMinMaxLength:"Rhowch o leiaf {0} nod ond dim mwy na {1}.",minRowCountError:"Llenwch o leiaf {0} rhes.",minSelectError:"Dewiswch o leiaf {0} amrywiolyn.",maxSelectError:"Peidiwch \xE2 dewis mwy na {0} amrywiolyn.",numericMinMax:"Dylai\u2019r '{0}' fod yr un fath \xE2 {1} neu\u2019n fwy, a\u2019r fath \xE2 {2} neu\u2019n llai",numericMin:"Dylai\u2019r '{0}' fod yr un fath \xE2 {1} neu\u2019n fwy",numericMax:"Dylai\u2019r '{0}' fod yr un fath \xE2 {1} neu\u2019n llai",invalidEmail:"Rhowch gyfeiriad e-bost dilys.",invalidExpression:"Dylai\u2019r mynegiad {0} arwain at 'true'.",urlRequestError:"Roedd y cais wedi arwain at y gwall '{0}'. {1}",urlGetChoicesError:"Roedd y cais wedi arwain at ddata gwag neu mae priodwedd y \u2018path\u2019 yn anghywir ",exceedMaxSize:"Ddylai\u2019r ffeil ddim bod yn fwy na {0}.",noUploadFilesHandler:"Ni ellir llwytho ffeiliau i fyny. Ychwanegwch handler ar gyfer y digwyddiad 'onUploadFiles'.",otherRequiredError:"Rhowch y gwerth arall.",uploadingFile:"Mae eich ffeil wrthi\u2019n llwytho i fyny. Arhoswch ychydig o eiliadau a rhoi cynnig arall arni.",loadingFile:"Wrthi\u2019n llwytho...",chooseFile:"Dewiswch ffeil(iau)...",noFileChosen:"Heb ddewis ffeil ",filePlaceholder:"Llusgwch a gollwng ffeil yma neu cliciwch y botwm isod a dewiswch ffeil i'w lanlwytho.",confirmDelete:"Ydych chi am ddileu\u2019r cofnod?",keyDuplicationError:"Dylai\u2019r gwerth hwn fod yn unigryw.",addColumn:"Ychwanegu colofn ",addRow:"Ychwanegu rhes",removeRow:"Tynnu",emptyRowsText:"Nid oes unrhyw ffraeau.",addPanel:"Ychwanegu o\u2019r newydd",removePanel:"Tynnu",showDetails:"Dangos manylion",hideDetails:"Manylion Cuddio",choices_Item:"eitem",matrix_column:"Colofn",matrix_row:"Rhes",multipletext_itemname:"Testun",savingData:"Mae\u2019r canlyniadau\u2019n cael eu cadw ar y gweinydd...",savingDataError:"Roedd gwall a doedd dim modd cadw\u2019r canlyniadau.",savingDataSuccess:"Wedi llwyddo i gadw\u2019r canlyniadau!",savingExceedSize:"Mae eich ymateb yn fwy na 64KB. Lleihau maint eich ffeil(au) a cheisiwch eto neu cysylltwch \xE2 pherchennog yr arolwg.",saveAgainButton:"Rhowch gynnig arall arni",timerMin:"mun",timerSec:"eil",timerSpentAll:"Rydych chi wedi treulio {0} ar y dudalen hon a {1} gyda\u2019i gilydd.",timerSpentPage:"Rydych chi wedi treulio {0} ar y dudalen hon.",timerSpentSurvey:"Rydych chi wedi treulio {0} gyda\u2019i gilydd.",timerLimitAll:"Rydych chi wedi treulio {0} o {1} ar y dudalen hon a {2} o {3} gyda\u2019i gilydd.",timerLimitPage:"Rydych chi wedi treulio {0} o {1} ar y dudalen hon.",timerLimitSurvey:"Rydych chi wedi treulio {0} o {1} gyda\u2019i gilydd.",clearCaption:"Clirio",signaturePlaceHolder:"Arwydd yma",signaturePlaceHolderReadOnly:"Dim llofnod",chooseFileCaption:"Dewiswch ffeil ",takePhotoCaption:"Tynnu Llun",photoPlaceholder:"Cliciwch y botwm isod i dynnu llun gan ddefnyddio'r camera.",fileOrPhotoPlaceholder:"Llusgwch a gollwng neu dewiswch ffeil i lanlwytho neu dynnu llun gan ddefnyddio'r camera.",replaceFileCaption:"Amnewid ffeil",removeFileCaption:"Tynnu\u2019r ffeil hon ",booleanCheckedLabel:"Iawn",booleanUncheckedLabel:"Na",confirmRemoveFile:"Ydych chi\u2019n si\u0175r eich bod am dynnu\u2019r ffeil hon: {0}?",confirmRemoveAllFiles:"Ydych chi\u2019n si\u0175r eich bod am dynnu pob ffeil?",questionTitlePatternText:"Teitl y Cwestiwn ",modalCancelButtonText:"Canslo",modalApplyButtonText:"Cynnig",filterStringPlaceholder:"Teipiwch i chwilio...",emptyMessage:"Dim data i'w arddangos",noEntriesText:`Nid oes unrhyw gofnodion hyd yn hyn.
2307
2307
  Cliciwch y botwm isod i ychwanegu cofnod newydd.`,noEntriesReadonlyText:"Nid oes unrhyw gofnodion.",tabTitlePlaceholder:"Panel newydd",more:"Rhagor",tagboxDoneButtonCaption:"OC\xCA",selectToRankEmptyRankedAreaText:"Mae'r holl ddewisiadau yn cael eu rhestru",selectToRankEmptyUnrankedAreaText:"Dewisiadau llusgo a gollwng yma i'w graddio",ok:"OC\xCA",cancel:"Canslo"};v.surveyLocalization.setupLocale("cy",y,"cymraeg","Welsh")},"./src/entries/i18n.ts":function(p,c,d){d.r(c),d("./packages/survey-core/src/localization/arabic.ts"),d("./packages/survey-core/src/localization/basque.ts"),d("./packages/survey-core/src/localization/bulgarian.ts"),d("./packages/survey-core/src/localization/catalan.ts"),d("./packages/survey-core/src/localization/croatian.ts"),d("./packages/survey-core/src/localization/czech.ts"),d("./packages/survey-core/src/localization/danish.ts"),d("./packages/survey-core/src/localization/dutch.ts"),d("./packages/survey-core/src/localization/nl-BE.ts"),d("./packages/survey-core/src/localization/estonian.ts"),d("./packages/survey-core/src/localization/finnish.ts"),d("./packages/survey-core/src/localization/french.ts"),d("./packages/survey-core/src/localization/georgian.ts"),d("./packages/survey-core/src/localization/german.ts"),d("./packages/survey-core/src/localization/greek.ts"),d("./packages/survey-core/src/localization/hebrew.ts"),d("./packages/survey-core/src/localization/hindi.ts"),d("./packages/survey-core/src/localization/hungarian.ts"),d("./packages/survey-core/src/localization/icelandic.ts"),d("./packages/survey-core/src/localization/indonesian.ts"),d("./packages/survey-core/src/localization/italian.ts"),d("./packages/survey-core/src/localization/japanese.ts"),d("./packages/survey-core/src/localization/kazakh.ts"),d("./packages/survey-core/src/localization/korean.ts"),d("./packages/survey-core/src/localization/latvian.ts"),d("./packages/survey-core/src/localization/lithuanian.ts"),d("./packages/survey-core/src/localization/macedonian.ts"),d("./packages/survey-core/src/localization/malay.ts"),d("./packages/survey-core/src/localization/norwegian.ts"),d("./packages/survey-core/src/localization/persian.ts"),d("./packages/survey-core/src/localization/polish.ts"),d("./packages/survey-core/src/localization/portuguese.ts"),d("./packages/survey-core/src/localization/portuguese-br.ts"),d("./packages/survey-core/src/localization/romanian.ts"),d("./packages/survey-core/src/localization/russian.ts"),d("./packages/survey-core/src/localization/serbian.ts"),d("./packages/survey-core/src/localization/simplified-chinese.ts"),d("./packages/survey-core/src/localization/slovak.ts"),d("./packages/survey-core/src/localization/spanish.ts"),d("./packages/survey-core/src/localization/swahili.ts"),d("./packages/survey-core/src/localization/swedish.ts"),d("./packages/survey-core/src/localization/tajik.ts"),d("./packages/survey-core/src/localization/thai.ts"),d("./packages/survey-core/src/localization/traditional-chinese.ts"),d("./packages/survey-core/src/localization/turkish.ts"),d("./packages/survey-core/src/localization/ukrainian.ts"),d("./packages/survey-core/src/localization/vietnamese.ts"),d("./packages/survey-core/src/localization/welsh.ts"),d("./packages/survey-core/src/localization/telugu.ts"),d("./packages/survey-core/src/localization/philippines.ts")},"survey-core":function(p,c){p.exports=b}})})})(Pp);class wp extends Error{constructor(){super("Locale not set in trial parameters.")}}var Tp=(re,V,b)=>new Promise((p,c)=>{var d=L=>{try{y(b.next(L))}catch(ie){c(ie)}},v=L=>{try{y(b.throw(L))}catch(ie){c(ie)}},y=L=>L.done?p(L.value):Promise.resolve(L.value).then(d,v);y((b=b.apply(re,V)).next())});const Dl={marked:{async:!1},dompurify:{USE_PROFILES:{html:!0}}},Ll=re=>(re.onTextMarkdown.add((V,b)=>{b.html=zd.sanitize(Je.parseInline(b.text,Dl.marked),Dl.dompurify)}),re),Ml=(re,V)=>{if(!V.locale)throw new wp;re.locale=new Intl.Locale(V.locale).baseName},Sp=re=>V=>(Ml(V,re),Ll(V),V.onComplete.add(b=>{const p=b.getQuestionByName("withdrawal").value.length>0;b.setValue("withdrawal",p)}),V),kp=re=>V=>(Ml(V,re),Ll(V),V.onComplete.add(()=>Tp(void 0,null,function*(){yield et.updateResponse(window.chs.response.id,{survey_consent:!0,completed_consent_frame:!0})})),typeof re.survey_function=="function"&&re.survey_function(V),V);var Vp=Object.defineProperty,Ep=Object.defineProperties,Rp=Object.getOwnPropertyDescriptors,jl=Object.getOwnPropertySymbols,Op=Object.prototype.hasOwnProperty,Ip=Object.prototype.propertyIsEnumerable,ql=(re,V,b)=>V in re?Vp(re,V,{enumerable:!0,configurable:!0,writable:!0,value:b}):re[V]=b,zi=(re,V)=>{for(var b in V||(V={}))Op.call(V,b)&&ql(re,b,V[b]);if(jl)for(var b of jl(V))Ip.call(V,b)&&ql(re,b,V[b]);return re},Hi=(re,V)=>Ep(re,Rp(V));const Ap=Hi(zi({},Vn.info),{parameters:Hi(zi({},Vn.info.parameters),{locale:{type:Fe.ParameterType.STRING,default:"en-us"}}),data:Hi(zi({},Vn.info.data),{chs_type:{type:Fe.ParameterType.STRING}})});class Fl extends Vn{trial(V,b){super.trial(V,Hi(zi({},b),{survey_function:kp(b)}))}static chsData(){return{chs_type:"consent",chs_version:il.version}}}Fl.info=Ap;var Dp=Object.defineProperty,Lp=Object.defineProperties,Mp=Object.getOwnPropertyDescriptors,Nl=Object.getOwnPropertySymbols,jp=Object.prototype.hasOwnProperty,qp=Object.prototype.propertyIsEnumerable,Bl=(re,V,b)=>V in re?Dp(re,V,{enumerable:!0,configurable:!0,writable:!0,value:b}):re[V]=b,Qi=(re,V)=>{for(var b in V||(V={}))jp.call(V,b)&&Bl(re,b,V[b]);if(Nl)for(var b of Nl(V))qp.call(V,b)&&Bl(re,b,V[b]);return re},_i=(re,V)=>Lp(re,Mp(V));const Fp=_i(Qi({},Vn.info),{parameters:_i(Qi({},Vn.info.parameters),{locale:{type:Fe.ParameterType.STRING,default:"en-us"},show_databrary_options:{type:Fe.ParameterType.BOOL,default:!0,pretty_name:"Show databrary options"},include_withdrawal_example:{type:Fe.ParameterType.BOOL,default:!0,pretty_name:"Include withdrawal example"},private_level_only:{type:Fe.ParameterType.BOOL,default:!1,pretty_name:"Private level only"},additional_video_privacy_text:{type:Fe.ParameterType.STRING,default:"",pretty_name:"Additional video privacy text"}}),data:_i(Qi({},Vn.info.data),{chs_type:{type:Fe.ParameterType.STRING}})});class zl extends Vn{trial(V,b){super.trial(V,_i(Qi({},b),{survey_json:bt.exitSurvey(b),survey_function:Sp(b)}))}static chsData(){return{chs_type:"exit",chs_version:il.version}}}zl.info=Fp;var Np={ExitSurveyPlugin:zl,ConsentSurveyPlugin:Fl};return Np}(jsPsychModule,chsData,chsTemplates);
2308
- //# sourceMappingURL=https://unpkg.com/@lookit/surveys@4.0.1/dist/index.browser.min.js.map
2308
+ //# sourceMappingURL=https://unpkg.com/@lookit/surveys@6.0.0/dist/index.browser.min.js.map
package/dist/index.cjs CHANGED
@@ -10,7 +10,7 @@ var chsTemplates = require('@lookit/templates');
10
10
 
11
11
  var _package = {
12
12
  name: "@lookit/surveys",
13
- version: "4.0.1",
13
+ version: "6.0.0",
14
14
  description: "A survey plugin for lookit studies.",
15
15
  homepage: "https://github.com/lookit/lookit-jspsych#readme",
16
16
  bugs: {
@@ -45,8 +45,8 @@ var _package = {
45
45
  "@types/dompurify": "^3.0.5"
46
46
  },
47
47
  peerDependencies: {
48
- "@lookit/data": "^0.2.0",
49
- "@lookit/templates": "^2.1.0",
48
+ "@lookit/data": "^0.3.0",
49
+ "@lookit/templates": "^3.1.0",
50
50
  jspsych: "^8.0.3"
51
51
  }
52
52
  };
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import chsTemplates from '@lookit/templates';
8
8
 
9
9
  var _package = {
10
10
  name: "@lookit/surveys",
11
- version: "4.0.1",
11
+ version: "6.0.0",
12
12
  description: "A survey plugin for lookit studies.",
13
13
  homepage: "https://github.com/lookit/lookit-jspsych#readme",
14
14
  bugs: {
@@ -43,8 +43,8 @@ var _package = {
43
43
  "@types/dompurify": "^3.0.5"
44
44
  },
45
45
  peerDependencies: {
46
- "@lookit/data": "^0.2.0",
47
- "@lookit/templates": "^2.1.0",
46
+ "@lookit/data": "^0.3.0",
47
+ "@lookit/templates": "^3.1.0",
48
48
  jspsych: "^8.0.3"
49
49
  }
50
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookit/surveys",
3
- "version": "4.0.1",
3
+ "version": "6.0.0",
4
4
  "description": "A survey plugin for lookit studies.",
5
5
  "homepage": "https://github.com/lookit/lookit-jspsych#readme",
6
6
  "bugs": {
@@ -35,8 +35,8 @@
35
35
  "@types/dompurify": "^3.0.5"
36
36
  },
37
37
  "peerDependencies": {
38
- "@lookit/data": "^0.2.0",
39
- "@lookit/templates": "^2.1.0",
38
+ "@lookit/data": "^0.3.0",
39
+ "@lookit/templates": "^3.1.0",
40
40
  "jspsych": "^8.0.3"
41
41
  }
42
42
  }