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