/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[11],{386:function(Ba,ya,z){function qa(ea){ea.Ja();ea.advance();var ba=ea.current.textContent;ea.Ya();return ba}function ka(ea){var ba=[];for(ea.Ja();ea.advance();){var ma=ea.Ma();"field"===ma?ba.push(String(ea.da("name"))):Object(f.i)("unrecognised field list element: "+ma)}ea.Ya();return ba}function la(ea,ba){return ba?"false"!==ea:"true"===ea}function ha(ea,ba){var ma=ea.Ma();switch(ma){case "javascript":return{name:"JavaScript",
javascript:ea.current.textContent};case "uri":return{name:"URI",uri:ea.da("uri")};case "goto":ma=null;ea.Ja();if(ea.advance()){var ta=ea.da("fit");ma={page:ea.da("page"),fit:ta};if("0"===ma.page)Object(f.i)("null page encountered in dest");else switch(ba=ba(Number(ma.page)),ta){case "Fit":case "FitB":break;case "FitH":case "FitBH":ma.top=ba.qa({x:0,y:ea.da("top")||0}).y;break;case "FitV":case "FitBV":ma.left=ba.qa({x:ea.da("left")||0,y:0}).x;break;case "FitR":ta=ba.qa({x:ea.da("left")||0,y:ea.da("top")||
0});ba=ba.qa({x:ea.da("right")||0,y:ea.da("bottom")||0});ba=new ca.d(ta.x,ta.y,ba.x,ba.y);ma.top=ba.ha;ma.left=ba.ka;ma.bottom=ba.ia;ma.right=ba.la;break;case "XYZ":ta=ba.qa({x:ea.da("left")||0,y:ea.da("top")||0});ma.top=ta.y;ma.left=ta.x;ma.zoom=ea.da("zoom")||0;break;default:Object(f.i)("unknown dest fit: "+ta)}ma={name:"GoTo",dest:ma}}else Object(f.i)("missing dest in GoTo action");ea.Ya();return ma;case "submit-form":ma={name:"SubmitForm",url:ea.da("url"),format:ea.da("format"),method:ea.da("method")||
"POST",exclude:la(ea.da("exclude"),!1)};ba=ea.da("flags");ma.flags=ba?ba.split(" "):[];for(ea.Ja();ea.advance();)switch(ba=ea.Ma(),ba){case "fields":ma.fields=ka(ea);break;default:Object(f.i)("unrecognised submit-form child: "+ba)}ea.Ya();return ma;case "reset-form":ma={name:"ResetForm",exclude:la(ea.da("exclude"),!1)};for(ea.Ja();ea.advance();)switch(ba=ea.Ma(),ba){case "fields":ma.fields=ka(ea);break;default:Object(f.i)("unrecognised reset-form child: "+ba)}ea.Ya();return ma;case "hide":ma={name:"Hide",
hide:la(ea.da("hide"),!0)};for(ea.Ja();ea.advance();)switch(ba=ea.Ma(),ba){case "fields":ma.fields=ka(ea);break;default:Object(f.i)("unrecognised hide child: "+ba)}ea.Ya();return ma;case "named":return{name:"Named",action:ea.da("name")};default:Object(f.i)("Encountered unexpected action type: "+ma)}return null}function da(ea,ba,ma){var ta={};for(ea.Ja();ea.advance();){var na=ea.Ma();switch(na){case "action":na=ea.da("trigger");if(ba?-1!==ba.indexOf(na):1){ta[na]=[];for(ea.Ja();ea.advance();){var oa=
ha(ea,ma);Object(n.isNull)(oa)||ta[na].push(oa)}ea.Ya()}else Object(f.i)("encountered unexpected trigger on field: "+na);break;default:Object(f.i)("encountered unknown action child: "+na)}}ea.Ya();return ta}function y(ea){return new w.a(ea.da("r")||0,ea.da("g")||0,ea.da("b")||0,ea.da("a")||1)}function r(ea,ba){var ma=ea.da("name"),ta=ea.da("type")||"Type1",na=ea.da("size"),oa=ba.qa({x:0,y:0});na=ba.qa({x:Number(na),y:0});ba=oa.x-na.x;oa=oa.y-na.y;ma={name:ma,type:ta,size:Math.sqrt(ba*ba+oa*oa)||0,
strokeColor:[0,0,0],fillColor:[0,0,0]};for(ea.Ja();ea.advance();)switch(ta=ea.Ma(),ta){case "stroke-color":ma.strokeColor=y(ea);break;case "fill-color":ma.fillColor=y(ea);break;default:Object(f.i)("unrecognised font child: "+ta)}ea.Ya();return ma}function h(ea){var ba=[];for(ea.Ja();ea.advance();){var ma=ea.Ma();switch(ma){case "option":ma=ba;var ta=ma.push;var na=ea;na={value:na.da("value"),displayValue:na.da("display-value")||void 0};ta.call(ma,na);break;default:Object(f.i)("unrecognised options child: "+
ma)}}ea.Ya();return ba}function a(ea,ba){var ma=ea.da("name"),ta={type:ea.da("type"),quadding:ea.da("quadding")||"Left-justified",maxLen:ea.da("max-len")||-1},na=ea.da("flags");Object(n.isString)(na)&&(ta.flags=na.split(" "));for(ea.Ja();ea.advance();)switch(na=ea.Ma(),na){case "actions":ta.actions=da(ea,["C","F","K","V"],function(){return ba});break;case "default-value":ta.defaultValue=qa(ea);break;case "font":ta.font=r(ea,ba);break;case "options":ta.options=h(ea);break;default:Object(f.i)("unknown field child: "+
na)}ea.Ya();return new window.Annotations.fa.sa(ma,ta)}function b(ea,ba){switch(ea.type){case "Tx":try{if(Object(ja.c)(ea.actions))return new x.a.DatePickerWidgetAnnotation(ea,ba)}catch(ma){Object(f.i)(ma)}return new x.a.TextWidgetAnnotation(ea,ba);case "Ch":return ea.flags.get(fa.WidgetFlags.COMBO)?new x.a.ChoiceWidgetAnnotation(ea,ba):new x.a.ListWidgetAnnotation(ea,ba);case "Btn":return ea.flags.get(fa.WidgetFlags.PUSH_BUTTON)?new x.a.PushButtonWidgetAnnotation(ea,ba):ea.flags.get(fa.WidgetFlags.RADIO)?
new x.a.RadioButtonWidgetAnnotation(ea,ba):new x.a.CheckButtonWidgetAnnotation(ea,ba);case "Sig":return new x.a.SignatureWidgetAnnotation(ea,ba);default:Object(f.i)("Unrecognised field type: "+ea.type)}return null}function e(ea,ba,ma,ta){var na=[],oa={};ea.Ja();var pa=[],ua={},va=[];Object(aa.a)(function(){if(ea.advance()){var ra=ea.Ma();switch(ra){case "calculation-order":pa="calculation-order"===ea.Ma()?ka(ea):[];break;case "document-actions":ua=da(ea,["Init","Open"],ba);break;case "pages":ra=[];
for(ea.Ja();ea.advance();){var xa=ea.Ma();switch(xa){case "page":xa=ra;var Aa=xa.push,Ga=ea,Ka=ba,Da={number:Ga.da("number")};for(Ga.Ja();Ga.advance();){var Pa=Ga.Ma();switch(Pa){case "actions":Da.actions=da(Ga,["O","C"],Ka);break;default:Object(f.i)("unrecognised page child: "+Pa)}}Ga.Ya();Aa.call(xa,Da);break;default:Object(f.i)("unrecognised page child: "+xa)}}ea.Ya();va=ra;break;case "field":xa=a(ea,ba(1));oa[xa.name]=xa;break;case "widget":ra={border:{style:"Solid",width:1},backgroundColor:[],
fieldName:ea.da("field"),page:ea.da("page"),index:ea.da("index")||0,rotation:ea.da("rotation")||0,flags:[],isImporting:!0};(xa=ea.da("appearance"))&&(ra.appearance=xa);(xa=ea.da("flags"))&&(ra.flags=xa.split(" "));for(ea.Ja();ea.advance();)switch(xa=ea.Ma(),xa){case "rect":Aa=ea;Ga=ba(Number(ra.page));xa=Ga.qa({x:Aa.da("x1")||0,y:Aa.da("y1")||0});Aa=Ga.qa({x:Aa.da("x2")||0,y:Aa.da("y2")||0});xa=new ca.d(xa.x,xa.y,Aa.x,Aa.y);xa.normalize();ra.rect={x1:xa.x1,y1:xa.y1,x2:xa.x2,y2:xa.y2};break;case "border":xa=
ea;Aa={style:xa.da("style")||"Solid",width:xa.da("width")||1,color:[0,0,0]};for(xa.Ja();xa.advance();)switch(Ga=xa.Ma(),Ga){case "color":Aa.color=y(xa);break;default:Object(f.i)("unrecognised border child: "+Ga)}xa.Ya();ra.border=Aa;break;case "background-color":ra.backgroundColor=y(ea);break;case "actions":ra.actions=da(ea,"E X D U Fo Bl PO PC PV PI".split(" "),ba);break;case "appearances":xa=ea;Aa=Object(ja.b)(ra,"appearances");for(xa.Ja();xa.advance();)if(Ga=xa.Ma(),"appearance"===Ga){Ga=xa.da("name");
Ka=Object(ja.b)(Aa,Ga);Ga=xa;for(Ga.Ja();Ga.advance();)switch(Da=Ga.Ma(),Da){case "Normal":Object(ja.b)(Ka,"Normal").data=Ga.current.textContent;break;default:Object(f.i)("unexpected appearance state: ",Da)}Ga.Ya()}else Object(f.i)("unexpected appearances child: "+Ga);xa.Ya();break;case "extra":xa=ea;Aa=ba;Ga={};for(xa.Ja();xa.advance();)switch(Ka=xa.Ma(),Ka){case "font":Ga.font=r(xa,Aa(1));break;default:Object(f.i)("unrecognised extra child: "+Ka)}xa.Ya();xa=Ga;xa.font&&(ra.font=xa.font);break;case "captions":Aa=
ea;xa={};(Ga=Aa.da("Normal"))&&(xa.Normal=Ga);(Ga=Aa.da("Rollover"))&&(xa.Rollover=Ga);(Aa=Aa.da("Down"))&&(xa.Down=Aa);ra.captions=xa;break;default:Object(f.i)("unrecognised widget child: "+xa)}ea.Ya();(xa=oa[ra.fieldName])?(ra=b(xa,ra),na.push(ra)):Object(f.i)("ignoring widget with no corresponding field data: "+ra.fieldName);break;default:Object(f.i)("Unknown element encountered in PDFInfo: "+ra)}return!0}return!1},function(){ea.Ya();ma({calculationOrder:pa,widgets:na,fields:oa,documentActions:ua,
pages:va,custom:[]})},ta)}z.r(ya);z.d(ya,"parse",function(){return e});var f=z(2),n=z(0);z.n(n);var x=z(105),ca=z(3),w=z(7),aa=z(22),ja=z(92),fa=z(20)}}]);}).call(this || window)
